Repository navigation
fix(release): allow larger npm plugin artifacts - #117745
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 10:17 PM ET / August 2, 2026, 02:17 UTC. ClawSweeper reviewWhat this changesThe PR raises the bundled npm-plugin tar-header cap from 10,000 to 20,000 and updates its boundary test. Merge readinessKeep this PR open for the normal maintainer merge decision: it is a focused member-authored release-tooling repair, current Priority: P2 Review scores
Verification
How this fits togetherThe plugin npm release workflow packages each bundled plugin, then passes the generated flowchart LR
A[Bundled plugin package] --> B[Release preflight]
B --> C[Publication artifact scanner]
C --> D{Tar safety limits}
D --> E[Inventory and manifest]
E --> F[Release verification]
F --> G[npm publication]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0, Other +1. Total +1 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the narrow npm-release scanner increase after the exact-head CI completes, preserving the separate ClawHub 10,000-entry policy and existing archive safety caps. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: a Is this the best way to solve the issue? Yes. The scanner’s default npm limit is the producer-side owner of the failure, and the patch changes that one ceiling without weakening the separate ClawHub policy or the archive-size, expansion, path, duplicate, and file-payload checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b0345272ce1a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…elf-release * commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits) fix(release): allow larger npm plugin artifacts (openclaw#117745) refactor(macos): consolidate gateway process fixtures (openclaw#117740) fix(ui): preserve complete persisted log messages (openclaw#117666) fix(ui): decode artifact previews as UTF-8 (openclaw#117657) fix(control-ui): restore sandbox media previews (openclaw#117689) fix(plugins): link host declared as direct dependency (openclaw#117738) fix(macos): avoid self-named defaults suite (openclaw#117690) fix(inference): preserve run ownership and completion delivery (openclaw#117731) test(talk): align browser E2E tool completion test: consolidate OpenClaw E2E fixtures (openclaw#117701) fix(release): ignore bundle fields in npm locks (openclaw#117730) fix(meeting-bot): keep configured host options internal refactor(line): remove dead card helpers (openclaw#117729) perf(cli): attribute command startup stages (openclaw#117720) refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710) docs(changelog): note bounded WebRTC tool calls docs(changelog): note meeting audio bounds fix(meeting-bot): preserve node host SDK surface test(talk): split WebRTC tool lifecycle coverage fix(meeting-bot): break node host import cycle ... # Conflicts: # package.json # src/agents/model-auth.ts
What Problem This Solves
Fixes an issue where the beta publisher rejected a valid bundled npm plugin after packaging because its tarball contained more than 10,000 entries.
@openclaw/diagnostics-otelwas the only failed package in release run 30728161070.Why This Change Was Made
The npm publication artifact scanner now accepts up to 20,000 tar headers. The measured diagnostics-otel beta tarball contains 11,646 entries and is 4.7 MB. Existing archive-byte, expanded-byte, per-entry, total-file-byte, path-byte, and separate ClawHub limits remain unchanged.
User Impact
Bundled plugins with large dependency trees can complete verified npm publication without weakening the scanner's byte and path safety bounds. There is no runtime or public API change.
Evidence
node scripts/run-vitest.mjs test/scripts/plugin-publication-artifact.test.ts: 48 tests passed.@openclaw/[email protected]tarball successfully produced a canonical publication manifest with this change.Plugin tarball exceeds the 10000 entry limit.