rea-agents
    Preparing search index...

    Stateful evaluator for one validated replay-machine instance.

    Index
    • Parameters

      • machine: {
            initial_state: string;
            limits: {
                bytes: number;
                connections: number;
                duration_ms: number;
                messages: number;
            };
            max_transitions: number;
            states: { max_visits: number; name: string; terminal: boolean }[];
            transitions: {
                actions: (
                    | {
                        body: string;
                        headers: Record<string, string>;
                        status: number;
                        type: "http_response";
                    }
                    | { data: string; type: "websocket_send" }
                    | { type: "disconnect" }
                    | { duration_ms: number; type: "delay" }
                )[];
                captures: {
                    sensitive: boolean;
                    value:
                        | { name: string; source: "request_header" }
                        | { path: (string | number)[]; source: "request_json" }
                        | { path: (string | number)[]; source: "websocket_json" }
                        | { path: (string | number)[]; source: "action_json" };
                    variable: string;
                }[];
                from: string;
                guards: {
                    value: | { name: string; source: "request_header" }
                    | { path: (string | number)[]; source: "request_json" }
                    | { path: (string | number)[]; source: "websocket_json" }
                    | { path: (string | number)[]; source: "action_json" };
                    variable: string;
                }[];
                id: string;
                max_uses: number;
                priority: number;
                to: string;
                trigger: | {
                    body: string
                    | null;
                    headers: { [k: string]: string };
                    method: string;
                    path: string;
                    protocol: "http";
                }
                | {
                    headers: { [k: string]: string };
                    path: string;
                    protocol: "websocket_connect";
                }
                | { body: string
                | null; path: string; protocol: "websocket_message" };
            }[];
        }

      Returns ReplayMachineRuntime

    machine: {
        initial_state: string;
        limits: {
            bytes: number;
            connections: number;
            duration_ms: number;
            messages: number;
        };
        max_transitions: number;
        states: { max_visits: number; name: string; terminal: boolean }[];
        transitions: {
            actions: (
                | {
                    body: string;
                    headers: Record<string, string>;
                    status: number;
                    type: "http_response";
                }
                | { data: string; type: "websocket_send" }
                | { type: "disconnect" }
                | { duration_ms: number; type: "delay" }
            )[];
            captures: {
                sensitive: boolean;
                value:
                    | { name: string; source: "request_header" }
                    | { path: (string | number)[]; source: "request_json" }
                    | { path: (string | number)[]; source: "websocket_json" }
                    | { path: (string | number)[]; source: "action_json" };
                variable: string;
            }[];
            from: string;
            guards: {
                value: | { name: string; source: "request_header" }
                | { path: (string | number)[]; source: "request_json" }
                | { path: (string | number)[]; source: "websocket_json" }
                | { path: (string | number)[]; source: "action_json" };
                variable: string;
            }[];
            id: string;
            max_uses: number;
            priority: number;
            to: string;
            trigger: | {
                body: string
                | null;
                headers: { [k: string]: string };
                method: string;
                path: string;
                protocol: "http";
            }
            | {
                headers: { [k: string]: string };
                path: string;
                protocol: "websocket_connect";
            }
            | { body: string
            | null; path: string; protocol: "websocket_message" };
        }[];
    }
    • Replace captured secret values with stable aliases before persistence.

      Parameters

      • value: string

      Returns string