vigiles API reference
    Preparing search index...

    Interface MockHandle

    interface MockHandle {
        count: number;
        requests: readonly ModelRequest[];
        sideChannelCount: number;
        url: string;
        close(): void;
    }
    Index

    Properties

    count: number

    Number of SCRIPT turns served so far — MAIN-LOOP requests only. A side-channel request is answered without touching the script and is not counted here, so this is the agent's turn count rather than the CLI's HTTP-call count. (Before 2026-08-12 it was the latter: a 3-entry script against Claude Code 2.1.228 reported 27.)

    requests: readonly ModelRequest[]

    Every /v1/messages request the mock received, in order.

    sideChannelCount: number

    Side-channel requests answered so far — never script-consuming.

    url: string

    Methods