import { t as resolveConversationLabel } from "../conversation-label-hm4AcUUO.js";
import { a as registerSessionBindingAdapter, i as isSessionBindingError, n as __testing, o as unregisterSessionBindingAdapter, r as getSessionBindingService, t as SessionBindingError } from "../session-binding-service-TkzMJgX4.js";
import { t as resolveThreadBindingLifecycle } from "../thread-binding-lifecycle-BSTX0tcR.js";
import { a as resolveThreadBindingIdleTimeoutMs, c as resolveThreadBindingMaxAgeMsForChannel, d as resolveThreadBindingsEnabled, i as resolveThreadBindingEffectiveExpiresAt, n as formatThreadBindingSpawnDisabledError, o as resolveThreadBindingIdleTimeoutMsForChannel, s as resolveThreadBindingMaxAgeMs, t as formatThreadBindingDisabledError, u as resolveThreadBindingSpawnPolicy } from "../thread-bindings-policy-ju78wBwB.js";
import { _ as getConversationBindingCapabilities, a as buildPluginBindingUnavailableText, b as touchConversationBindingRecord, c as hasShownPluginBindingFallbackNotice, d as markPluginBindingFallbackNoticeShown, f as parsePluginBindingApprovalCustomId, g as createConversationBindingRecord, h as toPluginConversationBinding, i as buildPluginBindingResolvedText, l as isPluginOwnedBindingMetadata, m as resolvePluginConversationBindingApproval, n as buildPluginBindingDeclinedText, o as detachPluginConversationBinding, p as requestPluginConversationBinding, r as buildPluginBindingErrorText, s as getCurrentPluginConversationBinding, t as buildPluginBindingApprovalCustomId, u as isPluginOwnedSessionBindingRecord, v as listSessionBindingRecords, x as unbindConversationBindingRecord, y as resolveConversationBindingRecord } from "../conversation-binding-Bi1-X657.js";
import { n as createStaticReplyToModeResolver, r as createTopLevelChannelReplyToModeResolver, t as createScopedAccountReplyToModeResolver } from "../threading-helpers-CDqXAnLB.js";
import { a as resolveConfiguredBindingRecordForConversation, i as resolveConfiguredBindingRecordBySessionKey, n as resolveConfiguredBinding, r as resolveConfiguredBindingRecord, t as primeConfiguredBindingRegistry } from "../binding-registry-BfEfvCBC.js";
import { t as recordInboundSession } from "../session-Cfo6uSjE.js";
import { t as buildPairingReply } from "../pairing-messages-CZIBjNtB.js";
import { a as readChannelAllowFromStore, c as readLegacyChannelAllowFromStoreSync, d as upsertChannelPairingRequest, i as listChannelPairingRequests, l as removeChannelAllowFromStoreEntry, n as approveChannelPairingCode, o as readChannelAllowFromStoreSync, r as clearPairingAllowFromReadCacheForTest, s as readLegacyChannelAllowFromStore, t as addChannelAllowFromStoreEntry, u as resolveChannelAllowFromPath } from "../pairing-store-Ba7XT5ir.js";
import { l as resolvePinnedMainDmOwnerFromAllowlist } from "../dm-policy-shared-vsXr18Pw.js";
import { t as issuePairingChallenge } from "../pairing-challenge-0IZCQGpT.js";
import { n as ensureConfiguredBindingTargetSession, r as resetConfiguredBindingTargetInPlace, t as ensureConfiguredBindingTargetReady } from "../binding-targets-DpxdhAyN.js";
import { n as resolveConfiguredBindingRoute, r as resolveRuntimeConversationBindingRoute, t as ensureConfiguredBindingRouteReady } from "../binding-routing-DepF---t.js";
import { t as recordInboundSessionMetaSafe } from "../conversation-runtime-SFpMCaOu.js";
import { t as resolveThreadBindingConversationIdFromBindingId } from "../thread-binding-id-C3Stbx8z.js";
import { i as resolveThreadBindingThreadName, n as resolveThreadBindingFarewellText, r as resolveThreadBindingIntroText, t as formatThreadBindingDurationLabel } from "../thread-bindings-messages-CJkqj0o6.js";
import { t as resolvePairingIdLabel } from "../pairing-labels-BtMtx6Up.js";
export { SessionBindingError, __testing, addChannelAllowFromStoreEntry, approveChannelPairingCode, buildPairingReply, buildPluginBindingApprovalCustomId, buildPluginBindingDeclinedText, buildPluginBindingErrorText, buildPluginBindingResolvedText, buildPluginBindingUnavailableText, clearPairingAllowFromReadCacheForTest, createConversationBindingRecord, createScopedAccountReplyToModeResolver, createStaticReplyToModeResolver, createTopLevelChannelReplyToModeResolver, detachPluginConversationBinding, ensureConfiguredBindingRouteReady, ensureConfiguredBindingTargetReady, ensureConfiguredBindingTargetSession, formatThreadBindingDisabledError, formatThreadBindingDurationLabel, formatThreadBindingSpawnDisabledError, getConversationBindingCapabilities, getCurrentPluginConversationBinding, getSessionBindingService, hasShownPluginBindingFallbackNotice, isPluginOwnedBindingMetadata, isPluginOwnedSessionBindingRecord, isSessionBindingError, issuePairingChallenge, listChannelPairingRequests, listSessionBindingRecords, markPluginBindingFallbackNoticeShown, parsePluginBindingApprovalCustomId, primeConfiguredBindingRegistry, readChannelAllowFromStore, readChannelAllowFromStoreSync, readLegacyChannelAllowFromStore, readLegacyChannelAllowFromStoreSync, recordInboundSession, recordInboundSessionMetaSafe, registerSessionBindingAdapter, removeChannelAllowFromStoreEntry, requestPluginConversationBinding, resetConfiguredBindingTargetInPlace, resolveChannelAllowFromPath, resolveConfiguredBinding, resolveConfiguredBindingRecord, resolveConfiguredBindingRecordBySessionKey, resolveConfiguredBindingRecordForConversation, resolveConfiguredBindingRoute, resolveConversationBindingRecord, resolveConversationLabel, resolvePairingIdLabel, resolvePinnedMainDmOwnerFromAllowlist, resolvePluginConversationBindingApproval, resolveRuntimeConversationBindingRoute, resolveThreadBindingConversationIdFromBindingId, resolveThreadBindingEffectiveExpiresAt, resolveThreadBindingFarewellText, resolveThreadBindingIdleTimeoutMs, resolveThreadBindingIdleTimeoutMsForChannel, resolveThreadBindingIntroText, resolveThreadBindingLifecycle, resolveThreadBindingMaxAgeMs, resolveThreadBindingMaxAgeMsForChannel, resolveThreadBindingSpawnPolicy, resolveThreadBindingThreadName, resolveThreadBindingsEnabled, toPluginConversationBinding, touchConversationBindingRecord, unbindConversationBindingRecord, unregisterSessionBindingAdapter, upsertChannelPairingRequest };
