* Mirror the slug logic from runtimes/claude-code/adapters/session-tokens.js * so we write JSONL to the exact path the adapter will look for.
(projectDir)
| 30 | * so we write JSONL to the exact path the adapter will look for. |
| 31 | */ |
| 32 | function projectSlug(projectDir) { |
| 33 | const normalized = projectDir.replace(/\\/g, '/'); |
| 34 | return normalized.replace(/^\//, '').replace(/:/g, '-').replace(/\//g, '-'); |
| 35 | } |
| 36 | |
| 37 | function makeSandbox() { |
| 38 | const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'citadel-cost-')); |
no outgoing calls
no test coverage detected