vigiles API reference
    Preparing search index...

    Interface HarnessTestDriver

    What a harness brings so runHarnessTest can drive it. Implemented in each adapter (claudeCodeDriver, codexDriver) and carried on the HarnessAdapter as harnessTestDriver.

    interface HarnessTestDriver {
        runtime: HarnessRuntime;
        available(): boolean;
        buildArgs(ctx: HarnessDriverContext): readonly string[];
        parseRun(stdout: string): ParsedRun;
        startMock(script: readonly ModelTurn[]): Promise<HarnessMockHandle>;
    }
    Index

    Properties

    The transport (binary to spawn + how to reach the mock via wireMock).

    Methods

    • The non-interactive argv for one run. Pure, so it's unit-tested.

      Parameters

      • ctx: HarnessDriverContext

      Returns readonly string[]

    • Parse the harness's stdout into the unified trace fields.

      Parameters

      • stdout: string

      Returns ParsedRun

    • Start this harness's scripted mock for the given turn script.

      Parameters

      Returns Promise<HarnessMockHandle>