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

    Type Alias SessionInfo

    Information about a session returned by session/list

    type SessionInfo = {
        sessionId: SessionId;
        cwd: AbsolutePath;
        additionalDirectories?: AbsolutePath[];
        title?: string | null;
        updatedAt?: string | null;
        archived?: boolean | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    sessionId: SessionId

    Unique identifier for the session

    The working directory for this session. Must be an absolute path.

    additionalDirectories?: AbsolutePath[]

    Additional workspace roots reported for this session. Each path MUST be absolute.

    When present, this is the complete ordered additional-root list reported by the Agent. Omitted and empty values are equivalent: the response reports no additional roots.

    title?: string | null

    Human-readable title for the session, in plain text.

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

    updatedAt?: string | null

    RFC 3339 timestamp of last activity.

    Omitted and null are equivalent and mean the last activity time is not reported.

    archived?: boolean | null

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    Whether the session is archived.

    Optional. Omitted and null are equivalent and mean the archive state is not reported. Agents that advertise the session.archive capability MUST include it on every listed session.

    _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