ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias CommandPermissionSubject

    Permission request details for a command.

    type CommandPermissionSubject = {
        command: string;
        cwd: AbsolutePath;
        toolCallId?: ToolCallId | null;
        terminalId?: TerminalId | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    command: string

    The command that would be run if permission is granted.

    The absolute working directory for the command.

    toolCallId?: ToolCallId | null

    The associated tool call, when known. Omitted and null are equivalent.

    terminalId?: TerminalId | null

    The associated terminal, when already known. Omitted and null are equivalent.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility