codeburn/packages/cli
iamtoruk e7c6dc1560 test(cli): refuse to overwrite a real privacy key from the test helper
fixed-privacy-key.ts writes <home>/.config/codeburn/privacy-key
unconditionally. Under vitest that is the throwaway sandbox
env-isolation.ts mints, and harmless. Imported from anywhere else — tsx,
a stray node -e, a REPL — homedir() is the developer's real home and the
write silently replaces their key, re-keying every resource fingerprint
and orphaning whatever was already synced. privacy-key.ts refuses to
cause that on its own; a test helper must not cause it either.

The sandbox has a recognizable shape (a mkdtemp dir under tmpdir() named
codeburn-test-env-*), so the guard needs no new marker: anything else
throws with the reason.
2026-08-21 10:48:21 -07:00
..
src fix(cli): select the privacy-key fold set explicitly, not by substring 2026-08-21 10:48:21 -07:00
tests test(cli): refuse to overwrite a real privacy key from the test helper 2026-08-21 10:48:21 -07:00
package.json chore: hold workspace versions at 0.9.20, defer the bump to release 2026-08-21 10:38:17 -07:00
tsconfig.json chore(workspace): move CLI to packages/cli, add @codeburn/core skeleton (phase 1) 2026-07-26 10:19:33 -07:00
tsup.config.ts chore(workspace): move CLI to packages/cli, add @codeburn/core skeleton (phase 1) 2026-07-26 10:19:33 -07:00
vitest.config.ts test(cli): restore CI timeout headroom and lock-suite quarantine lost in packages/cli split 2026-08-21 08:28:55 -07:00