wednesdayai 0.5.1-dev.40 → 0.5.1-dev.41

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 (352) hide show
  1. package/dist/{agent-scope-BudmZlc1.js → agent-scope-CXfIHPTl.js} +3 -3
  2. package/dist/{agent-scope-BJFJ0deZ.js → agent-scope-DUbhjnHb.js} +18 -18
  3. package/dist/{agent-turn-execute-CIlMMXNu.js → agent-turn-execute-8DU-jztX.js} +168 -168
  4. package/dist/{agent-turn-runner-C5FiRTJg.js → agent-turn-runner-BJqs23F_.js} +6 -6
  5. package/dist/{agent-turn-runner-SxjOzPCD.js → agent-turn-runner-DHc4lH66.js} +6 -6
  6. package/dist/{api-key-rotation-BWj1Itf-.js → api-key-rotation-B8RAiYZ_.js} +2 -2
  7. package/dist/{api-key-rotation-DzXkIU1m.js → api-key-rotation-PK29aYV9.js} +2 -2
  8. package/dist/{audio-preflight-CKxOmHZL.js → audio-preflight-Cio-wP6C.js} +22 -22
  9. package/dist/{audio-preflight-E-nHdi7I.js → audio-preflight-DaYu-alJ.js} +27 -27
  10. package/dist/{audio-transcription-runner-Cc-hAbE1.js → audio-transcription-runner-DW04B1B-.js} +26 -26
  11. package/dist/{audio-transcription-runner-DrIyj8a5.js → audio-transcription-runner-D_-_mf4m.js} +25 -25
  12. package/dist/build-info.json +3 -3
  13. package/dist/bundled/boot-md/handler.js +58 -58
  14. package/dist/bundled/bootstrap-extra-files/handler.js +5 -5
  15. package/dist/bundled/command-logger/handler.js +2 -2
  16. package/dist/bundled/session-journal/handler.js +58 -58
  17. package/dist/bundled/session-memory/handler.js +58 -58
  18. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  19. package/dist/{chat-content-CL44f6Ub.js → chat-content-DIjp-kW-.js} +36 -36
  20. package/dist/{chat-content-BgW4rG28.js → chat-content-tQ21BnhN.js} +24 -24
  21. package/dist/{plugin-sdk/chrome-DML7V0HT.js → chrome-C9TkYQeh.js} +26 -26
  22. package/dist/{chrome-DNTX4D1k.js → chrome-DxiDoVpi.js} +13 -13
  23. package/dist/{chunk-BEuk6eCG.js → chunk-50mU2Avf.js} +3 -3
  24. package/dist/{chunk-BHQuzJtJ.js → chunk-DCCRrNDr.js} +3 -3
  25. package/dist/{command-queue-CyJUnsMn.js → command-queue-De2GI8TP.js} +1 -1
  26. package/dist/{command-queue-D_saM8MV.js → command-queue-yDJ733aN.js} +1 -1
  27. package/dist/{command-registry-xYf1aBOy.js → command-registry-Ip0F63vx.js} +4 -4
  28. package/dist/{commands-registry-CNVoO37I.js → commands-registry-C3LKhQLY.js} +2 -2
  29. package/dist/{commands-registry-C-BDBl_b.js → commands-registry-CzTzqbi9.js} +2 -2
  30. package/dist/{completion-cli-od6mAB_x.js → completion-cli-BFHL_SSq.js} +2 -2
  31. package/dist/{completion-cli-BIuMSnSA.js → completion-cli-EqOcxJpx.js} +1 -1
  32. package/dist/{config-CPcuaNsB.js → config-D5tWLhng.js} +26 -26
  33. package/dist/config.js +3 -3
  34. package/dist/{credentials-DnIj4HtR.js → credentials-BAWD9O8L.js} +1 -1
  35. package/dist/{credentials-2Kd9Ahu7.js → credentials-DdZjLLBj.js} +1 -1
  36. package/dist/{deliver-Ap_fWjsf.js → deliver-Cqo4_R0v.js} +14 -14
  37. package/dist/{deliver-DUUEMT-w.js → deliver-DeMElZFE.js} +29 -29
  38. package/dist/{diagnostic-YRGuisNG.js → diagnostic-BqFtliY1.js} +3 -3
  39. package/dist/{diagnostic--vAGyKdB.js → diagnostic-Nq6B3DZr.js} +3 -3
  40. package/dist/{doctor-completion-xR-LI2Kc.js → doctor-completion-CNBGQIUD.js} +1 -1
  41. package/dist/{doctor-completion-B3oIZ4R2.js → doctor-completion-W6Xmw25w.js} +1 -1
  42. package/dist/entry.js +2 -2
  43. package/dist/{plugin-sdk/errors-BH3DYZVB.js → errors-BWpk4nzX.js} +1 -1
  44. package/dist/{errors-DnOtx_vg.js → errors-D8k7j4A4.js} +1 -1
  45. package/dist/{fetch-ChtdmCYU.js → fetch-CHncmQms.js} +8 -8
  46. package/dist/{plugin-sdk/fetch-BxGJD3sH.js → fetch-CLvElPgY.js} +1 -1
  47. package/dist/{plugin-sdk/fetch-BqFNIJpI.js → fetch-DG4n5iR6.js} +1 -1
  48. package/dist/{fetch-BJ9kDOw8.js → fetch-TzOudNO4.js} +7 -7
  49. package/dist/{fetch-guard-CRERUrFK.js → fetch-guard-BZlxmZcA.js} +2 -2
  50. package/dist/{fetch-guard-BnKTeFyb.js → fetch-guard-kz-XQlCx.js} +2 -2
  51. package/dist/{frontmatter-CqznVm7P.js → frontmatter-BDLxOane.js} +5 -5
  52. package/dist/{fs-safe-C3qJHn62.js → fs-safe-BH37Yhl8.js} +25 -25
  53. package/dist/{fs-safe-D96d8swI.js → fs-safe-BjrptUz1.js} +26 -26
  54. package/dist/{gateway-cli-B0WWrjnY.js → gateway-cli-D17zAbrY.js} +20 -10
  55. package/dist/{gateway-cli-BRUhDHZW.js → gateway-cli-DktZhN9y.js} +20 -10
  56. package/dist/{image-ops-BiBI-uAf.js → image-ops-BWgZn39_.js} +1 -1
  57. package/dist/{image-ops-BTgGxcIG.js → image-ops-C54shfkj.js} +11 -11
  58. package/dist/index.js +1 -1
  59. package/dist/{ir-IKFrcD2H.js → ir-Btci3Wse.js} +8 -8
  60. package/dist/{ir-Drj2D5Gr.js → ir-SWdqg35s.js} +5 -5
  61. package/dist/{json-files-DNv3G6Vg.js → json-files-C3L53Qrl.js} +7 -7
  62. package/dist/{legacy-names-Bx5L8LWT.js → legacy-names-BKv-k5-D.js} +1 -1
  63. package/dist/llm-slug-generator.js +58 -58
  64. package/dist/{manager-Cb_Lde6Q.js → manager-BPk0HUHz.js} +14 -14
  65. package/dist/{manager-C9H5Oflk.js → manager-Nw8a10KA.js} +18 -18
  66. package/dist/{markdown-tables-Crj_Y0Qx.js → markdown-tables-BJqhUgli.js} +2 -2
  67. package/dist/{markdown-tables-BvoP0b-H.js → markdown-tables-By4yQcHS.js} +2 -2
  68. package/dist/{model-selection-2-pBJbaC.js → model-selection-JA-6f5ss.js} +84 -84
  69. package/dist/{models-config-7yfOGOZY.js → models-config-Cbzv_acs.js} +2 -2
  70. package/dist/{models-config-DkEpc_7A.js → models-config-TH00YNHC.js} +7 -7
  71. package/dist/{nudge-BR_K1LnT.js → nudge-DVGzMWUi.js} +16 -16
  72. package/dist/{nudge-CcGwhSSL.js → nudge-Da1ePscI.js} +35 -35
  73. package/dist/{onboard-CRHyyv-F.js → onboard-D2AmYbm8.js} +1 -1
  74. package/dist/{onboard-CYQVIEKp.js → onboard-PJee12bv.js} +1 -1
  75. package/dist/{onboarding-CDHMZKiy.js → onboarding-C1f94rh1.js} +1 -1
  76. package/dist/{onboarding-vLVDuEr7.js → onboarding-DXRhSAcO.js} +1 -1
  77. package/dist/{onboarding.finalize-D3hX9K5R.js → onboarding.finalize-C0RUJoiz.js} +4 -4
  78. package/dist/{onboarding.finalize-BDJnDt6t.js → onboarding.finalize-Calv0MIe.js} +3 -3
  79. package/dist/{outbound-attachment-CxvBVgcJ.js → outbound-attachment-CZwlqfbE.js} +2 -2
  80. package/dist/{outbound-attachment-DFIzmC4e.js → outbound-attachment-DAUmCye_.js} +2 -2
  81. package/dist/{outbound-message-hooks-C9zh-qk0.js → outbound-message-hooks-Bqu2fu_R.js} +4 -4
  82. package/dist/{outbound-message-hooks-DfRORyCc.js → outbound-message-hooks-CIrC0qAA.js} +5 -5
  83. package/dist/{pairing-files-ByediFgs.js → pairing-files-B1ukutA_.js} +1 -1
  84. package/dist/{path-alias-guards-B9AcbQl6.js → path-alias-guards-CGcezGX3.js} +3 -3
  85. package/dist/{path-alias-guards-BXXI1YTn.js → path-alias-guards-CgO2FpVx.js} +1 -1
  86. package/dist/{pi-embedded-Dp5uUcq6.js → pi-embedded-W4tWwQw6.js} +254 -254
  87. package/dist/{pi-embedded-utils-Dc-LEWCI.js → pi-embedded-utils-B6eeyw2H.js} +3 -3
  88. package/dist/{pi-embedded-utils-CQ3KPjMe.js → pi-embedded-utils-DF7kfQx2.js} +3 -3
  89. package/dist/{pi-model-discovery-C4WE3mR2.js → pi-model-discovery-VTZCKDCd.js} +1 -1
  90. package/dist/{pi-model-discovery-B44lshxv.js → pi-model-discovery-ym24jTFO.js} +7 -7
  91. package/dist/plugin-sdk/{agent-scope-Cy5bPtkD.js → agent-scope-BnbrZIzh.js} +1 -1
  92. package/dist/plugin-sdk/{agent-turn-execute-Cr_GYkDb.js → agent-turn-execute-Bj1_MqWi.js} +79 -79
  93. package/dist/plugin-sdk/agent-turn-execute-D0szeKs8.js +61 -0
  94. package/dist/plugin-sdk/{agent-turn-runner-D3tAlzpP.js → agent-turn-runner-fV3h6ELM.js} +6 -6
  95. package/dist/plugin-sdk/{agent-turn-runner-CBR6kAt-.js → agent-turn-runner-zbex5xar.js} +6 -6
  96. package/dist/plugin-sdk/{api-key-rotation-Dmd_whf1.js → api-key-rotation-DbJkvwYN.js} +1 -1
  97. package/dist/plugin-sdk/{api-key-rotation-BKcVxTy8.js → api-key-rotation-Dpyf5O6z.js} +2 -2
  98. package/dist/plugin-sdk/{audio-preflight-2XKqIXAx.js → audio-preflight-DhIYyWh0.js} +14 -14
  99. package/dist/plugin-sdk/{audio-preflight-BVKGoA22.js → audio-preflight-DlNHpUpW.js} +23 -23
  100. package/dist/plugin-sdk/{audio-transcription-runner-Cvfignlt.js → audio-transcription-runner-BNWmQAJ3.js} +10 -10
  101. package/dist/plugin-sdk/{audio-transcription-runner-2ziIuais.js → audio-transcription-runner-DbjdWQRu.js} +8 -8
  102. package/dist/plugin-sdk/{auth-profiles-BxDhfCHT.js → auth-profiles-DPd1Ol-P.js} +1 -1
  103. package/dist/plugin-sdk/{chat-content-DWJ_WMLQ.js → chat-content-CEMoDe5q.js} +9 -9
  104. package/dist/{chrome-D1006Mu2.js → plugin-sdk/chrome-CobI3ImG.js} +8 -8
  105. package/dist/plugin-sdk/{chrome-Djvom4Ij.js → chrome-DwoV5WFU.js} +6 -6
  106. package/dist/plugin-sdk/{chunk-SR4Ydfza.js → chunk-C3M1IW7W.js} +2 -2
  107. package/dist/plugin-sdk/{chunk-Bh4ffo9K.js → chunk-CBTJQenE.js} +3 -3
  108. package/dist/plugin-sdk/{command-queue-DUO9-NRr.js → command-queue-DUuIiwvi.js} +2 -2
  109. package/dist/plugin-sdk/{command-queue-DxcAKezg.js → command-queue-hSL_BIod.js} +1 -1
  110. package/dist/plugin-sdk/{commands-registry-DnePgYTq.js → commands-registry-DPCcTIwi.js} +2 -2
  111. package/dist/plugin-sdk/{commands-registry-CCiWhIrU.js → commands-registry-vhM5U22x.js} +2 -2
  112. package/dist/plugin-sdk/{credentials-DJMyq23O.js → credentials-BgX_xjTe.js} +1 -1
  113. package/dist/plugin-sdk/{credentials-BFdx8hCQ.js → credentials-oF38Hm9r.js} +1 -1
  114. package/dist/plugin-sdk/{deliver-Cf-VdZA7.js → deliver-CkQB8s_s.js} +14 -14
  115. package/dist/plugin-sdk/deliver-DTstMBfw.js +34 -0
  116. package/dist/plugin-sdk/{deliver-D3LWZpv1.js → deliver-lkeqXp0v.js} +11 -11
  117. package/dist/plugin-sdk/{diagnostic-BXgGsRnq.js → diagnostic-TucKQ5Fk.js} +2 -2
  118. package/dist/plugin-sdk/{diagnostic-BpXW-Rhw.js → diagnostic-nUTVaBEe.js} +3 -3
  119. package/dist/plugin-sdk/{diagnostic-session-state-Y-_mHHE2.js → diagnostic-session-state-C74O1QW2.js} +1 -1
  120. package/dist/{errors-DnS9ngr1.js → plugin-sdk/errors-BcCM5PTR.js} +1 -1
  121. package/dist/{fetch-CrTLz8wd.js → plugin-sdk/fetch-BEOHdT2e.js} +1 -1
  122. package/dist/{fetch-DJPbv7La.js → plugin-sdk/fetch-BNHoA66Z.js} +1 -1
  123. package/dist/plugin-sdk/{fetch-CpY6mDmQ.js → fetch-D7rvWjfk.js} +2 -2
  124. package/dist/plugin-sdk/{fetch-B9WuvLLv.js → fetch-DV_cKD5m.js} +7 -7
  125. package/dist/plugin-sdk/{fetch-guard-BEue3kvx.js → fetch-guard-CQIsGUgZ.js} +1 -1
  126. package/dist/plugin-sdk/{fetch-guard-CJhIVznN.js → fetch-guard-Dpd7hJ0h.js} +2 -2
  127. package/dist/plugin-sdk/{fs-safe-BQ8e0fFk.js → fs-safe-CnAPtYPG.js} +3 -3
  128. package/dist/plugin-sdk/{image-ops-CqatVl0e.js → image-ops-1WkFRYfC.js} +1 -1
  129. package/dist/plugin-sdk/{inbound-context-CKtZsNVT.js → inbound-context-BdGImnhD.js} +1 -1
  130. package/dist/plugin-sdk/{ir-C1cLQG0N.js → ir-BnNIPrDz.js} +5 -5
  131. package/dist/plugin-sdk/{ir-Ep5lw12h.js → ir-D-nyt7yZ.js} +2 -2
  132. package/dist/plugin-sdk/{manager-DyYd10T2.js → manager-3Bw8zhA3.js} +4 -4
  133. package/dist/plugin-sdk/manager-BexdJt3o.js +14 -0
  134. package/dist/plugin-sdk/{manager-xGWNrW5i.js → manager-uIw894nB.js} +7 -7
  135. package/dist/plugin-sdk/{markdown-tables-DnMUQn1V.js → markdown-tables-D6Jl1s9s.js} +2 -2
  136. package/dist/plugin-sdk/{markdown-tables-B4G-uOPz.js → markdown-tables-DczIA0hC.js} +2 -2
  137. package/dist/plugin-sdk/{model-auth-pNsZhRxq.js → model-auth-Beiv1ujI.js} +7 -7
  138. package/dist/plugin-sdk/{models-config-DsHaLeW3.js → models-config-DPG3UP6h.js} +1 -1
  139. package/dist/plugin-sdk/{models-config-d-LFEKVs.js → models-config-DrzOHxl5.js} +2 -2
  140. package/dist/plugin-sdk/{monitor-CbKokdL4.js → monitor-BQWiYAwC.js} +77 -77
  141. package/dist/plugin-sdk/{nudge-z8ozyWd6.js → nudge-Cp00v46W.js} +11 -11
  142. package/dist/plugin-sdk/{nudge-BvirROp6.js → nudge-czM3OOTT.js} +8 -8
  143. package/dist/plugin-sdk/{openai-compatible-video-BxPbkLMy.js → openai-compatible-video-Dy57wpNv.js} +7 -7
  144. package/dist/plugin-sdk/{outbound-attachment-DkIWM5yK.js → outbound-attachment-BoSR20RK.js} +2 -2
  145. package/dist/plugin-sdk/{outbound-attachment-BrHUWeqB.js → outbound-attachment-JHREBMfy.js} +1 -1
  146. package/dist/plugin-sdk/{outbound-message-hooks-DsAvrOUy.js → outbound-message-hooks-eUNVCJ0m.js} +4 -4
  147. package/dist/plugin-sdk/{path-alias-guards-CF0cvXKB.js → path-alias-guards-D1I2TIj4.js} +1 -1
  148. package/dist/plugin-sdk/{pi-embedded-helpers-Ctve63Vr.js → pi-embedded-helpers-BRSkUtFR.js} +15 -15
  149. package/dist/plugin-sdk/{pi-embedded-utils-cecBA96E.js → pi-embedded-utils-DcsHTJ1m.js} +3 -3
  150. package/dist/plugin-sdk/{pi-embedded-utils-6FFFlkbd.js → pi-embedded-utils-JXHsJfhx.js} +1 -1
  151. package/dist/plugin-sdk/{pi-model-discovery-BnsoI-E6.js → pi-model-discovery-CKGA60jT.js} +2 -2
  152. package/dist/plugin-sdk/{pi-model-discovery-CMOEq078.js → pi-model-discovery-HVno_0HD.js} +1 -1
  153. package/dist/plugin-sdk/provider-dispatcher-Cq6Acy3h.js +61 -0
  154. package/dist/plugin-sdk/provider-media-understanding.js +20 -20
  155. package/dist/plugin-sdk/{proxy-env-jBCtIiJH.js → proxy-env-D9QKz5Mq.js} +1 -1
  156. package/dist/plugin-sdk/{pw-ai-Bl2Z9GYg.js → pw-ai-B1OqkFDb.js} +10 -10
  157. package/dist/plugin-sdk/{pw-ai-IAdR6aX7.js → pw-ai-B_6I8TGZ.js} +4 -4
  158. package/dist/plugin-sdk/{qmd-manager-DERrmogO.js → qmd-manager-CIgxgs0D.js} +2 -2
  159. package/dist/plugin-sdk/{qmd-manager-DY9c1S_2.js → qmd-manager-Ip6QnhA7.js} +8 -8
  160. package/dist/plugin-sdk/{qmd-scope-C3rw3Qjd.js → qmd-scope-DMNjwnEQ.js} +1 -1
  161. package/dist/plugin-sdk/{query-expansion-CWCvbGoy.js → query-expansion-CECAX0Pe.js} +1 -1
  162. package/dist/plugin-sdk/{query-expansion-BhXha2GI.js → query-expansion-DV-ECmRb.js} +2 -2
  163. package/dist/plugin-sdk/{recorder-xWMrt--U.js → recorder-C6OpZN3o.js} +1 -1
  164. package/dist/plugin-sdk/{recorder-DccHbgBz.js → recorder-XQ8ZjG7j.js} +2 -2
  165. package/dist/plugin-sdk/{redact-CXDVzhSq.js → redact-C3T6IWmQ.js} +1 -1
  166. package/dist/plugin-sdk/{registry-B-9fRLtl.js → registry-D9-EsIYH.js} +1 -1
  167. package/dist/plugin-sdk/{replies-BNtRlug2.js → replies-BhuMuYfa.js} +11 -11
  168. package/dist/plugin-sdk/{replies-CbnkLeUl.js → replies-ClN-Aak4.js} +4 -4
  169. package/dist/{replies-DAavcLc9.js → plugin-sdk/replies-HCqRS_IF.js} +5 -5
  170. package/dist/plugin-sdk/{reply-directives-CXKYiQC1.js → reply-directives-Bn4oBJnk.js} +2 -2
  171. package/dist/plugin-sdk/{reply-directives-CKNwlk_8.js → reply-directives-C69Fd8zO.js} +1 -1
  172. package/dist/plugin-sdk/{reply-prefix-DCeyas-6.js → reply-prefix-BQ-rDIAU.js} +1 -1
  173. package/dist/{reply-prefix-C08CPcgE.js → plugin-sdk/reply-prefix-CCyygbH2.js} +1 -1
  174. package/dist/plugin-sdk/{resolve-route-CsiTWvoi.js → resolve-route-Djrs4IWv.js} +3 -3
  175. package/dist/plugin-sdk/{resolve-route-t2HJkuDx.js → resolve-route-N9oe4tGM.js} +2 -2
  176. package/dist/plugin-sdk/{runs-B0mmuxPP.js → runs-0OTO0OVX.js} +12 -12
  177. package/dist/plugin-sdk/{runs-CSaP-UMd.js → runs-DK85oFoq.js} +7 -7
  178. package/dist/plugin-sdk/{runs-ByM3uA8B.js → runs-DN-UxJ44.js} +8 -8
  179. package/dist/plugin-sdk/{send-D0UAWWai.js → send-AstP-BDn.js} +8 -8
  180. package/dist/plugin-sdk/{send-BToCKtul.js → send-C8OYq5CD.js} +10 -10
  181. package/dist/plugin-sdk/send-CMAU8Lg8.js +23 -0
  182. package/dist/plugin-sdk/{send-CbbM7dcD.js → send-CVYVctJr.js} +6 -6
  183. package/dist/plugin-sdk/{send-hdgQBd4P.js → send-CciBIiE2.js} +4 -4
  184. package/dist/plugin-sdk/{send-rQhDBwIJ.js → send-CilPGWoe.js} +8 -8
  185. package/dist/plugin-sdk/{send-CTefF3Iw.js → send-CyKQnkbd.js} +6 -6
  186. package/dist/plugin-sdk/{send-Dgf6n9kX.js → send-D3hVSNy0.js} +6 -6
  187. package/dist/plugin-sdk/{send-qUR5w2lM.js → send-D5C72eu6.js} +7 -7
  188. package/dist/plugin-sdk/{send-CY2iq9C4.js → send-DFpY65tA.js} +10 -10
  189. package/dist/plugin-sdk/{send-BwuMsQ_p.js → send-DnJb7LiP.js} +8 -8
  190. package/dist/plugin-sdk/{send-BQYyBicH.js → send-dNeIyZEN.js} +5 -5
  191. package/dist/plugin-sdk/{session-context-E8Vv0lBU.js → session-context-4IeKkzGJ.js} +2 -2
  192. package/dist/plugin-sdk/{session-meta-_XFpsAgw.js → session-meta-BlMS0pts.js} +2 -2
  193. package/dist/plugin-sdk/{session-meta-B_alDqcD.js → session-meta-pKpwf1nQ.js} +1 -1
  194. package/dist/plugin-sdk/{sessions-DGyoDRbg.js → sessions-BUjbH5K1.js} +1 -1
  195. package/dist/plugin-sdk/{sessions-CkJfRajZ.js → sessions-BfBjVuaP.js} +4 -4
  196. package/dist/plugin-sdk/{skill-commands-D5O0FXiW.js → skill-commands-Bk_STwKa.js} +4 -4
  197. package/dist/plugin-sdk/{skill-commands-DJ9gv-vK.js → skill-commands-J-ZcPvqF.js} +3 -3
  198. package/dist/plugin-sdk/{skills-ByCpoIW7.js → skills-BArFQgKX.js} +6 -6
  199. package/dist/plugin-sdk/{skills-mfK8NK3f.js → skills-W6RHTFue.js} +1 -1
  200. package/dist/plugin-sdk/{ssrf-aLKAjCHj.js → ssrf-B2UnPTf3.js} +1 -1
  201. package/dist/plugin-sdk/{store-KaVQ5gHj.js → store-D8eITlWs.js} +2 -2
  202. package/dist/plugin-sdk/{subagent-registry-DyI22dHA.js → subagent-registry-Bek3q0nu.js} +44 -44
  203. package/dist/plugin-sdk/{subsystem-DGPv0F8I.js → subsystem-Btq0amiz.js} +4 -4
  204. package/dist/plugin-sdk/{tables-CONj5xDV.js → tables-Bj_zeTwr.js} +1 -1
  205. package/dist/plugin-sdk/{tables-Dt2IrV1k.js → tables-ohryoECJ.js} +1 -1
  206. package/dist/plugin-sdk/testing.js +44 -44
  207. package/dist/plugin-sdk/{tokens-DUGBy1gM.js → tokens-mfZMXas7.js} +1 -1
  208. package/dist/plugin-sdk/{tool-loop-detection-Cl4-Vsd_.js → tool-loop-detection-CnFqoQKh.js} +1 -1
  209. package/dist/plugin-sdk/{user-run-recording-C05KbS-o.js → user-run-recording-CAAdiBWD.js} +2 -2
  210. package/dist/plugin-sdk/{user-run-recording--8aaZMPs.js → user-run-recording-DQBPNzif.js} +2 -2
  211. package/dist/plugin-sdk/{ws-C7BGsi5P.js → ws-DN6RmfyQ.js} +1 -1
  212. package/dist/plugin-sdk/{ws-BzjQAveZ.js → ws-zaFiZiYP.js} +1 -1
  213. package/dist/{program-CcLb8Psv.js → program-DYZ4XAFZ.js} +2 -2
  214. package/dist/{program-context-X8qIC1Px.js → program-context-BM_flY1J.js} +6 -6
  215. package/dist/{prompt-select-styled-NrfLylYh.js → prompt-select-styled-BFW0tf77.js} +1 -1
  216. package/dist/{prompt-select-styled-DUTH4ST5.js → prompt-select-styled-Eb9ltCzM.js} +1 -1
  217. package/dist/{proxy-env-Bw8nAERJ.js → proxy-env-DKs0W5v1.js} +1 -1
  218. package/dist/{proxy-env-DdoaBr4H.js → proxy-env-DtzLr6mZ.js} +1 -1
  219. package/dist/{pw-ai-C6ZFN6As.js → pw-ai-CEk9Jaqd.js} +13 -13
  220. package/dist/{pw-ai-CV5A9Kt_.js → pw-ai-KPNOiYzf.js} +14 -14
  221. package/dist/{qmd-manager-Bw5dnMTy.js → qmd-manager-BFUaPUn-.js} +12 -12
  222. package/dist/{qmd-manager-BZSlXT1A.js → qmd-manager-BmiJlIMN.js} +23 -23
  223. package/dist/{qmd-scope-BOfwIKTy.js → qmd-scope-CUCeRWxr.js} +1 -1
  224. package/dist/{qmd-scope-0dG63o_w.js → qmd-scope-DLLTbQwp.js} +1 -1
  225. package/dist/{query-expansion-gzgHhq68.js → query-expansion-CbOJZTFH.js} +13 -13
  226. package/dist/{query-expansion-BDAO12Ha.js → query-expansion-DLN1Vjgr.js} +11 -11
  227. package/dist/{recorder-ciGDu2oO.js → recorder-CndF3Klo.js} +2 -2
  228. package/dist/{recorder-Bp_onP2d.js → recorder-jnBdoV4s.js} +2 -2
  229. package/dist/{redact-Cp-v7ZNA.js → redact-B6sHOW29.js} +1 -1
  230. package/dist/{redact-D--orJnz.js → redact-C8xjZT-F.js} +1 -1
  231. package/dist/{register.maintenance-CFd160fT.js → register.maintenance-CNiAi_Bg.js} +5 -5
  232. package/dist/{register.maintenance-Dc0j0tvi.js → register.maintenance-Dq3k6jFc.js} +4 -4
  233. package/dist/{register.onboard-u0pMgMv4.js → register.onboard-DGBJtyFX.js} +2 -2
  234. package/dist/{register.onboard-C-lkIY7d.js → register.onboard-DqGIfQsO.js} +2 -2
  235. package/dist/{register.setup-BAiTfEey.js → register.setup-BdAQ_7gM.js} +2 -2
  236. package/dist/{register.setup-D6hviI6L.js → register.setup-Ckb9Hpks.js} +2 -2
  237. package/dist/{register.subclis-3YVvoBSB.js → register.subclis-Cn5DS2Th.js} +3 -3
  238. package/dist/{plugin-sdk/replies-CyyZdjYH.js → replies-CoEfccKv.js} +5 -5
  239. package/dist/{replies-EZyamg1p.js → replies-lKn2Mrkb.js} +5 -5
  240. package/dist/{reply-directives-B_wfvntf.js → reply-directives-BclP76MA.js} +2 -2
  241. package/dist/{reply-directives-DMPiBIx3.js → reply-directives-Djre3xI1.js} +2 -2
  242. package/dist/{reply-prefix-DLf0nmds.js → reply-prefix-BTUna5vE.js} +1 -1
  243. package/dist/{plugin-sdk/reply-prefix-DL3DiQEo.js → reply-prefix-DiyN1oc7.js} +1 -1
  244. package/dist/{resolve-route-GBqD8iPk.js → resolve-route-BmA3wi9D.js} +4 -4
  245. package/dist/{resolve-route-BP1OpZqn.js → resolve-route-ClI5pltd.js} +3 -3
  246. package/dist/{run-main-BBLzm5df.js → run-main-BYnz7Ou5.js} +3 -3
  247. package/dist/{runs-EvR8ugp4.js → runs-DffCseDM.js} +9 -9
  248. package/dist/{runs-Bf_VVVBE.js → runs-efmPtrdw.js} +8 -8
  249. package/dist/{send-C0kXNcyD.js → send-B3c56zXa.js} +8 -8
  250. package/dist/{send-B5XVAKWg.js → send-BZrEBJKt.js} +7 -7
  251. package/dist/{send-CNMPyQyQ.js → send-CLnmNoGF.js} +7 -7
  252. package/dist/{send-BVfxa93K.js → send-ChgWfhHL.js} +8 -8
  253. package/dist/{send-12uxFQQR.js → send-Co-6tb50.js} +8 -8
  254. package/dist/{send-oHqfck_E.js → send-DkHxW8Pg.js} +6 -6
  255. package/dist/{send-BCEsHNBh.js → send-NLqVlKnJ.js} +6 -6
  256. package/dist/{send-BOm8dqOB.js → send-TVImOmCV.js} +13 -13
  257. package/dist/{session-meta-BCY_pfg7.js → session-meta-CE9Oi0tA.js} +1 -1
  258. package/dist/{session-meta-C_fW_AWG.js → session-meta-DDeeNkQv.js} +1 -1
  259. package/dist/{sessions-IqyeyMXp.js → sessions-BgTvNzNv.js} +4 -4
  260. package/dist/{sessions-DODCZ4JK.js → sessions-DkSPJ2k9.js} +5 -5
  261. package/dist/{skill-commands-DYJDIogS.js → skill-commands-BOG-33Ja.js} +5 -5
  262. package/dist/{skill-commands-5VtV6o_q.js → skill-commands-K9_D6a_V.js} +7 -7
  263. package/dist/{skills-jb4bSwT6.js → skills-Ci9t7Gax.js} +4 -4
  264. package/dist/{skills-B3DYwqF5.js → skills-CrNvxe8D.js} +21 -21
  265. package/dist/{store-CsI6l-8d.js → store-B6wZFu_5.js} +7 -7
  266. package/dist/{store-DnvoAjAE.js → store-DJPbhmBq.js} +7 -7
  267. package/dist/{subsystem-BTMrlJ-R.js → subsystem-B9soUuXQ.js} +7 -7
  268. package/dist/{subsystem-DoQFckDJ.js → subsystem-cFv2jJm-.js} +71 -71
  269. package/dist/{tables-CuZTAY1e.js → tables-BaYGY_Hk.js} +1 -1
  270. package/dist/{tables-BTIafSNy.js → tables-CYp9eWuv.js} +1 -1
  271. package/dist/{tokens-C8E7C2l5.js → tokens-DwuYAzrE.js} +1 -1
  272. package/dist/{tokens-qfLiLlNv.js → tokens-KbWGDYPC.js} +1 -1
  273. package/dist/{tool-loop-detection-CiexABx1.js → tool-loop-detection-B2G2F3vq.js} +1 -1
  274. package/dist/{tool-loop-detection-4AIUOil2.js → tool-loop-detection-BwJFCGqI.js} +2 -2
  275. package/dist/{update-cli-D4CRTu-Y.js → update-cli-BFg_CRum.js} +5 -5
  276. package/dist/{update-cli-q45uqAKK.js → update-cli-BfwXa0Uk.js} +4 -4
  277. package/dist/{user-run-recording-D-7cPbdf.js → user-run-recording-B_-S5l8q.js} +2 -2
  278. package/dist/{user-run-recording-4Dhev2ED.js → user-run-recording-DIqKTo0U.js} +2 -2
  279. package/dist/{workspace-DOy2M7yN.js → workspace-D5PKyvm-.js} +26 -26
  280. package/dist/{ws-D51UDdBH.js → ws-CSU92Z2r.js} +1 -1
  281. package/dist/{ws-D916JacH.js → ws-CmKUpGwq.js} +1 -1
  282. package/extensions/acpx/package.json +1 -1
  283. package/extensions/anthropic/package.json +1 -1
  284. package/extensions/bifrost/package.json +1 -1
  285. package/extensions/bluebubbles/package.json +1 -1
  286. package/extensions/copilot-proxy/package.json +1 -1
  287. package/extensions/deepgram/package.json +1 -1
  288. package/extensions/deepinfra/package.json +1 -1
  289. package/extensions/diagnostics-otel/package.json +1 -1
  290. package/extensions/diffs/package.json +1 -1
  291. package/extensions/discord/package.json +1 -1
  292. package/extensions/dream-cycle/package.json +1 -1
  293. package/extensions/elevenlabs/package.json +1 -1
  294. package/extensions/feishu/package.json +1 -1
  295. package/extensions/gemini-search/package.json +1 -1
  296. package/extensions/google/package.json +1 -1
  297. package/extensions/google-gemini-cli-auth/package.json +1 -1
  298. package/extensions/googlechat/package.json +1 -1
  299. package/extensions/grok-search/package.json +1 -1
  300. package/extensions/groq/package.json +1 -1
  301. package/extensions/imessage/package.json +1 -1
  302. package/extensions/irc/package.json +1 -1
  303. package/extensions/kimi-search/package.json +1 -1
  304. package/extensions/kokoro/package.json +1 -1
  305. package/extensions/learning-core/package.json +1 -1
  306. package/extensions/line/package.json +1 -1
  307. package/extensions/llm-task/package.json +1 -1
  308. package/extensions/lobster/package.json +1 -1
  309. package/extensions/matrix/CHANGELOG.md +1 -1
  310. package/extensions/matrix/package.json +1 -1
  311. package/extensions/mattermost/package.json +1 -1
  312. package/extensions/memory-core/package.json +1 -1
  313. package/extensions/memory-lancedb/package.json +1 -1
  314. package/extensions/minimax/package.json +1 -1
  315. package/extensions/minimax-portal-auth/package.json +1 -1
  316. package/extensions/mistral/package.json +1 -1
  317. package/extensions/moonshot/package.json +1 -1
  318. package/extensions/msteams/CHANGELOG.md +1 -1
  319. package/extensions/msteams/package.json +1 -1
  320. package/extensions/nextcloud-talk/package.json +1 -1
  321. package/extensions/nostr/CHANGELOG.md +1 -1
  322. package/extensions/nostr/package.json +1 -1
  323. package/extensions/open-prose/package.json +1 -1
  324. package/extensions/openai/package.json +1 -1
  325. package/extensions/openai-realtime/package.json +1 -1
  326. package/extensions/openrouter/package.json +1 -1
  327. package/extensions/perplexity-search/package.json +1 -1
  328. package/extensions/searxng-search/package.json +1 -1
  329. package/extensions/signal/package.json +1 -1
  330. package/extensions/slack/package.json +1 -1
  331. package/extensions/synology-chat/package.json +1 -1
  332. package/extensions/telegram/package.json +1 -1
  333. package/extensions/tlon/package.json +1 -1
  334. package/extensions/twitch/CHANGELOG.md +1 -1
  335. package/extensions/twitch/package.json +1 -1
  336. package/extensions/ui-surfaces/package.json +1 -1
  337. package/extensions/voice-call/CHANGELOG.md +1 -1
  338. package/extensions/voice-call/package.json +1 -1
  339. package/extensions/whatsapp/package.json +1 -1
  340. package/extensions/zai/package.json +1 -1
  341. package/extensions/zalo/CHANGELOG.md +1 -1
  342. package/extensions/zalo/package.json +1 -1
  343. package/extensions/zalouser/CHANGELOG.md +1 -1
  344. package/extensions/zalouser/package.json +1 -1
  345. package/package.json +1 -1
  346. package/dist/github-copilot-token-DrVydgnY.js +0 -106
  347. package/dist/paths-BIDPYPVC.js +0 -233
  348. package/dist/plugin-sdk/agent-turn-execute-Co_96UFp.js +0 -61
  349. package/dist/plugin-sdk/deliver-5MyFMK8o.js +0 -34
  350. package/dist/plugin-sdk/manager-B9WMktLu.js +0 -14
  351. package/dist/plugin-sdk/provider-dispatcher-uLJ5yzx1.js +0 -61
  352. package/dist/plugin-sdk/send-vp7qbuoy.js +0 -23
