Interface: WorkingToolRegistry
Defined in: src/batteries/context/thrift/contracts.ts:182
The MINIMAL tool-registry surface the pass needs — not the full core ToolRegistry class. Only all() (enumerate every registered tool, to compute the tools bucket's "before" weight) and setHidden(...names) (replace the entire hidden set — the mechanism by which a shed tool becomes invisible to the model while remaining callable via a catalog) are invoked.
Remarks
setHidden REPLACES the whole hidden set on each call (matching core ToolRegistry.setHidden's contract) — the pass always passes the COMPLETE set of currently-hidden tool names, never a delta. A structural registry that instead accumulates hidden names across calls would over-hide.
Methods
all()
all(): WorkingTool[];Defined in: src/batteries/context/thrift/contracts.ts:184
Every tool currently registered (visible or hidden).
Returns
setHidden()
setHidden(...names: string[]): void;Defined in: src/batteries/context/thrift/contracts.ts:186
Replace the registry's entire hidden set with exactly these tool names.
Parameters
| Parameter | Type |
|---|---|
...names | string[] |
Returns
void