wednesdayai 0.5.1-dev.32 → 0.5.1-dev.33

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 (191) hide show
  1. package/dist/{agent-turn-runner-S1vq5Ulh.js → agent-turn-runner-DXYDVe1C.js} +4 -4
  2. package/dist/{audio-preflight-BMSN3-KS.js → audio-preflight-BiS0KKxu.js} +5 -5
  3. package/dist/{audio-transcription-runner-DC-89wRJ.js → audio-transcription-runner-BzhNp8ph.js} +1 -1
  4. package/dist/build-info.json +3 -3
  5. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  6. package/dist/{chat-content-B_yhsqe7.js → chat-content-9BKtrFlm.js} +3 -3
  7. package/dist/{chrome-DSN1Pl_7.js → chrome-DTpFo7Vl.js} +8 -8
  8. package/dist/{command-queue-C3C-3E3m.js → command-queue-Cmq2DaRv.js} +1 -1
  9. package/dist/{deliver-BXItFLzM.js → deliver-C6wOxWlw.js} +1 -1
  10. package/dist/{diagnostic-Zgub15n7.js → diagnostic-Dg-GxAUC.js} +1 -1
  11. package/dist/extensionAPI.js +12 -12
  12. package/dist/{pi-embedded-CnmVVEIX.js → pi-embedded-DssKKG-n.js} +28 -28
  13. package/dist/{pi-embedded-utils-BvSj9Abs.js → pi-embedded-utils-LAndcAQB.js} +1 -1
  14. package/dist/plugin-sdk/{agent-scope-Bo_5VoUQ.js → agent-scope-z4RGwm8d.js} +2 -2
  15. package/dist/plugin-sdk/agent-turn-execute-DvIzD6nF.js +64 -0
  16. package/dist/plugin-sdk/{agent-turn-runner-C3JXbjqd.js → agent-turn-runner-8kdhCR0d.js} +7 -7
  17. package/dist/plugin-sdk/agent-turn-runner-BKQemSvp.js +11 -0
  18. package/dist/plugin-sdk/{api-key-rotation-C8PepfL7.js → api-key-rotation-Lj4ohNVH.js} +2 -2
  19. package/dist/plugin-sdk/{audio-preflight-2hEF1ua3.js → audio-preflight-DYwzZFem.js} +2 -2
  20. package/dist/plugin-sdk/audio-preflight-DjN5jAH-.js +31 -0
  21. package/dist/plugin-sdk/{audio-transcription-runner-7xu2PHpy.js → audio-transcription-runner-Bv5OKlh3.js} +11 -11
  22. package/dist/plugin-sdk/{auth-profiles-DOGPhxiO.js → auth-profiles-CvaAM1bO.js} +4 -4
  23. package/dist/plugin-sdk/{channel-activity-BDv60wwb.js → channel-activity-I-orS8xM.js} +3 -3
  24. package/dist/plugin-sdk/{chat-content-BO1G3l1D.js → chat-content-ufcNYnUG.js} +13 -13
  25. package/dist/plugin-sdk/{chrome-BF-SD_TX.js → chrome-DyZgIs-_.js} +5 -5
  26. package/dist/plugin-sdk/{chunk-fz3rdwzH.js → chunk-9EGLoGbP.js} +5 -5
  27. package/dist/plugin-sdk/{chunk-Dq7a6OIU.js → chunk-CFEsZ1GH.js} +3 -3
  28. package/dist/plugin-sdk/{command-detection-BfuokWtK.js → command-detection-C4bS82Pf.js} +87 -87
  29. package/dist/plugin-sdk/{command-queue-BDZthp_6.js → command-queue-CwlMQitu.js} +7 -7
  30. package/dist/plugin-sdk/{command-queue-B5RNFnTv.js → command-queue-KcIqWrP5.js} +1 -1
  31. package/dist/plugin-sdk/{commands-registry-CaDDouTD.js → commands-registry-BCIM9pNg.js} +5 -5
  32. package/dist/plugin-sdk/{commands-registry-DfxbVPdI.js → commands-registry-CQZLa_SB.js} +2 -2
  33. package/dist/plugin-sdk/{config-BCCgl0hn.js → config-BZyYmcZu.js} +6 -6
  34. package/dist/plugin-sdk/{deliver-Bg7vSSSz.js → deliver-BVlOHiTJ.js} +14 -14
  35. package/dist/plugin-sdk/deliver-PynE7WAX.js +35 -0
  36. package/dist/plugin-sdk/{diagnostic-CKEahGHO.js → diagnostic-DyXVhcmx.js} +5 -5
  37. package/dist/plugin-sdk/{diagnostic-BWjtyPCW.js → diagnostic-d_SjMG4F.js} +6 -6
  38. package/dist/plugin-sdk/{errors-B671D37F.js → errors-BAcXagTa.js} +1 -1
  39. package/dist/plugin-sdk/{fetch-guard-DQ8o5XyC.js → fetch-guard-Dz6nf8wN.js} +3 -3
  40. package/dist/plugin-sdk/{fs-safe-CR39I5to.js → fs-safe-Qut4VUn8.js} +3 -3
  41. package/dist/plugin-sdk/{image-ops-CJ4R1_em.js → image-ops-YY9i_qTZ.js} +1 -1
  42. package/dist/plugin-sdk/index.js +56 -56
  43. package/dist/plugin-sdk/{ir-9C_t1wFy.js → ir-BEZ_dCEY.js} +5 -5
  44. package/dist/plugin-sdk/{local-roots-OTvG9Uet.js → local-roots-DKN_BXBH.js} +7 -7
  45. package/dist/plugin-sdk/{logger-F5PKgK4h.js → logger-DYxRK_FZ.js} +1 -1
  46. package/dist/plugin-sdk/{manager-MIrX2iPe.js → manager-CocOQ6fW.js} +7 -7
  47. package/dist/plugin-sdk/manager-kniOx-37.js +16 -0
  48. package/dist/plugin-sdk/markdown-tables-DZMpNqrF.js +9 -0
  49. package/dist/plugin-sdk/{markdown-tables-xlx41zl9.js → markdown-tables-DxHN1ers.js} +2 -2
  50. package/dist/plugin-sdk/{models-config-Cu2KlfWJ.js → models-config-kotnKGvn.js} +2 -2
  51. package/dist/plugin-sdk/{outbound-attachment-DdpEFtZb.js → outbound-attachment-B9nWc9td.js} +2 -2
  52. package/dist/plugin-sdk/{path-alias-guards-DvB3vS9N.js → path-alias-guards-Cr_8wxeu.js} +1 -1
  53. package/dist/plugin-sdk/{pi-embedded-utils-DDSsb5qa.js → pi-embedded-utils-DWpHMRE7.js} +3 -3
  54. package/dist/plugin-sdk/{pi-model-discovery-BDE0zgie.js → pi-model-discovery-BXvfEsj4.js} +1 -1
  55. package/dist/plugin-sdk/{pi-model-discovery-lrPucOUX.js → pi-model-discovery-DjLa3BId.js} +5 -5
  56. package/dist/plugin-sdk/provider-dispatcher-4NQHXxB2.js +64 -0
  57. package/dist/plugin-sdk/{provider-image-B7uo4IM9.js → provider-image-C2pG2NT6.js} +6 -6
  58. package/dist/plugin-sdk/provider-image-CSas_smQ.js +25 -0
  59. package/dist/plugin-sdk/provider-media-understanding.js +7 -7
  60. package/dist/plugin-sdk/{proxy-DhVCl72V.js → proxy-K3jUjtIm.js} +1 -1
  61. package/dist/plugin-sdk/proxy-LKdqVD6u.js +7 -0
  62. package/dist/plugin-sdk/{proxy-fetch-BSTGvynk.js → proxy-fetch-Dt3HV6r3.js} +1 -1
  63. package/dist/plugin-sdk/{pw-ai-qyvEDNxO.js → pw-ai-CEyeHcgC.js} +10 -10
  64. package/dist/plugin-sdk/{qmd-manager-DingBlWU.js → qmd-manager-BI2y_Xsk.js} +9 -9
  65. package/dist/plugin-sdk/{qmd-scope-C0GklfJd.js → qmd-scope-GwEh7nOe.js} +1 -1
  66. package/dist/plugin-sdk/{query-expansion-B9Vg4ySI.js → query-expansion-BAI-_ZoZ.js} +2 -2
  67. package/dist/plugin-sdk/{recorder-CQMvTjV8.js → recorder-B-yV8XCt.js} +2 -2
  68. package/dist/plugin-sdk/{redact-YbcPIGWf.js → redact-C9Eu_AUI.js} +1 -1
  69. package/dist/plugin-sdk/replies-C6PNMaDL.js +27 -0
  70. package/dist/plugin-sdk/{replies-C6lNv9uX.js → replies-Ct6DIg_T.js} +5 -5
  71. package/dist/plugin-sdk/{reply-directives-S8gK7am2.js → reply-directives-D9Lcc6Ee.js} +2 -2
  72. package/dist/plugin-sdk/reply-prefix-BLvER8Cn.js +7 -0
  73. package/dist/plugin-sdk/{reply-prefix-DdYvvEko.js → reply-prefix-DuJ6Ceoh.js} +1 -1
  74. package/dist/plugin-sdk/{resolve-route-Cxq62oS-.js → resolve-route-BrMXKQWq.js} +4 -4
  75. package/dist/plugin-sdk/{resolve-route-CCzmV6gY.js → resolve-route-C4PNm_z8.js} +5 -5
  76. package/dist/plugin-sdk/runs-CEkzAF6y.js +27 -0
  77. package/dist/plugin-sdk/{runs-CcTSQsmU.js → runs-D57TPnQe.js} +8 -8
  78. package/dist/plugin-sdk/{send-BOylli3b.js → send-BJF01MUC.js} +6 -6
  79. package/dist/plugin-sdk/{send-0pJP23lo.js → send-BSDWny4T.js} +7 -7
  80. package/dist/plugin-sdk/{send-DSlxN8Pu.js → send-CvmKKoxT.js} +8 -8
  81. package/dist/plugin-sdk/{send-EYY94HYr.js → send-Cvrj-ZGU.js} +6 -6
  82. package/dist/plugin-sdk/{send-Bp1cXLZh.js → send-D_WOTvDj.js} +15 -15
  83. package/dist/plugin-sdk/{send-CGkIpzem.js → send-Dw-aJMoX.js} +19 -19
  84. package/dist/plugin-sdk/send-Dy8O2zuT.js +23 -0
  85. package/dist/plugin-sdk/send-IBoEtx0n.js +28 -0
  86. package/dist/plugin-sdk/send-UFkGtDAI.js +24 -0
  87. package/dist/plugin-sdk/send-cy5_Wkcf.js +25 -0
  88. package/dist/plugin-sdk/{session-context-BtisnBHv.js → session-context-BPDLUTI-.js} +4 -4
  89. package/dist/plugin-sdk/{session-meta-BXadaJdY.js → session-meta-CLpadnWo.js} +1 -1
  90. package/dist/plugin-sdk/session-meta-CedMqUYk.js +13 -0
  91. package/dist/plugin-sdk/{sessions-CsfH2Imf.js → sessions-DjF1xlK7.js} +4 -4
  92. package/dist/plugin-sdk/{skill-commands-D1_4ZKCy.js → skill-commands-BUI0JAT4.js} +4 -4
  93. package/dist/plugin-sdk/skill-commands-ljWQco1T.js +13 -0
  94. package/dist/plugin-sdk/{skills-Btyhug-W.js → skills-hYZyUG78.js} +6 -6
  95. package/dist/plugin-sdk/{ssrf-DypqgWGs.js → ssrf-DCsLkTwC.js} +1 -1
  96. package/dist/plugin-sdk/{store-MtdrAUmh.js → store-Dq16uaw2.js} +2 -2
  97. package/dist/plugin-sdk/subagent-registry-D0_E_IUh.js +64 -0
  98. package/dist/plugin-sdk/{subsystem-C-lWCqvG.js → subsystem-CPqF9wja.js} +4 -4
  99. package/dist/plugin-sdk/{tables-DtTPpruH.js → tables-BlZ1n1jO.js} +1 -1
  100. package/dist/plugin-sdk/{tokens-Ctmmv-sn.js → tokens-DdbQh5HH.js} +1 -1
  101. package/dist/plugin-sdk/{tool-loop-detection-AZitBuSm.js → tool-loop-detection-BMMKhiis.js} +1 -1
  102. package/dist/plugin-sdk/user-run-recording-C-9BHIvT.js +11 -0
  103. package/dist/plugin-sdk/{user-run-recording-MA0pqjXW.js → user-run-recording-DBwhNB8S.js} +2 -2
  104. package/dist/{provider-image-0ihmfbzB.js → provider-image--nNTW4Mb.js} +1 -1
  105. package/dist/{pw-ai-DDb7sinq.js → pw-ai-AfL5U7Fu.js} +1 -1
  106. package/dist/{runs-DSDu8Ggr.js → runs-wZgLMJEO.js} +3 -3
  107. package/dist/{send-CcpSDSVi.js → send-CgLwzLsU.js} +1 -1
  108. package/extensions/acpx/package.json +1 -1
  109. package/extensions/anthropic/package.json +1 -1
  110. package/extensions/bifrost/package.json +1 -1
  111. package/extensions/bluebubbles/package.json +1 -1
  112. package/extensions/copilot-proxy/package.json +1 -1
  113. package/extensions/deepgram/package.json +1 -1
  114. package/extensions/deepinfra/package.json +1 -1
  115. package/extensions/diagnostics-otel/package.json +1 -1
  116. package/extensions/diffs/package.json +1 -1
  117. package/extensions/discord/package.json +1 -1
  118. package/extensions/dream-cycle/package.json +1 -1
  119. package/extensions/elevenlabs/package.json +1 -1
  120. package/extensions/feishu/package.json +1 -1
  121. package/extensions/gemini-search/package.json +1 -1
  122. package/extensions/google/package.json +1 -1
  123. package/extensions/google-gemini-cli-auth/package.json +1 -1
  124. package/extensions/googlechat/package.json +1 -1
  125. package/extensions/grok-search/package.json +1 -1
  126. package/extensions/groq/package.json +1 -1
  127. package/extensions/imessage/package.json +1 -1
  128. package/extensions/irc/package.json +1 -1
  129. package/extensions/kimi-search/package.json +1 -1
  130. package/extensions/kokoro/package.json +1 -1
  131. package/extensions/learning-core/package.json +1 -1
  132. package/extensions/line/package.json +1 -1
  133. package/extensions/llm-task/package.json +1 -1
  134. package/extensions/lobster/package.json +1 -1
  135. package/extensions/matrix/CHANGELOG.md +1 -1
  136. package/extensions/matrix/package.json +1 -1
  137. package/extensions/mattermost/package.json +1 -1
  138. package/extensions/memory-core/package.json +1 -1
  139. package/extensions/memory-lancedb/package.json +1 -1
  140. package/extensions/minimax/package.json +1 -1
  141. package/extensions/minimax-portal-auth/package.json +1 -1
  142. package/extensions/mistral/package.json +1 -1
  143. package/extensions/moonshot/package.json +1 -1
  144. package/extensions/msteams/CHANGELOG.md +1 -1
  145. package/extensions/msteams/package.json +1 -1
  146. package/extensions/nextcloud-talk/package.json +1 -1
  147. package/extensions/nostr/CHANGELOG.md +1 -1
  148. package/extensions/nostr/package.json +1 -1
  149. package/extensions/open-prose/package.json +1 -1
  150. package/extensions/openai/package.json +1 -1
  151. package/extensions/openai-realtime/package.json +1 -1
  152. package/extensions/openrouter/package.json +1 -1
  153. package/extensions/perplexity-search/package.json +1 -1
  154. package/extensions/searxng-search/package.json +1 -1
  155. package/extensions/signal/package.json +1 -1
  156. package/extensions/slack/package.json +1 -1
  157. package/extensions/synology-chat/package.json +1 -1
  158. package/extensions/telegram/package.json +1 -1
  159. package/extensions/tlon/package.json +1 -1
  160. package/extensions/twitch/CHANGELOG.md +1 -1
  161. package/extensions/twitch/package.json +1 -1
  162. package/extensions/ui-surfaces/package.json +1 -1
  163. package/extensions/voice-call/CHANGELOG.md +1 -1
  164. package/extensions/voice-call/package.json +1 -1
  165. package/extensions/whatsapp/package.json +1 -1
  166. package/extensions/zai/package.json +1 -1
  167. package/extensions/zalo/CHANGELOG.md +1 -1
  168. package/extensions/zalo/package.json +1 -1
  169. package/extensions/zalouser/CHANGELOG.md +1 -1
  170. package/extensions/zalouser/package.json +1 -1
  171. package/package.json +1 -1
  172. package/dist/plugin-sdk/agent-turn-execute-CMKo76ES.js +0 -64
  173. package/dist/plugin-sdk/agent-turn-runner-BJ1AJcha.js +0 -11
  174. package/dist/plugin-sdk/audio-preflight-CFu8SIs1.js +0 -31
  175. package/dist/plugin-sdk/deliver-CEJKlOhp.js +0 -35
  176. package/dist/plugin-sdk/manager-CmZKP-p5.js +0 -16
  177. package/dist/plugin-sdk/markdown-tables-BkBrkIeP.js +0 -9
  178. package/dist/plugin-sdk/provider-dispatcher-BNkorblH.js +0 -64
  179. package/dist/plugin-sdk/provider-image-9q2PRfAE.js +0 -25
  180. package/dist/plugin-sdk/proxy-BFnRHQ1U.js +0 -7
  181. package/dist/plugin-sdk/replies-d8pN_YkG.js +0 -27
  182. package/dist/plugin-sdk/reply-prefix-B_Blqt3O.js +0 -7
  183. package/dist/plugin-sdk/runs-DUGX8nMl.js +0 -27
  184. package/dist/plugin-sdk/send-7UOu2b5k.js +0 -24
  185. package/dist/plugin-sdk/send-80qNXhcx.js +0 -23
  186. package/dist/plugin-sdk/send-B6axJC2U.js +0 -28
  187. package/dist/plugin-sdk/send-Ch18O9mH.js +0 -25
  188. package/dist/plugin-sdk/session-meta-B5EQwx2r.js +0 -13
  189. package/dist/plugin-sdk/skill-commands-BtfKphCQ.js +0 -13
  190. package/dist/plugin-sdk/subagent-registry-Te4gaZ-p.js +0 -64
  191. package/dist/plugin-sdk/user-run-recording-Ci6PpHUE.js +0 -11