@@ -1,68 +1,68 @@
1
- import { a as isBlockedHostnameOrIp, d as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-jBCtIiJH.js";
2
- import { $ as resolveSessionFilePathOptions, $n as getCustomProviderApiKey, $t as GATEWAY_CLIENT_NAMES, Aa as stringEnum, Ai as getChatChannelMeta, An as modelKey, At as listEnabledDiscordAccounts, Bi as requireActivePluginRegistry, Br as DEFAULT_SAFE_BINS, Bt as normalizeDeliveryContext, Ci as resolveMemorySlotDecision, Cn as applyMergePatch, Cr as setConfigOverride, Ct as resolveSignalAccount, D as closeReplacedConfiguredSessionStorageRuntime, Da as channelTargetSchema, Di as readManifestNamespace, Dn as buildModelAliasIndex, Dr as setConfigValueAtPath, Dt as resolveWhatsAppAccount, E as closeConfiguredSessionStorageRuntime, Ei as safeStatSync, En as buildConfiguredAllowlistKeys, Er as parseConfigPath, Et as hasAnyWhatsAppAuth, F as recordSessionMetaFromInbound, Fa as discardBufferedPluginTaskPasses, Fi as resolveChannelConfigId, Fn as resolveDefaultModelForAgent, Fr as normalizeScpRemoteHost, Ft as resolveChannelGroupToolsPolicy, G as parseSessionIndexRecordKey, Gi as resolveSlackNativeStreaming, Gn as retryAsync, Gr as isDispatchWrapperExecutable, Gt as isInternalMessageChannel, H as mergeSessionEntry, Hi as isSafeExecutableValue, Hr as resolveAllowlistCandidatePath, Ht as INTERNAL_MESSAGE_CHANNEL, I as refreshConfiguredSessionBindingEntry, Ia as listBufferedPluginTaskPasses, Ii as getActiveGatewayPluginRegistry, In as resolveModelRefFromString, Ir as parseNonNegativeByteSize, It as resolveAccountEntry, Jn as buildAssistantMessage, Jr as unwrapKnownShellMultiplexerInvocation, Jt as normalizeMessageChannel, Ki as resolveSlackStreamingMode, Kn as OLLAMA_NATIVE_BASE_URL, Kr as isShellWrapperExecutable, Kt as isMarkdownCapableMessageChannel, L as updateLastRoute, La as replaceBufferedPluginTaskPasses, Li as getActivePluginRegistry, Ln as resolveReasoningDefault, Lt as deliveryContextFromSession, M as loadSessionStoreFromDisk, Ma as actionHasTarget, Mi as normalizeAnyChannelId, Mn as normalizeProviderId, Mt as normalizeDiscordToken, N as prepareConfiguredSessionStorageRuntimeActivation, Na as actionRequiresTarget, Ni as normalizeChannelId$2, Nn as parseModelRef, Nr as resolveIMessageAttachmentRoots, Nt as resolveChannelGroupPolicy, O as commitPreparedConfiguredSessionStorageRuntimeActivation, Oa as channelTargetsSchema, On as findNormalizedProviderValue, Or as unsetConfigValueAtPath, Ot as resolveIMessageAccount, P as readSessionUpdatedAt, Pi as normalizeChatChannelId, Pn as resolveConfiguredModelRef, Pr as resolveIMessageRemoteAttachmentRoots, Pt as resolveChannelGroupRequireMention, Q as resolveSessionFilePath, Qi as ensureAuthProfileStore, Qn as getApiKeyForModel, Qt as GATEWAY_CLIENT_MODES, R as updateSessionStore, Ra as RecoveryAdmissionError, Ri as getActivePluginRegistryKey, Rn as resolveSubagentSpawnModelSelection, Rr as secretRefKey, Rt as deliveryContextKey, S as getConversationReadQuery, Sa as readTaskWorkStates, Si as resolveEffectiveEnableState, Sn as resolveSafeBinProfiles, Sr as resetConfigOverrides, St as listEnabledSignalAccounts, Ti as isPathInside, Tn as buildAllowedModelSet, Tr as getConfigValueAtPath, Tt as normalizeWhatsAppTarget, U as resolveFreshSessionTotalTokens, Ui as mapStreamingModeToSlackLegacyDraftStreamMode, Ur as resolveCommandResolutionFromArgv, Ut as isDeliverableMessageChannel, V as DEFAULT_RESET_TRIGGERS, Vi as setActivePluginRegistry, Vr as matchAllowlist, Vt as normalizeSessionDeliveryFields, W as setSessionRuntimeModel, Wi as resolveDiscordPreviewStreamMode, Wr as extractShellWrapperInlineCommand, Wt as isGatewayMessageChannel, X as SESSION_RUN_STORE_FILE_NAME, Xi as listProfilesForProvider, Xn as buildStreamErrorAssistantMessage, Xr as parseDurationMs, Xt as resolveMessageChannel, Y as SAFE_SESSION_ID_RE, Yi as dedupeProfileIds, Yn as buildAssistantMessageWithZeroUsage, Yt as resolveGatewayMessageChannel, Zi as markAuthProfileGood, Zn as buildUsageWithNoCost, Zt as GATEWAY_CLIENT_IDS, _ as normalizeProviderId$1, _a as getShellPathFromLoginShell, _i as loadPluginManifestRegistry, _n as isWindowsPlatform, _r as parseDotPath, _t as normalizeStringEntriesLower, a as normalizePluginHttpPath, aa as resolveAuthProfileDisplayLabel, at as resolveParentSessionGroupId, b as StorageReadAccessError, ba as parseBooleanValue$1, bi as isBundledChannelEnabledByChannelConfig, bn as SAFE_BIN_PROFILES, br as resolveCliName, bt as resolveSlackAppToken, c as executePluginCommand, ca as coerceSecretRef, cn as readConfigFileSnapshotForWrite, cr as isProfileInCooldown, ct as normalizeSignalMessagingTarget, d as registerPluginCommand, da as resolveSecretInputRef, di as isAvatarHttpUrl, dn as isTrustedSafeBinPath, dr as resolveProfilesUnavailableReason, dt as normalizeChannelId$1, ea as resolveAuthStorePathForDisplay, en as normalizeAccountId$1, er as requireApiKey, et as resolveSessionTranscriptPath, f as BUILTIN_TTS_PROVIDER_IDS, fa as splitTrailingAuthProfile, fi as isPathWithinRoot, fn as listWritableExplicitTrustedSafeBinDirs, fr as resolveApiKeyForProfile, ft as formatAllowlistMatchMeta, g as replaceSpeechProviders, ga as VERSION, gi as validateJsonSchemaValue, gn as buildEnforcedShellCommand, gr as isRecord$1, gt as normalizeStringEntries, h as isBuiltinTtsProvider, ha as DEFAULT_PROVIDER, hn as analyzeShellCommand, hr as isNonEmptyString, ht as normalizeHyphenSlug, i as createPluginRegistry, ia as readProcessElapsedSeconds, ir as resolveAuthProfileOrder, it as resolveGroupSessionKey, j as loadSessionStore, ja as applyTargetToParams, ji as listChatChannels, jn as normalizeModelRef$2, jr as isInboundPathAllowed, jt as resolveDiscordAccount, k as getConfiguredSessionStorageRuntime, ka as optionalStringEnum, ki as CHAT_CHANNEL_ORDER, kn as isCliProvider, kr as validateConfigObjectWithPlugins, kt as createDiscordActionGate, l as listPluginCommands, la as hasConfiguredSecretInput, li as AVATAR_MAX_BYTES, ln as writeConfigFile, lr as markAuthProfileFailure, lt as getChannelPlugin, m as getSpeechProvider, ma as DEFAULT_MODEL, mi as buildChannelAccountBindings, mn as validateSafeBinArgv, mr as describeUnknownError$1, mt as normalizeAtHashSlug, n as clearRegisteredPluginApis, na as withFileLock$1, nn as resolveSessionLockMaxHoldFromTimeout, nr as resolveEnvApiKey, nt as resolveStorePath, o as buildPluginHealthReport, on as loadConfig, ot as getChannelDock, p as getRegisteredSpeechProviders, pa as DEFAULT_CONTEXT_TOKENS, pi as isSupportedLocalAvatarExtension, pn as normalizeTrustedSafeBinDirs, pr as resolveSecretRefValues, pt as resolveAllowlistMatchByCandidates, qn as createOllamaStreamFn, qr as unwrapKnownDispatchWrapperInvocation, qt as listDeliverableMessageChannels, ra as isPidAlive, rn as CtxProjectionCorruptionError, rr as resolveModelAuthMode, rt as deriveSessionMetaPatch, s as clearPluginCommands, sa as normalizeSecretInput, sn as readConfigFileSnapshot, sr as getSoonestCooldownExpiry, st as listChannelDocks, t as addRegisteredPluginApi, ta as resolveOpenClawAgentDir, tn as acquireSessionWriteLock, u as matchPluginCommand, ua as normalizeResolvedSecretInputString, ui as isAvatarDataUrl, un as getTrustedSafeBinDirs, ur as markAuthProfileUsed, ut as listChannelPlugins, v as createInternalHookEvent, va as resolveShellEnvFallbackTimeoutMs, vi as BUNDLED_ENABLED_BY_DEFAULT, vn as splitCommandChain, vr as runTasksWithConcurrency, vt as resolveSlackAccount, w as requireSessionStorageRuntime, wi as discoverOpenClawPlugins, wn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, wr as unsetConfigOverride, wt as isWhatsAppGroupJid, x as createConversationReadQuery, xa as resolveOwnerDisplaySetting, xi as normalizePluginsConfig, xn as normalizeSafeBinProfileFixtures, xr as getConfigOverrides, xt as resolveSlackBotToken, y as triggerInternalHook, ya as isTruthyEnvValue, yi as applyTestPluginDefaults, yn as splitShellArgs, yr as formatCliCommand, yt as resolveSlackReplyToMode, z as updateSessionStoreEntry, zn as resolveThinkingDefault, zr as resolveExecPolicyPreset, zt as mergeDeliveryContext } from "./registry-B-9fRLtl.js";
1
+ import { a as isBlockedHostnameOrIp, d as normalizeHostname, n as SsrFBlockedError } from "./proxy-env-D9QKz5Mq.js";
2
+ import { $ as resolveSessionFilePathOptions, $n as getCustomProviderApiKey, $t as GATEWAY_CLIENT_NAMES, Aa as stringEnum, Ai as getChatChannelMeta, An as modelKey, At as listEnabledDiscordAccounts, Bi as requireActivePluginRegistry, Br as DEFAULT_SAFE_BINS, Bt as normalizeDeliveryContext, Ci as resolveMemorySlotDecision, Cn as applyMergePatch, Cr as setConfigOverride, Ct as resolveSignalAccount, D as closeReplacedConfiguredSessionStorageRuntime, Da as channelTargetSchema, Di as readManifestNamespace, Dn as buildModelAliasIndex, Dr as setConfigValueAtPath, Dt as resolveWhatsAppAccount, E as closeConfiguredSessionStorageRuntime, Ei as safeStatSync, En as buildConfiguredAllowlistKeys, Er as parseConfigPath, Et as hasAnyWhatsAppAuth, F as recordSessionMetaFromInbound, Fa as discardBufferedPluginTaskPasses, Fi as resolveChannelConfigId, Fn as resolveDefaultModelForAgent, Fr as normalizeScpRemoteHost, Ft as resolveChannelGroupToolsPolicy, G as parseSessionIndexRecordKey, Gi as resolveSlackNativeStreaming, Gn as retryAsync, Gr as isDispatchWrapperExecutable, Gt as isInternalMessageChannel, H as mergeSessionEntry, Hi as isSafeExecutableValue, Hr as resolveAllowlistCandidatePath, Ht as INTERNAL_MESSAGE_CHANNEL, I as refreshConfiguredSessionBindingEntry, Ia as listBufferedPluginTaskPasses, Ii as getActiveGatewayPluginRegistry, In as resolveModelRefFromString, Ir as parseNonNegativeByteSize, It as resolveAccountEntry, Jn as buildAssistantMessage, Jr as unwrapKnownShellMultiplexerInvocation, Jt as normalizeMessageChannel, Ki as resolveSlackStreamingMode, Kn as OLLAMA_NATIVE_BASE_URL, Kr as isShellWrapperExecutable, Kt as isMarkdownCapableMessageChannel, L as updateLastRoute, La as replaceBufferedPluginTaskPasses, Li as getActivePluginRegistry, Ln as resolveReasoningDefault, Lt as deliveryContextFromSession, M as loadSessionStoreFromDisk, Ma as actionHasTarget, Mi as normalizeAnyChannelId, Mn as normalizeProviderId, Mt as normalizeDiscordToken, N as prepareConfiguredSessionStorageRuntimeActivation, Na as actionRequiresTarget, Ni as normalizeChannelId$2, Nn as parseModelRef, Nr as resolveIMessageAttachmentRoots, Nt as resolveChannelGroupPolicy, O as commitPreparedConfiguredSessionStorageRuntimeActivation, Oa as channelTargetsSchema, On as findNormalizedProviderValue, Or as unsetConfigValueAtPath, Ot as resolveIMessageAccount, P as readSessionUpdatedAt, Pi as normalizeChatChannelId, Pn as resolveConfiguredModelRef, Pr as resolveIMessageRemoteAttachmentRoots, Pt as resolveChannelGroupRequireMention, Q as resolveSessionFilePath, Qi as ensureAuthProfileStore, Qn as getApiKeyForModel, Qt as GATEWAY_CLIENT_MODES, R as updateSessionStore, Ra as RecoveryAdmissionError, Ri as getActivePluginRegistryKey, Rn as resolveSubagentSpawnModelSelection, Rr as secretRefKey, Rt as deliveryContextKey, S as getConversationReadQuery, Sa as readTaskWorkStates, Si as resolveEffectiveEnableState, Sn as resolveSafeBinProfiles, Sr as resetConfigOverrides, St as listEnabledSignalAccounts, Ti as isPathInside, Tn as buildAllowedModelSet, Tr as getConfigValueAtPath, Tt as normalizeWhatsAppTarget, U as resolveFreshSessionTotalTokens, Ui as mapStreamingModeToSlackLegacyDraftStreamMode, Ur as resolveCommandResolutionFromArgv, Ut as isDeliverableMessageChannel, V as DEFAULT_RESET_TRIGGERS, Vi as setActivePluginRegistry, Vr as matchAllowlist, Vt as normalizeSessionDeliveryFields, W as setSessionRuntimeModel, Wi as resolveDiscordPreviewStreamMode, Wr as extractShellWrapperInlineCommand, Wt as isGatewayMessageChannel, X as SESSION_RUN_STORE_FILE_NAME, Xi as listProfilesForProvider, Xn as buildStreamErrorAssistantMessage, Xr as parseDurationMs, Xt as resolveMessageChannel, Y as SAFE_SESSION_ID_RE, Yi as dedupeProfileIds, Yn as buildAssistantMessageWithZeroUsage, Yt as resolveGatewayMessageChannel, Zi as markAuthProfileGood, Zn as buildUsageWithNoCost, Zt as GATEWAY_CLIENT_IDS, _ as normalizeProviderId$1, _a as getShellPathFromLoginShell, _i as loadPluginManifestRegistry, _n as isWindowsPlatform, _r as parseDotPath, _t as normalizeStringEntriesLower, a as normalizePluginHttpPath, aa as resolveAuthProfileDisplayLabel, at as resolveParentSessionGroupId, b as StorageReadAccessError, ba as parseBooleanValue$1, bi as isBundledChannelEnabledByChannelConfig, bn as SAFE_BIN_PROFILES, br as resolveCliName, bt as resolveSlackAppToken, c as executePluginCommand, ca as coerceSecretRef, cn as readConfigFileSnapshotForWrite, cr as isProfileInCooldown, ct as normalizeSignalMessagingTarget, d as registerPluginCommand, da as resolveSecretInputRef, di as isAvatarHttpUrl, dn as isTrustedSafeBinPath, dr as resolveProfilesUnavailableReason, dt as normalizeChannelId$1, ea as resolveAuthStorePathForDisplay, en as normalizeAccountId$1, er as requireApiKey, et as resolveSessionTranscriptPath, f as BUILTIN_TTS_PROVIDER_IDS, fa as splitTrailingAuthProfile, fi as isPathWithinRoot, fn as listWritableExplicitTrustedSafeBinDirs, fr as resolveApiKeyForProfile, ft as formatAllowlistMatchMeta, g as replaceSpeechProviders, ga as VERSION, gi as validateJsonSchemaValue, gn as buildEnforcedShellCommand, gr as isRecord$1, gt as normalizeStringEntries, h as isBuiltinTtsProvider, ha as DEFAULT_PROVIDER, hn as analyzeShellCommand, hr as isNonEmptyString, ht as normalizeHyphenSlug, i as createPluginRegistry, ia as readProcessElapsedSeconds, ir as resolveAuthProfileOrder, it as resolveGroupSessionKey, j as loadSessionStore, ja as applyTargetToParams, ji as listChatChannels, jn as normalizeModelRef$2, jr as isInboundPathAllowed, jt as resolveDiscordAccount, k as getConfiguredSessionStorageRuntime, ka as optionalStringEnum, ki as CHAT_CHANNEL_ORDER, kn as isCliProvider, kr as validateConfigObjectWithPlugins, kt as createDiscordActionGate, l as listPluginCommands, la as hasConfiguredSecretInput, li as AVATAR_MAX_BYTES, ln as writeConfigFile, lr as markAuthProfileFailure, lt as getChannelPlugin, m as getSpeechProvider, ma as DEFAULT_MODEL, mi as buildChannelAccountBindings, mn as validateSafeBinArgv, mr as describeUnknownError$1, mt as normalizeAtHashSlug, n as clearRegisteredPluginApis, na as withFileLock$1, nn as resolveSessionLockMaxHoldFromTimeout, nr as resolveEnvApiKey, nt as resolveStorePath, o as buildPluginHealthReport, on as loadConfig, ot as getChannelDock, p as getRegisteredSpeechProviders, pa as DEFAULT_CONTEXT_TOKENS, pi as isSupportedLocalAvatarExtension, pn as normalizeTrustedSafeBinDirs, pr as resolveSecretRefValues, pt as resolveAllowlistMatchByCandidates, qn as createOllamaStreamFn, qr as unwrapKnownDispatchWrapperInvocation, qt as listDeliverableMessageChannels, ra as isPidAlive, rn as CtxProjectionCorruptionError, rr as resolveModelAuthMode, rt as deriveSessionMetaPatch, s as clearPluginCommands, sa as normalizeSecretInput, sn as readConfigFileSnapshot, sr as getSoonestCooldownExpiry, st as listChannelDocks, t as addRegisteredPluginApi, ta as resolveOpenClawAgentDir, tn as acquireSessionWriteLock, u as matchPluginCommand, ua as normalizeResolvedSecretInputString, ui as isAvatarDataUrl, un as getTrustedSafeBinDirs, ur as markAuthProfileUsed, ut as listChannelPlugins, v as createInternalHookEvent, va as resolveShellEnvFallbackTimeoutMs, vi as BUNDLED_ENABLED_BY_DEFAULT, vn as splitCommandChain, vr as runTasksWithConcurrency, vt as resolveSlackAccount, w as requireSessionStorageRuntime, wi as discoverOpenClawPlugins, wn as DEFAULT_SUBAGENT_MAX_SPAWN_DEPTH, wr as unsetConfigOverride, wt as isWhatsAppGroupJid, x as createConversationReadQuery, xa as resolveOwnerDisplaySetting, xi as normalizePluginsConfig, xn as normalizeSafeBinProfileFixtures, xr as getConfigOverrides, xt as resolveSlackBotToken, y as triggerInternalHook, ya as isTruthyEnvValue, yi as applyTestPluginDefaults, yn as splitShellArgs, yr as formatCliCommand, yt as resolveSlackReplyToMode, z as updateSessionStoreEntry, zn as resolveThinkingDefault, zr as resolveExecPolicyPreset, zt as mergeDeliveryContext } from "./registry-D9-EsIYH.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-BIDPYPVC.js";
4
4
  import { B as appendFileLog, C as shortenHomePath, D as danger, E as truncateUtf16Safe, F as isRich, G as INCLUDE_KEY, H as normalizeLogLevel, I as theme, J as isBlockedObjectKey, L as getChildLogger, M as shouldLogVerbose, N as warn, P as colorize, Q as openBoundaryFileSync, S as shortenHomeInString, T as sliceUtf16Safe, Z as openBoundaryFile, _ as normalizeE164, a as createNonExitingRuntime, b as resolveUserPath, c as registerActiveProgressLine, d as clampInt, g as isRecord$2, h as formatTerminalLink, j as setVerbose, k as logVerbose, l as unregisterActiveProgressLine, lt as isDangerousHostEnvVarName, m as escapeRegExp, mt as resolvePreferredOpenClawTmpDir, o as defaultRuntime, s as clearActiveProgressLine, st as normalizeWindowsPathForComparison, t as createSubsystemLogger, u as CONFIG_DIR, w as sleep$3, x as safeParseJson } from "./subsystem-BRH2eiRx.js";
5
5
  import { n as resolveProcessScopedMap, t as isPlainObject } from "./plain-object-Doc_YkH1.js";
6
6
  import { $ as resolveConfiguredCanonicalIdentity, A as logError, C as loadWorkspaceBootstrapFiles, D as runExec, E as runCommandWithTimeout, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, J as isValidAgentId, L as DEFAULT_AGENT_ID, M as logWarn, O as spawnWithFallback, P as resolveAgentModelFallbackValues, Q as resolveCanonicalIdentity, S as filterBootstrapFilesForSession, U as classifySessionKeyShape, V as buildAgentMainSessionKey, X as normalizeMainKey, Y as normalizeAgentId, Z as resolveAgentIdFromSessionKey, _ as DEFAULT_IDENTITY_FILENAME, _t as stripAgentSessionKeyPrefix, at as normalizeAccountId$2, c as resolveDefaultAgentId, d as resolveSessionAgentId, dt as isAcpSessionKey, et as resolveThreadSessionKeys, f as resolveSessionAgentIds, ft as isCronSessionKey, g as DEFAULT_HEARTBEAT_FILENAME, gt as resolveThreadParentSessionKey, h as DEFAULT_BOOTSTRAP_FILENAME, ht as parseAgentSessionKey, i as resolveAgentDir, it as DEFAULT_ACCOUNT_ID, j as logInfo, k as logDebug, l as resolveEffectiveModelFallbacks, lt as WAKE_GATE_SESSION_KEY_SEGMENT, m as DEFAULT_AGENT_WORKSPACE_DIR, mt as isSubagentSessionKey, n as listAgentIds, nt as sessionKeyAgentMatches, o as resolveAgentSkillsFilter, ot as normalizeOptionalAccountId, q as isKnownAgentMainSessionKey, r as resolveAgentConfig, rt as toAgentStoreSessionKey, s as resolveAgentWorkspaceDir, t as hasConfiguredModelFallbacks, tt as sanitizeAgentId, u as resolveRunModelFallbacksOverride, ut as getSubagentDepth, w as resolveOpenClawPackageRoot, x as ensureAgentWorkspace, z as DEVICE_SENDER_PREFIX } from "./agent-scope-Brtnf-qo.js";
7
7
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken } from "./github-copilot-token-D97OGYfX.js";
8
8
  import { n as normalizeChatType, t as resolveConversationLabel } from "./conversation-label-CpI_90Wf.js";
