The published artifact is packages/sdk; the private root mirrors its version (bun run version:sync).
npm run capture # Stage 1 — needs STITCH_API_KEY (writes RAW schemas)
# Stage 2 (agent): edit packages/sdk/generated/domain-map.json per the
# stitch-sdk-domain-design skill
npm run generate # Stage 3 — validates IR + projections, emits TS
npm run build # Stage 4
cd packages/sdk && bun run test:coverage && cd ../.. # Stage 5 (+ thresholds)
npm run test:scripts # Stage 6 — emitter snapshots + IR contract
npm run test:e2e # Stage 7 — live API (STITCH_API_KEY)
npm run validate:generated # Stage 8 — lock integrity (always after generate)
bun run check:skills # skill ↔ IR consistency
bun run check:bundle # root-entry size budget + catalog-leak probe- Bump
packages/sdk/package.jsonversion;bun run version:sync. bun run publish:readiness— build, publint, lock validation, version sync, pack hygiene, size budget, consumer-import check, unit tests. Must be fully green.- Update
CHANGELOG/release notes; for breaking releases updateMIGRATION-1.0.md-style guidance. - Publish through wombat-dressing-room (
packages/sdkpublishConfigis already pointed at it). For pre-releases use a dist-tag:npm publish --tag next. - Tag
v<version>on the release commit. - Post-publish smoke:
npm install @google/stitch-sdk@<tag>in a scratch project; import root,/tools, and (with peers installed)/ai+/adk.
- Stable / Bridge releases (
0.4.0,1.0.0):publishConfig.tagislatestsonpm install @google/stitch-sdkinstalls the active release. - Pre-releases (
1.0.0-rc.N): version includes a pre-release suffix (-rc.N) andpublishConfig.tagisnext(publish:readinessenforcesprerelease → next, GA → latest).
- Generated output is byte-reproducible;
stitch-sdk.lockhashes are machine-portable and CI-validated. tools-manifest.jsonstores schemas RAW; repair happens at load/serve time and is recorded inlock.generated.repairedTools.- The root bundle must not contain the tool catalog (only
/tools,/ai,/adkcarry it). - Optional peers (
ai,@google/adk,@google/genai) must never be required to install or import the root.