Skip to content

Cherry-pick 7aa233790: Fix npm-spec plugin installs when npm pack output is empty#1237

Merged
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/7aa233790-fix-npm-spec-plugin-installs
Mar 13, 2026
Merged

Cherry-pick 7aa233790: Fix npm-spec plugin installs when npm pack output is empty#1237
alexey-pelykh merged 1 commit intomainfrom
cherry-pick/7aa233790-fix-npm-spec-plugin-installs

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Cherry-pick

Summary

Fixes npm-spec plugin installs when npm pack output is empty or doesn't contain a .tgz filename. Adds fallback logic to detect the packed archive by scanning the working directory.

  • Extracts parsePackedArchiveFromStdout and findPackedArchiveInDir helpers
  • Falls back to directory scan when stdout is empty or lacks a tgz reference
  • Verifies archive file existence before returning path
  • Updates test helper to write fixture archive during mock pack

Conflict resolution: Test file had rebrand conflicts (openclaw→remoteclaw fixture filenames). Resolved by applying upstream's variable-style assertions with rebranded fixture names.

Part of #663

🤖 Generated with Claude Code

…21039)

* fix(plugins): recover npm pack archive when stdout is empty

* test(plugins): create npm pack archive in metadata mock

---------

Co-authored-by: Vincent Koc <[email protected]>
(cherry picked from commit 7aa2337)
@alexey-pelykh alexey-pelykh merged commit 67652c6 into main Mar 13, 2026
7 checks passed
@alexey-pelykh alexey-pelykh deleted the cherry-pick/7aa233790-fix-npm-spec-plugin-installs branch March 13, 2026 21:05
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.

2 participants