Grilling: packaging and distribution #6
Notifications
Due Date
No due date set.
Depends on
#2 Research: verified opencode v2 plugin API
haylan/fastcrw-opencode-websearch
#4 Task: install opencode v2 and TypeScript skills
haylan/fastcrw-opencode-websearch
Reference: haylan/fastcrw-opencode-websearch#6
Reference in new issue
Block a user
Map: #1
Question
Given the verified plugin loading mechanism: how is the plugin packaged and installed (local path under ~/.config/opencode/plugins vs published npm package vs Gitea package registry), build output (ESM/CJS, types), package name, plugin id, and TypeScript/tsconfig/Prettier baseline for the repo?
Resolved with the user. Glossary in CONTEXT.md (added: Release).
https://git.arthurerlich.de/api/packages/haylan/npm/; consumers map@haylan:registry=...in.npmrc.@haylan/opencode-fastcrw, plugin idfastcrw.websearch, provider idfastcrw.tsctodist/(ESM +.d.ts),"type":"module",exports["."]->dist/index.js. No bundler.@opencode/pluginindependencies(per docs). Build-time check of whatnpm installpulls in (peers: solid-js, @opentui/*); if heavy, move to peer + dev.semi:false,printWidth:100; scriptsbuild,format,check.CHANGELOG.mdper Keep a Changelog 1.1.0.package.jsoncarries a dev version (0.0.0-dev); the release pipeline rewrites it in the CI workspace to the latest changelog heading (ignoring[Unreleased]), never committed back.workflow_dispatchonly, onmain.npm ci+npm run build, then a dependency-free Node script inscripts/builds the tarball,GETs to check the version, skips with success if it exists, elsePUTs to the registry API. Nonpm publish. Auth via Actions secret; runtime check that the job token has package-write, else awrite:packagesecret. A runner exists. The workflow YAMLs and script are build steps for the spec..npmrcscope mapping when installing by name; fallback is tarball or local path.mainprotected (done: initial commit pushed, direct push blocked, 0 approvals, no force-push); changes via PR; Conventional Commits.