()
| 410 | } catch { return null; } |
| 411 | } |
| 412 | function readTerminalInternalToken(): string | null { |
| 413 | try { |
| 414 | const f = path.join(path.dirname(config.stateFile), 'terminal-internal-token'); |
| 415 | const t = fs.readFileSync(f, 'utf-8').trim(); |
| 416 | return t.length > 16 ? t : null; |
| 417 | } catch { return null; } |
| 418 | } |
| 419 | |
| 420 | /** |
| 421 | * Push a freshly-minted PTY cookie token to the terminal-agent so its |
no outgoing calls
no test coverage detected