wednesdayai 0.5.1-dev.21 → 0.5.1-dev.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. package/dist/build-info.json +3 -3
  2. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  3. package/dist/daemon-cli.js +7 -7
  4. package/dist/plugin-sdk/{agent-scope-B5NskkwN.js → agent-scope-BNKfH4PO.js} +2 -2
  5. package/dist/plugin-sdk/agent-turn-execute-92Jd5M92.js +64 -0
  6. package/dist/plugin-sdk/{agent-turn-runner-orbrCxRO.js → agent-turn-runner-BGKi5ORc.js} +7 -7
  7. package/dist/plugin-sdk/agent-turn-runner-DzcgJM9P.js +11 -0
  8. package/dist/plugin-sdk/{api-key-rotation-Dd5GYq7W.js → api-key-rotation-BoeGT5k6.js} +2 -2
  9. package/dist/plugin-sdk/{audio-preflight-CNU5kpWj.js → audio-preflight-5GG45mzw.js} +2 -2
  10. package/dist/plugin-sdk/audio-preflight-CjrkjpyE.js +31 -0
  11. package/dist/plugin-sdk/{audio-transcription-runner-D5dYI82C.js → audio-transcription-runner-B5XVOio1.js} +11 -11
  12. package/dist/plugin-sdk/{auth-profiles-CxOZbtpA.js → auth-profiles-DhZNx6fQ.js} +4 -4
  13. package/dist/plugin-sdk/{channel-activity-WL5SZ4Ub.js → channel-activity-BlGuAYdc.js} +3 -3
  14. package/dist/plugin-sdk/{chat-content-aOAkouil.js → chat-content-Bb7n9arw.js} +13 -13
  15. package/dist/plugin-sdk/{chrome-DzzIT4YD.js → chrome-CCmCZHTw.js} +5 -5
  16. package/dist/plugin-sdk/{chunk-CWDKrXV-.js → chunk-DKwQiXuF.js} +3 -3
  17. package/dist/plugin-sdk/{chunk-C_GT4tj0.js → chunk-jn4LDLDQ.js} +5 -5
  18. package/dist/plugin-sdk/{command-detection-AlAuh3r9.js → command-detection-DRhXbN8x.js} +86 -86
  19. package/dist/plugin-sdk/{command-queue-J8WWtdem.js → command-queue-DvQ4GV3e.js} +7 -7
  20. package/dist/plugin-sdk/{command-queue-JvIhb__x.js → command-queue-zJnOHqF4.js} +1 -1
  21. package/dist/plugin-sdk/{commands-registry-oILscT9a.js → commands-registry-C6FHOrPa.js} +5 -5
  22. package/dist/plugin-sdk/{commands-registry-Bq1VWa2x.js → commands-registry-COgT-iaa.js} +2 -2
  23. package/dist/plugin-sdk/{config-Cp7sIoSP.js → config-D2katwYr.js} +6 -6
  24. package/dist/plugin-sdk/{deliver-D77qfyGv.js → deliver-psYmko0d.js} +14 -14
  25. package/dist/plugin-sdk/deliver-vnDzNTkY.js +35 -0
  26. package/dist/plugin-sdk/{diagnostic-C-BgFx1S.js → diagnostic-C6f2UvX8.js} +6 -6
  27. package/dist/plugin-sdk/{diagnostic-DVk1j05H.js → diagnostic-ClVRNbVE.js} +5 -5
  28. package/dist/plugin-sdk/{errors-BAcXagTa.js → errors-B671D37F.js} +1 -1
  29. package/dist/plugin-sdk/{fetch-guard-5esEIw3C.js → fetch-guard-DWRMXy-Z.js} +3 -3
  30. package/dist/plugin-sdk/{fs-safe-Qut4VUn8.js → fs-safe-CR39I5to.js} +3 -3
  31. package/dist/plugin-sdk/{image-ops-B9MP8BwT.js → image-ops-C0wvHJkm.js} +1 -1
  32. package/dist/plugin-sdk/index.js +56 -56
  33. package/dist/plugin-sdk/{ir-D6Bn5lOZ.js → ir-CRNn4Wzv.js} +5 -5
  34. package/dist/plugin-sdk/{local-roots-1beRdBcS.js → local-roots-D2LPLxOo.js} +7 -7
  35. package/dist/plugin-sdk/{logger-DYxRK_FZ.js → logger-F5PKgK4h.js} +1 -1
  36. package/dist/plugin-sdk/manager-DsV_4p9J.js +16 -0
  37. package/dist/plugin-sdk/{manager-Dxv2YpgS.js → manager-WrO0qTfU.js} +7 -7
  38. package/dist/plugin-sdk/{markdown-tables-5CSf45sS.js → markdown-tables-DunxiRpT.js} +2 -2
  39. package/dist/plugin-sdk/markdown-tables-xTvb6uxj.js +9 -0
  40. package/dist/plugin-sdk/{models-config-Dj4jLPMw.js → models-config-DJUNPvmU.js} +2 -2
  41. package/dist/plugin-sdk/{outbound-attachment-DiQNpfYY.js → outbound-attachment-Bw8Ac2Eh.js} +2 -2
  42. package/dist/plugin-sdk/{path-alias-guards-Cr_8wxeu.js → path-alias-guards-DvB3vS9N.js} +1 -1
  43. package/dist/plugin-sdk/{pi-embedded-utils-gWjx_FJu.js → pi-embedded-utils-DFu_kkJ7.js} +3 -3
  44. package/dist/plugin-sdk/{pi-model-discovery-mXT8DqbW.js → pi-model-discovery-Bt6iAhJo.js} +5 -5
  45. package/dist/plugin-sdk/{pi-model-discovery-CHCoH08E.js → pi-model-discovery-_OwU2G2N.js} +1 -1
  46. package/dist/plugin-sdk/provider-dispatcher-ZGQtxSji.js +64 -0
  47. package/dist/plugin-sdk/{provider-image-CK8PByo3.js → provider-image-BhdEzOAF.js} +6 -6
  48. package/dist/plugin-sdk/provider-image-H8yS_SWU.js +25 -0
  49. package/dist/plugin-sdk/proxy-BFnRHQ1U.js +7 -0
  50. package/dist/plugin-sdk/{proxy-K3jUjtIm.js → proxy-DhVCl72V.js} +1 -1
  51. package/dist/plugin-sdk/{proxy-fetch-Dt3HV6r3.js → proxy-fetch-BSTGvynk.js} +1 -1
  52. package/dist/plugin-sdk/{pw-ai-CsU7HGvR.js → pw-ai-D_wuo7eE.js} +10 -10
  53. package/dist/plugin-sdk/{qmd-manager-BHhDDFrn.js → qmd-manager-Dk95qYn7.js} +8 -8
  54. package/dist/plugin-sdk/{query-expansion-BY2L8oSD.js → query-expansion-CmmZw3Kz.js} +2 -2
  55. package/dist/plugin-sdk/{recorder-B_7zTSFA.js → recorder-CSYSJRCO.js} +2 -2
  56. package/dist/plugin-sdk/{redact-C9Eu_AUI.js → redact-YbcPIGWf.js} +1 -1
  57. package/dist/plugin-sdk/{replies-CmfWsSdE.js → replies-Br3czjGn.js} +5 -5
  58. package/dist/plugin-sdk/replies-DuOOGDXs.js +27 -0
  59. package/dist/plugin-sdk/{reply-directives-C_nV536z.js → reply-directives-DpVpX34I.js} +2 -2
  60. package/dist/plugin-sdk/reply-prefix-30s91NpV.js +7 -0
  61. package/dist/plugin-sdk/{reply-prefix-Bf8Iqq8v.js → reply-prefix-DA4xCsnL.js} +1 -1
  62. package/dist/plugin-sdk/{resolve-route-JQF7nqo1.js → resolve-route-BDoLW8xr.js} +5 -5
  63. package/dist/plugin-sdk/{resolve-route-D0I4Llwy.js → resolve-route-Ouh7ZVw1.js} +4 -4
  64. package/dist/plugin-sdk/runs-UofdClNQ.js +27 -0
  65. package/dist/plugin-sdk/{runs-BU1Eppml.js → runs-cRC89AXl.js} +8 -8
  66. package/dist/plugin-sdk/send-8sjelrtn.js +25 -0
  67. package/dist/plugin-sdk/{send-Dhapzixp.js → send-BRN7Zt5N.js} +19 -19
  68. package/dist/plugin-sdk/send-BjroMkud.js +24 -0
  69. package/dist/plugin-sdk/send-BpBIBmue.js +28 -0
  70. package/dist/plugin-sdk/{send-DHH7532s.js → send-C6oFuvTF.js} +6 -6
  71. package/dist/plugin-sdk/{send-CRZe2naD.js → send-DlYcVutL.js} +8 -8
  72. package/dist/plugin-sdk/{send-aiyKj-5V.js → send-DuxOSABy.js} +15 -15
  73. package/dist/plugin-sdk/send-DuyWQ4Q4.js +23 -0
  74. package/dist/plugin-sdk/{send-CzU3DnG8.js → send-Dzf8uETw.js} +7 -7
  75. package/dist/plugin-sdk/{send-7iASSBg6.js → send-YzrHr_2V.js} +6 -6
  76. package/dist/plugin-sdk/{session-context-DLi5r0L8.js → session-context-DPt0-vul.js} +4 -4
  77. package/dist/plugin-sdk/session-meta-BuG8rCMb.js +13 -0
  78. package/dist/plugin-sdk/{session-meta-Cho9XVh8.js → session-meta-Ov3Sv55D.js} +1 -1
  79. package/dist/plugin-sdk/{sessions-CmLCbwdv.js → sessions-BosW5uVp.js} +4 -4
  80. package/dist/plugin-sdk/{skill-commands-Bv0tfv2Q.js → skill-commands-B3IuCuE6.js} +4 -4
  81. package/dist/plugin-sdk/skill-commands-CZKr2EYZ.js +13 -0
  82. package/dist/plugin-sdk/{skills-DO7OTK36.js → skills-DcowK80n.js} +6 -6
  83. package/dist/plugin-sdk/{ssrf-DPY1teOB.js → ssrf-CkGpmmN1.js} +1 -1
  84. package/dist/plugin-sdk/{store-nKIf4x6Y.js → store-B5Jssa25.js} +2 -2
  85. package/dist/plugin-sdk/subagent-registry-B_Vd4hA-.js +64 -0
  86. package/dist/plugin-sdk/{subsystem-CPqF9wja.js → subsystem-C-lWCqvG.js} +4 -4
  87. package/dist/plugin-sdk/{tables-CatynEzT.js → tables-CG00Lb4u.js} +1 -1
  88. package/dist/plugin-sdk/{tokens-DdbQh5HH.js → tokens-Ctmmv-sn.js} +1 -1
  89. package/dist/plugin-sdk/{tool-loop-detection-DazBiexb.js → tool-loop-detection-ys8oxWQM.js} +1 -1
  90. package/dist/plugin-sdk/{user-run-recording-BXyHfYg3.js → user-run-recording-CTKs_Jv9.js} +2 -2
  91. package/dist/plugin-sdk/user-run-recording-DIcSd0VJ.js +11 -0
  92. package/extensions/acpx/package.json +1 -1
  93. package/extensions/anthropic/package.json +1 -1
  94. package/extensions/bifrost/package.json +1 -1
  95. package/extensions/bluebubbles/package.json +1 -1
  96. package/extensions/copilot-proxy/package.json +1 -1
  97. package/extensions/deepgram/package.json +1 -1
  98. package/extensions/deepinfra/package.json +1 -1
  99. package/extensions/diagnostics-otel/package.json +1 -1
  100. package/extensions/diffs/package.json +1 -1
  101. package/extensions/discord/package.json +1 -1
  102. package/extensions/dream-cycle/package.json +1 -1
  103. package/extensions/elevenlabs/package.json +1 -1
  104. package/extensions/feishu/package.json +1 -1
  105. package/extensions/gemini-search/package.json +1 -1
  106. package/extensions/google/package.json +1 -1
  107. package/extensions/google-gemini-cli-auth/package.json +1 -1
  108. package/extensions/googlechat/package.json +1 -1
  109. package/extensions/grok-search/package.json +1 -1
  110. package/extensions/groq/package.json +1 -1
  111. package/extensions/imessage/package.json +1 -1
  112. package/extensions/irc/package.json +1 -1
  113. package/extensions/kimi-search/package.json +1 -1
  114. package/extensions/learning-core/package.json +1 -1
  115. package/extensions/line/package.json +1 -1
  116. package/extensions/llm-task/package.json +1 -1
  117. package/extensions/lobster/package.json +1 -1
  118. package/extensions/matrix/CHANGELOG.md +1 -1
  119. package/extensions/matrix/package.json +1 -1
  120. package/extensions/mattermost/package.json +1 -1
  121. package/extensions/memory-core/package.json +1 -1
  122. package/extensions/memory-lancedb/package.json +1 -1
  123. package/extensions/minimax/package.json +1 -1
  124. package/extensions/minimax-portal-auth/package.json +1 -1
  125. package/extensions/mistral/package.json +1 -1
  126. package/extensions/moonshot/package.json +1 -1
  127. package/extensions/msteams/CHANGELOG.md +1 -1
  128. package/extensions/msteams/package.json +1 -1
  129. package/extensions/nextcloud-talk/package.json +1 -1
  130. package/extensions/nostr/CHANGELOG.md +1 -1
  131. package/extensions/nostr/package.json +1 -1
  132. package/extensions/open-prose/package.json +1 -1
  133. package/extensions/openai/package.json +1 -1
  134. package/extensions/openai-realtime/package.json +1 -1
  135. package/extensions/openrouter/package.json +1 -1
  136. package/extensions/perplexity-search/package.json +1 -1
  137. package/extensions/searxng-search/package.json +1 -1
  138. package/extensions/signal/package.json +1 -1
  139. package/extensions/slack/package.json +1 -1
  140. package/extensions/synology-chat/package.json +1 -1
  141. package/extensions/telegram/package.json +1 -1
  142. package/extensions/tlon/package.json +1 -1
  143. package/extensions/twitch/CHANGELOG.md +1 -1
  144. package/extensions/twitch/package.json +1 -1
  145. package/extensions/ui-surfaces/package.json +1 -1
  146. package/extensions/voice-call/CHANGELOG.md +1 -1
  147. package/extensions/voice-call/package.json +1 -1
  148. package/extensions/whatsapp/package.json +1 -1
  149. package/extensions/zai/package.json +1 -1
  150. package/extensions/zalo/CHANGELOG.md +1 -1
  151. package/extensions/zalo/package.json +1 -1
  152. package/extensions/zalouser/CHANGELOG.md +1 -1
  153. package/extensions/zalouser/package.json +1 -1
  154. package/package.json +1 -1
  155. package/dist/plugin-sdk/agent-turn-execute-CW7LtXMC.js +0 -64
  156. package/dist/plugin-sdk/agent-turn-runner-CRaNFFTm.js +0 -11
  157. package/dist/plugin-sdk/audio-preflight-BZXIHlnM.js +0 -31
  158. package/dist/plugin-sdk/deliver-tcGRRL8s.js +0 -35
  159. package/dist/plugin-sdk/manager-BgK1sRAg.js +0 -16
  160. package/dist/plugin-sdk/markdown-tables-Q5ogPPem.js +0 -9
  161. package/dist/plugin-sdk/provider-dispatcher-BkgqrySb.js +0 -64
  162. package/dist/plugin-sdk/provider-image-BRuhIUH4.js +0 -25
  163. package/dist/plugin-sdk/proxy-LKdqVD6u.js +0 -7
  164. package/dist/plugin-sdk/replies-3-6UUC2y.js +0 -27
  165. package/dist/plugin-sdk/reply-prefix-C38vv65Y.js +0 -7
  166. package/dist/plugin-sdk/runs-Cu-M6Lh7.js +0 -27
  167. package/dist/plugin-sdk/send--m_QWAPO.js +0 -23
  168. package/dist/plugin-sdk/send-D9H-XXzx.js +0 -25
  169. package/dist/plugin-sdk/send-DnFCjogv.js +0 -24
  170. package/dist/plugin-sdk/send-LkmFhgsK.js +0 -28
  171. package/dist/plugin-sdk/session-meta-DwqjC-No.js +0 -13
  172. package/dist/plugin-sdk/skill-commands-Clq-qaMe.js +0 -13
  173. package/dist/plugin-sdk/subagent-registry-D-9HI-_X.js +0 -64
  174. package/dist/plugin-sdk/user-run-recording-D80GJNVP.js +0 -11
