ACP v2 TypeScript SDK — EXPERIMENTAL DRAFT - v1.3.0
    Preparing search index...

    Type Alias NesEditSuggestionExperimental

    A text edit suggestion.

    type NesEditSuggestion = {
        suggestionId: NesSuggestionId;
        uri: string;
        edits: NesTextEdit[];
        cursorPosition?: Position | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    suggestionId: NesSuggestionId

    Unique identifier for accept/reject tracking.

    uri: string

    The URI of the file to edit.

    edits: NesTextEdit[]

    The text edits to apply. Must contain at least one edit.

    cursorPosition?: Position | null

    Optional suggested cursor position after applying edits.

    _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