Skip to content

Publish OpenCode plugin to npm as @dynamicagency/throughline-opencode - #60

Merged
jsirish merged 1 commit into
mainfrom
opencode-npm-publish
Aug 26, 2026
Merged

Publish OpenCode plugin to npm as @dynamicagency/throughline-opencode#60
jsirish merged 1 commit into
mainfrom
opencode-npm-publish

Conversation

@jsirish

Copy link
Copy Markdown
Member

Summary

  • Repackages .opencode-plugin to publish compiled dist/ (not TS source) under @dynamicagency/throughline-opencode, with full package metadata, publishConfig.access: public, prepublishOnly build, and a package-level LICENSE/README.
  • Cuts v0.14.0 across all three plugin manifests (Claude Code, Codex, OpenCode) and promotes the CHANGELOG's Unreleased block.
  • README/docs OpenCode section rewritten to the one-line { "plugin": ["@dynamicagency/throughline-opencode"] } install, matching Claude Code/Codex's install shape; local-path install kept as a documented fallback for testing unreleased changes (now needs a build first, since main points at gitignored dist/).

Closes#59

Test plan

  • npm run typecheck && npm run build && npm test in .opencode-plugin/ - 93/93 tests pass
  • npm pack --dry-run - tarball contains only dist/, package.json, README.md, LICENSE (no src/, no test files)
  • Extracted the real tarball and ran a Bun load probe against the compiled entry point - resolves and exports load
  • Live OpenCode session (opencode run) against the extracted dist-only package - buffer capture worked, zero .capture-errors, and the injected session-start block was confirmed live in a real turn (not just the OpenCode title-generation pass) with the correct ## throughline v0.14.0 version string
  • /local-ci --strict - all checks pass (shellcheck, manifest validation, 3-way plugin version agreement, hook tests, opencode plugin build+test)
  • First npm publish and a fresh OpenCode install by package name (registry install path) - manual step after merge, tracked as this PR's remaining follow-through

🤖 Generated with Claude Code

https://claude.ai/code/session_01Bxkq4jddjGhFynxtViiQxx

…ne-opencode
Cuts v0.14.0 and repackages .opencode-plugin to ship compiled dist/ instead
of TypeScript source, so opencode.json can install it by package name
instead of a local checkout path. README/docs updated to the one-line
install; the local-path flow stays documented as a fallback for testing
unreleased changes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bxkq4jddjGhFynxtViiQxx
@jsirish
jsirish merged commit d5f573c into mainAug 26, 2026
2 checks passed
@jsirish
jsirish deleted the opencode-npm-publish branch August 26, 2026 03:22
Sign up for freeto 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.

Publish .opencode-plugin as an npm package (throughline-opencode)

1 participant

@jsirish