import { a as normalizeFastMode, c as normalizeOptionalLowercaseString, d as normalizeOptionalThreadValue, f as normalizeStringifiedEntries, h as resolvePrimaryStringValue, i as lowercasePreservingWhitespace, l as normalizeOptionalString, m as readStringValue, n as hasNonEmptyString, o as normalizeLowercaseStringOrEmpty, p as normalizeStringifiedOptionalString, r as localeLowercasePreservingWhitespace, s as normalizeNullableString, t as FastMode, u as normalizeOptionalStringifiedId } from "./string-coerce-DJnd-JG-.js";
import { g as resolveReactionLevel, h as ResolvedReactionLevel, m as ReactionLevel } from "./types.channels-DIX7n_Dk.js";
import { _ as sleep, a as displayPath, b as escapeRegExp, c as isRecord, d as resolveConfigDir, f as resolveHomeDir, g as shortenHomePath, h as shortenHomeInString, i as clampNumber, l as normalizeE164, m as safeParseJson, n as clamp, o as displayString, p as resolveUserPath, r as clampInt, s as ensureDir, t as CONFIG_DIR, u as pathExists, v as sliceUtf16Safe, y as truncateUtf16Safe } from "./utils-CSF_huAn.js";
import { q as withTimeout } from "./fs-safe-Dff5zUCF.js";
import { a as computeSensitiveRedactionBitmap, c as redactSecrets, d as redactSensitiveLines, f as redactSensitiveText, g as resolveRedactOptions, h as redactToolPayloadTextWithConfig, i as ResolvedRedactOptions, l as redactSensitiveFieldValue, m as redactToolPayloadText, n as RedactPattern, o as getDefaultRedactPatterns, p as redactToolDetail, r as RedactSensitiveMode, s as isSensitiveFieldKey, t as RedactOptions, u as redactSensitiveFieldValueWithConfig } from "./redact-CzkRtzvJ.js";
import { n as resolveGlobalSingleton, t as resolveGlobalMap } from "./global-singleton-D7qTIcxD.js";
import { t as convertMarkdownTables } from "./tables-BBMGs0qO.js";
import { a as sanitizeAssistantVisibleTextWithProfile, c as stripDowngradedToolCallText, d as stripToolCallXmlTags, i as sanitizeAssistantVisibleTextWithOptions, l as stripLegacyBracketToolCallBlocks, n as sanitizeAssistantFinalAnswerText, o as stripAssistantInternalScaffolding, r as sanitizeAssistantVisibleText, s as stripAssistantInternalTraceLines, t as AssistantVisibleTextSanitizerProfile, u as stripMinimaxToolCallXml } from "./assistant-visible-text-CxJcwpd7.js";
import { _ as uniqueStrings, a as normalizeOptionalTrimmedStringList, c as normalizeSortedUniqueTrimmedStringList, d as normalizeTrimmedStringList, f as normalizeUniqueSingleOrTrimmedStringList, g as sortUniqueStrings, h as normalizeUniqueTrimmedStringList, i as normalizeHyphenSlug, l as normalizeStringEntries, m as normalizeUniqueStringEntriesLower, n as normalizeAtHashSlug, o as normalizeSingleOrTrimmedStringList, p as normalizeUniqueStringEntries, r as normalizeCsvOrLooseStringList, s as normalizeSortedUniqueStringEntries, t as normalizeArrayBackedTrimmedStringList, u as normalizeStringEntriesLower, v as uniqueValues } from "./string-normalization-BUWquf-_.js";
import { n as buildTimeoutAbortSignal, r as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-D2yvPshT.js";
import { n as createScopedExpiringIdCache, t as ScopedExpiringIdCache } from "./scoped-expiring-id-cache-DBw3jYn7.js";
import { n as hasSystemMark, r as prefixSystemMessage, t as SYSTEM_MARK } from "./system-message-BaqODHMh.js";
import { a as getChildLogger, c as isFileLogLevelEnabled, d as setLoggerOverride, f as testApi, h as LoggerSettings, i as PinoLikeLogger, l as resetLogger, n as DEFAULT_LOG_FILE, o as getLogger, p as toPinoLikeLogger, r as LoggerResolvedSettings, s as getResolvedLoggerSettings, t as DEFAULT_LOG_DIR, u as setLoggerConfigLoaderForTests } from "./logger-Cet-9Li4.js";
import { A as logDebug, C as resolveStuckSessionWarnMs, D as diagnosticLogger, E as updateDiagnosticSessionFile, M as logInfo, N as logSuccess, O as logLaneDequeue, P as logWarn, S as resolveStuckSessionAbortMs, T as stopDiagnosticHeartbeat, _ as logWebhookProcessed, a as logActiveRuns, b as requestStuckDiagnosticSessionRecovery, c as logMessageProcessed, d as logRunAttempt, f as logSessionAttention, g as logWebhookError, h as logToolLoopAction, i as isStuckSessionRecoveryEnabled, j as logError, k as logLaneEnqueue, l as logMessageQueued, m as logSessionTurnCreated, n as sha256HexPrefix, o as logMessageDispatchCompleted, p as logSessionStateChange, r as getDiagnosticSessionStateCountForTest, s as logMessageDispatchStarted, t as redactIdentifier, u as logMessageReceived, v as logWebhookReceived, w as startDiagnosticHeartbeat, x as resetDiagnosticStateForTest, y as markDiagnosticSessionProgress } from "./redact-identifier-DmoBgWhi.js";
import { a as asOptionalRecord, i as asOptionalObjectRecord, n as asNullableObjectRecord, o as asRecord, r as asNullableRecord, s as readStringField, t as summarizeStringEntries } from "./string-sample-DQrE5T9a.js";
import { n as isAutoLinkedFileRef, t as FILE_REF_EXTENSIONS_WITH_TLD } from "./auto-linked-file-ref-5zRwmLog.js";
import { A as MarkdownStyle, C as renderMarkdownWithMarkers, D as MarkdownIR, E as renderMarkdownIRChunksWithinLimit, F as chunkMarkdownIR, I as markdownToIR, L as markdownToIRWithMeta, M as MarkdownTableCell, N as MarkdownTableData, O as MarkdownLinkSpan, P as MarkdownTableMeta, R as sliceMarkdownIR, S as RenderStyleMarker, T as RenderedMarkdownChunk, _ as findCodeRegions, a as sanitizeReplyDirectiveId, b as RenderOptions, c as stripInlineDirectiveTagsFromMessageForDisplay, d as ReasoningTagMode, f as ReasoningTagScope, g as CodeRegion, h as stripReasoningTagsFromText, i as parseInlineDirectives, j as MarkdownStyleSpan, k as MarkdownParseOptions, l as sanitizeTerminalText, m as hasOrphanReasoningCloseBoundary, n as DisplayMessageWithContent, o as stripInlineDirectiveTagsForDelivery, p as ReasoningTagTrim, r as InlineDirectiveParseResult, s as stripInlineDirectiveTagsForDisplay, t as chunkItems, u as stripMarkdown, v as isInsideCode, w as RenderMarkdownIRChunksWithinLimitOptions, x as RenderStyleMap, y as RenderLink } from "./chunk-items-CvdlhtPH.js";
export { AssistantVisibleTextSanitizerProfile, CONFIG_DIR, CodeRegion, DEFAULT_LOG_DIR, DEFAULT_LOG_FILE, DisplayMessageWithContent, FILE_REF_EXTENSIONS_WITH_TLD, FastMode, InlineDirectiveParseResult, LoggerResolvedSettings, type LoggerSettings, MarkdownIR, MarkdownLinkSpan, MarkdownParseOptions, MarkdownStyle, MarkdownStyleSpan, MarkdownTableCell, MarkdownTableData, MarkdownTableMeta, PinoLikeLogger, ReactionLevel, ReasoningTagMode, ReasoningTagScope, ReasoningTagTrim, RedactOptions, RedactPattern, RedactSensitiveMode, RenderLink, RenderMarkdownIRChunksWithinLimitOptions, RenderOptions, RenderStyleMap, RenderStyleMarker, RenderedMarkdownChunk, ResolvedReactionLevel, ResolvedRedactOptions, SYSTEM_MARK, ScopedExpiringIdCache, testApi as __test__, testApi, asNullableObjectRecord, asNullableRecord, asOptionalObjectRecord, asOptionalRecord, asRecord, bindAbortRelay, buildTimeoutAbortSignal, chunkItems, chunkMarkdownIR, clamp, clampInt, clampNumber, computeSensitiveRedactionBitmap, convertMarkdownTables, createScopedExpiringIdCache, diagnosticLogger, displayPath, displayString, ensureDir, escapeRegExp, fetchWithTimeout, findCodeRegions, getChildLogger, getDefaultRedactPatterns, getDiagnosticSessionStateCountForTest, getLogger, getResolvedLoggerSettings, hasNonEmptyString, hasOrphanReasoningCloseBoundary, hasSystemMark, isAutoLinkedFileRef, isFileLogLevelEnabled, isInsideCode, isRecord, isSensitiveFieldKey, isStuckSessionRecoveryEnabled, localeLowercasePreservingWhitespace, logActiveRuns, logDebug, logError, logInfo, logLaneDequeue, logLaneEnqueue, logMessageDispatchCompleted, logMessageDispatchStarted, logMessageProcessed, logMessageQueued, logMessageReceived, logRunAttempt, logSessionAttention, logSessionStateChange, logSessionTurnCreated, logSuccess, logToolLoopAction, logWarn, logWebhookError, logWebhookProcessed, logWebhookReceived, lowercasePreservingWhitespace, markDiagnosticSessionProgress, markdownToIR, markdownToIRWithMeta, normalizeArrayBackedTrimmedStringList, normalizeAtHashSlug, normalizeCsvOrLooseStringList, normalizeE164, normalizeFastMode, normalizeHyphenSlug, normalizeLowercaseStringOrEmpty, normalizeNullableString, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeOptionalStringifiedId, normalizeOptionalThreadValue, normalizeOptionalTrimmedStringList, normalizeSingleOrTrimmedStringList, normalizeSortedUniqueStringEntries, normalizeSortedUniqueTrimmedStringList, normalizeStringEntries, normalizeStringEntriesLower, normalizeStringifiedEntries, normalizeStringifiedOptionalString, normalizeTrimmedStringList, normalizeUniqueSingleOrTrimmedStringList, normalizeUniqueStringEntries, normalizeUniqueStringEntriesLower, normalizeUniqueTrimmedStringList, parseInlineDirectives, pathExists, prefixSystemMessage, readStringField, readStringValue, redactIdentifier, redactSecrets, redactSensitiveFieldValue, redactSensitiveFieldValueWithConfig, redactSensitiveLines, redactSensitiveText, redactToolDetail, redactToolPayloadText, redactToolPayloadTextWithConfig, renderMarkdownIRChunksWithinLimit, renderMarkdownWithMarkers, requestStuckDiagnosticSessionRecovery, resetDiagnosticStateForTest, resetLogger, resolveConfigDir, resolveGlobalMap, resolveGlobalSingleton, resolveHomeDir, resolvePrimaryStringValue, resolveReactionLevel, resolveRedactOptions, resolveStuckSessionAbortMs, resolveStuckSessionWarnMs, resolveUserPath, safeParseJson, sanitizeAssistantFinalAnswerText, sanitizeAssistantVisibleText, sanitizeAssistantVisibleTextWithOptions, sanitizeAssistantVisibleTextWithProfile, sanitizeReplyDirectiveId, sanitizeTerminalText, setLoggerConfigLoaderForTests, setLoggerOverride, sha256HexPrefix, shortenHomeInString, shortenHomePath, sleep, sliceMarkdownIR, sliceUtf16Safe, sortUniqueStrings, startDiagnosticHeartbeat, stopDiagnosticHeartbeat, stripAssistantInternalScaffolding, stripAssistantInternalTraceLines, stripDowngradedToolCallText, stripInlineDirectiveTagsForDelivery, stripInlineDirectiveTagsForDisplay, stripInlineDirectiveTagsFromMessageForDisplay, stripLegacyBracketToolCallBlocks, stripMarkdown, stripMinimaxToolCallXml, stripReasoningTagsFromText, stripToolCallXmlTags, summarizeStringEntries, toPinoLikeLogger, truncateUtf16Safe, uniqueStrings, uniqueValues, updateDiagnosticSessionFile, withTimeout };