@langwatch/scenario
    Preparing search index...

    Interface ClaudeResultEnvelope

    The structured status the CLI fields on its terminal type: "result" line (verified against Claude Code 2.1.205). isError is the CLI's own success verdict — trust it over the process exit code (a stale --resume, for one, can report is_error: true). subtype categorises the outcome (error_during_execution, success, …) and errors carries the fielded failure sentences (e.g. "No conversation found with session ID: <id>"). Every field is optional: absent when no result line was emitted (older CLIs, a crash before the envelope) or when that field was not present.

    interface ClaudeResultEnvelope {
        errors?: string[];
        isError?: boolean;
        subtype?: string;
    }
    Index
    errors?: string[]
    isError?: boolean
    subtype?: string