Agent Armor API Reference
    Preparing search index...

    Interface TextEdit

    One edit to the scanned text: replace length characters at offset with replacement.

    interface TextEdit {
        length: number;
        offset: number;
        replacement: string;
        severity: Severity;
    }
    Index
    length: number

    How many characters of the original it covers.

    offset: number

    Where the edit starts, in the original text.

    replacement: string

    What replaces them (empty to remove).

    severity: Severity

    How dangerous the finding behind it is; the higher one wins when edits overlap.