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,8 +1,8 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
2
  import { _ as resolveStateDir, b as resolveRequiredHomeDir, c as resolveDefaultConfigCandidates, g as resolveOAuthPath, h as resolveOAuthDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, v as expandHomePrefix } from "./paths-C7aURmuZ.js";
3
- import { G as INCLUDE_KEY, J as isBlockedObjectKey, K as readConfigIncludeFileWithGuards, L as getChildLogger, Q as openBoundaryFileSync, U as normalizeConfigPaths, V as createFileLogWriter, W as ConfigIncludeError, Y as isPathInside$1, _ as normalizeE164, at as isPathInside$2, b as resolveUserPath, ct as applyConfigEnvVars, dt as MissingEnvVarError, ft as containsEnvVarReference, g as isRecord$3, k as logVerbose, m as escapeRegExp, n as stripAnsi, pt as resolveConfigEnvVars, q as resolveConfigIncludes, t as createSubsystemLogger, ut as sanitizeHostExecEnv, w as sleep, y as resolveConfigDir } from "./subsystem-BTMrlJ-R.js";
3
+ import { G as INCLUDE_KEY, J as isBlockedObjectKey, K as readConfigIncludeFileWithGuards, L as getChildLogger, Q as openBoundaryFileSync, U as normalizeConfigPaths, V as createFileLogWriter, W as ConfigIncludeError, Y as isPathInside$1, _ as normalizeE164, at as isPathInside$2, b as resolveUserPath, ct as applyConfigEnvVars, dt as MissingEnvVarError, ft as containsEnvVarReference, g as isRecord$3, k as logVerbose, m as escapeRegExp, n as stripAnsi, pt as resolveConfigEnvVars, q as resolveConfigIncludes, t as createSubsystemLogger, ut as sanitizeHostExecEnv, w as sleep, y as resolveConfigDir } from "./subsystem-B9soUuXQ.js";
4
4
  import { n as resolveProcessScopedMap, t as isPlainObject$2 } from "./plain-object-Doc_YkH1.js";
