no-mistakes(review): Manage lint tools and preserve Pi packages

This commit is contained in:
Lap Tran committed 2026-11-23 17:31:01 -05:00
1 parent 4a31495181
commit 022967e277
4 files changed
+70 -48

No files matched your search

+3 -2
View File
@@ -83,7 +83,7 @@ One `./rebuild.sh` run brings every installed component to its latest supported
Before the switch:
- Installed npm globals through `/opt/homebrew/bin/npm`, never Nix's npm: `@steipete/bird`, `chrome-devtools-axi`, `defuddle`, `forgejo-axi`, `gh-axi`, `lavish-axi`, `quota-axi`, and `tasks-axi`. The script skips absent packages and compares each installed package with the registry before an update. `tasks-axi` keeps its firstmate floor of 0.2.6 in `home.activation.axiTools`, which now installs only a missing or older copy, so the latest release survives the switch.
- Retired npm packages are removed only while their evidence still holds: `@opencode-ai/cli`, `opencode-ai`, and the June `pi-cli`/`pi-coding-agent` placeholders. The global `pi-context` is removed only when Pi keeps its own copy under `~/.pi/agent/npm`. If `pi` resolves into npm's global tree, the script warns and leaves those packages in place.
- Retired npm OpenCode packages `@opencode-ai/cli` and `opencode-ai` are removed so their shims cannot conflict with the Homebrew formula.
- `no-mistakes update`, using the binary at `~/.no-mistakes/bin/no-mistakes`.
- `hermes update --yes`, which pulls the configured channel and restarts the services that run its new code.
- `nix flake update`, so the switch builds from the newest locked inputs. Commit the resulting `flake.lock` change.
@@ -92,13 +92,14 @@ During the switch:
- nix-darwin updates Homebrew formulae and casks through `configuration.nix`'s `onActivation.autoUpdate` and `onActivation.upgrade` settings.
- `home.activation.backpass` updates `acpx` and `backpass`. Other activation steps install their declared npm packages when absent.
- Home Manager replaces the standalone `~/.local/bin/actionlint` and `~/.local/bin/shellcheck` binaries with links to the packages selected by the updated flake. Later rebuilds update those links automatically.
After the switch:
- The Skills CLI updates every skill tracked in `~/.agents/.skill-lock.json`. The pinned pstack skills are not in that lock, so they stay on the `home.nix` revision (see [pstack skills](#pstack-skills-pinned-on-every-rebuild)). `security-audit` is excluded on purpose, because `home.nix` freezes it so a rebuild never pulls a new skill mid-session; renew it by hand with the command in [security-audit skill](#security-audit-skill-agent-security-reviews).
- `pi update --extensions --no-approve`, run after the switch because the Homebrew bundle may have upgraded the `pi` binary.
Two tools have no supported updater: `actionlint` and `shellcheck` are standalone binaries in `~/.local/bin`, downloaded from their release pages. The rebuild does not replace them. Both were current on 2026-11-23 (actionlint 1.7.12, shellcheck 0.11.0); fetch a new release by hand when one is published. The pinned pstack tree also stays put; see its section for how to move it.
`actionlint` and `shellcheck` follow the versions available in the selected nixpkgs revision, rather than separate release downloads. The pinned pstack tree stays put; see its section for how to move it.
## security-audit skill (agent security reviews)