Interface: KabooApprovalOptions¶
Defined in: src/approvals.ts:122
Options for remembered approvals — see KabooRunnerOptions.approvals.
Properties¶
grants?¶
optionalgrants?:GrantStore
Defined in: src/approvals.ts:130
Where remembered decisions live. When set (and the thread has an owner), the runner saves "allow for this chat" and "always allow" answers and hands every run the owner's permissions, which is also what tells the agent it may offer those scopes. Omit it to offer only "approve once". Decisions on requests a tool raised itself are never saved here.
onDecision?¶
optionalonDecision?: (decisions,context) =>void|Promise\<void>
Defined in: src/approvals.ts:141
Called with the person's decisions before the run continues and before
any grant is saved — for audit, or to register approvals with a service
that enforces them. A decision with a request came from a tool that
enforces its own approvals: forward it to that tool's service, and only
to it. If this throws, no grant is saved, the run ends with an error that
carries the thrown message, and the requests stay pending, so the person
can answer again. Answering again resends every decision of that resume,
so accept a decision the service has already taken.
Parameters¶
decisions¶
context¶
Returns¶
void | Promise\<void>