import { R as StreamingMode, a as ChannelPreviewStreamingConfig, c as ChannelStreamingConfig, i as ChannelDeliveryStreamingConfig, l as ChannelStreamingPreviewConfig, o as ChannelStreamingBlockConfig, s as ChannelStreamingCommandTextMode, u as ChannelStreamingProgressConfig, z as TextChunkMode } from "./types.base-CrXPFJf5.js";
import { a as SlackChannelStreamingConfig } from "./types.slack-DgsyhOeC.js";
import { i as resolveOutboundSendDep, t as OutboundSendDeps } from "./send-deps-Ds6JW9s7.js";
import { A as LiveMessageState, B as RenderedMessageBatchPlan, C as DeriveDurableFinalDeliveryRequirementsParams, D as DurableFinalRequirementExtras, E as DurableFinalDeliveryRequirementMap, F as MessageReceiptPart, H as RenderedMessageBatchPlanKind, I as MessageReceiptPartKind, L as MessageReceiptSourceResult, M as LivePreviewFinalizerCapabilityMap, N as MessageDurabilityPolicy, O as DurableMessageSendIntent, P as MessageReceipt, R as MessageSendContext, S as ChannelMessageUnknownSendReconciliationResult, T as DurableFinalDeliveryPayloadShape, V as RenderedMessageBatchPlanItem, _ as ChannelMessageSendPollContext, a as ChannelMessageLiveCapability, b as ChannelMessageSendTextContext, c as ChannelMessageReceiveAdapterShape, d as ChannelMessageSendAttemptKind, f as ChannelMessageSendCommitContext, g as ChannelMessageSendPayloadContext, h as ChannelMessageSendMediaContext, i as ChannelMessageLiveAdapterShape, j as LivePreviewFinalizerCapability, k as LiveMessagePhase, l as ChannelMessageSendAdapter, m as ChannelMessageSendLifecycleAdapter, n as ChannelMessageAdapterShape, o as ChannelMessageLiveFinalizerAdapterShape, p as ChannelMessageSendFailureContext, r as ChannelMessageDurableFinalAdapter, s as ChannelMessageReceiveAckPolicy, t as ChannelMessageAdapter, u as ChannelMessageSendAttemptContext, v as ChannelMessageSendResult, w as DurableFinalDeliveryCapability, x as ChannelMessageUnknownSendContext, y as ChannelMessageSendSuccessContext, z as RenderedMessageBatch } from "./types-DiZQBaea.js";
import { d as OutboundDeliveryFormattingOptions, u as OutboundIdentity } from "./outbound.types-B9hdsMcU.js";
import { As as ChannelIngressQueuePruneOptions, Ds as ChannelIngressQueueCompletedRecord, Es as ChannelIngressQueueClaimRef, Os as ChannelIngressQueueEnqueueResult, Ts as ChannelIngressQueueClaim, cr as DurableInboundReplyDeliveryParams, js as ChannelIngressQueueRecord, ks as ChannelIngressQueueFailedRecord, lr as DurableInboundReplyDeliveryResult, sr as DurableInboundReplyDeliveryOptions, ws as ChannelIngressQueue } from "./types-2Z7qOzEz.js";
import { c as createTypingCallbacks, i as createReplyPrefixOptions, r as createReplyPrefixContext } from "./reply-prefix-CZmGtpBg.js";
import { o as OutboundSessionContext, s as buildOutboundSessionContext, u as resolveAgentOutboundIdentity } from "./delivery-queue-BuRU2By0.js";
import { c as projectOutboundPayloadPlanForDelivery, s as createOutboundPayloadPlan } from "./deliver-Dc9ISEwD.js";
import { a as resolveChannelSourceReplyDeliveryMode, i as createChannelReplyPipeline, n as CreateChannelReplyPipelineParams } from "./reply-pipeline-DY3BlOin.js";
import { a as createChannelRunQueue, c as waitUntilAbort, i as createAccountStatusSink, n as ChannelRunQueueParams, o as keepHttpServerTaskAlive, r as ChannelRunQueueTaskContext, s as runPassiveAccountLifecycle, t as ChannelRunQueue } from "./channel-lifecycle.core-DUE45P0y.js";
import { i as logTypingFailure, n as logAckFailure } from "./logging-yk8JlYZb.js";
import { a as buildChannelMessageReplyDispatchBase, c as dispatchChannelMessageReplyWithBase, d as hasFinalChannelMessageReplyDispatch, f as hasVisibleChannelMessageReplyDispatch, h as resolveChannelMessageReplyDispatchCounts, p as recordChannelMessageReplyDispatch } from "./inbound-reply-dispatch-BBFF5V2v.js";
import { _ as deliverWithFinalizableLivePreviewAdapter, a as createFinalizableDraftStreamControlsForState, b as markLiveMessagePreviewUpdated, c as createDraftStreamLoop, d as LivePreviewFinalizerResult, f as LivePreviewFinalizerResultKind, g as deliverFinalizableLivePreview, h as defineFinalizableLivePreviewAdapter, i as createFinalizableDraftStreamControls, l as FinalizableLivePreviewAdapter, m as createPreviewMessageReceipt, n as clearFinalizableDraftMessage, o as takeMessageIdAfterStop, p as createLiveMessageState, r as createFinalizableDraftLifecycle, s as DraftStreamLoop, t as FinalizableDraftStreamState, u as LivePreviewFinalizerDraft, v as markLiveMessageCancelled, y as markLiveMessageFinalized } from "./draft-stream-controls-CzjyO0r_.js";
import { $ as DurableInboundReceiveJournalOptions, A as DurableFinalCapabilityProof, B as verifyChannelMessageAdapterCapabilityProofs, C as resolveMessageReceiptPrimaryId, D as ChannelMessageReceiveAckPolicyProof, E as ChannelMessageLiveCapabilityProofResult, F as LivePreviewFinalizerCapabilityProofResult, G as verifyChannelMessageReceiveAckPolicyProofs, H as verifyChannelMessageLiveCapabilityProofs, I as listDeclaredChannelMessageLiveCapabilities, J as DurableInboundReceiveAcceptOptions, K as verifyDurableFinalCapabilityProofs, L as listDeclaredDurableFinalCapabilities, M as DurableFinalCapabilityProofResult, N as LivePreviewFinalizerCapabilityProof, O as ChannelMessageReceiveAckPolicyProofMap, P as LivePreviewFinalizerCapabilityProofMap, Q as DurableInboundReceiveJournal, R as listDeclaredLivePreviewFinalizerCapabilities, S as listMessageReceiptPlatformIds, T as ChannelMessageLiveCapabilityProofMap, U as verifyChannelMessageLiveFinalizerProofs, V as verifyChannelMessageLiveCapabilityAdapterProofs, W as verifyChannelMessageReceiveAckPolicyAdapterProofs, X as DurableInboundReceiveCompleteOptions, Y as DurableInboundReceiveAcceptResult, Z as DurableInboundReceiveCompletedRecord, _ as MessageAckState, a as ChannelProgressDraftMode, at as ChannelMessageOutboundBridgeAdapter, b as shouldAckMessageAfterStage, c as createReplyToFanout, ct as createChannelMessageAdapterFromOutbound, d as DurableMessageSendState, dt as DurableMessageBatchSendParams, et as DurableInboundReceivePendingRecord, f as DurableMessageStateRecord, ft as DurableMessageBatchSendResult, g as MessageAckStage, h as MessageAckPolicy, i as ChannelProgressDraftCompositor, it as createDurableInboundReceiveJournalFromQueue, j as DurableFinalCapabilityProofMap, k as ChannelMessageReceiveAckPolicyProofResult, l as ChannelDraftStreamingChunking, lt as defineChannelMessageAdapter, m as createDurableMessageStateRecord, mt as DurableMessageSendContextParams, n as sendDurableMessageBatch, nt as DurableInboundReceiveReleaseOptions, o as createChannelProgressDraftCompositor, ot as ChannelMessageOutboundBridgeResult, p as classifyDurableSendRecoveryState, pt as DurableMessageSendContext, q as verifyLivePreviewFinalizerCapabilityProofs, r as withDurableMessageSendContext, rt as createDurableInboundReceiveJournal, s as ReplyToResolution, st as CreateChannelMessageAdapterFromOutboundParams, t as deliverInboundReplyWithMessageSendContext, tt as DurableInboundReceiveQueueJournalOptions, u as resolveChannelDraftStreamingChunking, ut as deriveDurableFinalDeliveryRequirements, v as MessageReceiveContext, w as ChannelMessageLiveCapabilityProof, x as createMessageReceiptFromOutboundResults, y as createMessageReceiveContext, z as listDeclaredReceiveAckPolicies } from "./channel-outbound-Dqlef2-c.js";
import { n as createRuntimeOutboundDelegates } from "./runtime-forwarders-D2w_7fCf.js";
import { t as sanitizeForPlainText } from "./sanitize-text-BMx_OmdN.js";
import { A as resolveChannelStreamingNativeTransport, C as resolveChannelProgressDraftLineOptions, D as resolveChannelStreamingBlockCoalesce, E as resolveChannelProgressDraftRender, F as resolveChannelStreamingPreviewToolProgress, I as resolveChannelStreamingProgressCommentary, L as resolveChannelStreamingSuppressDefaultToolProgressMessages, M as resolveChannelStreamingPreviewCommandText, N as resolveChannelStreamingPreviewNativeToolProgress, O as resolveChannelStreamingBlockEnabled, P as resolveChannelStreamingPreviewNativeToolProgressAllowFrom, R as resolveTranscriptBackedChannelFinalText, S as resolveChannelProgressDraftLabel, T as resolveChannelProgressDraftMaxLines, _ as isPotentialTruncatedFinal, a as ChannelProgressLineOptions, b as resolveChannelPreviewStreamMode, c as StreamingCompatEntry, d as createChannelProgressDraftGate, f as formatChannelProgressDraftLine, g as isChannelProgressDraftWorkToolName, h as getChannelStreamingConfigObject, i as ChannelProgressDraftRenderMode, j as resolveChannelStreamingPreviewChunk, k as resolveChannelStreamingChunkMode, l as buildChannelProgressDraftLine, m as formatChannelProgressDraftText, n as ChannelProgressDraftLineInput, o as DEFAULT_PROGRESS_DRAFT_INITIAL_DELAY_MS, p as formatChannelProgressDraftLineForEntry, r as ChannelProgressDraftLineKind, s as DEFAULT_PROGRESS_DRAFT_LABELS, t as ChannelProgressDraftLine, u as buildChannelProgressDraftLineForEntry, v as mergeChannelProgressDraftLine, w as resolveChannelProgressDraftMaxLineChars, x as resolveChannelProgressDraftConfig, y as normalizeChannelProgressDraftLineIdentity, z as selectLongerFinalText } from "./streaming-Bpy_l69r.js";
import { createChannelTurnReplyPipeline, deliverDurableInboundReplyPayload } from "./channel-message.js";
export { type ChannelDeliveryStreamingConfig, type ChannelDraftStreamingChunking, type ChannelIngressQueue, type ChannelIngressQueueClaim, type ChannelIngressQueueClaimRef, type ChannelIngressQueueCompletedRecord, type ChannelIngressQueueEnqueueResult, type ChannelIngressQueueFailedRecord, type ChannelIngressQueuePruneOptions, type ChannelIngressQueueRecord, type ChannelMessageAdapter, type ChannelMessageAdapterShape, type ChannelMessageDurableFinalAdapter, type ChannelMessageLiveAdapterShape, type ChannelMessageLiveCapability, type ChannelMessageLiveCapabilityProof, type ChannelMessageLiveCapabilityProofMap, type ChannelMessageLiveCapabilityProofResult, type ChannelMessageLiveFinalizerAdapterShape, type ChannelMessageOutboundBridgeAdapter, type ChannelMessageOutboundBridgeResult, type ChannelMessageReceiveAckPolicy, type ChannelMessageReceiveAckPolicyProof, type ChannelMessageReceiveAckPolicyProofMap, type ChannelMessageReceiveAckPolicyProofResult, type ChannelMessageReceiveAdapterShape, type ChannelMessageSendAdapter, type ChannelMessageSendAttemptContext, type ChannelMessageSendAttemptKind, type ChannelMessageSendCommitContext, type ChannelMessageSendFailureContext, type ChannelMessageSendLifecycleAdapter, type ChannelMessageSendMediaContext, type ChannelMessageSendPayloadContext, type ChannelMessageSendPollContext, type ChannelMessageSendResult, type ChannelMessageSendSuccessContext, type ChannelMessageSendTextContext, type ChannelMessageUnknownSendContext, type ChannelMessageUnknownSendReconciliationResult, type ChannelPreviewStreamingConfig, ChannelProgressDraftCompositor, ChannelProgressDraftLine, ChannelProgressDraftLineInput, ChannelProgressDraftLineKind, ChannelProgressDraftMode, ChannelProgressDraftRenderMode, ChannelProgressLineOptions, type ChannelRunQueue, type ChannelRunQueueParams, type ChannelRunQueueTaskContext, type ChannelStreamingBlockConfig, type ChannelStreamingCommandTextMode, type ChannelStreamingConfig, type ChannelStreamingPreviewConfig, type ChannelStreamingProgressConfig, type CreateChannelMessageAdapterFromOutboundParams, type CreateChannelReplyPipelineParams, DEFAULT_PROGRESS_DRAFT_INITIAL_DELAY_MS, DEFAULT_PROGRESS_DRAFT_LABELS, type DeriveDurableFinalDeliveryRequirementsParams, type DraftStreamLoop, type DurableFinalCapabilityProof, type DurableFinalCapabilityProofMap, type DurableFinalCapabilityProofResult, type DurableFinalDeliveryCapability, type DurableFinalDeliveryPayloadShape, type DurableFinalDeliveryRequirementMap, type DurableFinalRequirementExtras, type DurableInboundReceiveAcceptOptions, type DurableInboundReceiveAcceptResult, type DurableInboundReceiveCompleteOptions, type DurableInboundReceiveCompletedRecord, type DurableInboundReceiveJournal, type DurableInboundReceiveJournalOptions, type DurableInboundReceivePendingRecord, type DurableInboundReceiveQueueJournalOptions, type DurableInboundReceiveReleaseOptions, type DurableInboundReplyDeliveryOptions, type DurableInboundReplyDeliveryParams, type DurableInboundReplyDeliveryResult, type DurableMessageBatchSendParams, type DurableMessageBatchSendResult, type DurableMessageSendContext, type DurableMessageSendContextParams, type DurableMessageSendIntent, type DurableMessageSendState, type DurableMessageStateRecord, type FinalizableDraftStreamState, type FinalizableLivePreviewAdapter, type LiveMessagePhase, type LiveMessageState, type LivePreviewFinalizerCapability, type LivePreviewFinalizerCapabilityMap, type LivePreviewFinalizerCapabilityProof, type LivePreviewFinalizerCapabilityProofMap, type LivePreviewFinalizerCapabilityProofResult, type LivePreviewFinalizerDraft, type LivePreviewFinalizerResult, type LivePreviewFinalizerResultKind, type MessageAckPolicy, type MessageAckStage, type MessageAckState, type MessageDurabilityPolicy, type MessageReceipt, type MessageReceiptPart, type MessageReceiptPartKind, type MessageReceiptSourceResult, type MessageReceiveContext, type MessageSendContext, type OutboundDeliveryFormattingOptions, type OutboundIdentity, type OutboundSendDeps, type OutboundSessionContext, type RenderedMessageBatch, type RenderedMessageBatchPlan, type RenderedMessageBatchPlanItem, type RenderedMessageBatchPlanKind, type ReplyToResolution, type SlackChannelStreamingConfig, StreamingCompatEntry, type StreamingMode, type TextChunkMode, buildChannelMessageReplyDispatchBase, buildChannelProgressDraftLine, buildChannelProgressDraftLineForEntry, buildOutboundSessionContext, classifyDurableSendRecoveryState, clearFinalizableDraftMessage, createAccountStatusSink, createChannelMessageAdapterFromOutbound, createChannelReplyPipeline as createChannelMessageReplyPipeline, createChannelProgressDraftCompositor, createChannelProgressDraftGate, createChannelRunQueue, createChannelTurnReplyPipeline, createDraftStreamLoop, createDurableInboundReceiveJournal, createDurableInboundReceiveJournalFromQueue, createDurableMessageStateRecord, createFinalizableDraftLifecycle, createFinalizableDraftStreamControls, createFinalizableDraftStreamControlsForState, createLiveMessageState, createMessageReceiptFromOutboundResults, createMessageReceiveContext, createOutboundPayloadPlan, createPreviewMessageReceipt, createReplyPrefixContext, createReplyPrefixOptions, createReplyToFanout, createRuntimeOutboundDelegates, createTypingCallbacks, defineChannelMessageAdapter, defineFinalizableLivePreviewAdapter, deliverDurableInboundReplyPayload, deliverFinalizableLivePreview, deliverInboundReplyWithMessageSendContext, deliverWithFinalizableLivePreviewAdapter, deriveDurableFinalDeliveryRequirements, dispatchChannelMessageReplyWithBase, formatChannelProgressDraftLine, formatChannelProgressDraftLineForEntry, formatChannelProgressDraftText, getChannelStreamingConfigObject, hasFinalChannelMessageReplyDispatch, hasVisibleChannelMessageReplyDispatch, isChannelProgressDraftWorkToolName, isPotentialTruncatedFinal, keepHttpServerTaskAlive, listDeclaredChannelMessageLiveCapabilities, listDeclaredDurableFinalCapabilities, listDeclaredLivePreviewFinalizerCapabilities, listDeclaredReceiveAckPolicies, listMessageReceiptPlatformIds, logAckFailure, logTypingFailure, markLiveMessageCancelled, markLiveMessageFinalized, markLiveMessagePreviewUpdated, mergeChannelProgressDraftLine, normalizeChannelProgressDraftLineIdentity, projectOutboundPayloadPlanForDelivery, recordChannelMessageReplyDispatch, resolveAgentOutboundIdentity, resolveChannelDraftStreamingChunking, resolveChannelMessageReplyDispatchCounts, resolveChannelSourceReplyDeliveryMode as resolveChannelMessageSourceReplyDeliveryMode, resolveChannelPreviewStreamMode, resolveChannelProgressDraftConfig, resolveChannelProgressDraftLabel, resolveChannelProgressDraftLineOptions, resolveChannelProgressDraftMaxLineChars, resolveChannelProgressDraftMaxLines, resolveChannelProgressDraftRender, resolveChannelStreamingBlockCoalesce, resolveChannelStreamingBlockEnabled, resolveChannelStreamingChunkMode, resolveChannelStreamingNativeTransport, resolveChannelStreamingPreviewChunk, resolveChannelStreamingPreviewCommandText, resolveChannelStreamingPreviewNativeToolProgress, resolveChannelStreamingPreviewNativeToolProgressAllowFrom, resolveChannelStreamingPreviewToolProgress, resolveChannelStreamingProgressCommentary, resolveChannelStreamingSuppressDefaultToolProgressMessages, resolveMessageReceiptPrimaryId, resolveOutboundSendDep, resolveTranscriptBackedChannelFinalText, runPassiveAccountLifecycle, sanitizeForPlainText, selectLongerFinalText, sendDurableMessageBatch, shouldAckMessageAfterStage, takeMessageIdAfterStop, verifyChannelMessageAdapterCapabilityProofs, verifyChannelMessageLiveCapabilityAdapterProofs, verifyChannelMessageLiveCapabilityProofs, verifyChannelMessageLiveFinalizerProofs, verifyChannelMessageReceiveAckPolicyAdapterProofs, verifyChannelMessageReceiveAckPolicyProofs, verifyDurableFinalCapabilityProofs, verifyLivePreviewFinalizerCapabilityProofs, waitUntilAbort, withDurableMessageSendContext };