docs(release): ship the fork's SDK with every release
Merged
KE
1mo ago+33+33+01234567890123456789-13-13-01234567890123456789
Every fork release now ships the fork's own SDK, so Replo gets real types for fork-only routes. npm only carries upstream's @opencode-ai/sdk, which will never know routes like question.progress.
Context: v1.18.32-4 is the first release with the SDK tarball · andytown #28427 installs it and adds a test that keeps all three pins on one version · the andytown skill release-opencode.md gained the same steps, and this keeps the two runbooks in sync.
What changed
- Cut a release: build the SDK from the same commit as the binaries, pack it the way
packages/sdk/js/script/publish.tsdoes (minusnpm publish), and uploadopencode-ai-sdk-<v>.tgzwith them. - Rules that bite: every release must attach the SDK tarball. Never
npm publishit, because the npm scope is upstream's. - Downstream: andytown pins three things now, not two. The skill path is also current.
- Fix: the archive step runs in a subshell, so the
gh release createpaths resolve from the repo root. Before, the blockcd'd intodistand never came back.
Testing Done
- Docs only. These steps produced v1.18.32-4's SDK asset:
build.tsregenerated a client identical to the committed one, and the packed tarball is what andytown installs (@opencode-ai/sdk@1.18.32-4; its typecheck and 1,321 coordinator tests pass). - The stale
tsconfig.tsbuildinfoline is there because the build skipped emittingdistwithout it.
🤖 Generated with Claude Code
Summary by cubic
Updates the release runbook so every fork release now ships the fork's SDK tarball alongside the binaries, giving Replo's coordinator real types for fork-only routes.
- Builds the SDK from the same commit as the binaries and uploads
opencode-ai-sdk-<v>.tgzwith the release. - Adds a rule that every release must attach the tarball, and clarifies never to
npm publishit since the npm scope is upstream's. - Runs the archive step in a subshell so
gh release createpaths resolve from the repo root instead ofdist. - Lists the coordinator's
@opencode-ai/sdkpin as the third downstream dependency, and updates the andytown skill path.