apiplan v0.2.1 — one-line install, Linux verified
curl -fsSL https://raw.githubusercontent.com/fire17/apiplan/main/install.sh | shThat's now the whole setup on a new machine.
What's new
- One-line install.
install.sh/install.ps1self-bootstrap: piped fromcurl/irmwith no checkout present they fetch themselves to~/.apiplan/srcand continue. Verified end-to-end on a bare Linux container with only git + curl. apiplan update— pull the install, re-sync every command, refresh model lists. One word to stay current.- Linux is now live-verified. The published repo run in a container (aarch64): 80/80 tests, correct platform detection, unix-socket IPC, and the
~/.claude/.credentials.jsoncredential fallback that only ever executes off-macOS. - Fixed a bug that silently wired commands to the wrong tree.
sh install.shputs no slash in$0, so the checkout test failed, the installer concluded it was being piped, and it cloned a second copy — commands then ran a stale tree. Source resolution now covers all three invocation styles, the installer prints the tree it wired, andapiplan doctorreports the install root. Three regression tests assert no clone appears. apiplan path --rawfor scripts; no PATH suggestion when the directory is already on PATH; an already-wired shell rc is left alone instead of appended to twice.- WSL detection is now testable —
detectWsl()is a pure function checked against real WSL1/WSL2 kernel strings and the interop environment variables. - The perf gate no longer lies. It was failing ~half of identical runs: percentage bands are meaningless at 18 ms, one metric measured the OS Keychain rather than this code, and a small-sample median is the wrong estimator for deterministic work. Fixed and verified over four consecutive clean runs.
Verified
87 tests · all budgets met · apiplan doctor all clear · macOS and Linux live-verified.
WSL and Windows still have not been run — the logic is tested (kernel strings, .cmd/.ps1 shims, loopback-TCP daemon incl. its 403) but no process has executed there. Running it on either and reporting back is the most useful contribution right now.
DARWIN.md logs all ten rounds, including the ones where the fix was to stop measuring the wrong thing.