@@ -1,79 +1,79 @@
1
1
  import { a as resolveGatewayLockDir, f as resolveRequiredHomeDir, l as resolveStateDir, n as STATE_DIR, o as resolveGatewayPort, r as resolveConfigPath, u as expandHomePrefix } from "./paths-oi7j9L8A.js";
2
- import { $ as resolveUserPath, Ct as normalizeLogLevel, G as formatTerminalLink, K as isRecord$1, M as normalizeWindowsPathForComparison, P as isDangerousHostEnvVarName, S as openBoundaryFileSync, U as ensureDir$3, V as clampInt, W as escapeRegExp, Y as normalizeE164, _t as theme, a as createNonExitingRuntime, c as registerActiveProgressLine, dt as setVerbose, ft as shouldLogVerbose, gt as isRich, h as INCLUDE_KEY, ht as colorize, it as sliceUtf16Safe, l as unregisterActiveProgressLine, lt as logVerbose, mt as warn, nt as shortenHomePath, o as defaultRuntime, ot as truncateUtf16Safe, rt as sleep$3, s as clearActiveProgressLine, st as danger, t as createSubsystemLogger, tt as shortenHomeInString, u as appendFileLog, v as isBlockedObjectKey, vt as getChildLogger, wt as resolvePreferredOpenClawTmpDir, x as openBoundaryFile, z as CONFIG_DIR } from "./subsystem-CPqF9wja.js";
2
+ import { $ as resolveUserPath, Ct as normalizeLogLevel, G as formatTerminalLink, K as isRecord$1, M as normalizeWindowsPathForComparison, P as isDangerousHostEnvVarName, S as openBoundaryFileSync, U as ensureDir$3, V as clampInt, W as escapeRegExp, Y as normalizeE164, _t as theme, a as createNonExitingRuntime, c as registerActiveProgressLine, dt as setVerbose, ft as shouldLogVerbose, gt as isRich, h as INCLUDE_KEY, ht as colorize, it as sliceUtf16Safe, l as unregisterActiveProgressLine, lt as logVerbose, mt as warn, nt as shortenHomePath, o as defaultRuntime, ot as truncateUtf16Safe, rt as sleep$3, s as clearActiveProgressLine, st as danger, t as createSubsystemLogger, tt as shortenHomeInString, u as appendFileLog, v as isBlockedObjectKey, vt as getChildLogger, wt as resolvePreferredOpenClawTmpDir, x as openBoundaryFile, z as CONFIG_DIR } from "./subsystem-C-lWCqvG.js";
3
3
  import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
