runAcpSessionCommand
runAcpSessionCommand(
runner,invocation):string
Defined in: packages/agent/src/modules/acp/acpCommands.ts:274
Run one advertised command and return what the client should be told.
Pure apart from the runner it is handed: no protocol types, no connection, no dialect. Both apps call this and then put the string in the conversation in their own dialect’s shape.
The argument parse and every notice but the two above are the SHARED ones the terminal surfaces
render. That matters most for the number: parseApprovalsArg rejects a non-integer, a zero and a
negative rather than coercing them, because this command REMOVES a protection and a coerced
argument would remove a different one than the user named. A second parser here would be free to
drift from that on any later edit.
Parameters
Section titled “Parameters”runner
Section titled “runner”invocation
Section titled “invocation”Returns
Section titled “Returns”string