9
- import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-BQYyBicH.js";
10
- import { $ as stripUndefinedFields, A as searchMessagesDiscord, At as applyChannelMatchMeta, B as listGuildChannelsDiscord, C as deleteMessageDiscord, Ct as resolveGroupDmAllow, D as listThreadsDiscord, Dt as resolveDiscordSystemLocation, E as listPinsDiscord, Et as formatDiscordUserTag, F as fetchChannelInfoDiscord, G as uploadEmojiDiscord, H as removeRoleDiscord, I as fetchMemberInfoDiscord, J as deleteChannelDiscord, K as uploadStickerDiscord, L as fetchRoleInfoDiscord, M as addRoleDiscord, Mt as normalizeChannelSlug, N as banMemberDiscord, Nt as resolveChannelEntryMatchWithFallback, O as pinMessageDiscord, Ot as resolveTimestampMs, P as createScheduledEventDiscord, Q as setChannelPermissionDiscord, R as fetchVoiceStatusDiscord, S as createThreadDiscord, St as resolveDiscordShouldRequireMention, T as fetchMessageDiscord, Tt as formatDiscordReactionEmoji, U as timeoutMemberDiscord, V as listScheduledEventsDiscord, W as listGuildEmojisDiscord, X as moveChannelDiscord, Y as editChannelDiscord, Z as removeChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordChannelConfigWithFallback, a as sendDiscordComponentMessage, at as normalizePollInput, b as getChannelActivity, bt as resolveDiscordOwnerAccess, c as parseDiscordComponentCustomId, ct as createDiscordRetryRunner, d as parseDiscordModalCustomIdForCarbon, dt as listDiscordDirectoryGroupsLive, f as readDiscordComponentSpec, ft as listDiscordDirectoryPeersLive, g as sendPollDiscord, gt as resolveDiscordAllowListMatch, h as sendMessageDiscord, ht as normalizeDiscordSlug, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as unpinMessageDiscord, jt as buildChannelKeyCandidates, k as readMessagesDiscord, kt as fetchDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as parseDiscordTarget, m as resolveDiscordModalEntry, mt as normalizeDiscordAllowList, n as reactMessageDiscord, o as createDiscordFormModal, ot as createDiscordClient, p as resolveDiscordComponentEntry, pt as isDiscordGroupAllowedByPolicy, q as createChannelDiscord, r as removeOwnReactionsDiscord, rt as hasAnyGuildPermissionDiscord, s as formatDiscordComponentEventText, st as createDiscordRestClient, t as fetchReactionsDiscord, tt as fetchChannelPermissionsDiscord, u as parseDiscordModalCustomId, ut as resolveDiscordChannelId, v as sendVoiceMessageDiscord, vt as resolveDiscordGuildEntry, w as editMessageDiscord, wt as shouldEmitDiscordReactionNotification, x as recordChannelActivity, xt as resolveDiscordOwnerAllowFrom, y as sendWebhookMessageDiscord, yt as resolveDiscordMemberAccessState, z as kickMemberDiscord } from "./send-CTefF3Iw.js";
9
+ import { a as resolveSlackWebClientOptions, c as buildSlackBlocksFallbackText, i as createSlackWebClient, l as parseSlackTarget, o as parseSlackBlocksInput, r as normalizeSlackOutboundText, s as validateSlackBlocksArray, t as sendMessageSlack, u as resolveSlackChannelId } from "./send-dNeIyZEN.js";
10
+ import { $ as stripUndefinedFields, A as searchMessagesDiscord, At as applyChannelMatchMeta, B as listGuildChannelsDiscord, C as deleteMessageDiscord, Ct as resolveGroupDmAllow, D as listThreadsDiscord, Dt as resolveDiscordSystemLocation, E as listPinsDiscord, Et as formatDiscordUserTag, F as fetchChannelInfoDiscord, G as uploadEmojiDiscord, H as removeRoleDiscord, I as fetchMemberInfoDiscord, J as deleteChannelDiscord, K as uploadStickerDiscord, L as fetchRoleInfoDiscord, M as addRoleDiscord, Mt as normalizeChannelSlug, N as banMemberDiscord, Nt as resolveChannelEntryMatchWithFallback, O as pinMessageDiscord, Ot as resolveTimestampMs, P as createScheduledEventDiscord, Q as setChannelPermissionDiscord, R as fetchVoiceStatusDiscord, S as createThreadDiscord, St as resolveDiscordShouldRequireMention, T as fetchMessageDiscord, Tt as formatDiscordReactionEmoji, U as timeoutMemberDiscord, V as listScheduledEventsDiscord, W as listGuildEmojisDiscord, X as moveChannelDiscord, Y as editChannelDiscord, Z as removeChannelPermissionDiscord, _ as sendStickerDiscord, _t as resolveDiscordChannelConfigWithFallback, a as sendDiscordComponentMessage, at as normalizePollInput, b as getChannelActivity, bt as resolveDiscordOwnerAccess, c as parseDiscordComponentCustomId, ct as createDiscordRetryRunner, d as parseDiscordModalCustomIdForCarbon, dt as listDiscordDirectoryGroupsLive, f as readDiscordComponentSpec, ft as listDiscordDirectoryPeersLive, g as sendPollDiscord, gt as resolveDiscordAllowListMatch, h as sendMessageDiscord, ht as normalizeDiscordSlug, i as removeReactionDiscord, it as chunkDiscordTextWithMode, j as unpinMessageDiscord, jt as buildChannelKeyCandidates, k as readMessagesDiscord, kt as fetchDiscord, l as parseDiscordComponentCustomIdForCarbon, lt as parseDiscordTarget, m as resolveDiscordModalEntry, mt as normalizeDiscordAllowList, n as reactMessageDiscord, o as createDiscordFormModal, ot as createDiscordClient, p as resolveDiscordComponentEntry, pt as isDiscordGroupAllowedByPolicy, q as createChannelDiscord, r as removeOwnReactionsDiscord, rt as hasAnyGuildPermissionDiscord, s as formatDiscordComponentEventText, st as createDiscordRestClient, t as fetchReactionsDiscord, tt as fetchChannelPermissionsDiscord, u as parseDiscordModalCustomId, ut as resolveDiscordChannelId, v as sendVoiceMessageDiscord, vt as resolveDiscordGuildEntry, w as editMessageDiscord, wt as shouldEmitDiscordReactionNotification, x as recordChannelActivity, xt as resolveDiscordOwnerAllowFrom, y as sendWebhookMessageDiscord, yt as resolveDiscordMemberAccessState, z as kickMemberDiscord } from "./send-CyKQnkbd.js";
11
11
  import { n as isDiagnosticsEnabled, t as emitDiagnosticEvent } from "./diagnostic-events-C6NdYDq9.js";
