Skip to content

chore(release): bump @codespar/types, @codespar/sdk, codespar to 0.10.0 - #56

Merged
dangazineu merged 2 commits into
mainfrom
chore/release-0.10.0
May 24, 2026
Merged

chore(release): bump @codespar/types, @codespar/sdk, codespar to 0.10.0#56
dangazineu merged 2 commits into
mainfrom
chore/release-0.10.0

Conversation

@dangazineu

@dangazineu dangazineu commented May 24, 2026

Copy link
Copy Markdown
Contributor

Release prep for the hosted-test-mode SDK surface that landed in #54. Aligns the three publishable packages at 0.10.0 so versions match each other (one number, not three).

Versions

Package Previous This release
@codespar/types 0.7.0 0.10.0
@codespar/sdk 0.9.0 0.10.0
codespar (Python) 0.9.0 0.10.0

@codespar/types skips 0.8.0 / 0.9.0 deliberately — nothing external pinned to those, and the alignment is worth the gap.

Released content

@codespar/types@0.10.0 — mock-shape type exports (MockObject, MockValue).

@codespar/sdk@0.10.0:

  • session.send({ mocks }) field — forwarded verbatim to the runtime
  • CodesparApiError typed error envelope
  • tool-result-codes module with isPolicyDenied, isApprovalRequired, isMocksExhausted, isMocksEngineError, isToolNotMocked, ToolResultCode, assertExhaustiveToolResult
  • CODESPAR_BASE_URL env-var resolution at client construction
  • @codespar/types dep bumped to ^0.10.0

codespar@0.10.0 (Python) — Python lockstep of the SDK additions: session.send(mocks=...) forwarding, CodesparApiError exception, tool_result_codes guards, CODESPAR_BASE_URL resolution, User-Agent to codespar-python/0.10.0, wire-parity fixture at tests/_fixtures/mocks_canonical.json.

Workspace dep-range alignment

13 packages (CLI + 12 framework adapters) pinned dependencies."@codespar/sdk": "^0.9.0". Caret-on-0.x excludes 0.10.0, so npm was installing a nested SDK copy into packages/cli/node_modules/@codespar/* instead of resolving via the workspace symlink — which the repo's lockfile-drift check rejects. Bumped each to ^0.10.0. The adapters themselves are not republished by this PR; only the workspace's internal resolution changes. peerDependencies stays "*". CLI templates keep ^0.2.0 (scaffolded into user projects, not workspace internals).

Publishing after merge

git checkout main && git pull
git tag v0.10.0 && git push origin v0.10.0
gh release create python-v0.10.0 --generate-notes

The v0.10.0 tag triggers .github/workflows/publish.yml, which publishes the bumped packages and skips already-published ones. The release event triggers .github/workflows/publish-python.yml, which publishes via PyPI trusted publishing (OIDC). No local credentials required.

Aligns all three publishable packages at 0.10.0 ahead of publishing the
hosted test-mode SDK surface that landed in #54 without a version bump.
The CHANGELOGs are prepended with 0.10.0 sections covering the mocks
forwarding on session create, the structured CodesparApiError, the
tool-result-codes module with five type-narrowed guards plus exhaustive-
match helper, and CODESPAR_BASE_URL env-var resolution.

@codespar/types jumps 0.7.0 -> 0.10.0 (skipping 0.8.0 and 0.9.0)
deliberately so all three packages share a single release version and
reviewers do not have to keep three numbers in their head. The
@codespar/types 0.10.0 entry documents the new MockObject / MockValue
aliases and the widened CreateSessionRequest. The Python User-Agent and
__version__ constants are bumped in lockstep, and scripts/publish.sh has
its version constants and bundled release notes updated so a subsequent
bash scripts/publish.sh ships these exact values.

No functional code changes — release prep only.
… cli

Workspace cross-deps were pinned to ^0.9.0, which excludes 0.10.0 under
caret-on-0.x semver, so npm fetched a nested copy into
packages/cli/node_modules/@codespar/* and the lockfile drift CI guard
fired. Bumping the dep range in 13 packages (12 framework adapters +
cli) lets npm resolve via the workspace symlink. peerDependencies remain
'*' since they're satisfied by any workspace version. CLI templates pin
^0.2.0 (scaffolded into user projects, not workspace internals) and are
unchanged.
@dangazineu dangazineu changed the title chore(release): align @codespar/types, @codespar/sdk, codespar at 0.10.0 chore(release): bump @codespar/types, @codespar/sdk, codespar to 0.10.0 May 24, 2026
@dangazineu
dangazineu merged commit 021581c into main May 24, 2026
4 checks passed
Sign up for free to 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.

1 participant