Skip to content

fix: publish OpenCode plugin with JS entry - #494

Merged
wey-gu merged 1 commit into
mainfrom
codex/fix-opencode-windows-js-entry
Aug 10, 2026
Merged

fix: publish OpenCode plugin with JS entry#494
wey-gu merged 1 commit into
mainfrom
codex/fix-opencode-windows-js-entry

Conversation

@wey-gu

@wey-gu wey-gu commented Aug 10, 2026

Copy link
Copy Markdown
Member

Summary

  • ship opencode-nowledge-mem 0.3.6 with main pointing at precompiled dist/index.js
  • keep TypeScript source in the package while avoiding a Windows Desktop host requirement to import src/index.ts directly
  • update registry/docs/test pins to 0.3.6

Validation

  • npm run check in nowledge-mem-opencode-plugin
  • npm pack --dry-run --json confirms dist/index.js is included and node_modules is not bundled
  • registry/package/dist consistency assertion
  • node --check nowledge-mem-opencode-plugin/dist/index.js
  • git diff --check

Note

python3 -m pytest community/tests/plugin_e2e/test_key_plugins_e2e.py -q was not available locally because this machine lacks pytest.

Summary by CodeRabbit

  • New Features

    • Released OpenCode integration version 0.3.6.
    • Added a precompiled plugin package for improved installation and loading reliability.
    • Added troubleshooting guidance for refreshing the OpenCode Desktop package cache when tools are unavailable.
  • Bug Fixes

    • Fixed an issue affecting the compaction hook.
  • Documentation

    • Updated plugin version information and changelog details.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 850af125-63db-4d24-9f93-3a4a154fd195

📥 Commits

Reviewing files that changed from the base of the PR and between d6d5d66 and 3aae3e7.

⛔ Files ignored due to path filters (1)
  • nowledge-mem-opencode-plugin/dist/index.js is excluded by !**/dist/**
📒 Files selected for processing (5)
  • integrations.json
  • nowledge-mem-opencode-plugin/CHANGELOG.md
  • nowledge-mem-opencode-plugin/README.md
  • nowledge-mem-opencode-plugin/package.json
  • tests/plugin_e2e/test_key_plugins_e2e.py
 ____________________________________________________________________________________________________________________________________________
< Every great developer you know got there by solving problems they were unqualified to solve until they actually did it. - Patrick McKenzie >
 --------------------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-opencode-windows-js-entry

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wey-gu
wey-gu merged commit c3ef77d into main Aug 10, 2026
4 of 5 checks passed
@wey-gu
wey-gu deleted the codex/fix-opencode-windows-js-entry branch August 10, 2026 14:11
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Caution

CodeRabbit couldn't update its existing comment. The review summary may be out of date.

Error details
putComment timed out

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@nowledge-mem-opencode-plugin/package.json`:
- Around line 6-9: Update test_opencode_plugin_static_contract_is_self_contained
in tests/plugin_e2e/test_key_plugins_e2e.py to assert the package main entry
point is dist/index.js instead of src/index.ts, matching the package.json main
field and preserving the rest of the static contract checks.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 850af125-63db-4d24-9f93-3a4a154fd195

📥 Commits

Reviewing files that changed from the base of the PR and between d6d5d66 and 3aae3e7.

⛔ Files ignored due to path filters (1)
  • nowledge-mem-opencode-plugin/dist/index.js is excluded by !**/dist/**
📒 Files selected for processing (5)
  • integrations.json
  • nowledge-mem-opencode-plugin/CHANGELOG.md
  • nowledge-mem-opencode-plugin/README.md
  • nowledge-mem-opencode-plugin/package.json
  • tests/plugin_e2e/test_key_plugins_e2e.py

Comment on lines +6 to +9
"main": "dist/index.js",
"scripts": {
"build": "esbuild src/index.ts --bundle --platform=node --format=esm --external:@opencode-ai/plugin --outfile=dist/index.js --banner:js='// Generated from src/index.ts. Run npm run build before publishing.'",
"check": "npm run build && node --check dist/index.js"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🔴 Critical | ⚡ Quick win

Update the static contract test for the new entry point.

main now points to dist/index.js, but tests/plugin_e2e/test_key_plugins_e2e.py Line 1554 still asserts src/index.ts. The test_opencode_plugin_static_contract_is_self_contained test will fail after this package change.

Proposed test update
-    assert pkg["main"] == "src/index.ts"
+    assert pkg["main"] == "dist/index.js"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@nowledge-mem-opencode-plugin/package.json` around lines 6 - 9, Update
test_opencode_plugin_static_contract_is_self_contained in
tests/plugin_e2e/test_key_plugins_e2e.py to assert the package main entry point
is dist/index.js instead of src/index.ts, matching the package.json main field
and preserving the rest of the static contract checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant