Repository navigation
Bundle only the darwin-arm64 CLI so 0.2.2 can publish to ClawHub - #17
Merged
Merged
Conversation
ClawHub advertises a 50 MiB unpacked limit, but its publish endpoint parses the package inside a 64 MiB Convex HTTP action at roughly tarball + 2x unpacked peak memory. The three-target 0.2.2 package (35.7 MiB unpacked) returned a bare "Server Error" 500 on every attempt, after the staged upload itself succeeded, and the largest package ClawHub has accepted is about 24 MB unpacked. - Bundle darwin-arm64 only, matching 0.2.1 (12.6 MB unpacked, 4.5 MB tarball), so Mac users keep a working CLI skill. Linux users never had a working CLI from ClawHub; they now get the "not bundled" message instead of "Exec format error". - pack:verify enforces a 20 MiB publishable limit instead of ClawHub's advertised 50 MiB, which let an unpublishable package pass. - README: document the single bundled target, the real limit, and that clawhub 0.23.3 from npm cannot upload tarballs over 4.5 MB. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sidharth0612
approved these changes
Oct 1, 2026
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.
What was broken
The three-target 0.2.2 package from #16 (35.7 MiB unpacked, 13.4 MB tarball) cannot be published to ClawHub. With a ClawHub CLI built from source (which uses staged uploads), the upload URL and storage upload succeed, then
POST /api/v1/packagesreturns a bare{"code":"[Request ID: …] Server Error"}500. That happened six times per run, across three runs, and continued after my account was added to theagentmailpublisher. ClawHub still shows 0.2.1, and the publication endpoint reports 0.2.2 asabsent, so the version number is still free.Why (from openclaw/clawhub source):
gunzipBoundedandparseTarEntriescopy the data: about 88 MB for our package, versus about 30 MB for 0.2.1.@openclaw/matrix). Two targets (about 25.7 MB) would have no margin.ClawHub advertises a 50 MiB limit, but in practice it is far lower.
What changed
darwin-arm64ships, the same as 0.2.1. The package is 12.6 MB unpacked, 4,476,551 bytes packed (0.2.1: 4,476,974), 76 files.Exec format error.pack:verifynow enforcesCLAWHUB_PUBLISHABLE_UNPACKED_BYTES(20 MiB) instead of the advertised 50 MiB, which let an unpublishable package pass. It now rejects the three-target tarball.clawhub0.23.3 from npm sends tarballs up to 18 MiB inline, while clawhub.ai rejects request bodies over 4.5 MB with 413. Use a CLI that includes fix: ClawPack publishes over 4.5 MB fail with 413 through clawhub.ai openclaw/clawhub#3584.Verification
npm test: 241 passed.vendor/:plugin:check,plugin:validate, andpack:verify(both modes) pass.dist/secret-contract-api.jsandvendor/agentmail/darwin-arm64/agentmail.Next
scripts/prepare-agentmail-cli.mjsalready has the download, checksum, and atomic-rename logic.🤖 Generated with Claude Code