Extra labels: dx, release
Tier: M (2-4 days) | Type: refactor
Context. Companions declare ^0.x; consumers keep breaking on minor bumps. Before v1.0, mark the public surface, audit exports, snapshot via api-extractor, gate PRs on the snapshot.
Scope.
- Enumerate public surface in
src/index.ts; mark internal helpers @internal.
- Add
@microsoft/api-extractor; snapshot at etc/sdk.api.md.
- CI blocks a PR that changes surface without updating snapshot.
- Companions'
peerDependencies pin @wraith-protocol/sdk >=1.0.0 <2.
Acceptance.
Files. src/index.ts, api-extractor.json (new), etc/sdk.api.md (new), .github/workflows/ci.yml.
Extra labels:
dx,releaseTier: M (2-4 days) | Type: refactor
Context. Companions declare
^0.x; consumers keep breaking on minor bumps. Before v1.0, mark the public surface, audit exports, snapshot via api-extractor, gate PRs on the snapshot.Scope.
src/index.ts; mark internal helpers@internal.@microsoft/api-extractor; snapshot atetc/sdk.api.md.peerDependenciespin@wraith-protocol/sdk >=1.0.0 <2.Acceptance.
pnpm api:checkpasses on developFiles.
src/index.ts,api-extractor.json(new),etc/sdk.api.md(new),.github/workflows/ci.yml.