fix(release): validate staged bundle dependencies - #495
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bundleDependencieslist instead of requiring everyconsumer-resolved optional dependency to be physically present in the npm
tarball
bundle manifest
Failure reproduced
Publish-only workflow
30466062567
stopped before npm publication:
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
@anthropic-ai/claude-agent-sdk-darwin-arm64Validation
git diff --checknpm run checknpm run buildCI=1 npm testThe previous
v2026.7.29-2tag 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.assertSenpiPackedWorkspaceFiles()now checksbundleDependencieswhen provided, with a fallback to all runtime deps if not.publish.mjspasses the stagedbundleDependenciesinto the validator.@anthropic-ai/claude-agent-sdkis bundled while@anthropic-ai/claude-agent-sdk-darwin-arm64may be excluded.Written for commit d108cc4. Summary will update on new commits.