Skip to content

acpAvailableCommandsV2

acpAvailableCommandsV2(): AcpAvailableCommand[]

Defined in: packages/agent/src/modules/acp/acpCommands.ts:158

The availableCommands payload for a v2 available_commands_update.

v2 turned the input into a discriminated union — TextCommandInput & { type: 'text' }, plus an open arm for variants that postdate this build — so the tag is required. Measured, because the direction is not symmetric: the v1 payload sent on v2 arrives at the client with input absent altogether, dropped by the schema rather than degraded to the open arm, so the user loses the hint that says the command takes a number. The other direction is harmless — v1’s schema simply strips the unknown type — which is why only this one can be read off the types.

AcpAvailableCommand[]