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-BmfAaoNc.js";
import { i as NodmixConfig } from "./types.nodmix-B9QJSty6.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-VKy0dJLg.js";
import { r as ChannelConfigUiHint } from "./types.config-CKJTcS4X.js";
import { n as ChannelOutboundAdapter, u as OutboundIdentity } from "./outbound.types-BFO6BpM-.js";
import { i as WizardPrompter } from "./prompts-DgKIGa-v.js";
import { n as ChannelPlugin, t as ChannelMessageActionName } from "./types.public-CKhKa3eB.js";
import { n as resolveGatewayPort } from "./paths-BrviuMcB.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-vRVSfH0H.js";
import { $ as NodmixPluginService, A as NodmixPluginDefinition, Ao as NodmixPluginActiveModelContext, Bc as ProviderThinkingProfile, Bn as ProviderTransportTurnState, Bt as ProviderCatalogResult, C as NodmixPluginApi, Cr as PluginSessionTurnUnscheduleByTagResult, Et as ProviderAuthDoctorHintContext, Ft as ProviderBuiltInModelSuppressionResult, Ha as RuntimeLogger, Hn as ProviderWebSocketSessionPolicy, In as ProviderSanitizeReplayHistoryContext, It as ProviderCacheTtlEligibilityContext, Jn as UnifiedModelCatalogProviderContext, Kn as SpeechProviderPlugin, Mn as ProviderResolveUsageAuthContext, Mo as NodmixPluginToolContext, Mt as ProviderBuildMissingAuthMessageContext, Nn as ProviderResolveWebSocketSessionPolicyContext, No as NodmixPluginToolFactory, Nt as ProviderBuildUnknownModelHintContext, O as NodmixPluginCommandDefinition, On as ProviderResolveDynamicModelContext, Ot as ProviderAuthMethod, Pn as ProviderResolvedUsageAuth, Pt as ProviderBuiltInModelSuppressionContext, Qn as PluginRuntime, Rc as ProviderDefaultThinkingPolicyContext, Rn as ProviderToolSchemaDiagnostic, Rt as ProviderCatalogContext, Sn as ProviderReplayPolicyContext, Sr as PluginSessionTurnUnscheduleByTagParams, Tn as ProviderReplaySessionState, Tr as PluginTrustedToolPolicyRegistration, Tt as ProviderAuthContext, Un as ProviderWrapStreamFnContext, Vc as ProviderRuntimeModel, Vn as ProviderValidateReplayTurnsContext, Wn as RealtimeTranscriptionProviderPlugin, Wt as ProviderDiscoveryContext, Xt as ProviderFetchUsageSnapshotContext, Yn as UnifiedModelCatalogProviderPlugin, _n as ProviderPrepareRuntimeAuthContext, _r as PluginSessionExtensionProjection, an as ProviderNormalizeToolSchemasContext, ar as PluginAgentEventEmitParams, at as PluginCommandContext, bn as ProviderReasoningOutputModeContext, br as PluginSessionSchedulerJobRegistration, cr as PluginControlUiDescriptor, ct as PluginCommandResult, dr as PluginRuntimeLifecycleRegistration, en as ProviderModernModelPolicyContext, et as NodmixPluginServiceContext, fr as PluginSessionActionContext, gn as ProviderPrepareExtraParamsContext, gr as PluginSessionAttachmentResult, hn as ProviderPrepareDynamicModelContext, hr as PluginSessionAttachmentParams, ht as PluginLogger, i as AgentPromptSurfaceKind, in as ProviderNormalizeResolvedModelContext, jn as ProviderResolveTransportTurnStateContext, jt as ProviderAuthResult, k as NodmixPluginConfigSchema, kt as ProviderAuthMethodNonInteractiveContext, lr as PluginRunContextGetParams, mr as PluginSessionActionResult, n as AgentPromptGuidance, o as MediaUnderstandingProviderPlugin, or as PluginAgentEventEmitResult, pr as PluginSessionActionRegistration, r as AgentPromptGuidanceEntry, sr as PluginAgentEventSubscriptionRegistration, ur as PluginRunContextPatch, vn as ProviderPreparedRuntimeAuth, vr as PluginSessionExtensionRegistration, wi as AgentHarness, wn as ProviderReplaySessionEntry, wr as PluginToolMetadataRegistration, wt as ProviderAugmentModelCatalogContext, xn as ProviderReplayPolicy, xr as PluginSessionTurnScheduleParams, yn as ProviderReasoningOutputMode, yr as PluginSessionSchedulerJobHandle, zc as ProviderThinkingPolicyContext } from "./types-CLo6hM78.js";
import { n as UsageProviderId, r as UsageWindow, t as ProviderUsageSnapshot } from "./provider-usage.types-CjxqEeB-.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-C7RKFa1F.js";
import { n as createSubsystemLogger } from "./subsystem-Boo2DQIV.js";
import { r as GatewayRequestHandlerOptions } from "./types-9pLlV7aO.js";
import { r as ReplyPayload } from "./reply-payload-BXG75ffT.js";
import { c as MemoryPluginPublicArtifact, l as MemoryPluginPublicArtifactsProvider, s as MemoryPluginCapability } from "./memory-state-3sKs-bSN.js";
import { Bt as PluginNextTurnInjectionEnqueueResult, Ft as PluginAgentTurnPrepareEvent, Ht as PluginJsonValue, It as PluginAgentTurnPrepareResult, Lt as PluginHeartbeatPromptContributionEvent, Rt as PluginHeartbeatPromptContributionResult, Vt as PluginNextTurnInjectionRecord, at as PluginHookReplyPayload, ct as PluginHookReplyPayloadSendingResult, it as PluginHookReplyDispatchResult, nt as PluginHookReplyDispatchContext, ot as PluginHookReplyPayloadSendingContext, rt as PluginHookReplyDispatchEvent, st as PluginHookReplyPayloadSendingEvent, zt as PluginNextTurnInjection } from "./hook-types-DF6BWRsR.js";
import { i as buildAgentSessionKey, n as RoutePeer, r as RoutePeerKind } from "./resolve-route-n3cC4LEq.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-DUddICQM.js";
import { n as formatPairingApproveHint, r as parseOptionalDelimitedEntries } from "./helpers-BkwK5qBs.js";
import { n as buildPluginConfigSchema, r as emptyPluginConfigSchema, t as buildJsonPluginConfigSchema } from "./config-schema-B6Srley6.js";
import { t as definePluginEntry } from "./plugin-entry-BqGw_9B5.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-D2CatD0j.js";
import { s as migrateBaseNameToDefaultAccount, t as applyAccountNameToChannelSection } from "./setup-helpers-CvFozu4p.js";
import { n as deleteAccountFromConfigSection, r as setAccountEnabledInConfigSection, t as clearAccountEntryFields } from "./config-helpers-B2lcHIVP.js";
import { a as loadSecretFileSync, i as SecretFileReadResult, o as readSecretFileSync, s as tryReadSecretFileSync, t as DEFAULT_SECRET_FILE_MAX_BYTES } from "./secret-file-BUxCibaV.js";
import { _ as TailscaleStatusCommandRunner, a as buildChannelOutboundSessionRoute, b as resolveGatewayBindUrl, c as createChatChannelPlugin, d as ensureConfiguredAcpBindingReady, f as getChatChannelMeta, g as TailscaleStatusCommandResult, h as stripTargetKindPrefix, i as ThreadAwareOutboundSessionRouteThreadSource, l as defineChannelPluginEntry, m as stripChannelTargetPrefix, n as SecretFileReadOptions, o as buildThreadAwareOutboundSessionRoute, p as recoverCurrentThreadSessionId, r as ThreadAwareOutboundSessionRouteRecoveryContext, s as createChannelPluginBase, t as ChannelOutboundSessionRouteParams, u as defineSetupPluginEntry, v as resolveTailnetHostWithRunner, y as GatewayBindUrlResult } from "./core-cpknMkDe.js";
import { i as normalizeHyphenSlug, n as normalizeAtHashSlug } from "./string-normalization-BP5dS4Vd.js";
import { y as parseStrictPositiveInteger } from "./number-coercion-Cl6rhWj6.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 GatewayBindUrlResult, type GatewayRequestHandlerOptions, type HistoryEntry, KeyedAsyncQueue, type MediaUnderstandingProviderPlugin, type MemoryPluginCapability, type MemoryPluginPublicArtifact, type MemoryPluginPublicArtifactsProvider, type NodmixConfig, type NodmixPluginActiveModelContext, type NodmixPluginApi, type NodmixPluginCommandDefinition, type NodmixPluginConfigSchema, type NodmixPluginDefinition, type NodmixPluginService, type NodmixPluginServiceContext, type NodmixPluginToolContext, type NodmixPluginToolFactory, 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 ProviderUsageSnapshot, type ProviderValidateReplayTurnsContext, type ProviderWebSocketSessionPolicy, type ProviderWrapStreamFnContext, type RealtimeTranscriptionProviderPlugin, type ReplyPayload, type RoutePeer, type RoutePeerKind, type RuntimeLogger, 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 };