disclaw/tests/unit
Nick Tabeling dc4a1ef241 feat(runtime): add startup lockfile to prevent double-start
Implements acquireLock() in src/runtime/lockfile.ts that writes a PID-stamped
lock file under workspaces_root, detects live vs stale locks via process.kill(pid, 0),
and returns a release function. src/index.ts acquires the lock before DB init and
releases it in the graceful-shutdown handler. Four unit tests cover acquire, duplicate-
acquire rejection, stale-lock recovery, and release.
2026-04-09 11:49:17 +02:00
..
identity-templates.test.ts feat(identity): harden settings.json template, add injection-resistance clause 2026-04-09 11:19:19 +02:00
lockfile.test.ts feat(runtime): add startup lockfile to prevent double-start 2026-04-09 11:49:17 +02:00
path-traversal.test.ts fix(new-agent): add path traversal containment check 2026-04-09 11:19:28 +02:00
resolve-claude.test.ts fix(runner): replace shell:true with cross-spawn, add resolveClaude 2026-04-09 10:29:58 +02:00
sanitize-env.test.ts fix(runner): add sanitizedEnv, remove process.env passthrough 2026-04-09 10:39:06 +02:00
workspace-root-resolve.test.ts feat(config): move workspaces_root to home dir, add tilde expansion 2026-04-09 10:40:34 +02:00