Agent Client Protocol - v0.12.0
    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 = {
        _meta?: { [key: string]: unknown } | null;
        newText: string;
        oldText?: string | null;
        path: string;
    }
    Index

    Properties

    _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

    newText: string

    The new content after modification.

    oldText?: string | null

    The original content (None for new files).

    path: string

    The file path being modified.