Private ReadonlysessionTool names the user allowed for the whole session.
Private ReadonlywaitingApprovals that wait for an answer, by approval id.
PrivatenextPrivatelastThe id of the last tool_call event on the bus. check() gets no call
id, but the session emits tool_call right before it runs the call, and
calls run one at a time, so this is the call that waits.
Private ReadonlybusEmits approval_needed on the bus when it must ask, then waits.
Emits plan_approval_needed and waits. Used by the scheduler.
Answers a waiting approval. Called by the session and the TUI.
PrivatemustPrivatewaitRegisters a waiting approval, calls announce to emit its event, and
waits for resolve() or an abort. Emits approval_resolved either way.
The PermissionGate of a session.