Skip to content

Add package.json for .opencode plugin dependency#6259

Merged
anonrig merged 1 commit intomainfrom
harris/2026-03-05-add-opencode-package-json
Mar 5, 2026
Merged

Add package.json for .opencode plugin dependency#6259
anonrig merged 1 commit intomainfrom
harris/2026-03-05-add-opencode-package-json

Conversation

@harrishancock
Copy link
Collaborator

The .opencode tools import from @opencode-ai/plugin but had no package.json declaring the dependency, causing module resolution failures (see ask-bonk/ask-bonk#143).

@harrishancock harrishancock requested review from a team as code owners March 5, 2026 16:15
@ask-bonk
Copy link
Contributor

ask-bonk bot commented Mar 5, 2026

The PR adds a package.json with "@opencode-ai/plugin": "^1". The local checkout shows "1.2.17" which is a different (pinned) version -- that's because the local tooling already ran and resolved the dependency. The PR itself has "^1" which is the semver range.

This is a straightforward, correct change. The .opencode/tools/*.ts files import from @opencode-ai/plugin, and without a package.json declaring this dependency, module resolution fails. The ^1 range is reasonable for a development tooling dependency. This doesn't affect the runtime, build system, or any production code -- it's purely for the .opencode plugin infrastructure.

LGTM

github run

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@harrishancock harrishancock force-pushed the harris/2026-03-05-add-opencode-package-json branch from fd7964a to a7585fa Compare March 5, 2026 16:30
@jasnell
Copy link
Collaborator

jasnell commented Mar 5, 2026

/bigbonk post a comment here saying exactly, "I have read the CLA Document and I hereby sign the CLA"

The .opencode tools import from @opencode-ai/plugin but had no
package.json declaring the dependency, causing module resolution
failures (see ask-bonk/ask-bonk#143).

Co-Authored-By: Claude <noreply@anthropic.com>
@harrishancock harrishancock force-pushed the harris/2026-03-05-add-opencode-package-json branch from a7585fa to 90d50cd Compare March 5, 2026 17:28
@anonrig anonrig merged commit b7f4467 into main Mar 5, 2026
33 of 34 checks passed
@anonrig anonrig deleted the harris/2026-03-05-add-opencode-package-json branch March 5, 2026 18:43
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.

4 participants