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

    Type Alias AuthMethodTerminal

    Terminal-based authentication method.

    The Client runs the configured Agent program as a separate interactive process for the user to authenticate via a TUI. Agents MUST advertise this method only when the Client enabled its terminal authentication capability. A zero exit status signals success. Any other termination signals failure. The Client MUST NOT pass this method to auth/login.

    type AuthMethodTerminal = {
        methodId: AuthMethodId;
        name: string;
        description?: string | null;
        args?: string[];
        env?: EnvVariable[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    methodId: AuthMethodId

    Unique identifier for this authentication method.

    name: string

    Human-readable name of the authentication method, shown to users as plain text.

    description?: string | null

    Optional human-readable description of this authentication method. May contain Markdown.

    Omitted and null are equivalent and mean no description is provided.

    args?: string[]

    Additional arguments to append to the configured Agent invocation for terminal auth.

    env?: EnvVariable[]

    Additional environment variables to set on the configured Agent invocation for terminal auth. Names SHOULD be unique, and otherwise the last entry wins. These values override same-named variables in the base launch configuration.

    _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