eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
49 lines • 1.49 kB
TypeScript
import type { CodeModeDeterminismState, NormalizedCodeModeOptions, SerializableError } from "../types.js";
export interface WorkerRunMessage {
type: "run";
invocationId: string;
js: string;
determinism: CodeModeDeterminismState;
options: Pick<NormalizedCodeModeOptions, "timeoutMs" | "memoryLimitBytes" | "maxStackSizeBytes" | "maxResultBytes" | "fetchEnabled">;
}
export interface WorkerToolRequest {
type: "tool-request";
invocationId: string;
requestId: string;
toolName: string;
inputJson: string;
}
export interface WorkerFetchRequest {
type: "fetch-request";
invocationId: string;
requestId: string;
request: {
url: string;
method?: string;
headers?: Record<string, string>;
body?: string;
};
}
export interface WorkerBridgeResponse {
type: "bridge-response";
invocationId: string;
requestId: string;
success: boolean;
dateNowMs: number;
valueJson?: string;
error?: SerializableError;
}
export interface WorkerResultMessage {
type: "result";
invocationId: string;
success: boolean;
valueJson?: string;
error?: SerializableError;
}
export interface WorkerReadyMessage {
type: "ready";
invocationId: string;
}
export type WorkerToMainMessage = WorkerToolRequest | WorkerFetchRequest | WorkerResultMessage | WorkerReadyMessage;
export type MainToWorkerMessage = WorkerRunMessage | WorkerBridgeResponse;
//# sourceMappingURL=protocol.d.ts.map