PAI/PULSE/run-job.ts:31 hardcodes "PAI/Pulse" (lowercase L) — works on APFS, breaks on case-sensitive filesystems
Summary
PAI/PULSE/run-job.ts:31 hardcodes ~/.claude/PAI/Pulse (lowercase L), but the directory shipped in v5.0.0 is ~/.claude/PAI/PULSE (uppercase). Works on macOS APFS (case-insensitive by default). Fails on case-sensitive filesystems — Linux ext4/BTRFS/XFS, manually-formatted case-sensitive APFS, Docker images built on top of node:, ubuntu:, etc.
Code
// PAI/PULSE/run-job.ts:31
const PULSE_DIR = join(process.env.HOME ?? "~", ".claude", "PAI", "Pulse")
const config = await loadConfig(PULSE_DIR)
const job = config.jobs.find((j) => j.name === jobName)
if (!job) {
console.error(`Job "${jobName}" not found...`)
process.exit(1)
}
On a case-sensitive filesystem, loadConfig will fail to find PULSE.toml because PAI/Pulse/ doesn't exist (only PAI/PULSE/ does), and run-job.ts will exit 1 with a misleading "Job not found" message — not pointing at the actual root cause.
Reproduce
# On any case-sensitive filesystem
cd ~/.claude
ls -d PAI/Pulse 2>&1 # ls: cannot access 'PAI/Pulse': No such file or directory
ls -d PAI/PULSE # PAI/PULSE (the real directory)
cd PAI/PULSE
bun run run-job.ts cost-aggregation
# Error: Failed to load config from /home/user/.claude/PAI/Pulse — exits 1
Suggested fix
-const PULSE_DIR = join(process.env.HOME ?? "~", ".claude", "PAI", "Pulse")
+const PULSE_DIR = join(process.env.HOME ?? "~", ".claude", "PAI", "PULSE")
Worth a quick repo-wide scan for the same typo: grep -rn '"Pulse"' --include='*.ts' and grep -rn '/PAI/Pulse' --include='*.ts'. The release tooling at ShadowRelease.ts and the install scripts may have similar latent typos.
Environment
PAI v5.0.0, all platforms — latent on macOS (APFS case-insensitive), breaking on Linux / case-sensitive APFS / Docker.