Smith::Tools::Registry
Inherits Reference < Object
Constructors
Factory helper to register default standard toolset.
todos defaults to a fresh list for the same reason approver defaults
to allowing everything: the Registry stays usable as a plain library
component. Callers that want to observe or persist the plan — the CLI —
pass their own list in.
Instance methods
Defaults to allowing everything so Registry stays usable as a plain library component. Callers that have a user in front of them — the CLI — must attach a real approver.
Defaults to allowing everything so Registry stays usable as a plain library component. Callers that have a user in front of them — the CLI — must attach a real approver.
Snapshots taken before a mutating call, so a run can be undone. nil leaves the registry exactly as it was.
Snapshots taken before a mutating call, so a run can be undone. nil leaves the registry exactly as it was.
Executes a batch of tool requests. Runs adjacent parallel-safe tools concurrently via Fibers.
Same reasoning as approver: an empty runner keeps Registry usable as a plain library component, and the CLI attaches the configured one.
Same reasoning as approver: an empty runner keeps Registry usable as a plain library component, and the CLI attaches the configured one.
Used by the mode switch, which registers exit_plan_mode only while plan mode is active. Returns whether anything was actually removed.