4
- import { $ as sessionKeyAgentMatches, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, J as resolveAgentIdFromSessionKey, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as sanitizeAgentId, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveConfiguredCanonicalIdentity, Y as resolveCanonicalIdentity, Z as resolveThreadSessionKeys, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as toAgentStoreSessionKey, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as normalizeAccountId$3, o as resolveAgentSkillsFilter, ot as WAKE_GATE_SESSION_KEY_SEGMENT, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, st as deriveSessionChatType, t as hasConfiguredModelFallbacks, tt as DEFAULT_ACCOUNT_ID, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-B5NskkwN.js";
5
- import { $a as normalizeProviderId, $i as actionRequiresTarget, Aa as isShellWrapperExecutable, Ai as isMarkdownCapableMessageChannel, Ao as markAuthProfileFailure, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveDiscordPreviewStreamMode, Bi as resolveSessionLockMaxHoldFromTimeout, Bn as resolveGroupSessionKey, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as splitCommandChain, Ci as mergeDeliveryContext, Cn as mergeSessionEntry, Co as resolveEnvApiKey, Cr as normalizeAtHashSlug, Cs as resolveShellEnvFallbackTimeoutMs, Ct as normalizeAnyChannelId, Da as resolveCommandResolutionFromArgv, Di as isDeliverableMessageChannel, Dn as parseSessionIndexRecordKey, Dr as createTelegramActionGate, Dt as getActiveGatewayPluginRegistry, Ea as resolveAllowlistCandidatePath, Ei as INTERNAL_MESSAGE_CHANNEL, En as parseDurationMs, Er as normalizeStringEntriesLower, Es as resolveOwnerDisplaySetting, Et as resolveChannelConfigId, Fa as normalizeSafeBinProfileFixtures, Fi as GATEWAY_CLIENT_IDS, Fn as resolveSessionFilePathOptions, Fo as resolveSecretRefValues, Ft as createPluginRegistry, Ga as resolveAgentMaxConcurrent, Go as formatCliCommand, Gr as listEnabledSignalAccounts, Ha as resolveSlackStreamingMode, Hi as readTaskWorkStates, Hn as listChannelPlugins, Ho as secretRefKey, Hr as resolveSlackReplyToMode, Ht as matchPluginCommand, Ia as resolveSafeBinProfiles, Ii as GATEWAY_CLIENT_MODES, In as resolveSessionTranscriptPath, Io as describeUnknownError$1, It as normalizePluginHttpPath, Ja as buildModelAliasIndex, Ji as channelTargetsSchema, Jr as resolveSignalAccount, Ka as buildAllowedModelSet, Ko as resolveCliName, La as applyMergePatch, Li as GATEWAY_CLIENT_NAMES, Lo as isNonEmptyString, Lt as buildPluginHealthReport, Ma as unwrapKnownShellMultiplexerInvocation, Mi as normalizeMessageChannel, Mn as SESSION_RUN_STORE_FILE_NAME, Mo as resolveProfilesUnavailableReason, Mr as resolveTelegramToken, Mt as setActivePluginRegistry, Na as splitShellArgs, Ni as resolveGatewayMessageChannel, No as resolveApiKeyForProfile, Nr as buildChannelAccountBindings, Nt as addRegisteredPluginApi, Oa as extractShellWrapperInlineCommand, Oi as isGatewayMessageChannel, Oo as getSoonestCooldownExpiry, Or as listEnabledTelegramAccounts, Ot as getActivePluginRegistry, Pa as SAFE_BIN_PROFILES, Pi as resolveMessageChannel, Pn as resolveSessionFilePath, Pt as clearRegisteredPluginApis, Qa as normalizeModelRef$2, Qi as actionHasTarget, Qo as ensureAuthProfileStore, Ra as isSafeExecutableValue, Ri as normalizeAccountId$4, Rn as resolveStorePath, Ro as isRecord$2, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as isWindowsPlatform, Si as deliveryContextKey, Sn as DEFAULT_RESET_TRIGGERS, So as resolveApiKeyForProvider, Ss as getShellPathFromLoginShell, St as listChatChannels, Ta as matchAllowlist, Ti as normalizeSessionDeliveryFields, Tn as setSessionRuntimeModel, To as resolveAuthProfileOrder, Tr as normalizeStringEntries, Ts as parseBooleanValue$1, Tt as normalizeChatChannelId, Un as normalizeChannelId$1, Ur as resolveSlackAppToken, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as resolveSlackNativeStreaming, Vi as CtxProjectionCorruptionError, Vn as getChannelPlugin, Vr as resolveSlackAccount, Vt as listPluginCommands, Wa as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Wo as runTasksWithConcurrency, Wr as resolveSlackBotToken, Xa as isCliProvider, Xi as stringEnum, Xo as listProfilesForProvider, Ya as findNormalizedProviderValue, Yi as optionalStringEnum, Yo as dedupeProfileIds, Za as modelKey, Zi as applyTargetToParams, Zo as markAuthProfileGood, _ as resolveTelegramCustomCommands, _a as listWritableExplicitTrustedSafeBinDirs, _i as resolveChannelGroupRequireMention, _n as refreshConfiguredSessionBindingEntry, _o as buildStreamErrorAssistantMessage, _s as splitTrailingAuthProfile, _t as safeStatSync, a as writeConfigFile, aa as replaceBufferedPluginTaskPasses, ao as resolveSubagentSpawnModelSelection, ar as getChannelDock, as as isPidAlive, at as isPathWithinRoot, ba as analyzeShellCommand, bi as resolveAccountEntry, bn as updateSessionStoreEntry, bo as getCustomProviderApiKey, bs as DEFAULT_PROVIDER, bt as CHAT_CHANNEL_ORDER, ca as resetConfigOverrides, cn as closeReplacedConfiguredSessionStorageRuntime, cr as normalizeSignalMessagingTarget, ct as loadPluginManifestRegistry, da as getConfigValueAtPath, ds as coerceSecretRef, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as parseModelRef, er as parseSlackTarget, es as resolveAuthStorePathForDisplay, fa as parseConfigPath, fi as listEnabledDiscordAccounts, fn as loadSessionStore, fo as retryAsync, fs as hasConfiguredSecretInput, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as isTrustedSafeBinPath, gi as resolveChannelGroupPolicy, gn as recordSessionMetaFromInbound, go as buildAssistantMessageWithZeroUsage, gs as resolveSecretInputRef, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as getTrustedSafeBinDirs, hi as normalizeDiscordToken, hn as readSessionUpdatedAt, ho as buildAssistantMessage, ht as discoverOpenClawPlugins, ia as listBufferedPluginTaskPasses, in as getConversationReadQuery, io as resolveReasoningDefault, is as resolveProcessScopedMap, it as isAvatarHttpUrl, ja as unwrapKnownDispatchWrapperInvocation, ji as listDeliverableMessageChannels, jn as SAFE_SESSION_ID_RE, jo as markAuthProfileUsed, jr as resolveTelegramAccount, jt as requireActivePluginRegistry, ka as isDispatchWrapperExecutable, ki as isInternalMessageChannel, ko as isProfileInCooldown, kr as listTelegramAccountIds, kt as getActivePluginRegistryKey, la as setConfigOverride, li as resolveIMessageAccount, ln as commitPreparedConfiguredSessionStorageRuntimeActivation, ls as normalizeSecretInput, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as unsetConfigValueAtPath, mi as resolveDiscordAccount, mn as prepareConfiguredSessionStorageRuntimeActivation, mo as createOllamaStreamFn, ms as normalizeResolvedSecretInputString, mt as resolveMemorySlotDecision, n as loadConfig, ni as normalizeWhatsAppTarget, nn as StorageReadAccessError, no as resolveDefaultModelForAgent, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as RecoveryAdmissionError, oi as resolveWhatsAppAccount, on as requireSessionStorageRuntime, oo as resolveThinkingDefault, or as listChannelDocks, os as readProcessElapsedSeconds, ot as isSupportedLocalAvatarExtension, pa as setConfigValueAtPath, pn as loadSessionStoreFromDisk, po as OLLAMA_NATIVE_BASE_URL, pt as resolveEffectiveEnableState, qa as buildConfiguredAllowlistKeys, qi as channelTargetSchema, r as readConfigFileSnapshot, ra as discardBufferedPluginTaskPasses, ri as hasAnyWhatsAppAuth, rn as createConversationReadQuery, ro as resolveModelRefFromString, rs as withFileLock, rt as isAvatarDataUrl, sa as getConfigOverrides, sn as closeConfiguredSessionStorageRuntime, ss as resolveAuthProfileDisplayLabel, st as validateJsonSchemaValue, ti as isWhatsAppGroupJid, tn as triggerInternalHook, to as resolveConfiguredModelRef, tr as resolveSlackChannelId, ts as resolveOpenClawAgentDir, ua as unsetConfigOverride, ui as createDiscordActionGate, un as getConfiguredSessionStorageRuntime, ut as applyTestPluginDefaults, va as normalizeTrustedSafeBinDirs, vi as resolveChannelGroupToolsPolicy, vn as updateLastRoute, vo as buildUsageWithNoCost, vs as DEFAULT_CONTEXT_TOKENS, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as DEFAULT_SAFE_BINS, wi as normalizeDeliveryContext, wn as resolveFreshSessionTotalTokens, wo as resolveModelAuthMode, wr as normalizeHyphenSlug, ws as isTruthyEnvValue, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as buildEnforcedShellCommand, xi as deliveryContextFromSession, xo as requireApiKey, xs as VERSION, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as validateSafeBinArgv, yn as updateSessionStore, yo as getApiKeyForModel, ys as DEFAULT_MODEL, za as mapStreamingModeToSlackLegacyDraftStreamMode, zi as acquireSessionWriteLock, zn as deriveSessionMetaPatch, zo as parseDotPath, zt as executePluginCommand } from "./config-Cp7sIoSP.js";
4
+ import { $ as sessionKeyAgentMatches, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, J as resolveAgentIdFromSessionKey, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as sanitizeAgentId, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveConfiguredCanonicalIdentity, Y as resolveCanonicalIdentity, Z as resolveThreadSessionKeys, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as toAgentStoreSessionKey, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, i as resolveAgentDir, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as normalizeAccountId$3, o as resolveAgentSkillsFilter, ot as WAKE_GATE_SESSION_KEY_SEGMENT, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, st as deriveSessionChatType, t as hasConfiguredModelFallbacks, tt as DEFAULT_ACCOUNT_ID, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-BNKfH4PO.js";
5
+ import { $a as normalizeProviderId, $i as actionRequiresTarget, Aa as isShellWrapperExecutable, Ai as isMarkdownCapableMessageChannel, Ao as markAuthProfileFailure, B as ASSISTANT_IDENTITY_COLORS, Ba as resolveDiscordPreviewStreamMode, Bi as resolveSessionLockMaxHoldFromTimeout, Bn as resolveGroupSessionKey, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as splitCommandChain, Ci as mergeDeliveryContext, Cn as mergeSessionEntry, Co as resolveEnvApiKey, Cr as normalizeAtHashSlug, Cs as resolveShellEnvFallbackTimeoutMs, Ct as normalizeAnyChannelId, Da as resolveCommandResolutionFromArgv, Di as isDeliverableMessageChannel, Dn as parseSessionIndexRecordKey, Dr as createTelegramActionGate, Dt as getActiveGatewayPluginRegistry, Ea as resolveAllowlistCandidatePath, Ei as INTERNAL_MESSAGE_CHANNEL, En as parseDurationMs, Er as normalizeStringEntriesLower, Es as resolveOwnerDisplaySetting, Et as resolveChannelConfigId, Fa as normalizeSafeBinProfileFixtures, Fi as GATEWAY_CLIENT_IDS, Fn as resolveSessionFilePathOptions, Fo as resolveSecretRefValues, Ft as createPluginRegistry, Ga as resolveAgentMaxConcurrent, Go as formatCliCommand, Gr as listEnabledSignalAccounts, Ha as resolveSlackStreamingMode, Hi as readTaskWorkStates, Hn as listChannelPlugins, Ho as secretRefKey, Hr as resolveSlackReplyToMode, Ht as matchPluginCommand, Ia as resolveSafeBinProfiles, Ii as GATEWAY_CLIENT_MODES, In as resolveSessionTranscriptPath, Io as describeUnknownError$1, It as normalizePluginHttpPath, Ja as buildModelAliasIndex, Ji as channelTargetsSchema, Jr as resolveSignalAccount, Ka as buildAllowedModelSet, Ko as resolveCliName, La as applyMergePatch, Li as GATEWAY_CLIENT_NAMES, Lo as isNonEmptyString, Lt as buildPluginHealthReport, Ma as unwrapKnownShellMultiplexerInvocation, Mi as normalizeMessageChannel, Mn as SESSION_RUN_STORE_FILE_NAME, Mo as resolveProfilesUnavailableReason, Mr as resolveTelegramToken, Mt as setActivePluginRegistry, Na as splitShellArgs, Ni as resolveGatewayMessageChannel, No as resolveApiKeyForProfile, Nr as buildChannelAccountBindings, Nt as addRegisteredPluginApi, Oa as extractShellWrapperInlineCommand, Oi as isGatewayMessageChannel, Oo as getSoonestCooldownExpiry, Or as listEnabledTelegramAccounts, Ot as getActivePluginRegistry, Pa as SAFE_BIN_PROFILES, Pi as resolveMessageChannel, Pn as resolveSessionFilePath, Pt as clearRegisteredPluginApis, Qa as normalizeModelRef$2, Qi as actionHasTarget, Qo as ensureAuthProfileStore, Ra as isSafeExecutableValue, Ri as normalizeAccountId$4, Rn as resolveStorePath, Ro as isRecord$2, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as isWindowsPlatform, Si as deliveryContextKey, Sn as DEFAULT_RESET_TRIGGERS, So as resolveApiKeyForProvider, Ss as getShellPathFromLoginShell, St as listChatChannels, Ta as matchAllowlist, Ti as normalizeSessionDeliveryFields, Tn as setSessionRuntimeModel, To as resolveAuthProfileOrder, Tr as normalizeStringEntries, Ts as parseBooleanValue$1, Tt as normalizeChatChannelId, Un as normalizeChannelId$1, Ur as resolveSlackAppToken, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as resolveSlackNativeStreaming, Vi as CtxProjectionCorruptionError, Vn as getChannelPlugin, Vr as resolveSlackAccount, Vt as listPluginCommands, Wa as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Wo as runTasksWithConcurrency, Wr as resolveSlackBotToken, Xa as isCliProvider, Xi as stringEnum, Xo as listProfilesForProvider, Ya as findNormalizedProviderValue, Yi as optionalStringEnum, Yo as dedupeProfileIds, Za as modelKey, Zi as applyTargetToParams, Zo as markAuthProfileGood, _ as resolveTelegramCustomCommands, _a as listWritableExplicitTrustedSafeBinDirs, _i as resolveChannelGroupRequireMention, _n as refreshConfiguredSessionBindingEntry, _o as buildStreamErrorAssistantMessage, _s as splitTrailingAuthProfile, _t as safeStatSync, a as writeConfigFile, aa as replaceBufferedPluginTaskPasses, ao as resolveSubagentSpawnModelSelection, ar as getChannelDock, as as isPidAlive, at as isPathWithinRoot, ba as analyzeShellCommand, bi as resolveAccountEntry, bn as updateSessionStoreEntry, bo as getCustomProviderApiKey, bs as DEFAULT_PROVIDER, bt as CHAT_CHANNEL_ORDER, ca as resetConfigOverrides, cn as closeReplacedConfiguredSessionStorageRuntime, cr as normalizeSignalMessagingTarget, ct as loadPluginManifestRegistry, da as getConfigValueAtPath, ds as coerceSecretRef, dt as isBundledChannelEnabledByChannelConfig, en as createInternalHookEvent, eo as parseModelRef, er as parseSlackTarget, es as resolveAuthStorePathForDisplay, fa as parseConfigPath, fi as listEnabledDiscordAccounts, fn as loadSessionStore, fo as retryAsync, fs as hasConfiguredSecretInput, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as isTrustedSafeBinPath, gi as resolveChannelGroupPolicy, gn as recordSessionMetaFromInbound, go as buildAssistantMessageWithZeroUsage, gs as resolveSecretInputRef, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as getTrustedSafeBinDirs, hi as normalizeDiscordToken, hn as readSessionUpdatedAt, ho as buildAssistantMessage, ht as discoverOpenClawPlugins, ia as listBufferedPluginTaskPasses, in as getConversationReadQuery, io as resolveReasoningDefault, is as resolveProcessScopedMap, it as isAvatarHttpUrl, ja as unwrapKnownDispatchWrapperInvocation, ji as listDeliverableMessageChannels, jn as SAFE_SESSION_ID_RE, jo as markAuthProfileUsed, jr as resolveTelegramAccount, jt as requireActivePluginRegistry, ka as isDispatchWrapperExecutable, ki as isInternalMessageChannel, ko as isProfileInCooldown, kr as listTelegramAccountIds, kt as getActivePluginRegistryKey, la as setConfigOverride, li as resolveIMessageAccount, ln as commitPreparedConfiguredSessionStorageRuntimeActivation, ls as normalizeSecretInput, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as unsetConfigValueAtPath, mi as resolveDiscordAccount, mn as prepareConfiguredSessionStorageRuntimeActivation, mo as createOllamaStreamFn, ms as normalizeResolvedSecretInputString, mt as resolveMemorySlotDecision, n as loadConfig, ni as normalizeWhatsAppTarget, nn as StorageReadAccessError, no as resolveDefaultModelForAgent, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as RecoveryAdmissionError, oi as resolveWhatsAppAccount, on as requireSessionStorageRuntime, oo as resolveThinkingDefault, or as listChannelDocks, os as readProcessElapsedSeconds, ot as isSupportedLocalAvatarExtension, pa as setConfigValueAtPath, pn as loadSessionStoreFromDisk, po as OLLAMA_NATIVE_BASE_URL, pt as resolveEffectiveEnableState, qa as buildConfiguredAllowlistKeys, qi as channelTargetSchema, r as readConfigFileSnapshot, ra as discardBufferedPluginTaskPasses, ri as hasAnyWhatsAppAuth, rn as createConversationReadQuery, ro as resolveModelRefFromString, rs as withFileLock, rt as isAvatarDataUrl, sa as getConfigOverrides, sn as closeConfiguredSessionStorageRuntime, ss as resolveAuthProfileDisplayLabel, st as validateJsonSchemaValue, ti as isWhatsAppGroupJid, tn as triggerInternalHook, to as resolveConfiguredModelRef, tr as resolveSlackChannelId, ts as resolveOpenClawAgentDir, ua as unsetConfigOverride, ui as createDiscordActionGate, un as getConfiguredSessionStorageRuntime, ut as applyTestPluginDefaults, va as normalizeTrustedSafeBinDirs, vi as resolveChannelGroupToolsPolicy, vn as updateLastRoute, vo as buildUsageWithNoCost, vs as DEFAULT_CONTEXT_TOKENS, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as DEFAULT_SAFE_BINS, wi as normalizeDeliveryContext, wn as resolveFreshSessionTotalTokens, wo as resolveModelAuthMode, wr as normalizeHyphenSlug, ws as isTruthyEnvValue, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as buildEnforcedShellCommand, xi as deliveryContextFromSession, xo as requireApiKey, xs as VERSION, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as validateSafeBinArgv, yn as updateSessionStore, yo as getApiKeyForModel, ys as DEFAULT_MODEL, za as mapStreamingModeToSlackLegacyDraftStreamMode, zi as acquireSessionWriteLock, zn as deriveSessionMetaPatch, zo as parseDotPath, zt as executePluginCommand } from "./config-D2katwYr.js";
6
6
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-BnKQ-aRX.js";
7
- import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-DYxRK_FZ.js";
7
+ import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-F5PKgK4h.js";
8
8
  import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-DA_qUFFI.js";
9
- import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, At as resolveChannelEntryMatchWithFallback, B as removeRoleDiscord, C as fetchMessageDiscord, Ct as resolveDiscordSystemLocation, D as readMessagesDiscord, Dt as buildChannelKeyCandidates, E as pinMessageDiscord, Et as applyChannelMatchMeta, F as fetchRoleInfoDiscord, G as createChannelDiscord, H as listGuildEmojisDiscord, I as fetchVoiceStatusDiscord, J as moveChannelDiscord, K as deleteChannelDiscord, L as kickMemberDiscord, M as createScheduledEventDiscord, N as fetchChannelInfoDiscord, O as searchMessagesDiscord, Ot as normalizeChannelSlug, P as fetchMemberInfoDiscord, R as listGuildChannelsDiscord, S as editMessageDiscord, St as formatDiscordUserTag, T as listThreadsDiscord, Tt as fetchDiscord, U as uploadEmojiDiscord, V as timeoutMemberDiscord, W as uploadStickerDiscord, X as setChannelPermissionDiscord, Y as removeChannelPermissionDiscord, Z as stripUndefinedFields, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as createThreadDiscord, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as banMemberDiscord, k as unpinMessageDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as editChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as listPinsDiscord, wt as resolveTimestampMs, x as deleteMessageDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listScheduledEventsDiscord } from "./send-CRZe2naD.js";
10
- import { $ as validateCtxStorage, $t as resolveMainSessionKey, At as formatZonedTimestamp, B as truncateToolResultToChars, Bt as hasNonzeroUsage, C as hasHookForPlugin, Ct as attachMessageIngress, D as resolveProviderPromptCacheKey, Dt as stripMessageCarriers, E as buildPluginTurnIdentity, Et as messageTime, F as HARD_MAX_TOOL_RESULT_CHARS, Ft as normalizeCronStaggerMs, G as estimateMessageCharsCached, Gt as evaluateSessionFreshness, H as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, Ht as normalizeUsage, I as sessionLikelyHasOversizedToolResults, It as resolveDefaultCronStaggerMs, J as parseInlineDirectives$1, Jt as resolveSessionResetType, K as getToolResultText$1, Kt as resolveChannelResetConfig, L as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, Lt as parseAbsoluteTimeMs, M as eventOrder, Mt as resolveSenderLabel, N as pickLeaf, Nt as inferLegacyName, O as resolveProviderRuntimeIdentity, Ot as formatMessageStamp, P as capToolResultContent, Pt as normalizeHttpWebhookUrl, Qt as resolveExplicitAgentSessionKey, R as TOOL_RESULT_TEXT_WEIGHT, Rt as derivePromptTokens, S as initializeGlobalHookRunner, St as renderInboundUserContext, T as buildPluginRuntimeIdentity, Tt as isRepresentableEpochMs, U as createMessageCharEstimateCache, Ut as SESSION_RUN_STATUSES, V as CHARS_PER_TOKEN_ESTIMATE$2, Vt as makeZeroUsageSnapshot, W as estimateContextChars$1, Wt as resolveSessionKey, X as createSessionStorageRuntimeFromConfig, Xt as canonicalizeMainSessionAlias, Y as attachPgPoolErrorListeners, Yt as resolveThreadFlag, Z as resolveSessionStorageConfig, Zt as resolveAgentMainSessionKey, _ as INPUT_PROVENANCE_KIND_VALUES, _t as mergePromptContributions, a as resolveMirroredTranscriptText, at as buildEqualityProjection, b as getGlobalHookRunner, bt as buildInboundMetaSystemPrompt, c as drainPendingPrimaryWrites, ct as deriveLegacyActorIdentity, d as repairToolUseResultPairing, dt as sanitizeJsonb, en as isPrimarySessionTranscriptFileName, et as TASK_RUN_MODES, f as sanitizeToolCallInputs, ft as sha256, g as sanitizeToolCallIdsForCloudCodeAssist, h as canonicalToolCallIdBase, i as appendAssistantMessageToSessionTranscript, j as DB_SESSION_HYDRATION_LIMIT, jt as resolveTimezone, l as guardSessionManager, lt as sanitizeAppendEntry, m as stripToolResultDetails, mt as createCurrentUserPromptEnvelope, n as parseSessionThreadInfo, o as openDbSessionManager, ot as CREATE_CTX_STORAGE_OWNER_SQL, p as sanitizeToolUseResultPairing, pt as userIdFromSessionKey, q as isToolResultMessage, qt as resolveSessionResetPolicy, r as resolveAndPersistSessionFile, s as runSerializedBySession, st as HIDDEN_HEARTBEAT_CUSTOM_TYPE, t as extractDeliveryInfo, tn as isSessionArchiveArtifactName, tt as TASK_RUN_STATUSES, u as openRawToolResultStash, ut as extractLegacyTranscriptEntryFields, v as hasInterSessionUserProvenance, vt as toJsonValue$1, w as promptBuildResultToContribution, wt as getMessageIngress, x as getGlobalPluginRegistry, xt as collectInboundUserContext, y as normalizeInputProvenance, z as truncateTextHeadTail, zt as deriveSessionTotalTokens } from "./sessions-CmLCbwdv.js";
9
+ import { $ as fetchChannelPermissionsDiscord, A as addRoleDiscord, At as resolveChannelEntryMatchWithFallback, B as removeRoleDiscord, C as fetchMessageDiscord, Ct as resolveDiscordSystemLocation, D as readMessagesDiscord, Dt as buildChannelKeyCandidates, E as pinMessageDiscord, Et as applyChannelMatchMeta, F as fetchRoleInfoDiscord, G as createChannelDiscord, H as listGuildEmojisDiscord, I as fetchVoiceStatusDiscord, J as moveChannelDiscord, K as deleteChannelDiscord, L as kickMemberDiscord, M as createScheduledEventDiscord, N as fetchChannelInfoDiscord, O as searchMessagesDiscord, Ot as normalizeChannelSlug, P as fetchMemberInfoDiscord, R as listGuildChannelsDiscord, S as editMessageDiscord, St as formatDiscordUserTag, T as listThreadsDiscord, Tt as fetchDiscord, U as uploadEmojiDiscord, V as timeoutMemberDiscord, W as uploadStickerDiscord, X as setChannelPermissionDiscord, Y as removeChannelPermissionDiscord, Z as stripUndefinedFields, _ as sendStickerDiscord, _t as resolveDiscordOwnerAllowFrom, a as sendDiscordComponentMessage, at as parseDiscordTarget, b as createThreadDiscord, bt as shouldEmitDiscordReactionNotification, c as parseDiscordComponentCustomId, ct as listDiscordDirectoryPeersLive, d as parseDiscordModalCustomIdForCarbon, dt as normalizeDiscordSlug, f as readDiscordComponentSpec, ft as resolveDiscordAllowListMatch, g as sendPollDiscord, gt as resolveDiscordOwnerAccess, h as sendMessageDiscord, ht as resolveDiscordMemberAccessState, i as removeReactionDiscord, it as createDiscordRestClient, j as banMemberDiscord, k as unpinMessageDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as isDiscordGroupAllowedByPolicy, m as resolveDiscordModalEntry, mt as resolveDiscordGuildEntry, n as reactMessageDiscord, nt as chunkDiscordTextWithMode, o as createDiscordFormModal, ot as resolveDiscordChannelId, p as resolveDiscordComponentEntry, pt as resolveDiscordChannelConfigWithFallback, q as editChannelDiscord, r as removeOwnReactionsDiscord, rt as createDiscordClient, s as formatDiscordComponentEventText, st as listDiscordDirectoryGroupsLive, t as fetchReactionsDiscord, tt as hasAnyGuildPermissionDiscord, u as parseDiscordModalCustomId, ut as normalizeDiscordAllowList, v as sendVoiceMessageDiscord, vt as resolveDiscordShouldRequireMention, w as listPinsDiscord, wt as resolveTimestampMs, x as deleteMessageDiscord, xt as formatDiscordReactionEmoji, y as sendWebhookMessageDiscord, yt as resolveGroupDmAllow, z as listScheduledEventsDiscord } from "./send-DlYcVutL.js";
10
+ import { $ as validateCtxStorage, $t as resolveMainSessionKey, At as formatZonedTimestamp, B as truncateToolResultToChars, Bt as hasNonzeroUsage, C as hasHookForPlugin, Ct as attachMessageIngress, D as resolveProviderPromptCacheKey, Dt as stripMessageCarriers, E as buildPluginTurnIdentity, Et as messageTime, F as HARD_MAX_TOOL_RESULT_CHARS, Ft as normalizeCronStaggerMs, G as estimateMessageCharsCached, Gt as evaluateSessionFreshness, H as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, Ht as normalizeUsage, I as sessionLikelyHasOversizedToolResults, It as resolveDefaultCronStaggerMs, J as parseInlineDirectives$1, Jt as resolveSessionResetType, K as getToolResultText$1, Kt as resolveChannelResetConfig, L as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, Lt as parseAbsoluteTimeMs, M as eventOrder, Mt as resolveSenderLabel, N as pickLeaf, Nt as inferLegacyName, O as resolveProviderRuntimeIdentity, Ot as formatMessageStamp, P as capToolResultContent, Pt as normalizeHttpWebhookUrl, Qt as resolveExplicitAgentSessionKey, R as TOOL_RESULT_TEXT_WEIGHT, Rt as derivePromptTokens, S as initializeGlobalHookRunner, St as renderInboundUserContext, T as buildPluginRuntimeIdentity, Tt as isRepresentableEpochMs, U as createMessageCharEstimateCache, Ut as SESSION_RUN_STATUSES, V as CHARS_PER_TOKEN_ESTIMATE$2, Vt as makeZeroUsageSnapshot, W as estimateContextChars$1, Wt as resolveSessionKey, X as createSessionStorageRuntimeFromConfig, Xt as canonicalizeMainSessionAlias, Y as attachPgPoolErrorListeners, Yt as resolveThreadFlag, Z as resolveSessionStorageConfig, Zt as resolveAgentMainSessionKey, _ as INPUT_PROVENANCE_KIND_VALUES, _t as mergePromptContributions, a as resolveMirroredTranscriptText, at as buildEqualityProjection, b as getGlobalHookRunner, bt as buildInboundMetaSystemPrompt, c as drainPendingPrimaryWrites, ct as deriveLegacyActorIdentity, d as repairToolUseResultPairing, dt as sanitizeJsonb, en as isPrimarySessionTranscriptFileName, et as TASK_RUN_MODES, f as sanitizeToolCallInputs, ft as sha256, g as sanitizeToolCallIdsForCloudCodeAssist, h as canonicalToolCallIdBase, i as appendAssistantMessageToSessionTranscript, j as DB_SESSION_HYDRATION_LIMIT, jt as resolveTimezone, l as guardSessionManager, lt as sanitizeAppendEntry, m as stripToolResultDetails, mt as createCurrentUserPromptEnvelope, n as parseSessionThreadInfo, o as openDbSessionManager, ot as CREATE_CTX_STORAGE_OWNER_SQL, p as sanitizeToolUseResultPairing, pt as userIdFromSessionKey, q as isToolResultMessage, qt as resolveSessionResetPolicy, r as resolveAndPersistSessionFile, s as runSerializedBySession, st as HIDDEN_HEARTBEAT_CUSTOM_TYPE, t as extractDeliveryInfo, tn as isSessionArchiveArtifactName, tt as TASK_RUN_STATUSES, u as openRawToolResultStash, ut as extractLegacyTranscriptEntryFields, v as hasInterSessionUserProvenance, vt as toJsonValue$1, w as promptBuildResultToContribution, wt as getMessageIngress, x as getGlobalPluginRegistry, xt as collectInboundUserContext, y as normalizeInputProvenance, z as truncateTextHeadTail, zt as deriveSessionTotalTokens } from "./sessions-BosW5uVp.js";
11
11
  import { a as isDiagnosticsEnabled, i as emitDiagnosticEvent } from "./diagnostic-events-Ba8-RH3Z.js";
12
- import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-C9Eu_AUI.js";
13
- import { a as formatUncaughtError, c as readErrorName, i as formatErrorMessage, o as hasErrnoCode, r as formatErrorChainMessage, t as collectErrorGraphCandidates } from "./errors-BAcXagTa.js";
12
+ import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-YbcPIGWf.js";
13
+ import { a as formatUncaughtError, c as readErrorName, i as formatErrorMessage, o as hasErrnoCode, r as formatErrorChainMessage, t as collectErrorGraphCandidates } from "./errors-B671D37F.js";
14
14
  import { n as onSessionTranscriptUpdate } from "./transcript-events-C9cNWasT.js";
15
15
  import { n as fetchWithTimeout, t as bindAbortRelay } from "./fetch-timeout-BZzAoyap.js";
16
16
  import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BAyIy498.js";
17
- import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-WL5SZ4Ub.js";
17
+ import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-BlGuAYdc.js";
18
18
  import { t as buildOutboundMediaLoadOptions } from "./load-options-DNSaiajj.js";
19
- import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-Cr_8wxeu.js";
20
- import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-Qut4VUn8.js";
21
- import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-B9MP8BwT.js";
22
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-5esEIw3C.js";
23
- import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DPY1teOB.js";
24
- import { r as makeProxyFetch } from "./proxy-fetch-Dt3HV6r3.js";
19
+ import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-DvB3vS9N.js";
20
+ import { i as openFileWithinRoot, l as writeFileWithinRoot, n as copyFileWithinRoot, o as readFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-CR39I5to.js";
21
+ import { c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, g as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as kindFromMime, p as isGifMedia, s as resizeToJpeg, v as mediaKindFromMime } from "./image-ops-C0wvHJkm.js";
22
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DWRMXy-Z.js";
23
+ import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-CkGpmmN1.js";
24
+ import { r as makeProxyFetch } from "./proxy-fetch-BSTGvynk.js";
25
25
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-r2f8797y.js";
26
- import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-1beRdBcS.js";
27
- import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-D6Bn5lOZ.js";
26
+ import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-D2LPLxOo.js";
27
+ import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-CRNn4Wzv.js";
28
28
  import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-CTMKhqLk.js";
29
- import { a as chunkMarkdownTextWithMode, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownText, l as resolveChunkMode, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, u as resolveChunkNewlinePacking } from "./chunk-CWDKrXV-.js";
30
- import { t as resolveMarkdownTableMode } from "./markdown-tables-5CSf45sS.js";
31
- import { t as convertMarkdownTables } from "./tables-CatynEzT.js";
32
- import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, p as KeyedAsyncQueue, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime, u as WORKSPACE_LANE_DENIED_REASON } from "./agent-turn-runner-orbrCxRO.js";
33
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-7iASSBg6.js";
34
- import { $ as resolveTelegramStreamMode, A as splitTelegramCaption, B as buildTelegramParentPeer, C as recordApiRequest, Ct as firstDefined$1, D as registerAccount, E as recordWebhook, Et as resolveGroupAllowFromSources, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as releaseAccountOwner, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as getTelegramFleetSupervisor, St as listPairingChannels, T as recordUpdate, Tt as mergeDmAllowFromSources, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as markdownToTelegramChunks, _t as removeChannelAllowFromStoreEntry, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as wrapFileReferencesInHtml, bt as writeJsonFileAtomically, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as extractTelegramErrorText, et as resolveTelegramThreadSpec, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, h as isTelegramClientRejection, ht as readChannelAllowFromStore, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as formatTelegramErrorMessage, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as formatLocationText, m as isSafeToRetrySendError, mt as addChannelAllowFromStoreEntry, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, p as isRecoverableTelegramNetworkError, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as wasSentByBot, ut as toLocationContext, v as markdownToTelegramHtml, vt as upsertChannelPairingRequest, w as recordState, wt as isSenderIdAllowed, x as fingerprintTelegramToken, xt as getPairingAdapter, y as renderTelegramHtmlText, yt as readJsonFileWithFallback, z as buildTelegramGroupPeerId } from "./send-aiyKj-5V.js";
29
+ import { a as chunkMarkdownTextWithMode, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownText, l as resolveChunkMode, n as chunkByNewline, o as chunkText, s as chunkTextWithMode, u as resolveChunkNewlinePacking } from "./chunk-DKwQiXuF.js";
30
+ import { t as resolveMarkdownTableMode } from "./markdown-tables-DunxiRpT.js";
31
+ import { t as convertMarkdownTables } from "./tables-CG00Lb4u.js";
32
+ import { a as enqueueAgentTurn, c as peekDelayedAgentTurn, i as clearDelayedReleaseHold, l as setDelayedReleaseHold, n as tryGetAgentTurnRuntime, o as isClaimableAgentTurnWorkId, p as KeyedAsyncQueue, r as agentTurnIdempotencyKey, s as mergeDelayedAgentTurn, t as getAgentTurnRuntime, u as WORKSPACE_LANE_DENIED_REASON } from "./agent-turn-runner-BGKi5ORc.js";
33
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-YzrHr_2V.js";
34
+ import { $ as resolveTelegramStreamMode, A as splitTelegramCaption, B as buildTelegramParentPeer, C as recordApiRequest, Ct as firstDefined$1, D as registerAccount, E as recordWebhook, Et as resolveGroupAllowFromSources, F as buildGroupLabel, G as extractTelegramLocation, H as buildTypingThreadParams, I as buildSenderLabel, J as resolveTelegramDirectPeerId, K as hasBotMention, L as buildSenderName, M as withTelegramApiErrorLogging, N as loadCronStore, O as releaseAccountOwner, P as resolveCronStorePath, Q as resolveTelegramReplyId, R as buildTelegramGroupFrom, S as getTelegramFleetSupervisor, St as listPairingChannels, T as recordUpdate, Tt as mergeDmAllowFromSources, U as describeReplyTarget, V as buildTelegramThreadParams, W as expandTextLinks, X as resolveTelegramGroupAllowFromContext, Y as resolveTelegramForumThreadId, Z as resolveTelegramMediaPlaceholder, _ as markdownToTelegramChunks, _t as removeChannelAllowFromStoreEntry, a as reactMessageTelegram, at as isVoiceCompatibleAudio, b as wrapFileReferencesInHtml, bt as writeJsonFileAtomically, c as sendStickerTelegram, ct as resolveTelegramTargetChatType, d as extractTelegramErrorText, et as resolveTelegramThreadSpec, f as isDefiniteTelegramRequestNonDeliveryError, g as isTelegramEditMayHaveLandedError, h as isTelegramClientRejection, ht as readChannelAllowFromStore, i as editMessageTelegram, it as resolveSenderAllowMatch$1, j as formatTelegramErrorMessage, k as resolveTelegramFetch, l as resolveTelegramVoiceSend, lt as formatLocationText, m as isSafeToRetrySendError, mt as addChannelAllowFromStoreEntry, n as createForumTopicTelegram, nt as normalizeAllowFrom$2, o as sendMessageTelegram, p as isRecoverableTelegramNetworkError, q as normalizeForwardedContext, r as deleteMessageTelegram, rt as normalizeDmAllowFromWithStore$1, s as sendPollTelegram, st as parseTelegramTarget, t as buildInlineKeyboard, tt as isSenderAllowed$1, u as wasSentByBot, ut as toLocationContext, v as markdownToTelegramHtml, vt as upsertChannelPairingRequest, w as recordState, wt as isSenderIdAllowed, x as fingerprintTelegramToken, xt as getPairingAdapter, y as renderTelegramHtmlText, yt as readJsonFileWithFallback, z as buildTelegramGroupPeerId } from "./send-DuxOSABy.js";
35
35
  import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-6tlCSeCB.js";
36
- import { $ as resolveToolProfilePolicy, A as parseImageSizeError, B as resolveProfile, C as isFailoverAssistantError, D as isRawApiErrorPayload, E as isRateLimitAssistantError, F as resolveSandboxContext, G as applyOwnerOnlyToolPolicy, H as ensureBrowserControlAuth, I as resolveSandboxRuntimeStatus, J as expandPolicyWithPluginGroups, K as buildPluginToolGroups, L as createBrowserRouteContext, M as isAuthPermanentErrorMessage, N as isTimeoutErrorMessage, O as isTransientHttpError, P as ensureSandboxWorkspaceForSession, Q as normalizeToolName, R as registerBrowserRoutes, S as isContextOverflowError, T as isLikelyContextOverflowError, U as resolveBrowserControlAuth, V as getBridgeAuthForPort, W as resolveSandboxConfigForAgent, X as stripPluginOnlyAllowlist, Y as mergeAlsoAllowPolicy, Z as expandToolGroups, _ as getApiErrorPayloadFingerprint, at as sanitizeGoogleTurnOrdering, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as sanitizeImageBlocks, d as isGoogleModelApi, dt as canonicalizeBase64, et as compileGlobPatterns, f as BILLING_ERROR_USER_MESSAGE, ft as estimateBase64DecodedBytes, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapTotalMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeToolResultImages, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as buildBootstrapContextFiles, o as isMessagingToolDuplicateNormalized, ot as resolveGatewayCredentialsFromConfig, p as classifyFailoverReason, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as resolveBootstrapMaxChars, s as normalizeTextForComparison, st as trimToUndefined$1, t as extractTextFromChatContent, tt as matchesAnyGlobPattern, u as downgradeOpenAIReasoningBlocks, ut as resolveImageSanitizationLimits, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-aOAkouil.js";
37
- import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-CzU3DnG8.js";
38
- import { S as modelSupportsVision, T as buildRandomTempFilePath, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, b as findModelInCatalog, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as registerUnhandledRejectionHandler, x as loadModelCatalog, y as resolveAttachmentKind } from "./audio-transcription-runner-D5dYI82C.js";
39
- import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-Bf8Iqq8v.js";
40
- import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-DdbQh5HH.js";
41
- import { a as getRemoteSkillEligibility, c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-Bv0tfv2Q.js";
42
- import { a as skillsSnapshotSourceDiffers, c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-DO7OTK36.js";
43
- import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as resolveClientIp, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, Y as rawDataToString, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-DzzIT4YD.js";
44
- import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as transcriptEntriesToMessages, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as sleepWithAbort, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadCombinedSessionStoreForGateway, d as countToolResults, f as extractToolCallNames, g as computeBackoff, h as resolveContextTokensForModel, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as capArrayByJsonBytes, m as lookupContextTokens, n as formatOutboundPayloadLog, o as throwIfAborted, p as jsonUtf8Bytes, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as stripLeadingInboundMetadata, v as loadChannelOutboundAdapter, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-D77qfyGv.js";
45
- import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-DLi5r0L8.js";
46
- import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-nKIf4x6Y.js";
47
- import { C as resolveNativeCommandsEnabled, S as isRestartEnabled, a as isCommandEnabled, b as isCommandFlagEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, p as normalizeCommandBody, r as findCommandByNativeName, u as listNativeCommandSpecs, v as serializeCommandArgs, w as resolveNativeSkillsEnabled, x as isNativeCommandsExplicitlyDisabled, y as shouldHandleTextCommands } from "./commands-registry-Bq1VWa2x.js";
36
+ import { $ as resolveToolProfilePolicy, A as parseImageSizeError, B as resolveProfile, C as isFailoverAssistantError, D as isRawApiErrorPayload, E as isRateLimitAssistantError, F as resolveSandboxContext, G as applyOwnerOnlyToolPolicy, H as ensureBrowserControlAuth, I as resolveSandboxRuntimeStatus, J as expandPolicyWithPluginGroups, K as buildPluginToolGroups, L as createBrowserRouteContext, M as isAuthPermanentErrorMessage, N as isTimeoutErrorMessage, O as isTransientHttpError, P as ensureSandboxWorkspaceForSession, Q as normalizeToolName, R as registerBrowserRoutes, S as isContextOverflowError, T as isLikelyContextOverflowError, U as resolveBrowserControlAuth, V as getBridgeAuthForPort, W as resolveSandboxConfigForAgent, X as stripPluginOnlyAllowlist, Y as mergeAlsoAllowPolicy, Z as expandToolGroups, _ as getApiErrorPayloadFingerprint, at as sanitizeGoogleTurnOrdering, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as sanitizeImageBlocks, d as isGoogleModelApi, dt as canonicalizeBase64, et as compileGlobPatterns, f as BILLING_ERROR_USER_MESSAGE, ft as estimateBase64DecodedBytes, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapTotalMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeToolResultImages, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as buildBootstrapContextFiles, o as isMessagingToolDuplicateNormalized, ot as resolveGatewayCredentialsFromConfig, p as classifyFailoverReason, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as resolveBootstrapMaxChars, s as normalizeTextForComparison, st as trimToUndefined$1, t as extractTextFromChatContent, tt as matchesAnyGlobPattern, u as downgradeOpenAIReasoningBlocks, ut as resolveImageSanitizationLimits, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-Bb7n9arw.js";
37
+ import { a as createSlackWebClient, c as validateSlackBlocksArray, i as buildSlackBlocksFallbackText, o as resolveSlackWebClientOptions, r as normalizeSlackOutboundText, s as parseSlackBlocksInput, t as sendMessageSlack } from "./send-Dzf8uETw.js";
38
+ import { S as modelSupportsVision, T as buildRandomTempFilePath, _ as stripCarriedTranscriptFromBody, a as resolveAutoImageModel, b as findModelInCatalog, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as resolveMediaAttachmentLocalRoots, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as runCapability, t as runAudioTranscription, u as resolveTimeoutMs$2, w as registerUnhandledRejectionHandler, x as loadModelCatalog, y as resolveAttachmentKind } from "./audio-transcription-runner-B5XVOio1.js";
39
+ import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-DA4xCsnL.js";
40
+ import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-Ctmmv-sn.js";
41
+ import { a as getRemoteSkillEligibility, c as getSkillsSnapshotVersion, d as pruneExpiredPending, f as resolvePairingPaths, i as resolveSkillCommandInvocation, l as generatePairingToken, n as listSkillCommandsForAgents, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames, u as rejectPendingPairingRequest } from "./skill-commands-B3IuCuE6.js";
42
+ import { a as skillsSnapshotSourceDiffers, c as assertSandboxPath, d as resolveSandboxedMediaSource, f as applySkillEnvOverrides, i as resolveSkillsPromptForRun, l as resolveSandboxInputPath, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverridesFromSnapshot, r as loadWorkspaceSkillEntries, s as assertMediaNotDataUrl } from "./skills-DcowK80n.js";
43
+ import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, J as resolveClientIp, K as isLoopbackHost, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, Y as rawDataToString, q as isSecureWebSocketUrl, s as resolveLsofCommandSync } from "./chrome-CCmCZHTw.js";
44
+ import { A as normalizeTargetForProvider, C as isRenderablePayload, D as resolveReplyToMode, E as createReplyToModeFilterForChannel, M as transcriptEntriesToMessages, O as buildTargetResolverSignature, S as filterMessagingToolMediaDuplicates, T as shouldSuppressReasoningPayload, _ as sleepWithAbort, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadCombinedSessionStoreForGateway, d as countToolResults, f as extractToolCallNames, g as computeBackoff, h as resolveContextTokensForModel, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as capArrayByJsonBytes, m as lookupContextTokens, n as formatOutboundPayloadLog, o as throwIfAborted, p as jsonUtf8Bytes, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as stripLeadingInboundMetadata, v as loadChannelOutboundAdapter, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-psYmko0d.js";
45
+ import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-DPt0-vul.js";
46
+ import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-B5Jssa25.js";
47
+ import { C as resolveNativeCommandsEnabled, S as isRestartEnabled, a as isCommandEnabled, b as isCommandFlagEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, p as normalizeCommandBody, r as findCommandByNativeName, u as listNativeCommandSpecs, v as serializeCommandArgs, w as resolveNativeSkillsEnabled, x as isNativeCommandsExplicitlyDisabled, y as shouldHandleTextCommands } from "./commands-registry-COgT-iaa.js";
48
48
  import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-DW5zml_e.js";
49
49
  import { t as redactIdentifier } from "./redact-identifier-BTIWtaa-.js";
50
- import { D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionStarted, T as logWebhookProcessed, a as logMessageProcessed, b as logToolExecutionBlocked, c as logModelCallError, d as logRunStarted, f as logSessionStateChange, j as startDiagnosticHeartbeat, o as logMessageQueued, u as logRunCompleted, w as logWebhookError, x as logToolExecutionCompleted } from "./diagnostic-DVk1j05H.js";
50
+ import { D as recordSystemPromptHashComparison, E as logWebhookReceived, F as resetCommandPollCount, M as stopDiagnosticHeartbeat, N as boundDiagnosticContent, O as refreshRunProgress, P as recordCommandPoll, S as logToolExecutionStarted, T as logWebhookProcessed, a as logMessageProcessed, b as logToolExecutionBlocked, c as logModelCallError, d as logRunStarted, f as logSessionStateChange, j as startDiagnosticHeartbeat, o as logMessageQueued, u as logRunCompleted, w as logWebhookError, x as logToolExecutionCompleted } from "./diagnostic-ClVRNbVE.js";
51
51
  import { n as getDiagnosticSessionState, o as redactChannelCorrelation } from "./diagnostic-session-state-D_Vrp41k.js";
52
52
  import { t as CommandLane } from "./lanes-DtESSyRO.js";
53
- import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-JvIhb__x.js";
54
- import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-BXyHfYg3.js";
55
- import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-B_7zTSFA.js";
53
+ import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, o as getCommandLaneSnapshots, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-zJnOHqF4.js";
54
+ import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-CTKs_Jv9.js";
55
+ import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-CSYSJRCO.js";
56
56
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-BUw50iLW.js";
57
- import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-CHCoH08E.js";
58
- import { t as ensureOpenClawModelsJson } from "./models-config-Dj4jLPMw.js";
59
- import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-gWjx_FJu.js";
60
- import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-CK8PByo3.js";
57
+ import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-_OwU2G2N.js";
58
+ import { t as ensureOpenClawModelsJson } from "./models-config-DJUNPvmU.js";
59
+ import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, g as isInsideCode, h as findCodeRegions, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-DFu_kkJ7.js";
60
+ import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-BhdEzOAF.js";
61
61
  import { n as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-lJN4H6fT.js";
62
- import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-BU1Eppml.js";
63
- import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-DHH7532s.js";
64
- import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-C_nV536z.js";
65
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-D0I4Llwy.js";
66
- import { t as createTelegramPollingTransport } from "./proxy-K3jUjtIm.js";
67
- import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-CmfWsSdE.js";
68
- import { t as recordInboundSessionMetaSafe } from "./session-meta-Cho9XVh8.js";
69
- import { n as resolveMemorySearchConfig } from "./manager-Dxv2YpgS.js";
70
- import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-BY2L8oSD.js";
62
+ import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-cRC89AXl.js";
63
+ import { a as signalCheck, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalRpcRequest, r as sendTypingSignal, s as streamSignalEvents, t as sendMessageSignal } from "./send-C6oFuvTF.js";
64
+ import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-DpVpX34I.js";
65
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-Ouh7ZVw1.js";
66
+ import { t as createTelegramPollingTransport } from "./proxy-DhVCl72V.js";
67
+ import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$3, t as createSlackReplyDeliveryPlan } from "./replies-Br3czjGn.js";
68
+ import { t as recordInboundSessionMetaSafe } from "./session-meta-Ov3Sv55D.js";
69
+ import { n as resolveMemorySearchConfig } from "./manager-WrO0qTfU.js";
70
+ import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-CmmZw3Kz.js";
71
71
  import { createRequire } from "node:module";
72
72
  import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
73
73
  import * as path$1 from "node:path";
74
74
  import path, { basename, isAbsolute, join } from "node:path";
75
75
  import { inspect, isDeepStrictEqual, promisify } from "node:util";
76
- import json5 from "json5";
76
+ import JSON5 from "json5";
77
77
  import os, { homedir } from "node:os";
78
78
  import * as fs$2 from "node:fs/promises";
79
79
  import fs$1, { open } from "node:fs/promises";
@@ -18008,7 +18008,7 @@ async function sendTranscriptEcho(params) {
18008
18008
  }
18009
18009
  const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
18010
18010
  try {
18011
- const { deliverOutboundPayloads } = await import("./deliver-tcGRRL8s.js");
18011
+ const { deliverOutboundPayloads } = await import("./deliver-vnDzNTkY.js");
18012
18012
  await deliverOutboundPayloads({
18013
18013
  cfg,
18014
18014
  channel: normalizedChannel,
@@ -25808,7 +25808,7 @@ async function routeReply(params) {
25808
25808
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
25809
25809
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
25810
25810
  try {
25811
- const { deliverOutboundPayloads } = await import("./deliver-tcGRRL8s.js");
25811
+ const { deliverOutboundPayloads } = await import("./deliver-vnDzNTkY.js");
25812
25812
  const outboundSession = buildOutboundSessionContext({
25813
25813
  cfg,
25814
25814
  agentId: resolvedAgentId,
@@ -28214,7 +28214,7 @@ function requestNudge(input, cfg = loadConfig(), deps) {
28214
28214
  const { backbone, runner } = getAgentTurnRuntime();
28215
28215
  const id = await enqueueAgentTurn(backbone, payload);
28216
28216
  if (!isClaimableAgentTurnWorkId(id)) return;
28217
- const { runMainAgentTurn } = await import("./agent-turn-execute-CW7LtXMC.js");
28217
+ const { runMainAgentTurn } = await import("./agent-turn-execute-92Jd5M92.js");
28218
28218
  await runner.claimAndExecute({
28219
28219
  workId: id,
28220
28220
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -29379,7 +29379,7 @@ async function handleHeartbeatError(params) {
29379
29379
  const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
29380
29380
  async function ackAnnounceExecuted(payload) {
29381
29381
  if (payload.kind !== "announce") return;
29382
- const { markSubagentAnnounceExecuted } = await import("./subagent-registry-D-9HI-_X.js");
29382
+ const { markSubagentAnnounceExecuted } = await import("./subagent-registry-B_Vd4hA-.js");
29383
29383
  for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
29384
29384
  await markSubagentAnnounceExecuted(runId);
29385
29385
  } catch {}
@@ -29647,7 +29647,7 @@ function normalizeSessionKey(value) {
29647
29647
  function readSessionStore(storePath) {
29648
29648
  try {
29649
29649
  const raw = fs.readFileSync(storePath, "utf-8");
29650
- const parsed = json5.parse(raw);
29650
+ const parsed = JSON5.parse(raw);
29651
29651
  if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
29652
29652
  } catch {}
29653
29653
  return {};
@@ -29876,7 +29876,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
29876
29876
  let subagentRegistryAccessPromise;
29877
29877
  const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
29878
29878
  function loadSubagentRegistryAccess() {
29879
- if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-D-9HI-_X.js").catch((err) => {
29879
+ if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-B_Vd4hA-.js").catch((err) => {
29880
29880
  const message = err instanceof Error && err.message ? err.message : String(err);
29881
29881
  defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
29882
29882
  subagentRegistryAccessPromise = void 0;
@@ -43229,7 +43229,7 @@ async function createModelSelectionState(params) {
43229
43229
  }
43230
43230
  }
43231
43231
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
43232
- const { ensureAuthProfileStore } = await import("./auth-profiles-CxOZbtpA.js");
43232
+ const { ensureAuthProfileStore } = await import("./auth-profiles-DhZNx6fQ.js");
43233
43233
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
43234
43234
  const providerKey = normalizeProviderId(provider);
43235
43235
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -61224,7 +61224,7 @@ async function deliverSessionMaintenanceWarning(params) {
61224
61224
  return;
61225
61225
  }
61226
61226
  try {
61227
- const { deliverOutboundPayloads } = await import("./deliver-tcGRRL8s.js");
61227
+ const { deliverOutboundPayloads } = await import("./deliver-vnDzNTkY.js");
61228
61228
  const outboundSession = buildOutboundSessionContext({
61229
61229
  cfg: params.cfg,
61230
61230
  sessionKey: params.sessionKey
@@ -66623,7 +66623,7 @@ async function describeStickerImage(params) {
66623
66623
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
66624
66624
  try {
66625
66625
  const buffer = await fs$1.readFile(imagePath);
66626
- const { describeImageWithModel } = await import("./provider-image-BRuhIUH4.js");
66626
+ const { describeImageWithModel } = await import("./provider-image-H8yS_SWU.js");
66627
66627
  return (await describeImageWithModel({
66628
66628
  buffer,
66629
66629
  fileName: "sticker.webp",
@@ -67891,7 +67891,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
67891
67891
  let transcript;
67892
67892
  let carry;
67893
67893
  if (needsPreflightTranscription) try {
67894
- const { transcribeFirstAudio } = await import("./audio-preflight-BZXIHlnM.js");
67894
+ const { transcribeFirstAudio } = await import("./audio-preflight-CjrkjpyE.js");
67895
67895
  const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
67896
67896
  if (uploadable.length > 0) {
67897
67897
  const preflight = await transcribeFirstAudio({
@@ -75069,23 +75069,23 @@ function createDefaultDeps() {
75069
75069
  };
75070
75070
  },
75071
75071
  sendMessageTelegram: async (...args) => {
75072
- const { sendMessageTelegram } = await import("./send-LkmFhgsK.js");
75072
+ const { sendMessageTelegram } = await import("./send-BpBIBmue.js");
75073
75073
  return await sendMessageTelegram(...args);
75074
75074
  },
75075
75075
  sendMessageDiscord: async (...args) => {
75076
- const { sendMessageDiscord } = await import("./send-Dhapzixp.js");
75076
+ const { sendMessageDiscord } = await import("./send-BRN7Zt5N.js");
75077
75077
  return await sendMessageDiscord(...args);
75078
75078
  },
75079
75079
  sendMessageSlack: async (...args) => {
75080
- const { sendMessageSlack } = await import("./send--m_QWAPO.js");
75080
+ const { sendMessageSlack } = await import("./send-DuyWQ4Q4.js");
75081
75081
  return await sendMessageSlack(...args);
75082
75082
  },
75083
75083
  sendMessageSignal: async (...args) => {
75084
- const { sendMessageSignal } = await import("./send-DnFCjogv.js");
75084
+ const { sendMessageSignal } = await import("./send-BjroMkud.js");
75085
75085
  return await sendMessageSignal(...args);
75086
75086
  },
75087
75087
  sendMessageIMessage: async (...args) => {
75088
- const { sendMessageIMessage } = await import("./send-D9H-XXzx.js");
75088
+ const { sendMessageIMessage } = await import("./send-8sjelrtn.js");
75089
75089
  return await sendMessageIMessage(...args);
75090
75090
  }
75091
75091
  };
@@ -86706,7 +86706,7 @@ function readSlackExternalArgMenuToken(raw) {
86706
86706
  }
86707
86707
  let commandsRegistry;
86708
86708
  async function getCommandsRegistry() {
86709
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-oILscT9a.js");
86709
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-C6FHOrPa.js");
86710
86710
  return commandsRegistry;
86711
86711
  }
86712
86712
  function encodeSlackCommandArgValue(parts) {
@@ -87036,14 +87036,14 @@ async function registerSlackMonitorSlashCommands(params) {
87036
87036
  const channelName = channelInfo?.name;
87037
87037
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
87038
87038
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
87039
- import("./resolve-route-JQF7nqo1.js"),
87039
+ import("./resolve-route-BDoLW8xr.js"),
87040
87040
  import("./inbound-context-CCKCHVrn.js"),
87041
- import("./provider-dispatcher-BkgqrySb.js")
87041
+ import("./provider-dispatcher-ZGQtxSji.js")
87042
87042
  ]);
87043
87043
  const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
87044
87044
  import("./conversation-label-D3nMf3rZ.js"),
87045
- import("./reply-prefix-C38vv65Y.js"),
87046
- import("./session-meta-DwqjC-No.js")
87045
+ import("./reply-prefix-30s91NpV.js"),
87046
+ import("./session-meta-BuG8rCMb.js")
87047
87047
  ]);
87048
87048
  const route = resolveAgentRoute({
87049
87049
  cfg,
@@ -87108,9 +87108,9 @@ async function registerSlackMonitorSlashCommands(params) {
87108
87108
  });
87109
87109
  const deliverSlashPayloads = async (replies) => {
87110
87110
  const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
87111
- import("./replies-3-6UUC2y.js"),
87112
- import("./chunk-C_GT4tj0.js"),
87113
- import("./markdown-tables-Q5ogPPem.js")
87111
+ import("./replies-DuOOGDXs.js"),
87112
+ import("./chunk-jn4LDLDQ.js"),
87113
+ import("./markdown-tables-xTvb6uxj.js")
87114
87114
  ]);
87115
87115
  await deliverSlackSlashReplies({
87116
87116
  replies,
@@ -87164,7 +87164,7 @@ async function registerSlackMonitorSlashCommands(params) {
87164
87164
  let nativeCommands = [];
87165
87165
  if (nativeEnabled) {
87166
87166
  reg = await getCommandsRegistry();
87167
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-Clq-qaMe.js")).listSkillCommandsForAgents({ cfg }) : [];
87167
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-CZKr2EYZ.js")).listSkillCommandsForAgents({ cfg }) : [];
87168
87168
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
87169
87169
  skillCommands,
87170
87170
  provider: "slack"
@@ -87683,7 +87683,7 @@ async function auditTelegramGroupMembership(params) {
87683
87683
  groups: [],
87684
87684
  elapsedMs: Date.now() - started
87685
87685
  };
87686
- const fetcher = params.proxyUrl ? (await import("./proxy-LKdqVD6u.js")).makeProxyFetch(params.proxyUrl) : fetch;
87686
+ const fetcher = params.proxyUrl ? (await import("./proxy-BFnRHQ1U.js")).makeProxyFetch(params.proxyUrl) : fetch;
87687
87687
  const { fetchWithTimeout } = await import("./fetch-timeout-C7tnRm-P.js");
87688
87688
  const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
87689
87689
  const groups = [];
@@ -90242,7 +90242,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
90242
90242
  let audioPreflightCarry;
90243
90243
  const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
90244
90244
  if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
90245
- const { transcribeFirstAudio } = await import("./audio-preflight-BZXIHlnM.js");
90245
+ const { transcribeFirstAudio } = await import("./audio-preflight-CjrkjpyE.js");
90246
90246
  const preflight = await transcribeFirstAudio({
90247
90247
  ctx: {
90248
90248
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -94703,7 +94703,7 @@ async function getMemorySearchManager(params) {
94703
94703
  if (cached) return { manager: cached };
94704
94704
  }
94705
94705
  try {
94706
- const { QmdMemoryManager } = await import("./qmd-manager-BHhDDFrn.js");
94706
+ const { QmdMemoryManager } = await import("./qmd-manager-Dk95qYn7.js");
94707
94707
  const primary = await QmdMemoryManager.create({
94708
94708
  cfg: params.cfg,
94709
94709
  agentId: params.agentId,
@@ -94715,7 +94715,7 @@ async function getMemorySearchManager(params) {
94715
94715
  const wrapper = new FallbackMemoryManager({
94716
94716
  primary,
94717
94717
  fallbackFactory: async () => {
94718
- const { MemoryIndexManager } = await import("./manager-BgK1sRAg.js");
94718
+ const { MemoryIndexManager } = await import("./manager-DsV_4p9J.js");
94719
94719
  return await MemoryIndexManager.get(params);
94720
94720
  }
94721
94721
  }, () => {
@@ -94730,7 +94730,7 @@ async function getMemorySearchManager(params) {
94730
94730
  }
94731
94731
  }
94732
94732
  try {
94733
- const { MemoryIndexManager } = await import("./manager-BgK1sRAg.js");
94733
+ const { MemoryIndexManager } = await import("./manager-DsV_4p9J.js");
94734
94734
  return { manager: await MemoryIndexManager.get(params) };
94735
94735
  } catch (err) {
94736
94736
  return {
@@ -99865,7 +99865,7 @@ function createPluginRuntime(options = {}) {
99865
99865
  workStates: readTaskWorkStates
99866
99866
  },
99867
99867
  resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
99868
- sessions: { startUserRun: async (params) => (await import("./user-run-recording-D80GJNVP.js")).startUserSessionRun(params) }
99868
+ sessions: { startUserRun: async (params) => (await import("./user-run-recording-DIcSd0VJ.js")).startUserSessionRun(params) }
99869
99869
  };
99870
99870
  Object.defineProperty(runtime, "analysis", {
99871
99871
  enumerable: true,
@@ -101399,7 +101399,7 @@ async function recordLoopOutcome(args) {
101399
101399
  if (!args.ctx?.sessionKey) return;
101400
101400
  try {
101401
101401
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
101402
- const { recordToolCallOutcome } = await import("./tool-loop-detection-DazBiexb.js");
101402
+ const { recordToolCallOutcome } = await import("./tool-loop-detection-ys8oxWQM.js");
101403
101403
  recordToolCallOutcome(getDiagnosticSessionState({
101404
101404
  sessionKey: args.ctx.sessionKey,
101405
101405
  sessionId: args.ctx?.agentId
@@ -101426,8 +101426,8 @@ async function runBeforeToolCallHook(args) {
101426
101426
  const params = args.params;
101427
101427
  if (args.ctx?.sessionKey) {
101428
101428
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
101429
- const { logToolLoopAction } = await import("./diagnostic-C-BgFx1S.js");
101430
- const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-DazBiexb.js");
101429
+ const { logToolLoopAction } = await import("./diagnostic-C6f2UvX8.js");
101430
+ const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-ys8oxWQM.js");
101431
101431
  const sessionState = getDiagnosticSessionState({
101432
101432
  sessionKey: args.ctx.sessionKey,
101433
101433
  sessionId: args.ctx?.agentId
@@ -1,13 +1,13 @@
1
1
  import "./paths-oi7j9L8A.js";
2
- import "./subsystem-CPqF9wja.js";
3
- import "./agent-scope-B5NskkwN.js";
4
- import "./config-Cp7sIoSP.js";
2
+ import "./subsystem-C-lWCqvG.js";
3
+ import "./agent-scope-BNKfH4PO.js";
4
+ import "./config-D2katwYr.js";
5
5
  import "./github-copilot-token-BnKQ-aRX.js";
6
- import "./logger-DYxRK_FZ.js";
6
+ import "./logger-F5PKgK4h.js";
7
7
  import "./diagnostic-events-Ba8-RH3Z.js";
8
- import "./redact-C9Eu_AUI.js";
9
- import "./diagnostic-DVk1j05H.js";
8
+ import "./redact-YbcPIGWf.js";
9
+ import "./diagnostic-ClVRNbVE.js";
10
10
  import "./diagnostic-session-state-D_Vrp41k.js";
11
- import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-JvIhb__x.js";
11
+ import { a as enqueueCommandInLane, c as isGatewayDraining, i as clearCommandLane, l as isQueuedCommandCancellation, n as CommandLaneClearedError, o as getCommandLaneSnapshots, r as GatewayDrainingError, s as getQueueSize, t as CommandLaneAbortedError } from "./command-queue-zJnOHqF4.js";
12
12
 
13
13
  export { getQueueSize };
@@ -1,4 +1,4 @@
1
- import { i as logLaneTaskCompleted, n as logLaneDequeue, r as logLaneEnqueue, t as diag } from "./diagnostic-DVk1j05H.js";
1
+ import { i as logLaneTaskCompleted, n as logLaneDequeue, r as logLaneEnqueue, t as diag } from "./diagnostic-ClVRNbVE.js";
2
2
  import { t as CommandLane } from "./lanes-DtESSyRO.js";
3
3
 
4
4
  //#region src/process/command-queue.ts
@@ -1,10 +1,10 @@
1
1
  import "./paths-oi7j9L8A.js";
2
- import "./subsystem-CPqF9wja.js";
3
- import "./agent-scope-B5NskkwN.js";
4
- import "./config-Cp7sIoSP.js";
2
+ import "./subsystem-C-lWCqvG.js";
3
+ import "./agent-scope-BNKfH4PO.js";
4
+ import "./config-D2katwYr.js";
5
5
  import "./github-copilot-token-BnKQ-aRX.js";
6
- import "./logger-DYxRK_FZ.js";
7
- import { _ as resolveTextCommand, a as isCommandEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, i as getCommandDetection, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, o as isCommandMessage, p as normalizeCommandBody, r as findCommandByNativeName, s as isNativeCommandSurface, t as buildCommandText, u as listNativeCommandSpecs, v as serializeCommandArgs, y as shouldHandleTextCommands } from "./commands-registry-Bq1VWa2x.js";
6
+ import "./logger-F5PKgK4h.js";
7
+ import { _ as resolveTextCommand, a as isCommandEnabled, c as listChatCommands, d as listNativeCommandSpecsForConfig, f as maybeResolveTextAlias, g as resolveCommandArgMenu, h as resolveCommandArgChoices, i as getCommandDetection, l as listChatCommandsForConfig, m as parseCommandArgs, n as buildCommandTextFromArgs, o as isCommandMessage, p as normalizeCommandBody, r as findCommandByNativeName, s as isNativeCommandSurface, t as buildCommandText, u as listNativeCommandSpecs, v as serializeCommandArgs, y as shouldHandleTextCommands } from "./commands-registry-COgT-iaa.js";
8
8
  import "./thinking-DW5zml_e.js";
9
9
 
10
10
  export { buildCommandText, buildCommandTextFromArgs, findCommandByNativeName, getCommandDetection, isCommandEnabled, isCommandMessage, isNativeCommandSurface, listChatCommands, listChatCommandsForConfig, listNativeCommandSpecs, listNativeCommandSpecsForConfig, maybeResolveTextAlias, normalizeCommandBody, parseCommandArgs, resolveCommandArgChoices, resolveCommandArgMenu, resolveTextCommand, serializeCommandArgs, shouldHandleTextCommands };
@@ -1,6 +1,6 @@
1
- import { W as escapeRegExp } from "./subsystem-CPqF9wja.js";
1
+ import { W as escapeRegExp } from "./subsystem-C-lWCqvG.js";
2
2
  import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
3
- import { Ot as getActivePluginRegistry, Un as normalizeChannelId, bs as DEFAULT_PROVIDER, or as listChannelDocks, to as resolveConfiguredModelRef, ys as DEFAULT_MODEL } from "./config-Cp7sIoSP.js";
3
+ import { Ot as getActivePluginRegistry, Un as normalizeChannelId, bs as DEFAULT_PROVIDER, or as listChannelDocks, to as resolveConfiguredModelRef, ys as DEFAULT_MODEL } from "./config-D2katwYr.js";
4
4
  import { r as listThinkingLevels } from "./thinking-DW5zml_e.js";
5
5
 
6
6
  //#region src/config/commands.ts
@@ -1,14 +1,14 @@
1
1
  import { c as resolveOAuthPath, f as resolveRequiredHomeDir, i as resolveDefaultConfigCandidates, l as resolveStateDir, r as resolveConfigPath, s as resolveOAuthDir, t as DEFAULT_GATEWAY_PORT, u as expandHomePrefix } from "./paths-oi7j9L8A.js";
2
- import { $ as resolveUserPath, A as isPathInside$2, F as sanitizeHostExecEnv, I as MissingEnvVarError, K as isRecord$3, L as containsEnvVarReference, N as applyConfigEnvVars, R as resolveConfigEnvVars, S as openBoundaryFileSync, W as escapeRegExp, Y as normalizeE164, Z as resolveConfigDir, _ as resolveConfigIncludes, d as createFileLogWriter, g as readConfigIncludeFileWithGuards, h as INCLUDE_KEY, lt as logVerbose, m as ConfigIncludeError, n as stripAnsi, p as normalizeConfigPaths, rt as sleep, t as createSubsystemLogger, v as isBlockedObjectKey, vt as getChildLogger, y as isPathInside$1 } from "./subsystem-CPqF9wja.js";
2
+ import { $ as resolveUserPath, A as isPathInside$2, F as sanitizeHostExecEnv, I as MissingEnvVarError, K as isRecord$3, L as containsEnvVarReference, N as applyConfigEnvVars, R as resolveConfigEnvVars, S as openBoundaryFileSync, W as escapeRegExp, Y as normalizeE164, Z as resolveConfigDir, _ as resolveConfigIncludes, d as createFileLogWriter, g as readConfigIncludeFileWithGuards, h as INCLUDE_KEY, lt as logVerbose, m as ConfigIncludeError, n as stripAnsi, p as normalizeConfigPaths, rt as sleep, t as createSubsystemLogger, v as isBlockedObjectKey, vt as getChildLogger, y as isPathInside$1 } from "./subsystem-C-lWCqvG.js";
3
3
  import { t as isPlainObject$2 } from "./plain-object-BTbonVRI.js";
4
- import { D as runExec, I as RAW_PEER_KEY_PREFIX, K as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, U as expandIdentityLinksToMatchKeys, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as normalizeAccountId$1, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, tt as DEFAULT_ACCOUNT_ID } from "./agent-scope-B5NskkwN.js";
4
+ import { D as runExec, I as RAW_PEER_KEY_PREFIX, K as normalizeAgentId, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, U as expandIdentityLinksToMatchKeys, a as resolveAgentEffectiveModelPrimary, c as resolveDefaultAgentId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as normalizeAccountId$1, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeOptionalAccountId, s as resolveAgentWorkspaceDir, tt as DEFAULT_ACCOUNT_ID } from "./agent-scope-BNKfH4PO.js";
5
5
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-BnKQ-aRX.js";
6
6
  import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-DA_qUFFI.js";
7
7
  import { createRequire } from "node:module";
8
8
  import fs from "node:fs";
9
9
  import path from "node:path";
10
10
  import util, { isDeepStrictEqual } from "node:util";
11
- import json5 from "json5";
11
+ import JSON5 from "json5";
12
12
  import os, { userInfo } from "node:os";
13
13
  import fs$1 from "node:fs/promises";
14
14
  import { execFileSync, spawn } from "node:child_process";
@@ -24073,7 +24073,7 @@ function resolveConfigPathForDeps(deps) {
24073
24073
  function normalizeDeps(overrides = {}) {
24074
24074
  return {
24075
24075
  fs: overrides.fs ?? fs,
24076
- json5: overrides.json5 ?? json5,
24076
+ json5: overrides.json5 ?? JSON5,
24077
24077
  env: overrides.env ?? process.env,
24078
24078
  homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
24079
24079
  configPath: overrides.configPath ?? "",
@@ -24084,11 +24084,11 @@ function maybeLoadDotEnvForConfig(env) {
24084
24084
  if (env !== process.env) return;
24085
24085
  loadDotEnv({ quiet: true });
24086
24086
  }
24087
- function parseConfigJson5(raw, json5$1 = json5) {
24087
+ function parseConfigJson5(raw, json5 = JSON5) {
24088
24088
  try {
24089
24089
  return {
24090
24090
  ok: true,
24091
- parsed: json5$1.parse(raw)
24091
+ parsed: json5.parse(raw)
24092
24092
  };
24093
24093
  } catch (err) {
24094
24094
  return {