12
12
  import { n as isSafeFenceBreak, r as parseFenceSpans, t as findFenceSpanAt } from "./fences-8NfUbGWc.js";
13
- import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-SR4Ydfza.js";
13
+ import { a as chunkText, c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, l as resolveChunkMode, o as chunkTextWithMode, r as chunkMarkdownText, t as chunkByNewline, u as resolveChunkNewlinePacking } from "./chunk-C3M1IW7W.js";
14
14
  import { a as stripSilentToken, i as isSilentReplyText, n as SILENT_REPLY_TOKEN, r as isSilentReplyPrefixText, t as HEARTBEAT_TOKEN } from "./tokens-g1-rZffS.js";
15
- import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-E8Vv0lBU.js";
16
- import { $t as extractLegacyTranscriptEntryFields, A as HARD_MAX_TOOL_RESULT_CHARS, B as estimateMessageCharsCached, Cr as isSessionArchiveArtifactName, D as eventOrder, Dr as resolveProviderRuntimeIdentity, E as DB_SESSION_HYDRATION_LIMIT, Er as resolveProviderPromptCacheKey, F as truncateToolResultToChars, G as createSessionStorageRuntimeFromConfig, Gn as HIDDEN_HEARTBEAT_CUSTOM_TYPE, H as isToolResultMessage, I as CHARS_PER_TOKEN_ESTIMATE$2, Jn as normalizeHttpWebhookUrl, K as resolveSessionStorageConfig, L as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, M as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, N as TOOL_RESULT_TEXT_WEIGHT, O as pickLeaf, P as truncateTextHeadTail, R as createMessageCharEstimateCache, S as initializeGlobalHookRunner, Sr as isPrimarySessionTranscriptFileName, T as promptBuildResultToContribution, Tr as buildPluginTurnIdentity, U as parseInlineDirectives$1, Ut as deriveLegacyActorIdentity, V as getToolResultText$1, W as attachPgPoolErrorListeners, Xn as resolveDefaultCronStaggerMs, Xt as sanitizeAppendEntry, Y as validateCtxStorage, Yn as normalizeCronStaggerMs, Zn as parseAbsoluteTimeMs, _n as resolveSenderLabel, _r as resolveThreadFlag, a as resolveMirroredTranscriptText, an as buildInboundMetaSystemPrompt, ar as deriveSessionTotalTokens, b as getGlobalHookRunner, bn as CREATE_CTX_STORAGE_OWNER_SQL, br as resolveExplicitAgentSessionKey, c as drainPendingPrimaryWrites, cn as attachMessageIngress, cr as normalizeUsage, d as repairToolUseResultPairing, dn as messageTime, en as sanitizeJsonb, f as sanitizeToolCallInputs, fn as stripMessageCarriers, fr as resolveSessionKey, g as sanitizeToolCallIdsForCloudCodeAssist, gn as resolveTimezone, gr as resolveSessionResetType, h as canonicalToolCallIdBase, hn as formatZonedTimestamp, hr as resolveSessionResetPolicy, i as appendAssistantMessageToSessionTranscript, in as toJsonValue$1, ir as derivePromptTokens, j as sessionLikelyHasOversizedToolResults, jt as buildEqualityProjection, k as capToolResultContent, l as guardSessionManager, ln as getMessageIngress, m as stripToolResultDetails, mr as resolveChannelResetConfig, n as parseSessionThreadInfo, nn as createCurrentUserPromptEnvelope, o as openDbSessionManager, on as collectInboundUserContext, or as hasNonzeroUsage, p as sanitizeToolUseResultPairing, pn as formatMessageStamp, pr as evaluateSessionFreshness, qn as inferLegacyName, r as resolveAndPersistSessionFile, rn as mergePromptContributions, s as runSerializedBySession, sn as renderInboundUserContext, sr as makeZeroUsageSnapshot, t as extractDeliveryInfo, tn as sha256, u as openRawToolResultStash, un as isRepresentableEpochMs, v as hasInterSessionUserProvenance, vr as canonicalizeMainSessionAlias, w as hasHookForPlugin, wr as buildPluginRuntimeIdentity, x as getGlobalPluginRegistry, xr as resolveMainSessionKey, y as normalizeInputProvenance, yr as resolveAgentMainSessionKey, z as estimateContextChars$1 } from "./sessions-DGyoDRbg.js";
15
+ import { a as deriveInboundMessageHookContext, c as toInternalMessageTranscribedContext, d as fireAndForgetHook, i as createMessageSentEmitter, l as toPluginMessageContext, n as resolveOutboundSessionId, o as toInternalMessagePreprocessedContext, r as applyMessageSendingHook, s as toInternalMessageReceivedContext, t as buildOutboundSessionContext, u as toPluginMessageReceivedEvent } from "./session-context-4IeKkzGJ.js";
16
+ import { $t as extractLegacyTranscriptEntryFields, A as HARD_MAX_TOOL_RESULT_CHARS, B as estimateMessageCharsCached, Cr as isSessionArchiveArtifactName, D as eventOrder, Dr as resolveProviderRuntimeIdentity, E as DB_SESSION_HYDRATION_LIMIT, Er as resolveProviderPromptCacheKey, F as truncateToolResultToChars, G as createSessionStorageRuntimeFromConfig, Gn as HIDDEN_HEARTBEAT_CUSTOM_TYPE, H as isToolResultMessage, I as CHARS_PER_TOKEN_ESTIMATE$2, Jn as normalizeHttpWebhookUrl, K as resolveSessionStorageConfig, L as TOOL_RESULT_CHARS_PER_TOKEN_ESTIMATE, M as PREEMPTIVE_TOOL_RESULT_COMPACTION_PLACEHOLDER, N as TOOL_RESULT_TEXT_WEIGHT, O as pickLeaf, P as truncateTextHeadTail, R as createMessageCharEstimateCache, S as initializeGlobalHookRunner, Sr as isPrimarySessionTranscriptFileName, T as promptBuildResultToContribution, Tr as buildPluginTurnIdentity, U as parseInlineDirectives$1, Ut as deriveLegacyActorIdentity, V as getToolResultText$1, W as attachPgPoolErrorListeners, Xn as resolveDefaultCronStaggerMs, Xt as sanitizeAppendEntry, Y as validateCtxStorage, Yn as normalizeCronStaggerMs, Zn as parseAbsoluteTimeMs, _n as resolveSenderLabel, _r as resolveThreadFlag, a as resolveMirroredTranscriptText, an as buildInboundMetaSystemPrompt, ar as deriveSessionTotalTokens, b as getGlobalHookRunner, bn as CREATE_CTX_STORAGE_OWNER_SQL, br as resolveExplicitAgentSessionKey, c as drainPendingPrimaryWrites, cn as attachMessageIngress, cr as normalizeUsage, d as repairToolUseResultPairing, dn as messageTime, en as sanitizeJsonb, f as sanitizeToolCallInputs, fn as stripMessageCarriers, fr as resolveSessionKey, g as sanitizeToolCallIdsForCloudCodeAssist, gn as resolveTimezone, gr as resolveSessionResetType, h as canonicalToolCallIdBase, hn as formatZonedTimestamp, hr as resolveSessionResetPolicy, i as appendAssistantMessageToSessionTranscript, in as toJsonValue$1, ir as derivePromptTokens, j as sessionLikelyHasOversizedToolResults, jt as buildEqualityProjection, k as capToolResultContent, l as guardSessionManager, ln as getMessageIngress, m as stripToolResultDetails, mr as resolveChannelResetConfig, n as parseSessionThreadInfo, nn as createCurrentUserPromptEnvelope, o as openDbSessionManager, on as collectInboundUserContext, or as hasNonzeroUsage, p as sanitizeToolUseResultPairing, pn as formatMessageStamp, pr as evaluateSessionFreshness, qn as inferLegacyName, r as resolveAndPersistSessionFile, rn as mergePromptContributions, s as runSerializedBySession, sn as renderInboundUserContext, sr as makeZeroUsageSnapshot, t as extractDeliveryInfo, tn as sha256, u as openRawToolResultStash, un as isRepresentableEpochMs, v as hasInterSessionUserProvenance, vr as canonicalizeMainSessionAlias, w as hasHookForPlugin, wr as buildPluginRuntimeIdentity, x as getGlobalPluginRegistry, xr as resolveMainSessionKey, y as normalizeInputProvenance, yr as resolveAgentMainSessionKey, z as estimateContextChars$1 } from "./sessions-BUjbH5K1.js";
17
17
  import { i as testRegexWithBoundedInput, r as compileSafeRegex, t as redactSensitiveText } from "./redact-B9fPPmdF.js";
