vigiles API reference
    Preparing search index...

    Interface ResponseView

    A view of a tool's RESPONSE (PostToolUse) — the matching primitive a react hook reasons over (e.g. capture/notify only when a command FAILED). The author never parses the raw payload shape.

    interface ResponseView {
        raw: string;
        contains(needle: string): boolean;
        isError(): boolean;
    }
    Index

    Properties

    Methods

    Properties

    raw: string

    The response as text (an object payload is JSON-stringified).

    Methods

    • True iff the response text contains needle.

      Parameters

      • needle: string

      Returns boolean

    • True iff the tool reported a failure — a truthy error/is_error field on a structured payload, or a leading Error/error: line on a text one.

      Returns boolean