diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-11-25 00:38:20 -0800 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-11-25 00:38:20 -0800 |
| commit | d285941c9f1f32c4f2588cf0091dbaa7d9b14bde (patch) | |
| tree | bf47a33f1c64b0dfd28886fb4948166d14bc5174 /skills/systematic-debugging | |
| parent | 8846ce0c7274fda2d81e84231540ff850108d701 (diff) | |
fix(systematic-debugging): import tmpdir in the Layer 3 guard snippetfix/wave1-systematic-debugging
The Layer 3 snippet in defense-in-depth.md imports resolve, normalize
and sep from node:path, then calls tmpdir(), which node:path does not
export. Run as written with NODE_ENV=test, the guard throws
"ReferenceError: tmpdir is not defined" for every path, the temp
directory included, before it checks anything. Import tmpdir from
node:os, as review finding F1 gives it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'skills/systematic-debugging')
| -rw-r--r-- | skills/systematic-debugging/defense-in-depth.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/skills/systematic-debugging/defense-in-depth.md b/skills/systematic-debugging/defense-in-depth.md index 80af59e..3505fb0 100644 --- a/skills/systematic-debugging/defense-in-depth.md +++ b/skills/systematic-debugging/defense-in-depth.md @@ -53,6 +53,7 @@ function initializeWorkspace(projectDir: string, sessionId: string) { **Purpose:** Prevent dangerous operations in specific contexts ```typescript +import { tmpdir } from 'node:os'; import { resolve, normalize, sep } from 'node:path'; async function gitInit(directory: string) { |