18
18
  import { i as hasErrnoCode, o as readErrorName, r as formatErrorMessage } from "./errors-DUGujS2U.js";
19
19
  import { n as onSessionTranscriptUpdate } from "./transcript-events-Bi2az-SQ.js";
20
- import { A as transcriptEntriesToMessages, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, M as sleepWithAbort, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeReplyPayloadsForDelivery, b as filterMessagingToolMediaDuplicates, c as loadChannelOutboundAdapter, d as stripLeadingInboundMetadata, f as countToolResults, g as resolveContextTokensForModel, h as lookupContextTokens, i as normalizeOutboundPayloadsForJson, j as computeBackoff, k as readFullTranscriptEntriesFromBackend, l as loadCombinedSessionStoreForGateway, m as jsonUtf8Bytes, n as formatOutboundPayloadLog, o as throwIfAborted, p as extractToolCallNames, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as capArrayByJsonBytes, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-D3LWZpv1.js";
20
+ import { A as transcriptEntriesToMessages, C as shouldSuppressReasoningPayload, D as normalizeChannelTargetInput, E as buildTargetResolverSignature, M as sleepWithAbort, O as normalizeTargetForProvider, S as shouldSuppressMessagingToolReplies, T as resolveReplyToMode, _ as applyReplyTagsToPayload, a as normalizeReplyPayloadsForDelivery, b as filterMessagingToolMediaDuplicates, c as loadChannelOutboundAdapter, d as stripLeadingInboundMetadata, f as countToolResults, g as resolveContextTokensForModel, h as lookupContextTokens, i as normalizeOutboundPayloadsForJson, j as computeBackoff, k as readFullTranscriptEntriesFromBackend, l as loadCombinedSessionStoreForGateway, m as jsonUtf8Bytes, n as formatOutboundPayloadLog, o as throwIfAborted, p as extractToolCallNames, r as normalizeOutboundPayloads, s as stampReplyActivity, t as deliverOutboundPayloads, u as capArrayByJsonBytes, v as applyReplyThreading, w as createReplyToModeFilterForChannel, x as isRenderablePayload, y as filterMessagingToolDuplicates } from "./deliver-lkeqXp0v.js";
21
21
  import { t as PATH_ALIAS_POLICIES } from "./path-alias-guards-C1_MQbGi.js";
22
22
  import { a as readFileWithinRoot, c as writeFileWithinRoot, i as openFileWithinRoot, n as copyFileWithinRoot, r as createRootScopedReadFile, t as SafeOpenError } from "./fs-safe-DcS-vU0o.js";
23
23
  import { _ as mediaKindFromMime, c as detectMime, d as imageMimeFromFormat, f as isAudioFileName, h as MAX_IMAGE_BYTES, i as getImageMetadata, l as extensionForMime, m as normalizeMimeType$1, p as kindFromMime, s as resizeToJpeg, u as getFileExtension } from "./image-ops-DVYGsTxh.js";
24
24
  import { i as saveMediaBuffer, r as getMediaDir, t as MEDIA_MAX_BYTES } from "./store-PqXav9ys.js";
25
- import { a as bindAbortRelay, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BEue3kvx.js";
26
- import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BqFNIJpI.js";
25
+ import { a as bindAbortRelay, n as withStrictGuardedFetchMode, o as fetchWithTimeout, r as withTrustedEnvProxyGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CQIsGUgZ.js";
26
+ import { n as wrapFetchWithAbortSignal, t as resolveFetch } from "./fetch-BEOHdT2e.js";
27
27
  import { n as generateSecureUuid, t as generateSecureToken } from "./secure-random-CruxVpoI.js";
28
- import { c as streamSignalEvents, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-CbbM7dcD.js";
29
- import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-DCeyas-6.js";
30
- import { _ as isRestartEnabled, a as listChatCommands, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as isCommandEnabled, l as normalizeCommandBody, m as shouldHandleTextCommands, o as listChatCommandsForConfig, p as serializeCommandArgs, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-DnePgYTq.js";
28
+ import { c as streamSignalEvents, i as resolveSignalRpcContext, n as sendReadReceiptSignal, o as signalCheck, r as sendTypingSignal, s as signalRpcRequest, t as sendMessageSignal } from "./send-CVYVctJr.js";
29
+ import { a as resolveAgentIdentity, i as resolveAckReaction, o as resolveEffectiveMessagesConfig, r as resolveResponsePrefixTemplate, s as resolveHumanDelayConfig, t as createReplyPrefixOptions } from "./reply-prefix-BQ-rDIAU.js";
30
+ import { _ as isRestartEnabled, a as listChatCommands, c as maybeResolveTextAlias, d as resolveCommandArgChoices, f as resolveCommandArgMenu, g as isNativeCommandsExplicitlyDisabled, h as isCommandFlagEnabled, i as isCommandEnabled, l as normalizeCommandBody, m as shouldHandleTextCommands, o as listChatCommandsForConfig, p as serializeCommandArgs, r as findCommandByNativeName, s as listNativeCommandSpecsForConfig, t as buildCommandTextFromArgs, u as parseCommandArgs, v as resolveNativeCommandsEnabled, y as resolveNativeSkillsEnabled } from "./commands-registry-DPCcTIwi.js";
31
31
  import { a as normalizeReasoningLevel, c as normalizeVerboseLevel, i as normalizeElevatedLevel, l as resolveResponseUsageMode, n as formatXHighModelHint, o as normalizeThinkLevel, s as normalizeUsageDisplay, t as formatThinkingLevels, u as supportsXHighThinking } from "./thinking-BUbh2qQQ.js";
32
32
  import { t as redactIdentifier } from "./redact-identifier-B3PwKCZi.js";
33
- 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-BXgGsRnq.js";
34
- import { o as redactChannelCorrelation, r as getDiagnosticSessionState } from "./diagnostic-session-state-Y-_mHHE2.js";
33
+ 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-TucKQ5Fk.js";
34
+ import { o as redactChannelCorrelation, r as getDiagnosticSessionState } from "./diagnostic-session-state-C74O1QW2.js";
35
35
  import { t as CommandLane } from "./lanes-ZjTPuJtM.js";
36
- 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-DUO9-NRr.js";
37
- import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-C05KbS-o.js";
38
- import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-xWMrt--U.js";
39
- 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-D3tAlzpP.js";
40
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-BnsoI-E6.js";
41
- import { $ as expandPolicyWithPluginGroups, A as isLikelyContextOverflowError, B as resolveSandboxContext, C as isAuthAssistantError, D as isContextOverflowError, E as isCompactionFailureError, F as parseImageSizeError, G as resolveProfile, H as createBrowserRouteContext, I as sanitizeUserFacingText, J as resolveBrowserControlAuth, K as getBridgeAuthForPort, L as isAuthPermanentErrorMessage, M as isRawApiErrorPayload, N as isTransientHttpError, O as isFailoverAssistantError, P as parseImageDimensionError, Q as collectExplicitAllowlist, R as isTimeoutErrorMessage, S as getApiErrorPayloadFingerprint, T as isCloudCodeAssistFormatError, U as registerBrowserRoutes, V as resolveSandboxRuntimeStatus, W as resolveBrowserConfig, X as applyOwnerOnlyToolPolicy, Y as resolveSandboxConfigForAgent, Z as buildPluginToolGroups, _ as BILLING_ERROR_USER_MESSAGE, at as listCoreToolIds, b as formatBillingErrorMessage, c as sanitizeSessionMessagesImages, ct as buildBootstrapContextFiles, d as resolveImageSanitizationLimits, dt as sanitizeGoogleTurnOrdering, et as mergeAlsoAllowPolicy, f as canonicalizeBase64, g as isGoogleModelApi, h as downgradeOpenAIReasoningBlocks, i as pickFallbackThinkingLevel, it as resolveToolProfilePolicy, j as isRateLimitAssistantError, k as isFailoverErrorMessage, l as sanitizeImageBlocks, lt as resolveBootstrapMaxChars, m as downgradeOpenAIFunctionCallReasoningPairs, n as validateAnthropicTurns, nt as expandToolGroups, o as isMessagingToolDuplicateNormalized, ot as compileGlobPatterns, p as estimateBase64DecodedBytes, q as ensureBrowserControlAuth, r as validateGeminiTurns, rt as normalizeToolName, s as normalizeTextForComparison, st as matchesAnyGlobPattern, t as extractTextFromChatContent, tt as stripPluginOnlyAllowlist, u as sanitizeToolResultImages, ut as resolveBootstrapTotalMaxChars, v as classifyFailoverReason, w as isBillingAssistantError, x as formatRawAssistantErrorForUi, y as formatAssistantErrorText, z as ensureSandboxWorkspaceForSession } from "./chat-content-DWJ_WMLQ.js";
42
- import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-DML7V0HT.js";
43
- import { r as isLoopbackHost } from "./ws-BzjQAveZ.js";
44
- import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-DJMyq23O.js";
45
- import { a as skillsSnapshotSourceDiffers, c as assertMediaNotDataUrl, f as resolveSandboxedMediaSource, i as resolveSkillsPromptForRun, l as assertSandboxPath, m as applySkillEnvOverridesFromSnapshot, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverrides, r as loadWorkspaceSkillEntries, u as resolveSandboxInputPath } from "./skills-mfK8NK3f.js";
36
+ 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-DUuIiwvi.js";
37
+ import { i as AGENT_LANE_SUBAGENT, r as AGENT_LANE_NESTED, t as startUserSessionRun } from "./user-run-recording-CAAdiBWD.js";
38
+ import { a as getGatewayInstanceId, n as deriveSessionRunId, o as resolveSessionRunStore, r as inferSessionRunKind, t as createSessionRunRecorder } from "./recorder-C6OpZN3o.js";
39
+ 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-fV3h6ELM.js";
40
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CKGA60jT.js";
41
+ import { $ as expandPolicyWithPluginGroups, A as isLikelyContextOverflowError, B as resolveSandboxContext, C as isAuthAssistantError, D as isContextOverflowError, E as isCompactionFailureError, F as parseImageSizeError, G as resolveProfile, H as createBrowserRouteContext, I as sanitizeUserFacingText, J as resolveBrowserControlAuth, K as getBridgeAuthForPort, L as isAuthPermanentErrorMessage, M as isRawApiErrorPayload, N as isTransientHttpError, O as isFailoverAssistantError, P as parseImageDimensionError, Q as collectExplicitAllowlist, R as isTimeoutErrorMessage, S as getApiErrorPayloadFingerprint, T as isCloudCodeAssistFormatError, U as registerBrowserRoutes, V as resolveSandboxRuntimeStatus, W as resolveBrowserConfig, X as applyOwnerOnlyToolPolicy, Y as resolveSandboxConfigForAgent, Z as buildPluginToolGroups, _ as BILLING_ERROR_USER_MESSAGE, at as listCoreToolIds, b as formatBillingErrorMessage, c as sanitizeSessionMessagesImages, ct as buildBootstrapContextFiles, d as resolveImageSanitizationLimits, dt as sanitizeGoogleTurnOrdering, et as mergeAlsoAllowPolicy, f as canonicalizeBase64, g as isGoogleModelApi, h as downgradeOpenAIReasoningBlocks, i as pickFallbackThinkingLevel, it as resolveToolProfilePolicy, j as isRateLimitAssistantError, k as isFailoverErrorMessage, l as sanitizeImageBlocks, lt as resolveBootstrapMaxChars, m as downgradeOpenAIFunctionCallReasoningPairs, n as validateAnthropicTurns, nt as expandToolGroups, o as isMessagingToolDuplicateNormalized, ot as compileGlobPatterns, p as estimateBase64DecodedBytes, q as ensureBrowserControlAuth, r as validateGeminiTurns, rt as normalizeToolName, s as normalizeTextForComparison, st as matchesAnyGlobPattern, t as extractTextFromChatContent, tt as stripPluginOnlyAllowlist, u as sanitizeToolResultImages, ut as resolveBootstrapTotalMaxChars, v as classifyFailoverReason, w as isBillingAssistantError, x as formatRawAssistantErrorForUi, y as formatAssistantErrorText, z as ensureSandboxWorkspaceForSession } from "./chat-content-CEMoDe5q.js";
42
+ import { B as DEFAULT_AI_SNAPSHOT_MAX_CHARS, C as ensureChromeExtensionRelayServer, M as DEFAULT_UPLOAD_DIR, N as resolveExistingPathsWithinRoot, s as resolveLsofCommandSync } from "./chrome-CobI3ImG.js";
43
+ import { r as isLoopbackHost } from "./ws-zaFiZiYP.js";
44
+ import { r as trimToUndefined, t as resolveGatewayCredentialsFromConfig } from "./credentials-BgX_xjTe.js";
45
+ import { a as skillsSnapshotSourceDiffers, c as assertMediaNotDataUrl, f as resolveSandboxedMediaSource, i as resolveSkillsPromptForRun, l as assertSandboxPath, m as applySkillEnvOverridesFromSnapshot, n as buildWorkspaceSkillSnapshot, p as applySkillEnvOverrides, r as loadWorkspaceSkillEntries, u as resolveSandboxInputPath } from "./skills-W6RHTFue.js";
46
46
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-ClPXs9e9.js";
47
47
  import { r as writeJsonAtomic } from "./json-files-Dt0in6lC.js";
48
- import { A as validateSecretsResolveResult, C as callGateway, D as GatewayClient, E as resolveLeastPrivilegeOperatorScopesForMethod, M as DOCS_SITE_URL, N as docsSiteUrl, O as gatewayErrorReason, S as buildGatewayConnectionDetails, T as randomIdempotencyKey, _ as resolveInternalSessionKey, a as buildAgentToAgentMessageContext, b as resolveVisibleSessionReference, c as isReplySkip, d as setActiveCoordinationDepth, f as createAgentToAgentPolicy, g as resolveDisplaySessionKey, h as resolveSandboxedSessionToolContext, i as buildAgentToAgentAnnounceContext, j as SESSION_LABEL_MAX_LENGTH, k as gatewayErrorShapeOf, l as resolvePingPongTurns, m as resolveEffectiveSessionToolsVisibility, n as requestAuthorizedNudge, o as buildAgentToAgentReplyContext, p as createSessionVisibilityGuard, r as AuthorizationError, s as isAnnounceSkip, u as clearActiveCoordinationDepth, v as resolveMainSessionAlias, w as callGatewayLeastPrivilege, x as shouldResolveSessionIdInput, y as resolveSessionReference } from "./nudge-z8ozyWd6.js";
49
- import { t as ensureOpenClawModelsJson } from "./models-config-DsHaLeW3.js";
50
- import { C as coerceImageModelConfig, D as loadModelCatalog, E as findModelInCatalog, O as modelSupportsVision, S as coerceImageAssistantText, T as resolveProviderVisionModelFromConfig, _ as stripCarriedTranscriptFromBody, a as resolveMediaAttachmentLocalRoots, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as runCapability, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as minimaxUnderstandImage, t as runAudioTranscription, u as resolveTimeoutMs$2, v as buildRandomTempFilePath, w as decodeDataUrl, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-2ziIuais.js";
51
- import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-6FFFlkbd.js";
52
- import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch-CpY6mDmQ.js";
53
- import { n as resolveMarkdownTableMode } from "./markdown-tables-B4G-uOPz.js";
54
- import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-Ep5lw12h.js";
55
- import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-CKtZsNVT.js";
56
- import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-CSaP-UMd.js";
57
- import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-CKNwlk_8.js";
58
- import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames } from "./skill-commands-DJ9gv-vK.js";
59
- import { t as convertMarkdownTables } from "./tables-Dt2IrV1k.js";
60
- import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-hdgQBd4P.js";
61
- import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-t2HJkuDx.js";
62
- import { t as recordInboundSessionMetaSafe } from "./session-meta-_XFpsAgw.js";
63
- import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$2, t as createSlackReplyDeliveryPlan } from "./replies-CbnkLeUl.js";
64
- import { n as resolveMemorySearchConfig } from "./manager-DyYd10T2.js";
65
- import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-CWCvbGoy.js";
48
+ import { A as validateSecretsResolveResult, C as callGateway, D as GatewayClient, E as resolveLeastPrivilegeOperatorScopesForMethod, M as DOCS_SITE_URL, N as docsSiteUrl, O as gatewayErrorReason, S as buildGatewayConnectionDetails, T as randomIdempotencyKey, _ as resolveInternalSessionKey, a as buildAgentToAgentMessageContext, b as resolveVisibleSessionReference, c as isReplySkip, d as setActiveCoordinationDepth, f as createAgentToAgentPolicy, g as resolveDisplaySessionKey, h as resolveSandboxedSessionToolContext, i as buildAgentToAgentAnnounceContext, j as SESSION_LABEL_MAX_LENGTH, k as gatewayErrorShapeOf, l as resolvePingPongTurns, m as resolveEffectiveSessionToolsVisibility, n as requestAuthorizedNudge, o as buildAgentToAgentReplyContext, p as createSessionVisibilityGuard, r as AuthorizationError, s as isAnnounceSkip, u as clearActiveCoordinationDepth, v as resolveMainSessionAlias, w as callGatewayLeastPrivilege, x as shouldResolveSessionIdInput, y as resolveSessionReference } from "./nudge-Cp00v46W.js";
49
+ import { t as ensureOpenClawModelsJson } from "./models-config-DPG3UP6h.js";
50
+ import { C as coerceImageModelConfig, D as loadModelCatalog, E as findModelInCatalog, O as modelSupportsVision, S as coerceImageAssistantText, T as resolveProviderVisionModelFromConfig, _ as stripCarriedTranscriptFromBody, a as resolveMediaAttachmentLocalRoots, c as applyTemplate, d as normalizeMediaUnderstandingChatType, f as resolveMediaUnderstandingScope, i as normalizeMediaAttachments, l as resolveConcurrency, n as buildProviderRegistry, o as runCapability, p as CLI_OUTPUT_MAX_BUFFER, r as createMediaAttachmentCache, s as minimaxUnderstandImage, t as runAudioTranscription, u as resolveTimeoutMs$2, v as buildRandomTempFilePath, w as decodeDataUrl, x as resolveAttachmentKind, y as registerUnhandledRejectionHandler } from "./audio-transcription-runner-DbjdWQRu.js";
51
+ import { a as formatReasoningMessage, d as stripThinkingTagsFromText, f as formatToolSummary, l as stripDowngradedToolCallText, m as stripReasoningTagsFromText, n as extractAssistantThinking, o as inferToolMetaFromArgs, p as resolveToolDisplay, s as isAssistantMessage, t as extractAssistantText$1, u as stripMinimaxToolCallXml } from "./pi-embedded-utils-JXHsJfhx.js";
52
+ import { a as getDefaultMediaLocalRoots, i as getAgentScopedMediaLocalRoots, n as fetchRemoteMedia, r as readResponseWithLimit } from "./fetch-D7rvWjfk.js";
53
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-DczIA0hC.js";
54
+ import { a as loadWebMedia, i as getDefaultLocalRoots, o as loadWebMediaRaw } from "./ir-D-nyt7yZ.js";
55
+ import { r as normalizeInboundTextNewlines, t as finalizeInboundContext } from "./inbound-context-BdGImnhD.js";
56
+ import { _ as clearAgentRunContext, a as isEmbeddedPiRunActive, b as registerAgentRunContext, c as setActiveEmbeddedRun, d as handleMessageStart, f as handleMessageUpdate, g as endModelCall, h as createInlineCodeState, i as endInFlightEmbeddedAttempt, l as waitForEmbeddedPiRunEnd, m as buildCodeSpanIndex, n as beginInFlightEmbeddedAttempt, o as isEmbeddedPiRunStreaming, p as emitEmbeddedAgentEvent, r as clearActiveEmbeddedRun, s as queueEmbeddedPiMessage, t as abortEmbeddedPiRun, u as handleMessageEnd, v as emitAgentEvent, y as onAgentEvent } from "./runs-DK85oFoq.js";
57
+ import { n as splitMediaFromOutput, t as parseReplyDirectives } from "./reply-directives-C69Fd8zO.js";
58
+ import { c as getSkillsSnapshotVersion, i as resolveSkillCommandInvocation, n as listSkillCommandsForAgents, o as getRemoteSkillEligibility, r as listSkillCommandsForWorkspace, s as ensureSkillsWatcher, t as listReservedChatSlashCommandNames } from "./skill-commands-J-ZcPvqF.js";
59
+ import { t as convertMarkdownTables } from "./tables-ohryoECJ.js";
60
+ import { a as isAllowedIMessageSender, i as formatIMessageChatTarget, n as createIMessageRpcClient, o as normalizeIMessageHandle, r as DEFAULT_IMESSAGE_PROBE_TIMEOUT_MS, s as parseIMessageTarget, t as sendMessageIMessage } from "./send-CciBIiE2.js";
61
+ import { n as resolveAgentRoute, t as buildAgentSessionKey } from "./resolve-route-N9oe4tGM.js";
62
+ import { t as recordInboundSessionMetaSafe } from "./session-meta-BlMS0pts.js";
63
+ import { a as createReplyReferencePlanner, i as resolveSlackThreadTs, n as deliverReplies$2, t as createSlackReplyDeliveryPlan } from "./replies-ClN-Aak4.js";
64
+ import { n as resolveMemorySearchConfig } from "./manager-3Bw8zhA3.js";
65
+ import { m as normalizeExtraMemoryPaths, p as listMemoryFiles } from "./query-expansion-CECAX0Pe.js";
66
66
  import { t as isQmdScopeAllowed } from "./qmd-scope-Btus-Hb9.js";
67
67
  import { createRequire } from "node:module";
68
68
  import * as path$1 from "node:path";
@@ -85,7 +85,7 @@ import { setTimeout as setTimeout$1 } from "node:timers/promises";
85
85
  import { ProxyAgent, fetch as fetch$1 } from "undici";
86
86
  import { EdgeTTS } from "node-edge-tts";
87
87
  import net from "node:net";
88
- import WebSocket from "ws";
88
+ import WebSocket$1 from "ws";
89
89
  import { createJiti } from "jiti";
90
90
  import { AsyncLocalStorage } from "node:async_hooks";
91
91
  import { ApplicationCommandOptionType, ButtonStyle, ChannelType, PermissionFlagsBits, Routes, StickerFormatType } from "discord-api-types/v10";
@@ -10383,7 +10383,7 @@ async function sendTranscriptEcho(params) {
10383
10383
  }
10384
10384
  const text = formatEchoTranscript(transcript, params.format ?? DEFAULT_ECHO_TRANSCRIPT_FORMAT);
10385
10385
  try {
10386
- const { deliverOutboundPayloads } = await import("./deliver-5MyFMK8o.js");
10386
+ const { deliverOutboundPayloads } = await import("./deliver-DTstMBfw.js");
10387
10387
  await deliverOutboundPayloads({
10388
10388
  cfg,
10389
10389
  channel: normalizedChannel,
@@ -18958,7 +18958,7 @@ async function routeReply(params) {
18958
18958
  const resolvedReplyToId = replyToId ?? (channelId === "slack" && threadId != null && threadId !== "" ? String(threadId) : void 0);
18959
18959
  const resolvedThreadId = channelId === "slack" ? null : threadId ?? null;
18960
18960
  try {
18961
- const { deliverOutboundPayloads } = await import("./deliver-5MyFMK8o.js");
18961
+ const { deliverOutboundPayloads } = await import("./deliver-DTstMBfw.js");
18962
18962
  const outboundSession = buildOutboundSessionContext({
18963
18963
  cfg,
18964
18964
  agentId: resolvedAgentId,
@@ -22909,7 +22909,7 @@ async function handleHeartbeatError(params) {
22909
22909
  const AGENT_TURN_PROMPT = "Process the pending system events for this session.";
22910
22910
  async function ackAnnounceExecuted(payload) {
22911
22911
  if (payload.kind !== "announce") return;
22912
- const { markSubagentAnnounceExecuted } = await import("./subagent-registry-DyI22dHA.js");
22912
+ const { markSubagentAnnounceExecuted } = await import("./subagent-registry-Bek3q0nu.js");
22913
22913
  for (const runId of [payload.runId, ...payload.mergedRunIds ?? []]) try {
22914
22914
  await markSubagentAnnounceExecuted(runId);
22915
22915
  } catch {}
@@ -23333,7 +23333,7 @@ const DIRECT_ANNOUNCE_TRANSIENT_RETRY_DELAYS_MS = FAST_TEST_MODE ? [
23333
23333
  let subagentRegistryAccessPromise;
23334
23334
  const STALLED_SIBLING_ANNOUNCE_HOLD_MS = 5 * 6e4;
23335
23335
  function loadSubagentRegistryAccess() {
23336
- if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-DyI22dHA.js").catch((err) => {
23336
+ if (!subagentRegistryAccessPromise) subagentRegistryAccessPromise = import("./subagent-registry-Bek3q0nu.js").catch((err) => {
23337
23337
  const message = err instanceof Error && err.message ? err.message : String(err);
23338
23338
  defaultRuntime.log(`[warn] subagent registry access import failed: ${message}`);
23339
23339
  subagentRegistryAccessPromise = void 0;
@@ -37711,7 +37711,7 @@ async function createModelSelectionState(params) {
37711
37711
  }
37712
37712
  }
37713
37713
  if (sessionEntry && sessionStore && sessionKey && sessionEntry.authProfileOverride) {
37714
- const { ensureAuthProfileStore } = await import("./auth-profiles-BxDhfCHT.js");
37714
+ const { ensureAuthProfileStore } = await import("./auth-profiles-DPd1Ol-P.js");
37715
37715
  const profile = ensureAuthProfileStore(void 0, { allowKeychainPrompt: false }).profiles[sessionEntry.authProfileOverride];
37716
37716
  const providerKey = normalizeProviderId(provider);
37717
37717
  if (!profile || normalizeProviderId(profile.provider) !== providerKey) await clearSessionAuthProfileOverride({
@@ -55608,7 +55608,7 @@ async function deliverSessionMaintenanceWarning(params) {
55608
55608
  return;
55609
55609
  }
55610
55610
  try {
55611
- const { deliverOutboundPayloads } = await import("./deliver-5MyFMK8o.js");
55611
+ const { deliverOutboundPayloads } = await import("./deliver-DTstMBfw.js");
55612
55612
  const outboundSession = buildOutboundSessionContext({
55613
55613
  cfg: params.cfg,
55614
55614
  sessionKey: params.sessionKey
@@ -62386,7 +62386,7 @@ async function resolveDiscordPreflightAudioMentionContext(params) {
62386
62386
  let transcript;
62387
62387
  let carry;
62388
62388
  if (needsPreflightTranscription) try {
62389
- const { transcribeFirstAudio } = await import("./audio-preflight-2XKqIXAx.js");
62389
+ const { transcribeFirstAudio } = await import("./audio-preflight-DhIYyWh0.js");
62390
62390
  const uploadable = audioAttachments.filter((att) => typeof att.url === "string" && att.url.length > 0);
62391
62391
  if (uploadable.length > 0) {
62392
62392
  const preflight = await transcribeFirstAudio({
@@ -69656,19 +69656,19 @@ function createDefaultDeps() {
69656
69656
  };
69657
69657
  }),
69658
69658
  sendMessageDiscord: async (...args) => {
69659
- const { sendMessageDiscord } = await import("./send-BToCKtul.js");
69659
+ const { sendMessageDiscord } = await import("./send-C8OYq5CD.js");
69660
69660
  return await sendMessageDiscord(...args);
69661
69661
  },
69662
69662
  sendMessageSlack: async (...args) => {
69663
- const { sendMessageSlack } = await import("./send-rQhDBwIJ.js");
69663
+ const { sendMessageSlack } = await import("./send-CilPGWoe.js");
69664
69664
  return await sendMessageSlack(...args);
69665
69665
  },
69666
69666
  sendMessageSignal: async (...args) => {
69667
- const { sendMessageSignal } = await import("./send-CY2iq9C4.js");
69667
+ const { sendMessageSignal } = await import("./send-DFpY65tA.js");
69668
69668
  return await sendMessageSignal(...args);
69669
69669
  },
69670
69670
  sendMessageIMessage: async (...args) => {
69671
- const { sendMessageIMessage } = await import("./send-vp7qbuoy.js");
69671
+ const { sendMessageIMessage } = await import("./send-CMAU8Lg8.js");
69672
69672
  return await sendMessageIMessage(...args);
69673
69673
  }
69674
69674
  };
@@ -73263,7 +73263,7 @@ var ResilientGatewayPlugin = class extends GatewayPlugin {
73263
73263
  }
73264
73264
  createWebSocket(url) {
73265
73265
  if (!this.wsAgent) return super.createWebSocket(url);
73266
- return new WebSocket(url, { agent: this.wsAgent });
73266
+ return new WebSocket$1(url, { agent: this.wsAgent });
73267
73267
  }
73268
73268
  };
73269
73269
  function createDiscordGatewayPlugin(params) {
@@ -80990,7 +80990,7 @@ function readSlackExternalArgMenuToken(raw) {
80990
80990
  }
80991
80991
  let commandsRegistry;
80992
80992
  async function getCommandsRegistry() {
80993
- if (!commandsRegistry) commandsRegistry = await import("./commands-registry-DnePgYTq.js").then((n) => n.n);
80993
+ if (!commandsRegistry) commandsRegistry = await import("./commands-registry-DPCcTIwi.js").then((n) => n.n);
80994
80994
  return commandsRegistry;
80995
80995
  }
80996
80996
  function encodeSlackCommandArgValue(parts) {
@@ -81320,14 +81320,14 @@ async function registerSlackMonitorSlashCommands(params) {
81320
81320
  const channelName = channelInfo?.name;
81321
81321
  const roomLabel = channelName ? `#${channelName}` : `#${command.channel_id}`;
81322
81322
  const [{ resolveAgentRoute }, { finalizeInboundContext }, { dispatchReplyWithDispatcher }] = await Promise.all([
81323
- import("./resolve-route-t2HJkuDx.js").then((n) => n.r),
81324
- import("./inbound-context-CKtZsNVT.js").then((n) => n.n),
81325
- import("./provider-dispatcher-uLJ5yzx1.js")
81323
+ import("./resolve-route-N9oe4tGM.js").then((n) => n.r),
81324
+ import("./inbound-context-BdGImnhD.js").then((n) => n.n),
81325
+ import("./provider-dispatcher-Cq6Acy3h.js")
81326
81326
  ]);
81327
81327
  const [{ resolveConversationLabel }, { createReplyPrefixOptions }, { recordInboundSessionMetaSafe }] = await Promise.all([
81328
81328
  import("./conversation-label-a1YYj3eN.js"),
81329
- import("./reply-prefix-DCeyas-6.js").then((n) => n.n),
81330
- import("./session-meta-_XFpsAgw.js").then((n) => n.n)
81329
+ import("./reply-prefix-BQ-rDIAU.js").then((n) => n.n),
81330
+ import("./session-meta-BlMS0pts.js").then((n) => n.n)
81331
81331
  ]);
81332
81332
  const route = resolveAgentRoute({
81333
81333
  cfg,
@@ -81392,9 +81392,9 @@ async function registerSlackMonitorSlashCommands(params) {
81392
81392
  });
81393
81393
  const deliverSlashPayloads = async (replies) => {
81394
81394
  const [{ deliverSlackSlashReplies }, { resolveChunkMode, resolveChunkNewlinePacking }, { resolveMarkdownTableMode }] = await Promise.all([
81395
- import("./replies-BNtRlug2.js"),
81396
- import("./chunk-SR4Ydfza.js").then((n) => n.s),
81397
- import("./markdown-tables-B4G-uOPz.js").then((n) => n.t)
81395
+ import("./replies-BhuMuYfa.js"),
81396
+ import("./chunk-C3M1IW7W.js").then((n) => n.s),
81397
+ import("./markdown-tables-DczIA0hC.js").then((n) => n.t)
81398
81398
  ]);
81399
81399
  await deliverSlackSlashReplies({
81400
81400
  replies,
@@ -81448,7 +81448,7 @@ async function registerSlackMonitorSlashCommands(params) {
81448
81448
  let nativeCommands = [];
81449
81449
  if (nativeEnabled) {
81450
81450
  reg = await getCommandsRegistry();
81451
- const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-DJ9gv-vK.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
81451
+ const skillCommands = nativeSkillsEnabled ? (await import("./skill-commands-J-ZcPvqF.js").then((n) => n.a)).listSkillCommandsForAgents({ cfg }) : [];
81452
81452
  nativeCommands = reg.listNativeCommandSpecsForConfig(cfg, {
81453
81453
  skillCommands,
81454
81454
  provider: "slack"
@@ -82392,7 +82392,7 @@ async function getMemorySearchManager(params) {
82392
82392
  if (cached) return { manager: cached };
82393
82393
  }
82394
82394
  try {
82395
- const { QmdMemoryManager } = await import("./qmd-manager-DERrmogO.js");
82395
+ const { QmdMemoryManager } = await import("./qmd-manager-CIgxgs0D.js");
82396
82396
  const primary = await QmdMemoryManager.create({
82397
82397
  cfg: params.cfg,
82398
82398
  agentId: params.agentId,
@@ -82404,7 +82404,7 @@ async function getMemorySearchManager(params) {
82404
82404
  const wrapper = new FallbackMemoryManager({
82405
82405
  primary,
82406
82406
  fallbackFactory: async () => {
82407
- const { MemoryIndexManager } = await import("./manager-B9WMktLu.js");
82407
+ const { MemoryIndexManager } = await import("./manager-BexdJt3o.js");
82408
82408
  return await MemoryIndexManager.get(params);
82409
82409
  }
82410
82410
  }, () => {
@@ -82419,7 +82419,7 @@ async function getMemorySearchManager(params) {
82419
82419
  }
82420
82420
  }
82421
82421
  try {
82422
- const { MemoryIndexManager } = await import("./manager-B9WMktLu.js");
82422
+ const { MemoryIndexManager } = await import("./manager-BexdJt3o.js");
82423
82423
  return { manager: await MemoryIndexManager.get(params) };
82424
82424
  } catch (err) {
82425
82425
  return {
@@ -87584,7 +87584,7 @@ function createPluginRuntime(options = {}) {
87584
87584
  workStates: readTaskWorkStates
87585
87585
  },
87586
87586
  resolveLearningWorkspaceDir: (agentId) => resolveLearningWorkspaceDir(loadConfig(), agentId),
87587
- sessions: { startUserRun: async (params) => (await import("./user-run-recording-C05KbS-o.js").then((n) => n.n)).startUserSessionRun(params) }
87587
+ sessions: { startUserRun: async (params) => (await import("./user-run-recording-CAAdiBWD.js").then((n) => n.n)).startUserSessionRun(params) }
87588
87588
  };
87589
87589
  Object.defineProperty(runtime, "analysis", {
87590
87590
  enumerable: true,
@@ -89127,7 +89127,7 @@ function shouldEmitLoopWarning(state, warningKey, count) {
89127
89127
  async function recordLoopOutcome(args) {
89128
89128
  if (!args.ctx?.sessionKey) return;
89129
89129
  try {
89130
- const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Y-_mHHE2.js").then((n) => n.n);
89130
+ const { getDiagnosticSessionState } = await import("./diagnostic-session-state-C74O1QW2.js").then((n) => n.n);
89131
89131
  const { recordToolCallOutcome } = await import("./tool-loop-detection-6zhykL8L.js");
89132
89132
  recordToolCallOutcome(getDiagnosticSessionState({
89133
89133
  sessionKey: args.ctx.sessionKey,
@@ -89154,8 +89154,8 @@ async function runBeforeToolCallHook(args) {
89154
89154
  const toolName = normalizeToolName(args.toolName || "tool");
89155
89155
  const params = args.params;
89156
89156
  if (args.ctx?.sessionKey) {
89157
- const { getDiagnosticSessionState } = await import("./diagnostic-session-state-Y-_mHHE2.js").then((n) => n.n);
89158
- const { logToolLoopAction } = await import("./diagnostic-BXgGsRnq.js").then((n) => n.n);
89157
+ const { getDiagnosticSessionState } = await import("./diagnostic-session-state-C74O1QW2.js").then((n) => n.n);
89158
+ const { logToolLoopAction } = await import("./diagnostic-TucKQ5Fk.js").then((n) => n.n);
89159
89159
  const { detectToolCallLoop, recordToolCall } = await import("./tool-loop-detection-6zhykL8L.js");
89160
89160
  const sessionState = getDiagnosticSessionState({
89161
89161
  sessionKey: args.ctx.sessionKey,
@@ -94089,7 +94089,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
94089
94089
  * Throws if the connection is not open.
94090
94090
  */
94091
94091
  send(event) {
94092
- if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error(`OpenAIWebSocketManager: cannot send — connection is not open (readyState=${this.ws?.readyState ?? "no socket"})`);
94092
+ 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"})`);
94093
94093
  this.ws.send(JSON.stringify(event));
94094
94094
  }
94095
94095
  /**
@@ -94106,7 +94106,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
94106
94106
  * Returns true if the WebSocket is currently open and ready to send.
94107
94107
  */
94108
94108
  isConnected() {
94109
- return this.ws !== null && this.ws.readyState === WebSocket.OPEN;
94109
+ return this.ws !== null && this.ws.readyState === WebSocket$1.OPEN;
94110
94110
  }
94111
94111
  /**
94112
94112
  * Permanently closes the WebSocket connection and disables auto-reconnect.
@@ -94116,7 +94116,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
94116
94116
  this._cancelRetryTimer();
94117
94117
  if (this.ws) {
94118
94118
  this.ws.removeAllListeners();
94119
- if (this.ws.readyState === WebSocket.OPEN || this.ws.readyState === WebSocket.CONNECTING) this.ws.close(1e3, "Client closed");
94119
+ if (this.ws.readyState === WebSocket$1.OPEN || this.ws.readyState === WebSocket$1.CONNECTING) this.ws.close(1e3, "Client closed");
94120
94120
  this.ws = null;
94121
94121
  }
94122
94122
  }
@@ -94126,7 +94126,7 @@ var OpenAIWebSocketManager = class extends EventEmitter {
94126
94126
  reject(/* @__PURE__ */ new Error("OpenAIWebSocketManager: apiKey is required before connecting."));
94127
94127
  return;
94128
94128
  }
94129
- const socket = new WebSocket(this.wsUrl, { headers: {
94129
+ const socket = new WebSocket$1(this.wsUrl, { headers: {
94130
94130
  Authorization: `Bearer ${this.apiKey}`,
94131
94131
  "OpenAI-Beta": "responses-websocket=v1"
94132
94132
  } });
@@ -1,14 +1,14 @@
1
- import { f as __exportAll } from "./proxy-env-jBCtIiJH.js";
2
- import { $t as GATEWAY_CLIENT_NAMES, Aa as stringEnum, Lr as ASSISTANT_IDENTITY_COLORS, Qt as GATEWAY_CLIENT_MODES, Rr as secretRefKey, Zt as GATEWAY_CLIENT_IDS, da as resolveSecretInputRef, ka as optionalStringEnum, la as hasConfiguredSecretInput, on as loadConfig, pr as resolveSecretRefValues } from "./registry-B-9fRLtl.js";
1
+ import { f as __exportAll } from "./proxy-env-D9QKz5Mq.js";
2
+ import { $t as GATEWAY_CLIENT_NAMES, Aa as stringEnum, Lr as ASSISTANT_IDENTITY_COLORS, Qt as GATEWAY_CLIENT_MODES, Rr as secretRefKey, Zt as GATEWAY_CLIENT_IDS, da as resolveSecretInputRef, ka as optionalStringEnum, la as hasConfiguredSecretInput, on as loadConfig, pr as resolveSecretRefValues } from "./registry-D9-EsIYH.js";
3
3
  import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-BIDPYPVC.js";
4
4
  import { S as shortenHomeInString, b as resolveUserPath, p as ensureDir$1, t as createSubsystemLogger, u as CONFIG_DIR } from "./subsystem-BRH2eiRx.js";
5
5
  import { A as logError, X as normalizeMainKey, Y as normalizeAgentId, Z as resolveAgentIdFromSessionKey, c as resolveDefaultAgentId, dt as isAcpSessionKey, k as logDebug, mt as isSubagentSessionKey, n as listAgentIds, nt as sessionKeyAgentMatches } from "./agent-scope-Brtnf-qo.js";
6
6
  import { t as emitDiagnosticEvent } from "./diagnostic-events-C6NdYDq9.js";
7
- import { Q as TASK_RUN_STATUSES, Z as TASK_RUN_MODES, _ as INPUT_PROVENANCE_KIND_VALUES, lr as SESSION_RUN_STATUSES, yr as resolveAgentMainSessionKey } from "./sessions-DGyoDRbg.js";
7
+ import { Q as TASK_RUN_STATUSES, Z as TASK_RUN_MODES, _ as INPUT_PROVENANCE_KIND_VALUES, lr as SESSION_RUN_STATUSES, yr as resolveAgentMainSessionKey } from "./sessions-BUjbH5K1.js";
8
8
  import { t as redactIdentifier } from "./redact-identifier-B3PwKCZi.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-D3tAlzpP.js";
10
- import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-BzjQAveZ.js";
11
- import { t as resolveGatewayCredentialsFromConfig } from "./credentials-DJMyq23O.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-fV3h6ELM.js";
10
+ import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-zaFiZiYP.js";
11
+ import { t as resolveGatewayCredentialsFromConfig } from "./credentials-BgX_xjTe.js";
12
12
  import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-Dt0in6lC.js";
13
13
  import { n as resolvePairingPaths, t as pruneExpiredPending } from "./pairing-files-EvM-8IOn.js";
14
14
  import path from "node:path";
@@ -18,7 +18,7 @@ import fs from "node:fs";
18
18
  import { promisify } from "node:util";
19
19
  import fs$1 from "node:fs/promises";
20
20
  import { execFile } from "node:child_process";
21
- import { WebSocket as WebSocket$1 } from "ws";
21
+ import { WebSocket } from "ws";
22
22
  import AjvPkg from "ajv";
23
23
 
24
24
  //#region src/infra/docs-site.ts
@@ -2847,7 +2847,7 @@ var GatewayClient = class {
2847
2847
  if (fingerprint !== expected) return /* @__PURE__ */ new Error("gateway tls fingerprint mismatch");
2848
2848
  });
2849
2849
  }
2850
- this.ws = new WebSocket$1(url, wsOptions);
2850
+ this.ws = new WebSocket(url, wsOptions);
2851
2851
  this.ws.on("open", () => {
2852
2852
  if (url.startsWith("wss://") && this.opts.tlsFingerprint) {
2853
2853
  const tlsError = this.validateTlsFingerprint();
@@ -3043,7 +3043,7 @@ var GatewayClient = class {
3043
3043
  const connectChallengeTimeoutMs = typeof rawConnectDelayMs === "number" && Number.isFinite(rawConnectDelayMs) ? Math.max(250, Math.min(1e4, rawConnectDelayMs)) : 2e3;
3044
3044
  if (this.connectTimer) clearTimeout(this.connectTimer);
3045
3045
  this.connectTimer = setTimeout(() => {
3046
- if (this.connectSent || this.ws?.readyState !== WebSocket$1.OPEN) return;
3046
+ if (this.connectSent || this.ws?.readyState !== WebSocket.OPEN) return;
3047
3047
  this.opts.onConnectError?.(/* @__PURE__ */ new Error("gateway connect challenge timeout"));
3048
3048
  this.ws?.close(1008, "connect challenge timeout");
3049
3049
  }, connectChallengeTimeoutMs);
@@ -3085,7 +3085,7 @@ var GatewayClient = class {
3085
3085
  return null;
3086
3086
  }
3087
3087
  async request(method, params, opts) {
3088
- if (!this.ws || this.ws.readyState !== WebSocket$1.OPEN) throw new Error("gateway not connected");
3088
+ if (!this.ws || this.ws.readyState !== WebSocket.OPEN) throw new Error("gateway not connected");
3089
3089
  const id = randomUUID();
3090
3090
  const frame = {
3091
3091
  type: "req",
@@ -4431,7 +4431,7 @@ function indentUntrustedBody(body) {
4431
4431
  }
4432
4432
  function trackNudgeClaimChain(runner, id, sessionKey) {
4433
4433
  const tracked = (async () => {
4434
- const { runMainAgentTurn } = await import("./agent-turn-execute-Co_96UFp.js");
4434
+ const { runMainAgentTurn } = await import("./agent-turn-execute-D0szeKs8.js");
4435
4435
  await runner.claimAndExecute({
4436
4436
  workId: id,
4437
4437
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -1,14 +1,14 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-DGPv0F8I.js";
2
+ import { Z as CONFIG_DIR, et as ensureDir$1, lt as shortenHomeInString, st as resolveUserPath, t as createSubsystemLogger } from "./subsystem-Btq0amiz.js";
3
3
  import { l as resolveStateDir, o as resolveGatewayPort, r as resolveConfigPath } from "./paths-ByOJz2Td.js";
4
- import { H as normalizeAgentId, U as normalizeMainKey, W as resolveAgentIdFromSessionKey, Y as sessionKeyAgentMatches, c as resolveDefaultAgentId, ht as logError, it as isAcpSessionKey, mt as logDebug, n as listAgentIds, st as isSubagentSessionKey } from "./agent-scope-Cy5bPtkD.js";
5
- import { O as ASSISTANT_IDENTITY_COLORS, Sr as stringEnum, cr as GATEWAY_CLIENT_MODES, g as loadConfig, la as resolveSecretInputRef, lr as GATEWAY_CLIENT_NAMES, pi as resolveSecretRefValues, sa as hasConfiguredSecretInput, sr as GATEWAY_CLIENT_IDS, vi as secretRefKey, xr as optionalStringEnum } from "./model-auth-pNsZhRxq.js";
6
- import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-C7BGsi5P.js";
7
- import { t as resolveGatewayCredentialsFromConfig } from "./credentials-BFdx8hCQ.js";
4
+ import { H as normalizeAgentId, U as normalizeMainKey, W as resolveAgentIdFromSessionKey, Y as sessionKeyAgentMatches, c as resolveDefaultAgentId, ht as logError, it as isAcpSessionKey, mt as logDebug, n as listAgentIds, st as isSubagentSessionKey } from "./agent-scope-BnbrZIzh.js";
5
+ import { O as ASSISTANT_IDENTITY_COLORS, Sr as stringEnum, cr as GATEWAY_CLIENT_MODES, g as loadConfig, la as resolveSecretInputRef, lr as GATEWAY_CLIENT_NAMES, pi as resolveSecretRefValues, sa as hasConfiguredSecretInput, sr as GATEWAY_CLIENT_IDS, vi as secretRefKey, xr as optionalStringEnum } from "./model-auth-Beiv1ujI.js";
6
+ import { i as isSecureWebSocketUrl, t as rawDataToString } from "./ws-DN6RmfyQ.js";
7
+ import { t as resolveGatewayCredentialsFromConfig } from "./credentials-oF38Hm9r.js";
8
8
  import { n as readJsonFile, r as writeJsonAtomic, t as createAsyncLock } from "./json-files-Dv1amfKB.js";
9
- import { Bt as resolveAgentMainSessionKey, Mt as SESSION_RUN_STATUSES, Q as TASK_RUN_STATUSES, Z as TASK_RUN_MODES, _ as INPUT_PROVENANCE_KIND_VALUES } from "./sessions-CkJfRajZ.js";
9
+ import { Bt as resolveAgentMainSessionKey, Mt as SESSION_RUN_STATUSES, Q as TASK_RUN_STATUSES, Z as TASK_RUN_MODES, _ as INPUT_PROVENANCE_KIND_VALUES } from "./sessions-BfBjVuaP.js";
10
10
  import { t as emitDiagnosticEvent } from "./diagnostic-events-vl4-JuDp.js";
11
- 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-CBR6kAt-.js";
11
+ 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-zbex5xar.js";
12
12
  import { t as redactIdentifier } from "./redact-identifier-BeEaSiCx.js";
13
13
  import { n as resolvePairingPaths, t as pruneExpiredPending } from "./pairing-files-Dv0qzQuf.js";
14
14
  import fs from "node:fs";
@@ -4431,7 +4431,7 @@ function indentUntrustedBody(body) {
4431
4431
  }
4432
4432
  function trackNudgeClaimChain(runner, id, sessionKey) {
4433
4433
  const tracked = (async () => {
4434
- const { runMainAgentTurn } = await import("./agent-turn-execute-Cr_GYkDb.js").then((n) => n.t);
4434
+ const { runMainAgentTurn } = await import("./agent-turn-execute-Bj1_MqWi.js").then((n) => n.t);
4435
4435
  await runner.claimAndExecute({
4436
4436
  workId: id,
4437
4437
  execute: (claim) => runMainAgentTurn(claim.message.payload)
@@ -1,10 +1,10 @@
1
- import { rt as isRecord } from "./subsystem-DGPv0F8I.js";
2
- import { dt as resolveAgentModelFallbackValues, ft as resolveAgentModelPrimaryValue } from "./agent-scope-Cy5bPtkD.js";
3
- import { t as fetchWithSsrFGuard } from "./fetch-guard-CJhIVznN.js";
4
- import { ba as normalizeSecretInput, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-pNsZhRxq.js";
5
- import { t as ensureOpenClawModelsJson } from "./models-config-d-LFEKVs.js";
6
- import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-CMOEq078.js";
7
- import { t as extractAssistantText } from "./pi-embedded-utils-cecBA96E.js";
1
+ import { rt as isRecord } from "./subsystem-Btq0amiz.js";
2
+ import { dt as resolveAgentModelFallbackValues, ft as resolveAgentModelPrimaryValue } from "./agent-scope-BnbrZIzh.js";
3
+ import { t as fetchWithSsrFGuard } from "./fetch-guard-Dpd7hJ0h.js";
4
+ import { ba as normalizeSecretInput, r as requireApiKey, t as getApiKeyForModel } from "./model-auth-Beiv1ujI.js";
5
+ import { t as ensureOpenClawModelsJson } from "./models-config-DrzOHxl5.js";
6
+ import { n as discoverModels, t as discoverAuthStorage } from "./pi-model-discovery-HVno_0HD.js";
7
+ import { t as extractAssistantText } from "./pi-embedded-utils-DcsHTJ1m.js";
8
8
  import path from "node:path";
9
9
  import { complete } from "@mariozechner/pi-ai";
10
10
 
@@ -1,5 +1,5 @@
1
- import { i as saveMediaBuffer } from "./store-KaVQ5gHj.js";
2
- import { a as loadWebMedia } from "./ir-C1cLQG0N.js";
1
+ import { i as saveMediaBuffer } from "./store-D8eITlWs.js";
2
+ import { a as loadWebMedia } from "./ir-BnNIPrDz.js";
3
3
  import { t as buildOutboundMediaLoadOptions } from "./load-options-NXJEwVRG.js";
4
4
 
5
5
  //#region src/media/outbound-attachment.ts
@@ -1,5 +1,5 @@
1
1
  import { i as saveMediaBuffer } from "./store-PqXav9ys.js";
2
- import { a as loadWebMedia } from "./ir-Ep5lw12h.js";
2
+ import { a as loadWebMedia } from "./ir-D-nyt7yZ.js";
3
3
  import { t as buildOutboundMediaLoadOptions } from "./load-options-CdjlUaH0.js";
4
4
 
5
5
  //#region src/media/outbound-attachment.ts
@@ -1,7 +1,7 @@
1
- import { f as logVerbose, t as createSubsystemLogger } from "./subsystem-DGPv0F8I.js";
2
- import { d as resolveSessionAgentId } from "./agent-scope-Cy5bPtkD.js";
3
- import { Dt as triggerInternalHook, Et as createInternalHookEvent, It as getConfiguredSessionStorageRuntime } from "./model-auth-pNsZhRxq.js";
4
- import { E as buildPluginTurnIdentity, T as buildPluginRuntimeIdentity } from "./sessions-CkJfRajZ.js";
1
+ import { f as logVerbose, t as createSubsystemLogger } from "./subsystem-Btq0amiz.js";
2
+ import { d as resolveSessionAgentId } from "./agent-scope-BnbrZIzh.js";
3
+ import { Dt as triggerInternalHook, Et as createInternalHookEvent, It as getConfiguredSessionStorageRuntime } from "./model-auth-Beiv1ujI.js";
4
+ import { E as buildPluginTurnIdentity, T as buildPluginRuntimeIdentity } from "./sessions-BfBjVuaP.js";
5
5
 
6
6
  //#region src/infra/outbound/session-context.ts
7
7
  const log$1 = createSubsystemLogger("outbound/session-context");