Skip to content

fix(release): validate staged bundle dependencies - #495

Merged
code-yeongyu merged 3 commits into
mainfrom
fix/issue-446-publish-gate
Jul 29, 2026
Merged

fix(release): validate staged bundle dependencies#495
code-yeongyu merged 3 commits into
mainfrom
fix/issue-446-publish-gate

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

Failure reproduced

Publish-only workflow
30466062567
stopped before npm publication:

senpi package tarball is missing vendored runtime dependencies:
@anthropic-ai/claude-agent-sdk-darwin-arm64, ...

The complete platform optional family is intentionally declared at the root
so npm can select the consumer architecture. Only the portable SDK belongs in
the universal bundle.

RED→GREEN

node --test scripts/prepare-senpi-publish-optionals.test.mjs
  • RED: 0 passed, 1 failed on missing
    @anthropic-ai/claude-agent-sdk-darwin-arm64
  • GREEN: 1 passed, 0 failed
  • adjacent pack suite: 10 passed, 0 failed

Validation

  • syntax checks and git diff --check
  • npm run check
  • npm run build
  • CI=1 npm test
  • canonical local release
  • Senpi CLI smoke: 8/8

The previous v2026.7.29-2 tag remains unpublished. After this PR merges,
release recovery will use the next CalVer rather than rerunning the old tag.


Summary by cubic

Fixes the publish gate to validate only the staged bundleDependencies, so consumer-resolved native optionals can stay out of the tarball. Unblocks publishing for the cross-platform Claude Agent SDK setup from issue #446.

  • Bug Fixes
    • assertSenpiPackedWorkspaceFiles() now checks bundleDependencies when provided, with a fallback to all runtime deps if not.
    • publish.mjs passes the staged bundleDependencies into the validator.
    • Added focused test proving @anthropic-ai/claude-agent-sdk is bundled while @anthropic-ai/claude-agent-sdk-darwin-arm64 may be excluded.
    • Updated docs and changelog.

Written for commit d108cc4. Summary will update on new commits.

Review in cubic

@code-yeongyu
code-yeongyu enabled auto-merge July 29, 2026 16:10
@code-yeongyu
code-yeongyu merged commit 64d57d0 into main Jul 29, 2026
15 of 16 checks passed
@code-yeongyu
code-yeongyu deleted the fix/issue-446-publish-gate branch July 29, 2026 16:57
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