Variables

TOOL_SESSIONS

Variable: TOOL_SESSIONS

const TOOL_SESSIONS: unique symbol

Defined in: src/core/codeRunnerTool.ts:147

The per-tool session map, riding the Tool under a REGISTRY symbol.

Symbol.for, not a unique symbol: this package ships CJS and ESM, and a tool built through one entry point must be readable through the other. The same move INNER_RUN_RECORDS makes for flowchartAsTool({ keepRecord }) — and deliberately a DIFFERENT symbol, so one tool can carry both (spreading a tool preserves symbol keys, which is why {...tool, [SYM]: store} composes).

Invisible to the LLM, invisible to Tool's shape, reachable by a test and by whatever inspector comes next.

On this page