@@ -1,80 +1,80 @@
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-C-lWCqvG.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";
3
3
  import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
4
- import { $ as sanitizeAgentId, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as resolveThreadSessionKeys, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveCanonicalIdentity, Y as resolveAgentIdFromSessionKey, Z as resolveConfiguredCanonicalIdentity, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as sessionKeyAgentMatches, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, ht as stripAgentSessionKeyPrefix, i as resolveAgentDir, it as normalizeOptionalAccountId, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as DEFAULT_ACCOUNT_ID, o as resolveAgentSkillsFilter, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeAccountId$3, s as resolveAgentWorkspaceDir, st as WAKE_GATE_SESSION_KEY_SEGMENT, t as hasConfiguredModelFallbacks, tt as toAgentStoreSessionKey, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-Bo_5VoUQ.js";
5
- import { $a as resolveAgentMaxConcurrent, $o as formatCliCommand, $r as listEnabledSignalAccounts, Aa as isWindowsPlatform, Ai as deliveryContextKey, An as mergeSessionEntry, Ao as resolveApiKeyForProvider, As as getShellPathFromLoginShell, B as ASSISTANT_IDENTITY_COLORS, Ba as unwrapKnownShellMultiplexerInvocation, Bi as normalizeMessageChannel, Bo as resolveProfilesUnavailableReason, Br as resolveTelegramToken, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as getTrustedSafeBinDirs, Ci as normalizeDiscordToken, Cn as recordSessionMetaFromInbound, Co as buildAssistantMessage, Ct as normalizeAnyChannelId, Da as validateSafeBinArgv, Dn as updateSessionStoreEntry, Do as getApiKeyForModel, Ds as DEFAULT_MODEL, Dt as getActiveGatewayPluginRegistry, Ea as normalizeTrustedSafeBinDirs, Ei as resolveChannelGroupToolsPolicy, En as updateSessionStore, Eo as buildUsageWithNoCost, Es as DEFAULT_CONTEXT_TOKENS, Et as resolveChannelConfigId, Fa as resolveCommandResolutionFromArgv, Fi as isDeliverableMessageChannel, Fr as createTelegramActionGate, Ft as createPluginRegistry, Ga as applyMergePatch, Gi as GATEWAY_CLIENT_NAMES, Gn as resolveStorePath, Go as isNonEmptyString, Ha as SAFE_BIN_PROFILES, Hi as resolveMessageChannel, Hn as resolveSessionFilePathOptions, Ht as matchPluginCommand, Ia as extractShellWrapperInlineCommand, Ii as isGatewayMessageChannel, Io as getSoonestCooldownExpiry, Ir as listEnabledTelegramAccounts, It as normalizePluginHttpPath, Ja as resolveDiscordPreviewStreamMode, Ji as resolveSessionLockMaxHoldFromTimeout, Jn as resolveParentSessionGroupId, Jt as isBuiltinTtsProvider, Ka as isSafeExecutableValue, Ki as normalizeAccountId$4, Kn as deriveSessionMetaPatch, Ko as isRecord$2, Kt as getRegisteredSpeechProviders, La as isDispatchWrapperExecutable, Li as isInternalMessageChannel, Lo as isProfileInCooldown, Lr as listTelegramAccountIds, Lt as buildPluginHealthReport, Ma as DEFAULT_SAFE_BINS, Mi as normalizeDeliveryContext, Mn as setSessionRuntimeModel, Mo as resolveModelAuthMode, Mr as normalizeHyphenSlug, Ms as isTruthyEnvValue, Mt as setActivePluginRegistry, Na as matchAllowlist, Ni as normalizeSessionDeliveryFields, Nn as parseDurationMs, No as resolveAuthProfileOrder, Nr as normalizeStringEntries, Ns as parseBooleanValue$1, Nt as addRegisteredPluginApi, Oa as analyzeShellCommand, Oi as resolveAccountEntry, Oo as getCustomProviderApiKey, Os as DEFAULT_PROVIDER, Ot as getActivePluginRegistry, Pa as resolveAllowlistCandidatePath, Pi as INTERNAL_MESSAGE_CHANNEL, Pn as parseSessionIndexRecordKey, Pr as normalizeStringEntriesLower, Ps as resolveOwnerDisplaySetting, Pt as clearRegisteredPluginApis, Qa as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Qo as runTasksWithConcurrency, Qr as resolveSlackBotToken, Ra as isShellWrapperExecutable, Ri as isMarkdownCapableMessageChannel, Rn as SAFE_SESSION_ID_RE, Ro as markAuthProfileFailure, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as unsetConfigValueAtPath, Si as resolveDiscordAccount, Sn as readSessionUpdatedAt, So as createOllamaStreamFn, Ss as normalizeResolvedSecretInputString, St as listChatChannels, Ta as listWritableExplicitTrustedSafeBinDirs, Ti as resolveChannelGroupRequireMention, Tn as updateLastRoute, To as buildStreamErrorAssistantMessage, Ts as splitTrailingAuthProfile, Tt as normalizeChatChannelId, Ua as normalizeSafeBinProfileFixtures, Ui as GATEWAY_CLIENT_IDS, Un as resolveSessionTranscriptPath, Uo as resolveSecretRefValues, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as splitShellArgs, Vi as resolveGatewayMessageChannel, Vn as resolveSessionFilePath, Vo as resolveApiKeyForProfile, Vr as buildChannelAccountBindings, Vt as listPluginCommands, Wa as resolveSafeBinProfiles, Wi as GATEWAY_CLIENT_MODES, Wo as describeUnknownError$1, Wt as BUILTIN_TTS_PROVIDER_IDS, Xa as resolveSlackStreamingMode, Xi as readTaskWorkStates, Xn as listChannelPlugins, Xo as secretRefKey, Xr as resolveSlackReplyToMode, Ya as resolveSlackNativeStreaming, Yi as CtxProjectionCorruptionError, Yn as getChannelPlugin, Yr as resolveSlackAccount, Yt as replaceSpeechProviders, Zn as normalizeChannelId$1, Zr as resolveSlackAppToken, _ as resolveTelegramCustomCommands, _a as setConfigOverride, _i as resolveIMessageAccount, _n as getConfiguredSessionStorageRuntime, _s as normalizeSecretInput, _t as safeStatSync, a as writeConfigFile, aa as applyTargetToParams, an as normalizeProviderId$1, ao as modelKey, as as markAuthProfileGood, at as isPathWithinRoot, ba as parseConfigPath, bi as listEnabledDiscordAccounts, bn as loadSessionStoreFromDisk, bo as retryAsync, bs as hasConfiguredSecretInput, bt as CHAT_CHANNEL_ORDER, cn as triggerInternalHook, co as parseModelRef, cr as parseSlackTarget, cs as resolveAuthStorePathForDisplay, ct as loadPluginManifestRegistry, da as discardBufferedPluginTaskPasses, di as hasAnyWhatsAppAuth, dn as getConversationReadQuery, do as resolveModelRefFromString, ds as withFileLock, dt as isBundledChannelEnabledByChannelConfig, eo as buildAllowedModelSet, es as resolveCliName, fa as listBufferedPluginTaskPasses, fo as resolveReasoningDefault, fs as resolveProcessScopedMap, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as resetConfigOverrides, gn as commitPreparedConfiguredSessionStorageRuntimeActivation, gr as normalizeSignalMessagingTarget, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as getConfigOverrides, hn as closeReplacedConfiguredSessionStorageRuntime, hs as resolveAuthProfileDisplayLabel, ht as discoverOpenClawPlugins, ia as stringEnum, io as isCliProvider, is as listProfilesForProvider, it as isAvatarHttpUrl, ja as splitCommandChain, ji as mergeDeliveryContext, jn as resolveFreshSessionTotalTokens, jo as resolveEnvApiKey, jr as normalizeAtHashSlug, js as resolveShellEnvFallbackTimeoutMs, jt as requireActivePluginRegistry, ka as buildEnforcedShellCommand, ki as deliveryContextFromSession, kn as DEFAULT_RESET_TRIGGERS, ko as requireApiKey, ks as VERSION, kt as getActivePluginRegistryKey, li as isWhatsAppGroupJid, ln as StorageReadAccessError, lo as resolveConfiguredModelRef, lr as resolveSlackChannelId, ls as resolveOpenClawAgentDir, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as RecoveryAdmissionError, mi as resolveWhatsAppAccount, mn as closeConfiguredSessionStorageRuntime, mo as resolveThinkingDefault, mr as listChannelDocks, ms as readProcessElapsedSeconds, mt as resolveMemorySlotDecision, n as loadConfig, na as channelTargetsSchema, ni as resolveSignalAccount, no as buildModelAliasIndex, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as actionHasTarget, oo as normalizeModelRef$2, os as ensureAuthProfileStore, ot as isSupportedLocalAvatarExtension, pa as replaceBufferedPluginTaskPasses, pn as requireSessionStorageRuntime, po as resolveSubagentSpawnModelSelection, pr as getChannelDock, ps as isPidAlive, pt as resolveEffectiveEnableState, qa as mapStreamingModeToSlackLegacyDraftStreamMode, qi as acquireSessionWriteLock, qn as resolveGroupSessionKey, qo as parseDotPath, qt as getSpeechProvider, r as readConfigFileSnapshot, ra as optionalStringEnum, ro as findNormalizedProviderValue, rs as dedupeProfileIds, rt as isAvatarDataUrl, sa as actionRequiresTarget, sn as createInternalHookEvent, so as normalizeProviderId, st as validateJsonSchemaValue, ta as channelTargetSchema, to as buildConfiguredAllowlistKeys, ui as normalizeWhatsAppTarget, un as createConversationReadQuery, uo as resolveDefaultModelForAgent, ut as applyTestPluginDefaults, va as unsetConfigOverride, vi as createDiscordActionGate, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as isTrustedSafeBinPath, wi as resolveChannelGroupPolicy, wn as refreshConfiguredSessionBindingEntry, wo as buildAssistantMessageWithZeroUsage, ws as resolveSecretInputRef, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as setConfigValueAtPath, xn as prepareConfiguredSessionStorageRuntimeActivation, xo as OLLAMA_NATIVE_BASE_URL, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as getConfigValueAtPath, yn as loadSessionStore, ys as coerceSecretRef, za as unwrapKnownDispatchWrapperInvocation, zi as listDeliverableMessageChannels, zn as SESSION_RUN_STORE_FILE_NAME, zo as markAuthProfileUsed, zr as resolveTelegramAccount, zt as executePluginCommand } from "./config-BCCgl0hn.js";
4
+ import { $ as sanitizeAgentId, A as resolveAgentModelFallbackValues, B as classifySessionKeyShape, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as DEVICE_SENDER_PREFIX, G as isValidAgentId, K as normalizeAgentId, L as buildAgentMainSessionKey, M as toAgentModelListLike, N as DEFAULT_AGENT_ID, O as spawnWithFallback, Q as resolveThreadSessionKeys, S as filterBootstrapFilesForSession, W as isKnownAgentMainSessionKey, X as resolveCanonicalIdentity, Y as resolveAgentIdFromSessionKey, Z as resolveConfiguredCanonicalIdentity, _ as DEFAULT_IDENTITY_FILENAME, c as resolveDefaultAgentId, ct as getSubagentDepth, d as resolveSessionAgentId, et as sessionKeyAgentMatches, f as resolveSessionAgentIds, ft as isSubagentSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, h as DEFAULT_BOOTSTRAP_FILENAME, ht as stripAgentSessionKeyPrefix, i as resolveAgentDir, it as normalizeOptionalAccountId, j as resolveAgentModelPrimaryValue, l as resolveEffectiveModelFallbacks, lt as isAcpSessionKey, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as resolveThreadParentSessionKey, n as listAgentIds, nt as DEFAULT_ACCOUNT_ID, o as resolveAgentSkillsFilter, pt as parseAgentSessionKey, q as normalizeMainKey, r as resolveAgentConfig, rt as normalizeAccountId$3, s as resolveAgentWorkspaceDir, st as WAKE_GATE_SESSION_KEY_SEGMENT, t as hasConfiguredModelFallbacks, tt as toAgentStoreSessionKey, u as resolveRunModelFallbacksOverride, ut as isCronSessionKey, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace } from "./agent-scope-z4RGwm8d.js";
5
+ import { $a as resolveAgentMaxConcurrent, $o as formatCliCommand, $r as listEnabledSignalAccounts, Aa as isWindowsPlatform, Ai as deliveryContextKey, An as mergeSessionEntry, Ao as resolveApiKeyForProvider, As as getShellPathFromLoginShell, B as ASSISTANT_IDENTITY_COLORS, Ba as unwrapKnownShellMultiplexerInvocation, Bi as normalizeMessageChannel, Bo as resolveProfilesUnavailableReason, Br as resolveTelegramToken, Bt as getPluginCommandSpecs, C as normalizeScpRemoteHost, Ca as getTrustedSafeBinDirs, Ci as normalizeDiscordToken, Cn as recordSessionMetaFromInbound, Co as buildAssistantMessage, Ct as normalizeAnyChannelId, Da as validateSafeBinArgv, Dn as updateSessionStoreEntry, Do as getApiKeyForModel, Ds as DEFAULT_MODEL, Dt as getActiveGatewayPluginRegistry, Ea as normalizeTrustedSafeBinDirs, Ei as resolveChannelGroupToolsPolicy, En as updateSessionStore, Eo as buildUsageWithNoCost, Es as DEFAULT_CONTEXT_TOKENS, Et as resolveChannelConfigId, Fa as resolveCommandResolutionFromArgv, Fi as isDeliverableMessageChannel, Fr as createTelegramActionGate, Ft as createPluginRegistry, Ga as applyMergePatch, Gi as GATEWAY_CLIENT_NAMES, Gn as resolveStorePath, Go as isNonEmptyString, Ha as SAFE_BIN_PROFILES, Hi as resolveMessageChannel, Hn as resolveSessionFilePathOptions, Ht as matchPluginCommand, Ia as extractShellWrapperInlineCommand, Ii as isGatewayMessageChannel, Io as getSoonestCooldownExpiry, Ir as listEnabledTelegramAccounts, It as normalizePluginHttpPath, Ja as resolveDiscordPreviewStreamMode, Ji as resolveSessionLockMaxHoldFromTimeout, Jn as resolveParentSessionGroupId, Jt as isBuiltinTtsProvider, Ka as isSafeExecutableValue, Ki as normalizeAccountId$4, Kn as deriveSessionMetaPatch, Ko as isRecord$2, Kt as getRegisteredSpeechProviders, La as isDispatchWrapperExecutable, Li as isInternalMessageChannel, Lo as isProfileInCooldown, Lr as listTelegramAccountIds, Lt as buildPluginHealthReport, Ma as DEFAULT_SAFE_BINS, Mi as normalizeDeliveryContext, Mn as setSessionRuntimeModel, Mo as resolveModelAuthMode, Mr as normalizeHyphenSlug, Ms as isTruthyEnvValue, Mt as setActivePluginRegistry, Na as matchAllowlist, Ni as normalizeSessionDeliveryFields, Nn as parseDurationMs, No as resolveAuthProfileOrder, Nr as normalizeStringEntries, Ns as parseBooleanValue$1, Nt as addRegisteredPluginApi, Oa as analyzeShellCommand, Oi as resolveAccountEntry, Oo as getCustomProviderApiKey, Os as DEFAULT_PROVIDER, Ot as getActivePluginRegistry, Pa as resolveAllowlistCandidatePath, Pi as INTERNAL_MESSAGE_CHANNEL, Pn as parseSessionIndexRecordKey, Pr as normalizeStringEntriesLower, Ps as resolveOwnerDisplaySetting, Pt as clearRegisteredPluginApis, Qa as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Qo as runTasksWithConcurrency, Qr as resolveSlackBotToken, Ra as isShellWrapperExecutable, Ri as isMarkdownCapableMessageChannel, Rn as SAFE_SESSION_ID_RE, Ro as markAuthProfileFailure, Rt as clearPluginCommands, S as resolveIMessageRemoteAttachmentRoots, Sa as unsetConfigValueAtPath, Si as resolveDiscordAccount, Sn as readSessionUpdatedAt, So as createOllamaStreamFn, Ss as normalizeResolvedSecretInputString, St as listChatChannels, Ta as listWritableExplicitTrustedSafeBinDirs, Ti as resolveChannelGroupRequireMention, Tn as updateLastRoute, To as buildStreamErrorAssistantMessage, Ts as splitTrailingAuthProfile, Tt as normalizeChatChannelId, Ua as normalizeSafeBinProfileFixtures, Ui as GATEWAY_CLIENT_IDS, Un as resolveSessionTranscriptPath, Uo as resolveSecretRefValues, Ut as registerPluginCommand, V as resolveExecPolicyPreset, Va as splitShellArgs, Vi as resolveGatewayMessageChannel, Vn as resolveSessionFilePath, Vo as resolveApiKeyForProfile, Vr as buildChannelAccountBindings, Vt as listPluginCommands, Wa as resolveSafeBinProfiles, Wi as GATEWAY_CLIENT_MODES, Wo as describeUnknownError$1, Wt as BUILTIN_TTS_PROVIDER_IDS, Xa as resolveSlackStreamingMode, Xi as readTaskWorkStates, Xn as listChannelPlugins, Xo as secretRefKey, Xr as resolveSlackReplyToMode, Ya as resolveSlackNativeStreaming, Yi as CtxProjectionCorruptionError, Yn as getChannelPlugin, Yr as resolveSlackAccount, Yt as replaceSpeechProviders, Zn as normalizeChannelId$1, Zr as resolveSlackAppToken, _ as resolveTelegramCustomCommands, _a as setConfigOverride, _i as resolveIMessageAccount, _n as getConfiguredSessionStorageRuntime, _s as normalizeSecretInput, _t as safeStatSync, a as writeConfigFile, aa as applyTargetToParams, an as normalizeProviderId$1, ao as modelKey, as as markAuthProfileGood, at as isPathWithinRoot, ba as parseConfigPath, bi as listEnabledDiscordAccounts, bn as loadSessionStoreFromDisk, bo as retryAsync, bs as hasConfiguredSecretInput, bt as CHAT_CHANNEL_ORDER, cn as triggerInternalHook, co as parseModelRef, cr as parseSlackTarget, cs as resolveAuthStorePathForDisplay, ct as loadPluginManifestRegistry, da as discardBufferedPluginTaskPasses, di as hasAnyWhatsAppAuth, dn as getConversationReadQuery, do as resolveModelRefFromString, ds as withFileLock, dt as isBundledChannelEnabledByChannelConfig, eo as buildAllowedModelSet, es as resolveCliName, fa as listBufferedPluginTaskPasses, fo as resolveReasoningDefault, fs as resolveProcessScopedMap, ft as normalizePluginsConfig, g as normalizeTelegramCommandName, ga as resetConfigOverrides, gn as commitPreparedConfiguredSessionStorageRuntimeActivation, gr as normalizeSignalMessagingTarget, gt as isPathInside, h as TELEGRAM_COMMAND_NAME_PATTERN, ha as getConfigOverrides, hn as closeReplacedConfiguredSessionStorageRuntime, hs as resolveAuthProfileDisplayLabel, ht as discoverOpenClawPlugins, ia as stringEnum, io as isCliProvider, is as listProfilesForProvider, it as isAvatarHttpUrl, ja as splitCommandChain, ji as mergeDeliveryContext, jn as resolveFreshSessionTotalTokens, jo as resolveEnvApiKey, jr as normalizeAtHashSlug, js as resolveShellEnvFallbackTimeoutMs, jt as requireActivePluginRegistry, ka as buildEnforcedShellCommand, ki as deliveryContextFromSession, kn as DEFAULT_RESET_TRIGGERS, ko as requireApiKey, ks as VERSION, kt as getActivePluginRegistryKey, li as isWhatsAppGroupJid, ln as StorageReadAccessError, lo as resolveConfiguredModelRef, lr as resolveSlackChannelId, ls as resolveOpenClawAgentDir, lt as BUNDLED_ENABLED_BY_DEFAULT, ma as RecoveryAdmissionError, mi as resolveWhatsAppAccount, mn as closeConfiguredSessionStorageRuntime, mo as resolveThinkingDefault, mr as listChannelDocks, ms as readProcessElapsedSeconds, mt as resolveMemorySlotDecision, n as loadConfig, na as channelTargetsSchema, ni as resolveSignalAccount, no as buildModelAliasIndex, nt as AVATAR_MAX_BYTES, o as validateConfigObjectWithPlugins, oa as actionHasTarget, oo as normalizeModelRef$2, os as ensureAuthProfileStore, ot as isSupportedLocalAvatarExtension, pa as replaceBufferedPluginTaskPasses, pn as requireSessionStorageRuntime, po as resolveSubagentSpawnModelSelection, pr as getChannelDock, ps as isPidAlive, pt as resolveEffectiveEnableState, qa as mapStreamingModeToSlackLegacyDraftStreamMode, qi as acquireSessionWriteLock, qn as resolveGroupSessionKey, qo as parseDotPath, qt as getSpeechProvider, r as readConfigFileSnapshot, ra as optionalStringEnum, ro as findNormalizedProviderValue, rs as dedupeProfileIds, rt as isAvatarDataUrl, sa as actionRequiresTarget, sn as createInternalHookEvent, so as normalizeProviderId, st as validateJsonSchemaValue, ta as channelTargetSchema, to as buildConfiguredAllowlistKeys, ui as normalizeWhatsAppTarget, un as createConversationReadQuery, uo as resolveDefaultModelForAgent, ut as applyTestPluginDefaults, va as unsetConfigOverride, vi as createDiscordActionGate, vt as readManifestNamespace, w as parseNonNegativeByteSize, wa as isTrustedSafeBinPath, wi as resolveChannelGroupPolicy, wn as refreshConfiguredSessionBindingEntry, wo as buildAssistantMessageWithZeroUsage, ws as resolveSecretInputRef, wt as normalizeChannelId$2, x as resolveIMessageAttachmentRoots, xa as setConfigValueAtPath, xn as prepareConfiguredSessionStorageRuntimeActivation, xo as OLLAMA_NATIVE_BASE_URL, xt as getChatChannelMeta, y as isInboundPathAllowed, ya as getConfigValueAtPath, yn as loadSessionStore, ys as coerceSecretRef, za as unwrapKnownDispatchWrapperInvocation, zi as listDeliverableMessageChannels, zn as SESSION_RUN_STORE_FILE_NAME, zo as markAuthProfileUsed, zr as resolveTelegramAccount, zt as executePluginCommand } from "./config-BZyYmcZu.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-F5PKgK4h.js";
7
+ import { i as logWarn, n as logError, r as logInfo, t as logDebug } from "./logger-DYxRK_FZ.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-DSlxN8Pu.js";
10
- import { $ as validateCtxStorage, $t as isPrimarySessionTranscriptFileName, At as CREATE_CTX_STORAGE_OWNER_SQL, B as truncateToolResultToChars, Bt as makeZeroUsageSnapshot, C as hasHookForPlugin, Ct as messageTime, D as resolveProviderPromptCacheKey, Dt as formatZonedTimestamp, E as buildPluginTurnIdentity, F as HARD_MAX_TOOL_RESULT_CHARS, Ft as resolveDefaultCronStaggerMs, G as estimateMessageCharsCached, Gt as resolveChannelResetConfig, H as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, Ht as SESSION_RUN_STATUSES, I as sessionLikelyHasOversizedToolResults, It as parseAbsoluteTimeMs, J as parseInlineDirectives$1, Jt as resolveThreadFlag, K as getToolResultText$1, Kt as resolveSessionResetPolicy, L as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, Lt as derivePromptTokens, M as eventOrder, Mt as inferLegacyName, N as pickLeaf, Nt as normalizeHttpWebhookUrl, O as resolveProviderRuntimeIdentity, Ot as resolveTimezone, P as capToolResultContent, Pt as normalizeCronStaggerMs, Qt as resolveMainSessionKey, R as TOOL_RESULT_TEXT_WEIGHT, Rt as deriveSessionTotalTokens, S as initializeGlobalHookRunner, St as isRepresentableEpochMs, T as buildPluginRuntimeIdentity, Tt as formatMessageStamp, U as createMessageCharEstimateCache, Ut as resolveSessionKey, V as CHARS_PER_TOKEN_ESTIMATE$2, Vt as normalizeUsage, W as estimateContextChars$1, Wt as evaluateSessionFreshness, X as createSessionStorageRuntimeFromConfig, Xt as resolveAgentMainSessionKey, Y as attachPgPoolErrorListeners, Yt as canonicalizeMainSessionAlias, Z as resolveSessionStorageConfig, Zt as resolveExplicitAgentSessionKey, _ as INPUT_PROVENANCE_KIND_VALUES, _t as buildInboundMetaSystemPrompt, a as resolveMirroredTranscriptText, at as buildEqualityProjection, b as getGlobalHookRunner, bt as attachMessageIngress, c as drainPendingPrimaryWrites, ct as extractLegacyTranscriptEntryFields, d as repairToolUseResultPairing, dt as createCurrentUserPromptEnvelope, en as isSessionArchiveArtifactName, et as TASK_RUN_MODES, f as sanitizeToolCallInputs, g as sanitizeToolCallIdsForCloudCodeAssist, h as canonicalToolCallIdBase, ht as toJsonValue$1, i as appendAssistantMessageToSessionTranscript, j as DB_SESSION_HYDRATION_LIMIT, jt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, kt as resolveSenderLabel, l as guardSessionManager, lt as sanitizeJsonb, m as stripToolResultDetails, mt as mergePromptContributions, n as parseSessionThreadInfo, o as openDbSessionManager, ot as deriveLegacyActorIdentity, p as sanitizeToolUseResultPairing, q as isToolResultMessage, qt as resolveSessionResetType, r as resolveAndPersistSessionFile, s as runSerializedBySession, st as sanitizeAppendEntry, t as extractDeliveryInfo, tt as TASK_RUN_STATUSES, u as openRawToolResultStash, ut as sha256, v as hasInterSessionUserProvenance, vt as collectInboundUserContext, w as promptBuildResultToContribution, wt as stripMessageCarriers, x as getGlobalPluginRegistry, xt as getMessageIngress, y as normalizeInputProvenance, yt as renderInboundUserContext, z as truncateTextHeadTail, zt as hasNonzeroUsage } from "./sessions-CsfH2Imf.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-CvmKKoxT.js";
10
+ import { $ as validateCtxStorage, $t as isPrimarySessionTranscriptFileName, At as CREATE_CTX_STORAGE_OWNER_SQL, B as truncateToolResultToChars, Bt as makeZeroUsageSnapshot, C as hasHookForPlugin, Ct as messageTime, D as resolveProviderPromptCacheKey, Dt as formatZonedTimestamp, E as buildPluginTurnIdentity, F as HARD_MAX_TOOL_RESULT_CHARS, Ft as resolveDefaultCronStaggerMs, G as estimateMessageCharsCached, Gt as resolveChannelResetConfig, H as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, Ht as SESSION_RUN_STATUSES, I as sessionLikelyHasOversizedToolResults, It as parseAbsoluteTimeMs, J as parseInlineDirectives$1, Jt as resolveThreadFlag, K as getToolResultText$1, Kt as resolveSessionResetPolicy, L as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, Lt as derivePromptTokens, M as eventOrder, Mt as inferLegacyName, N as pickLeaf, Nt as normalizeHttpWebhookUrl, O as resolveProviderRuntimeIdentity, Ot as resolveTimezone, P as capToolResultContent, Pt as normalizeCronStaggerMs, Qt as resolveMainSessionKey, R as TOOL_RESULT_TEXT_WEIGHT, Rt as deriveSessionTotalTokens, S as initializeGlobalHookRunner, St as isRepresentableEpochMs, T as buildPluginRuntimeIdentity, Tt as formatMessageStamp, U as createMessageCharEstimateCache, Ut as resolveSessionKey, V as CHARS_PER_TOKEN_ESTIMATE$2, Vt as normalizeUsage, W as estimateContextChars$1, Wt as evaluateSessionFreshness, X as createSessionStorageRuntimeFromConfig, Xt as resolveAgentMainSessionKey, Y as attachPgPoolErrorListeners, Yt as canonicalizeMainSessionAlias, Z as resolveSessionStorageConfig, Zt as resolveExplicitAgentSessionKey, _ as INPUT_PROVENANCE_KIND_VALUES, _t as buildInboundMetaSystemPrompt, a as resolveMirroredTranscriptText, at as buildEqualityProjection, b as getGlobalHookRunner, bt as attachMessageIngress, c as drainPendingPrimaryWrites, ct as extractLegacyTranscriptEntryFields, d as repairToolUseResultPairing, dt as createCurrentUserPromptEnvelope, en as isSessionArchiveArtifactName, et as TASK_RUN_MODES, f as sanitizeToolCallInputs, g as sanitizeToolCallIdsForCloudCodeAssist, h as canonicalToolCallIdBase, ht as toJsonValue$1, i as appendAssistantMessageToSessionTranscript, j as DB_SESSION_HYDRATION_LIMIT, jt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, kt as resolveSenderLabel, l as guardSessionManager, lt as sanitizeJsonb, m as stripToolResultDetails, mt as mergePromptContributions, n as parseSessionThreadInfo, o as openDbSessionManager, ot as deriveLegacyActorIdentity, p as sanitizeToolUseResultPairing, q as isToolResultMessage, qt as resolveSessionResetType, r as resolveAndPersistSessionFile, s as runSerializedBySession, st as sanitizeAppendEntry, t as extractDeliveryInfo, tt as TASK_RUN_STATUSES, u as openRawToolResultStash, ut as sha256, v as hasInterSessionUserProvenance, vt as collectInboundUserContext, w as promptBuildResultToContribution, wt as stripMessageCarriers, x as getGlobalPluginRegistry, xt as getMessageIngress, y as normalizeInputProvenance, yt as renderInboundUserContext, z as truncateTextHeadTail, zt as hasNonzeroUsage } from "./sessions-DjF1xlK7.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-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";
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";
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-BDv60wwb.js";
17
+ import { a as createDiscordRetryRunner, i as normalizePollInput, n as recordChannelActivity, t as getChannelActivity } from "./channel-activity-I-orS8xM.js";
18
18
  import { t as buildOutboundMediaLoadOptions } from "./load-options-DNSaiajj.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-CJ4R1_em.js";
22
- import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DQ8o5XyC.js";
23
- import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DypqgWGs.js";
24
- import { r as makeProxyFetch } from "./proxy-fetch-BSTGvynk.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-YY9i_qTZ.js";
22
+ import { n as withStrictGuardedFetchMode, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-Dz6nf8wN.js";
23
+ import { a as isBlockedHostnameOrIp, l as normalizeHostname, t as SsrFBlockedError } from "./ssrf-DCsLkTwC.js";
24
+ import { r as makeProxyFetch } from "./proxy-fetch-Dt3HV6r3.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-OTvG9Uet.js";
27
- import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-9C_t1wFy.js";
26
+ import { a as readResponseWithLimit, i as fetchRemoteMedia, n as getDefaultMediaLocalRoots, r as MediaFetchError, t as getAgentScopedMediaLocalRoots } from "./local-roots-DKN_BXBH.js";
27
+ import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-BEZ_dCEY.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-Dq7a6OIU.js";
30
- import { t as resolveMarkdownTableMode } from "./markdown-tables-xlx41zl9.js";
31
- import { t as convertMarkdownTables } from "./tables-DtTPpruH.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-C3JXbjqd.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-BOylli3b.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-Bp1cXLZh.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-CFEsZ1GH.js";
30
+ import { t as resolveMarkdownTableMode } from "./markdown-tables-DxHN1ers.js";
31
+ import { t as convertMarkdownTables } from "./tables-BlZ1n1jO.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-8kdhCR0d.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-BJF01MUC.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-D_WOTvDj.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 resolveBootstrapTotalMaxChars, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as trimToUndefined$1, d as isGoogleModelApi, dt as resolveImageSanitizationLimits, et as listCoreToolIds, f as BILLING_ERROR_USER_MESSAGE, ft as canonicalizeBase64, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeImageBlocks, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as matchesAnyGlobPattern, o as isMessagingToolDuplicateNormalized, ot as sanitizeGoogleTurnOrdering, p as classifyFailoverReason, pt as estimateBase64DecodedBytes, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as buildBootstrapContextFiles, s as normalizeTextForComparison, st as resolveGatewayCredentialsFromConfig, t as extractTextFromChatContent, tt as compileGlobPatterns, u as downgradeOpenAIReasoningBlocks, ut as sanitizeToolResultImages, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-BO1G3l1D.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-0pJP23lo.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-7xu2PHpy.js";
39
- import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-DdYvvEko.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-D1_4ZKCy.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-Btyhug-W.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-BF-SD_TX.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 computeBackoff, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadChannelOutboundAdapter, d as stripLeadingInboundMetadata, f as countToolResults, g as resolveContextTokensForModel, h as lookupContextTokens, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as loadCombinedSessionStoreForGateway, m as jsonUtf8Bytes, n as formatOutboundPayloadLog, o as throwIfAborted, p as extractToolCallNames, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as capArrayByJsonBytes, v as sleepWithAbort, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-Bg7vSSSz.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-BtisnBHv.js";
46
- import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-MtdrAUmh.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-DfxbVPdI.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 resolveBootstrapTotalMaxChars, b as isCloudCodeAssistFormatError, c as sanitizeSessionMessagesImages, ct as trimToUndefined$1, d as isGoogleModelApi, dt as resolveImageSanitizationLimits, et as listCoreToolIds, f as BILLING_ERROR_USER_MESSAGE, ft as canonicalizeBase64, g as formatRawAssistantErrorForUi, h as formatBillingErrorMessage, i as pickFallbackThinkingLevel, it as resolveBootstrapMaxChars, j as sanitizeUserFacingText, k as parseImageDimensionError, l as downgradeOpenAIFunctionCallReasoningPairs, lt as sanitizeImageBlocks, m as formatAssistantErrorText, n as validateAnthropicTurns, nt as matchesAnyGlobPattern, o as isMessagingToolDuplicateNormalized, ot as sanitizeGoogleTurnOrdering, p as classifyFailoverReason, pt as estimateBase64DecodedBytes, q as collectExplicitAllowlist, r as validateGeminiTurns, rt as buildBootstrapContextFiles, s as normalizeTextForComparison, st as resolveGatewayCredentialsFromConfig, t as extractTextFromChatContent, tt as compileGlobPatterns, u as downgradeOpenAIReasoningBlocks, ut as sanitizeToolResultImages, v as isAuthAssistantError, w as isFailoverErrorMessage, x as isCompactionFailureError, y as isBillingAssistantError, z as resolveBrowserConfig } from "./chat-content-ufcNYnUG.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-BSDWny4T.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-Bv5OKlh3.js";
39
+ import { a as resolveAgentIdentity, i as resolveAckReaction, n as createReplyPrefixOptions, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig } from "./reply-prefix-DuJ6Ceoh.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-BUI0JAT4.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-hYZyUG78.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-DyZgIs-_.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 computeBackoff, a as normalizeReplyPayloadsForDelivery, b as applyReplyThreading, c as loadChannelOutboundAdapter, d as stripLeadingInboundMetadata, f as countToolResults, g as resolveContextTokensForModel, h as lookupContextTokens, i as normalizeOutboundPayloadsForJson, j as readFullTranscriptEntriesFromBackend, k as normalizeChannelTargetInput, l as loadCombinedSessionStoreForGateway, m as jsonUtf8Bytes, n as formatOutboundPayloadLog, o as throwIfAborted, p as extractToolCallNames, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as capArrayByJsonBytes, v as sleepWithAbort, w as shouldSuppressMessagingToolReplies, x as filterMessagingToolDuplicates, y as applyReplyTagsToPayload } from "./deliver-BVlOHiTJ.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-BPDLUTI-.js";
46
+ import { a as saveMediaBuffer, i as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-Dq16uaw2.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-CQZLa_SB.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-CKEahGHO.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-DyXVhcmx.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-B5RNFnTv.js";
54
- import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-MA0pqjXW.js";
55
- import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-CQMvTjV8.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-KcIqWrP5.js";
54
+ import { n as AGENT_LANE_NESTED, r as AGENT_LANE_SUBAGENT, t as startUserSessionRun } from "./user-run-recording-DBwhNB8S.js";
55
+ import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-B-yV8XCt.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-BDE0zgie.js";
58
- import { t as ensureOpenClawModelsJson } from "./models-config-Cu2KlfWJ.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-DDSsb5qa.js";
60
- import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-B7uo4IM9.js";
57
+ import { i as discoverModels, r as discoverAuthStorage } from "./pi-model-discovery-BXvfEsj4.js";
58
+ import { t as ensureOpenClawModelsJson } from "./models-config-kotnKGvn.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-DWpHMRE7.js";
60
+ import { a as decodeDataUrl, i as coerceImageModelConfig, n as minimaxUnderstandImage, o as resolveProviderVisionModelFromConfig, r as coerceImageAssistantText } from "./provider-image-C2pG2NT6.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-CcTSQsmU.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-EYY94HYr.js";
64
- import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-S8gK7am2.js";
65
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-Cxq62oS-.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-C6lNv9uX.js";
68
- import { t as recordInboundSessionMetaSafe } from "./session-meta-BXadaJdY.js";
69
- import { n as resolveMemorySearchConfig } from "./manager-MIrX2iPe.js";
70
- import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-B9Vg4ySI.js";
71
- import { t as isQmdScopeAllowed } from "./qmd-scope-C0GklfJd.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-D57TPnQe.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-Cvrj-ZGU.js";
64
+ import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-D9Lcc6Ee.js";
65
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-BrMXKQWq.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-Ct6DIg_T.js";
68
+ import { t as recordInboundSessionMetaSafe } from "./session-meta-CLpadnWo.js";
69
+ import { n as resolveMemorySearchConfig } from "./manager-CocOQ6fW.js";
70
+ import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-BAI-_ZoZ.js";
71
+ import { t as isQmdScopeAllowed } from "./qmd-scope-GwEh7nOe.js";
72
72
  import { createRequire } from "node:module";
73
73
  import fs, { existsSync, mkdirSync, mkdtempSync, promises, readFileSync, realpathSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
74
74
  import * as path$1 from "node:path";
75
75
  import path, { basename, isAbsolute, join } from "node:path";
76
76
  import { inspect, isDeepStrictEqual, promisify } from "node:util";
77
- import JSON5 from "json5";
77
+ import json5 from "json5";
78
78
  import os, { homedir } from "node:os";
79
79
  import * as fs$2 from "node:fs/promises";
80
80
  import fs$1, { open } from "node:fs/promises";
@@ -18119,7 +18119,7 @@ async function sendTranscriptEcho(params) {
18119
18119
  }
18120
18120
  const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
18121
18121
  try {
18122
- const { deliverOutboundPayloads } = await import("./deliver-CEJKlOhp.js");
18122
+ const { deliverOutboundPayloads } = await import("./deliver-PynE7WAX.js");
18123
18123
  await deliverOutboundPayloads({
18124
18124
  cfg,
18125
18125
  channel: normalizedChannel,
@@ -25916,7 +25916,7 @@ async function routeReply(params) {
25916
25916
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
25917
25917
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
25918
25918
  try {
25919
- const { deliverOutboundPayloads } = await import("./deliver-CEJKlOhp.js");
25919
+ const { deliverOutboundPayloads } = await import("./deliver-PynE7WAX.js");
25920
25920
  const outboundSession = buildOutboundSessionContext({
25921
25921
  cfg,
25922
25922
  agentId: resolvedAgentId,
@@ -28323,7 +28323,7 @@ function requestNudge(input, cfg = loadConfig(), deps) {
28323
28323
  const { backbone, runner } = getAgentTurnRuntime();
28324
28324
  const id = await enqueueAgentTurn(backbone, payload);
28325
28325
  if (!isClaimableAgentTurnWorkId(id)) return;
28326
- const { runMainAgentTurn } = await import("./agent-turn-execute-CMKo76ES.js");
28326
+ const { runMainAgentTurn } = await import("./agent-turn-execute-DvIzD6nF.js");
28327
28327
  await runner.claimAndExecute({
28328
28328
  workId: id,
28329
28329
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -29498,7 +29498,7 @@ async function handleHeartbeatError(params) {
29498
29498
  const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
29499
29499
  async function ackAnnounceExecuted(payload) {
29500
29500
  if (payload.kind !== "announce") return;
29501
- const { markSubagentAnnounceExecuted } = await import("./subagent-registry-Te4gaZ-p.js");
29501
+ const { markSubagentAnnounceExecuted } = await import("./subagent-registry-D0_E_IUh.js");
29502
29502
  for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
29503
29503
  await markSubagentAnnounceExecuted(runId);
29504
29504
  } catch {}
@@ -29766,7 +29766,7 @@ function normalizeSessionKey(value) {
29766
29766
  function readSessionStore(storePath) {
29767
29767
  try {
29768
29768
  const raw = fs.readFileSync(storePath, "utf-8");
29769
- const parsed = JSON5.parse(raw);
29769
+ const parsed = json5.parse(raw);
29770
29770
  if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) return parsed;
29771
29771
  } catch {}
29772
29772
  return {};
@@ -29967,7 +29967,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
29967
29967
  let subagentRegistryAccessPromise;
29968
29968
  const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
29969
29969
  function loadSubagentRegistryAccess() {
29970
- if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-Te4gaZ-p.js").catch((err) => {
29970
+ if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-D0_E_IUh.js").catch((err) => {
29971
29971
  const message = err instanceof Error && err.message ? err.message : String(err);
29972
29972
  defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
29973
29973
  subagentRegistryAccessPromise = void 0;
@@ -43345,7 +43345,7 @@ async function createModelSelectionState(params) {
43345
43345
  }
43346
43346
  }
43347
43347
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
43348
- const { ensureAuthProfileStore } = await import("./auth-profiles-DOGPhxiO.js");
43348
+ const { ensureAuthProfileStore } = await import("./auth-profiles-CvaAM1bO.js");
43349
43349
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
43350
43350
  const providerKey = normalizeProviderId(provider);
43351
43351
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -61336,7 +61336,7 @@ async function deliverSessionMaintenanceWarning(params) {
61336
61336
  return;
61337
61337
  }
61338
61338
  try {
61339
- const { deliverOutboundPayloads } = await import("./deliver-CEJKlOhp.js");
61339
+ const { deliverOutboundPayloads } = await import("./deliver-PynE7WAX.js");
61340
61340
  const outboundSession = buildOutboundSessionContext({
61341
61341
  cfg: params.cfg,
61342
61342
  sessionKey: params.sessionKey
@@ -66731,7 +66731,7 @@ async function describeStickerImage(params) {
66731
66731
  logVerbose(`telegram: describing sticker with ${provider}/${model}`);
66732
66732
  try {
66733
66733
  const buffer = await fs$1.readFile(imagePath);
66734
- const { describeImageWithModel } = await import("./provider-image-9q2PRfAE.js");
66734
+ const { describeImageWithModel } = await import("./provider-image-CSas_smQ.js");
66735
66735
  return (await describeImageWithModel({
66736
66736
  buffer,
66737
66737
  fileName: "sticker.webp",
@@ -67999,7 +67999,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
67999
67999
  let transcript;
68000
68000
  let carry;
68001
68001
  if (needsPreflightTranscription) try {
68002
- const { transcribeFirstAudio } = await import("./audio-preflight-CFu8SIs1.js");
68002
+ const { transcribeFirstAudio } = await import("./audio-preflight-DjN5jAH-.js");
68003
68003
  const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
68004
68004
  if (uploadable.length > 0) {
68005
68005
  const preflight = await transcribeFirstAudio({
@@ -75177,23 +75177,23 @@ function createDefaultDeps() {
75177
75177
  };
75178
75178
  },
75179
75179
  sendMessageTelegram: async (...args) => {
75180
- const { sendMessageTelegram } = await import("./send-B6axJC2U.js");
75180
+ const { sendMessageTelegram } = await import("./send-IBoEtx0n.js");
75181
75181
  return await sendMessageTelegram(...args);
75182
75182
  },
75183
75183
  sendMessageDiscord: async (...args) => {
75184
- const { sendMessageDiscord } = await import("./send-CGkIpzem.js");
75184
+ const { sendMessageDiscord } = await import("./send-Dw-aJMoX.js");
75185
75185
  return await sendMessageDiscord(...args);
75186
75186
  },
75187
75187
  sendMessageSlack: async (...args) => {
75188
- const { sendMessageSlack } = await import("./send-80qNXhcx.js");
75188
+ const { sendMessageSlack } = await import("./send-Dy8O2zuT.js");
75189
75189
  return await sendMessageSlack(...args);
75190
75190
  },
75191
75191
  sendMessageSignal: async (...args) => {
75192
- const { sendMessageSignal } = await import("./send-7UOu2b5k.js");
75192
+ const { sendMessageSignal } = await import("./send-UFkGtDAI.js");
75193
75193
  return await sendMessageSignal(...args);
75194
75194
  },
75195
75195
  sendMessageIMessage: async (...args) => {
75196
- const { sendMessageIMessage } = await import("./send-Ch18O9mH.js");
75196
+ const { sendMessageIMessage } = await import("./send-cy5_Wkcf.js");
75197
75197
  return await sendMessageIMessage(...args);
75198
75198
  }
75199
75199
  };
@@ -86819,7 +86819,7 @@ function readSlackExternalArgMenuToken(raw) {
86819
86819
  }
86820
86820
  let commandsRegistry;
86821
86821
  async function getCommandsRegistry() {
86822
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-CaDDouTD.js");
86822
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-BCIM9pNg.js");
86823
86823
  return commandsRegistry;
86824
86824
  }
86825
86825
  function encodeSlackCommandArgValue(parts) {
@@ -87149,14 +87149,14 @@ async function registerSlackMonitorSlashCommands(params) {
87149
87149
  const channelName = channelInfo?.name;
87150
87150
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
87151
87151
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
87152
- import("./resolve-route-CCzmV6gY.js"),
87152
+ import("./resolve-route-C4PNm_z8.js"),
87153
87153
  import("./inbound-context-CCKCHVrn.js"),
87154
- import("./provider-dispatcher-BNkorblH.js")
87154
+ import("./provider-dispatcher-4NQHXxB2.js")
87155
87155
  ]);
87156
87156
  const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
87157
87157
  import("./conversation-label-D3nMf3rZ.js"),
87158
- import("./reply-prefix-B_Blqt3O.js"),
87159
- import("./session-meta-B5EQwx2r.js")
87158
+ import("./reply-prefix-BLvER8Cn.js"),
87159
+ import("./session-meta-CedMqUYk.js")
87160
87160
  ]);
87161
87161
  const route = resolveAgentRoute({
87162
87162
  cfg,
@@ -87221,9 +87221,9 @@ async function registerSlackMonitorSlashCommands(params) {
87221
87221
  });
87222
87222
  const deliverSlashPayloads = async (replies) => {
87223
87223
  const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
87224
- import("./replies-d8pN_YkG.js"),
87225
- import("./chunk-fz3rdwzH.js"),
87226
- import("./markdown-tables-BkBrkIeP.js")
87224
+ import("./replies-C6PNMaDL.js"),
87225
+ import("./chunk-9EGLoGbP.js"),
87226
+ import("./markdown-tables-DZMpNqrF.js")
87227
87227
  ]);
87228
87228
  await deliverSlackSlashReplies({
87229
87229
  replies,
@@ -87277,7 +87277,7 @@ async function registerSlackMonitorSlashCommands(params) {
87277
87277
  let nativeCommands = [];
87278
87278
  if (nativeEnabled) {
87279
87279
  reg = await getCommandsRegistry();
87280
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-BtfKphCQ.js")).listSkillCommandsForAgents({ cfg }) : [];
87280
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-ljWQco1T.js")).listSkillCommandsForAgents({ cfg }) : [];
87281
87281
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
87282
87282
  skillCommands,
87283
87283
  provider: "slack"
@@ -87796,7 +87796,7 @@ async function auditTelegramGroupMembership(params) {
87796
87796
  groups: [],
87797
87797
  elapsedMs: Date.now() - started
87798
87798
  };
87799
- const fetcher = params.proxyUrl ? (await import("./proxy-BFnRHQ1U.js")).makeProxyFetch(params.proxyUrl) : fetch;
87799
+ const fetcher = params.proxyUrl ? (await import("./proxy-LKdqVD6u.js")).makeProxyFetch(params.proxyUrl) : fetch;
87800
87800
  const { fetchWithTimeout } = await import("./fetch-timeout-C7tnRm-P.js");
87801
87801
  const base = `${TELEGRAM_API_BASE$1}/bot${token}`;
87802
87802
  const groups = [];
@@ -90355,7 +90355,7 @@ const buildTelegramMessageContext = async ({ primaryCtx, allMedia, replyMedia =
90355
90355
  let audioPreflightCarry;
90356
90356
  const audioConfigEnabled = cfg.tools?.media?.audio && cfg.tools.media.audio.enabled !== false;
90357
90357
  if (hasAudio && !hasUserText && !disableAudioPreflight && (isGroup && requireMention && mentionRegexes.length > 0 || audioConfigEnabled === true)) try {
90358
- const { transcribeFirstAudio } = await import("./audio-preflight-CFu8SIs1.js");
90358
+ const { transcribeFirstAudio } = await import("./audio-preflight-DjN5jAH-.js");
90359
90359
  const preflight = await transcribeFirstAudio({
90360
90360
  ctx: {
90361
90361
  MediaPaths: allMedia.length > 0 ? allMedia.map((m) => m.path) : void 0,
@@ -94816,7 +94816,7 @@ async function getMemorySearchManager(params) {
94816
94816
  if (cached) return { manager: cached };
94817
94817
  }
94818
94818
  try {
94819
- const { QmdMemoryManager } = await import("./qmd-manager-DingBlWU.js");
94819
+ const { QmdMemoryManager } = await import("./qmd-manager-BI2y_Xsk.js");
94820
94820
  const primary = await QmdMemoryManager.create({
94821
94821
  cfg: params.cfg,
94822
94822
  agentId: params.agentId,
@@ -94828,7 +94828,7 @@ async function getMemorySearchManager(params) {
94828
94828
  const wrapper = new FallbackMemoryManager({
94829
94829
  primary,
94830
94830
  fallbackFactory: async () => {
94831
- const { MemoryIndexManager } = await import("./manager-CmZKP-p5.js");
94831
+ const { MemoryIndexManager } = await import("./manager-kniOx-37.js");
94832
94832
  return await MemoryIndexManager.get(params);
94833
94833
  }
94834
94834
  }, () => {
@@ -94843,7 +94843,7 @@ async function getMemorySearchManager(params) {
94843
94843
  }
94844
94844
  }
94845
94845
  try {
94846
- const { MemoryIndexManager } = await import("./manager-CmZKP-p5.js");
94846
+ const { MemoryIndexManager } = await import("./manager-kniOx-37.js");
94847
94847
  return { manager: await MemoryIndexManager.get(params) };
94848
94848
  } catch (err) {
94849
94849
  return {
@@ -99997,7 +99997,7 @@ function createPluginRuntime(options = {}) {
99997
99997
  workStates: readTaskWorkStates
99998
99998
  },
99999
99999
  resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
100000
- sessions: { startUserRun: async (params) => (await import("./user-run-recording-Ci6PpHUE.js")).startUserSessionRun(params) }
100000
+ sessions: { startUserRun: async (params) => (await import("./user-run-recording-C-9BHIvT.js")).startUserSessionRun(params) }
100001
100001
  };
100002
100002
  Object.defineProperty(runtime, "analysis", {
100003
100003
  enumerable: true,
@@ -101541,7 +101541,7 @@ async function recordLoopOutcome(args) {
101541
101541
  if (!args.ctx?.sessionKey) return;
101542
101542
  try {
101543
101543
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
101544
- const { recordToolCallOutcome } = await import("./tool-loop-detection-AZitBuSm.js");
101544
+ const { recordToolCallOutcome } = await import("./tool-loop-detection-BMMKhiis.js");
101545
101545
  recordToolCallOutcome(getDiagnosticSessionState({
101546
101546
  sessionKey: args.ctx.sessionKey,
101547
101547
  sessionId: args.ctx?.agentId
@@ -101568,8 +101568,8 @@ async function runBeforeToolCallHook(args) {
101568
101568
  const params = args.params;
101569
101569
  if (args.ctx?.sessionKey) {
101570
101570
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-D69TmAGf.js");
101571
- const { logToolLoopAction } = await import("./diagnostic-BWjtyPCW.js");
101572
- const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-AZitBuSm.js");
101571
+ const { logToolLoopAction } = await import("./diagnostic-d_SjMG4F.js");
101572
+ const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-BMMKhiis.js");
101573
101573
  const sessionState = getDiagnosticSessionState({
101574
101574
  sessionKey: args.ctx.sessionKey,
101575
101575
  sessionId: args.ctx?.agentId
@@ -1,13 +1,13 @@
1
1
  import "./paths-oi7j9L8A.js";
2
- import "./subsystem-C-lWCqvG.js";
3
- import "./agent-scope-Bo_5VoUQ.js";
4
- import "./config-BCCgl0hn.js";
2
+ import "./subsystem-CPqF9wja.js";
3
+ import "./agent-scope-z4RGwm8d.js";
4
+ import "./config-BZyYmcZu.js";
5
5
  import "./github-copilot-token-BnKQ-aRX.js";
6
- import "./logger-F5PKgK4h.js";
6
+ import "./logger-DYxRK_FZ.js";
7
7
  import "./diagnostic-events-Ba8-RH3Z.js";
8
- import "./redact-YbcPIGWf.js";
9
- import "./diagnostic-CKEahGHO.js";
8
+ import "./redact-C9Eu_AUI.js";
9
+ import "./diagnostic-DyXVhcmx.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-B5RNFnTv.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-KcIqWrP5.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-CKEahGHO.js";
1
+ import { i as logLaneTaskCompleted, n as logLaneDequeue, r as logLaneEnqueue, t as diag } from "./diagnostic-DyXVhcmx.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-C-lWCqvG.js";
3
- import "./agent-scope-Bo_5VoUQ.js";
4
- import "./config-BCCgl0hn.js";
2
+ import "./subsystem-CPqF9wja.js";
3
+ import "./agent-scope-z4RGwm8d.js";
4
+ import "./config-BZyYmcZu.js";
5
5
  import "./github-copilot-token-BnKQ-aRX.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-DfxbVPdI.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-CQZLa_SB.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-C-lWCqvG.js";
1
+ import { W as escapeRegExp } from "./subsystem-CPqF9wja.js";
2
2
  import { t as isPlainObject } from "./plain-object-BTbonVRI.js";
3
- import { Ds as DEFAULT_MODEL, Os as DEFAULT_PROVIDER, Ot as getActivePluginRegistry, Zn as normalizeChannelId, lo as resolveConfiguredModelRef, mr as listChannelDocks } from "./config-BCCgl0hn.js";
3
+ import { Ds as DEFAULT_MODEL, Os as DEFAULT_PROVIDER, Ot as getActivePluginRegistry, Zn as normalizeChannelId, lo as resolveConfiguredModelRef, mr as listChannelDocks } from "./config-BZyYmcZu.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-C-lWCqvG.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";
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, ht as stripAgentSessionKeyPrefix, it as normalizeOptionalAccountId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as DEFAULT_ACCOUNT_ID, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeAccountId$1, s as resolveAgentWorkspaceDir } from "./agent-scope-Bo_5VoUQ.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, ht as stripAgentSessionKeyPrefix, it as normalizeOptionalAccountId, j as resolveAgentModelPrimaryValue, n as listAgentIds, nt as DEFAULT_ACCOUNT_ID, pt as parseAgentSessionKey, r as resolveAgentConfig, rt as normalizeAccountId$1, s as resolveAgentWorkspaceDir } from "./agent-scope-z4RGwm8d.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";
@@ -24179,7 +24179,7 @@ function resolveConfigPathForDeps(deps) {
24179
24179
  function normalizeDeps(overrides = {}) {
24180
24180
  return {
24181
24181
  fs: overrides.fs ?? fs,
24182
- json5: overrides.json5 ?? JSON5,
24182
+ json5: overrides.json5 ?? json5,
24183
24183
  env: overrides.env ?? process.env,
24184
24184
  homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
24185
24185
  configPath: overrides.configPath ?? "",
@@ -24190,11 +24190,11 @@ function maybeLoadDotEnvForConfig(env) {
24190
24190
  if (env !== process.env) return;
24191
24191
  loadDotEnv({ quiet: true });
24192
24192
  }
24193
- function parseConfigJson5(raw, json5 = JSON5) {
24193
+ function parseConfigJson5(raw, json5$1 = json5) {
24194
24194
  try {
24195
24195
  return {
24196
24196
  ok: true,
24197
- parsed: json5.parse(raw)
24197
+ parsed: json5$1.parse(raw)
24198
24198
  };
24199
24199
  } catch (err) {
24200
24200
  return {