Skip to content
providerkit
GitHub

CodeJobResult

type CodeJobResult =
| {
envelope: string;
ok: true;
}
| {
error: {
line?: number;
message: string;
name: | "SyntaxError"
| "ProgramError"
| "TimeoutError"
| "CpuLimitError"
| "MemoryLimitError"
| "StackLimitError"
| "AbortError"
| "EngineError";
};
ok: false;
};

Defined in: agents/src/code-driver.ts:30