import type { AgentRuntimeProvider, AgentRuntimeProviderCapabilities, AgentRuntimeSystemPrompt } from '@excitedjs/dreamux-types'; import { type DispatcherCodexConfig } from './config.js'; /** * Construction options for the built-in Codex provider. The runtime's host * contracts arrive on the NEUTRAL create context, not as factory hooks: * volatile socket placement comes from `context.paths.runtimeSocketDirs()` (this * package owns the allocation policy). Role-gated bundled skills arrive as * neutral `skillSources`. Registration identity is Core's: the provider * carries no descriptor. The optional settings here control restart backoff; * this package constructs its native process and WebSocket client directly. The Codex home/auth pre-start check * runs unconditionally as part of `diagnostic.ts`'s doctor capability, not as * a runtime-start hook. */ export interface CodexAgentRuntimeProviderOptions { restartBackoffBaseMs?: number; restartBackoffMaxMs?: number; } /** * Provider-static selection metadata. Recovery, session-bound structured * output, and recent Activity reads are mandatory provider behavior, so none of * them is advertised here. */ export declare const CODEX_AGENT_RUNTIME_CAPABILITIES: AgentRuntimeProviderCapabilities; export declare function codexSystemPromptReplace(systemPrompt: AgentRuntimeSystemPrompt | undefined): string | undefined; export declare function codexSystemPromptAppend(systemPrompt: AgentRuntimeSystemPrompt | undefined): readonly string[] | undefined; /** * Create the built-in Codex `AgentRuntimeProvider`. It implements the neutral * `@excitedjs/dreamux-types` contract: `config.read` parses Codex runtime * config, `readRecentActivity` serves neutral Activity Records for any session, * and `createRuntime` builds a {@link CodexRuntime} from the neutral create * context plus the host-supplied hooks. * * Codex resumes from its thread id alone, which it publishes as the neutral * opaque session id. */ export declare function createCodexAgentRuntimeProvider(options?: CodexAgentRuntimeProviderOptions): AgentRuntimeProvider; //# sourceMappingURL=provider.d.ts.map