codeburn/mac/Tests
sm0keyyy dda323460b
fix(mac): resolve a Nix-provided node when spawning the codeburn CLI
On a nix-darwin machine node lives only in /etc/profiles/per-user/$USER/bin,
which appears in neither additionalPathEntries nor userNodePaths. The CLI shim
begins '#!/usr/bin/env node', so the spawn dies with
'env: node: No such file or directory' and exit status 127.

GUI apps normally inherit those directories from 'launchctl config user path',
stored in /var/db/com.apple.xpc.launchd/config/user.plist, which a macOS system
update deletes. Re-applying it is not durable, so name the Nix locations in
userNodePaths instead. That feeds both installedArgv() discovery and
augmentedPath() interpreter resolution.

Also adds ~/.local/bin, the bin directory for the common 'prefix = ~/.local'
npm configuration, which installedArgv() could not otherwise discover.

Entries are appended, so existing matches keep their precedence.
2026-09-05 22:56:57 -04:00
..
CodeBurnMenubarTests fix(mac): resolve a Nix-provided node when spawning the codeburn CLI 2026-09-05 22:56:57 -04:00