/** * Codex app-server session: spawn stdio JSON-RPC, run one turn with Effect tools. * Wire-format decoding lives in codexProtocol.ts. */ import * as Duration from "effect/Duration"; import * as Effect from "effect/Effect"; import { AiError } from "effect/unstable/ai"; import { ChildProcessSpawner } from "effect/unstable/process"; import { type ToolTurn, type ToolTurnInput } from "./toolkit.ts"; export interface AppServerConfig { readonly bin: string; readonly model?: string | undefined; readonly cwd?: string | undefined; readonly sandbox: "read-only" | "workspace-write" | "danger-full-access"; readonly timeout: Duration.Duration; } export type CodexToolRunInput = ToolTurnInput & { readonly config: AppServerConfig; }; export declare const runTurnWithTools: (input: CodexToolRunInput) => Effect.Effect; //# sourceMappingURL=codexAppServer.d.ts.map