import { i as OpenClawConfig } from "../types.openclaw-D_ZeG-0L.js";
import { t as ChatType } from "../chat-type-B6XXSSnm.js";
import { S as isSecretRef } from "../types.secrets-C15Z_eLX.js";
import { h as UnifiedModelCatalogSource, m as UnifiedModelCatalogKind, p as UnifiedModelCatalogEntry } from "../manifest-registry-6I1JpXjD.js";
import { r as ChannelConfigUiHint } from "../types.config-D1pSqbn8.js";
import { p as resolveGatewayPort } from "../paths-B94fO8Ob.js";
import { n as createSubsystemLogger } from "../subsystem-RmDRaRJV.js";
import { $o as OpenClawPluginToolContext, Cn as buildPluginConfigSchema, Co as RuntimeLogger, Hc as ProviderRuntimeModel, I as OpenClawPluginGatewayEventScope, Kn as PluginRuntime, L as OpenClawPluginGatewayEvents, Qo as OpenClawPluginActiveModelContext, Sn as buildJsonPluginConfigSchema, bo as ContextEngineSessionTarget, es as OpenClawPluginToolFactory, wn as emptyPluginConfigSchema } from "../types-CaqpvD9U.js";
import { f as NormalizedLocation, p as OutboundLocation } from "../reply-payload-tSOFh1so.js";
import { B as PluginHookReplyPayloadSendingContext, H as PluginHookReplyPayloadSendingResult, I as PluginHookReplyDispatchContext, L as PluginHookReplyDispatchEvent, R as PluginHookReplyDispatchResult, V as PluginHookReplyPayloadSendingEvent, z as PluginHookReplyPayload } from "../hook-types-CgaAUu5D.js";
import { t as HistoryEntry } from "../history.types-Bc8mCALh.js";
import { r as GatewayRequestHandlerOptions } from "../types-Cp0u-08g.js";
import { a as createActionGate, f as readReactionParams, h as readStringParam, p as readStringArrayParam, u as readNumberParam } from "../common-D0LCF97L.js";
import { t as jsonResult } from "../tool-results--TwMFfym.js";
import { i as WizardPrompter } from "../prompts-CnNakHks.js";
import { c as UsageWindow, o as ProviderUsageSnapshot, s as UsageProviderId } from "../provider-usage.types-CSw7pG9h.js";
import { o as resolveThreadSessionKeys } from "../session-key-COxKqlXJ.js";
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "../account-id-Dh6XMgGH.js";
import { E as ChannelOutboundSessionRoute, N as ChannelSetupInput, T as ChannelMeta, m as ChannelGroupContext, r as ChannelAccountSnapshot, t as BaseProbeResult, u as ChannelDirectoryEntry, w as ChannelMessagingAdapter, y as ChannelMessageActionContext } from "../types.core-B3DLiTAx.js";
import { n as PollInput } from "../polls-CfHkU59X.js";
import { n as ChannelOutboundAdapter, u as OutboundIdentity } from "../outbound.types-DPaNOjhi.js";
import { r as ReplyPayload } from "../reply-payload-BgOr_pzN.js";
import { t as ChannelPlugin } from "../types.plugin-D2Tbg_ut.js";
import { t as ChannelMessageActionName } from "../types.public-Co_eICoe.js";
import { a as buildAgentSessionKey, i as RoutePeerKind, r as RoutePeer } from "../resolve-route-B-gf1DdF.js";
import { a as MemoryPluginCapability, o as MemoryPluginPublicArtifact, s as MemoryPluginPublicArtifactsProvider } from "../memory-state-DXrRymLp.js";
import { t as resolveConfiguredAcpBindingRecord } from "../persistent-bindings.resolve-D0X6fGyY.js";
import { $ as PluginSessionActionContext, $t as ProviderResolveDynamicModelContext, At as ProviderDefaultThinkingPolicyContext, B as PluginCommandContext, Ct as ProviderBuildMissingAuthMessageContext, Dt as ProviderCacheTtlEligibilityContext, Et as ProviderBuiltInModelSuppressionResult, F as PluginAgentEventEmitParams, Ft as ProviderModernModelPolicyContext, G as PluginJsonValue, Gt as ProviderPreparedRuntimeAuth, H as PluginControlUiDescriptor, Ht as ProviderPrepareDynamicModelContext, I as PluginAgentEventEmitResult, J as PluginNextTurnInjectionEnqueueResult, Jt as ProviderReplayPolicy, K as PluginLogger, Kt as ProviderReasoningOutputMode, L as PluginAgentEventSubscriptionRegistration, M as OpenClawPluginServiceContext, Mt as ProviderDiscoveryContext, Ot as ProviderCatalogContext, Pt as ProviderFetchUsageSnapshotContext, Q as PluginRuntimeLifecycleRegistration, R as PluginAgentTurnPrepareEvent, Rt as ProviderNormalizeResolvedModelContext, St as ProviderAuthResult, Tn as definePluginEntry, Tt as ProviderBuiltInModelSuppressionContext, U as PluginHeartbeatPromptContributionEvent, Ut as ProviderPrepareExtraParamsContext, V as PluginCommandResult, W as PluginHeartbeatPromptContributionResult, Wt as ProviderPrepareRuntimeAuthContext, X as PluginRunContextGetParams, Xt as ProviderReplaySessionEntry, Y as PluginNextTurnInjectionRecord, Yt as ProviderReplayPolicyContext, Z as PluginRunContextPatch, Zt as ProviderReplaySessionState, _ as OpenClawPluginCommandDefinition, _n as UnifiedModelCatalogProviderPlugin, _t as ProviderAugmentModelCatalogContext, a as AnyAgentTool, an as ProviderThinkingPolicyContext, at as PluginSessionExtensionRegistration, bt as ProviderAuthMethod, cn as ProviderTransportTurnState, ct as PluginSessionTurnScheduleParams, dn as ProviderWebSocketSessionPolicy, dt as PluginToolMetadataRegistration, en as ProviderResolveTransportTurnStateContext, et as PluginSessionActionRegistration, fn as ProviderWrapStreamFnContext, ft as PluginTrustedToolPolicyRegistration, g as OpenClawPluginApi, gn as UnifiedModelCatalogProviderContext, ht as ProviderAppGuidedSetupContext, i as AgentPromptSurfaceKind, in as ProviderSanitizeReplayHistoryContext, it as PluginSessionExtensionProjection, j as OpenClawPluginService, kt as ProviderCatalogResult, ln as ProviderUsageAuthToken, lt as PluginSessionTurnUnscheduleByTagParams, mn as SpeechProviderPlugin, mt as ProviderAppGuidedSetupCandidate, n as AgentPromptGuidance, nn as ProviderResolveWebSocketSessionPolicyContext, nt as PluginSessionAttachmentParams, o as MediaUnderstandingProviderPlugin, on as ProviderThinkingProfile, ot as PluginSessionSchedulerJobHandle, pn as RealtimeTranscriptionProviderPlugin, pt as ProviderAppGuidedSetup, q as PluginNextTurnInjection, qt as ProviderReasoningOutputModeContext, r as AgentPromptGuidanceEntry, rn as ProviderResolvedUsageAuth, rt as PluginSessionAttachmentResult, sn as ProviderToolSchemaDiagnostic, st as PluginSessionSchedulerJobRegistration, t as AgentHarness, tn as ProviderResolveUsageAuthContext, tt as PluginSessionActionResult, un as ProviderValidateReplayTurnsContext, ut as PluginSessionTurnUnscheduleByTagResult, v as OpenClawPluginConfigSchema, vt as ProviderAuthContext, wt as ProviderBuildUnknownModelHintContext, xt as ProviderAuthMethodNonInteractiveContext, y as OpenClawPluginDefinition, yt as ProviderAuthDoctorHintContext, z as PluginAgentTurnPrepareResult, zt as ProviderNormalizeToolSchemasContext } from "../plugin-entry-Bh-NZHjd.js";
import { t as AllowlistMatch } from "../allowlist-match-Bmdv70ad.js";
import { r as enqueueKeyedTask, t as KeyedAsyncQueue } from "../keyed-async-queue-Co67NYfr.js";
import { b as parseStrictPositiveInteger } from "../number-coercion-C7PMvT3i.js";
import { i as resolveGlobalDedupeCache, r as createDedupeCache } from "../dedupe-DlnrYV_t.js";
import { a as generateSecureUuid, i as generateSecureToken } from "../secure-random-BTcaoAnv.js";
import { _ as TailscaleStatusCommandResult, a as buildThreadAwareOutboundSessionRoute, b as resolveTailscalePublishedHost, c as defineChannelPluginEntry, d as getChatChannelMeta, f as recoverCurrentThreadSessionId, g as resolveGatewayBindUrl, h as GatewayBindUrlResult, i as buildChannelOutboundSessionRoute, l as defineSetupPluginEntry, m as stripTargetKindPrefix, n as ThreadAwareOutboundSessionRouteRecoveryContext, o as createChannelPluginBase, p as stripChannelTargetPrefix, r as ThreadAwareOutboundSessionRouteThreadSource, s as createChatChannelPlugin, t as ChannelOutboundSessionRouteParams, u as ensureConfiguredAcpBindingReady, v as TailscaleStatusCommandRunner, x as resolveTailscaleServeGatewayUrlsWithRunner, y as resolveTailnetHostWithRunner } from "../core-f3a38byl.js";
import { n as delegateCompactionToRuntime, r as prepareMemorySystemPromptAddition, t as buildMemorySystemPromptAddition } from "../delegate-D90A3UL9.js";
import { i as buildChannelConfigSchema, l as emptyChannelConfigSchema, o as buildJsonChannelConfigSchema } from "../config-schema-V6-6jb_B.js";
import { s as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "../setup-helpers-ZS1AnMy_.js";
import { n as deleteAccountFromConfigSection, r as setAccountEnabledInConfigSection, t as clearAccountEntryFields } from "../config-helpers-cIO_-LPj.js";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "../helpers-_j1P2dFL.js";
import { n as stringEnum, t as optionalStringEnum } from "../string-enum-DQF34OSd.js";
import { n as channelTargetsSchema, t as channelTargetSchema } from "../typebox-C0rQ58Ok.js";
import { c as readSecretFileSync, i as DEFAULT_SECRET_FILE_MAX_BYTES, n as loadSecretFileSync, r as tryReadSecretFileSync, s as SecretFileReadOptions, t as SecretFileReadResult } from "../secret-file-Dzca8kyz.js";
import { i as normalizeHyphenSlug, n as normalizeAtHashSlug } from "../string-normalization-BUWquf-_.js";
import { i as resolveClientIp, r as isTrustedProxyAddress } from "../net-F7HGAsK5.js";
import { n as formatZonedTimestamp } from "../format-datetime-D-Jf_Pqu.js";
export { type AgentHarness, type AgentPromptGuidance, type AgentPromptGuidanceEntry, type AgentPromptSurfaceKind, type AllowlistMatch, type AnyAgentTool, type BaseProbeResult, type ChannelAccountSnapshot, type ChannelConfigUiHint, type ChannelDirectoryEntry, type ChannelGroupContext, type ChannelMessageActionContext, type ChannelMessageActionName, type ChannelMessagingAdapter, type ChannelMeta, type ChannelOutboundAdapter, type ChannelOutboundSessionRoute, ChannelOutboundSessionRouteParams, type ChannelPlugin, type ChannelSetupInput, type ChatType, type ContextEngineSessionTarget, DEFAULT_ACCOUNT_ID, DEFAULT_SECRET_FILE_MAX_BYTES, type GatewayBindUrlResult, type GatewayRequestHandlerOptions, type HistoryEntry, KeyedAsyncQueue, type MediaUnderstandingProviderPlugin, type MemoryPluginCapability, type MemoryPluginPublicArtifact, type MemoryPluginPublicArtifactsProvider, type NormalizedLocation, type OpenClawConfig, type OpenClawPluginActiveModelContext, type OpenClawPluginApi, type OpenClawPluginCommandDefinition, type OpenClawPluginConfigSchema, type OpenClawPluginDefinition, type OpenClawPluginGatewayEventScope, type OpenClawPluginGatewayEvents, type OpenClawPluginService, type OpenClawPluginServiceContext, type OpenClawPluginToolContext, type OpenClawPluginToolFactory, type OutboundIdentity, type OutboundLocation, type PluginAgentEventEmitParams, type PluginAgentEventEmitResult, type PluginAgentEventSubscriptionRegistration, type PluginAgentTurnPrepareEvent, type PluginAgentTurnPrepareResult, type PluginCommandContext, type PluginCommandResult, type PluginControlUiDescriptor, type PluginHeartbeatPromptContributionEvent, type PluginHeartbeatPromptContributionResult, type PluginHookReplyDispatchContext, type PluginHookReplyDispatchEvent, type PluginHookReplyDispatchResult, type PluginHookReplyPayload, type PluginHookReplyPayloadSendingContext, type PluginHookReplyPayloadSendingEvent, type PluginHookReplyPayloadSendingResult, type PluginJsonValue, type PluginLogger, type PluginNextTurnInjection, type PluginNextTurnInjectionEnqueueResult, type PluginNextTurnInjectionRecord, type PluginRunContextGetParams, type PluginRunContextPatch, type PluginRuntime, type PluginRuntimeLifecycleRegistration, type PluginSessionActionContext, type PluginSessionActionRegistration, type PluginSessionActionResult, type PluginSessionAttachmentParams, type PluginSessionAttachmentResult, type PluginSessionExtensionProjection, type PluginSessionExtensionRegistration, type PluginSessionSchedulerJobHandle, type PluginSessionSchedulerJobRegistration, type PluginSessionTurnScheduleParams, type PluginSessionTurnUnscheduleByTagParams, type PluginSessionTurnUnscheduleByTagResult, type PluginToolMetadataRegistration, type PluginTrustedToolPolicyRegistration, type PollInput, type ProviderAppGuidedSetup, type ProviderAppGuidedSetupCandidate, type ProviderAppGuidedSetupContext, type ProviderAugmentModelCatalogContext, type ProviderAuthContext, type ProviderAuthDoctorHintContext, type ProviderAuthMethod, type ProviderAuthMethodNonInteractiveContext, type ProviderAuthResult, type ProviderBuildMissingAuthMessageContext, type ProviderBuildUnknownModelHintContext, type ProviderBuiltInModelSuppressionContext, type ProviderBuiltInModelSuppressionResult, type ProviderCacheTtlEligibilityContext, type ProviderCatalogContext, type ProviderCatalogResult, type ProviderDefaultThinkingPolicyContext, type ProviderDiscoveryContext, type ProviderFetchUsageSnapshotContext, type ProviderModernModelPolicyContext, type ProviderNormalizeResolvedModelContext, type ProviderNormalizeToolSchemasContext, type ProviderPrepareDynamicModelContext, type ProviderPrepareExtraParamsContext, type ProviderPrepareRuntimeAuthContext, type ProviderPreparedRuntimeAuth, type ProviderReasoningOutputMode, type ProviderReasoningOutputModeContext, type ProviderReplayPolicy, type ProviderReplayPolicyContext, type ProviderReplaySessionEntry, type ProviderReplaySessionState, type ProviderResolveDynamicModelContext, type ProviderResolveTransportTurnStateContext, type ProviderResolveUsageAuthContext, type ProviderResolveWebSocketSessionPolicyContext, type ProviderResolvedUsageAuth, type ProviderRuntimeModel, type ProviderSanitizeReplayHistoryContext, type ProviderThinkingPolicyContext, type ProviderThinkingProfile, type ProviderToolSchemaDiagnostic, type ProviderTransportTurnState, type ProviderUsageAuthToken, type ProviderUsageSnapshot, type ProviderValidateReplayTurnsContext, type ProviderWebSocketSessionPolicy, type ProviderWrapStreamFnContext, type RealtimeTranscriptionProviderPlugin, type ReplyPayload, type RoutePeer, type RoutePeerKind, type RuntimeLogger, type SecretFileReadOptions, type SecretFileReadResult, type SpeechProviderPlugin, type TailscaleStatusCommandResult, type TailscaleStatusCommandRunner, ThreadAwareOutboundSessionRouteRecoveryContext, ThreadAwareOutboundSessionRouteThreadSource, type UnifiedModelCatalogEntry, type UnifiedModelCatalogKind, type UnifiedModelCatalogProviderContext, type UnifiedModelCatalogProviderPlugin, type UnifiedModelCatalogSource, type UsageProviderId, type UsageWindow, type WizardPrompter, applyAccountNameToChannelSection, buildAgentSessionKey, buildChannelConfigSchema, buildChannelOutboundSessionRoute, buildJsonChannelConfigSchema, buildJsonPluginConfigSchema, buildMemorySystemPromptAddition, buildPluginConfigSchema, buildThreadAwareOutboundSessionRoute, channelTargetSchema, channelTargetsSchema, clearAccountEntryFields, createActionGate, createChannelPluginBase, createChatChannelPlugin, createDedupeCache, createSubsystemLogger, defineChannelPluginEntry, definePluginEntry, defineSetupPluginEntry, delegateCompactionToRuntime, deleteAccountFromConfigSection, emptyChannelConfigSchema, emptyPluginConfigSchema, enqueueKeyedTask, ensureConfiguredAcpBindingReady, formatPairingApproveHint, formatZonedTimestamp, generateSecureToken, generateSecureUuid, getChatChannelMeta, isSecretRef, isTrustedProxyAddress, jsonResult, loadSecretFileSync, migrateBaseNameToDefaultAccount, normalizeAccountId, normalizeAtHashSlug, normalizeHyphenSlug, optionalStringEnum, parseOptionalDelimitedEntries, parseStrictPositiveInteger, prepareMemorySystemPromptAddition, readNumberParam, readReactionParams, readSecretFileSync, readStringArrayParam, readStringParam, recoverCurrentThreadSessionId, resolveClientIp, resolveConfiguredAcpBindingRecord, resolveGatewayBindUrl, resolveGatewayPort, resolveGlobalDedupeCache, resolveTailnetHostWithRunner, resolveTailscalePublishedHost, resolveTailscaleServeGatewayUrlsWithRunner, resolveThreadSessionKeys, setAccountEnabledInConfigSection, stringEnum, stripChannelTargetPrefix, stripTargetKindPrefix, tryReadSecretFileSync };