Release 0.2.8: dir-aware global binaries, interactive plugin menu, closed-env activation - #8
Merged
Merged
Conversation
…activation Issue 1 — global packages installed via `npm i -g` were unrunnable: - reshim(): generate shims for every executable in installed versions' bins, auto-run after npm/yarn/pnpm/bun install commands - exec-shim resolves any binary across managed versions (local pin -> global pin -> other tools), so a globally-installed tool runs regardless of the active version Issue 2 — closed envs (Codex/Claude) reset PATH and lose dir-aware resolution: - `avm shims activate` idempotently adds ~/.avm/shims to .zshenv/.bashrc/.profile UX — bare `avm <plugin>` now opens an interactive action menu that chains into the chosen action, uniform for every plugin; better unknown-command hint. Cleanup — delete 65 lines of dead duplicated resolver methods on Resolver.
Merged
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.
Summary
Fixes two real usability bugs and adds discoverability, plus a small dead-code cleanup.
Issue 1 — global packages (
npm i -g <pkg>) were unrunnablereshimgenerates shims for every executable in installed versions'bin/dirs; auto-runs afternpm/yarn/pnpm/buninstall commands, sotsc,eslint, etc. work immediately (no manualreshimstep).exec-shimnow resolves any binary across managed versions — local pin → global pin → other tools — so a globally-installed tool runs regardless of the active project version.Issue 2 — closed envs (Codex/Claude) reset PATH and lose dir-aware resolution
avm shims activateidempotently adds~/.avm/shimsto.zshenv/.bashrc/.profile..zshenvis sourced by every zsh invocation (incl. non-interactivezsh -c), which is how such sandboxes spawn shells.UX
avm <plugin>(e.g.avm java) now opens an interactive action menu that chains into the chosen action; uniform for every plugin. Non-TTY falls back to the classic status printout.Cleanup
Resolver.New commands
avm shims reshimavm shims activateavm shims installnow reshims tooTesting
activateidempotency (throwaway HOME).Notes / follow-ups
bash -cisn't covered byactivate(bash has no.zshenvequivalent without$BASH_ENV).