Agent Client Protocol - v1.2.1
    Preparing search index...

    Type Alias Diff

    A diff representing file modifications.

    Shows changes to files in a format suitable for display in the client UI.

    See protocol docs: Content

    type Diff = {
        path: string;
        oldText?: string | null;
        newText: string;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    path: string

    The absolute file path being modified.

    oldText?: string | null

    The original content (None for new files).

    newText: string

    The new content after modification.

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

    The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.

    See protocol docs: Extensibility