Skip to content

fix: aube npm lifecycle scripts + claude-memory-backup off-main guard - #24

Merged
natevick merged 2 commits into
mainfrom
fix/aube-npm-lifecycle-scripts
Aug 13, 2026
Merged

fix: aube npm lifecycle scripts + claude-memory-backup off-main guard#24
natevick merged 2 commits into
mainfrom
fix/aube-npm-lifecycle-scripts

Conversation

@natevick

Copy link
Copy Markdown
Owner

Two independent fixes that were sitting unpushed on this box.

fix: let aube's preinstall run so mise installs a working binary (c45e582) — npm.shell_out alone isn't enough; aube's preinstall is what fetches the arch-specific binary, so without npm_args = "--ignore-scripts=false" mise installs a package whose shims don't work.

fix: claude-memory-backup must not silently no-op off main (5493890) — the commit lands on the checked-out branch while the push names main. Off main, the backup goes to the feature branch, push origin main ships an unchanged main, and the script exits 0 — which reads exactly like "mirrored, nothing changed". Found today with the mirror on feat/selective-prod-tooling. It now refuses and names the branch. The guard was already live in ~/.local/bin; this brings the chezmoi source into line so a fresh machine inherits it.

Verified on this box: chezmoi status is clean, a fresh interactive zsh starts without error, and mise install -y reports all tools installed.

natevick and others added 2 commits August 12, 2026 12:29
mise 2026.8.5 changed the npm backend: it now resolves and links packages
itself instead of shelling out to npm, and it passes --ignore-scripts.
@endevco/aube ships no bin/ -- its "preinstall" runs
installArchSpecificPackage.js, which downloads the ~48M arch-specific
binary. With scripts skipped, mise installed a package with no
executable, recorded backend metadata saying so, and dropped the aube /
aubr / aubx shims entirely. `aube` became command-not-found.

Both settings are required; verified by removing each in turn:
- shell_out = true alone: npm runs but still with --ignore-scripts, and
  mise warns it skipped the preinstall.
- npm_args alone (shell_out = false): mise's internal installer ignores
  it and the binary is never fetched.
Together: install is clean, `aube --version` and `aubx --version` both
report 1.38.1 through the shims.

shell_out = true does reintroduce npm subprocesses, which is the surface
the 2026-08-12 fork bomb recursed through. That is acceptable only
because the box now runs mise 2026.8.5, which includes jdx/mise#8475
(shims stripped from dependency_env PATH). Do not set this on a mise
older than 2026.8.2.

Lives here rather than machine-local ~/.config/mise/config.toml so a
fresh machine reproduces a working aube.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ARNZyPcAj3K2LhupCDn5gQ
The commit lands on whatever branch the mirror repo has checked out, but the push
below it names main. On any other branch that pair strands the backup: the commit
goes to the feature branch, `push origin main` ships an unchanged main, and the
script exits 0 — indistinguishable from "mirrored, nothing changed". Found
2026-08-13 with the mirror on feat/selective-prod-tooling. It now refuses and
says which branch it found.

Already live in ~/.local/bin; this brings the source into line via `chezmoi add`
so a fresh machine inherits the guard.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CCmHuUXi7TtpGauNarsn88
@natevick
natevick merged commit c362ebe into main Aug 13, 2026
3 checks passed
@natevick
natevick deleted the fix/aube-npm-lifecycle-scripts branch August 13, 2026 21:09
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.

1 participant