Skip to content

Package OpenCode plugin for npm and add release workflow#11

Merged
benvinegar merged 1 commit intomainfrom
feat/opencode-npm-package
Mar 8, 2026
Merged

Package OpenCode plugin for npm and add release workflow#11
benvinegar merged 1 commit intomainfrom
feat/opencode-npm-package

Conversation

@benvinegar
Copy link
Member

Summary

This adds a first-class npm package for the OpenCode glance plugin and aligns docs/release automation with the pi package flow.

Changes

  • add opencode/package.json for @modemdev/glance-opencode
  • add release-opencode.yml workflow (tag: opencode-v*)
  • update opencode/README.md with npm install/verify/update/remove + publishing docs
  • keep manual symlink install as legacy fallback
  • update root README.md plugin table with the new package
  • update install comment in opencode/glance.ts to point to npm-first install

Validation

  • npm test
  • npm run test:coverage
  • npm exec -- tsc --noEmit ⚠️ fails due pre-existing type issue in vitest.config.ts:
    • TS2769: Object literal may only specify known properties, and \all` does not exist in type ... CoverageV8Options`

Notes

OpenCode does not currently have a opencode install <pkg> command like pi.
Install remains config-based via opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@modemdev/glance-opencode"]
}

@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​opencode-ai/​plugin@​1.2.211001006897100

View full report

@benvinegar benvinegar merged commit d9c709d into main Mar 8, 2026
4 checks passed
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