/** * Type definitions for Codex SDK integration */ import type { PermissionMode } from '../../core/models/index.js'; import type { CodexPermissionControl } from '../../core/models/workflow-types.js'; import type { ProviderImageAttachment } from '../providers/types.js'; import type { ProviderActivityCallback, StreamCallback } from '../../shared/types/provider.js'; /** Codex sandbox mode values */ export type CodexSandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access'; /** Map TAKT PermissionMode to Codex sandbox mode */ export declare function mapToCodexSandboxMode(mode: PermissionMode): CodexSandboxMode; /** Options for calling Codex */ export interface CodexCallOptions { cwd: string; abortSignal?: AbortSignal; sessionId?: string; model?: string; reasoningEffort?: string; fastMode?: boolean; systemPrompt?: string; /** Permission mode for the TAKT-controlled sandbox */ permissionMode?: PermissionMode; /** Select whether TAKT or Codex controls permissions. */ permissionControl?: CodexPermissionControl; /** Name of the Codex config profile selected by the caller. */ configProfile?: string; /** Enable network access for the TAKT-controlled sandbox */ networkAccess?: boolean; /** Enable streaming mode with callback (best-effort) */ onStream?: StreamCallback; /** Notify the workflow inactivity deadline immediately before each provider attempt. */ onActivity?: ProviderActivityCallback; /** OpenAI API key (bypasses CLI auth) */ openaiApiKey?: string; /** OpenAI-compatible API base URL */ baseUrl?: string; /** Ambient Codex Skill scopes inherited by this call */ skills?: { repo: boolean; user: boolean; }; /** Override path to external Codex CLI binary (bypasses SDK vendored binary) */ codexPathOverride?: string; /** JSON Schema for structured output */ outputSchema?: Record; imageAttachments?: ProviderImageAttachment[]; /** Directory for full oversized failure text, written as private 0600 files; omission disables persistence. */ failureDir?: string; childProcessEnv?: Readonly>; /** Provider-prepared MCP material (issue #1137). */ preparedMcp?: import('../providers/mcp/types.js').PreparedProviderMcp; } export declare const CODEX_CONFIG_PROFILE_ENV = "TAKT_CODEX_CONFIG_PROFILE"; //# sourceMappingURL=types.d.ts.map