import { Dr as AgentMessage } from "./proxy-B6W6GCLx.js"; import { s as appendSessionTranscriptMessage } from "./types-CQee7pkj.js"; import { o as ExecApprovalDecision } from "./exec-approvals-BMVAZXjT.js"; import { f as isSubagentSessionKey } from "./session-key-fJM_U9Lv.js"; import { p as resolveUserPath } from "./utils-CRegZsWE.js"; import { r as VERSION } from "./version-C1kCd9e0.js"; import { Aa as AgentHarnessResultClassification, Ba as normalizeUsage, Ca as AgentHarness, Da as AgentHarnessCompactResult, Di as CodexAppServerExtensionRuntime, Ea as AgentHarnessCompactParams, Ei as CodexAppServerExtensionFactory, Fa as CompactEmbeddedAgentSessionParams, Gi as AgentToolResultMiddlewareHarness, Hi as AgentToolResultMiddleware, Ia as EmbeddedRunAttemptParams, Ja as isToolWrappedWithBeforeToolCallHook, Ji as AgentToolResultMiddlewareRuntime, Ka as getBeforeToolCallPolicyDiagnosticState, Ki as AgentToolResultMiddlewareOptions, La as EmbeddedRunAttemptResult, Ma as AgentHarnessSideQuestionResult, Ms as emitSessionTranscriptUpdate, Na as AgentHarnessSupport, Nc as resolveModelAuthMode, Oa as AgentHarnessDeliveryDefaults, Oi as CodexAppServerToolResultEvent, Pa as AgentHarnessSupportContext, Qa as wrapToolWithBeforeToolCallHook, Ta as AgentHarnessAttemptResult, Ti as CodexAppServerExtensionContext, Ua as BeforeToolCallPolicyDiagnosticState, Ui as AgentToolResultMiddlewareContext, Wa as DeferredPluginToolApproval, Wi as AgentToolResultMiddlewareEvent, Xa as runBeforeToolCallHook, Ya as requestDeferredPluginToolApproval, Yi as OpenClawAgentToolResult, Za as setBeforeToolCallDiagnosticsEnabled, co as ContextEngine, cu as MessagingToolSend, du as HeartbeatToolResponse, eo as resolveEmbeddedAgentRuntime, fu as normalizeHeartbeatToolResponse, io as resolveContextEngineOwnerPluginId, ja as AgentHarnessSideQuestionParams, ka as AgentHarnessResetParams, ki as CodexAppServerToolResultHandlerResult, lo as ContextEngineHostCapability, lu as MessagingToolSourceReplyPayload, mo as ContextEngineProjection, ou as EmbeddedAgentCompactResult, po as ContextEngineOperation, qa as hasBeforeToolCallPolicy, qi as AgentToolResultMiddlewareResult, uu as HEARTBEAT_RESPONSE_TOOL_NAME, wa as AgentHarnessAttemptParams, za as NormalizedUsage } from "./types-BftTUA7h.js"; import { t as EmbeddedContextFile } from "./types-CMKgUJ7Q.js"; import { r as AnyAgentTool } from "./common-BQld_MGZ.js"; import { C as resolveSessionAgentIds, F as resolveDefaultAgentDir, N as resolveAgentDir } from "./agent-scope-DZ3FuVdu.js"; import { S as resetAgentEventsForTest, _ as AgentApprovalEventData, b as emitAgentEvent, v as AgentEventPayload, x as onAgentEvent } from "./types-DxShel1i.js"; import { $ as RuntimeToolInputSchemaJson, A as buildHarnessContextEngineRuntimeContext, At as buildAgentHookContextChannelFields, B as SessionWriteLockAcquireTimeoutConfig, Bt as testing, C as formatPrePromptPrecheckLog, Ct as selectDefaultNodeFromList, D as resolveCompactionTimeoutMs, Dt as buildAgentRuntimePlan, E as compactWithSafetyTimeout, Et as classifyEmbeddedAgentRunResultForModelFallback, F as createAgentToolResultMiddlewareRunner, Ft as buildNativeHookRelayCommand, G as resolveBootstrapContextForRun, H as resolveSessionWriteLockAcquireTimeoutMs, Ht as LoadCodexBundleMcpThreadConfigParams, I as createCodexAppServerToolResultExtensionRunner, It as hasNativeHookRelayInvocation, J as hasSandboxBindReadonlyHostShadows, K as resolveBootstrapFilesForRun, L as resolveAgentHarnessBeforePromptBuildResult, Lt as invokeNativeHookRelay, M as finalizeHarnessContextEngineTurn, Mt as NativeHookRelayProcessResponse, N as isActiveHarnessContextEngine, Nt as NativeHookRelayProvider, O as assembleHarnessContextEngine, Ot as log, P as runHarnessContextEngineMaintenance, Pt as NativeHookRelayRegistrationHandle, Q as normalizeAgentRuntimeTools, R as runAgentHarnessAfterCompactionHook, Rt as registerNativeHookRelay, S as estimateRenderedLlmBoundaryTokenPressure, St as resolveNodeIdFromList, T as compactContextEngineWithSafetyTimeout, Tt as callGatewayTool, U as resolveSessionWriteLockOptions, V as acquireSessionWriteLock, Vt as CodexBundleMcpThreadConfig, W as buildBootstrapContextForFiles, X as normalizeProviderToolSchemas, Y as resolveWritableSandboxBindHostRoots, Z as logAgentRuntimeToolDiagnostics, _ as runAgentHarnessAfterToolCallHook, _t as filterToolResultMediaUrls, a as classifyAgentHarnessTerminalOutcome, at as disposeRegisteredAgentHarnesses, b as PREEMPTIVE_OVERFLOW_ERROR_TEXT, bt as formatToolAggregate, c as inferToolMetaFromArgs, ct as createOpenClawCodingTools, d as awaitAgentHarnessAgentEndHook, dt as resolveAttemptSpawnWorkspaceDir, et as RuntimeToolInputSchemaProjection, f as getAgentHarnessHookRunner, ft as resolveAttemptFsWorkspaceOnly, g as runAgentHarnessLlmOutputHook, gt as extractToolResultMediaArtifact, h as runAgentHarnessLlmInputHook, ht as supportsModelTools, i as ToolProgressDetailMode, it as projectRuntimeToolInputSchema, j as buildHarnessContextEngineRuntimeContextFromUsage, jt as NativeHookRelayEvent, k as bootstrapHarnessContextEngine, kt as runAgentCleanupStep, l as loadCodexBundleMcpThreadConfig, lt as getPluginToolMeta, m as runAgentHarnessBeforeAgentFinalizeHook, mt as buildSkillWorkshopPromptSection, n as AgentHarnessTerminalOutcomeInput, nt as filterProviderNormalizableTools, o as detectAndLoadAgentHarnessPromptImages, ot as applyEmbeddedAttemptToolsAllow, p as runAgentHarnessAgentEndHook, pt as SKILL_WORKSHOP_TOOL_NAME, q as hasSandboxBindContainerPathAliases, r as TOOL_PROGRESS_OUTPUT_MAX_CHARS, rt as inspectRuntimeToolInputSchemas, s as formatToolProgressOutput, st as resolveEmbeddedAttemptToolConstructionPlan, t as AgentHarnessTerminalOutcomeClassification, tt as RuntimeToolSchemaDiagnostic, u as queueAgentHarnessMessage, ut as buildEmbeddedAttemptToolRunContext, v as runAgentHarnessBeforeMessageWriteHook, vt as isMessagingTool, w as shouldPreemptivelyCompactBeforePrompt, wt as NodeListNode, x as PreemptiveCompactionDecision, xt as listNodes, y as LlmBoundaryTokenPressure, yt as isMessagingToolSendAction, z as runAgentHarnessBeforeCompactionHook, zt as resolveNativeHookRelayDeferredToolApproval } from "./agent-harness-runtime-9ivWKt1q.js"; import { a as clearActiveEmbeddedRun, i as abortEmbeddedAgentRun, o as resolveActiveEmbeddedRunSessionId, r as abortAndDrainEmbeddedAgentRun, s as setActiveEmbeddedRun, t as AbortAndDrainEmbeddedAgentRunResult } from "./runs-CodxqLco.js"; import { a as formatErrorMessage } from "./errors-BICDLNaN.js"; import { t as formatApprovalDisplayPath } from "./approval-display-paths-Hb4BQ_zR.js"; import { t as resolveOpenClawAgentDir } from "./agent-dir-compat-ochOeoeD.js"; import { M as SandboxContext, P as SandboxWorkspaceAccess, j as resolveSandboxContext } from "./sandbox-DVVPuorm.js"; import { n as assertContextEngineHostSupport, t as CODEX_APP_SERVER_CONTEXT_ENGINE_HOST } from "./host-compat-BQK9JXq1.js"; export { type AbortAndDrainEmbeddedAgentRunResult as AbortAndDrainAgentHarnessRunResult, 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, type NativeHookRelayEvent, type NativeHookRelayProcessResponse, type NativeHookRelayProvider, type NativeHookRelayRegistrationHandle, type NodeListNode, type NormalizedUsage, VERSION as OPENCLAW_VERSION, type OpenClawAgentToolResult, PREEMPTIVE_OVERFLOW_ERROR_TEXT, type PreemptiveCompactionDecision, type RuntimeToolInputSchemaJson, type RuntimeToolInputSchemaProjection, type RuntimeToolSchemaDiagnostic, SKILL_WORKSHOP_TOOL_NAME, type SandboxContext, type SandboxWorkspaceAccess, type SessionWriteLockAcquireTimeoutConfig, TOOL_PROGRESS_OUTPUT_MAX_CHARS, ToolProgressDetailMode, abortEmbeddedAgentRun as abortAgentHarnessRun, abortAndDrainEmbeddedAgentRun as abortAndDrainAgentHarnessRun, acquireSessionWriteLock, appendSessionTranscriptMessage, applyEmbeddedAttemptToolsAllow, assembleHarnessContextEngine, assertContextEngineHostSupport, awaitAgentHarnessAgentEndHook, bootstrapHarnessContextEngine, buildAgentHookContextChannelFields, buildAgentRuntimePlan, buildBootstrapContextForFiles, buildEmbeddedAttemptToolRunContext, buildHarnessContextEngineRuntimeContext, buildHarnessContextEngineRuntimeContextFromUsage, buildNativeHookRelayCommand, buildSkillWorkshopPromptSection, callGatewayTool, classifyAgentHarnessTerminalOutcome, classifyEmbeddedAgentRunResultForModelFallback, classifyEmbeddedAgentRunResultForModelFallback as classifyEmbeddedPiRunResultForModelFallback, clearActiveEmbeddedRun, compactContextEngineWithSafetyTimeout, compactWithSafetyTimeout, createAgentToolResultMiddlewareRunner, createCodexAppServerToolResultExtensionRunner, createOpenClawCodingTools, detectAndLoadAgentHarnessPromptImages, disposeRegisteredAgentHarnesses, log as embeddedAgentLog, emitAgentEvent, emitSessionTranscriptUpdate, estimateRenderedLlmBoundaryTokenPressure, extractToolResultMediaArtifact, filterProviderNormalizableTools, 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, resolveOpenClawAgentDir, resolveSandboxContext, resolveSessionAgentIds, resolveSessionWriteLockAcquireTimeoutMs, resolveSessionWriteLockOptions, resolveUserPath, resolveWritableSandboxBindHostRoots, runAgentCleanupStep, runAgentHarnessAfterCompactionHook, runAgentHarnessAfterToolCallHook, runAgentHarnessAgentEndHook, runAgentHarnessBeforeAgentFinalizeHook, runAgentHarnessBeforeCompactionHook, runAgentHarnessBeforeMessageWriteHook, runAgentHarnessLlmInputHook, runAgentHarnessLlmOutputHook, runBeforeToolCallHook, runHarnessContextEngineMaintenance, selectDefaultNodeFromList, setActiveEmbeddedRun, setBeforeToolCallDiagnosticsEnabled, shouldPreemptivelyCompactBeforePrompt, supportsModelTools, wrapToolWithBeforeToolCallHook };