Repository navigation
fix(npm): lazy install ignores npm shims; publish hanzo alongside @hanzo/cli - #32
Merged
Merged
Conversation
…ckout - `hasTool` no longer counts npm's global shims (symlinks to hanzo.js) as the tool, so `hanzo-mcp`/`hanzo-dev` installed via `npm i -g hanzo` actually fetch their native binary on first run. The binary the launcher execs must be local; companions only need to resolve on PATH. - Works with npm 11+'s blocked install scripts: the CLI binary itself is fetched lazily on first run when postinstall never ran. - Label a fallback-to-latest download honestly. - publish-npm.yml checks out hanzo-js/hanzo with actions/checkout (a bare git clone prompted for credentials on the runner).
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.
Verified end-to-end:
npm i -g --ignore-scriptsof both tarballs, thenhanzo --version,hanzo-mcp --version,hanzo-dev --versioneach lazily fetched + ran their native binary;install.js enginefetched hanzo-engine 1.7.92.