5
- import { B as RAW_PEER_KEY_PREFIX, D as runExec, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, K as expandIdentityLinksToMatchKeys, L as DEFAULT_AGENT_ID, Y as normalizeAgentId, _t as stripAgentSessionKeyPrefix, a as resolveAgentEffectiveModelPrimary, at as normalizeAccountId$1, c as resolveDefaultAgentId, ht as parseAgentSessionKey, it as DEFAULT_ACCOUNT_ID, n as listAgentIds, ot as normalizeOptionalAccountId, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-BJFJ0deZ.js";
5
+ import { B as RAW_PEER_KEY_PREFIX, D as runExec, F as resolveAgentModelPrimaryValue, I as toAgentModelListLike, K as expandIdentityLinksToMatchKeys, L as DEFAULT_AGENT_ID, Y as normalizeAgentId, _t as stripAgentSessionKeyPrefix, a as resolveAgentEffectiveModelPrimary, at as normalizeAccountId$1, c as resolveDefaultAgentId, ht as parseAgentSessionKey, it as DEFAULT_ACCOUNT_ID, n as listAgentIds, ot as normalizeOptionalAccountId, r as resolveAgentConfig, s as resolveAgentWorkspaceDir } from "./agent-scope-DUbhjnHb.js";
6
6
  import { a as saveJsonFile, i as loadJsonFile, r as resolveCopilotApiToken, t as DEFAULT_COPILOT_API_BASE_URL } from "./github-copilot-token-Dk0djIhM.js";
7
7
  import { n as resolveConversationLabel, r as normalizeChatType } from "./conversation-label-BkRfLUVO.js";
8
8
  import { createRequire } from "node:module";
@@ -13,7 +13,7 @@ import path from "node:path";
13
13
  import { isDeepStrictEqual } from "node:util";
14
14
  import JSON5 from "json5";
15
15
  import dotenv from "dotenv";
16
- import fs$1 from "node:fs/promises";
16
+ import fsp from "node:fs/promises";
17
17
  import { execFileSync, spawn } from "node:child_process";
18
18
  import { fileURLToPath } from "node:url";
19
19
  import { getOAuthApiKey, getOAuthProviders } from "@mariozechner/pi-ai/oauth";
@@ -907,7 +907,7 @@ function isCreatedAtStale(createdAt, staleMs) {
907
907
  }
908
908
  async function readLockPayload$1(lockPath) {
909
909
  try {
910
- const raw = await fs$1.readFile(lockPath, "utf8");
910
+ const raw = await fsp.readFile(lockPath, "utf8");
911
911
  const parsed = JSON.parse(raw);
912
912
  if (typeof parsed.pid !== "number" || typeof parsed.createdAt !== "string") return null;
913
913
  const payload = {
@@ -924,7 +924,7 @@ async function readLockPayload$1(lockPath) {
924
924
  }
925
925
  async function chmodIfSupported(filePath, mode) {
926
926
  try {
927
- await fs$1.chmod(filePath, mode);
927
+ await fsp.chmod(filePath, mode);
928
928
  } catch (err) {
929
929
  if (process.platform === "win32") return;
930
930
  throw err;
@@ -933,15 +933,15 @@ async function chmodIfSupported(filePath, mode) {
933
933
  async function resolveNormalizedFilePath(filePath, options) {
934
934
  const resolved = path.resolve(filePath);
935
935
  const dir = path.dirname(resolved);
936
- if (options.directoryMode === void 0) await fs$1.mkdir(dir, { recursive: true });
936
+ if (options.directoryMode === void 0) await fsp.mkdir(dir, { recursive: true });
937
937
  else {
938
- await fs$1.mkdir(dir, {
938
+ await fsp.mkdir(dir, {
939
939
  recursive: true,
940
940
  mode: options.directoryMode
941
941
  });
942
942
  await chmodIfSupported(dir, options.directoryMode);
943
943
  }
944
- const realDir = await fs$1.realpath(dir);
944
+ const realDir = await fsp.realpath(dir);
945
945
  return path.join(realDir, path.basename(resolved));
946
946
  }
947
947
  async function isStaleLock(lockPath, staleMs) {
@@ -956,7 +956,7 @@ async function isStaleLock(lockPath, staleMs) {
956
956
  return false;
957
957
  }
958
958
  try {
959
- const stat = await fs$1.stat(lockPath);
959
+ const stat = await fsp.stat(lockPath);
960
960
  return Date.now() - stat.mtimeMs > staleMs;
961
961
  } catch {
962
962
  return true;
@@ -980,7 +980,7 @@ async function releaseHeldLock$1(normalizedFile) {
980
980
  throw emitLockReleaseWarning("close", current.lockPath, err);
981
981
  }
982
982
  try {
983
- await fs$1.rm(current.lockPath, { force: true });
983
+ await fsp.rm(current.lockPath, { force: true });
984
984
  } catch (err) {
985
985
  current.count = 1;
986
986
  throw emitLockReleaseWarning("remove", current.lockPath, err);
@@ -1003,7 +1003,7 @@ async function acquireFileLock(filePath, options) {
1003
1003
  let attempt = 0;
1004
1004
  let staleReclaims = 0;
1005
1005
  while (attempt < attempts) try {
1006
- const handle = await fs$1.open(lockPath, "wx");
1006
+ const handle = await fsp.open(lockPath, "wx");
1007
1007
  try {
1008
1008
  await handle.writeFile(JSON.stringify({
1009
1009
  pid: process.pid,
@@ -1012,7 +1012,7 @@ async function acquireFileLock(filePath, options) {
1012
1012
  }, null, 2), "utf8");
1013
1013
  } catch (writeErr) {
1014
1014
  await handle.close().catch(() => void 0);
1015
- await fs$1.rm(lockPath, { force: true }).catch(() => void 0);
1015
+ await fsp.rm(lockPath, { force: true }).catch(() => void 0);
1016
1016
  throw writeErr;
1017
1017
  }
1018
1018
  HELD_LOCKS$1.set(normalizedFile, {
@@ -1028,7 +1028,7 @@ async function acquireFileLock(filePath, options) {
1028
1028
  } catch (err) {
1029
1029
  if (err.code !== "EEXIST") throw err;
1030
1030
  if (await isStaleLock(lockPath, options.stale)) {
1031
- await fs$1.rm(lockPath, { force: true }).catch(() => void 0);
1031
+ await fsp.rm(lockPath, { force: true }).catch(() => void 0);
1032
1032
  if (staleReclaims < attempts) {
1033
1033
  staleReclaims += 1;
1034
1034
  continue;
@@ -1871,7 +1871,7 @@ function formatWindowsAclSummary(summary) {
1871
1871
  //#region src/security/audit-fs.ts
1872
1872
  async function safeStat(targetPath) {
1873
1873
  try {
1874
- const lst = await fs$1.lstat(targetPath);
1874
+ const lst = await fsp.lstat(targetPath);
1875
1875
  return {
1876
1876
  ok: true,
1877
1877
  isSymlink: lst.isSymbolicLink(),
@@ -1910,7 +1910,7 @@ async function inspectPathPermissions(targetPath, opts) {
1910
1910
  let effectiveMode = st.mode;
1911
1911
  let effectiveIsDir = st.isDir;
1912
1912
  if (st.isSymlink) try {
1913
- const target = await fs$1.stat(targetPath);
1913
+ const target = await fsp.stat(targetPath);
1914
1914
  effectiveMode = typeof target.mode === "number" ? target.mode : st.mode;
1915
1915
  effectiveIsDir = target.isDirectory();
1916
1916
  } catch {}
@@ -2192,7 +2192,7 @@ async function assertSecurePath(params) {
2192
2192
  if (stat.isSymlink) {
2193
2193
  if (!params.allowSymlinkPath) throw new Error(`${params.label} must not be a symlink: ${effectivePath}`);
2194
2194
  try {
2195
- effectivePath = await fs$1.realpath(effectivePath);
2195
+ effectivePath = await fsp.realpath(effectivePath);
2196
2196
  } catch {
2197
2197
  throw new Error(`${params.label} symlink target is not readable: ${params.targetPath}`);
2198
2198
  }
@@ -2240,7 +2240,7 @@ async function readFileProviderPayload(params) {
2240
2240
  }, timeoutMs);
2241
2241
  });
2242
2242
  try {
2243
- const payload = await Promise.race([fs$1.readFile(secureFilePath, { signal: abortController.signal }), timeoutPromise]);
2243
+ const payload = await Promise.race([fsp.readFile(secureFilePath, { signal: abortController.signal }), timeoutPromise]);
2244
2244
  if (payload.byteLength > maxBytes) throw new Error(`File provider "${params.providerName}" exceeded maxBytes (${maxBytes}).`);
2245
2245
  const text = payload.toString("utf8");
2246
2246
  if (params.providerConfig.mode === "singleValue") return text.replace(/\r?\n$/, "");
@@ -11280,7 +11280,7 @@ async function releaseHeldLock(normalizedSessionFile, held, opts = {}) {
11280
11280
  await held.handle.close();
11281
11281
  } catch {}
11282
11282
  try {
11283
- await fs$1.rm(held.lockPath, { force: true });
11283
+ await fsp.rm(held.lockPath, { force: true });
11284
11284
  } catch {}
11285
11285
  })();
11286
11286
  try {
@@ -11359,7 +11359,7 @@ function registerCleanupHandlers() {
11359
11359
  }
11360
11360
  async function readLockPayload(lockPath) {
11361
11361
  try {
11362
- const raw = await fs$1.readFile(lockPath, "utf8");
11362
+ const raw = await fsp.readFile(lockPath, "utf8");
11363
11363
  const parsed = JSON.parse(raw);
11364
11364
  const payload = {};
11365
11365
  if (isValidLockNumber(parsed.pid) && parsed.pid > 0) payload.pid = parsed.pid;
@@ -11403,7 +11403,7 @@ async function shouldReclaimContendedLockFile(lockPath, details, staleMs, nowMs)
11403
11403
  if (!details.stale) return false;
11404
11404
  if (!lockInspectionNeedsMtimeStaleFallback(details)) return true;
11405
11405
  try {
11406
- const stat = await fs$1.stat(lockPath);
11406
+ const stat = await fsp.stat(lockPath);
11407
11407
  return Math.max(0, nowMs - stat.mtimeMs) > staleMs;
11408
11408
  } catch (error) {
11409
11409
  return error?.code !== "ENOENT";
@@ -11421,10 +11421,10 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
11421
11421
  const maxHoldMs = resolvePositiveMs(params.maxHoldMs, DEFAULT_MAX_HOLD_MS);
11422
11422
  const sessionFile = path.resolve(params.sessionFile);
11423
11423
  const sessionDir = path.dirname(sessionFile);
11424
- await fs$1.mkdir(sessionDir, { recursive: true });
11424
+ await fsp.mkdir(sessionDir, { recursive: true });
11425
11425
  let normalizedDir = sessionDir;
11426
11426
  try {
11427
- normalizedDir = await fs$1.realpath(sessionDir);
11427
+ normalizedDir = await fsp.realpath(sessionDir);
11428
11428
  } catch {}
11429
11429
  const normalizedSessionFile = path.join(normalizedDir, path.basename(sessionFile));
11430
11430
  const lockPath = `${normalizedSessionFile}.lock`;
@@ -11442,7 +11442,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
11442
11442
  attempt += 1;
11443
11443
  let handle = null;
11444
11444
  try {
11445
- handle = await fs$1.open(lockPath, "wx");
11445
+ handle = await fsp.open(lockPath, "wx");
11446
11446
  const createdAt = (/* @__PURE__ */ new Date()).toISOString();
11447
11447
  const starttime = processIdentity.getProcessStartTime(process.pid);
11448
11448
  const lockPayload = {
@@ -11468,7 +11468,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
11468
11468
  await handle.close();
11469
11469
  } catch {}
11470
11470
  try {
11471
- await fs$1.rm(lockPath, { force: true });
11471
+ await fsp.rm(lockPath, { force: true });
11472
11472
  } catch {}
11473
11473
  }
11474
11474
  if (err.code !== "EEXIST") throw err;
@@ -11483,7 +11483,7 @@ async function acquireSessionWriteLockWithProcessIdentity(params, processIdentit
11483
11483
  stale: true,
11484
11484
  staleReasons: inspected.staleReasons.includes("orphan-self-pid") ? inspected.staleReasons : [...inspected.staleReasons, "orphan-self-pid"]
11485
11485
  } : inspected, staleMs, nowMs)) {
11486
- await fs$1.rm(lockPath, { force: true });
11486
+ await fsp.rm(lockPath, { force: true });
11487
11487
  continue;
11488
11488
  }
11489
11489
  const delay = Math.min(1e3, 50 * attempt);
@@ -16157,7 +16157,7 @@ function createPluginRegistry(registryParams) {
16157
16157
  configurable: true,
16158
16158
  value: {
16159
16159
  ...registryParams.runtime.signals,
16160
- nudge: async (input) => (await import("./nudge-BR_K1LnT.js").then((n) => n.t)).requestAuthorizedNudge({
16160
+ nudge: async (input) => (await import("./nudge-DVGzMWUi.js").then((n) => n.t)).requestAuthorizedNudge({
16161
16161
  kind: "plugin",
16162
16162
  pluginId: record.id
16163
16163
  }, input)
package/dist/config.js CHANGED
@@ -1,7 +1,7 @@
1
- import { Ba as normalizeSecretInputString, E as MODEL_APIS, Fa as assertSecretInputResolved, Gr as setConfigOverride, Ha as resolveSecretInputRef, Hr as applyConfigOverrides, Ia as coerceSecretRef, Kr as unsetConfigOverride, La as hasConfiguredSecretInput, Pa as DEFAULT_SECRET_PROVIDER_ALIAS, Ra as isSecretRef, Ur as getConfigOverrides, Va as parseEnvTemplateSecretRef, Wr as resetConfigOverrides, _ as validateConfigObjectRawWithPlugins, a as createConfigIO, c as loadConfig, d as readConfigFileSnapshotForWrite, f as resolveConfigSnapshotHash, g as validateConfigObjectRaw, h as validateConfigObject, i as clearRuntimeConfigSnapshot, l as parseConfigJson5, m as writeConfigFile, n as advanceRuntimeConfigSnapshot, nr as parseToolsBySenderTypedKey, o as getRuntimeConfigSnapshot, p as setRuntimeConfigSnapshot, r as clearConfigCache, s as getRuntimeConfigSourceSnapshot, t as migrateLegacyConfig, tr as TOOLS_BY_SENDER_KEY_TYPES, u as readConfigFileSnapshot, v as validateConfigObjectWithPlugins, za as normalizeResolvedSecretInputString } from "./config-CPcuaNsB.js";
1
+ import { Ba as normalizeSecretInputString, E as MODEL_APIS, Fa as assertSecretInputResolved, Gr as setConfigOverride, Ha as resolveSecretInputRef, Hr as applyConfigOverrides, Ia as coerceSecretRef, Kr as unsetConfigOverride, La as hasConfiguredSecretInput, Pa as DEFAULT_SECRET_PROVIDER_ALIAS, Ra as isSecretRef, Ur as getConfigOverrides, Va as parseEnvTemplateSecretRef, Wr as resetConfigOverrides, _ as validateConfigObjectRawWithPlugins, a as createConfigIO, c as loadConfig, d as readConfigFileSnapshotForWrite, f as resolveConfigSnapshotHash, g as validateConfigObjectRaw, h as validateConfigObject, i as clearRuntimeConfigSnapshot, l as parseConfigJson5, m as writeConfigFile, n as advanceRuntimeConfigSnapshot, nr as parseToolsBySenderTypedKey, o as getRuntimeConfigSnapshot, p as setRuntimeConfigSnapshot, r as clearConfigCache, s as getRuntimeConfigSourceSnapshot, t as migrateLegacyConfig, tr as TOOLS_BY_SENDER_KEY_TYPES, u as readConfigFileSnapshot, v as validateConfigObjectWithPlugins, za as normalizeResolvedSecretInputString } from "./config-D5tWLhng.js";
2
2
  import { _ as resolveStateDir, a as resolveCanonicalConfigPath, c as resolveDefaultConfigCandidates, d as resolveIsNixMode, f as resolveLegacyStateDir, g as resolveOAuthPath, h as resolveOAuthDir, i as isNixMode, l as resolveGatewayLockDir, m as resolveNewStateDir, n as DEFAULT_GATEWAY_PORT, o as resolveConfigPath, p as resolveLegacyStateDirs, r as STATE_DIR, s as resolveConfigPathCandidate, t as CONFIG_PATH, u as resolveGatewayPort } from "./paths-C7aURmuZ.js";
3
- import "./subsystem-BTMrlJ-R.js";
4
- import "./agent-scope-BJFJ0deZ.js";
3
+ import "./subsystem-B9soUuXQ.js";
4
+ import "./agent-scope-DUbhjnHb.js";
5
5
  import "./github-copilot-token-Dk0djIhM.js";
6
6
 
7
7
  export { CONFIG_PATH, DEFAULT_GATEWAY_PORT, DEFAULT_SECRET_PROVIDER_ALIAS, MODEL_APIS, STATE_DIR, TOOLS_BY_SENDER_KEY_TYPES, advanceRuntimeConfigSnapshot, applyConfigOverrides, assertSecretInputResolved, clearConfigCache, clearRuntimeConfigSnapshot, coerceSecretRef, createConfigIO, getConfigOverrides, getRuntimeConfigSnapshot, getRuntimeConfigSourceSnapshot, hasConfiguredSecretInput, isNixMode, isSecretRef, loadConfig, migrateLegacyConfig, normalizeResolvedSecretInputString, normalizeSecretInputString, parseConfigJson5, parseEnvTemplateSecretRef, parseToolsBySenderTypedKey, readConfigFileSnapshot, readConfigFileSnapshotForWrite, resetConfigOverrides, resolveCanonicalConfigPath, resolveConfigPath, resolveConfigPathCandidate, resolveConfigSnapshotHash, resolveDefaultConfigCandidates, resolveGatewayLockDir, resolveGatewayPort, resolveIsNixMode, resolveLegacyStateDir, resolveLegacyStateDirs, resolveNewStateDir, resolveOAuthDir, resolveOAuthPath, resolveSecretInputRef, resolveStateDir, setConfigOverride, setRuntimeConfigSnapshot, unsetConfigOverride, validateConfigObject, validateConfigObjectRaw, validateConfigObjectRawWithPlugins, validateConfigObjectWithPlugins, writeConfigFile };
@@ -1,4 +1,4 @@
1
- import { Ca as resolveSecretInputRef } from "./model-selection-2-pBJbaC.js";
1
+ import { Ca as resolveSecretInputRef } from "./model-selection-JA-6f5ss.js";
2
2
 
3
3
  //#region src/gateway/credentials.ts
4
4
  function trimToUndefined(value) {
@@ -1,4 +1,4 @@
1
- import { Ha as resolveSecretInputRef } from "./config-CPcuaNsB.js";
1
+ import { Ha as resolveSecretInputRef } from "./config-D5tWLhng.js";
2
2
 
3
3
  //#region src/gateway/credentials.ts
4
4
  function trimToUndefined(value) {
@@ -1,19 +1,19 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { An as normalizeChannelId, Da as resolveOpenClawAgentDir, Jt as listConfiguredSessionStorageAgentIds, On as getChannelPlugin, Tn as getChannelDock, Vt as getConversationReadQuery, Yt as loadSessionStore, c as loadConfig, gt as getActivePluginRegistry, rn as updateSessionStoreEntry, vt as getActivePluginRegistryVersion, xn as resolveStorePath, zt as StorageReadAccessError } from "./config-CPcuaNsB.js";
2
+ import { An as normalizeChannelId, Da as resolveOpenClawAgentDir, Jt as listConfiguredSessionStorageAgentIds, On as getChannelPlugin, Tn as getChannelDock, Vt as getConversationReadQuery, Yt as loadSessionStore, c as loadConfig, gt as getActivePluginRegistry, rn as updateSessionStoreEntry, vt as getActivePluginRegistryVersion, xn as resolveStorePath, zt as StorageReadAccessError } from "./config-D5tWLhng.js";
3
3
  import { _ as resolveStateDir } from "./paths-C7aURmuZ.js";
4
- import { t as createSubsystemLogger } from "./subsystem-BTMrlJ-R.js";
5
- import { X as normalizeMainKey, Y as normalizeAgentId, at as normalizeAccountId, c as resolveDefaultAgentId, ht as parseAgentSessionKey, ot as normalizeOptionalAccountId } from "./agent-scope-BJFJ0deZ.js";
6
- import { A as eventOrder, It as canonicalizeMainSessionAlias, K as parseInlineDirectives, a as resolveMirroredTranscriptText, b as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, zt as resolveMainSessionKey } from "./sessions-IqyeyMXp.js";
7
- import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-BgW4rG28.js";
8
- import { i as hasErrnoCode } from "./errors-DnOtx_vg.js";
4
+ import { t as createSubsystemLogger } from "./subsystem-B9soUuXQ.js";
5
+ import { X as normalizeMainKey, Y as normalizeAgentId, at as normalizeAccountId, c as resolveDefaultAgentId, ht as parseAgentSessionKey, ot as normalizeOptionalAccountId } from "./agent-scope-DUbhjnHb.js";
6
+ import { A as eventOrder, It as canonicalizeMainSessionAlias, K as parseInlineDirectives, a as resolveMirroredTranscriptText, b as getGlobalHookRunner, i as appendAssistantMessageToSessionTranscript, zt as resolveMainSessionKey } from "./sessions-BgTvNzNv.js";
7
+ import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-tQ21BnhN.js";
8
+ import { i as hasErrnoCode } from "./errors-D8k7j4A4.js";
9
9
  import { n as generateSecureUuid } from "./secure-random-CYWiC9Ek.js";
10
- import { t as ensureOpenClawModelsJson } from "./models-config-DkEpc_7A.js";
11
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-BJ9kDOw8.js";
12
- import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BEuk6eCG.js";
13
- import { n as resolveMarkdownTableMode } from "./markdown-tables-Crj_Y0Qx.js";
14
- import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-C9zh-qk0.js";
15
- import { t as parseReplyDirectives } from "./reply-directives-B_wfvntf.js";
16
- import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-C0kXNcyD.js";
10
+ import { t as ensureOpenClawModelsJson } from "./models-config-TH00YNHC.js";
11
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-TzOudNO4.js";
12
+ import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-50mU2Avf.js";
13
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-BJqhUgli.js";
14
+ import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-Bqu2fu_R.js";
15
+ import { t as parseReplyDirectives } from "./reply-directives-BclP76MA.js";
16
+ import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-B3c56zXa.js";
17
17
  import { createHash } from "node:crypto";
18
18
  import fs from "node:fs";
19
19
  import path from "node:path";
@@ -351,7 +351,7 @@ function ensureContextWindowCacheLoaded() {
351
351
  await ensureOpenClawModelsJson(cfg);
352
352
  } catch {}
353
353
  try {
354
- const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-C4WE3mR2.js").then((n) => n.r);
354
+ const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-VTZCKDCd.js").then((n) => n.r);
355
355
  const agentDir = resolveOpenClawAgentDir();
356
356
  const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
357
357
  applyDiscoveredContextWindows({
@@ -1,22 +1,22 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { l as resolveDefaultAgentId } from "./agent-scope-BudmZlc1.js";
3
- import { l as resolveStateDir } from "./paths-BIDPYPVC.js";
4
- import { t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
5
- import { F as normalizeAgentId, G as normalizeAccountId, I as normalizeMainKey, K as normalizeOptionalAccountId, tt as parseAgentSessionKey } from "./workspace-DOy2M7yN.js";
6
- import { $n as getChannelPlugin, Gt as getActivePluginRegistryVersion, Kn as resolveStorePath, On as updateSessionStoreEntry, U as loadConfig, Ut as getActivePluginRegistry, Xn as getChannelDock, bn as loadSessionStore, fn as getConversationReadQuery, pa as resolveOpenClawAgentDir, tr as normalizeChannelId, un as StorageReadAccessError, yn as listConfiguredSessionStorageAgentIds } from "./model-selection-2-pBJbaC.js";
7
- import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, jt as hasInterSessionUserProvenance, o as parseInlineDirectives } from "./sessions-DODCZ4JK.js";
2
+ import { l as resolveDefaultAgentId } from "./agent-scope-CXfIHPTl.js";
3
+ import { l as resolveStateDir } from "./paths-B_gs59ga.js";
4
+ import { t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
5
+ import { F as normalizeAgentId, G as normalizeAccountId, I as normalizeMainKey, K as normalizeOptionalAccountId, tt as parseAgentSessionKey } from "./workspace-D5PKyvm-.js";
6
+ import { $n as getChannelPlugin, Gt as getActivePluginRegistryVersion, Kn as resolveStorePath, On as updateSessionStoreEntry, U as loadConfig, Ut as getActivePluginRegistry, Xn as getChannelDock, bn as loadSessionStore, fn as getConversationReadQuery, pa as resolveOpenClawAgentDir, tr as normalizeChannelId, un as StorageReadAccessError, yn as listConfiguredSessionStorageAgentIds } from "./model-selection-JA-6f5ss.js";
7
+ import { L as resolveMainSessionKey, Nt as getGlobalHookRunner, P as canonicalizeMainSessionAlias, a as resolveMirroredTranscriptText, at as eventOrder, i as appendAssistantMessageToSessionTranscript, jt as hasInterSessionUserProvenance, o as parseInlineDirectives } from "./sessions-DkSPJ2k9.js";
8
8
  import { n as generateSecureUuid } from "./secure-random-BDA1WAvZ.js";
9
- import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-CL44f6Ub.js";
10
- import { i as hasErrnoCode } from "./errors-DnS9ngr1.js";
11
- import { t as ensureOpenClawModelsJson } from "./models-config-7yfOGOZY.js";
12
- import { i as getAgentScopedMediaLocalRoots } from "./fetch-ChtdmCYU.js";
13
- import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-BHQuzJtJ.js";
14
- import { n as resolveMarkdownTableMode } from "./markdown-tables-BvoP0b-H.js";
15
- import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-DfRORyCc.js";
16
- import { t as parseReplyDirectives } from "./reply-directives-DMPiBIx3.js";
17
- import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-12uxFQQR.js";
9
+ import { a as isMessagingToolDuplicate, t as extractTextFromChatContent } from "./chat-content-DIjp-kW-.js";
10
+ import { i as hasErrnoCode } from "./errors-BWpk4nzX.js";
11
+ import { t as ensureOpenClawModelsJson } from "./models-config-Cbzv_acs.js";
12
+ import { i as getAgentScopedMediaLocalRoots } from "./fetch-CHncmQms.js";
13
+ import { c as resolveChunkDelivery, d as resolveTextChunkLimit, i as chunkMarkdownTextWithMode, n as chunkByParagraph } from "./chunk-DCCRrNDr.js";
14
+ import { n as resolveMarkdownTableMode } from "./markdown-tables-By4yQcHS.js";
15
+ import { d as resolveOutboundSessionId, n as createMessageSentEmitter, t as applyMessageSendingHook } from "./outbound-message-hooks-CIrC0qAA.js";
16
+ import { t as parseReplyDirectives } from "./reply-directives-Djre3xI1.js";
17
+ import { l as markdownToSignalTextChunks, t as sendMessageSignal } from "./send-Co-6tb50.js";
18
18
  import path from "node:path";
19
- import fs from "node:fs";
19
+ import syncFs from "node:fs";
20
20
  import { createHash } from "node:crypto";
21
21
  import { setTimeout } from "node:timers/promises";
22
22
 
@@ -372,7 +372,7 @@ function ensureContextWindowCacheLoaded() {
372
372
  await ensureOpenClawModelsJson(cfg);
373
373
  } catch {}
374
374
  try {
375
- const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-B44lshxv.js").then((n) => n.r);
375
+ const { discoverAuthStorage, discoverModels } = await import("./pi-model-discovery-ym24jTFO.js").then((n) => n.r);
376
376
  const agentDir = resolveOpenClawAgentDir();
377
377
  const modelRegistry = discoverModels(discoverAuthStorage(agentDir), agentDir);
378
378
  applyDiscoveredContextWindows({
@@ -688,7 +688,7 @@ function listExistingAgentIdsFromDisk() {
688
688
  const root = resolveStateDir();
689
689
  const agentsDir = path.join(root, "agents");
690
690
  try {
691
- return fs.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
691
+ return syncFs.readdirSync(agentsDir, { withFileTypes: true }).filter((entry) => entry.isDirectory()).map((entry) => normalizeAgentId(entry.name)).filter(Boolean);
692
692
  } catch {
693
693
  return [];
694
694
  }
@@ -889,11 +889,11 @@ function resolveFailedDir(stateDir) {
889
889
  /** Ensure the queue directory (and failed/ subdirectory) exist. */
890
890
  async function ensureQueueDir(stateDir) {
891
891
  const queueDir = resolveQueueDir(stateDir);
892
- await fs.promises.mkdir(queueDir, {
892
+ await syncFs.promises.mkdir(queueDir, {
893
893
  recursive: true,
894
894
  mode: 448
895
895
  });
896
- await fs.promises.mkdir(resolveFailedDir(stateDir), {
896
+ await syncFs.promises.mkdir(resolveFailedDir(stateDir), {
897
897
  recursive: true,
898
898
  mode: 448
899
899
  });
@@ -923,18 +923,18 @@ async function enqueueDelivery(params, stateDir) {
923
923
  const filePath = path.join(queueDir, `${id}.json`);
924
924
  const tmp = `${filePath}.${process.pid}.tmp`;
925
925
  const json = JSON.stringify(entry, null, 2);
926
- await fs.promises.writeFile(tmp, json, {
926
+ await syncFs.promises.writeFile(tmp, json, {
927
927
  encoding: "utf-8",
928
928
  mode: 384
929
929
  });
930
- await fs.promises.rename(tmp, filePath);
930
+ await syncFs.promises.rename(tmp, filePath);
931
931
  return id;
932
932
  }
933
933
  /** Remove a successfully delivered entry from the queue. */
934
934
  async function ackDelivery(id, stateDir) {
935
935
  const filePath = path.join(resolveQueueDir(stateDir), `${id}.json`);
936
936
  try {
937
- await fs.promises.unlink(filePath);
937
+ await syncFs.promises.unlink(filePath);
938
938
  } catch (err) {
939
939
  if ((err && typeof err === "object" && "code" in err ? String(err.code) : null) !== "ENOENT") throw err;
940
940
  }
@@ -961,22 +961,22 @@ async function failDelivery(id, error, stateDir) {
961
961
  return serializeByKey(filePath, () => failDeliveryWrite(filePath, error));
962
962
  }
963
963
  async function failDeliveryWrite(filePath, error) {
964
- const raw = await fs.promises.readFile(filePath, "utf-8");
964
+ const raw = await syncFs.promises.readFile(filePath, "utf-8");
965
965
  const entry = JSON.parse(raw);
966
966
  entry.retryCount += 1;
967
967
  entry.lastAttemptAt = Date.now();
968
968
  entry.lastError = error;
969
969
  const tmp = `${filePath}.${process.pid}.tmp`;
970
- await fs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
970
+ await syncFs.promises.writeFile(tmp, JSON.stringify(entry, null, 2), {
971
971
  encoding: "utf-8",
972
972
  mode: 384
973
973
  });
974
- await fs.promises.rename(tmp, filePath);
974
+ await syncFs.promises.rename(tmp, filePath);
975
975
  }
976
976
  /** Read a queue entry raw; null when the file is missing. */
977
977
  async function readEntryFile(filePath) {
978
978
  try {
979
- const raw = await fs.promises.readFile(filePath, "utf-8");
979
+ const raw = await syncFs.promises.readFile(filePath, "utf-8");
980
980
  return JSON.parse(raw);
981
981
  } catch (err) {
982
982
  if (hasErrnoCode(err, "ENOENT")) return null;
@@ -998,11 +998,11 @@ function markDeliveryPhase(filePath, transition) {
998
998
  const next = transition(entry);
999
999
  if (!next.advanced) return next;
1000
1000
  const tmp = `${filePath}.${process.pid}.tmp`;
1001
- await fs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
1001
+ await syncFs.promises.writeFile(tmp, JSON.stringify(next.entry, null, 2), {
1002
1002
  encoding: "utf-8",
1003
1003
  mode: 384
1004
1004
  });
1005
- await fs.promises.rename(tmp, filePath);
1005
+ await syncFs.promises.rename(tmp, filePath);
1006
1006
  return next;
1007
1007
  });
1008
1008
  }
@@ -1,11 +1,11 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { t as createSubsystemLogger } from "./subsystem-DoQFckDJ.js";
2
+ import { t as createSubsystemLogger } from "./subsystem-cFv2jJm-.js";
3
3
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
4
- import { L as resolveAgentIdFromSessionKey } from "./workspace-DOy2M7yN.js";
4
+ import { L as resolveAgentIdFromSessionKey } from "./workspace-D5PKyvm-.js";
5
5
  import { t as emitDiagnosticEvent } from "./diagnostic-events-BTSwhIfk.js";
6
6
  import { a as recordTurnDuration, i as recordSessionChannelCorrelation, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-DJQj3Ka7.js";
7
7
  import { t as redactIdentifier } from "./redact-identifier-C_VCQ34e.js";
8
- import { t as redactSensitiveText } from "./redact-Cp-v7ZNA.js";
8
+ import { t as redactSensitiveText } from "./redact-B6sHOW29.js";
9
9
  import { createHash } from "node:crypto";
10
10
 
11
11
  //#region src/agents/command-poll-backoff.ts
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-Cbj13DAv.js";
2
- import { t as createSubsystemLogger } from "./subsystem-BTMrlJ-R.js";
2
+ import { t as createSubsystemLogger } from "./subsystem-B9soUuXQ.js";
3
3
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
4
- import { Z as resolveAgentIdFromSessionKey } from "./agent-scope-BJFJ0deZ.js";
4
+ import { Z as resolveAgentIdFromSessionKey } from "./agent-scope-DUbhjnHb.js";
5
5
  import { t as redactIdentifier } from "./redact-identifier-bNChjxxW.js";
6
6
  import { t as emitDiagnosticEvent } from "./diagnostic-events-DGRcTqIH.js";
7
- import { t as redactSensitiveText } from "./redact-D--orJnz.js";
7
+ import { t as redactSensitiveText } from "./redact-C8xjZT-F.js";
8
8
  import { a as recordTurnDuration, i as recordSessionChannelCorrelation, r as getDiagnosticSessionState, t as diagnosticSessionStates } from "./diagnostic-session-state-B2VnYC0m.js";
9
9
  import { createHash } from "node:crypto";
10
10
 
@@ -1,7 +1,7 @@
1
1
  import { n as resolveOpenClawPackageRoot } from "./openclaw-root-Bh3xNyXD.js";
2
2
  import { r as resolveCliName } from "./command-format-C8lewPDO.js";
3
3
  import { t as note } from "./note-D_lQmF8n.js";
4
- import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-od6mAB_x.js";
4
+ import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BFHL_SSq.js";
5
5
  import { spawnSync } from "node:child_process";
6
6
  import path from "node:path";
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { n as resolveOpenClawPackageRoot } from "./openclaw-root-Wicu3YQr.js";
2
2
  import { r as resolveCliName } from "./command-format-dyB8APhj.js";
3
3
  import { t as note } from "./note-DuVpD9Sh.js";
4
- import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-BIuMSnSA.js";
4
+ import { a as resolveCompletionCachePath, i as isCompletionInstalled, o as resolveShellFromEnv, r as installCompletion, s as usesSlowDynamicCompletion, t as completionCacheExists } from "./completion-cli-EqOcxJpx.js";
5
5
  import path from "node:path";
6
6
  import { spawnSync } from "node:child_process";
7
7
 
package/dist/entry.js CHANGED
@@ -381,7 +381,7 @@ if (!isMainModule({
381
381
  }
382
382
  function tryHandleRootHelpFastPath(argv) {
383
383
  if (!isRootHelpInvocation(argv)) return false;
384
- import("./program-CcLb8Psv.js").then(({ buildProgram }) => {
384
+ import("./program-DYZ4XAFZ.js").then(({ buildProgram }) => {
385
385
  buildProgram().outputHelp();
386
386
  }).catch((error) => {
387
387
  console.error("[openclaw] Failed to display help:", error instanceof Error ? error.stack ?? error.message : error);
@@ -400,7 +400,7 @@ if (!isMainModule({
400
400
  applyCliProfileEnv({ profile: parsed.profile });
401
401
  process$1.argv = parsed.argv;
402
402
  }
403
- if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-BBLzm5df.js").then(({ runCli }) => runCli(process$1.argv)).then(() => flushStdio()).then(() => process$1.exit(process$1.exitCode ?? 0)).catch(async (error) => {
403
+ if (!tryHandleRootVersionFastPath(process$1.argv) && !tryHandleRootHelpFastPath(process$1.argv)) import("./run-main-BYnz7Ou5.js").then(({ runCli }) => runCli(process$1.argv)).then(() => flushStdio()).then(() => process$1.exit(process$1.exitCode ?? 0)).catch(async (error) => {
404
404
  console.error("[openclaw] Failed to start CLI:", error instanceof Error ? error.stack ?? error.message : error);
405
405
  await flushStdio();
406
406
  process$1.exit(process$1.exitCode ?? 1);
@@ -1,4 +1,4 @@
1
- import { t as redactSensitiveText } from "./redact-CXDVzhSq.js";
1
+ import { t as redactSensitiveText } from "./redact-B6sHOW29.js";
2
2
 
3
3
  //#region src/infra/errors.ts
4
4
  function extractErrorCode(err) {
@@ -1,4 +1,4 @@
1
- import { t as redactSensitiveText } from "./redact-D--orJnz.js";
1
+ import { t as redactSensitiveText } from "./redact-C8xjZT-F.js";
2
2
 
3
3
  //#region src/infra/errors.ts
4
4
  function extractErrorCode(err) {
@@ -1,13 +1,13 @@
1
- import { c as resolveAgentWorkspaceDir } from "./agent-scope-BudmZlc1.js";
2
- import { l as resolveStateDir } from "./paths-BIDPYPVC.js";
3
- import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-DoQFckDJ.js";
1
+ import { c as resolveAgentWorkspaceDir } from "./agent-scope-CXfIHPTl.js";
2
+ import { l as resolveStateDir } from "./paths-B_gs59ga.js";
3
+ import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-cFv2jJm-.js";
4
4
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
5
- import { U as loadConfig } from "./model-selection-2-pBJbaC.js";
6
- import { t as redactSensitiveText } from "./redact-Cp-v7ZNA.js";
7
- import { c as detectMime, l as extensionForMime } from "./image-ops-BiBI-uAf.js";
8
- import { n as formatErrorChainMessage } from "./errors-DnS9ngr1.js";
5
+ import { U as loadConfig } from "./model-selection-JA-6f5ss.js";
6
+ import { t as redactSensitiveText } from "./redact-B6sHOW29.js";
7
+ import { c as detectMime, l as extensionForMime } from "./image-ops-BWgZn39_.js";
8
+ import { n as formatErrorChainMessage } from "./errors-BWpk4nzX.js";
9
9
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-Cj-XaaTu.js";
10
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BnKTeFyb.js";
10
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-kz-XQlCx.js";
11
11
  import path from "node:path";
12
12
 
13
13
  //#region src/media/local-roots.ts
@@ -1,4 +1,4 @@
1
- import { a as bindAbortRelay } from "./fetch-guard-CJhIVznN.js";
1
+ import { a as bindAbortRelay } from "./fetch-guard-kz-XQlCx.js";
2
2
 
3
3
  //#region src/infra/fetch.ts
4
4
  const wrapFetchWithAbortSignalMarker = Symbol.for("openclaw.fetch.abort-signal-wrapped");
@@ -1,4 +1,4 @@
1
- import { a as bindAbortRelay } from "./fetch-guard-BEue3kvx.js";
1
+ import { a as bindAbortRelay } from "./fetch-guard-BZlxmZcA.js";
2
2
 
3
3
  //#region src/infra/fetch.ts
4
4
  const wrapFetchWithAbortSignalMarker = Symbol.for("openclaw.fetch.abort-signal-wrapped");
@@ -1,13 +1,13 @@
1
- import { c as loadConfig } from "./config-CPcuaNsB.js";
1
+ import { c as loadConfig } from "./config-D5tWLhng.js";
2
2
  import { _ as resolveStateDir } from "./paths-C7aURmuZ.js";
3
- import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-BTMrlJ-R.js";
3
+ import { mt as resolvePreferredOpenClawTmpDir } from "./subsystem-B9soUuXQ.js";
4
4
  import { n as resolveProcessScopedMap } from "./plain-object-Doc_YkH1.js";
5
- import { s as resolveAgentWorkspaceDir } from "./agent-scope-BJFJ0deZ.js";
6
- import { t as redactSensitiveText } from "./redact-D--orJnz.js";
7
- import { n as formatErrorChainMessage } from "./errors-DnOtx_vg.js";
8
- import { c as detectMime, l as extensionForMime } from "./image-ops-BTgGxcIG.js";
5
+ import { s as resolveAgentWorkspaceDir } from "./agent-scope-DUbhjnHb.js";
6
+ import { t as redactSensitiveText } from "./redact-C8xjZT-F.js";
7
+ import { n as formatErrorChainMessage } from "./errors-D8k7j4A4.js";
8
+ import { c as detectMime, l as extensionForMime } from "./image-ops-C54shfkj.js";
9
9
  import { t as resolveNetworkSsrFPolicy } from "./ssrf-config-D91c_y3Q.js";
10
- import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-CRERUrFK.js";
10
+ import { n as withStrictGuardedFetchMode, t as fetchWithSsrFGuard } from "./fetch-guard-BZlxmZcA.js";
11
11
  import path from "node:path";
12
12
 
13
13
  //#region src/media/local-roots.ts
@@ -1,5 +1,5 @@
1
- import { M as logWarn, j as logInfo } from "./agent-scope-BJFJ0deZ.js";
2
- import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-Bw8nAERJ.js";
1
+ import { M as logWarn, j as logInfo } from "./agent-scope-DUbhjnHb.js";
2
+ import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-DKs0W5v1.js";
3
3
  import { EnvHttpProxyAgent, FormData, ProxyAgent, fetch as fetch$1 } from "undici";
4
4
 
5
5
  //#region src/utils/fetch-timeout.ts
@@ -1,5 +1,5 @@
1
- import { S as logWarn, x as logInfo } from "./workspace-DOy2M7yN.js";
2
- import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-DdoaBr4H.js";
1
+ import { S as logWarn, x as logInfo } from "./workspace-D5PKyvm-.js";
2
+ import { c as resolvePinnedHostnameWithPolicy, i as createPinnedDispatcher, n as SsrFBlockedError, o as isPrivateIpAddress, r as closeDispatcher, t as hasProxyEnvConfigured } from "./proxy-env-DtzLr6mZ.js";
3
3
  import { EnvHttpProxyAgent, FormData, ProxyAgent, fetch as fetch$1 } from "undici";
4
4
 
5
5
  //#region src/utils/fetch-timeout.ts
@@ -1,7 +1,7 @@
1
- import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-Bx5L8LWT.js";
1
+ import { s as parseBooleanValue, t as readManifestNamespace } from "./legacy-names-BKv-k5-D.js";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
4
- import JSON5 from "json5";
3
+ import syncFs from "node:fs";
4
+ import json5 from "json5";
5
5
  import YAML from "yaml";
6
6
 
7
7
  //#region src/shared/config-eval.ts
@@ -92,7 +92,7 @@ function hasBinary(bin) {
92
92
  for (const part of parts) for (const ext of extensions) {
93
93
  const candidate = path.join(part, bin + ext);
94
94
  try {
95
- fs.accessSync(candidate, fs.constants.X_OK);
95
+ syncFs.accessSync(candidate, syncFs.constants.X_OK);
96
96
  hasBinaryCache.set(bin, true);
97
97
  return true;
98
98
  } catch {}
@@ -258,7 +258,7 @@ function resolveOpenClawManifestBlock(params) {
258
258
  const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
259
259
  if (!raw) return;
260
260
  try {
261
- const parsed = JSON5.parse(raw);
261
+ const parsed = json5.parse(raw);
262
262
  if (!parsed || typeof parsed !== "object") return;
263
263
  return readManifestNamespace(parsed);
264
264
  } catch {