Repository navigation
alchemy: Alchemy's CLI as a command, installed on first use (0.51.0) - #121
Merged
Merged
Conversation
A launcher for @alchemy/cli in the openmcp shape: everything is passed through, the first run installs into ~/.local/share/cli-tools/vendor/alchemy, --self-update and --self-where are ours. A global copy that is not this wrapper (moshcode install alchemy makes one) is used as it is. That copy is exec'd by its PATH name, not its realpath: under mise the global bin is a shim symlinked to the mise binary, and exec'ing the realpath ran `mise --json ...`. firstOnPath is exported from registry.ts for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ThreatCrush Security Scan28 finding(s) HIGH/CRITICAL: 7 | MEDIUM: 12 | LOW: 9
Snippets are redacted; ThreatCrush never prints matched credential material. |
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.
Adds
alchemy, a launcher for @alchemy/cli (onchain data, apps, agent wallets, x402), in the same shape asopenmcp.~/.local/share/cli-tools/vendor/alchemy.--self-updateand--self-whereare ours.ALCHEMY_BIN/ALCHEMY_SPECoverride.moshcode install alchemymakes one) is used as it is.misebinary.resolveCommand().targetis the realpath, so the launcher ranmise --json …. It now execs the PATH entry.firstOnPathis exported fromregistry.tsfor this, and there's a regression test.openmcp/agenticjobsresolve the same way, so they would hit the same problem if installed globally under mise. Not changed here.Verified:
alchemy --versionruns the global copy (0.24.0), andalchemy --json --no-interactive evm gasreturns Alchemy's own JSON.--self-updateinstalled 0.24.1 into the prefix, and--self-wherethen reports it.root-ubuntu.test.tspersonal-identifier scan ofroot-ubuntu.sh) and the one tsc error (root-ubuntu.test.ts:1461) come from files this PR doesn't touch.🤖 Generated with Claude Code