import { Dr as AgentMessage } from "./proxy-CGIA3yMu.js";
import { s as appendSessionTranscriptMessage } from "./types-COG01TRW.js";
import { o as ExecApprovalDecision } from "./exec-approvals-CPpcfY0H.js";
import { f as isSubagentSessionKey } from "./session-key-fJM_U9Lv.js";
import { p as resolveUserPath } from "./utils-DSrjARXN.js";
import { r as VERSION } from "./version-C1kCd9e0.js";
import { $c as MessagingToolSourceReplyPayload, $i as wrapToolWithBeforeToolCallHook, Ai as AgentHarnessResetParams, Ar as CodexAppServerToolResultHandlerResult, Bi as NormalizedUsage, Di as AgentHarnessCompactParams, Dr as CodexAppServerExtensionFactory, Ea as ContextEngineProjection, Ei as AgentHarnessAttemptResult, Er as CodexAppServerExtensionContext, Fi as AgentHarnessSupportContext, Fs as resolveModelAuthMode, Gi as DeferredPluginToolApproval, Gr as AgentToolResultMiddlewareEvent, Ii as CompactEmbeddedAgentSessionParams, Io as emitSessionTranscriptUpdate, Ji as hasBeforeToolCallPolicy, Jr as AgentToolResultMiddlewareResult, Kr as AgentToolResultMiddlewareHarness, Li as EmbeddedRunAttemptParams, Mi as AgentHarnessSideQuestionParams, Ni as AgentHarnessSideQuestionResult, Oi as AgentHarnessCompactResult, Or as CodexAppServerExtensionRuntime, Pi as AgentHarnessSupport, Qc as MessagingToolSend, Qi as setBeforeToolCallDiagnosticsEnabled, Ri as EmbeddedRunAttemptResult, Ta as ContextEngineOperation, Ti as AgentHarnessAttemptParams, Ur as AgentToolResultMiddleware, Vi as normalizeUsage, Wi as BeforeToolCallPolicyDiagnosticState, Wr as AgentToolResultMiddlewareContext, Xc as EmbeddedAgentCompactResult, Xi as requestDeferredPluginToolApproval, Xr as NodmixAgentToolResult, Yi as isToolWrappedWithBeforeToolCallHook, Yr as AgentToolResultMiddlewareRuntime, Zi as runBeforeToolCallHook, ba as ContextEngine, el as HEARTBEAT_RESPONSE_TOOL_NAME, ga as resolveContextEngineOwnerPluginId, ji as AgentHarnessResultClassification, ki as AgentHarnessDeliveryDefaults, kr as CodexAppServerToolResultEvent, nl as normalizeHeartbeatToolResponse, qi as getBeforeToolCallPolicyDiagnosticState, qr as AgentToolResultMiddlewareOptions, ta as resolveEmbeddedAgentRuntime, tl as HeartbeatToolResponse, wi as AgentHarness, xa as ContextEngineHostCapability } from "./types-CLo6hM78.js";
import { t as EmbeddedContextFile } from "./types-7Vl6d1IJ.js";
import { r as AnyAgentTool } from "./common-C7RKFa1F.js";
import { M as resolveAgentDir, P as resolveDefaultAgentDir, S as resolveSessionAgentIds } from "./agent-scope-BDK4-ykR.js";
import { S as resetAgentEventsForTest, _ as AgentApprovalEventData, b as emitAgentEvent, v as AgentEventPayload, x as onAgentEvent } from "./types-9pLlV7aO.js";
import { $ as inspectRuntimeToolInputSchemas, A as buildHarnessContextEngineRuntimeContextFromUsage, At as NativeHookRelayRegistrationHandle, B as acquireSessionWriteLock, C as formatPrePromptPrecheckLog, Ct as buildAgentRuntimePlan, D as assembleHarnessContextEngine, Dt as NativeHookRelayEvent, E as resolveCompactionTimeoutMs, Et as buildAgentHookContextChannelFields, F as createCodexAppServerToolResultExtensionRunner, Ft as resolveNativeHookRelayDeferredToolApproval, G as resolveBootstrapFilesForRun, H as resolveSessionWriteLockOptions, I as resolveAgentHarnessBeforePromptBuildResult, It as testing, J as resolveWritableSandboxBindHostRoots, K as hasSandboxBindContainerPathAliases, L as runAgentHarnessAfterCompactionHook, Lt as CodexBundleMcpThreadConfig, M as isActiveHarnessContextEngine, Mt as hasNativeHookRelayInvocation, N as runHarnessContextEngineMaintenance, Nt as invokeNativeHookRelay, O as bootstrapHarnessContextEngine, Ot as NativeHookRelayProcessResponse, P as createAgentToolResultMiddlewareRunner, Pt as registerNativeHookRelay, Q as RuntimeToolSchemaDiagnostic, R as runAgentHarnessBeforeCompactionHook, Rt as LoadCodexBundleMcpThreadConfigParams, S as estimateRenderedLlmBoundaryTokenPressure, St as classifyEmbeddedAgentRunResultForModelFallback, T as compactContextEngineWithSafetyTimeout, Tt as runAgentCleanupStep, U as buildBootstrapContextForFiles, V as resolveSessionWriteLockAcquireTimeoutMs, W as resolveBootstrapContextForRun, X as RuntimeToolInputSchemaJson, Y as normalizeProviderToolSchemas, Z as RuntimeToolInputSchemaProjection, _ as runAgentHarnessAfterToolCallHook, _t as listNodes, a as classifyAgentHarnessTerminalOutcome, at as applyEmbeddedAttemptToolsAllow, b as PREEMPTIVE_OVERFLOW_ERROR_TEXT, bt as NodeListNode, c as inferToolMetaFromArgs, ct as buildEmbeddedAttemptToolRunContext, d as awaitAgentHarnessAgentEndHook, dt as supportsModelTools, et as projectRuntimeToolInputSchema, f as getAgentHarnessHookRunner, ft as extractToolResultMediaArtifact, g as runAgentHarnessLlmOutputHook, gt as formatToolAggregate, h as runAgentHarnessLlmInputHook, ht as isMessagingToolSendAction, i as ToolProgressDetailMode, it as getPluginToolMeta, j as finalizeHarnessContextEngineTurn, jt as buildNativeHookRelayCommand, k as buildHarnessContextEngineRuntimeContext, kt as NativeHookRelayProvider, l as loadCodexBundleMcpThreadConfig, lt as resolveAttemptSpawnWorkspaceDir, m as runAgentHarnessBeforeAgentFinalizeHook, mt as isMessagingTool, n as AgentHarnessTerminalOutcomeInput, nt as normalizeAgentRuntimeTools, o as detectAndLoadAgentHarnessPromptImages, ot as resolveEmbeddedAttemptToolConstructionPlan, p as runAgentHarnessAgentEndHook, pt as filterToolResultMediaUrls, q as hasSandboxBindReadonlyHostShadows, r as TOOL_PROGRESS_OUTPUT_MAX_CHARS, rt as disposeRegisteredAgentHarnesses, s as formatToolProgressOutput, st as createNodmixCodingTools, t as AgentHarnessTerminalOutcomeClassification, tt as logAgentRuntimeToolDiagnostics, u as queueAgentHarnessMessage, ut as resolveAttemptFsWorkspaceOnly, v as runAgentHarnessBeforeMessageWriteHook, vt as resolveNodeIdFromList, w as shouldPreemptivelyCompactBeforePrompt, wt as log, x as PreemptiveCompactionDecision, xt as callGatewayTool, y as LlmBoundaryTokenPressure, yt as selectDefaultNodeFromList, z as SessionWriteLockAcquireTimeoutConfig } from "./agent-harness-runtime-BNxX7gNK.js";
import { a as setActiveEmbeddedRun, i as resolveActiveEmbeddedRunSessionId, n as abortEmbeddedAgentRun, r as clearActiveEmbeddedRun } from "./runs-DlmafMym.js";
import { a as formatErrorMessage } from "./errors-D0VpUbWO.js";
import { t as formatApprovalDisplayPath } from "./approval-display-paths-BZUolZl-.js";
import { t as resolveNodmixAgentDir } from "./agent-dir-compat-CkVEf4ES.js";
import { M as SandboxContext, P as SandboxWorkspaceAccess, j as resolveSandboxContext } from "./sandbox-CLTeRwZl.js";
import { n as assertContextEngineHostSupport, t as CODEX_APP_SERVER_CONTEXT_ENGINE_HOST } from "./host-compat-CPZfl3cu.js";
export { type AgentApprovalEventData, type AgentEventPayload, type AgentHarness, type AgentHarnessAttemptParams, type AgentHarnessAttemptResult, type AgentHarnessCompactParams, type AgentHarnessCompactResult, type AgentHarnessDeliveryDefaults, type AgentHarnessResetParams, type AgentHarnessResultClassification, type AgentHarnessSideQuestionParams, type AgentHarnessSideQuestionResult, type AgentHarnessSupport, type AgentHarnessSupportContext, AgentHarnessTerminalOutcomeClassification, AgentHarnessTerminalOutcomeInput, type AgentMessage, type AgentToolResultMiddleware, type AgentToolResultMiddlewareContext, type AgentToolResultMiddlewareEvent, type AgentToolResultMiddlewareHarness, type AgentToolResultMiddlewareOptions, type AgentToolResultMiddlewareResult, type AgentToolResultMiddlewareRuntime, type AnyAgentTool, type BeforeToolCallPolicyDiagnosticState, CODEX_APP_SERVER_CONTEXT_ENGINE_HOST, type CodexAppServerExtensionContext, type CodexAppServerExtensionFactory, type CodexAppServerExtensionRuntime, type CodexAppServerToolResultEvent, type CodexAppServerToolResultHandlerResult, type CodexBundleMcpThreadConfig, type CompactEmbeddedAgentSessionParams, type CompactEmbeddedAgentSessionParams as CompactEmbeddedPiSessionParams, type ContextEngineHostCapability, type ContextEngineOperation, type ContextEngineProjection, type DeferredPluginToolApproval, type EmbeddedAgentCompactResult, type EmbeddedAgentCompactResult as EmbeddedPiCompactResult, type EmbeddedContextFile, type EmbeddedRunAttemptParams, type EmbeddedRunAttemptResult, type ExecApprovalDecision, HEARTBEAT_RESPONSE_TOOL_NAME, type ContextEngine as HarnessContextEngine, type HeartbeatToolResponse, type LlmBoundaryTokenPressure, type LoadCodexBundleMcpThreadConfigParams, type MessagingToolSend, type MessagingToolSourceReplyPayload, VERSION as NODMIX_VERSION, type NativeHookRelayEvent, type NativeHookRelayProcessResponse, type NativeHookRelayProvider, type NativeHookRelayRegistrationHandle, type NodeListNode, type NodmixAgentToolResult, type NormalizedUsage, PREEMPTIVE_OVERFLOW_ERROR_TEXT, type PreemptiveCompactionDecision, type RuntimeToolInputSchemaJson, type RuntimeToolInputSchemaProjection, type RuntimeToolSchemaDiagnostic, type SandboxContext, type SandboxWorkspaceAccess, type SessionWriteLockAcquireTimeoutConfig, TOOL_PROGRESS_OUTPUT_MAX_CHARS, ToolProgressDetailMode, abortEmbeddedAgentRun as abortAgentHarnessRun, acquireSessionWriteLock, appendSessionTranscriptMessage, applyEmbeddedAttemptToolsAllow, assembleHarnessContextEngine, assertContextEngineHostSupport, awaitAgentHarnessAgentEndHook, bootstrapHarnessContextEngine, buildAgentHookContextChannelFields, buildAgentRuntimePlan, buildBootstrapContextForFiles, buildEmbeddedAttemptToolRunContext, buildHarnessContextEngineRuntimeContext, buildHarnessContextEngineRuntimeContextFromUsage, buildNativeHookRelayCommand, callGatewayTool, classifyAgentHarnessTerminalOutcome, classifyEmbeddedAgentRunResultForModelFallback, classifyEmbeddedAgentRunResultForModelFallback as classifyEmbeddedPiRunResultForModelFallback, clearActiveEmbeddedRun, compactContextEngineWithSafetyTimeout, createAgentToolResultMiddlewareRunner, createCodexAppServerToolResultExtensionRunner, createNodmixCodingTools, detectAndLoadAgentHarnessPromptImages, disposeRegisteredAgentHarnesses, log as embeddedAgentLog, emitAgentEvent, emitSessionTranscriptUpdate, estimateRenderedLlmBoundaryTokenPressure, extractToolResultMediaArtifact, filterToolResultMediaUrls, finalizeHarnessContextEngineTurn, formatApprovalDisplayPath, formatErrorMessage, formatPrePromptPrecheckLog, formatToolAggregate, formatToolProgressOutput, getAgentHarnessHookRunner, getBeforeToolCallPolicyDiagnosticState, getPluginToolMeta, hasBeforeToolCallPolicy, hasNativeHookRelayInvocation, hasSandboxBindContainerPathAliases, hasSandboxBindReadonlyHostShadows, inferToolMetaFromArgs, inspectRuntimeToolInputSchemas, invokeNativeHookRelay, isActiveHarnessContextEngine, isMessagingTool, isMessagingToolSendAction, isSubagentSessionKey, isToolWrappedWithBeforeToolCallHook, listNodes, loadCodexBundleMcpThreadConfig, logAgentRuntimeToolDiagnostics, testing as nativeHookRelayTesting, normalizeAgentRuntimeTools, normalizeHeartbeatToolResponse, normalizeProviderToolSchemas, normalizeUsage, onAgentEvent, projectRuntimeToolInputSchema, queueAgentHarnessMessage, registerNativeHookRelay, requestDeferredPluginToolApproval, resetAgentEventsForTest, resolveActiveEmbeddedRunSessionId, resolveAgentDir, resolveAgentHarnessBeforePromptBuildResult, resolveAttemptFsWorkspaceOnly, resolveAttemptSpawnWorkspaceDir, resolveBootstrapContextForRun, resolveBootstrapFilesForRun, resolveCompactionTimeoutMs, resolveContextEngineOwnerPluginId, resolveDefaultAgentDir, resolveEmbeddedAgentRuntime, resolveEmbeddedAttemptToolConstructionPlan, resolveModelAuthMode, resolveNativeHookRelayDeferredToolApproval, resolveNodeIdFromList, resolveNodmixAgentDir, resolveSandboxContext, resolveSessionAgentIds, resolveSessionWriteLockAcquireTimeoutMs, resolveSessionWriteLockOptions, resolveUserPath, resolveWritableSandboxBindHostRoots, runAgentCleanupStep, runAgentHarnessAfterCompactionHook, runAgentHarnessAfterToolCallHook, runAgentHarnessAgentEndHook, runAgentHarnessBeforeAgentFinalizeHook, runAgentHarnessBeforeCompactionHook, runAgentHarnessBeforeMessageWriteHook, runAgentHarnessLlmInputHook, runAgentHarnessLlmOutputHook, runBeforeToolCallHook, runHarnessContextEngineMaintenance, selectDefaultNodeFromList, setActiveEmbeddedRun, setBeforeToolCallDiagnosticsEnabled, shouldPreemptivelyCompactBeforePrompt, supportsModelTools, wrapToolWithBeforeToolCallHook };