tarlatan
    Preparing search index...

    Variable codexStreamLineConst

    codexStreamLine: (
        line: string,
    ) => StreamLine<
        | { type: "thread.started" }
        | { type: "turn.started" }
        | { type: "turn.completed"; usage?: { readonly [key: string]: unknown } }
        | { error?: { readonly [key: string]: unknown }; type: "turn.failed" }
        | { message?: string; type: "error" },
    > = ...

    Reads one --json line for classification (review item B13): a turn.completed, turn.failed or error event must decode; any other event object is passed over; anything else is malformed.

    Type Declaration

      • (
            line: string,
        ): StreamLine<
            | { type: "thread.started" }
            | { type: "turn.started" }
            | { type: "turn.completed"; usage?: { readonly [key: string]: unknown } }
            | { error?: { readonly [key: string]: unknown }; type: "turn.failed" }
            | { message?: string; type: "error" },
        >
      • Parameters

        • line: string

        Returns StreamLine<
            | { type: "thread.started" }
            | { type: "turn.started" }
            | { type: "turn.completed"; usage?: { readonly [key: string]: unknown } }
            | { error?: { readonly [key: string]: unknown }; type: "turn.failed" }
            | { message?: string; type: "error" },
        >