Cotal TypeScript packages
    Preparing search index...

    Interface WorkerRunRequest

    interface WorkerRunRequest {
        ceilings?: Readonly<
            Partial<
                Record<
                    | "conclave"
                    | "waitUntil"
                    | "spawn"
                    | "participant"
                    | "turn"
                    | "ask"
                    | "checkpoint"
                    | "sleep"
                    | "wait"
                    | "notify"
                    | "monitor",
                    number,
                >,
            >,
        >;
        cutAt?: string;
        effectCeiling?: number;
        entries?: readonly JournalEntry[];
        file?: string;
        handler: WorkerHandlerSpec
        | "bridged"
        | "inspection";
        module: string;
        pins?: RunPins;
        resultBytes?: number;
        runId: string;
        seed?: string;
        source: string;
        stepBudget?: number;
    }
    Index
    ceilings?: Readonly<
        Partial<
            Record<
                | "conclave"
                | "waitUntil"
                | "spawn"
                | "participant"
                | "turn"
                | "ask"
                | "checkpoint"
                | "sleep"
                | "wait"
                | "notify"
                | "monitor",
                number,
            >,
        >,
    >
    cutAt?: string

    Inspection stops before consuming this key; only valid on the inspection route.

    effectCeiling?: number
    entries?: readonly JournalEntry[]

    A resume: the recorded entries, rebuilt into the run's journal inside the thread.

    file?: string
    handler: WorkerHandlerSpec | "bridged" | "inspection"

    "bridged" keeps the handler in the host: the thread forwards the effect seam over a MessagePort instead of constructing a handler, and the caller supplies the live handler and store via WorkerRunOptions.bridge. A module handler is constructed in the worker. "inspection" builds a read-only journal there and receives no live handler or store.

    module: string
    pins?: RunPins
    resultBytes?: number

    The journal's result bound (JournalInit.resultBytes, L5006), given to the journal the thread builds. Only valid on the bridged route: it is the durable store's limit, and only that route has a store.

    runId: string
    seed?: string

    The caller's loose limits and seed, forwarded so the thread's bindPins performs the same agreement check (L5009) the in-process engines perform: with pins present these must agree or be absent, and dropping them at this boundary would silently skip that refusal.

    source: string
    stepBudget?: number