import { D as ChannelOutboundSessionRoute, E as ChannelMeta, P as ChannelSetupInput, T as ChannelMessagingAdapter, b as ChannelMessageActionContext, m as ChannelGroupContext, r as ChannelAccountSnapshot, t as BaseProbeResult, u as ChannelDirectoryEntry } from "./types.core-DJAfDdBp.js";
import { r as DexConfig } from "./types.openclaw-DdfkPVtj.js";
import { t as ChatType } from "./chat-type-BtX_XjMF.js";
import { x as isSecretRef } from "./types.secrets-BKPYDrKY.js";
import { t as HistoryEntry } from "./history.types-D_WxL2c8.js";
import { n as PollInput } from "./polls-CfHkU59X.js";
import { d as UnifiedModelCatalogEntry, f as UnifiedModelCatalogKind, p as UnifiedModelCatalogSource } from "./manifest-registry-C0Pdbhrd.js";
import { r as ChannelConfigUiHint } from "./types.config-CKJTcS4X.js";
import { n as ChannelOutboundAdapter, u as OutboundIdentity } from "./outbound.types-CO_n8Hff.js";
import { i as WizardPrompter } from "./prompts-DgKIGa-v.js";
import { n as ChannelPlugin, t as ChannelMessageActionName } from "./types.public-JCB-3hx2.js";
import { n as resolveGatewayPort } from "./paths-D95Crw3y.js";
import { s as resolveThreadSessionKeys } from "./session-key-fJM_U9Lv.js";
import { n as normalizeAccountId, t as DEFAULT_ACCOUNT_ID } from "./account-id-Dh6XMgGH.js";
import { t as resolveConfiguredAcpBindingRecord } from "./persistent-bindings.resolve-CsR3qksk.js";
import { $n as PluginRuntime, B as DexPluginServiceContext, Bc as ProviderDefaultThinkingPolicyContext, Bn as ProviderTransportTurnState, Bt as ProviderCatalogResult, Co as DexPluginToolFactory, Cr as PluginSessionTurnUnscheduleByTagParams, Er as PluginTrustedToolPolicyRegistration, Et as ProviderAuthDoctorHintContext, Ft as ProviderBuiltInModelSuppressionResult, Gn as RealtimeTranscriptionProviderPlugin, Hc as ProviderThinkingProfile, Hn as ProviderValidateReplayTurnsContext, In as ProviderSanitizeReplayHistoryContext, It as ProviderCacheTtlEligibilityContext, K as MediaUnderstandingProviderPlugin, Ma as RuntimeLogger, Mn as ProviderResolveUsageAuthContext, Mt as ProviderBuildMissingAuthMessageContext, Nn as ProviderResolveWebSocketSessionPolicyContext, Nt as ProviderBuildUnknownModelHintContext, On as ProviderResolveDynamicModelContext, Ot as ProviderAuthMethod, Pn as ProviderResolvedUsageAuth, Pt as ProviderBuiltInModelSuppressionContext, Rn as ProviderToolSchemaDiagnostic, Rt as ProviderCatalogContext, Sn as ProviderReplayPolicyContext, So as DexPluginToolContext, Sr as PluginSessionTurnScheduleParams, Ti as AgentHarness, Tn as ProviderReplaySessionState, Tr as PluginToolMetadataRegistration, Tt as ProviderAuthContext, Uc as ProviderRuntimeModel, Un as ProviderWebSocketSessionPolicy, Vc as ProviderThinkingPolicyContext, Vn as ProviderUsageAuthToken, Wn as ProviderWrapStreamFnContext, Wt as ProviderDiscoveryContext, Xn as UnifiedModelCatalogProviderPlugin, Xt as ProviderFetchUsageSnapshotContext, Yn as UnifiedModelCatalogProviderContext, _n as ProviderPrepareRuntimeAuthContext, _r as PluginSessionAttachmentResult, an as ProviderNormalizeToolSchemasContext, at as PluginCommandContext, bn as ProviderReasoningOutputModeContext, bo as DexPluginActiveModelContext, br as PluginSessionSchedulerJobHandle, cr as PluginAgentEventSubscriptionRegistration, ct as PluginCommandResult, dr as PluginRunContextPatch, en as ProviderModernModelPolicyContext, fr as PluginRuntimeLifecycleRegistration, g as DexPluginDefinition, gn as ProviderPrepareExtraParamsContext, gr as PluginSessionAttachmentParams, h as DexPluginConfigSchema, hn as ProviderPrepareDynamicModelContext, hr as PluginSessionActionResult, ht as PluginLogger, i as AgentPromptSurfaceKind, in as ProviderNormalizeResolvedModelContext, jn as ProviderResolveTransportTurnStateContext, jt as ProviderAuthResult, kt as ProviderAuthMethodNonInteractiveContext, l as DexPluginApi, lr as PluginControlUiDescriptor, m as DexPluginCommandDefinition, mr as PluginSessionActionRegistration, n as AgentPromptGuidance, or as PluginAgentEventEmitParams, pr as PluginSessionActionContext, qn as SpeechProviderPlugin, r as AgentPromptGuidanceEntry, sr as PluginAgentEventEmitResult, ur as PluginRunContextGetParams, vn as ProviderPreparedRuntimeAuth, vr as PluginSessionExtensionProjection, wn as ProviderReplaySessionEntry, wr as PluginSessionTurnUnscheduleByTagResult, wt as ProviderAugmentModelCatalogContext, xn as ProviderReplayPolicy, xr as PluginSessionSchedulerJobRegistration, yn as ProviderReasoningOutputMode, yr as PluginSessionExtensionRegistration, z as DexPluginService } from "./types-C9WXbJM3.js";
import { n as UsageProviderId, r as UsageWindow, t as ProviderUsageSnapshot } from "./provider-usage.types-BHIqsSz-.js";
import { D as readStringParam, S as readNumberParam, T as readStringArrayParam, d as createActionGate, g as jsonResult, r as AnyAgentTool, w as readReactionParams } from "./common-B9HBLAjs.js";
import { n as createSubsystemLogger } from "./subsystem-Boo2DQIV.js";
import { r as GatewayRequestHandlerOptions } from "./types-fuQqupal.js";
import { r as ReplyPayload } from "./reply-payload-CoIZTowi.js";
import { c as MemoryPluginPublicArtifact, l as MemoryPluginPublicArtifactsProvider, s as MemoryPluginCapability } from "./memory-state-DXJf_ZFc.js";
import { Gt as PluginHeartbeatPromptContributionResult, Ht as PluginAgentTurnPrepareEvent, Jt as PluginNextTurnInjectionRecord, Kt as PluginNextTurnInjection, Ut as PluginAgentTurnPrepareResult, Wt as PluginHeartbeatPromptContributionEvent, Yt as PluginJsonValue, ct as PluginHookReplyDispatchResult, dt as PluginHookReplyPayloadSendingEvent, ft as PluginHookReplyPayloadSendingResult, lt as PluginHookReplyPayload, ot as PluginHookReplyDispatchContext, qt as PluginNextTurnInjectionEnqueueResult, st as PluginHookReplyDispatchEvent, ut as PluginHookReplyPayloadSendingContext } from "./hook-types-329QhLML.js";
import { i as buildAgentSessionKey, n as RoutePeer, r as RoutePeerKind } from "./resolve-route-B3fPSYHO.js";
import { n as channelTargetsSchema, o as optionalStringEnum, s as stringEnum, t as channelTargetSchema } from "./typebox-DYcWd2Ud.js";
import { t as AllowlistMatch } from "./allowlist-match-D7Z-4JYw.js";
import { i as buildJsonChannelConfigSchema, o as emptyChannelConfigSchema, r as buildChannelConfigSchema } from "./config-schema-D7cABQ6o.js";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "./helpers-6VnYF12U.js";
import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "./config-schema-DUDU-fKl.js";
import { t as definePluginEntry } from "./plugin-entry-CEwdK_Yb.js";
import { n as NormalizedLocation } from "./location-D6ia4w3e.js";
import { r as enqueueKeyedTask, t as KeyedAsyncQueue } from "./keyed-async-queue-DgXrABQM.js";
import { i as resolveGlobalDedupeCache, r as createDedupeCache } from "./dedupe-DTDO6GA8.js";
import { a as generateSecureUuid, i as generateSecureToken } from "./secure-random-C6rj1jbz.js";
import { n as delegateCompactionToRuntime, t as buildMemorySystemPromptAddition } from "./delegate-WMomq2iL.js";
import { s as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "./setup-helpers-Dw6V06A3.js";
import { n as deleteAccountFromConfigSection, r as setAccountEnabledInConfigSection, t as clearAccountEntryFields } from "./config-helpers-RZAsISHx.js";
import { a as SecretFileReadResult, c as tryReadSecretFileSync, i as SecretFileReadOptions, o as loadSecretFileSync, s as readSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "./secret-file-CjbjgOXf.js";
import { _ as resolveTailnetHostWithRunner, a as buildThreadAwareOutboundSessionRoute, c as defineChannelPluginEntry, d as getChatChannelMeta, f as recoverCurrentThreadSessionId, g as TailscaleStatusCommandRunner, h as TailscaleStatusCommandResult, 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 GatewayBindUrlResult, y as resolveGatewayBindUrl } from "./core-DJX0zd7z.js";
import { i as normalizeHyphenSlug, n as normalizeAtHashSlug } from "./string-normalization-BUWquf-_.js";
import { y as parseStrictPositiveInteger } from "./number-coercion-Ds_8dOjj.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, DEFAULT_ACCOUNT_ID, DEFAULT_SECRET_FILE_MAX_BYTES, type DexConfig, type DexPluginActiveModelContext, type DexPluginApi, type DexPluginCommandDefinition, type DexPluginConfigSchema, type DexPluginDefinition, type DexPluginService, type DexPluginServiceContext, type DexPluginToolContext, type DexPluginToolFactory, type GatewayBindUrlResult, type GatewayRequestHandlerOptions, type HistoryEntry, KeyedAsyncQueue, type MediaUnderstandingProviderPlugin, type MemoryPluginCapability, type MemoryPluginPublicArtifact, type MemoryPluginPublicArtifactsProvider, type NormalizedLocation, type OutboundIdentity, 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 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, readNumberParam, readReactionParams, readSecretFileSync, readStringArrayParam, readStringParam, recoverCurrentThreadSessionId, resolveClientIp, resolveConfiguredAcpBindingRecord, resolveGatewayBindUrl, resolveGatewayPort, resolveGlobalDedupeCache, resolveTailnetHostWithRunner, resolveThreadSessionKeys, setAccountEnabledInConfigSection, stringEnum, stripChannelTargetPrefix, stripTargetKindPrefix, tryReadSecretFileSync };