wednesdayai 0.6.1-dev.32 → 0.6.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 (262) hide show
  1. package/README.md +1 -1
  2. package/dist/{agent-3FzVgs63.js → agent-2N9tEN3b.js} +26 -26
  3. package/dist/{agent-BRCd10MY.js → agent-B9sehkTT.js} +33 -33
  4. package/dist/{agent-DWnmq11O.js → agent-C31FKy1u.js} +11 -11
  5. package/dist/{agent-turn-execute-BFxbgU1N.js → agent-turn-execute-VfgfznZ9.js} +46 -46
  6. package/dist/{agent-turn-runner-T5NCMyJ_.js → agent-turn-runner-BUl_5WBC.js} +5 -5
  7. package/dist/{agent-turn-runner-CSA2LtLh.js → agent-turn-runner-D6au_ann.js} +6 -6
  8. package/dist/{agent-turn-runner-B4cl3TsM.js → agent-turn-runner-Pc5bI_FG.js} +6 -6
  9. package/dist/{auth-5so61ncT.js → auth-kjIpJLfy.js} +1 -1
  10. package/dist/build-info.json +3 -3
  11. package/dist/bundled/boot-md/handler.js +32 -32
  12. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  13. package/dist/bundled/command-logger/handler.js +2 -2
  14. package/dist/bundled/session-journal/handler.js +31 -31
  15. package/dist/bundled/session-memory/handler.js +32 -32
  16. package/dist/{call-DVys4c4T.js → call-CrRxRh7U.js} +4 -4
  17. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  18. package/dist/{plugin-sdk/chrome-BqXrH3aN.js → chrome-B_WMQAhO.js} +32 -32
  19. package/dist/{chrome-CQUZm4YB.js → chrome-Dhi-l6wT.js} +6 -6
  20. package/dist/{chrome-DqTgSmFm.js → chrome-DnhfF77Z.js} +6 -6
  21. package/dist/{command-queue-BSbitNdP.js → command-queue-AIWqKnVD.js} +1 -1
  22. package/dist/{command-queue-DogAVmq_.js → command-queue-CYUdNrXN.js} +1 -1
  23. package/dist/{command-queue-D3kWdijx.js → command-queue-Ctuw0Dti.js} +1 -1
  24. package/dist/control-ui-v2/assets/{AgentsView-BHoDo1L_.js → AgentsView-BykJAM_R.js} +1 -1
  25. package/dist/control-ui-v2/assets/{AutomationsView-CkkUCwky.js → AutomationsView-DC7X5Cuq.js} +1 -1
  26. package/dist/control-ui-v2/assets/Badge-BThfbCAq.js +1 -0
  27. package/dist/control-ui-v2/assets/{Button-CAmVftjk.js → Button-sKbvzDVv.js} +1 -1
  28. package/dist/control-ui-v2/assets/{ChannelsView-C9mkTqc6.js → ChannelsView-HkWy9hsS.js} +1 -1
  29. package/dist/control-ui-v2/assets/{ConfigForm-LRLk4KUb.js → ConfigForm-BJ2kFOXh.js} +1 -1
  30. package/dist/control-ui-v2/assets/{ConfirmDialog-F2xUWFqq.js → ConfirmDialog-CdyUa20w.js} +1 -1
  31. package/dist/control-ui-v2/assets/{DataTable-DOMUEHUS.js → DataTable-DYjiiFEO.js} +1 -1
  32. package/dist/control-ui-v2/assets/{DebugView-Brby9otE.js → DebugView-BBnZon9I.js} +1 -1
  33. package/dist/control-ui-v2/assets/{Dialog-GhMZjPwr.js → Dialog-C3D58UYL.js} +1 -1
  34. package/dist/control-ui-v2/assets/{DreamsView-DY7ted1D.js → DreamsView-DrwwXxFE.js} +1 -1
  35. package/dist/control-ui-v2/assets/{EntityLink-CrtCt-Qs.js → EntityLink-Z9K13Z04.js} +1 -1
  36. package/dist/control-ui-v2/assets/{FilterPills-CkHzGD5G.js → FilterPills-KLG4v-tl.js} +1 -1
  37. package/dist/control-ui-v2/assets/{InstancesView-CFs-ov6N.js → InstancesView-LuIMblfp.js} +1 -1
  38. package/dist/control-ui-v2/assets/{LearningView-BTIvp31K.js → LearningView-C2puhMj4.js} +1 -1
  39. package/dist/control-ui-v2/assets/{LogsView-BuFHneew.js → LogsView-Dy215edw.js} +1 -1
  40. package/dist/control-ui-v2/assets/{NodesView-7y8z5Q_T.js → NodesView-B71zmfhs.js} +1 -1
  41. package/dist/control-ui-v2/assets/{OverviewView-CIhAnOeN.js → OverviewView-JLhTfCru.js} +1 -1
  42. package/dist/control-ui-v2/assets/{Panel-BSfoMFU-.js → Panel-D78gp_RZ.js} +1 -1
  43. package/dist/control-ui-v2/assets/{PluginMount-Cr2vPF1o.js → PluginMount-DYlgGaMj.js} +1 -1
  44. package/dist/control-ui-v2/assets/{PluginPageView-BM2wjaCs.js → PluginPageView-Bg02Y5T6.js} +1 -1
  45. package/dist/control-ui-v2/assets/{PluginPanels-CrZnLVxd.js → PluginPanels-BleAmjiK.js} +1 -1
  46. package/dist/control-ui-v2/assets/{RunsView-B3eXHaoR.js → RunsView-BSGqEHKy.js} +1 -1
  47. package/dist/control-ui-v2/assets/{SessionsView-Bg4wx4lK.js → SessionsView-CMPY9Hgt.js} +1 -1
  48. package/dist/control-ui-v2/assets/{SettingsView-DGF7hzQG.js → SettingsView-D4QcuA0E.js} +1 -1
  49. package/dist/control-ui-v2/assets/{SkillsView-Cg7pJC7c.js → SkillsView-BWwsXZqF.js} +1 -1
  50. package/dist/control-ui-v2/assets/{Stat-lXrvX_LU.js → Stat-CXVUEU8q.js} +1 -1
  51. package/dist/control-ui-v2/assets/{StatusDot-mq9dIxHu.js → StatusDot-BOn9P0HR.js} +1 -1
  52. package/dist/control-ui-v2/assets/{StorageView-DwpkJ4z3.js → StorageView-Bn5jFxV6.js} +1 -1
  53. package/dist/control-ui-v2/assets/{UpdatedAgo-C4M24VEo.js → UpdatedAgo-CGh7wGn5.js} +1 -1
  54. package/dist/control-ui-v2/assets/{UsageView-Chdv6FaY.js → UsageView-D8N9_FXE.js} +1 -1
  55. package/dist/control-ui-v2/assets/{config-store-Cl6ZDEWe.js → config-store-CvkpUhCj.js} +1 -1
  56. package/dist/control-ui-v2/assets/{format-B5-CxWkB.js → format-CDdlmhUx.js} +1 -1
  57. package/dist/control-ui-v2/assets/{gateway-features-cO4oPTtR.js → gateway-features-BO759ssE.js} +1 -1
  58. package/dist/control-ui-v2/assets/{index-CJgogGns.js → index-DbvFKOkE.js} +1 -1
  59. package/dist/control-ui-v2/assets/{links-Cc4kr7jc.js → links-CQf0Dstl.js} +2 -2
  60. package/dist/control-ui-v2/assets/{run-rows-B5xQqo0g.js → run-rows-B7a70RYo.js} +1 -1
  61. package/dist/control-ui-v2/assets/runs-store-CBxmiHic.js +1 -0
  62. package/dist/control-ui-v2/assets/{use-gateway-query-DkXhPwE7.js → use-gateway-query-Dd6G1xB1.js} +1 -1
  63. package/dist/control-ui-v2/index.html +7 -7
  64. package/dist/{credentials-BwbcjFrG.js → credentials-By3Y4AcL.js} +3 -3
  65. package/dist/daemon-cli.js +10 -10
  66. package/dist/{deliver-D5-592ul.js → deliver-BNwRhCqc.js} +28 -28
  67. package/dist/{deliver-uol2d4WF.js → deliver-CZ0gpdcA.js} +6 -6
  68. package/dist/{deliver-DI3pbsEG.js → deliver-lAcWrtsj.js} +8 -8
  69. package/dist/{diagnostic-BZYYYnMx.js → diagnostic-DJ11ZJIJ.js} +3 -3
  70. package/dist/{diagnostic-CjNtSJJy.js → diagnostic-Dlx1Uind.js} +3 -3
  71. package/dist/{diagnostic-DutvZ2o1.js → diagnostic-dKeDyhIs.js} +1 -1
  72. package/dist/{plugin-sdk/errors-CVfTQSbb.js → errors-0-at0aYV.js} +1 -1
  73. package/dist/{errors-BRYMqzPb.js → errors-7NHaEHOi.js} +1 -1
  74. package/dist/extensionAPI.js +24 -24
  75. package/dist/{fences-DdMLzXvz.js → fences-BXndK9rN.js} +2 -2
  76. package/dist/{fences-Dtk43Q2a.js → fences-Z8d1dj8p.js} +16 -16
  77. package/dist/{fences-DxsYNv6D.js → fences-qAryzYhN.js} +1 -1
  78. package/dist/{fetch-guard-CIElogmD.js → fetch-guard-C1e2uLCm.js} +2 -2
  79. package/dist/{fetch-guard-huDqYgcZ.js → fetch-guard-DVq681NM.js} +2 -2
  80. package/dist/{fetch-guard-BfFAgAdL.js → fetch-guard-jXOgaL7k.js} +2 -2
  81. package/dist/{frontmatter-DHBTRDiB.js → frontmatter-CzhUc9Ri.js} +5 -5
  82. package/dist/{fs-safe-BXAFIPNF.js → fs-safe-B9UKPVRL.js} +2 -2
  83. package/dist/{fs-safe-QppbBgli.js → fs-safe-BFMvT9d3.js} +1 -1
  84. package/dist/{fs-safe-CyG0wflg.js → fs-safe-DMWtsz4J.js} +26 -26
  85. package/dist/{group-DNWpfMve.js → group-Dvl8dfJ2.js} +6 -6
  86. package/dist/{legacy-names-6uH6aLhq.js → legacy-names-chsmo2vs.js} +26 -26
  87. package/dist/llm-slug-generator.js +31 -31
  88. package/dist/{manager-DEELDila.js → manager-CIl1uCF4.js} +5 -5
  89. package/dist/{manager-Dv0046Wp.js → manager-Cd7Dgpw3.js} +16 -16
  90. package/dist/{manager-BNDUt5V7.js → manager-Edt-T8Bi.js} +3 -3
  91. package/dist/{model-selection-DfBJgjil.js → model-selection-BkyEkRcd.js} +1 -1
  92. package/dist/{model-selection-BKz1FEg5.js → model-selection-ik2bHbgK.js} +82 -82
  93. package/dist/{net-B0Jtxfrs.js → net-DJsykMK1.js} +1 -1
  94. package/dist/{nudge-D6njZF1b.js → nudge-D3beOdMV.js} +6 -6
  95. package/dist/{nudge-iXg_oCkW.js → nudge-Dg8Pe_sD.js} +9 -9
  96. package/dist/{nudge-D6LqS1z9.js → nudge-DyQYIOed.js} +32 -32
  97. package/dist/{outbound-attachment-DkplciK0.js → outbound-attachment-C3f9uSt-.js} +4 -4
  98. package/dist/{outbound-attachment-6hHA3eSm.js → outbound-attachment-DQtDt9Ne.js} +9 -9
  99. package/dist/{outbound-attachment-DFE9e7Dz.js → outbound-attachment-DwgRvpkl.js} +7 -7
  100. package/dist/{pi-embedded-CM4cbQEb.js → pi-embedded-BUj1tpxL.js} +40 -40
  101. package/dist/{pi-embedded-BJeshpuP.js → pi-embedded-DRpnAuxu.js} +229 -229
  102. package/dist/{pi-model-discovery-CEEWv-kw.js → pi-model-discovery-DnTVd1y8.js} +1 -1
  103. package/dist/{pi-model-discovery-Dy1iZEn3.js → pi-model-discovery-MJKT8QcH.js} +1 -1
  104. package/dist/{pi-model-discovery-BzUe_TlM.js → pi-model-discovery-ihTZFn93.js} +7 -7
  105. package/dist/plugin-sdk/{agent-CUhnjg2h.js → agent-CACbclxE.js} +33 -33
  106. package/dist/plugin-sdk/{agent-turn-execute-0wNK8kb-.js → agent-turn-execute-BKMaKZMH.js} +52 -52
  107. package/dist/plugin-sdk/{agent-turn-runner-Bc1Wdfjl.js → agent-turn-runner-Dfbuq8sa.js} +6 -6
  108. package/dist/{chrome-D5VU16Pm.js → plugin-sdk/chrome-CRKazKtD.js} +7 -7
  109. package/dist/plugin-sdk/{command-queue-BuyhMwmf.js → command-queue-CYthkMHd.js} +1 -1
  110. package/dist/plugin-sdk/{deliver-BbYD9jbj.js → deliver-Bh_zU4gN.js} +10 -10
  111. package/dist/plugin-sdk/{diagnostic-YH_V803S.js → diagnostic-DUBIUJLy.js} +3 -3
  112. package/dist/{errors-CK3mNfUZ.js → plugin-sdk/errors-BYlk21G9.js} +1 -1
  113. package/dist/plugin-sdk/{fetch-guard-BiQARj-q.js → fetch-guard-tC95Od8D.js} +2 -2
  114. package/dist/plugin-sdk/{fs-safe-CGzRyGpY.js → fs-safe-DkRYPO9h.js} +2 -2
  115. package/dist/plugin-sdk/{image-ops-BrERoy-B.js → image-ops-BwFCJNka.js} +2 -2
  116. package/dist/plugin-sdk/{manager-DPJBcR4V.js → manager-BFK04-sl.js} +5 -5
  117. package/dist/plugin-sdk/{model-auth-BtSCt2Us.js → model-auth-5dizn5pk.js} +6 -6
  118. package/dist/plugin-sdk/{models-config-GBg5F8hJ.js → models-config-Q1RpJb2l.js} +2 -2
  119. package/dist/plugin-sdk/{nudge-DRCem0PL.js → nudge-RygJmKvJ.js} +10 -10
  120. package/dist/plugin-sdk/{openai-compatible-video-5WcKNGBU.js → openai-compatible-video-Dcy2Li9N.js} +6 -6
  121. package/dist/plugin-sdk/{outbound-attachment-DTKZLRZQ.js → outbound-attachment-BzyByi-v.js} +7 -7
  122. package/dist/plugin-sdk/{pi-embedded-helpers-CuwPxkvz.js → pi-embedded-helpers-BFhpUeAU.js} +13 -13
  123. package/dist/plugin-sdk/{pi-embedded-utils-C8Mld73X.js → pi-embedded-utils-DwU_Dm_t.js} +3 -3
  124. package/dist/plugin-sdk/{pi-model-discovery-DF78NwCY.js → pi-model-discovery-JhPOgHc2.js} +1 -1
  125. package/dist/plugin-sdk/provider-media-understanding.js +16 -16
  126. package/dist/plugin-sdk/{pw-ai-DE9_F3UT.js → pw-ai-CetM9Gvn.js} +8 -8
  127. package/dist/plugin-sdk/{qmd-manager-Be0AD8g6.js → qmd-manager-D-4-ofwq.js} +6 -6
  128. package/dist/plugin-sdk/{qmd-scope-ChYVD8_V.js → qmd-scope-C2Q-gYkx.js} +1 -1
  129. package/dist/plugin-sdk/{query-expansion-D7KVLAEI.js → query-expansion-WqJIYjMY.js} +2 -2
  130. package/dist/plugin-sdk/{recorder-CYbCMbkp.js → recorder-Buet60MM.js} +2 -2
  131. package/dist/{redact-DU9QXIsh.js → plugin-sdk/redact-BsmP2_ML.js} +1 -1
  132. package/dist/plugin-sdk/{reply-directives-C8nS86oo.js → reply-directives-vq-0__VY.js} +2 -2
  133. package/dist/plugin-sdk/{runs-DaXWESgL.js → runs-Bo9ZU_tS.js} +7 -7
  134. package/dist/plugin-sdk/{send-DNtB7RqD.js → send-C7mdLoxn.js} +5 -5
  135. package/dist/plugin-sdk/{send-A18Yldb9.js → send-O0_QKrFT.js} +4 -4
  136. package/dist/plugin-sdk/{sessions-CaOQHLR9.js → sessions-DBkZJFck.js} +3 -3
  137. package/dist/plugin-sdk/{ssrf-BUsxUAWv.js → ssrf-DwUheH8N.js} +1 -1
  138. package/dist/{subsystem-DoQFckDJ.js → plugin-sdk/subsystem-DGPv0F8I.js} +5 -5
  139. package/dist/plugin-sdk/{tool-loop-detection-CofD0zz1.js → tool-loop-detection-CJnz5pAZ.js} +1 -1
  140. package/dist/plugin-sdk/{user-run-recording-BHcbX_ct.js → user-run-recording-CcRIjxcn.js} +2 -2
  141. package/dist/plugin-sdk/{ws-fpqheALb.js → ws-BmHfUkZI.js} +1 -1
  142. package/dist/{ports-B3BTfmE-.js → ports-af3jAFGh.js} +2 -2
  143. package/dist/{progress-CuNmfDlK.js → progress-CmedxTqJ.js} +3 -3
  144. package/dist/{proxy-env-CHdvLB3R.js → proxy-env-B9kcG28B.js} +1 -1
  145. package/dist/{proxy-env-E2mZELS1.js → proxy-env-Catj9Viz.js} +1 -1
  146. package/dist/{proxy-env-Dayk9Sh-.js → proxy-env-DQFy-pBt.js} +1 -1
  147. package/dist/{pw-ai-mN-uQx62.js → pw-ai-BWm3mCae.js} +9 -9
  148. package/dist/{pw-ai-BV3I_k2z.js → pw-ai-CDg9EuQp.js} +5 -5
  149. package/dist/{pw-ai--9RsLl-I.js → pw-ai-DoQ300T0.js} +11 -11
  150. package/dist/{qmd-manager-IBVkRbDA.js → qmd-manager-DFBcLXne.js} +6 -6
  151. package/dist/{qmd-manager-B4bmSWg6.js → qmd-manager-DbHyIFsT.js} +4 -4
  152. package/dist/{qmd-manager-pXzVcStZ.js → qmd-manager-jGcc2exw.js} +9 -9
  153. package/dist/{qmd-scope-C-qiTyK0.js → qmd-scope-D25aU1jR.js} +1 -1
  154. package/dist/{qmd-scope-CyWbQgiS.js → qmd-scope-DMUA3Vq9.js} +1 -1
  155. package/dist/{qmd-scope-C3LDIy_f.js → qmd-scope-DxmwIijL.js} +1 -1
  156. package/dist/{query-expansion-DUYY60_G.js → query-expansion-BC9pRVpQ.js} +1 -1
  157. package/dist/{query-expansion-BfJwCH-1.js → query-expansion-DJ7rNitK.js} +2 -2
  158. package/dist/{query-expansion-DOdiE1jh.js → query-expansion-Dji7d64T.js} +13 -13
  159. package/dist/{recorder-BaUTigy-.js → recorder-CBd8Sa3f.js} +2 -2
  160. package/dist/{recorder-DbOS8cq-.js → recorder-ciEoXXwJ.js} +2 -2
  161. package/dist/{recorder-tm_DPmVq.js → recorder-jtfym7ix.js} +1 -1
  162. package/dist/{plugin-sdk/redact-SduMExGO.js → redact-BvO7EAk7.js} +1 -1
  163. package/dist/{redact-C4XKILzo.js → redact-LOuk7TRy.js} +1 -1
  164. package/dist/{reply-directives-lb54XxBO.js → reply-directives-BZPLXOax.js} +14 -14
  165. package/dist/{reply-directives-Cjv6usSI.js → reply-directives-CD8SVo0d.js} +49 -49
  166. package/dist/{reply-directives-DQdLCsf7.js → reply-directives-CzQd7ai4.js} +9 -9
  167. package/dist/{runs-C6ZLA3dQ.js → runs-CKVgIXbm.js} +7 -7
  168. package/dist/{runs-Bfh4gXhE.js → runs-CW-qjeWY.js} +8 -8
  169. package/dist/{runs-CRfwfxl9.js → runs-CX5t6UjO.js} +5 -5
  170. package/dist/{send-DhxoS0EQ.js → send-BClohEtC.js} +5 -5
  171. package/dist/{send-x0brK-7B.js → send-Bb4J4QPH.js} +4 -4
  172. package/dist/{send-DdufVWN0.js → send-Bn1WCNeb.js} +4 -4
  173. package/dist/{send-CQXAcrXk.js → send-C9EWa4Gn.js} +3 -3
  174. package/dist/{send-DgX5MIBr.js → send-CpXb_hwQ.js} +5 -5
  175. package/dist/{send-CDE-Y46D.js → send-DkfdQWGD.js} +4 -4
  176. package/dist/{sessions-DFfMZLkJ.js → sessions-C98njXHy.js} +1 -1
  177. package/dist/{sessions-CoqAntnj.js → sessions-Dwd5H-eS.js} +5 -5
  178. package/dist/{subsystem-DY5Ww-lX.js → subsystem-BntNuBAj.js} +4 -4
  179. package/dist/{plugin-sdk/subsystem-Btq0amiz.js → subsystem-cFv2jJm-.js} +70 -70
  180. package/dist/{tool-loop-detection-CtOkwPJY.js → tool-loop-detection-9fAxiikd.js} +2 -2
  181. package/dist/{tool-loop-detection-C8jnlLQJ.js → tool-loop-detection-BMpeJ2DE.js} +1 -1
  182. package/dist/{user-run-recording-Dw1uyV3d.js → user-run-recording-BsWiQH6f.js} +1 -1
  183. package/dist/{user-run-recording-D-qMoYVy.js → user-run-recording-CisdKSzW.js} +2 -2
  184. package/dist/{user-run-recording-UvvXT13r.js → user-run-recording-DBqvoOPn.js} +2 -2
  185. package/dist/web-client/assets/{hast-util-from-dom-SbSARCyf.js → hast-util-from-dom-CUZ3hAh_.js} +1 -1
  186. package/dist/web-client/assets/{hast-util-to-mdast-C1n0gLxk.js → hast-util-to-mdast-DsCIyZ_Y.js} +1 -1
  187. package/dist/web-client/assets/{index-UZef_CpP.js → index-BvHk50NK.js} +2 -2
  188. package/dist/web-client/index.html +1 -1
  189. package/dist/{ws-kGFg1v4B.js → ws-B4SUb9f_.js} +1 -1
  190. package/dist/{ws-BJ7VU-8f.js → ws-BOnegOZK.js} +1 -1
  191. package/extensions/a2a/package.json +1 -1
  192. package/extensions/acpx/package.json +1 -1
  193. package/extensions/anthropic/package.json +1 -1
  194. package/extensions/bifrost/package.json +1 -1
  195. package/extensions/bluebubbles/package.json +1 -1
  196. package/extensions/copilot-proxy/package.json +1 -1
  197. package/extensions/deepgram/package.json +1 -1
  198. package/extensions/deepinfra/package.json +1 -1
  199. package/extensions/diagnostics-otel/package.json +1 -1
  200. package/extensions/diffs/package.json +1 -1
  201. package/extensions/discord/package.json +1 -1
  202. package/extensions/dream-cycle/package.json +1 -1
  203. package/extensions/elevenlabs/package.json +1 -1
  204. package/extensions/feishu/package.json +1 -1
  205. package/extensions/gemini-search/package.json +1 -1
  206. package/extensions/google/package.json +1 -1
  207. package/extensions/google-gemini-cli-auth/package.json +1 -1
  208. package/extensions/googlechat/package.json +1 -1
  209. package/extensions/grok-search/package.json +1 -1
  210. package/extensions/groq/package.json +1 -1
  211. package/extensions/identity-oidc/package.json +1 -1
  212. package/extensions/imessage/package.json +1 -1
  213. package/extensions/irc/package.json +1 -1
  214. package/extensions/kimi-search/package.json +1 -1
  215. package/extensions/kokoro/package.json +1 -1
  216. package/extensions/learning-core/package.json +1 -1
  217. package/extensions/line/package.json +1 -1
  218. package/extensions/llm-task/package.json +1 -1
  219. package/extensions/lobster/package.json +1 -1
  220. package/extensions/matrix/CHANGELOG.md +1 -1
  221. package/extensions/matrix/package.json +1 -1
  222. package/extensions/mattermost/package.json +1 -1
  223. package/extensions/memory-core/package.json +1 -1
  224. package/extensions/memory-lancedb/package.json +1 -1
  225. package/extensions/minimax/package.json +1 -1
  226. package/extensions/minimax-portal-auth/package.json +1 -1
  227. package/extensions/mistral/package.json +1 -1
  228. package/extensions/moonshot/package.json +1 -1
  229. package/extensions/msteams/CHANGELOG.md +1 -1
  230. package/extensions/msteams/package.json +1 -1
  231. package/extensions/nextcloud-talk/package.json +1 -1
  232. package/extensions/nostr/CHANGELOG.md +1 -1
  233. package/extensions/nostr/package.json +1 -1
  234. package/extensions/open-prose/package.json +1 -1
  235. package/extensions/openai/package.json +1 -1
  236. package/extensions/openai-realtime/package.json +1 -1
  237. package/extensions/openrouter/package.json +1 -1
  238. package/extensions/perplexity-search/package.json +1 -1
  239. package/extensions/searxng-search/package.json +1 -1
  240. package/extensions/signal/package.json +1 -1
  241. package/extensions/slack/package.json +1 -1
  242. package/extensions/synology-chat/package.json +1 -1
  243. package/extensions/telegram/package.json +1 -1
  244. package/extensions/tlon/package.json +1 -1
  245. package/extensions/twitch/CHANGELOG.md +1 -1
  246. package/extensions/twitch/package.json +1 -1
  247. package/extensions/ui-surfaces/package.json +1 -1
  248. package/extensions/voice-call/CHANGELOG.md +1 -1
  249. package/extensions/voice-call/package.json +1 -1
  250. package/extensions/whatsapp/package.json +1 -1
  251. package/extensions/zai/package.json +1 -1
  252. package/extensions/zalo/CHANGELOG.md +1 -1
  253. package/extensions/zalo/package.json +1 -1
  254. package/extensions/zalouser/CHANGELOG.md +1 -1
  255. package/extensions/zalouser/package.json +1 -1
  256. package/package.json +3 -1
  257. package/dist/control-ui-v2/assets/Badge-Ckq3aEJa.js +0 -1
  258. package/dist/control-ui-v2/assets/runs-store-D8Ckq4AP.js +0 -1
  259. package/dist/github-copilot-token-Bm6yG6tw.js +0 -106
  260. package/dist/paths-BIDPYPVC.js +0 -233
  261. package/docs/reference/templates/BOOT.md +0 -11
  262. /package/dist/{config-1om7Pwz0.js → config-CM9p9U7m.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { Bi as secretRefKey, Ca as listAgentIds, Fi as resolveSecretRefValues, Gr as GATEWAY_CLIENT_MODES, H as loadConfig, Kr as GATEWAY_CLIENT_NAMES, Oa as resolveDefaultAgentId, Oo as isAcpSessionKey, Wr as GATEWAY_CLIENT_IDS, Xa as logError, Ya as logDebug, da as hasConfiguredSecretInput, do as normalizeAgentId, fo as normalizeMainKey, jo as isSubagentSessionKey, kt as docsSiteUrl, lt as ASSISTANT_IDENTITY_COLORS, mo as resolveAgentIdFromSessionKey, ni as optionalStringEnum, pa as resolveSecretInputRef, ri as stringEnum, yo as sessionKeyAgentMatches } from "./model-selection-DfBJgjil.js";
2
+ import { Bi as secretRefKey, Ca as listAgentIds, Fi as resolveSecretRefValues, Gr as GATEWAY_CLIENT_MODES, H as loadConfig, Kr as GATEWAY_CLIENT_NAMES, Oa as resolveDefaultAgentId, Oo as isAcpSessionKey, Wr as GATEWAY_CLIENT_IDS, Xa as logError, Ya as logDebug, da as hasConfiguredSecretInput, do as normalizeAgentId, fo as normalizeMainKey, jo as isSubagentSessionKey, kt as docsSiteUrl, lt as ASSISTANT_IDENTITY_COLORS, mo as resolveAgentIdFromSessionKey, ni as optionalStringEnum, pa as resolveSecretInputRef, ri as stringEnum, yo as sessionKeyAgentMatches } from "./model-selection-BkyEkRcd.js";
3
3
  import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-B_gs59ga.js";
4
4
  import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
5
5
  import { t as emitDiagnosticEvent } from "./diagnostic-events-q1w77c25.js";
6
- import { H as readJsonFile, I as resolveAgentMainSessionKey, Lt as INPUT_PROVENANCE_KIND_VALUES, O as SESSION_RUN_STATUSES, U as writeJsonAtomic, V as createAsyncLock, W as resolveGatewayCredentialsFromConfig, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-DFfMZLkJ.js";
6
+ import { H as readJsonFile, I as resolveAgentMainSessionKey, Lt as INPUT_PROVENANCE_KIND_VALUES, O as SESSION_RUN_STATUSES, U as writeJsonAtomic, V as createAsyncLock, W as resolveGatewayCredentialsFromConfig, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-C98njXHy.js";
7
7
  import { t as redactIdentifier } from "./redact-identifier-DLySVyKh.js";
8
- import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-kGFg1v4B.js";
9
- import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-T5NCMyJ_.js";
8
+ import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-B4SUb9f_.js";
9
+ import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-BUl_5WBC.js";
10
10
  import path from "node:path";
11
11
  import syncFs from "node:fs";
12
12
  import fs from "node:fs/promises";
@@ -14,7 +14,7 @@ import { promisify } from "node:util";
14
14
  import { execFile } from "node:child_process";
15
15
  import crypto, { X509Certificate, createHash, randomBytes, randomUUID } from "node:crypto";
16
16
  import { Type } from "@sinclair/typebox";
17
- import { WebSocket as WebSocket$1 } from "ws";
17
+ import { WebSocket } from "ws";
18
18
  import AjvPkg from "ajv";
19
19
 
20
20
  //#region src/shared/device-auth.ts
@@ -2990,7 +2990,7 @@ var GatewayClient = class {
2990
2990
  if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
2991
2991
  });
2992
2992
  }
2993
- this.ws = new WebSocket$1(url, wsOptions);
2993
+ this.ws = new WebSocket(url, wsOptions);
2994
2994
  this.ws.on("open", () => {
2995
2995
  if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
2996
2996
  const tlsError = this.validateTlsFingerprint();
@@ -3186,7 +3186,7 @@ var GatewayClient = class {
3186
3186
  const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
3187
3187
  if (this.connectTimer) clearTimeout(this.connectTimer);
3188
3188
  this.connectTimer = setTimeout(() => {
3189
- if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
3189
+ if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
3190
3190
  this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
3191
3191
  this.ws?.close(1008, "connect challenge timeout");
3192
3192
  }, connectChallengeTimeoutMs);
@@ -3228,7 +3228,7 @@ var GatewayClient = class {
3228
3228
  return null;
3229
3229
  }
3230
3230
  async request(method, params, opts) {
3231
- if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
3231
+ if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
3232
3232
  const id = randomUUID();
3233
3233
  const frame = {
3234
3234
  type: "req",
@@ -4587,7 +4587,7 @@ function indentUntrustedBody(body) {
4587
4587
  }
4588
4588
  function trackNudgeClaimChain(runner, id, sessionKey) {
4589
4589
  const tracked = (async () => {
4590
- const { runMainAgentTurn } = await import("./pi-embedded-CM4cbQEb.js").then((n) => n.a);
4590
+ const { runMainAgentTurn } = await import("./pi-embedded-BUj1tpxL.js").then((n) => n.a);
4591
4591
  await runner.claimAndExecute({
4592
4592
  workId: id,
4593
4593
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -1,21 +1,21 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { $r as stringEnum, Br as GATEWAY_CLIENT_IDS, H as loadConfig, Hr as GATEWAY_CLIENT_NAMES, Ii as secretRefKey, Qr as optionalStringEnum, Ta as resolveDefaultAgentId, Vr as GATEWAY_CLIENT_MODES, ca as resolveSecretInputRef, ji as resolveSecretRefValues, kt as docsSiteUrl, lt as ASSISTANT_IDENTITY_COLORS, oa as hasConfiguredSecretInput, va as listAgentIds } from "./model-selection-BKz1FEg5.js";
3
- import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-BIDPYPVC.js";
4
- import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
5
- import { D as logError, E as logDebug, G as resolveAgentIdFromSessionKey, H as normalizeAgentId, U as normalizeMainKey, X as sessionKeyAgentMatches, at as isAcpSessionKey, ct as isSubagentSessionKey } from "./legacy-names-6uH6aLhq.js";
2
+ import { $r as stringEnum, Br as GATEWAY_CLIENT_IDS, H as loadConfig, Hr as GATEWAY_CLIENT_NAMES, Ii as secretRefKey, Qr as optionalStringEnum, Ta as resolveDefaultAgentId, Vr as GATEWAY_CLIENT_MODES, ca as resolveSecretInputRef, ji as resolveSecretRefValues, kt as docsSiteUrl, lt as ASSISTANT_IDENTITY_COLORS, oa as hasConfiguredSecretInput, va as listAgentIds } from "./model-selection-ik2bHbgK.js";
3
+ import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-B_gs59ga.js";
4
+ import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
5
+ import { D as logError, E as logDebug, G as resolveAgentIdFromSessionKey, H as normalizeAgentId, U as normalizeMainKey, X as sessionKeyAgentMatches, at as isAcpSessionKey, ct as isSubagentSessionKey } from "./legacy-names-chsmo2vs.js";
6
6
  import { t as emitDiagnosticEvent } from "./diagnostic-events-RfJYFlJM.js";
7
- import { H as readJsonFile, I as resolveAgentMainSessionKey, Lt as INPUT_PROVENANCE_KIND_VALUES, O as SESSION_RUN_STATUSES, U as writeJsonAtomic, V as createAsyncLock, W as resolveGatewayCredentialsFromConfig, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-CoqAntnj.js";
7
+ import { H as readJsonFile, I as resolveAgentMainSessionKey, Lt as INPUT_PROVENANCE_KIND_VALUES, O as SESSION_RUN_STATUSES, U as writeJsonAtomic, V as createAsyncLock, W as resolveGatewayCredentialsFromConfig, f as TASK_RUN_MODES, p as TASK_RUN_STATUSES } from "./sessions-Dwd5H-eS.js";
8
8
  import { t as redactIdentifier } from "./redact-identifier-bNChjxxW.js";
9
- import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-BJ7VU-8f.js";
10
- import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-B4cl3TsM.js";
9
+ import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-BOnegOZK.js";
10
+ import { a as agentTurnIdempotencyKey, c as enqueueAgentTurn, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, n as getAgentTurnRuntime, o as buildAgentTurnWork } from "./agent-turn-runner-Pc5bI_FG.js";
11
11
  import path from "node:path";
12
- import fs from "node:fs";
13
- import fs$1 from "node:fs/promises";
12
+ import syncFs from "node:fs";
13
+ import fs from "node:fs/promises";
14
14
  import { promisify } from "node:util";
15
15
  import { execFile } from "node:child_process";
16
16
  import crypto, { X509Certificate, createHash, randomBytes, randomUUID } from "node:crypto";
17
17
  import { Type } from "@sinclair/typebox";
18
- import { WebSocket } from "ws";
18
+ import { WebSocket as WebSocket$1 } from "ws";
19
19
  import AjvPkg from "ajv";
20
20
 
21
21
  //#region src/shared/device-auth.ts
@@ -135,7 +135,7 @@ function resolveDefaultIdentityPath() {
135
135
  return path.join(resolveStateDir(), "identity", "device.json");
136
136
  }
137
137
  function ensureDir(filePath) {
138
- fs.mkdirSync(path.dirname(filePath), { recursive: true });
138
+ syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
139
139
  }
140
140
  const ED25519_SPKI_PREFIX = Buffer.from("302a300506032b6570032100", "hex");
141
141
  function base64UrlEncode(buf) {
@@ -171,8 +171,8 @@ function generateIdentity() {
171
171
  }
172
172
  function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
173
173
  try {
174
- if (fs.existsSync(filePath)) {
175
- const raw = fs.readFileSync(filePath, "utf8");
174
+ if (syncFs.existsSync(filePath)) {
175
+ const raw = syncFs.readFileSync(filePath, "utf8");
176
176
  const parsed = JSON.parse(raw);
177
177
  if (parsed?.version === 1 && typeof parsed.deviceId === "string" && typeof parsed.publicKeyPem === "string" && typeof parsed.privateKeyPem === "string") {
178
178
  const derivedId = fingerprintPublicKey(parsed.publicKeyPem);
@@ -181,9 +181,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
181
181
  ...parsed,
182
182
  deviceId: derivedId
183
183
  };
184
- fs.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
184
+ syncFs.writeFileSync(filePath, `${JSON.stringify(updated, null, 2)}\n`, { mode: 384 });
185
185
  try {
186
- fs.chmodSync(filePath, 384);
186
+ syncFs.chmodSync(filePath, 384);
187
187
  } catch {}
188
188
  return {
189
189
  deviceId: derivedId,
@@ -208,9 +208,9 @@ function loadOrCreateDeviceIdentity(filePath = resolveDefaultIdentityPath()) {
208
208
  privateKeyPem: identity.privateKeyPem,
209
209
  createdAtMs: Date.now()
210
210
  };
211
- fs.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
211
+ syncFs.writeFileSync(filePath, `${JSON.stringify(stored, null, 2)}\n`, { mode: 384 });
212
212
  try {
213
- fs.chmodSync(filePath, 384);
213
+ syncFs.chmodSync(filePath, 384);
214
214
  } catch {}
215
215
  return identity;
216
216
  }
@@ -233,7 +233,7 @@ function normalizeFingerprint(input) {
233
233
  const execFileAsync = promisify(execFile);
234
234
  async function fileExists(filePath) {
235
235
  try {
236
- await fs$1.access(filePath);
236
+ await fs.access(filePath);
237
237
  return true;
238
238
  } catch {
239
239
  return false;
@@ -260,8 +260,8 @@ async function generateSelfSignedCert(params) {
260
260
  "-subj",
261
261
  "/CN=openclaw-gateway"
262
262
  ]);
263
- await fs$1.chmod(params.keyPath, 384).catch(() => {});
264
- await fs$1.chmod(params.certPath, 384).catch(() => {});
263
+ await fs.chmod(params.keyPath, 384).catch(() => {});
264
+ await fs.chmod(params.certPath, 384).catch(() => {});
265
265
  params.log?.info?.(`gateway tls: generated self-signed cert at ${shortenHomeInString(params.certPath)}`);
266
266
  }
267
267
  async function loadGatewayTlsRuntime(cfg, log) {
@@ -299,9 +299,9 @@ async function loadGatewayTlsRuntime(cfg, log) {
299
299
  error: "gateway tls: cert/key missing"
300
300
  };
301
301
  try {
302
- const cert = await fs$1.readFile(certPath, "utf8");
303
- const key = await fs$1.readFile(keyPath, "utf8");
304
- const ca = caPath ? await fs$1.readFile(caPath, "utf8") : void 0;
302
+ const cert = await fs.readFile(certPath, "utf8");
303
+ const key = await fs.readFile(keyPath, "utf8");
304
+ const ca = caPath ? await fs.readFile(caPath, "utf8") : void 0;
305
305
  const fingerprintSha256 = normalizeFingerprint(new X509Certificate(cert).fingerprint256 ?? "");
306
306
  if (!fingerprintSha256) return {
307
307
  enabled: false,
@@ -387,8 +387,8 @@ function resolveDeviceAuthPath(env = process.env) {
387
387
  }
388
388
  function readStore(filePath) {
389
389
  try {
390
- if (!fs.existsSync(filePath)) return null;
391
- const raw = fs.readFileSync(filePath, "utf8");
390
+ if (!syncFs.existsSync(filePath)) return null;
391
+ const raw = syncFs.readFileSync(filePath, "utf8");
392
392
  const parsed = JSON.parse(raw);
393
393
  if (parsed?.version !== 1 || typeof parsed.deviceId !== "string") return null;
394
394
  if (!parsed.tokens || typeof parsed.tokens !== "object") return null;
@@ -398,10 +398,10 @@ function readStore(filePath) {
398
398
  }
399
399
  }
400
400
  function writeStore(filePath, store) {
401
- fs.mkdirSync(path.dirname(filePath), { recursive: true });
402
- fs.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
401
+ syncFs.mkdirSync(path.dirname(filePath), { recursive: true });
402
+ syncFs.writeFileSync(filePath, `${JSON.stringify(store, null, 2)}\n`, { mode: 384 });
403
403
  try {
404
- fs.chmodSync(filePath, 384);
404
+ syncFs.chmodSync(filePath, 384);
405
405
  } catch {}
406
406
  }
407
407
  function loadDeviceAuthToken(params) {
@@ -2991,7 +2991,7 @@ var GatewayClient = class {
2991
2991
  if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
2992
2992
  });
2993
2993
  }
2994
- this.ws = new WebSocket(url, wsOptions);
2994
+ this.ws = new WebSocket$1(url, wsOptions);
2995
2995
  this.ws.on("open", () => {
2996
2996
  if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
2997
2997
  const tlsError = this.validateTlsFingerprint();
@@ -3187,7 +3187,7 @@ var GatewayClient = class {
3187
3187
  const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
3188
3188
  if (this.connectTimer) clearTimeout(this.connectTimer);
3189
3189
  this.connectTimer = setTimeout(() => {
3190
- if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
3190
+ if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
3191
3191
  this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
3192
3192
  this.ws?.close(1008, "connect challenge timeout");
3193
3193
  }, connectChallengeTimeoutMs);
@@ -3229,7 +3229,7 @@ var GatewayClient = class {
3229
3229
  return null;
3230
3230
  }
3231
3231
  async request(method, params, opts) {
3232
- if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
3232
+ if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
3233
3233
  const id = randomUUID();
3234
3234
  const frame = {
3235
3235
  type: "req",
@@ -4588,7 +4588,7 @@ function indentUntrustedBody(body) {
4588
4588
  }
4589
4589
  function trackNudgeClaimChain(runner, id, sessionKey) {
4590
4590
  const tracked = (async () => {
4591
- const { runMainAgentTurn } = await import("./pi-embedded-BJeshpuP.js").then((n) => n.a);
4591
+ const { runMainAgentTurn } = await import("./pi-embedded-DRpnAuxu.js").then((n) => n.a);
4592
4592
  await runner.claimAndExecute({
4593
4593
  workId: id,
4594
4594
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -1,13 +1,13 @@
1
- import { Da as resolveAgentWorkspaceDir, Dr as resolveAccountEntry, Fr as INTERNAL_MESSAGE_CHANNEL, H as loadConfig, So as normalizeAccountId, mr as normalizeChannelId } from "./model-selection-DfBJgjil.js";
1
+ import { Da as resolveAgentWorkspaceDir, Dr as resolveAccountEntry, Fr as INTERNAL_MESSAGE_CHANNEL, H as loadConfig, So as normalizeAccountId, mr as normalizeChannelId } from "./model-selection-BkyEkRcd.js";
2
2
  import { l as resolveStateDir } from "./paths-B_gs59ga.js";
3
3
  import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DynBFcQj.js";
4
4
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
5
5
  import { t as redactSensitiveText } from "./redact-CEFvBGJg.js";
6
- import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-DxsYNv6D.js";
7
- import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-QppbBgli.js";
6
+ import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-qAryzYhN.js";
7
+ import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-BFMvT9d3.js";
8
8
  import { n as formatErrorChainMessage } from "./errors-yyPKpoXR.js";
9
9
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DYF6dHGu.js";
10
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CIElogmD.js";
10
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-C1e2uLCm.js";
11
11
  import path from "node:path";
12
12
  import fs from "node:fs/promises";
13
13
  import { fileURLToPath } from "node:url";
@@ -1,14 +1,14 @@
1
- import { Cr as resolveAccountEntry, H as loadConfig, jr as INTERNAL_MESSAGE_CHANNEL, ur as normalizeChannelId, wa as resolveAgentWorkspaceDir } from "./model-selection-BKz1FEg5.js";
2
- import { l as resolveStateDir } from "./paths-BIDPYPVC.js";
3
- import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
1
+ import { Cr as resolveAccountEntry, H as loadConfig, jr as INTERNAL_MESSAGE_CHANNEL, ur as normalizeChannelId, wa as resolveAgentWorkspaceDir } from "./model-selection-ik2bHbgK.js";
2
+ import { l as resolveStateDir } from "./paths-B_gs59ga.js";
3
+ import { f as logVerbose, h as shouldLogVerbose, i as chunkTextByBreakResolver, mt as resolvePreferredOpenClawTmpDir, r as avoidTrailingHighSurrogateBreak, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
4
4
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
5
- import { $ as normalizeAccountId } from "./legacy-names-6uH6aLhq.js";
6
- import { t as redactSensitiveText } from "./redact-C4XKILzo.js";
7
- import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-Dtk43Q2a.js";
8
- import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-CyG0wflg.js";
9
- import { n as formatErrorChainMessage } from "./errors-BRYMqzPb.js";
5
+ import { $ as normalizeAccountId } from "./legacy-names-chsmo2vs.js";
6
+ import { t as redactSensitiveText } from "./redact-LOuk7TRy.js";
7
+ import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-Z8d1dj8p.js";
8
+ import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-DMWtsz4J.js";
9
+ import { n as formatErrorChainMessage } from "./errors-0-at0aYV.js";
10
10
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CIKAlvUL.js";
11
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BfFAgAdL.js";
11
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-jXOgaL7k.js";
12
12
  import path from "node:path";
13
13
  import fs from "node:fs/promises";
14
14
  import { fileURLToPath } from "node:url";
@@ -1,13 +1,13 @@
1
- import { Jt as resolveAccountEntry, Lt as normalizeChannelId, Yi as resolveAgentWorkspaceDir, go as normalizeAccountId, in as loadConfig, r as INTERNAL_MESSAGE_CHANNEL } from "./group-DNWpfMve.js";
1
+ import { Jt as resolveAccountEntry, Lt as normalizeChannelId, Yi as resolveAgentWorkspaceDir, go as normalizeAccountId, in as loadConfig, r as INTERNAL_MESSAGE_CHANNEL } from "./group-Dvl8dfJ2.js";
2
2
  import { u as resolveStateDir } from "./paths-2qlGWRjc.js";
3
- import { M as shouldLogVerbose, b as resolveUserPath, gt as resolvePreferredOpenClawTmpDir, i as chunkTextByBreakResolver, k as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-DY5Ww-lX.js";
3
+ import { M as shouldLogVerbose, b as resolveUserPath, gt as resolvePreferredOpenClawTmpDir, i as chunkTextByBreakResolver, k as logVerbose, r as avoidTrailingHighSurrogateBreak, t as createSubsystemLogger } from "./subsystem-BntNuBAj.js";
4
4
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
5
- import { t as redactSensitiveText } from "./redact-DU9QXIsh.js";
6
- import { n as formatErrorChainMessage } from "./errors-CK3mNfUZ.js";
7
- import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-DdMLzXvz.js";
8
- import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-BXAFIPNF.js";
5
+ import { t as redactSensitiveText } from "./redact-BvO7EAk7.js";
6
+ import { n as formatErrorChainMessage } from "./errors-7NHaEHOi.js";
7
+ import { C as maxBytesForKind, b as kindFromMime, c as hasAlphaChannel, g as extensionForMime, h as detectMime, l as optimizeImageToPng, m as saveMediaBuffer, n as isSafeFenceBreak, o as convertHeicToJpeg, r as parseFenceSpans, t as findFenceSpanAt, u as resizeToJpeg } from "./fences-BXndK9rN.js";
8
+ import { o as readLocalFileSafely, t as SafeOpenError } from "./fs-safe-B9UKPVRL.js";
9
9
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-CGwuoZjW.js";
10
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-huDqYgcZ.js";
10
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-DVq681NM.js";
11
11
  import path from "node:path";
12
12
  import fs from "node:fs/promises";
13
13
  import { fileURLToPath } from "node:url";
@@ -1,41 +1,41 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { $ as setConfigValueAtPath, $i as listProfilesForProvider, $t as setActivePluginRegistry, A as resolveApiKeyForProvider, Aa as resolveRunModelFallbacksOverride, Ai as splitShellArgs, An as commitPreparedConfiguredSessionStorageRuntimeActivation, Ar as deliveryContextFromSession, At as BUNDLED_ENABLED_BY_DEFAULT, B as resolveProfilesUnavailableReason, Bi as secretRefKey, Br as listDeliverableMessageChannels, C as buildAssistantMessage, Ca as listAgentIds, Ci as resolveAllowlistCandidatePath, Cn as recordSessionMetaFromInbound, Co as normalizeOptionalAccountId, Cr as resolveIMessageAccount, D as getApiKeyForModel, Da as resolveAgentWorkspaceDir, Di as isShellWrapperExecutable, Dn as updateSessionStoreEntry, Do as getSubagentDepth, Dr as resolveAccountEntry, Dt as loadPluginManifestRegistry, E as buildUsageWithNoCost, Ea as resolveAgentSkillsFilter, Ei as isDispatchWrapperExecutable, En as updateSessionStore, Eo as WAKE_GATE_SESSION_KEY_SEGMENT, Er as resolveChannelGroupToolsPolicy, Et as validateJsonSchemaValue, F as resolveAuthProfileOrder, Fa as DEFAULT_BOOTSTRAP_FILENAME, Fi as resolveSecretRefValues, Fn as readSessionUpdatedAt, Fo as resolveAgentModelFallbackValues, Fr as INTERNAL_MESSAGE_CHANNEL, Ft as resolveMemorySlotDecision, G as writeConfigFile, Gi as resolveShellEnvFallbackTimeoutMs, Gr as GATEWAY_CLIENT_MODES, Gt as normalizeChannelId$2, H as loadConfig, Ha as filterBootstrapFilesForSession, Hi as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Hr as resolveGatewayMessageChannel, Ht as getChatChannelMeta, I as getSoonestCooldownExpiry, Ia as DEFAULT_HEARTBEAT_FILENAME, Ii as describeUnknownError$1, In as parseDurationMs, Io as resolveAgentModelPrimaryValue, Ir as isDeliverableMessageChannel, It as discoverOpenClawPlugins, J as resetConfigOverrides, Ja as spawnWithFallback, Ji as resolveOwnerDisplaySetting, Jn as resolveSessionTranscriptPath, Jr as CtxProjectionCorruptionError, Jt as getActiveGatewayPluginRegistry, K as createConfigIO, Ka as runCommandWithTimeout, Ki as isTruthyEnvValue, Kn as resolveSessionFilePath, Kr as GATEWAY_CLIENT_NAMES, Kt as normalizeChatChannelId, L as isProfileInCooldown, Li as isNonEmptyString, Ln as getConfiguredSessionStorageRuntime, Lo as toAgentModelListLike, Lt as isPathInside, M as resolveModelAuthMode, Ma as resolveSessionAgentIds, Mi as normalizeSafeBinProfileFixtures, Mn as refreshConfiguredSessionBindingEntry, Mo as parseAgentSessionKey, Mr as mergeDeliveryContext, Mt as isBundledChannelEnabledByChannelConfig, N as resolveModelProviderConfig, Ni as resolveSafeBinProfiles, Nn as loadSessionStore, No as resolveThreadParentSessionKey, Nr as normalizeDeliveryContext, Nt as normalizePluginsConfig, O as getCustomProviderApiKey, Oa as resolveDefaultAgentId, Oi as unwrapKnownDispatchWrapperInvocation, On as closeConfiguredSessionStorageRuntime, Oo as isAcpSessionKey, Or as resolveConversationLabel, Ot as DOCS_SITE_URL, Pa as DEFAULT_AGENT_WORKSPACE_DIR, Pi as isSafeExecutableValue, Pn as loadSessionStoreFromDisk, Po as stripAgentSessionKeyPrefix, Pr as normalizeSessionDeliveryFields, Pt as resolveEffectiveEnableState, Q as parseConfigPath, Qa as logWarn, Qi as dedupeProfileIds, Qn as resolveSessionLockMaxHoldFromTimeout, Qt as requireActivePluginRegistry, R as markAuthProfileFailure, Ri as isRecord$1, Rr as isInternalMessageChannel, Rt as safeStatSync, S as createOllamaStreamFn, Si as matchAllowlist, Sn as requireSessionStorageRuntime, So as normalizeAccountId$1, Sr as resolveCliName, T as buildStreamErrorAssistantMessage, Ta as resolveAgentDir, Ti as extractShellWrapperInlineCommand, Tn as updateLastRoute, Tr as resolveChannelGroupRequireMention, Tt as listBindings, U as readConfigFileSnapshot, Ua as loadWorkspaceBootstrapFiles, Ui as VERSION, Un as SAFE_SESSION_ID_RE, Ur as resolveMessageChannel, Ut as listChatChannels, V as resolveApiKeyForProfile, Va as ensureAgentWorkspace, Vi as runTasksWithConcurrency, Vr as normalizeMessageChannel, Vt as CHAT_CHANNEL_ORDER, W as readConfigFileSnapshotForWrite, Wa as resolveOpenClawPackageRoot, Wi as getShellPathFromLoginShell, Wn as SESSION_RUN_STORE_FILE_NAME, Wr as GATEWAY_CLIENT_IDS, Wt as normalizeAnyChannelId, X as unsetConfigOverride, Xa as logError, Xi as getRuntimeConfigSnapshot, Xn as resolveStorePath, Xt as getActivePluginRegistryKey, Y as setConfigOverride, Ya as logDebug, Yi as advanceRuntimeConfigSnapshot, Yr as readTaskWorkStates, Yt as getActivePluginRegistry, Z as getConfigValueAtPath, Za as logInfo, Zi as applyMergePatch, Zn as acquireSessionWriteLock, _a as DEFAULT_PROVIDER, _i as analyzeShellCommand, _n as triggerInternalHook, _o as resolveThreadSessionKeys, _r as isWhatsAppGroupJid, a as isCliProvider, aa as isPidAlive, ai as actionHasTarget, an as clearPluginCommands, ao as buildAgentPeerSessionKey, ar as resolveGroupSessionKey, at as resolveIMessageAttachmentRoots, b as retryAsync, ba as isAgentUserFacing, bi as splitCommandChain, bn as getConversationReadQuery, bo as toAgentStoreSessionKey, br as resolveWhatsAppAccount, c as normalizeProviderId, ci as discardBufferedPluginTaskPasses, cn as matchPluginCommand, cr as normalizeStringEntries, ct as parseNonNegativeByteSize, d as resolveDefaultModelForAgent, da as hasConfiguredSecretInput, di as RecoveryAdmissionError, dn as getRegisteredSpeechProviders, do as normalizeAgentId, dr as normalizeSignalMessagingTarget, ea as markAuthProfileGood, ei as channelTargetSchema, en as addRegisteredPluginApi, eo as DEFAULT_AGENT_ID, er as DEFAULT_RESET_TRIGGERS, et as unsetConfigValueAtPath, f as resolveModelRefFromString, fa as normalizeResolvedSecretInputString, fi as getTrustedSafeBinDirs, fn as getSpeechProvider, fo as normalizeMainKey, fr as getChannelPlugin, ga as DEFAULT_MODEL, gi as validateSafeBinArgv, gn as createInternalHookEvent, go as resolveConfiguredCanonicalIdentity, gr as resolveSignalAccount, h as resolveThinkingDefault, ha as DEFAULT_CONTEXT_TOKENS, hi as normalizeTrustedSafeBinDirs, hn as normalizeProviderId$1, ho as resolveCanonicalIdentity, hr as listEnabledSignalAccounts, i as findNormalizedProviderValue, ia as withFileLock$1, ii as applyTargetToParams, in as buildPluginHealthReport, io as buildAgentMainSessionKey, ir as deriveSessionMetaPatch, it as mergeInboundPathRoots, j as resolveEnvApiKey, ja as resolveSessionAgentId, ji as SAFE_BIN_PROFILES, jn as prepareConfiguredSessionStorageRuntimeActivation, jo as isSubagentSessionKey, jr as deliveryContextKey, jt as applyTestPluginDefaults, k as requireApiKey, ki as unwrapKnownShellMultiplexerInvocation, kn as closeReplacedConfiguredSessionStorageRuntime, ko as isCronSessionKey, kr as normalizeChatType, kt as docsSiteUrl, l as parseModelRef, la as normalizeSecretInput, li as listBufferedPluginTaskPasses, ln as registerPluginCommand, lo as isKnownAgentMainSessionKey, lr as getChannelDock, m as resolveSubagentSpawnModelSelection, ma as splitTrailingAuthProfile, mi as listWritableExplicitTrustedSafeBinDirs, mn as replaceSpeechProviders, mo as resolveAgentIdFromSessionKey, mr as normalizeChannelId$1, n as buildConfiguredAllowlistKeys, na as resolveAuthStorePathForDisplay, ni as optionalStringEnum, nn as createPluginRegistry, no as DEVICE_SENDER_PREFIX, nr as resolveFreshSessionTotalTokens, nt as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, o as modelKey, oa as readProcessElapsedSeconds, oi as actionRequiresTarget, on as executePluginCommand, oo as classifySessionKeyShape, or as resolveParentSessionGroupId, ot as resolveIMessageRemoteAttachmentRoots, p as resolveReasoningDefault, pa as resolveSecretInputRef, pi as isTrustedSafeBinPath, pn as isBuiltinTtsProvider, po as normalizeToken$1, pr as listChannelPlugins, q as getConfigOverrides, qa as runExec, qi as parseBooleanValue$1, qn as resolveSessionFilePathOptions, qt as resolveChannelConfigId, r as buildModelAliasIndex, ra as resolveOpenClawAgentDir, ri as stringEnum, rn as normalizePluginHttpPath, rt as isInboundPathAllowed, s as normalizeModelRef$1, sa as resolveAuthProfileDisplayLabel, sn as listPluginCommands, sr as normalizeAtHashSlug, st as normalizeScpRemoteHost, t as buildAllowedModelSet, ta as ensureAuthProfileStore, ti as channelTargetsSchema, tn as clearRegisteredPluginApis, to as DEFAULT_MAIN_KEY, tr as mergeSessionEntry, tt as validateConfigObjectWithPlugins, u as resolveConfiguredModelRef, ua as coerceSecretRef, ui as replaceBufferedPluginTaskPasses, un as BUILTIN_TTS_PROVIDER_IDS, uo as isValidAgentId, ur as listChannelDocks, ut as resolveExecPolicyPreset, va as acceptsInheritedIdentity, vi as buildEnforcedShellCommand, vn as StorageReadAccessError, vo as sanitizeAgentId, vr as normalizeWhatsAppTarget, w as buildAssistantMessageWithZeroUsage, wa as resolveAgentConfig, wi as resolveCommandResolutionFromArgv, wr as resolveChannelGroupPolicy, wt as buildChannelAccountBindings, x as OLLAMA_NATIVE_BASE_URL, xa as isInternalAgentSessionKey, xi as DEFAULT_SAFE_BINS, xo as DEFAULT_ACCOUNT_ID, xr as formatCliCommand, ya as hasConfiguredModelFallbacks, yi as isWindowsPlatform, yn as createConversationReadQuery, yo as sessionKeyAgentMatches, yr as hasAnyWhatsAppAuth, z as markAuthProfileUsed, zi as parseDotPath, zn as parseSessionIndexRecordKey, zr as isMarkdownCapableMessageChannel, zt as readManifestNamespace } from "./model-selection-DfBJgjil.js";
2
+ import { $ as setConfigValueAtPath, $i as listProfilesForProvider, $t as setActivePluginRegistry, A as resolveApiKeyForProvider, Aa as resolveRunModelFallbacksOverride, Ai as splitShellArgs, An as commitPreparedConfiguredSessionStorageRuntimeActivation, Ar as deliveryContextFromSession, At as BUNDLED_ENABLED_BY_DEFAULT, B as resolveProfilesUnavailableReason, Bi as secretRefKey, Br as listDeliverableMessageChannels, C as buildAssistantMessage, Ca as listAgentIds, Ci as resolveAllowlistCandidatePath, Cn as recordSessionMetaFromInbound, Co as normalizeOptionalAccountId, Cr as resolveIMessageAccount, D as getApiKeyForModel, Da as resolveAgentWorkspaceDir, Di as isShellWrapperExecutable, Dn as updateSessionStoreEntry, Do as getSubagentDepth, Dr as resolveAccountEntry, Dt as loadPluginManifestRegistry, E as buildUsageWithNoCost, Ea as resolveAgentSkillsFilter, Ei as isDispatchWrapperExecutable, En as updateSessionStore, Eo as WAKE_GATE_SESSION_KEY_SEGMENT, Er as resolveChannelGroupToolsPolicy, Et as validateJsonSchemaValue, F as resolveAuthProfileOrder, Fa as DEFAULT_BOOTSTRAP_FILENAME, Fi as resolveSecretRefValues, Fn as readSessionUpdatedAt, Fo as resolveAgentModelFallbackValues, Fr as INTERNAL_MESSAGE_CHANNEL, Ft as resolveMemorySlotDecision, G as writeConfigFile, Gi as resolveShellEnvFallbackTimeoutMs, Gr as GATEWAY_CLIENT_MODES, Gt as normalizeChannelId$2, H as loadConfig, Ha as filterBootstrapFilesForSession, Hi as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, Hr as resolveGatewayMessageChannel, Ht as getChatChannelMeta, I as getSoonestCooldownExpiry, Ia as DEFAULT_HEARTBEAT_FILENAME, Ii as describeUnknownError$1, In as parseDurationMs, Io as resolveAgentModelPrimaryValue, Ir as isDeliverableMessageChannel, It as discoverOpenClawPlugins, J as resetConfigOverrides, Ja as spawnWithFallback, Ji as resolveOwnerDisplaySetting, Jn as resolveSessionTranscriptPath, Jr as CtxProjectionCorruptionError, Jt as getActiveGatewayPluginRegistry, K as createConfigIO, Ka as runCommandWithTimeout, Ki as isTruthyEnvValue, Kn as resolveSessionFilePath, Kr as GATEWAY_CLIENT_NAMES, Kt as normalizeChatChannelId, L as isProfileInCooldown, Li as isNonEmptyString, Ln as getConfiguredSessionStorageRuntime, Lo as toAgentModelListLike, Lt as isPathInside, M as resolveModelAuthMode, Ma as resolveSessionAgentIds, Mi as normalizeSafeBinProfileFixtures, Mn as refreshConfiguredSessionBindingEntry, Mo as parseAgentSessionKey, Mr as mergeDeliveryContext, Mt as isBundledChannelEnabledByChannelConfig, N as resolveModelProviderConfig, Ni as resolveSafeBinProfiles, Nn as loadSessionStore, No as resolveThreadParentSessionKey, Nr as normalizeDeliveryContext, Nt as normalizePluginsConfig, O as getCustomProviderApiKey, Oa as resolveDefaultAgentId, Oi as unwrapKnownDispatchWrapperInvocation, On as closeConfiguredSessionStorageRuntime, Oo as isAcpSessionKey, Or as resolveConversationLabel, Ot as DOCS_SITE_URL, Pa as DEFAULT_AGENT_WORKSPACE_DIR, Pi as isSafeExecutableValue, Pn as loadSessionStoreFromDisk, Po as stripAgentSessionKeyPrefix, Pr as normalizeSessionDeliveryFields, Pt as resolveEffectiveEnableState, Q as parseConfigPath, Qa as logWarn, Qi as dedupeProfileIds, Qn as resolveSessionLockMaxHoldFromTimeout, Qt as requireActivePluginRegistry, R as markAuthProfileFailure, Ri as isRecord$1, Rr as isInternalMessageChannel, Rt as safeStatSync, S as createOllamaStreamFn, Si as matchAllowlist, Sn as requireSessionStorageRuntime, So as normalizeAccountId$1, Sr as resolveCliName, T as buildStreamErrorAssistantMessage, Ta as resolveAgentDir, Ti as extractShellWrapperInlineCommand, Tn as updateLastRoute, Tr as resolveChannelGroupRequireMention, Tt as listBindings, U as readConfigFileSnapshot, Ua as loadWorkspaceBootstrapFiles, Ui as VERSION, Un as SAFE_SESSION_ID_RE, Ur as resolveMessageChannel, Ut as listChatChannels, V as resolveApiKeyForProfile, Va as ensureAgentWorkspace, Vi as runTasksWithConcurrency, Vr as normalizeMessageChannel, Vt as CHAT_CHANNEL_ORDER, W as readConfigFileSnapshotForWrite, Wa as resolveOpenClawPackageRoot, Wi as getShellPathFromLoginShell, Wn as SESSION_RUN_STORE_FILE_NAME, Wr as GATEWAY_CLIENT_IDS, Wt as normalizeAnyChannelId, X as unsetConfigOverride, Xa as logError, Xi as getRuntimeConfigSnapshot, Xn as resolveStorePath, Xt as getActivePluginRegistryKey, Y as setConfigOverride, Ya as logDebug, Yi as advanceRuntimeConfigSnapshot, Yr as readTaskWorkStates, Yt as getActivePluginRegistry, Z as getConfigValueAtPath, Za as logInfo, Zi as applyMergePatch, Zn as acquireSessionWriteLock, _a as DEFAULT_PROVIDER, _i as analyzeShellCommand, _n as triggerInternalHook, _o as resolveThreadSessionKeys, _r as isWhatsAppGroupJid, a as isCliProvider, aa as isPidAlive, ai as actionHasTarget, an as clearPluginCommands, ao as buildAgentPeerSessionKey, ar as resolveGroupSessionKey, at as resolveIMessageAttachmentRoots, b as retryAsync, ba as isAgentUserFacing, bi as splitCommandChain, bn as getConversationReadQuery, bo as toAgentStoreSessionKey, br as resolveWhatsAppAccount, c as normalizeProviderId, ci as discardBufferedPluginTaskPasses, cn as matchPluginCommand, cr as normalizeStringEntries, ct as parseNonNegativeByteSize, d as resolveDefaultModelForAgent, da as hasConfiguredSecretInput, di as RecoveryAdmissionError, dn as getRegisteredSpeechProviders, do as normalizeAgentId, dr as normalizeSignalMessagingTarget, ea as markAuthProfileGood, ei as channelTargetSchema, en as addRegisteredPluginApi, eo as DEFAULT_AGENT_ID, er as DEFAULT_RESET_TRIGGERS, et as unsetConfigValueAtPath, f as resolveModelRefFromString, fa as normalizeResolvedSecretInputString, fi as getTrustedSafeBinDirs, fn as getSpeechProvider, fo as normalizeMainKey, fr as getChannelPlugin, ga as DEFAULT_MODEL, gi as validateSafeBinArgv, gn as createInternalHookEvent, go as resolveConfiguredCanonicalIdentity, gr as resolveSignalAccount, h as resolveThinkingDefault, ha as DEFAULT_CONTEXT_TOKENS, hi as normalizeTrustedSafeBinDirs, hn as normalizeProviderId$1, ho as resolveCanonicalIdentity, hr as listEnabledSignalAccounts, i as findNormalizedProviderValue, ia as withFileLock$1, ii as applyTargetToParams, in as buildPluginHealthReport, io as buildAgentMainSessionKey, ir as deriveSessionMetaPatch, it as mergeInboundPathRoots, j as resolveEnvApiKey, ja as resolveSessionAgentId, ji as SAFE_BIN_PROFILES, jn as prepareConfiguredSessionStorageRuntimeActivation, jo as isSubagentSessionKey, jr as deliveryContextKey, jt as applyTestPluginDefaults, k as requireApiKey, ki as unwrapKnownShellMultiplexerInvocation, kn as closeReplacedConfiguredSessionStorageRuntime, ko as isCronSessionKey, kr as normalizeChatType, kt as docsSiteUrl, l as parseModelRef, la as normalizeSecretInput, li as listBufferedPluginTaskPasses, ln as registerPluginCommand, lo as isKnownAgentMainSessionKey, lr as getChannelDock, m as resolveSubagentSpawnModelSelection, ma as splitTrailingAuthProfile, mi as listWritableExplicitTrustedSafeBinDirs, mn as replaceSpeechProviders, mo as resolveAgentIdFromSessionKey, mr as normalizeChannelId$1, n as buildConfiguredAllowlistKeys, na as resolveAuthStorePathForDisplay, ni as optionalStringEnum, nn as createPluginRegistry, no as DEVICE_SENDER_PREFIX, nr as resolveFreshSessionTotalTokens, nt as DEFAULT_IMESSAGE_ATTACHMENT_ROOTS, o as modelKey, oa as readProcessElapsedSeconds, oi as actionRequiresTarget, on as executePluginCommand, oo as classifySessionKeyShape, or as resolveParentSessionGroupId, ot as resolveIMessageRemoteAttachmentRoots, p as resolveReasoningDefault, pa as resolveSecretInputRef, pi as isTrustedSafeBinPath, pn as isBuiltinTtsProvider, po as normalizeToken$1, pr as listChannelPlugins, q as getConfigOverrides, qa as runExec, qi as parseBooleanValue$1, qn as resolveSessionFilePathOptions, qt as resolveChannelConfigId, r as buildModelAliasIndex, ra as resolveOpenClawAgentDir, ri as stringEnum, rn as normalizePluginHttpPath, rt as isInboundPathAllowed, s as normalizeModelRef$1, sa as resolveAuthProfileDisplayLabel, sn as listPluginCommands, sr as normalizeAtHashSlug, st as normalizeScpRemoteHost, t as buildAllowedModelSet, ta as ensureAuthProfileStore, ti as channelTargetsSchema, tn as clearRegisteredPluginApis, to as DEFAULT_MAIN_KEY, tr as mergeSessionEntry, tt as validateConfigObjectWithPlugins, u as resolveConfiguredModelRef, ua as coerceSecretRef, ui as replaceBufferedPluginTaskPasses, un as BUILTIN_TTS_PROVIDER_IDS, uo as isValidAgentId, ur as listChannelDocks, ut as resolveExecPolicyPreset, va as acceptsInheritedIdentity, vi as buildEnforcedShellCommand, vn as StorageReadAccessError, vo as sanitizeAgentId, vr as normalizeWhatsAppTarget, w as buildAssistantMessageWithZeroUsage, wa as resolveAgentConfig, wi as resolveCommandResolutionFromArgv, wr as resolveChannelGroupPolicy, wt as buildChannelAccountBindings, x as OLLAMA_NATIVE_BASE_URL, xa as isInternalAgentSessionKey, xi as DEFAULT_SAFE_BINS, xo as DEFAULT_ACCOUNT_ID, xr as formatCliCommand, ya as hasConfiguredModelFallbacks, yi as isWindowsPlatform, yn as createConversationReadQuery, yo as sessionKeyAgentMatches, yr as hasAnyWhatsAppAuth, z as markAuthProfileUsed, zi as parseDotPath, zn as parseSessionIndexRecordKey, zr as isMarkdownCapableMessageChannel, zt as readManifestNamespace } from "./model-selection-BkyEkRcd.js";
3
3
  import { a as resolveGatewayLockDir, f as resolveRequiredHomeDir, l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath, s as resolveOAuthDir, u as expandHomePrefix } from "./paths-B_gs59ga.js";
4
4
  import { C as appendFileLog, F as openBoundaryFileSync, K as isDangerousHostEnvVarName, O as INCLUDE_KEY, P as openBoundaryFile, Q as clampInt, T as normalizeLogLevel, U as isSymlinkOpenError, V as isNotFoundPathError, W as normalizeWindowsPathForComparison, Z as CONFIG_DIR, _ as colorize, a as createNonExitingRuntime, b as getChildLogger, c as registerActiveProgressLine, ct as safeParseJson, dt as sleep$2, f as logVerbose, ft as sliceUtf16Safe, g as warn, h as shouldLogVerbose, it as normalizeE164, j as isBlockedObjectKey, l as unregisterActiveProgressLine, lt as shortenHomeInString, m as setVerbose, mt as resolvePreferredOpenClawTmpDir, nt as formatTerminalLink, o as defaultRuntime, pt as truncateUtf16Safe, rt as isRecord$2, s as clearActiveProgressLine, st as resolveUserPath, t as createSubsystemLogger, tt as escapeRegExp, u as danger, ut as shortenHomePath, v as isRich, y as theme } from "./subsystem-DynBFcQj.js";
5
5
  import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
6
6
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-C-29TbW-.js";
7
- import { $ as resolveSandboxRuntimeStatus, A as classifyFailoverReason, At as listCoreToolIds, B as isFailoverAssistantError, Bt as isSilentReplyText, C as resolveImageSanitizationLimits, Ct as collectExplicitAllowlist, D as downgradeOpenAIReasoningBlocks, Dt as expandToolGroups, E as downgradeOpenAIFunctionCallReasoningPairs, Et as stripPluginOnlyAllowlist, F as isAuthAssistantError, Ft as resolveBootstrapTotalMaxChars, G as isTransientHttpError, H as isLikelyContextOverflowError, I as isBillingAssistantError, It as sanitizeGoogleTurnOrdering, J as sanitizeUserFacingText, K as parseImageDimensionError, L as isCloudCodeAssistFormatError, Lt as HEARTBEAT_TOKEN, M as formatBillingErrorMessage, Mt as matchesAnyGlobPattern, N as formatRawAssistantErrorForUi, Nt as buildBootstrapContextFiles, O as isGoogleModelApi, Ot as normalizeToolName, P as getApiErrorPayloadFingerprint, Pt as resolveBootstrapMaxChars, Q as resolveSandboxContext, R as isCompactionFailureError, Rt as SILENT_REPLY_TOKEN, S as sanitizeToolResultImages, St as buildPluginToolGroups, T as estimateBase64DecodedBytes, Tt as mergeAlsoAllowPolicy, U as isRateLimitAssistantError, V as isFailoverErrorMessage, Vt as stripSilentToken, W as isRawApiErrorPayload, X as isTimeoutErrorMessage, Y as isAuthPermanentErrorMessage, Z as ensureSandboxWorkspaceForSession, _t as applySkillEnvOverridesFromSnapshot, a as validateGeminiTurns, at as buildWorkspaceSkillCommandSpecs, b as sanitizeSessionMessagesImages, bt as resolveSandboxConfigForAgent, c as formatXHighModelHint, ct as resolveManagedSkillsDir, d as normalizeReasoningLevel, dt as resolvePluginSkillDirs, et as createBrowserRouteContext, f as normalizeThinkLevel, ft as assertMediaNotDataUrl, g as supportsXHighThinking, gt as applySkillEnvOverrides, h as resolveResponseUsageMode, ht as resolveSandboxedMediaSource, i as validateAnthropicTurns, it as getBridgeAuthForPort, j as formatAssistantErrorText, jt as compileGlobPatterns, k as BILLING_ERROR_USER_MESSAGE, kt as resolveToolProfilePolicy, l as listThinkingLevels, lt as resolveSkillsPromptForRun, m as normalizeVerboseLevel, mt as resolveSandboxInputPath, n as splitMediaFromOutput, nt as resolveBrowserConfig, o as pickFallbackThinkingLevel, ot as buildWorkspaceSkillSnapshot, p as normalizeUsageDisplay, pt as assertSandboxPath, q as parseImageSizeError, r as extractTextFromChatContent, rt as resolveProfile, s as formatThinkingLevels, st as loadWorkspaceSkillEntries, t as parseReplyDirectives, tt as registerBrowserRoutes, u as normalizeElevatedLevel, ut as skillsSnapshotSourceDiffers, v as isMessagingToolDuplicateNormalized, vt as ensureBrowserControlAuth, w as canonicalizeBase64, wt as expandPolicyWithPluginGroups, x as sanitizeImageBlocks, xt as applyOwnerOnlyToolPolicy, y as normalizeTextForComparison, yt as resolveBrowserControlAuth, z as isContextOverflowError, zt as isSilentReplyPrefixText } from "./reply-directives-DQdLCsf7.js";
7
+ import { $ as resolveSandboxRuntimeStatus, A as classifyFailoverReason, At as listCoreToolIds, B as isFailoverAssistantError, Bt as isSilentReplyText, C as resolveImageSanitizationLimits, Ct as collectExplicitAllowlist, D as downgradeOpenAIReasoningBlocks, Dt as expandToolGroups, E as downgradeOpenAIFunctionCallReasoningPairs, Et as stripPluginOnlyAllowlist, F as isAuthAssistantError, Ft as resolveBootstrapTotalMaxChars, G as isTransientHttpError, H as isLikelyContextOverflowError, I as isBillingAssistantError, It as sanitizeGoogleTurnOrdering, J as sanitizeUserFacingText, K as parseImageDimensionError, L as isCloudCodeAssistFormatError, Lt as HEARTBEAT_TOKEN, M as formatBillingErrorMessage, Mt as matchesAnyGlobPattern, N as formatRawAssistantErrorForUi, Nt as buildBootstrapContextFiles, O as isGoogleModelApi, Ot as normalizeToolName, P as getApiErrorPayloadFingerprint, Pt as resolveBootstrapMaxChars, Q as resolveSandboxContext, R as isCompactionFailureError, Rt as SILENT_REPLY_TOKEN, S as sanitizeToolResultImages, St as buildPluginToolGroups, T as estimateBase64DecodedBytes, Tt as mergeAlsoAllowPolicy, U as isRateLimitAssistantError, V as isFailoverErrorMessage, Vt as stripSilentToken, W as isRawApiErrorPayload, X as isTimeoutErrorMessage, Y as isAuthPermanentErrorMessage, Z as ensureSandboxWorkspaceForSession, _t as applySkillEnvOverridesFromSnapshot, a as validateGeminiTurns, at as buildWorkspaceSkillCommandSpecs, b as sanitizeSessionMessagesImages, bt as resolveSandboxConfigForAgent, c as formatXHighModelHint, ct as resolveManagedSkillsDir, d as normalizeReasoningLevel, dt as resolvePluginSkillDirs, et as createBrowserRouteContext, f as normalizeThinkLevel, ft as assertMediaNotDataUrl, g as supportsXHighThinking, gt as applySkillEnvOverrides, h as resolveResponseUsageMode, ht as resolveSandboxedMediaSource, i as validateAnthropicTurns, it as getBridgeAuthForPort, j as formatAssistantErrorText, jt as compileGlobPatterns, k as BILLING_ERROR_USER_MESSAGE, kt as resolveToolProfilePolicy, l as listThinkingLevels, lt as resolveSkillsPromptForRun, m as normalizeVerboseLevel, mt as resolveSandboxInputPath, n as splitMediaFromOutput, nt as resolveBrowserConfig, o as pickFallbackThinkingLevel, ot as buildWorkspaceSkillSnapshot, p as normalizeUsageDisplay, pt as assertSandboxPath, q as parseImageSizeError, r as extractTextFromChatContent, rt as resolveProfile, s as formatThinkingLevels, st as loadWorkspaceSkillEntries, t as parseReplyDirectives, tt as registerBrowserRoutes, u as normalizeElevatedLevel, ut as skillsSnapshotSourceDiffers, v as isMessagingToolDuplicateNormalized, vt as ensureBrowserControlAuth, w as canonicalizeBase64, wt as expandPolicyWithPluginGroups, x as sanitizeImageBlocks, xt as applyOwnerOnlyToolPolicy, y as normalizeTextForComparison, yt as resolveBrowserControlAuth, z as isContextOverflowError, zt as isSilentReplyPrefixText } from "./reply-directives-CzQd7ai4.js";
8
8
  import { n as isDiagnosticsEnabled, t as emitDiagnosticEvent } from "./diagnostic-events-q1w77c25.js";
9
- import { $ as buildInboundMetaSystemPrompt, A as evaluateSessionFreshness, At as openRawToolResultStash, B as isSessionArchiveArtifactName, Bt as getGlobalHookRunner, C as normalizeHttpWebhookUrl, Ct as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, D as SESSION_RUN_CONTEXT_MAX_NAMES, Dt as getToolResultText$1, E as parseAbsoluteTimeMs, Et as estimateMessageCharsCached, F as canonicalizeMainSessionAlias, Ft as canonicalToolCallIdBase, Gt as createCurrentUserPromptEnvelope, Ht as initializeGlobalHookRunner, I as resolveAgentMainSessionKey, It as sanitizeToolCallIdsForCloudCodeAssist, J as runSerializedBySession, Jt as buildPluginRuntimeIdentity, K as trimToUndefined, Kt as mergePromptContributions, M as resolveSessionResetPolicy, Mt as sanitizeToolCallInputs, N as resolveSessionResetType, Nt as sanitizeToolUseResultPairing, Ot as isToolResultMessage, P as resolveThreadFlag, Pt as stripToolResultDetails, Q as sha256, R as resolveMainSessionKey, Rt as hasInterSessionUserProvenance, S as inferLegacyName, St as CHARS_PER_TOKEN_ESTIMATE$2, T as resolveDefaultCronStaggerMs, Tt as estimateContextChars$1, U as writeJsonAtomic, Ut as hasHookForPlugin, V as createAsyncLock, Vt as getGlobalPluginRegistry, W as resolveGatewayCredentialsFromConfig, Wt as promptBuildResultToContribution, X as extractLegacyTranscriptEntryFields, Xt as resolveProviderPromptCacheKey, Y as drainPendingPrimaryWrites, Yt as buildPluginTurnIdentity, Z as sanitizeJsonb, Zt as resolveProviderRuntimeIdentity, _ as derivePromptTokens, _t as sessionLikelyHasOversizedToolResults, a as resolveMirroredTranscriptText, at as messageTime, b as makeZeroUsageSnapshot, bt as truncateTextHeadTail, c as createSessionStorageRuntimeFromConfig, ct as formatZonedTimestamp, d as buildEqualityProjection, dt as DB_SESSION_HYDRATION_LIMIT, et as collectInboundUserContext, ft as eventOrder, g as sanitizeAppendEntry, gt as HARD_MAX_TOOL_RESULT_CHARS, h as CREATE_CTX_STORAGE_OWNER_SQL, ht as capToolResultContent, i as appendAssistantMessageToSessionTranscript, it as isRepresentableEpochMs, j as resolveChannelResetConfig, jt as repairToolUseResultPairing, k as resolveSessionKey, kt as guardSessionManager, l as resolveSessionStorageConfig, lt as resolveTimezone, m as deriveLegacyActorIdentity, mt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, n as parseSessionThreadInfo, nt as attachMessageIngress, o as parseInlineDirectives$1, ot as stripMessageCarriers, pt as pickLeaf, q as openDbSessionManager, qt as toJsonValue$1, r as resolveAndPersistSessionFile, rt as getMessageIngress, s as attachPgPoolErrorListeners, st as formatMessageStamp, t as extractDeliveryInfo, tt as renderInboundUserContext, u as validateCtxStorage, ut as resolveSenderLabel, v as deriveSessionTotalTokens, vt as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, w as normalizeCronStaggerMs, wt as createMessageCharEstimateCache, x as normalizeUsage, xt as truncateToolResultToChars, y as hasNonzeroUsage, yt as TOOL_RESULT_TEXT_WEIGHT, z as isPrimarySessionTranscriptFileName, zt as normalizeInputProvenance } from "./sessions-DFfMZLkJ.js";
9
+ import { $ as buildInboundMetaSystemPrompt, A as evaluateSessionFreshness, At as openRawToolResultStash, B as isSessionArchiveArtifactName, Bt as getGlobalHookRunner, C as normalizeHttpWebhookUrl, Ct as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, D as SESSION_RUN_CONTEXT_MAX_NAMES, Dt as getToolResultText$1, E as parseAbsoluteTimeMs, Et as estimateMessageCharsCached, F as canonicalizeMainSessionAlias, Ft as canonicalToolCallIdBase, Gt as createCurrentUserPromptEnvelope, Ht as initializeGlobalHookRunner, I as resolveAgentMainSessionKey, It as sanitizeToolCallIdsForCloudCodeAssist, J as runSerializedBySession, Jt as buildPluginRuntimeIdentity, K as trimToUndefined, Kt as mergePromptContributions, M as resolveSessionResetPolicy, Mt as sanitizeToolCallInputs, N as resolveSessionResetType, Nt as sanitizeToolUseResultPairing, Ot as isToolResultMessage, P as resolveThreadFlag, Pt as stripToolResultDetails, Q as sha256, R as resolveMainSessionKey, Rt as hasInterSessionUserProvenance, S as inferLegacyName, St as CHARS_PER_TOKEN_ESTIMATE$2, T as resolveDefaultCronStaggerMs, Tt as estimateContextChars$1, U as writeJsonAtomic, Ut as hasHookForPlugin, V as createAsyncLock, Vt as getGlobalPluginRegistry, W as resolveGatewayCredentialsFromConfig, Wt as promptBuildResultToContribution, X as extractLegacyTranscriptEntryFields, Xt as resolveProviderPromptCacheKey, Y as drainPendingPrimaryWrites, Yt as buildPluginTurnIdentity, Z as sanitizeJsonb, Zt as resolveProviderRuntimeIdentity, _ as derivePromptTokens, _t as sessionLikelyHasOversizedToolResults, a as resolveMirroredTranscriptText, at as messageTime, b as makeZeroUsageSnapshot, bt as truncateTextHeadTail, c as createSessionStorageRuntimeFromConfig, ct as formatZonedTimestamp, d as buildEqualityProjection, dt as DB_SESSION_HYDRATION_LIMIT, et as collectInboundUserContext, ft as eventOrder, g as sanitizeAppendEntry, gt as HARD_MAX_TOOL_RESULT_CHARS, h as CREATE_CTX_STORAGE_OWNER_SQL, ht as capToolResultContent, i as appendAssistantMessageToSessionTranscript, it as isRepresentableEpochMs, j as resolveChannelResetConfig, jt as repairToolUseResultPairing, k as resolveSessionKey, kt as guardSessionManager, l as resolveSessionStorageConfig, lt as resolveTimezone, m as deriveLegacyActorIdentity, mt as HIDDEN_HEARTBEAT_CUSTOM_TYPE, n as parseSessionThreadInfo, nt as attachMessageIngress, o as parseInlineDirectives$1, ot as stripMessageCarriers, pt as pickLeaf, q as openDbSessionManager, qt as toJsonValue$1, r as resolveAndPersistSessionFile, rt as getMessageIngress, s as attachPgPoolErrorListeners, st as formatMessageStamp, t as extractDeliveryInfo, tt as renderInboundUserContext, u as validateCtxStorage, ut as resolveSenderLabel, v as deriveSessionTotalTokens, vt as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, w as normalizeCronStaggerMs, wt as createMessageCharEstimateCache, x as normalizeUsage, xt as truncateToolResultToChars, y as hasNonzeroUsage, yt as TOOL_RESULT_TEXT_WEIGHT, z as isPrimarySessionTranscriptFileName, zt as normalizeInputProvenance } from "./sessions-C98njXHy.js";
10
10
  import { n as onSessionTranscriptUpdate } from "./transcript-events-DGL7W2cG.js";
11
11
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-gljjQeWv.js";
12
- import { _ as recordSystemPromptHashComparison, b as recordCommandPoll, d as logRunCompleted, f as logRunStarted, g as logToolExecutionStarted, h as logToolExecutionCompleted, l as logModelCallError, m as logToolExecutionBlocked, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, v as refreshRunProgress, x as resetCommandPollCount, y as boundDiagnosticContent } from "./diagnostic-DutvZ2o1.js";
12
+ import { _ as recordSystemPromptHashComparison, b as recordCommandPoll, d as logRunCompleted, f as logRunStarted, g as logToolExecutionStarted, h as logToolExecutionCompleted, l as logModelCallError, m as logToolExecutionBlocked, o as logMessageProcessed, p as logSessionStateChange, s as logMessageQueued, v as refreshRunProgress, x as resetCommandPollCount, y as boundDiagnosticContent } from "./diagnostic-dKeDyhIs.js";
13
13
  import { o as redactChannelCorrelation, r as getDiagnosticSessionState } from "./diagnostic-session-state-jW46P4IL.js";
14
14
  import { t as redactIdentifier } from "./redact-identifier-DLySVyKh.js";
15
15
  import { t as redactSensitiveText } from "./redact-CEFvBGJg.js";
16
16
  import { t as CommandLane } from "./lanes-DWpYhh13.js";
17
- import { a as getCommandLaneSnapshots, c as isQueuedCommandCancellation, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isGatewayDraining, t as CommandLaneAbortedError } from "./command-queue-DogAVmq_.js";
18
- import { S as MAX_IMAGE_BYTES, _ as getFileExtension, b as kindFromMime, d as MEDIA_MAX_BYTES, g as extensionForMime, h as detectMime, m as saveMediaBuffer, n as isSafeFenceBreak, p as getMediaDir, r as parseFenceSpans, s as getImageMetadata, t as findFenceSpanAt, u as resizeToJpeg, v as imageMimeFromFormat, w as mediaKindFromMime, x as normalizeMimeType$1, y as isAudioFileName } from "./fences-DxsYNv6D.js";
19
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-Dy1iZEn3.js";
20
- import { A as stripLeadingInboundMetadata, B as buildTargetResolverSignature, C as extractToolCallNames, D as sleepWithAbort, E as computeBackoff, F as isRenderablePayload, G as ensureOpenClawModelsJson, H as normalizeTargetForProvider, I as shouldSuppressMessagingToolReplies, K as resolveLedTeam, L as shouldSuppressReasoningPayload, M as applyReplyThreading, N as filterMessagingToolDuplicates, O as readFullTranscriptEntriesFromBackend, P as filterMessagingToolMediaDuplicates, R as createReplyToModeFilterForChannel, S as countToolResults, T as resolveContextTokensForModel, U as buildOutboundSessionContext, V as normalizeChannelTargetInput, W as resolveOutboundSessionId, _ as loadCombinedSessionStoreForGateway, b as throwIfAborted$1, c as createMessageSentEmitter, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as stampReplyActivity, h as fireAndForgetHook, j as applyReplyTagsToPayload, k as transcriptEntriesToMessages, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, o as normalizeReplyPayloadsForDelivery, p as toPluginMessageContext, q as resolveTeamRoster, s as applyMessageSendingHook, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as capArrayByJsonBytes, w as lookupContextTokens, x as loadChannelOutboundAdapter, y as jsonUtf8Bytes, z as resolveReplyToMode } from "./deliver-uol2d4WF.js";
21
- import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-CQUZm4YB.js";
22
- import { r as isLoopbackHost } from "./ws-kGFg1v4B.js";
23
- import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, l as PATH_ALIAS_POLICIES, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-QppbBgli.js";
17
+ import { a as getCommandLaneSnapshots, c as isQueuedCommandCancellation, i as enqueueCommandInLane, n as clearCommandLane, o as getQueueSize, s as isGatewayDraining, t as CommandLaneAbortedError } from "./command-queue-CYUdNrXN.js";
18
+ import { S as MAX_IMAGE_BYTES, _ as getFileExtension, b as kindFromMime, d as MEDIA_MAX_BYTES, g as extensionForMime, h as detectMime, m as saveMediaBuffer, n as isSafeFenceBreak, p as getMediaDir, r as parseFenceSpans, s as getImageMetadata, t as findFenceSpanAt, u as resizeToJpeg, v as imageMimeFromFormat, w as mediaKindFromMime, x as normalizeMimeType$1, y as isAudioFileName } from "./fences-qAryzYhN.js";
19
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-MJKT8QcH.js";
20
+ import { A as stripLeadingInboundMetadata, B as buildTargetResolverSignature, C as extractToolCallNames, D as sleepWithAbort, E as computeBackoff, F as isRenderablePayload, G as ensureOpenClawModelsJson, H as normalizeTargetForProvider, I as shouldSuppressMessagingToolReplies, K as resolveLedTeam, L as shouldSuppressReasoningPayload, M as applyReplyThreading, N as filterMessagingToolDuplicates, O as readFullTranscriptEntriesFromBackend, P as filterMessagingToolMediaDuplicates, R as createReplyToModeFilterForChannel, S as countToolResults, T as resolveContextTokensForModel, U as buildOutboundSessionContext, V as normalizeChannelTargetInput, W as resolveOutboundSessionId, _ as loadCombinedSessionStoreForGateway, b as throwIfAborted$1, c as createMessageSentEmitter, d as toInternalMessageReceivedContext, f as toInternalMessageTranscribedContext, g as stampReplyActivity, h as fireAndForgetHook, j as applyReplyTagsToPayload, k as transcriptEntriesToMessages, l as deriveInboundMessageHookContext, m as toPluginMessageReceivedEvent, o as normalizeReplyPayloadsForDelivery, p as toPluginMessageContext, q as resolveTeamRoster, s as applyMessageSendingHook, t as deliverOutboundPayloads, u as toInternalMessagePreprocessedContext, v as capArrayByJsonBytes, w as lookupContextTokens, x as loadChannelOutboundAdapter, y as jsonUtf8Bytes, z as resolveReplyToMode } from "./deliver-CZ0gpdcA.js";
21
+ import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-B_WMQAhO.js";
22
+ import { r as isLoopbackHost } from "./ws-B4SUb9f_.js";
23
+ import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, l as PATH_ALIAS_POLICIES, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-BFMvT9d3.js";
24
24
  import { i as hasErrnoCode, o as readErrorName, r as formatErrorMessage } from "./errors-yyPKpoXR.js";
25
- import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-E2mZELS1.js";
25
+ import { a as isBlockedHostnameOrIp, l as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-DQFy-pBt.js";
26
26
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-DYF6dHGu.js";
27
- import { A as issueDeviceBootstrapToken, C as callGatewayLeastPrivilege, D as gatewayErrorShapeOf, E as gatewayErrorReason, O as validateSecretsResolveResult, S as callGateway, T as resolveLeastPrivilegeOperatorScopesForMethod, _ as resolveSessionReference, a as buildAgentToAgentReplyContext, b as clearActiveCoordinationDepth, c as resolvePingPongTurns, d as createSessionVisibilityGuard, f as resolveEffectiveSessionToolsVisibility, g as resolveMainSessionAlias, h as resolveInternalSessionKey, i as buildAgentToAgentMessageContext, k as SESSION_LABEL_MAX_LENGTH, l as AuthorizationError, m as resolveDisplaySessionKey, n as requestAuthorizedNudge, o as isAnnounceSkip, p as resolveSandboxedSessionToolContext, r as buildAgentToAgentAnnounceContext, s as isReplySkip, u as createAgentToAgentPolicy, v as resolveVisibleSessionReference, w as randomIdempotencyKey, x as setActiveCoordinationDepth, y as shouldResolveSessionIdInput } from "./nudge-iXg_oCkW.js";
28
- import { A as formatToolSummary, C as extractAssistantThinking, D as stripDowngradedToolCallText, E as isAssistantMessage, M as stripReasoningTagsFromText, O as stripMinimaxToolCallXml, S as extractAssistantText$1, T as inferToolMetaFromArgs, _ as createInlineCodeState, a as isEmbeddedPiRunActive, b as onAgentEvent, d as handleMessageEnd, f as handleMessageStart, g as buildCodeSpanIndex, h as emitEmbeddedAgentEvent, i as endInFlightEmbeddedAttempt, j as resolveToolDisplay, k as stripThinkingTagsFromText, l as setActiveEmbeddedRun, m as endModelCall, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as handleMessageUpdate, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as waitForEmbeddedPiRunEnd, w as formatReasoningMessage, x as registerAgentRunContext, y as emitAgentEvent } from "./runs-CRfwfxl9.js";
29
- import { C as getDefaultMediaLocalRoots, S as getAgentScopedMediaLocalRoots, _ as resolveChunkNewlinePacking, a as resolveMarkdownTableMode, b as fetchRemoteMedia, c as loadWebMediaRaw, d as chunkMarkdownText, f as chunkMarkdownTextWithMode, g as resolveChunkMode, h as resolveChunkDelivery, l as chunkByNewline, m as chunkTextWithMode, o as getDefaultLocalRoots, p as chunkText, s as loadWebMedia, v as resolveTextChunkLimit, x as readResponseWithLimit, y as MediaFetchError } from "./outbound-attachment-DkplciK0.js";
30
- import { a as bindAbortRelay, i as resolveProxyFetchFromEnv, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CIElogmD.js";
31
- import { i as executeWithApiKeyRotation, n as resolveMemorySearchConfig, r as collectProviderApiKeysForExecution } from "./manager-BNDUt5V7.js";
32
- import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-Dw1uyV3d.js";
33
- import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-tm_DPmVq.js";
34
- import { c as enqueueAgentTurn, d as peekDelayedAgentTurn, f as setDelayedReleaseHold, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, p as WORKSPACE_LANE_DENIED_REASON, r as tryGetAgentTurnRuntime, s as clearDelayedReleaseHold, u as mergeDelayedAgentTurn } from "./agent-turn-runner-T5NCMyJ_.js";
35
- import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal, u as resolveFetch } from "./send-x0brK-7B.js";
36
- import { a as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, c as normalizeIMessageHandle, i as createIMessageRpcClient, l as parseIMessageTarget, o as formatIMessageChatTarget, r as convertMarkdownTables, s as isAllowedIMessageSender, t as sendMessageIMessage } from "./send-CQXAcrXk.js";
37
- import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-DUYY60_G.js";
38
- import { t as isQmdScopeAllowed } from "./qmd-scope-C3LDIy_f.js";
27
+ import { A as issueDeviceBootstrapToken, C as callGatewayLeastPrivilege, D as gatewayErrorShapeOf, E as gatewayErrorReason, O as validateSecretsResolveResult, S as callGateway, T as resolveLeastPrivilegeOperatorScopesForMethod, _ as resolveSessionReference, a as buildAgentToAgentReplyContext, b as clearActiveCoordinationDepth, c as resolvePingPongTurns, d as createSessionVisibilityGuard, f as resolveEffectiveSessionToolsVisibility, g as resolveMainSessionAlias, h as resolveInternalSessionKey, i as buildAgentToAgentMessageContext, k as SESSION_LABEL_MAX_LENGTH, l as AuthorizationError, m as resolveDisplaySessionKey, n as requestAuthorizedNudge, o as isAnnounceSkip, p as resolveSandboxedSessionToolContext, r as buildAgentToAgentAnnounceContext, s as isReplySkip, u as createAgentToAgentPolicy, v as resolveVisibleSessionReference, w as randomIdempotencyKey, x as setActiveCoordinationDepth, y as shouldResolveSessionIdInput } from "./nudge-Dg8Pe_sD.js";
28
+ import { A as formatToolSummary, C as extractAssistantThinking, D as stripDowngradedToolCallText, E as isAssistantMessage, M as stripReasoningTagsFromText, O as stripMinimaxToolCallXml, S as extractAssistantText$1, T as inferToolMetaFromArgs, _ as createInlineCodeState, a as isEmbeddedPiRunActive, b as onAgentEvent, d as handleMessageEnd, f as handleMessageStart, g as buildCodeSpanIndex, h as emitEmbeddedAgentEvent, i as endInFlightEmbeddedAttempt, j as resolveToolDisplay, k as stripThinkingTagsFromText, l as setActiveEmbeddedRun, m as endModelCall, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as handleMessageUpdate, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as waitForEmbeddedPiRunEnd, w as formatReasoningMessage, x as registerAgentRunContext, y as emitAgentEvent } from "./runs-CX5t6UjO.js";
29
+ import { C as getDefaultMediaLocalRoots, S as getAgentScopedMediaLocalRoots, _ as resolveChunkNewlinePacking, a as resolveMarkdownTableMode, b as fetchRemoteMedia, c as loadWebMediaRaw, d as chunkMarkdownText, f as chunkMarkdownTextWithMode, g as resolveChunkMode, h as resolveChunkDelivery, l as chunkByNewline, m as chunkTextWithMode, o as getDefaultLocalRoots, p as chunkText, s as loadWebMedia, v as resolveTextChunkLimit, x as readResponseWithLimit, y as MediaFetchError } from "./outbound-attachment-C3f9uSt-.js";
30
+ import { a as bindAbortRelay, i as resolveProxyFetchFromEnv, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-C1e2uLCm.js";
31
+ import { i as executeWithApiKeyRotation, n as resolveMemorySearchConfig, r as collectProviderApiKeysForExecution } from "./manager-Edt-T8Bi.js";
32
+ import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-BsWiQH6f.js";
33
+ import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-jtfym7ix.js";
34
+ import { c as enqueueAgentTurn, d as peekDelayedAgentTurn, f as setDelayedReleaseHold, i as AGENT_TURN_TOPIC, l as isClaimableAgentTurnWorkId, m as KeyedAsyncQueue, p as WORKSPACE_LANE_DENIED_REASON, r as tryGetAgentTurnRuntime, s as clearDelayedReleaseHold, u as mergeDelayedAgentTurn } from "./agent-turn-runner-BUl_5WBC.js";
35
+ import { a as resolveSignalRpcContext, c as streamSignalEvents, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal, u as resolveFetch } from "./send-Bb4J4QPH.js";
36
+ import { a as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, c as normalizeIMessageHandle, i as createIMessageRpcClient, l as parseIMessageTarget, o as formatIMessageChatTarget, r as convertMarkdownTables, s as isAllowedIMessageSender, t as sendMessageIMessage } from "./send-C9EWa4Gn.js";
37
+ import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-BC9pRVpQ.js";
38
+ import { t as isQmdScopeAllowed } from "./qmd-scope-DxmwIijL.js";
39
39
  import { createRequire } from "node:module";
40
40
  import * as path$1 from "node:path";
41
41
  import path, { basename, isAbsolute, join } from "node:path";
@@ -56,7 +56,7 @@ import { DefaultResourceLoader, SessionManager, SettingsManager, convertToLlm, c
56
56
  import { EdgeTTS } from "node-edge-tts";
57
57
  import MarkdownIt from "markdown-it";
58
58
  import net from "node:net";
59
- import WebSocket from "ws";
59
+ import WebSocket$1 from "ws";
60
60
  import { Worker } from "node:worker_threads";
61
61
  import { createJiti } from "jiti";
62
62
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -4482,7 +4482,7 @@ async function linkIdentity(params) {
4482
4482
  const log$69 = createSubsystemLogger("model-catalog");
4483
4483
  const modelCatalogPromiseState = resolveProcessScopedMap(Symbol.for("openclaw.agents.model-catalog.modelCatalogPromise"));
4484
4484
  const hasLoggedModelCatalogErrorState = resolveProcessScopedMap(Symbol.for("openclaw.agents.model-catalog.hasLoggedModelCatalogError"));
4485
- const defaultImportPiSdk = () => import("./pi-model-discovery-Dy1iZEn3.js").then((n) => n.r);
4485
+ const defaultImportPiSdk = () => import("./pi-model-discovery-MJKT8QcH.js").then((n) => n.r);
4486
4486
  let importPiSdk = defaultImportPiSdk;
4487
4487
  function getModelCatalogPromise() {
4488
4488
  return modelCatalogPromiseState.get("value") ?? null;
@@ -12847,7 +12847,7 @@ async function routeReply(params) {
12847
12847
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
12848
12848
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
12849
12849
  try {
12850
- const { deliverOutboundPayloads } = await import("./deliver-uol2d4WF.js").then((n) => n.n);
12850
+ const { deliverOutboundPayloads } = await import("./deliver-CZ0gpdcA.js").then((n) => n.n);
12851
12851
  const outboundSession = buildOutboundSessionContext({
12852
12852
  cfg,
12853
12853
  agentId: resolvedAgentId,
@@ -14892,7 +14892,7 @@ async function sendTranscriptEcho(params) {
14892
14892
  }
14893
14893
  const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
14894
14894
  try {
14895
- const { deliverOutboundPayloads } = await import("./deliver-uol2d4WF.js").then((n) => n.n);
14895
+ const { deliverOutboundPayloads } = await import("./deliver-CZ0gpdcA.js").then((n) => n.n);
14896
14896
  await deliverOutboundPayloads({
14897
14897
  cfg,
14898
14898
  channel: normalizedChannel,
@@ -34596,7 +34596,7 @@ async function createModelSelectionState(params) {
34596
34596
  }
34597
34597
  }
34598
34598
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
34599
- const { ensureAuthProfileStore } = await import("./model-selection-DfBJgjil.js").then((n) => n.P);
34599
+ const { ensureAuthProfileStore } = await import("./model-selection-BkyEkRcd.js").then((n) => n.P);
34600
34600
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
34601
34601
  const providerKey = normalizeProviderId(provider);
34602
34602
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -54459,7 +54459,7 @@ async function deliverSessionMaintenanceWarning(params) {
54459
54459
  return;
54460
54460
  }
54461
54461
  try {
54462
- const { deliverOutboundPayloads } = await import("./deliver-uol2d4WF.js").then((n) => n.n);
54462
+ const { deliverOutboundPayloads } = await import("./deliver-CZ0gpdcA.js").then((n) => n.n);
54463
54463
  const outboundSession = buildOutboundSessionContext({
54464
54464
  cfg: params.cfg,
54465
54465
  sessionKey: params.sessionKey
@@ -67734,7 +67734,7 @@ function createRuntimeChannel() {
67734
67734
  reply: {
67735
67735
  dispatchReplyWithBufferedBlockDispatcher,
67736
67736
  dispatchInboundMessage,
67737
- agentCommandFromIngress: async (...args) => (await import("./agent-3FzVgs63.js")).agentCommandFromIngress(...args),
67737
+ agentCommandFromIngress: async (...args) => (await import("./agent-2N9tEN3b.js")).agentCommandFromIngress(...args),
67738
67738
  dispatchReplyWithDispatcher,
67739
67739
  createReplyDispatcherWithTyping,
67740
67740
  resolveEffectiveMessagesConfig,
@@ -68163,7 +68163,7 @@ async function getMemorySearchManager(params) {
68163
68163
  if (cached) return { manager: cached };
68164
68164
  }
68165
68165
  try {
68166
- const { QmdMemoryManager } = await import("./qmd-manager-B4bmSWg6.js");
68166
+ const { QmdMemoryManager } = await import("./qmd-manager-DbHyIFsT.js");
68167
68167
  const primary = await QmdMemoryManager.create({
68168
68168
  cfg: params.cfg,
68169
68169
  agentId: params.agentId,
@@ -68175,7 +68175,7 @@ async function getMemorySearchManager(params) {
68175
68175
  const wrapper = new FallbackMemoryManager({
68176
68176
  primary,
68177
68177
  fallbackFactory: async () => {
68178
- const { MemoryIndexManager } = await import("./manager-BNDUt5V7.js").then((n) => n.t);
68178
+ const { MemoryIndexManager } = await import("./manager-Edt-T8Bi.js").then((n) => n.t);
68179
68179
  return await MemoryIndexManager.get(params);
68180
68180
  }
68181
68181
  }, () => {
@@ -68190,7 +68190,7 @@ async function getMemorySearchManager(params) {
68190
68190
  }
68191
68191
  }
68192
68192
  try {
68193
- const { MemoryIndexManager } = await import("./manager-BNDUt5V7.js").then((n) => n.t);
68193
+ const { MemoryIndexManager } = await import("./manager-Edt-T8Bi.js").then((n) => n.t);
68194
68194
  return { manager: await MemoryIndexManager.get(params) };
68195
68195
  } catch (err) {
68196
68196
  return {
@@ -75968,7 +75968,7 @@ function createPluginRuntime(options = {}) {
75968
75968
  workStates: readTaskWorkStates
75969
75969
  },
75970
75970
  resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
75971
- sessions: { startUserRun: async (params) => (await import("./user-run-recording-Dw1uyV3d.js").then((n) => n.n)).startUserSessionRun(params) }
75971
+ sessions: { startUserRun: async (params) => (await import("./user-run-recording-BsWiQH6f.js").then((n) => n.n)).startUserSessionRun(params) }
75972
75972
  };
75973
75973
  Object.defineProperty(runtime, "analysis", {
75974
75974
  enumerable: true,
@@ -77528,7 +77528,7 @@ async function runBeforeToolCallHook(args) {
77528
77528
  const params = args.params;
77529
77529
  if (args.ctx?.sessionKey) {
77530
77530
  const { getDiagnosticSessionState } = await import("./diagnostic-session-state-jW46P4IL.js").then((n) => n.n);
77531
- const { logToolLoopAction } = await import("./diagnostic-DutvZ2o1.js").then((n) => n.n);
77531
+ const { logToolLoopAction } = await import("./diagnostic-dKeDyhIs.js").then((n) => n.n);
77532
77532
  const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-B-v0TDX5.js");
77533
77533
  const sessionState = getDiagnosticSessionState({
77534
77534
  sessionKey: args.ctx.sessionKey,
@@ -82376,7 +82376,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
82376
82376
  * Throws if the connection is not open.
82377
82377
  */
82378
82378
  send(event) {
82379
- if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
82379
+ if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
82380
82380
  this.ws.send(JSON.stringify(event));
82381
82381
  }
82382
82382
  /**
@@ -82393,7 +82393,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
82393
82393
  * Returns true if the WebSocket is currently open and ready to send.
82394
82394
  */
82395
82395
  isConnected() {
82396
- return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
82396
+ return this.ws !== null && this.ws.readyState === WebSocket$1.OPEN;
82397
82397
  }
82398
82398
  /**
82399
82399
  * Permanently closes the WebSocket connection and disables auto-reconnect.
@@ -82403,7 +82403,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
82403
82403
  this._cancelRetryTimer();
82404
82404
  if (this.ws) {
82405
82405
  this.ws.removeAllListeners();
82406
- if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
82406
+ if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.CONNECTING) this.ws.close(1e3, "Client closed");
82407
82407
  this.ws = null;
82408
82408
  }
82409
82409
  }
@@ -82413,7 +82413,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
82413
82413
  reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
82414
82414
  return;
82415
82415
  }
82416
- const socket = new WebSocket(this.wsUrl, { headers: {
82416
+ const socket = new WebSocket$1(this.wsUrl, { headers: {
82417
82417
  Authorization: `Bearer ${this.apiKey}`,
82418
82418
  "OpenAI-Beta": "responses-websocket=v1"
82419
82419
  } });