@mastra/core
Version:
18 lines • 771 B
TypeScript
/**
* Code Mode — stdio JSON-RPC transport (v1)
*
* Runs the runner inside the sandbox via `sandbox.processes.spawn`, parses
* protocol frames off stdout, dispatches `external_*` calls back to the host,
* and writes results to the runner stdin. Abstracted behind
* {@link CodeModeTransport} so socket/file-queue transports can be added for
* remote sandboxes later.
*/
import type { CodeModeToolResult, CodeModeTransport } from './types.js';
/**
* Default transport: writes the runner to a temp dir, spawns
* `node <runner>`, and bridges RPC over stdio.
*/
export declare class StdioCodeModeTransport implements CodeModeTransport {
run(opts: Parameters<CodeModeTransport['run']>[0]): Promise<CodeModeToolResult>;
}
//# sourceMappingURL=transport.d.ts.map