@qqbrowser/openclaw-qbot 0.0.139 → 0.0.142

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 (1565) hide show
  1. package/dist/account-lookup-CW-_CL7y.js +1 -0
  2. package/dist/acp-cli-BaslDuk6.js +1 -0
  3. package/dist/acp-cli-f5-uI85a.js +1 -0
  4. package/dist/active-listener-Cce5tcPa.js +1 -0
  5. package/dist/active-listener-D8VOdVx3.js +1 -0
  6. package/dist/active-listener-DeKRt_UV.js +1 -0
  7. package/dist/active-listener-Dle9QX40.js +1 -0
  8. package/dist/agent-scope-DAWJwFfl.js +1 -0
  9. package/dist/agent-scope-DXZc3eNT.js +1 -0
  10. package/dist/agents-Bpp_F5In.js +1 -0
  11. package/dist/agents.config-B6LRG9eP.js +1 -0
  12. package/dist/agents.config-DfIJAGcd.js +1 -0
  13. package/dist/allow-from-B6dI7oz8.js +1 -0
  14. package/dist/allow-from-DEeVIPKS.js +1 -0
  15. package/dist/api-BeG0ObSq.js +1 -0
  16. package/dist/api-Dx8x1KTs.js +1 -0
  17. package/dist/api-key-rotation-BRt-vnRV.js +1 -0
  18. package/dist/api-key-rotation-CCH1wYVU.js +1 -0
  19. package/dist/api-key-rotation-D0QU-kQ9.js +1 -0
  20. package/dist/api-key-rotation-Di6QgXx7.js +1 -0
  21. package/dist/arg-split-BOqSMBuf.js +1 -0
  22. package/dist/arg-split-DE5RqDHq.js +1 -0
  23. package/dist/audio-preflight-B5o7P9qi.js +1 -0
  24. package/dist/audio-preflight-CxD7VCHW.js +1 -0
  25. package/dist/audio-preflight-DKSCBKRb.js +1 -0
  26. package/dist/audio-preflight-Dpk8-Bmk.js +1 -0
  27. package/dist/audio-transcription-runner-Bd1OZC6K.js +1 -0
  28. package/dist/audio-transcription-runner-D4Bp6MM7.js +1 -0
  29. package/dist/audio-transcription-runner-DPwmBYQj.js +1 -0
  30. package/dist/audio-transcription-runner-DSr6OIz1.js +1 -0
  31. package/dist/audit-C7RP7G_g.js +1 -0
  32. package/dist/audit-jkdcAUep.js +1 -0
  33. package/dist/audit-membership-runtime-BpRsMj5-.js +1 -0
  34. package/dist/audit-membership-runtime-BsfLZNBj.js +1 -0
  35. package/dist/audit-membership-runtime-DRHirRmx.js +1 -0
  36. package/dist/audit-membership-runtime-g0dEWJTp.js +1 -0
  37. package/dist/audit-membership-runtime-kdyToskD.js +1 -0
  38. package/dist/auth-choice-B7LSoXZ_.js +1 -0
  39. package/dist/auth-choice-CxMH4c-u.js +1 -0
  40. package/dist/auth-choice-DvTApGhx.js +1 -0
  41. package/dist/auth-choice-EQdNd7jO.js +1 -0
  42. package/dist/auth-choice-options-B3WQyS7I.js +1 -0
  43. package/dist/auth-choice-options-Dw14noox.js +1 -0
  44. package/dist/auth-choice-prompt-uegl56cf.js +1 -0
  45. package/dist/auth-choice-prompt-xYj13czb.js +1 -0
  46. package/dist/auth-choice.apply-helpers-B7S-PcH_.js +1 -0
  47. package/dist/auth-choice.apply-helpers-gaL-oSft.js +1 -0
  48. package/dist/auth-profiles-T8DuH3ax.js +1 -0
  49. package/dist/auth-token-9OTF1FmL.js +1 -0
  50. package/dist/auth-token-kGltuM6S.js +1 -0
  51. package/dist/banner-9u45RL26.js +1 -0
  52. package/dist/bonjour-discovery-CFZXPega.js +1 -0
  53. package/dist/bonjour-discovery-CjivQOxi.js +1 -0
  54. package/dist/boolean-Ch3DfXPy.js +1 -0
  55. package/dist/boolean-D15s2V33.js +1 -0
  56. package/dist/boolean-DypnRoRK.js +1 -0
  57. package/dist/brew-COcDl8CB.js +1 -0
  58. package/dist/brew-DDPm_HfE.js +1 -0
  59. package/dist/browser-cli-DQHE2iPY.js +1 -0
  60. package/dist/browser-cli-Dt0ds-an.js +1 -0
  61. package/dist/build-info.json +3 -3
  62. package/dist/bundled/boot-md/handler.js +1 -0
  63. package/dist/bundled/bootstrap-extra-files/handler.js +1 -0
  64. package/dist/bundled/command-logger/handler.js +1 -0
  65. package/dist/bundled/session-memory/handler.js +1 -0
  66. package/dist/call-B8Fb4_oh.js +1 -0
  67. package/dist/call-CqoMqP5b.js +1 -0
  68. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  69. package/dist/canvas-host/a2ui/a2ui.bundle.js +1705 -2
  70. package/dist/channel-account-context-BMPAMZEv.js +1 -0
  71. package/dist/channel-account-context-DAcarnqW.js +1 -0
  72. package/dist/channel-activity-B04WbrrK.js +1 -0
  73. package/dist/channel-activity-BBrgoad1.js +1 -0
  74. package/dist/channel-activity-CgbOWaay.js +1 -0
  75. package/dist/channel-activity-YIMhOAUo.js +1 -0
  76. package/dist/channel-activity-YjYNzCpJ.js +1 -0
  77. package/dist/channel-options-CEIzjOno.js +1 -0
  78. package/dist/channel-options-D2syI791.js +1 -0
  79. package/dist/channel-selection-BBeE1TmB.js +1 -0
  80. package/dist/channel-selection-CbNtbAEf.js +1 -0
  81. package/dist/channel-web-BrElpZAc.js +1 -0
  82. package/dist/channel-web-CxHbET4B.js +1 -0
  83. package/dist/channels/plugins/actions/discord.js +1 -0
  84. package/dist/channels/plugins/actions/signal.js +1 -0
  85. package/dist/channels/plugins/actions/telegram.js +1 -0
  86. package/dist/channels/plugins/agent-tools/whatsapp-login.js +1 -0
  87. package/dist/channels-cli-BmAJuuRs.js +1 -0
  88. package/dist/channels-cli-Dgosczr6.js +1 -0
  89. package/dist/channels-status-issues-8eFrGKyf.js +1 -0
  90. package/dist/channels-status-issues-PRgOT90w.js +1 -0
  91. package/dist/chat-envelope-Bznn2SoS.js +1 -0
  92. package/dist/chat-envelope-HVpKusFc.js +1 -0
  93. package/dist/clack-prompter-DBPdGdqp.js +1 -0
  94. package/dist/clack-prompter-Dq0aY6iM.js +1 -0
  95. package/dist/clawbot-cli-CgS7TkEx.js +1 -0
  96. package/dist/clawbot-cli-DZ2K0OTk.js +1 -0
  97. package/dist/cleanup-utils-BWm70DoD.js +1 -0
  98. package/dist/cleanup-utils-D-RhEX6F.js +1 -0
  99. package/dist/cli-BcnoCo4z.js +1 -0
  100. package/dist/cli-D8T2tphD.js +1 -0
  101. package/dist/cli-utils-BY7dLMFy.js +1 -0
  102. package/dist/cli-utils-BleB1eys.js +1 -0
  103. package/dist/clipboard-Bk8cviBt.js +1 -0
  104. package/dist/clipboard-CKT_VIkG.js +1 -0
  105. package/dist/cmd-argv-BBT5l8AV.js +1 -0
  106. package/dist/cmd-argv-Bh-KpaZ0.js +1 -0
  107. package/dist/command-format-BbDT1tlm.js +1 -0
  108. package/dist/command-format-CLxIPuLR.js +1 -0
  109. package/dist/command-options-BpOUDl2S.js +1 -0
  110. package/dist/command-options-Bq5nQxz6.js +1 -0
  111. package/dist/command-poll-backoff-BZLHYB2k.js +1 -0
  112. package/dist/command-poll-backoff-Cww_r-24.js +1 -0
  113. package/dist/command-poll-backoff-Df6cOQrX.js +1 -0
  114. package/dist/command-poll-backoff-endAPdwn.js +1 -0
  115. package/dist/command-registry-CfuXCRwV.js +1 -0
  116. package/dist/command-secret-targets-BVN3kiT9.js +1 -0
  117. package/dist/command-secret-targets-BlN-J_fA.js +1 -0
  118. package/dist/commands-CGpM84iR.js +1 -0
  119. package/dist/commands-Dy7duWlt.js +1 -0
  120. package/dist/commands-registry-B1x54ukc.js +1 -0
  121. package/dist/commands-registry-Cpl4QnG4.js +1 -0
  122. package/dist/commands-registry-D40KqYOm.js +1 -0
  123. package/dist/commands-registry-SeddSmFK.js +1 -0
  124. package/dist/compact-Dg66DXx_.js +1 -0
  125. package/dist/completion-cli-BZi4nuQb.js +1 -0
  126. package/dist/completion-cli-C40TWdsv.js +1 -0
  127. package/dist/config-BqW5S1xL.js +1 -0
  128. package/dist/config-D12ZLKqh.js +1 -0
  129. package/dist/config-cli-1ojSLwAj.js +1 -0
  130. package/dist/config-cli-CBte2b1h.js +1 -0
  131. package/dist/config-guard-BTNXbWoO.js +1 -0
  132. package/dist/config-guard-sYYx9zEF.js +1 -0
  133. package/dist/config-validation-C1La_IZU.js +1 -0
  134. package/dist/config-validation-DviYxW8Y.js +1 -0
  135. package/dist/configure-DJrNDEpR.js +1 -0
  136. package/dist/configure-kod4tmZa.js +1 -0
  137. package/dist/connection-auth-B_Uk6Vk8.js +1 -0
  138. package/dist/connection-auth-C8iru0UB.js +1 -0
  139. package/dist/context-window-guard-7crlatf9.js +1 -0
  140. package/dist/context-window-guard-CPChk363.js +1 -0
  141. package/dist/control-ui-assets-BIa0GGDg.js +1 -0
  142. package/dist/control-ui-assets-CTHGGgaX.js +1 -0
  143. package/dist/cron-cli-Dha16Lo-.js +1 -0
  144. package/dist/cron-cli-QHS2pKZ_.js +1 -0
  145. package/dist/daemon-cli-BuXTzSnU.js +1 -0
  146. package/dist/daemon-cli-DOTKuS7d.js +1 -0
  147. package/dist/daemon-cli.js +1 -0
  148. package/dist/daemon-install-C30rBssi.js +1 -0
  149. package/dist/daemon-install-HrqlOCrc.js +1 -0
  150. package/dist/daemon-install-plan.shared-CfA37Ut_.js +1 -0
  151. package/dist/daemon-install-plan.shared-Dx3DBXCG.js +1 -0
  152. package/dist/daemon-runtime-DHiDbRuC.js +1 -0
  153. package/dist/daemon-runtime-VcpeBRJV.js +1 -0
  154. package/dist/dangerous-name-matching-BOmvAibz.js +1 -0
  155. package/dist/dangerous-name-matching-DtllRqBD.js +1 -0
  156. package/dist/dangerous-tools-CFRYQJ6V.js +1 -0
  157. package/dist/dangerous-tools-oYCu5wfC.js +1 -0
  158. package/dist/deliver-56mQkDw3.js +1 -0
  159. package/dist/deliver-BFQ4Zx9z.js +1 -0
  160. package/dist/deliver-BHuhHfkH.js +1 -0
  161. package/dist/deliver-ClBkV2eD.js +1 -0
  162. package/dist/delivery-queue-CKbauSFq.js +1 -0
  163. package/dist/delivery-queue-nkPJu0fY.js +1 -0
  164. package/dist/device-pairing-CTFpaTrD.js +1 -0
  165. package/dist/device-pairing-QTK0dod3.js +1 -0
  166. package/dist/devices-cli-Ckxd0k0I.js +1 -0
  167. package/dist/devices-cli-Db36mBHq.js +1 -0
  168. package/dist/diagnostic-BrE4lMIf.js +1 -0
  169. package/dist/diagnostic-CDxNevIQ.js +1 -0
  170. package/dist/diagnostic-DOzHPnht.js +1 -0
  171. package/dist/diagnostic-DQq4Bwrs.js +1 -0
  172. package/dist/diagnostics-BgbeL9KE.js +1 -0
  173. package/dist/diagnostics-Cdctg9K_.js +1 -0
  174. package/dist/directory-cli-DDTaUkjW.js +1 -0
  175. package/dist/directory-cli-_gTFSHMW.js +1 -0
  176. package/dist/dns-cli--4PwtR2Y.js +1 -0
  177. package/dist/dns-cli-C4DwKquN.js +1 -0
  178. package/dist/docs-cli-Cdw9Iz9a.js +1 -0
  179. package/dist/docs-cli-ClD2UyX1.js +1 -0
  180. package/dist/doctor-completion-BJ6steqx.js +1 -0
  181. package/dist/doctor-completion-DMJhfrtC.js +1 -0
  182. package/dist/doctor-config-flow-D4F3mz4h.js +1 -0
  183. package/dist/doctor-config-flow-DnOyVZhQ.js +1 -0
  184. package/dist/enable-BhD84GhD.js +1 -0
  185. package/dist/enable-Ccf9wSM8.js +1 -0
  186. package/dist/entry-status-CCwwKO43.js +1 -0
  187. package/dist/entry-status-CoXkbJcX.js +1 -0
  188. package/dist/entry.js +1 -0
  189. package/dist/env-D7wNuBx1.js +1 -0
  190. package/dist/env-overrides-DHtB4kK3.js +1 -0
  191. package/dist/env-overrides-DXJbFrwI.js +1 -0
  192. package/dist/errors-6SQWM9dj.js +1 -0
  193. package/dist/errors-Bunti32V.js +1 -0
  194. package/dist/exec-B3eleY5O.js +1 -0
  195. package/dist/exec-DHqLtFYt.js +1 -0
  196. package/dist/exec-approvals-BXO9Cezj.js +1 -0
  197. package/dist/exec-approvals-BpBNEy6i.js +1 -0
  198. package/dist/exec-approvals-allowlist-CE3nYh0K.js +1 -0
  199. package/dist/exec-approvals-allowlist-D8mN7nxV.js +1 -0
  200. package/dist/exec-approvals-cli-CUcuN63y.js +1 -0
  201. package/dist/exec-approvals-cli-CxUGD08t.js +1 -0
  202. package/dist/exec-safe-bin-runtime-policy-Dt0GchLp.js +1 -0
  203. package/dist/exec-safe-bin-runtime-policy-dcCS_Adf.js +1 -0
  204. package/dist/fetch-B9tORjG8.js +1 -0
  205. package/dist/fetch-BJT3BrkJ.js +1 -0
  206. package/dist/fetch-B_wRifvZ.js +1 -0
  207. package/dist/fetch-Bn0mWg6a.js +1 -0
  208. package/dist/fetch-CQaNr5J1.js +1 -0
  209. package/dist/fetch-Ce-scEU-.js +1 -0
  210. package/dist/fetch-D0rZDHKO.js +1 -0
  211. package/dist/fetch-DHo17YmK.js +1 -0
  212. package/dist/fetch-Dh-apy46.js +1 -0
  213. package/dist/fetch-Dikjvc5M.js +1 -0
  214. package/dist/fetch-DsjPfQlp.js +1 -0
  215. package/dist/fetch-_g8lZ8K8.js +1 -0
  216. package/dist/fetch-guard-BrTtJw7h.js +1 -0
  217. package/dist/fetch-guard-D10s0raB.js +1 -0
  218. package/dist/fetch-guard-DPdY0NXR.js +1 -0
  219. package/dist/fetch-guard-cu7DGSRF.js +1 -0
  220. package/dist/fetch-hy0JKSsm.js +1 -0
  221. package/dist/fetch-timeout-CdYxWG9w.js +1 -0
  222. package/dist/fetch-timeout-Cj8_oAls.js +1 -0
  223. package/dist/fetch-timeout-DoOI_izT.js +1 -0
  224. package/dist/fetch-timeout-u8g99Ax0.js +1 -0
  225. package/dist/format-Bn1bwJKX.js +1 -0
  226. package/dist/format-Ce7I7s-k.js +1 -0
  227. package/dist/format-duration-C8AzNqKh.js +1 -0
  228. package/dist/format-duration-D5AMtmHa.js +1 -0
  229. package/dist/format-relative-B9pSIdGe.js +1 -0
  230. package/dist/format-relative-DkMjYy7z.js +1 -0
  231. package/dist/frontmatter-BkZkwkVO.js +1 -0
  232. package/dist/frontmatter-C7mzDNxd.js +1 -0
  233. package/dist/frontmatter-CzpfPBFl.js +1 -0
  234. package/dist/gateway-cli-CKu0FA7D.js +1 -0
  235. package/dist/gateway-cli-C_s9eMlC.js +1 -0
  236. package/dist/gateway-install-token-BCnuZeh1.js +1 -0
  237. package/dist/gateway-install-token-DiDvDPJQ.js +1 -0
  238. package/dist/gateway-rpc-iFvDyHYd.js +1 -0
  239. package/dist/gateway-rpc-tEEvY0kH.js +1 -0
  240. package/dist/github-copilot-token-C79yeDKS.js +1 -0
  241. package/dist/github-copilot-token-DGYAlOmV.js +1 -0
  242. package/dist/github-copilot-token-DePP-lIf.js +1 -0
  243. package/dist/github-copilot-token-wm6mbypz.js +1 -0
  244. package/dist/gmail-setup-utils-CYOH3zzx.js +1 -0
  245. package/dist/gmail-setup-utils-S-MyEGuj.js +1 -0
  246. package/dist/group-access-BHKVOhrj.js +1 -0
  247. package/dist/group-access-D2DOYMfr.js +1 -0
  248. package/dist/health-BgOggK9k.js +1 -0
  249. package/dist/health-PaRHFItm.js +1 -0
  250. package/dist/health-format-B1nj3Wfn.js +1 -0
  251. package/dist/health-format-VBr6LEpt.js +1 -0
  252. package/dist/heartbeat-visibility-BQ_esv2m.js +1 -0
  253. package/dist/heartbeat-visibility-q74UdY8O.js +1 -0
  254. package/dist/help-format-B4aEI7V9.js +1 -0
  255. package/dist/help-format-BRbF_INg.js +1 -0
  256. package/dist/helpers-COz1ghcB.js +1 -0
  257. package/dist/helpers-Cp8gcO6u.js +1 -0
  258. package/dist/hooks-cli-BzyzTNBx.js +1 -0
  259. package/dist/hooks-cli-CsBrScq0.js +1 -0
  260. package/dist/hooks-status-BHt-Xvh4.js +1 -0
  261. package/dist/hooks-status-CRJ4J0ZW.js +1 -0
  262. package/dist/image-BkWwI54C.js +1 -0
  263. package/dist/image-CcVQg-YN.js +1 -0
  264. package/dist/image-Cm1RUBqD.js +1 -0
  265. package/dist/image-DsoO5VP5.js +1 -0
  266. package/dist/index.js +1 -0
  267. package/dist/inspect-BKV-I1UE.js +1 -0
  268. package/dist/inspect-z59cgmYc.js +1 -0
  269. package/dist/install-safe-path-C6kc_8NW.js +1 -0
  270. package/dist/install-safe-path-iesxijn2.js +1 -0
  271. package/dist/installs-BNeI_oML.js +1 -0
  272. package/dist/installs-C1xQLuby.js +1 -0
  273. package/dist/ipv4-BOuNtoGn.js +1 -0
  274. package/dist/ipv4-CWdaEiVH.js +1 -0
  275. package/dist/ir-BF0M2kGp.js +1 -0
  276. package/dist/ir-D8Hh84ab.js +1 -0
  277. package/dist/ir-DBWscfBd.js +1 -0
  278. package/dist/ir-Dk7OQ4bA.js +1 -0
  279. package/dist/is-main-DG5ueqhF.js +1 -0
  280. package/dist/issue-format-BT7cQEt3.js +1 -0
  281. package/dist/issue-format-C_lNzrKa.js +1 -0
  282. package/dist/kill-tree-B3g7HrAO.js +1 -0
  283. package/dist/lifecycle-core-D9KNCvxY.js +1 -0
  284. package/dist/lifecycle-core-LM5UUUB1.js +1 -0
  285. package/dist/line/accounts.js +1 -0
  286. package/dist/line/send.js +1 -0
  287. package/dist/line/template-messages.js +1 -0
  288. package/dist/links-CBnmRP9D.js +1 -0
  289. package/dist/links-CySwdMcF.js +1 -0
  290. package/dist/llm-slug-generator.js +1 -0
  291. package/dist/load-options-BsOW74dp.js +1 -0
  292. package/dist/load-options-C7dLuybp.js +1 -0
  293. package/dist/load-options-DV4j6Aqb.js +1 -0
  294. package/dist/load-options-Dwt0CeEg.js +1 -0
  295. package/dist/local-roots-6waH0SZ0.js +1 -0
  296. package/dist/logger-5W0OocJW.js +1 -0
  297. package/dist/logger-Bl8URnrW.js +1 -0
  298. package/dist/logger-DwWqfo66.js +1 -0
  299. package/dist/logger-kQAOe3qp.js +1 -0
  300. package/dist/logging-Dqe9dxSX.js +1 -0
  301. package/dist/logging-tYw1NbJd.js +1 -0
  302. package/dist/login-BOlqRyr0.js +1 -0
  303. package/dist/login-CkWesqf_.js +1 -0
  304. package/dist/login-Do_NA1Je.js +1 -0
  305. package/dist/login-op9S8yqv.js +1 -0
  306. package/dist/login-qr-B6rxvoTS.js +1 -0
  307. package/dist/login-qr-BGH9zmhw.js +1 -0
  308. package/dist/login-qr-CiENvgog.js +1 -0
  309. package/dist/login-qr-DsV-lxFd.js +1 -0
  310. package/dist/login-qr-QcDMg23y.js +1 -0
  311. package/dist/logs-cli-B4eUg_87.js +1 -0
  312. package/dist/logs-cli-BA3Aso8a.js +1 -0
  313. package/dist/manager-4Y9fRgdw.js +1 -0
  314. package/dist/manager-C2YW7Hkq.js +1 -0
  315. package/dist/manager-Dtd_loL8.js +1 -0
  316. package/dist/manager-M1GKhLUC.js +1 -0
  317. package/dist/memory-cli-XaxtBQm1.js +1 -0
  318. package/dist/memory-cli-jhzJ3as7.js +1 -0
  319. package/dist/model-catalog-C1kpjR75.js +1 -0
  320. package/dist/model-catalog-COVzoZD9.js +1 -0
  321. package/dist/model-param-b-B0r2cPDw.js +1 -0
  322. package/dist/model-param-b-BqIr5rY5.js +1 -0
  323. package/dist/model-picker-D3ZSpr0i.js +1 -0
  324. package/dist/model-picker-bZNuI66U.js +1 -0
  325. package/dist/model-selection-B5JsBS9D.js +1 -0
  326. package/dist/model-selection-BlC_rXAN.js +1 -0
  327. package/dist/model-selection-vfhBuN9O.js +1 -0
  328. package/dist/models-C_Vg3Cty.js +1 -0
  329. package/dist/models-cli-CDZliTXq.js +1 -0
  330. package/dist/models-cli-bGr8jwAb.js +1 -0
  331. package/dist/models-config-CdMhNxKV.js +1 -0
  332. package/dist/models-config-_htt7eY5.js +1 -0
  333. package/dist/mutable-allowlist-detectors-C4rNVag8.js +1 -0
  334. package/dist/mutable-allowlist-detectors-CL0qe54J.js +1 -0
  335. package/dist/node-cli-5lYbDZ70.js +1 -0
  336. package/dist/node-cli-Br04Qmqo.js +1 -0
  337. package/dist/node-command-policy-CejeQemH.js +1 -0
  338. package/dist/node-command-policy-CqXhdnHh.js +1 -0
  339. package/dist/node-commands-8GBOiktk.js +1 -0
  340. package/dist/node-commands-DdkziOTx.js +1 -0
  341. package/dist/node-resolve-B3BJbmQX.js +1 -0
  342. package/dist/node-resolve-DLZf3-1V.js +1 -0
  343. package/dist/node-service-BRfrNp8l.js +1 -0
  344. package/dist/node-service-C0bl7jcZ.js +1 -0
  345. package/dist/node-shell-DyOfwHrh.js +1 -0
  346. package/dist/nodes-cli-8By8--bW.js +1 -0
  347. package/dist/nodes-cli-zq41EwJN.js +1 -0
  348. package/dist/nodes-screen-DECgxo6A.js +1 -0
  349. package/dist/note-D4GAwgha.js +1 -0
  350. package/dist/note-Dp-d_utk.js +1 -0
  351. package/dist/npm-pack-install-B23L-AtF.js +1 -0
  352. package/dist/npm-pack-install-C0te3Oap.js +1 -0
  353. package/dist/npm-resolution-BnJGLwhi.js +1 -0
  354. package/dist/npm-resolution-DWPloph4.js +1 -0
  355. package/dist/oauth-env-DAamJ1oz.js +1 -0
  356. package/dist/oauth-env-DSLBTWb1.js +1 -0
  357. package/dist/oauth-tls-preflight-BSBRDIfC.js +1 -0
  358. package/dist/oauth-tls-preflight-ByNjbUR5.js +1 -0
  359. package/dist/ollama-setup-BMEKWyIE.js +1 -0
  360. package/dist/ollama-setup-DlwS6Gl-.js +1 -0
  361. package/dist/onboard-B0BNCQaO.js +1 -0
  362. package/dist/onboard-CjVhdaiR.js +1 -0
  363. package/dist/onboard-channels-BMIOddLN.js +1 -0
  364. package/dist/onboard-channels-CZK_7xMR.js +1 -0
  365. package/dist/onboard-config-B7U20YRw.js +1 -0
  366. package/dist/onboard-config-DS9dUv8M.js +1 -0
  367. package/dist/onboard-custom-B03SlEHB.js +1 -0
  368. package/dist/onboard-custom-Bl0y8c-g.js +1 -0
  369. package/dist/onboard-helpers-PGl5bVPE.js +1 -0
  370. package/dist/onboard-helpers-zwybUJWu.js +1 -0
  371. package/dist/onboard-hooks-CERzXObm.js +1 -0
  372. package/dist/onboard-hooks-gQ3sxBNi.js +1 -0
  373. package/dist/onboard-provider-auth-flags-CqbipO7D.js +1 -0
  374. package/dist/onboard-provider-auth-flags-Dvwzdz37.js +1 -0
  375. package/dist/onboard-remote-BOpIRdDu.js +1 -0
  376. package/dist/onboard-remote-DPU-H_2O.js +1 -0
  377. package/dist/onboard-search-f2tJD4hg.js +1 -0
  378. package/dist/onboard-search-fslKKhyg.js +1 -0
  379. package/dist/onboard-skills-BMAJs6ly.js +1 -0
  380. package/dist/onboard-skills-CMSQc2Mm.js +1 -0
  381. package/dist/onboarding-B6ixWwgp.js +1 -0
  382. package/dist/onboarding-ouEqUuUr.js +1 -0
  383. package/dist/onboarding.finalize-Bgat5Npc.js +1 -0
  384. package/dist/onboarding.finalize-DsMVlTcH.js +1 -0
  385. package/dist/onboarding.gateway-config-BtLDJWJ2.js +1 -0
  386. package/dist/onboarding.gateway-config-y3pqsL9i.js +1 -0
  387. package/dist/onboarding.secret-input-BsBgh8Tc.js +1 -0
  388. package/dist/onboarding.secret-input-kO5OzYC7.js +1 -0
  389. package/dist/openai-codex-model-default-DuE2_wN7.js +1 -0
  390. package/dist/openai-codex-model-default-yVfRw-Mm.js +1 -0
  391. package/dist/openai-model-default-Bl8MHPb6.js +1 -0
  392. package/dist/openai-model-default-DJObMvLJ.js +1 -0
  393. package/dist/openclaw-exec-env-BWbOu_YC.js +1 -0
  394. package/dist/openclaw-root-CnsBf6ZU.js +1 -0
  395. package/dist/openclaw-root-D_0Q6--h.js +1 -0
  396. package/dist/outbound-BOSIEiEY.js +1 -0
  397. package/dist/outbound-BtUeDLjU.js +1 -0
  398. package/dist/outbound-Bx2Z2aYK.js +1 -0
  399. package/dist/outbound-Bz8bbrMI.js +1 -0
  400. package/dist/outbound-attachment-B7wMxwj6.js +1 -0
  401. package/dist/outbound-attachment-BgAe99RM.js +1 -0
  402. package/dist/outbound-attachment-Dds8xirj.js +1 -0
  403. package/dist/outbound-attachment-DqEKghQp.js +1 -0
  404. package/dist/pairing-cli-Bya9M-I_.js +1 -0
  405. package/dist/pairing-cli-D2JEhufv.js +1 -0
  406. package/dist/pairing-labels-BUU_-70B.js +1 -0
  407. package/dist/pairing-labels-D-kzQEL2.js +1 -0
  408. package/dist/pairing-store-BH-FTYkn.js +1 -0
  409. package/dist/pairing-store-Cg2UxreQ.js +1 -0
  410. package/dist/pairing-token-BjYBuREl.js +1 -0
  411. package/dist/pairing-token-DAR7V7FJ.js +1 -0
  412. package/dist/parse-duration-XTjMKl8s.js +1 -0
  413. package/dist/parse-finite-number-DqzUM-_s.js +1 -0
  414. package/dist/parse-finite-number-dBmDLLKL.js +1 -0
  415. package/dist/parse-log-line-CsYLg7Qu.js +1 -0
  416. package/dist/parse-log-line-NV-cipB_.js +1 -0
  417. package/dist/parse-port-Bv1Y9Wk5.js +1 -0
  418. package/dist/parse-port-JVwkxcZ8.js +1 -0
  419. package/dist/parse-timeout-DWSGfCkQ.js +1 -0
  420. package/dist/parse-timeout-Dx4QnVzo.js +1 -0
  421. package/dist/path-alias-guards-kY_ZbWs-.js +1 -0
  422. package/dist/path-alias-guards-mvyLCPlN.js +1 -0
  423. package/dist/path-env-BPd1Yd-i.js +1 -0
  424. package/dist/path-env-emdAQejM.js +1 -0
  425. package/dist/path-safety-BukYK8Kd.js +1 -0
  426. package/dist/path-safety-DaaMJFdt.js +1 -0
  427. package/dist/paths-B4IRk3wi.js +1 -0
  428. package/dist/paths-BfjJY2VL.js +1 -0
  429. package/dist/paths-BjD3T_xq.js +1 -0
  430. package/dist/paths-BpQOWYiT.js +1 -0
  431. package/dist/paths-CChBdtE8.js +1 -0
  432. package/dist/paths-CrCoPIVK.js +1 -0
  433. package/dist/paths-piJASC5k.js +1 -0
  434. package/dist/paths-yLEk_25I.js +1 -0
  435. package/dist/pi-embedded-BZSn84Bh.js +1 -0
  436. package/dist/pi-embedded-Dsz7p3MF.js +1 -0
  437. package/dist/pi-model-discovery-BbD1YJNx.js +1 -0
  438. package/dist/pi-model-discovery-CpjYoBQf.js +1 -0
  439. package/dist/pi-model-discovery-DeQdHV8O.js +1 -0
  440. package/dist/pi-model-discovery-Dps1PPWz.js +1 -0
  441. package/dist/pi-tools.before-tool-call.runtime-DseAq0gm.js +1 -0
  442. package/dist/pi-tools.before-tool-call.runtime-KKGILAuK.js +1 -0
  443. package/dist/pi-tools.before-tool-call.runtime-Pck2WdIO.js +1 -0
  444. package/dist/pi-tools.before-tool-call.runtime-ZzMJQ1BP.js +1 -0
  445. package/dist/pi-tools.policy-D40r0HmD.js +1 -0
  446. package/dist/plugin-auto-enable-DpVL6-ES.js +1 -0
  447. package/dist/plugin-auto-enable-NzmNh4oU.js +1 -0
  448. package/dist/plugin-install-plan-BobX0y9S.js +1 -0
  449. package/dist/plugin-install-plan-NvDGp0d8.js +1 -0
  450. package/dist/plugin-registry-C6dY-Et7.js +1 -0
  451. package/dist/plugin-registry-CIBiHZH1.js +1 -0
  452. package/dist/plugin-sdk/account-id.cjs +1 -0
  453. package/dist/plugin-sdk/account-id.js +1 -0
  454. package/dist/plugin-sdk/acpx.cjs +1 -0
  455. package/dist/plugin-sdk/acpx.js +1 -0
  456. package/dist/plugin-sdk/active-listener-BApFQlQn.js +1 -0
  457. package/dist/plugin-sdk/active-listener-BETopzG5.cjs +1 -0
  458. package/dist/plugin-sdk/active-listener-BEcmvyxh.cjs +1 -0
  459. package/dist/plugin-sdk/active-listener-BZPPbsNy.cjs +1 -0
  460. package/dist/plugin-sdk/active-listener-B_Mxemq7.cjs +1 -0
  461. package/dist/plugin-sdk/active-listener-BgW_qfd3.js +1 -0
  462. package/dist/plugin-sdk/active-listener-Coet66pF.cjs +1 -0
  463. package/dist/plugin-sdk/active-listener-CvML9qVF.js +1 -0
  464. package/dist/plugin-sdk/active-listener-DuO6KMXJ.js +1 -0
  465. package/dist/plugin-sdk/active-listener-DymzfmOG.cjs +1 -0
  466. package/dist/plugin-sdk/active-listener-ILBdBHMv.js +1 -0
  467. package/dist/plugin-sdk/active-listener-gRRIfN1q.js +1 -0
  468. package/dist/plugin-sdk/api-key-rotation-Bj1A9Slo.cjs +1 -0
  469. package/dist/plugin-sdk/api-key-rotation-CFPNzksf.cjs +1 -0
  470. package/dist/plugin-sdk/api-key-rotation-CXY0AyM1.js +1 -0
  471. package/dist/plugin-sdk/api-key-rotation-ClIwV8yq.js +1 -0
  472. package/dist/plugin-sdk/api-key-rotation-D5Nr1xl3.js +1 -0
  473. package/dist/plugin-sdk/api-key-rotation-DDCwA0KM.cjs +1 -0
  474. package/dist/plugin-sdk/api-key-rotation-DHMvXm70.cjs +1 -0
  475. package/dist/plugin-sdk/api-key-rotation-DaFFZfk5.js +1 -0
  476. package/dist/plugin-sdk/api-key-rotation-DcREl_0x.js +1 -0
  477. package/dist/plugin-sdk/api-key-rotation-X-5Fb7av.cjs +1 -0
  478. package/dist/plugin-sdk/api-key-rotation-_VfXYfHS.js +1 -0
  479. package/dist/plugin-sdk/api-key-rotation-wFUVOOfM.cjs +1 -0
  480. package/dist/plugin-sdk/audio-preflight-B1MP5_bc.cjs +1 -0
  481. package/dist/plugin-sdk/audio-preflight-BETx142T.cjs +1 -0
  482. package/dist/plugin-sdk/audio-preflight-BGRLhCLc.cjs +1 -0
  483. package/dist/plugin-sdk/audio-preflight-BNICfOY5.cjs +1 -0
  484. package/dist/plugin-sdk/audio-preflight-BV3Cav8M.js +1 -0
  485. package/dist/plugin-sdk/audio-preflight-BmO72Cqr.cjs +1 -0
  486. package/dist/plugin-sdk/audio-preflight-BpE8wFQc.js +1 -0
  487. package/dist/plugin-sdk/audio-preflight-CTAafaiH.js +1 -0
  488. package/dist/plugin-sdk/audio-preflight-D82aewIt.js +1 -0
  489. package/dist/plugin-sdk/audio-preflight-DmzxEaq3.cjs +1 -0
  490. package/dist/plugin-sdk/audio-preflight-DrSIYRnD.js +1 -0
  491. package/dist/plugin-sdk/audio-preflight-SZZoA2Ff.js +1 -0
  492. package/dist/plugin-sdk/audio-transcription-runner-B54MyF1_.js +1 -0
  493. package/dist/plugin-sdk/audio-transcription-runner-BIqM5H5q.js +1 -0
  494. package/dist/plugin-sdk/audio-transcription-runner-BLAxZL-U.js +1 -0
  495. package/dist/plugin-sdk/audio-transcription-runner-BVmaaA2k.js +1 -0
  496. package/dist/plugin-sdk/audio-transcription-runner-BdY-TMcc.js +1 -0
  497. package/dist/plugin-sdk/audio-transcription-runner-By3lSLub.cjs +1 -0
  498. package/dist/plugin-sdk/audio-transcription-runner-CH5CoZrF.cjs +1 -0
  499. package/dist/plugin-sdk/audio-transcription-runner-CMsp7bhn.cjs +1 -0
  500. package/dist/plugin-sdk/audio-transcription-runner-ClGibmMi.cjs +1 -0
  501. package/dist/plugin-sdk/audio-transcription-runner-QfEC19vE.cjs +1 -0
  502. package/dist/plugin-sdk/audio-transcription-runner-g7L0m-Z5.cjs +1 -0
  503. package/dist/plugin-sdk/audio-transcription-runner-pVTD93vq.js +1 -0
  504. package/dist/plugin-sdk/audit-membership-runtime-7LqcvqFo.js +1 -0
  505. package/dist/plugin-sdk/audit-membership-runtime-BQFUzFc0.cjs +1 -0
  506. package/dist/plugin-sdk/audit-membership-runtime-BYtdDX9G.cjs +1 -0
  507. package/dist/plugin-sdk/audit-membership-runtime-BzEtBUX6.cjs +1 -0
  508. package/dist/plugin-sdk/audit-membership-runtime-CBUmGrl4.js +1 -0
  509. package/dist/plugin-sdk/audit-membership-runtime-ChlVgt2y.js +1 -0
  510. package/dist/plugin-sdk/audit-membership-runtime-DLRX7LR0.js +1 -0
  511. package/dist/plugin-sdk/audit-membership-runtime-DbJW5X3L.cjs +1 -0
  512. package/dist/plugin-sdk/audit-membership-runtime-Du9LAxDa.cjs +1 -0
  513. package/dist/plugin-sdk/audit-membership-runtime-DylNnj1m.js +1 -0
  514. package/dist/plugin-sdk/audit-membership-runtime-voi5sPwF.js +1 -0
  515. package/dist/plugin-sdk/audit-membership-runtime-yWYvSpgZ.cjs +1 -0
  516. package/dist/plugin-sdk/bluebubbles.cjs +1 -0
  517. package/dist/plugin-sdk/bluebubbles.js +1 -0
  518. package/dist/plugin-sdk/channel-activity-BGK-Bj2_.cjs +1 -0
  519. package/dist/plugin-sdk/channel-activity-BRHvpV0C.js +1 -0
  520. package/dist/plugin-sdk/channel-activity-CKfWFchu.js +1 -0
  521. package/dist/plugin-sdk/channel-activity-CLUi31fX.cjs +1 -0
  522. package/dist/plugin-sdk/channel-activity-CVOp-PL4.cjs +1 -0
  523. package/dist/plugin-sdk/channel-activity-CgXnZ0GC.cjs +1 -0
  524. package/dist/plugin-sdk/channel-activity-CmYpOPAn.js +1 -0
  525. package/dist/plugin-sdk/channel-activity-CwaMf9qT.cjs +1 -0
  526. package/dist/plugin-sdk/channel-activity-D5D5tBWf.cjs +1 -0
  527. package/dist/plugin-sdk/channel-activity-D7tpmatp.js +1 -0
  528. package/dist/plugin-sdk/channel-activity-DpxSOlXF.js +1 -0
  529. package/dist/plugin-sdk/channel-activity-spvDzlTl.js +1 -0
  530. package/dist/plugin-sdk/channel-web-4ZQVqsrt.js +1 -0
  531. package/dist/plugin-sdk/channel-web-9zn1Itpg.cjs +1 -0
  532. package/dist/plugin-sdk/channel-web-BrB00HKH.js +1 -0
  533. package/dist/plugin-sdk/channel-web-DN5La-Ol.cjs +1 -0
  534. package/dist/plugin-sdk/command-poll-backoff-4910Mpwp.js +1 -0
  535. package/dist/plugin-sdk/command-poll-backoff-BLJZzV5W.cjs +1 -0
  536. package/dist/plugin-sdk/command-poll-backoff-CUNcN0dv.cjs +1 -0
  537. package/dist/plugin-sdk/command-poll-backoff-Cww_r-24.js +1 -0
  538. package/dist/plugin-sdk/command-poll-backoff-D0lJhquZ.js +1 -0
  539. package/dist/plugin-sdk/command-poll-backoff-Glwt3wHa.cjs +1 -0
  540. package/dist/plugin-sdk/commands-registry-5lStNoKW.cjs +1 -0
  541. package/dist/plugin-sdk/commands-registry-C8wnXqNa.cjs +1 -0
  542. package/dist/plugin-sdk/commands-registry-Cnr6PvIw.js +1 -0
  543. package/dist/plugin-sdk/commands-registry-CtYCWfuM.cjs +1 -0
  544. package/dist/plugin-sdk/commands-registry-D2gv242l.js +1 -0
  545. package/dist/plugin-sdk/commands-registry-DI2vPscP.js +1 -0
  546. package/dist/plugin-sdk/commands-registry-DcBvmwSU.js +1 -0
  547. package/dist/plugin-sdk/commands-registry-DkUhCIDk.cjs +1 -0
  548. package/dist/plugin-sdk/commands-registry-DsMbmie-.cjs +1 -0
  549. package/dist/plugin-sdk/commands-registry-MCsWR5Vf.js +1 -0
  550. package/dist/plugin-sdk/commands-registry-SHZVq_qf.cjs +1 -0
  551. package/dist/plugin-sdk/commands-registry-kRjFifgj.js +1 -0
  552. package/dist/plugin-sdk/common-B4iFXuoZ.cjs +1 -0
  553. package/dist/plugin-sdk/common-B6fDMl_i.js +1 -0
  554. package/dist/plugin-sdk/compat.cjs +1 -0
  555. package/dist/plugin-sdk/compat.js +1 -0
  556. package/dist/plugin-sdk/config-ByA2hluR.js +1 -0
  557. package/dist/plugin-sdk/config-rBz8C_Hi.cjs +1 -0
  558. package/dist/plugin-sdk/copilot-proxy.cjs +1 -0
  559. package/dist/plugin-sdk/copilot-proxy.js +1 -0
  560. package/dist/plugin-sdk/core.cjs +1 -0
  561. package/dist/plugin-sdk/core.js +1 -0
  562. package/dist/plugin-sdk/deliver-B0fB4hAV.js +1 -0
  563. package/dist/plugin-sdk/deliver-BOLmjIJ3.js +1 -0
  564. package/dist/plugin-sdk/deliver-BrfVwkYz.cjs +1 -0
  565. package/dist/plugin-sdk/deliver-C-tChWTI.cjs +1 -0
  566. package/dist/plugin-sdk/deliver-CjQPkWS-.cjs +1 -0
  567. package/dist/plugin-sdk/deliver-D1P0FNTu.js +1 -0
  568. package/dist/plugin-sdk/deliver-DCrO9mvv.cjs +1 -0
  569. package/dist/plugin-sdk/deliver-DQLekoj2.cjs +1 -0
  570. package/dist/plugin-sdk/deliver-DkfCVM78.js +1 -0
  571. package/dist/plugin-sdk/deliver-Dkh3lqXR.js +1 -0
  572. package/dist/plugin-sdk/deliver-DsFtXFyr.cjs +1 -0
  573. package/dist/plugin-sdk/deliver-vYe_sYOL.js +1 -0
  574. package/dist/plugin-sdk/device-pair.cjs +1 -0
  575. package/dist/plugin-sdk/device-pair.js +1 -0
  576. package/dist/plugin-sdk/diagnostic-8iX73nz_.cjs +1 -0
  577. package/dist/plugin-sdk/diagnostic-CLUtpxAp.js +1 -0
  578. package/dist/plugin-sdk/diagnostic-CVS4k9hh.cjs +1 -0
  579. package/dist/plugin-sdk/diagnostic-CkePwN5F.js +1 -0
  580. package/dist/plugin-sdk/diagnostic-Cu1PGj0E.cjs +1 -0
  581. package/dist/plugin-sdk/diagnostic-D0oCfBju.cjs +1 -0
  582. package/dist/plugin-sdk/diagnostic-D7A9cQYf.cjs +1 -0
  583. package/dist/plugin-sdk/diagnostic-DGLX0zXU.js +1 -0
  584. package/dist/plugin-sdk/diagnostic-DXscFT8t.cjs +1 -0
  585. package/dist/plugin-sdk/diagnostic-Efe4b81B.js +1 -0
  586. package/dist/plugin-sdk/diagnostic-EqHqw9xo.js +1 -0
  587. package/dist/plugin-sdk/diagnostic-vsjHZ_fY.js +1 -0
  588. package/dist/plugin-sdk/diagnostics-otel.cjs +1 -0
  589. package/dist/plugin-sdk/diagnostics-otel.js +1 -0
  590. package/dist/plugin-sdk/diffs.cjs +1 -0
  591. package/dist/plugin-sdk/diffs.js +1 -0
  592. package/dist/plugin-sdk/discord.cjs +1 -0
  593. package/dist/plugin-sdk/discord.js +1 -0
  594. package/dist/plugin-sdk/dispatch-5v3v8zzA.js +1 -0
  595. package/dist/plugin-sdk/dispatch-B6UbZCpL.cjs +1 -0
  596. package/dist/plugin-sdk/dispatch-BYlcmJ9u.js +1 -0
  597. package/dist/plugin-sdk/dispatch-C2YTqGlf.js +1 -0
  598. package/dist/plugin-sdk/dispatch-CNy3g9ma.cjs +1 -0
  599. package/dist/plugin-sdk/dispatch-DCSwqteL.js +1 -0
  600. package/dist/plugin-sdk/dispatch-DHbSBeFJ.js +1 -0
  601. package/dist/plugin-sdk/dispatch-DK5ub8qa.cjs +1 -0
  602. package/dist/plugin-sdk/dispatch-SWyfAZT0.cjs +1 -0
  603. package/dist/plugin-sdk/dispatch-mR2vLkGa.cjs +1 -0
  604. package/dist/plugin-sdk/feishu.cjs +1 -0
  605. package/dist/plugin-sdk/feishu.js +1 -0
  606. package/dist/plugin-sdk/fetch-7Iq9POda.js +1 -0
  607. package/dist/plugin-sdk/fetch-B1GR6-u4.js +1 -0
  608. package/dist/plugin-sdk/fetch-B27H-XCf.js +1 -0
  609. package/dist/plugin-sdk/fetch-BMYDLRWo.js +1 -0
  610. package/dist/plugin-sdk/fetch-BN9y3kTg.cjs +1 -0
  611. package/dist/plugin-sdk/fetch-BVEVk5YF.js +1 -0
  612. package/dist/plugin-sdk/fetch-BY6lVRlY.cjs +1 -0
  613. package/dist/plugin-sdk/fetch-Bi8krAaT.cjs +1 -0
  614. package/dist/plugin-sdk/fetch-BjXhwqrE.cjs +1 -0
  615. package/dist/plugin-sdk/fetch-BtZY623f.js +1 -0
  616. package/dist/plugin-sdk/fetch-C-HRWp5R.js +1 -0
  617. package/dist/plugin-sdk/fetch-C3LEMysf.js +1 -0
  618. package/dist/plugin-sdk/fetch-CCLWsYaQ.js +1 -0
  619. package/dist/plugin-sdk/fetch-CZewCAvu.cjs +1 -0
  620. package/dist/plugin-sdk/fetch-ClKErpni.cjs +1 -0
  621. package/dist/plugin-sdk/fetch-DBRI0sKI.js +1 -0
  622. package/dist/plugin-sdk/fetch-DQxuOB8o.cjs +1 -0
  623. package/dist/plugin-sdk/fetch-DUMEaqum.cjs +1 -0
  624. package/dist/plugin-sdk/fetch-DpwR_cJU.cjs +1 -0
  625. package/dist/plugin-sdk/fetch-J0IzopiJ.js +1 -0
  626. package/dist/plugin-sdk/fetch-guard-8I7EHbDM.cjs +1 -0
  627. package/dist/plugin-sdk/fetch-guard-CIJUkBIL.cjs +1 -0
  628. package/dist/plugin-sdk/fetch-guard-CY03i4gu.js +1 -0
  629. package/dist/plugin-sdk/fetch-guard-Cz-cgYmR.cjs +1 -0
  630. package/dist/plugin-sdk/fetch-guard-DB85MORy.cjs +1 -0
  631. package/dist/plugin-sdk/fetch-guard-DE9BslxX.js +1 -0
  632. package/dist/plugin-sdk/fetch-guard-DLNzldn9.cjs +1 -0
  633. package/dist/plugin-sdk/fetch-guard-DSvAbvSx.js +1 -0
  634. package/dist/plugin-sdk/fetch-guard-DXe8oqEE.js +1 -0
  635. package/dist/plugin-sdk/fetch-guard-DY9jpsXo.cjs +1 -0
  636. package/dist/plugin-sdk/fetch-guard-DbOZYxyN.js +1 -0
  637. package/dist/plugin-sdk/fetch-guard-_fifU0fX.js +1 -0
  638. package/dist/plugin-sdk/fetch-lw-aF17e.cjs +1 -0
  639. package/dist/plugin-sdk/fetch-timeout-6oZsqWxA.js +1 -0
  640. package/dist/plugin-sdk/fetch-timeout-BygUD0rd.cjs +1 -0
  641. package/dist/plugin-sdk/fetch-timeout-CLw1U7VS.js +1 -0
  642. package/dist/plugin-sdk/fetch-timeout-CX1w-9p4.cjs +1 -0
  643. package/dist/plugin-sdk/fetch-timeout-Coc9xyC3.cjs +1 -0
  644. package/dist/plugin-sdk/fetch-timeout-Cz6GuU_c.js +1 -0
  645. package/dist/plugin-sdk/fetch-timeout-DC8T2JCr.js +1 -0
  646. package/dist/plugin-sdk/fetch-timeout-DFDmks9T.cjs +1 -0
  647. package/dist/plugin-sdk/fetch-timeout-DkYpp08Q.js +1 -0
  648. package/dist/plugin-sdk/github-copilot-token-BHdMLLqf.cjs +1 -0
  649. package/dist/plugin-sdk/github-copilot-token-Bt4PduRB.js +1 -0
  650. package/dist/plugin-sdk/github-copilot-token-C1O2cBqk.cjs +1 -0
  651. package/dist/plugin-sdk/github-copilot-token-C1hiDugd.js +1 -0
  652. package/dist/plugin-sdk/github-copilot-token-C8j8_NjX.js +1 -0
  653. package/dist/plugin-sdk/github-copilot-token-CCrgp2py.cjs +1 -0
  654. package/dist/plugin-sdk/github-copilot-token-DoHgkI2r.cjs +1 -0
  655. package/dist/plugin-sdk/github-copilot-token-N8vnLZPw.js +1 -0
  656. package/dist/plugin-sdk/github-copilot-token-TMkfxxD2.cjs +1 -0
  657. package/dist/plugin-sdk/github-copilot-token-vKAKX6iE.js +1 -0
  658. package/dist/plugin-sdk/github-copilot-token-ylX_gawo.js +1 -0
  659. package/dist/plugin-sdk/github-copilot-token-zskwAEpd.cjs +1 -0
  660. package/dist/plugin-sdk/google-gemini-cli-auth.cjs +1 -0
  661. package/dist/plugin-sdk/google-gemini-cli-auth.js +1 -0
  662. package/dist/plugin-sdk/googlechat.cjs +1 -0
  663. package/dist/plugin-sdk/googlechat.js +1 -0
  664. package/dist/plugin-sdk/image-B6HEHWlJ.js +1 -0
  665. package/dist/plugin-sdk/image-Bte8cr4F.js +1 -0
  666. package/dist/plugin-sdk/image-BxafJgQ6.cjs +1 -0
  667. package/dist/plugin-sdk/image-CDI5SqeR.js +1 -0
  668. package/dist/plugin-sdk/image-CTgwucug.cjs +1 -0
  669. package/dist/plugin-sdk/image-CWnsS03L.js +1 -0
  670. package/dist/plugin-sdk/image-CoksjGBL.cjs +1 -0
  671. package/dist/plugin-sdk/image-CuOIoxl2.cjs +1 -0
  672. package/dist/plugin-sdk/image-DJyEMzkq.cjs +1 -0
  673. package/dist/plugin-sdk/image-DegWnAZU.cjs +1 -0
  674. package/dist/plugin-sdk/image-TCSQZpr6.js +1 -0
  675. package/dist/plugin-sdk/image-aG-5S1vd.js +1 -0
  676. package/dist/plugin-sdk/imessage.cjs +1 -0
  677. package/dist/plugin-sdk/imessage.js +1 -0
  678. package/dist/plugin-sdk/index.cjs +1 -0
  679. package/dist/plugin-sdk/index.js +1 -0
  680. package/dist/plugin-sdk/ir-8rDh7div.js +1 -0
  681. package/dist/plugin-sdk/ir-Bh6lKGdS.js +1 -0
  682. package/dist/plugin-sdk/ir-C3VNqnc2.cjs +1 -0
  683. package/dist/plugin-sdk/ir-CZOtKajq.cjs +1 -0
  684. package/dist/plugin-sdk/ir-CveCWs8q.cjs +1 -0
  685. package/dist/plugin-sdk/ir-DAxY-7c1.cjs +1 -0
  686. package/dist/plugin-sdk/ir-DSuLr2UE.cjs +1 -0
  687. package/dist/plugin-sdk/ir-DanxCjD-.cjs +1 -0
  688. package/dist/plugin-sdk/ir-Dgc6qZMX.js +1 -0
  689. package/dist/plugin-sdk/ir-OBi5zaEW.js +1 -0
  690. package/dist/plugin-sdk/ir-hQ6EW92h.js +1 -0
  691. package/dist/plugin-sdk/ir-ynWQeZD9.js +1 -0
  692. package/dist/plugin-sdk/irc.cjs +1 -0
  693. package/dist/plugin-sdk/irc.js +1 -0
  694. package/dist/plugin-sdk/keyed-async-queue.cjs +1 -0
  695. package/dist/plugin-sdk/keyed-async-queue.js +1 -0
  696. package/dist/plugin-sdk/line.cjs +1 -0
  697. package/dist/plugin-sdk/line.js +1 -0
  698. package/dist/plugin-sdk/llm-task.cjs +1 -0
  699. package/dist/plugin-sdk/llm-task.js +1 -0
  700. package/dist/plugin-sdk/load-options-B9Ss5YOO.js +1 -0
  701. package/dist/plugin-sdk/load-options-BOfn6Zgo.cjs +1 -0
  702. package/dist/plugin-sdk/load-options-BXvm8HVv.js +1 -0
  703. package/dist/plugin-sdk/load-options-Bb7u8yZz.cjs +1 -0
  704. package/dist/plugin-sdk/load-options-BcSg1ODN.js +1 -0
  705. package/dist/plugin-sdk/load-options-NqnXJ-Nh.cjs +1 -0
  706. package/dist/plugin-sdk/lobster.cjs +1 -0
  707. package/dist/plugin-sdk/lobster.js +1 -0
  708. package/dist/plugin-sdk/local-roots-5udQUs81.js +1 -0
  709. package/dist/plugin-sdk/local-roots-BmhNPIJm.cjs +1 -0
  710. package/dist/plugin-sdk/local-roots-C5UoE741.cjs +1 -0
  711. package/dist/plugin-sdk/local-roots-Ca8KoAAp.js +1 -0
  712. package/dist/plugin-sdk/local-roots-CeAYfmPb.cjs +1 -0
  713. package/dist/plugin-sdk/local-roots-Cu7YCpql.cjs +1 -0
  714. package/dist/plugin-sdk/local-roots-D0yN794S.js +1 -0
  715. package/dist/plugin-sdk/local-roots-D4i3H0UG.cjs +1 -0
  716. package/dist/plugin-sdk/local-roots-DGe-SRNu.js +1 -0
  717. package/dist/plugin-sdk/local-roots-bWA2msT0.js +1 -0
  718. package/dist/plugin-sdk/local-roots-tee85Q-1.js +1 -0
  719. package/dist/plugin-sdk/local-roots-wTkpE7go.cjs +1 -0
  720. package/dist/plugin-sdk/logger-6O6OsYBL.cjs +1 -0
  721. package/dist/plugin-sdk/logger-BlddiV_d.cjs +1 -0
  722. package/dist/plugin-sdk/logger-Bm93ZKOk.cjs +1 -0
  723. package/dist/plugin-sdk/logger-BtrWb0dj.js +1 -0
  724. package/dist/plugin-sdk/logger-C210xuWx.js +1 -0
  725. package/dist/plugin-sdk/logger-DJGHvDbX.js +1 -0
  726. package/dist/plugin-sdk/logger-DPlqYkRm.cjs +1 -0
  727. package/dist/plugin-sdk/logger-DUYnS-W3.cjs +1 -0
  728. package/dist/plugin-sdk/logger-DwWqfo66.js +1 -0
  729. package/dist/plugin-sdk/logger-vBDTZWl3.js +1 -0
  730. package/dist/plugin-sdk/login-B5IwNcl4.cjs +1 -0
  731. package/dist/plugin-sdk/login-BIbt7ZL_.js +1 -0
  732. package/dist/plugin-sdk/login-CxnDKwXC.js +1 -0
  733. package/dist/plugin-sdk/login-D5iTWowo.cjs +1 -0
  734. package/dist/plugin-sdk/login-DHE1rzB1.js +1 -0
  735. package/dist/plugin-sdk/login-DIPBcPQc.cjs +1 -0
  736. package/dist/plugin-sdk/login-DtDOozuU.js +1 -0
  737. package/dist/plugin-sdk/login-UrWNtI80.cjs +1 -0
  738. package/dist/plugin-sdk/login-VviMkBU2.js +1 -0
  739. package/dist/plugin-sdk/login-jQwwt6C-.js +1 -0
  740. package/dist/plugin-sdk/login-mGjCzJzb.cjs +1 -0
  741. package/dist/plugin-sdk/login-pZnnpj38.cjs +1 -0
  742. package/dist/plugin-sdk/login-qr-BexuTIDJ.cjs +1 -0
  743. package/dist/plugin-sdk/login-qr-C366Qlh-.cjs +1 -0
  744. package/dist/plugin-sdk/login-qr-CQY4ty0o.js +1 -0
  745. package/dist/plugin-sdk/login-qr-CSabEb-n.cjs +1 -0
  746. package/dist/plugin-sdk/login-qr-CUgNKijx.js +1 -0
  747. package/dist/plugin-sdk/login-qr-C_LEw1Bi.js +1 -0
  748. package/dist/plugin-sdk/login-qr-CcPvldsG.js +1 -0
  749. package/dist/plugin-sdk/login-qr-CnNGKwDR.cjs +1 -0
  750. package/dist/plugin-sdk/login-qr-DQm50pXk.js +1 -0
  751. package/dist/plugin-sdk/login-qr-DayvAWkx.js +1 -0
  752. package/dist/plugin-sdk/login-qr-eodIsL9V.cjs +1 -0
  753. package/dist/plugin-sdk/login-qr-yIJE7MmY.cjs +1 -0
  754. package/dist/plugin-sdk/manager-932XljTT.js +1 -0
  755. package/dist/plugin-sdk/manager-CGHd5p2T.js +1 -0
  756. package/dist/plugin-sdk/manager-CbGA_JDa.js +1 -0
  757. package/dist/plugin-sdk/manager-CdD7HaGW.cjs +1 -0
  758. package/dist/plugin-sdk/manager-CmAH_a7A.cjs +1 -0
  759. package/dist/plugin-sdk/manager-DIS4ywpb.cjs +1 -0
  760. package/dist/plugin-sdk/manager-DQ2C-2IU.cjs +1 -0
  761. package/dist/plugin-sdk/manager-DdvFnsT7.cjs +1 -0
  762. package/dist/plugin-sdk/manager-DfdDglld.js +1 -0
  763. package/dist/plugin-sdk/manager-MR9stU_p.js +1 -0
  764. package/dist/plugin-sdk/manager-WwW37IUu.js +1 -0
  765. package/dist/plugin-sdk/manager-gE9187gu.cjs +1 -0
  766. package/dist/plugin-sdk/matrix.cjs +1 -0
  767. package/dist/plugin-sdk/matrix.js +1 -0
  768. package/dist/plugin-sdk/mattermost.cjs +1 -0
  769. package/dist/plugin-sdk/mattermost.js +1 -0
  770. package/dist/plugin-sdk/memory-core.cjs +1 -0
  771. package/dist/plugin-sdk/memory-core.js +1 -0
  772. package/dist/plugin-sdk/minimax-portal-auth.cjs +1 -0
  773. package/dist/plugin-sdk/minimax-portal-auth.js +1 -0
  774. package/dist/plugin-sdk/model-auth-BpS4IWDi.cjs +1 -0
  775. package/dist/plugin-sdk/model-auth-BwajGuoF.cjs +1 -0
  776. package/dist/plugin-sdk/model-auth-C1YL9HcW.js +1 -0
  777. package/dist/plugin-sdk/model-auth-Cc-8H6Cu.js +1 -0
  778. package/dist/plugin-sdk/model-auth-Cw3fuhm_.js +1 -0
  779. package/dist/plugin-sdk/model-auth-CycDtQl-.js +1 -0
  780. package/dist/plugin-sdk/model-auth-D-7xiXhK.cjs +1 -0
  781. package/dist/plugin-sdk/model-auth-TFUxaK0f.cjs +1 -0
  782. package/dist/plugin-sdk/model-selection-BADTZM9n.cjs +1 -0
  783. package/dist/plugin-sdk/model-selection-DUAudCtL.js +1 -0
  784. package/dist/plugin-sdk/msteams.cjs +1 -0
  785. package/dist/plugin-sdk/msteams.js +1 -0
  786. package/dist/plugin-sdk/nextcloud-talk.cjs +1 -0
  787. package/dist/plugin-sdk/nextcloud-talk.js +1 -0
  788. package/dist/plugin-sdk/nostr.cjs +1 -0
  789. package/dist/plugin-sdk/nostr.js +1 -0
  790. package/dist/plugin-sdk/outbound-2Lo6mZEY.js +1 -0
  791. package/dist/plugin-sdk/outbound-9XFlZzaF.cjs +1 -0
  792. package/dist/plugin-sdk/outbound-BlWsUmjQ.js +1 -0
  793. package/dist/plugin-sdk/outbound-Bs2rUcWZ.cjs +1 -0
  794. package/dist/plugin-sdk/outbound-C18nEOFP.js +1 -0
  795. package/dist/plugin-sdk/outbound-CW3o4Eng.cjs +1 -0
  796. package/dist/plugin-sdk/outbound-CzsdW5sy.js +1 -0
  797. package/dist/plugin-sdk/outbound-DcP22VOo.cjs +1 -0
  798. package/dist/plugin-sdk/outbound-QhOJAEO8.cjs +1 -0
  799. package/dist/plugin-sdk/outbound-attachment-1pf06Oiu.cjs +1 -0
  800. package/dist/plugin-sdk/outbound-attachment-B8-ZVX2i.cjs +1 -0
  801. package/dist/plugin-sdk/outbound-attachment-BDwI_tn0.cjs +1 -0
  802. package/dist/plugin-sdk/outbound-attachment-BXhbJils.js +1 -0
  803. package/dist/plugin-sdk/outbound-attachment-Bgf1pCh8.js +1 -0
  804. package/dist/plugin-sdk/outbound-attachment-COgf85S8.cjs +1 -0
  805. package/dist/plugin-sdk/outbound-attachment-CfN9OvMC.js +1 -0
  806. package/dist/plugin-sdk/outbound-attachment-CftilZWd.js +1 -0
  807. package/dist/plugin-sdk/outbound-attachment-Cujprd6T.cjs +1 -0
  808. package/dist/plugin-sdk/outbound-attachment-CvSHb9ci.js +1 -0
  809. package/dist/plugin-sdk/outbound-attachment-DQYtdTUw.js +1 -0
  810. package/dist/plugin-sdk/outbound-attachment-FqWC0WJx.cjs +1 -0
  811. package/dist/plugin-sdk/outbound-dTvIiFIZ.js +1 -0
  812. package/dist/plugin-sdk/outbound-fZ1WJGfe.cjs +1 -0
  813. package/dist/plugin-sdk/outbound-oHoWYWxf.js +1 -0
  814. package/dist/plugin-sdk/paths-BPlgbwrb.cjs +1 -0
  815. package/dist/plugin-sdk/paths-Bcdg3ma0.cjs +1 -0
  816. package/dist/plugin-sdk/paths-BpQOWYiT.js +1 -0
  817. package/dist/plugin-sdk/paths-BvlJvmRS.cjs +1 -0
  818. package/dist/plugin-sdk/paths-CIcxeNL-.cjs +1 -0
  819. package/dist/plugin-sdk/paths-CXgWvWAM.js +1 -0
  820. package/dist/plugin-sdk/paths-Chp3zwtq.cjs +1 -0
  821. package/dist/plugin-sdk/paths-CnHSNSeR.js +1 -0
  822. package/dist/plugin-sdk/paths-Cqca1YmF.cjs +1 -0
  823. package/dist/plugin-sdk/paths-CtrEseGU.js +1 -0
  824. package/dist/plugin-sdk/paths-D55o_j8-.js +1 -0
  825. package/dist/plugin-sdk/paths-D90l3h_o.cjs +1 -0
  826. package/dist/plugin-sdk/paths-DaRoqzBQ.js +1 -0
  827. package/dist/plugin-sdk/paths-Dd7r1qlB.cjs +1 -0
  828. package/dist/plugin-sdk/paths-DhSjTRMz.js +1 -0
  829. package/dist/plugin-sdk/paths-Do0djuaj.js +1 -0
  830. package/dist/plugin-sdk/paths-J4JUiRsa.js +1 -0
  831. package/dist/plugin-sdk/paths-cBAF6Bj0.js +1 -0
  832. package/dist/plugin-sdk/paths-piJASC5k.js +1 -0
  833. package/dist/plugin-sdk/paths-rO4ehkyU.js +1 -0
  834. package/dist/plugin-sdk/pi-model-discovery-B9boErNZ.cjs +1 -0
  835. package/dist/plugin-sdk/pi-model-discovery-BJ8wTgFH.cjs +1 -0
  836. package/dist/plugin-sdk/pi-model-discovery-Bb2vCP6M.js +1 -0
  837. package/dist/plugin-sdk/pi-model-discovery-Bor7jHYd.js +1 -0
  838. package/dist/plugin-sdk/pi-model-discovery-BrTw1qE2.cjs +1 -0
  839. package/dist/plugin-sdk/pi-model-discovery-BuEMyAsU.js +1 -0
  840. package/dist/plugin-sdk/pi-model-discovery-CV9NTjC4.js +1 -0
  841. package/dist/plugin-sdk/pi-model-discovery-D5tLf04u.js +1 -0
  842. package/dist/plugin-sdk/pi-model-discovery-D5xlUS2J.cjs +1 -0
  843. package/dist/plugin-sdk/pi-model-discovery-DGoPUzBj.cjs +1 -0
  844. package/dist/plugin-sdk/pi-model-discovery-DMrqvV1O.cjs +1 -0
  845. package/dist/plugin-sdk/pi-model-discovery-DoY7qnlI.cjs +1 -0
  846. package/dist/plugin-sdk/pi-model-discovery-Dqq9Vm8o.js +1 -0
  847. package/dist/plugin-sdk/pi-model-discovery-zCuISPPq.js +1 -0
  848. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-4238P8NF.js +1 -0
  849. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BEoqzgFe.cjs +1 -0
  850. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BGPjibRD.js +1 -0
  851. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BJ_amISU.cjs +1 -0
  852. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-BX2r_qPT.cjs +1 -0
  853. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CGLHFxSr.js +1 -0
  854. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsNn_Lv8.js +1 -0
  855. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CsiKBTHg.cjs +1 -0
  856. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-CuXQQk4F.cjs +1 -0
  857. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-DNatrz-3.cjs +1 -0
  858. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-PApjB0tY.js +1 -0
  859. package/dist/plugin-sdk/pi-tools.before-tool-call.runtime-xsXDBYNq.js +1 -0
  860. package/dist/plugin-sdk/polls-BuaJuIpV.cjs +1 -0
  861. package/dist/plugin-sdk/polls-CBAGZuJ6.js +1 -0
  862. package/dist/plugin-sdk/polls-CSKMbBIS.js +1 -0
  863. package/dist/plugin-sdk/polls-D0wY0FvT.cjs +1 -0
  864. package/dist/plugin-sdk/polls-PGxiE05J.js +1 -0
  865. package/dist/plugin-sdk/polls-yWqSCEP0.cjs +1 -0
  866. package/dist/plugin-sdk/proxy-env-B765haXA.js +1 -0
  867. package/dist/plugin-sdk/proxy-env-Bcl14j2_.cjs +1 -0
  868. package/dist/plugin-sdk/proxy-env-BlrHtJWH.js +1 -0
  869. package/dist/plugin-sdk/proxy-env-D48qBPAr.cjs +1 -0
  870. package/dist/plugin-sdk/proxy-env-DGzNnnJh.js +1 -0
  871. package/dist/plugin-sdk/proxy-env-DQoJjkWE.cjs +1 -0
  872. package/dist/plugin-sdk/proxy-env-DWw9TnOj.cjs +1 -0
  873. package/dist/plugin-sdk/proxy-env-MEjSyzTr.js +1 -0
  874. package/dist/plugin-sdk/proxy-env-a590sPAz.cjs +1 -0
  875. package/dist/plugin-sdk/proxy-env-k93igu7v.cjs +1 -0
  876. package/dist/plugin-sdk/proxy-env-m9eG3uZN.js +1 -0
  877. package/dist/plugin-sdk/proxy-env-t6hcaFqC.js +1 -0
  878. package/dist/plugin-sdk/proxy-fetch-B9aXJVe-.js +1 -0
  879. package/dist/plugin-sdk/proxy-fetch-BaA3JYgW.cjs +1 -0
  880. package/dist/plugin-sdk/proxy-fetch-BwXFVsHE.cjs +1 -0
  881. package/dist/plugin-sdk/proxy-fetch-BzcKzknk.cjs +1 -0
  882. package/dist/plugin-sdk/proxy-fetch-CYVChsKE.js +1 -0
  883. package/dist/plugin-sdk/proxy-fetch-ClOb2LUH.js +1 -0
  884. package/dist/plugin-sdk/proxy-fetch-DH7VIiBH.cjs +1 -0
  885. package/dist/plugin-sdk/proxy-fetch-DPOhfrou.cjs +1 -0
  886. package/dist/plugin-sdk/proxy-fetch-DXt2R_Z5.js +1 -0
  887. package/dist/plugin-sdk/proxy-fetch-Del551nu.js +1 -0
  888. package/dist/plugin-sdk/proxy-fetch-YCVHz7Rl.js +1 -0
  889. package/dist/plugin-sdk/proxy-fetch-qbrYAz8k.cjs +1 -0
  890. package/dist/plugin-sdk/pw-ai-B0_rvdfF.js +1 -0
  891. package/dist/plugin-sdk/pw-ai-BqdrA15F.js +1 -0
  892. package/dist/plugin-sdk/pw-ai-CDzxu5B3.js +1 -0
  893. package/dist/plugin-sdk/pw-ai-CJIogpwF.cjs +1 -0
  894. package/dist/plugin-sdk/pw-ai-CL_gU5PJ.cjs +1 -0
  895. package/dist/plugin-sdk/pw-ai-Ca4aZTaG.cjs +1 -0
  896. package/dist/plugin-sdk/pw-ai-CrfYxLI8.cjs +1 -0
  897. package/dist/plugin-sdk/pw-ai-DCiFlwP8.js +1 -0
  898. package/dist/plugin-sdk/pw-ai-DSqXNmNZ.js +1 -0
  899. package/dist/plugin-sdk/pw-ai-Dh55xTz1.cjs +1 -0
  900. package/dist/plugin-sdk/pw-ai-DxAvipyK.cjs +1 -0
  901. package/dist/plugin-sdk/pw-ai-U9nPHH-0.js +1 -0
  902. package/dist/plugin-sdk/qmd-manager-B3xNbdye.cjs +1 -0
  903. package/dist/plugin-sdk/qmd-manager-BMyDNBPi.js +1 -0
  904. package/dist/plugin-sdk/qmd-manager-BZhiv_zq.cjs +1 -0
  905. package/dist/plugin-sdk/qmd-manager-C3uVDbhW.js +1 -0
  906. package/dist/plugin-sdk/qmd-manager-CW46NrS-.cjs +1 -0
  907. package/dist/plugin-sdk/qmd-manager-C_e04BNg.js +1 -0
  908. package/dist/plugin-sdk/qmd-manager-CczVoslK.cjs +1 -0
  909. package/dist/plugin-sdk/qmd-manager-CzLKqPmR.js +1 -0
  910. package/dist/plugin-sdk/qmd-manager-DFh8b5N-.cjs +1 -0
  911. package/dist/plugin-sdk/qmd-manager-DXLfZZMI.js +1 -0
  912. package/dist/plugin-sdk/qmd-manager-FL9fAfNo.cjs +1 -0
  913. package/dist/plugin-sdk/qmd-manager-fWxbGqzk.js +1 -0
  914. package/dist/plugin-sdk/query-expansion-0zYzKrrd.cjs +1 -0
  915. package/dist/plugin-sdk/query-expansion-BYSjmpkV.cjs +1 -0
  916. package/dist/plugin-sdk/query-expansion-CAboqtWr.js +1 -0
  917. package/dist/plugin-sdk/query-expansion-C_DnhmUy.js +1 -0
  918. package/dist/plugin-sdk/query-expansion-Cb2vnF6y.js +1 -0
  919. package/dist/plugin-sdk/query-expansion-DCeqywxh.cjs +1 -0
  920. package/dist/plugin-sdk/query-expansion-DF4LMxRQ.js +1 -0
  921. package/dist/plugin-sdk/query-expansion-DKJkqmNM.cjs +1 -0
  922. package/dist/plugin-sdk/query-expansion-DO2CFW4z.cjs +1 -0
  923. package/dist/plugin-sdk/query-expansion-DyCDaZbL.js +1 -0
  924. package/dist/plugin-sdk/query-expansion-cpXCyoDy.cjs +1 -0
  925. package/dist/plugin-sdk/query-expansion-r_iXkNzt.js +1 -0
  926. package/dist/plugin-sdk/qwen-portal-auth.cjs +1 -0
  927. package/dist/plugin-sdk/qwen-portal-auth.js +1 -0
  928. package/dist/plugin-sdk/render-6fCdtAr6.cjs +1 -0
  929. package/dist/plugin-sdk/render-CBsnn-2A.js +1 -0
  930. package/dist/plugin-sdk/render-CzHaQB0d.cjs +1 -0
  931. package/dist/plugin-sdk/render-DGmfCIRG.js +1 -0
  932. package/dist/plugin-sdk/render-DhTJXP1U.js +1 -0
  933. package/dist/plugin-sdk/render-Djx15dPh.js +1 -0
  934. package/dist/plugin-sdk/render-DxBO2Blp.cjs +1 -0
  935. package/dist/plugin-sdk/render-g5VlmgpF.cjs +1 -0
  936. package/dist/plugin-sdk/reply-0zCEbT4w.cjs +1 -0
  937. package/dist/plugin-sdk/reply-D-f2bbXy.js +1 -0
  938. package/dist/plugin-sdk/resolve-outbound-target-CrQGbaua.js +1 -0
  939. package/dist/plugin-sdk/resolve-outbound-target-H7Q9HcfW.js +1 -0
  940. package/dist/plugin-sdk/resolve-outbound-target-MS6Xpp17.cjs +1 -0
  941. package/dist/plugin-sdk/resolve-outbound-target-cDxjy3TL.cjs +1 -0
  942. package/dist/plugin-sdk/send-3VNTSIhr.js +1 -0
  943. package/dist/plugin-sdk/send-61GHLNYP.cjs +1 -0
  944. package/dist/plugin-sdk/send-6q4owAw0.js +1 -0
  945. package/dist/plugin-sdk/send-A2s5sPTd.js +1 -0
  946. package/dist/plugin-sdk/send-B2qa7CSk.js +1 -0
  947. package/dist/plugin-sdk/send-B3aEYvqG.cjs +1 -0
  948. package/dist/plugin-sdk/send-BAoqP09M.cjs +1 -0
  949. package/dist/plugin-sdk/send-BNBJ4CF8.js +1 -0
  950. package/dist/plugin-sdk/send-BTE2rI1E.js +1 -0
  951. package/dist/plugin-sdk/send-BlWuQHYB.js +1 -0
  952. package/dist/plugin-sdk/send-Bnvt7ZUE.cjs +1 -0
  953. package/dist/plugin-sdk/send-Bq6Mqs9G.cjs +1 -0
  954. package/dist/plugin-sdk/send-Bq787fi_.js +1 -0
  955. package/dist/plugin-sdk/send-BrAHLYBR.js +1 -0
  956. package/dist/plugin-sdk/send-Bt2eFBk2.js +1 -0
  957. package/dist/plugin-sdk/send-C4ZFbUux.js +1 -0
  958. package/dist/plugin-sdk/send-C4cyMW4S.cjs +1 -0
  959. package/dist/plugin-sdk/send-C8f5H4XV.cjs +1 -0
  960. package/dist/plugin-sdk/send-CDwTrbgT.cjs +1 -0
  961. package/dist/plugin-sdk/send-CEfs0Fsr.js +1 -0
  962. package/dist/plugin-sdk/send-CFuJjCNB.cjs +1 -0
  963. package/dist/plugin-sdk/send-CJGLeSJ8.cjs +1 -0
  964. package/dist/plugin-sdk/send-CL0W7jLW.js +1 -0
  965. package/dist/plugin-sdk/send-CLl490Gb.cjs +1 -0
  966. package/dist/plugin-sdk/send-CQtITZ7k.cjs +1 -0
  967. package/dist/plugin-sdk/send-CSGh_GVr.cjs +1 -0
  968. package/dist/plugin-sdk/send-CicLiXB4.js +1 -0
  969. package/dist/plugin-sdk/send-Cm7bEwx-.cjs +1 -0
  970. package/dist/plugin-sdk/send-CmO9z2-b.js +1 -0
  971. package/dist/plugin-sdk/send-Co_Wy2kT.cjs +1 -0
  972. package/dist/plugin-sdk/send-Cox_iyYB.cjs +1 -0
  973. package/dist/plugin-sdk/send-CuX4LcJ3.cjs +1 -0
  974. package/dist/plugin-sdk/send-CxMiTtxI.cjs +1 -0
  975. package/dist/plugin-sdk/send-CyyzWwDr.js +1 -0
  976. package/dist/plugin-sdk/send-D-HZnehy.cjs +1 -0
  977. package/dist/plugin-sdk/send-D-qD7BCb.js +1 -0
  978. package/dist/plugin-sdk/send-D3imkSlz.cjs +1 -0
  979. package/dist/plugin-sdk/send-D5UwpCoU.cjs +1 -0
  980. package/dist/plugin-sdk/send-D75OGJco.js +1 -0
  981. package/dist/plugin-sdk/send-DB4i1kUy.cjs +1 -0
  982. package/dist/plugin-sdk/send-DBjzdBda.cjs +1 -0
  983. package/dist/plugin-sdk/send-DPgRTM8s.js +1 -0
  984. package/dist/plugin-sdk/send-DPpBLiL4.js +1 -0
  985. package/dist/plugin-sdk/send-DV_afQnj.cjs +1 -0
  986. package/dist/plugin-sdk/send-DWuChr46.js +1 -0
  987. package/dist/plugin-sdk/send-DZ4szmEa.cjs +1 -0
  988. package/dist/plugin-sdk/send-DZr98eqE.cjs +1 -0
  989. package/dist/plugin-sdk/send-D_1K0zmx.cjs +1 -0
  990. package/dist/plugin-sdk/send-DaLB9Lca.js +1 -0
  991. package/dist/plugin-sdk/send-De4qiprb.js +1 -0
  992. package/dist/plugin-sdk/send-DeU-T5ps.js +1 -0
  993. package/dist/plugin-sdk/send-DtjJM0LO.js +1 -0
  994. package/dist/plugin-sdk/send-DvDCmTQf.js +1 -0
  995. package/dist/plugin-sdk/send-EvcsiFBC.cjs +1 -0
  996. package/dist/plugin-sdk/send-GuISe9C82.js +1 -0
  997. package/dist/plugin-sdk/send-IoGcE0w2.js +1 -0
  998. package/dist/plugin-sdk/send-JVdUTsN1.cjs +1 -0
  999. package/dist/plugin-sdk/send-NpNVFRmY.js +1 -0
  1000. package/dist/plugin-sdk/send-XMOZsJcs.js +1 -0
  1001. package/dist/plugin-sdk/send-h--iKoQE.cjs +1 -0
  1002. package/dist/plugin-sdk/session-8BcB905y.cjs +1 -0
  1003. package/dist/plugin-sdk/session-B2oURX5K.js +1 -0
  1004. package/dist/plugin-sdk/session-BJhNqIOi.js +1 -0
  1005. package/dist/plugin-sdk/session-BRgGsw96.cjs +1 -0
  1006. package/dist/plugin-sdk/session-Be_7rXAz.js +1 -0
  1007. package/dist/plugin-sdk/session-C66IXbE-.js +1 -0
  1008. package/dist/plugin-sdk/session-CCYDbcyV.js +1 -0
  1009. package/dist/plugin-sdk/session-CHu3C2m0.cjs +1 -0
  1010. package/dist/plugin-sdk/session-DUlmK2IL.cjs +1 -0
  1011. package/dist/plugin-sdk/session-DxTRZTnu.js +1 -0
  1012. package/dist/plugin-sdk/session-DzhI0nj-.cjs +1 -0
  1013. package/dist/plugin-sdk/session-WRCBgAzG.cjs +1 -0
  1014. package/dist/plugin-sdk/sessions-DxXXAfdI.js +1 -0
  1015. package/dist/plugin-sdk/sessions-Dz5JUL8j.cjs +1 -0
  1016. package/dist/plugin-sdk/signal.cjs +1 -0
  1017. package/dist/plugin-sdk/signal.js +1 -0
  1018. package/dist/plugin-sdk/skill-commands-B4wI8ETo.cjs +1 -0
  1019. package/dist/plugin-sdk/skill-commands-BoTeA376.cjs +1 -0
  1020. package/dist/plugin-sdk/skill-commands-BwrYJu7Z.js +1 -0
  1021. package/dist/plugin-sdk/skill-commands-BzkMuA58.cjs +1 -0
  1022. package/dist/plugin-sdk/skill-commands-CIAf9cWN.cjs +1 -0
  1023. package/dist/plugin-sdk/skill-commands-CKc7JO_c.cjs +1 -0
  1024. package/dist/plugin-sdk/skill-commands-Cvb6oXym.js +1 -0
  1025. package/dist/plugin-sdk/skill-commands-DWDtyCtB.js +1 -0
  1026. package/dist/plugin-sdk/skill-commands-Hmuw0PPK.js +1 -0
  1027. package/dist/plugin-sdk/skill-commands-KyN0FGaC.cjs +1 -0
  1028. package/dist/plugin-sdk/skill-commands-KzwEqk5p.js +1 -0
  1029. package/dist/plugin-sdk/skill-commands-Ny38ZFIC.js +1 -0
  1030. package/dist/plugin-sdk/slack.cjs +1 -0
  1031. package/dist/plugin-sdk/slack.js +1 -0
  1032. package/dist/plugin-sdk/synology-chat.cjs +1 -0
  1033. package/dist/plugin-sdk/synology-chat.js +1 -0
  1034. package/dist/plugin-sdk/tables-BIDWwpX8.js +1 -0
  1035. package/dist/plugin-sdk/tables-Bk8lHaPx.cjs +1 -0
  1036. package/dist/plugin-sdk/tables-BlNIkMV8.js +1 -0
  1037. package/dist/plugin-sdk/tables-Bp0a2WRP.cjs +1 -0
  1038. package/dist/plugin-sdk/tables-BtVUf77b.cjs +1 -0
  1039. package/dist/plugin-sdk/tables-C4j5Bar_.js +1 -0
  1040. package/dist/plugin-sdk/tables-CZGtYzDC.cjs +1 -0
  1041. package/dist/plugin-sdk/tables-CnrHab5d.cjs +1 -0
  1042. package/dist/plugin-sdk/tables-DtslIPYw.js +1 -0
  1043. package/dist/plugin-sdk/tables-NrdtIJGp.cjs +1 -0
  1044. package/dist/plugin-sdk/tables-XYb3T-vE.js +1 -0
  1045. package/dist/plugin-sdk/tables-lbv-0tl3.js +1 -0
  1046. package/dist/plugin-sdk/target-errors-9cdJA1L2.cjs +1 -0
  1047. package/dist/plugin-sdk/target-errors-BEkhKWCq.cjs +1 -0
  1048. package/dist/plugin-sdk/target-errors-BZRN-lPd.js +1 -0
  1049. package/dist/plugin-sdk/target-errors-BrwqillR.cjs +1 -0
  1050. package/dist/plugin-sdk/target-errors-Buo5pfom.js +1 -0
  1051. package/dist/plugin-sdk/target-errors-CFzzcffg.js +1 -0
  1052. package/dist/plugin-sdk/target-errors-DFmK5loi.js +1 -0
  1053. package/dist/plugin-sdk/target-errors-DXqwykNX.js +1 -0
  1054. package/dist/plugin-sdk/target-errors-Dd6CopYF.cjs +1 -0
  1055. package/dist/plugin-sdk/target-errors-DeNJ10ks.cjs +1 -0
  1056. package/dist/plugin-sdk/targets-BSc11Uk8.cjs +1 -0
  1057. package/dist/plugin-sdk/targets-BSkiizml.js +1 -0
  1058. package/dist/plugin-sdk/targets-CBI0xqve.cjs +1 -0
  1059. package/dist/plugin-sdk/targets-CL5fYQi7.js +1 -0
  1060. package/dist/plugin-sdk/targets-CUZWrFrm.cjs +1 -0
  1061. package/dist/plugin-sdk/targets-CVEYTFPQ.js +1 -0
  1062. package/dist/plugin-sdk/targets-Co2R6K14.cjs +1 -0
  1063. package/dist/plugin-sdk/targets-CrkJkzil.js +1 -0
  1064. package/dist/plugin-sdk/targets-D-m7SV9x.cjs +1 -0
  1065. package/dist/plugin-sdk/targets-D8HTxbo4.js +1 -0
  1066. package/dist/plugin-sdk/targets-DcGNB9nk.cjs +1 -0
  1067. package/dist/plugin-sdk/targets-Dn9gDiEw.js +1 -0
  1068. package/dist/plugin-sdk/targets-X28mff4s.cjs +1 -0
  1069. package/dist/plugin-sdk/targets-uycXZ8vQ.js +1 -0
  1070. package/dist/plugin-sdk/telegram.cjs +1 -0
  1071. package/dist/plugin-sdk/telegram.js +1 -0
  1072. package/dist/plugin-sdk/test-utils.cjs +1 -0
  1073. package/dist/plugin-sdk/test-utils.js +1 -0
  1074. package/dist/plugin-sdk/tlon.cjs +1 -0
  1075. package/dist/plugin-sdk/tlon.js +1 -0
  1076. package/dist/plugin-sdk/tokens-AAdZjj0M.js +1 -0
  1077. package/dist/plugin-sdk/tokens-B20KNIDD.js +1 -0
  1078. package/dist/plugin-sdk/tokens-B8ys7Q2e.js +1 -0
  1079. package/dist/plugin-sdk/tokens-BPc1fcZ3.js +1 -0
  1080. package/dist/plugin-sdk/tokens-BqABmXSe.js +1 -0
  1081. package/dist/plugin-sdk/tokens-CXsPDJTr.cjs +1 -0
  1082. package/dist/plugin-sdk/tokens-CnB4dJmp.cjs +1 -0
  1083. package/dist/plugin-sdk/tokens-CytSl1X8.cjs +1 -0
  1084. package/dist/plugin-sdk/tokens-DgPZk2Uu.js +1 -0
  1085. package/dist/plugin-sdk/tokens-Dq2wDF3_.cjs +1 -0
  1086. package/dist/plugin-sdk/tokens-DtrljGtQ.cjs +1 -0
  1087. package/dist/plugin-sdk/tokens-g5KWvWhD.cjs +1 -0
  1088. package/dist/plugin-sdk/twitch.cjs +1 -0
  1089. package/dist/plugin-sdk/twitch.js +1 -0
  1090. package/dist/plugin-sdk/utils-BJtJR72k.js +1 -0
  1091. package/dist/plugin-sdk/utils-PPIvU9qw.cjs +1 -0
  1092. package/dist/plugin-sdk/voice-call.cjs +1 -0
  1093. package/dist/plugin-sdk/voice-call.js +1 -0
  1094. package/dist/plugin-sdk/web-B-QDcVRv.cjs +1 -0
  1095. package/dist/plugin-sdk/web-B2PwjHsu.cjs +1 -0
  1096. package/dist/plugin-sdk/web-BdnQzLgF.js +1 -0
  1097. package/dist/plugin-sdk/web-C9T7tf6w.js +1 -0
  1098. package/dist/plugin-sdk/web-CODD4ksc.cjs +1 -0
  1099. package/dist/plugin-sdk/web-CkdCvvR-.js +1 -0
  1100. package/dist/plugin-sdk/web-_tj8xNZE.js +1 -0
  1101. package/dist/plugin-sdk/web-pcTha_l7.cjs +1 -0
  1102. package/dist/plugin-sdk/weixin.cjs +1 -0
  1103. package/dist/plugin-sdk/weixin.js +1 -0
  1104. package/dist/plugin-sdk/whatsapp-actions-Bhz2j1uz.cjs +1 -0
  1105. package/dist/plugin-sdk/whatsapp-actions-Bm2UyRYg.cjs +1 -0
  1106. package/dist/plugin-sdk/whatsapp-actions-Bolz0jl5.js +1 -0
  1107. package/dist/plugin-sdk/whatsapp-actions-CJ3LDpaG.js +1 -0
  1108. package/dist/plugin-sdk/whatsapp-actions-CL1Gmkb0.js +1 -0
  1109. package/dist/plugin-sdk/whatsapp-actions-D-bZRT7s.js +1 -0
  1110. package/dist/plugin-sdk/whatsapp-actions-DSGTTE8M.cjs +1 -0
  1111. package/dist/plugin-sdk/whatsapp-actions-DjQxgMpW.cjs +1 -0
  1112. package/dist/plugin-sdk/whatsapp-actions-DrPBBi5t.cjs +1 -0
  1113. package/dist/plugin-sdk/whatsapp-actions-DtK657CZ.cjs +1 -0
  1114. package/dist/plugin-sdk/whatsapp-actions-Xwev51_N.js +1 -0
  1115. package/dist/plugin-sdk/whatsapp-actions-m7vLtNAA.js +1 -0
  1116. package/dist/plugin-sdk/whatsapp.cjs +1 -0
  1117. package/dist/plugin-sdk/whatsapp.js +1 -0
  1118. package/dist/plugin-sdk/zalo.cjs +1 -0
  1119. package/dist/plugin-sdk/zalo.js +1 -0
  1120. package/dist/plugin-sdk/zalouser.cjs +1 -0
  1121. package/dist/plugin-sdk/zalouser.js +1 -0
  1122. package/dist/plugins-CYLrFT4h.js +1 -0
  1123. package/dist/plugins-DNlgeTTc.js +1 -0
  1124. package/dist/plugins-cli-BbjMbzJU.js +1 -0
  1125. package/dist/plugins-cli-BiVMAr5T.js +1 -0
  1126. package/dist/polls-BIVz6a4F.js +1 -0
  1127. package/dist/polls-Bh5wc9-6.js +1 -0
  1128. package/dist/polls-C_XSFz3d.js +1 -0
  1129. package/dist/polls-DKJOFSzJ.js +1 -0
  1130. package/dist/ports-B0XdGTfS.js +1 -0
  1131. package/dist/ports-BR0PLRtq.js +1 -0
  1132. package/dist/probe-auth-BMA0yM94.js +1 -0
  1133. package/dist/probe-auth-VI96zmTK.js +1 -0
  1134. package/dist/profile-utils-CWmra1aY.js +1 -0
  1135. package/dist/program-BrAZTwFr.js +1 -0
  1136. package/dist/program-context-B9ydtPje.js +1 -0
  1137. package/dist/program-context-CH9p6anW.js +1 -0
  1138. package/dist/progress-LNttnI-y.js +1 -0
  1139. package/dist/progress-d1m2sqR1.js +1 -0
  1140. package/dist/prompt-select-styled-BeJNbzSa.js +1 -0
  1141. package/dist/prompt-select-styled-DIOWLjl0.js +1 -0
  1142. package/dist/prompt-style-BThRSQJR.js +1 -0
  1143. package/dist/prompt-style-CXKekIBY.js +1 -0
  1144. package/dist/prompts-CMzglboN.js +1 -0
  1145. package/dist/prompts-wv-lfVrJ.js +1 -0
  1146. package/dist/provider-auth-helpers-1lU43eTW.js +1 -0
  1147. package/dist/provider-auth-helpers-pBVCjBj9.js +1 -0
  1148. package/dist/provider-env-vars-D8p6Ohpj.js +1 -0
  1149. package/dist/provider-env-vars-Dt0Q29Su.js +1 -0
  1150. package/dist/proxy-env-BNhTHkd_.js +1 -0
  1151. package/dist/proxy-env-DcmW_urA.js +1 -0
  1152. package/dist/proxy-env-DrC3TIGh.js +1 -0
  1153. package/dist/proxy-env-FJr5nlvs.js +1 -0
  1154. package/dist/proxy-fetch-BADsUK4d.js +1 -0
  1155. package/dist/proxy-fetch-BZ9O8Dvj.js +1 -0
  1156. package/dist/proxy-fetch-DnjU1fEB.js +1 -0
  1157. package/dist/proxy-fetch-gWETR3cl.js +1 -0
  1158. package/dist/push-apns-BGUOmD5M.js +1 -0
  1159. package/dist/push-apns-B_a2MBJ4.js +1 -0
  1160. package/dist/pw-ai-C-Ffkwai.js +1 -0
  1161. package/dist/pw-ai-CV1H1Vrs.js +1 -0
  1162. package/dist/pw-ai-D_MB1lrR.js +1 -0
  1163. package/dist/pw-ai-_l9lVice.js +1 -0
  1164. package/dist/qmd-manager-C_e04BNg.js +1 -0
  1165. package/dist/qmd-manager-DSQ_mDCl.js +1 -0
  1166. package/dist/qmd-manager-DcBYbt_V.js +1 -0
  1167. package/dist/qmd-manager-NLI0R6kp.js +1 -0
  1168. package/dist/qr-cli-3aG6CB6K.js +1 -0
  1169. package/dist/qr-cli-fiJxD5M4.js +1 -0
  1170. package/dist/query-expansion-0OxEb1Io.js +1 -0
  1171. package/dist/query-expansion-BUUx_oWg.js +1 -0
  1172. package/dist/query-expansion-r_iXkNzt.js +1 -0
  1173. package/dist/reaction-level-DVPHL14p.js +1 -0
  1174. package/dist/reaction-message-id-BEEe7X3D.js +1 -0
  1175. package/dist/read-only-account-inspect-DBwAwB3_.js +1 -0
  1176. package/dist/redact-3_CiXMY6.js +1 -0
  1177. package/dist/redact-CnRxK70G.js +1 -0
  1178. package/dist/register.agent-CX78s_X9.js +1 -0
  1179. package/dist/register.agent-DLDKQENq.js +1 -0
  1180. package/dist/register.backup-DkFoTcuT.js +1 -0
  1181. package/dist/register.backup-PzF5rmeU.js +1 -0
  1182. package/dist/register.configure-BA5u9hT3.js +1 -0
  1183. package/dist/register.configure-BhPtf3Qo.js +1 -0
  1184. package/dist/register.maintenance-BhsBepKS.js +1 -0
  1185. package/dist/register.maintenance-r_MzNK3-.js +1 -0
  1186. package/dist/register.message-CTF--Z2a.js +1 -0
  1187. package/dist/register.message-jcZ875be.js +1 -0
  1188. package/dist/register.onboard-C3yL50_c.js +1 -0
  1189. package/dist/register.onboard-CNwnStUk.js +1 -0
  1190. package/dist/register.setup-BRJMzgfU.js +1 -0
  1191. package/dist/register.setup-BvsS-zgm.js +1 -0
  1192. package/dist/register.status-health-sessions-DVc__2pc.js +1 -0
  1193. package/dist/register.status-health-sessions-Dqmkw820.js +1 -0
  1194. package/dist/register.subclis-D-24j83X.js +1 -0
  1195. package/dist/registry-BptzrW8D.js +1 -0
  1196. package/dist/registry-hFAtCSWG.js +1 -0
  1197. package/dist/render-BXEUPIHe.js +1 -0
  1198. package/dist/render-CBsnn-2A.js +1 -0
  1199. package/dist/render-D8OWO2hT.js +1 -0
  1200. package/dist/render-DrrPmnMI.js +1 -0
  1201. package/dist/reply-l-Y47HP4.js +1 -0
  1202. package/dist/restart-CHXEHdSC.js +1 -0
  1203. package/dist/rpc-B3ReBNXG.js +1 -0
  1204. package/dist/rpc-DumDLalJ.js +1 -0
  1205. package/dist/run-main-B_YBE_TN.js +1 -0
  1206. package/dist/runtime-BC5Ep2pJ.js +1 -0
  1207. package/dist/runtime-Dlg2-Omq.js +1 -0
  1208. package/dist/runtime-guard-DFYBaYZS.js +1 -0
  1209. package/dist/runtime-guard-DX2Ie4ri.js +1 -0
  1210. package/dist/runtime-status-CqFBmdRd.js +1 -0
  1211. package/dist/runtime-status-DszMjvJK.js +1 -0
  1212. package/dist/runtime-web-tools-D8fms06-.js +1 -0
  1213. package/dist/runtime-web-tools-bz76ZaRc.js +1 -0
  1214. package/dist/sandbox-cli-BDorUBm-.js +1 -0
  1215. package/dist/sandbox-cli-Bq40R5Vs.js +1 -0
  1216. package/dist/scan-paths-C13EseXp.js +1 -0
  1217. package/dist/scan-paths-CWtvWW40.js +1 -0
  1218. package/dist/search-manager-Bp9x20r6.js +1 -0
  1219. package/dist/secret-file-C7JffiM_.js +1 -0
  1220. package/dist/secret-file-D60EFEOe.js +1 -0
  1221. package/dist/secret-file-DuWm26jS.js +1 -0
  1222. package/dist/secrets-cli-Bo6PC32U.js +1 -0
  1223. package/dist/secrets-cli-CoXJv3Jp.js +1 -0
  1224. package/dist/secure-random-D7JQgiK-.js +1 -0
  1225. package/dist/security-cli-CgZL2KKh.js +1 -0
  1226. package/dist/security-cli-DVOfhwAP.js +1 -0
  1227. package/dist/send-B7sHR38c2.js +1 -0
  1228. package/dist/send-Bx2Qr7VH.js +1 -0
  1229. package/dist/send-C-AP01PR.js +1 -0
  1230. package/dist/send-C1CJ-GHU.js +1 -0
  1231. package/dist/send-C48Y9SAq.js +1 -0
  1232. package/dist/send-CVplsJpw.js +1 -0
  1233. package/dist/send-CW81y5Wz.js +1 -0
  1234. package/dist/send-CYgHok1p.js +1 -0
  1235. package/dist/send-Cgd_VJHR.js +1 -0
  1236. package/dist/send-Chz0YMoJ.js +1 -0
  1237. package/dist/send-D9hVVn7p2.js +1 -0
  1238. package/dist/send-DKrzj_Ts.js +1 -0
  1239. package/dist/send-DRLSCwCk.js +1 -0
  1240. package/dist/send-DavpkzhH.js +1 -0
  1241. package/dist/send-DbeEC2a3.js +1 -0
  1242. package/dist/send-DkiKKUkt.js +1 -0
  1243. package/dist/send-DlfVd5mL.js +1 -0
  1244. package/dist/send-JYgM9Sm-2.js +1 -0
  1245. package/dist/send-hZFDcGLM.js +1 -0
  1246. package/dist/send-vthbs31u.js +1 -0
  1247. package/dist/server-DpyBukwA.js +1 -0
  1248. package/dist/server-IgiSKzXH.js +1 -0
  1249. package/dist/server-node-events-CFSY_-4t.js +1 -0
  1250. package/dist/server-node-events-ZFwmPwQ-.js +1 -0
  1251. package/dist/service-BtB9epJk.js +1 -0
  1252. package/dist/service-DZ9EbS15.js +1 -0
  1253. package/dist/session-C9TDmUS7.js +1 -0
  1254. package/dist/session-CUUGjiV3.js +1 -0
  1255. package/dist/session-DA-i5xQ-.js +1 -0
  1256. package/dist/session-bk3gFwO4.js +1 -0
  1257. package/dist/session-cost-usage-BgqKixv0.js +1 -0
  1258. package/dist/session-cost-usage-CHtVgnE8.js +1 -0
  1259. package/dist/session-key-C7F_iqYg.js +1 -0
  1260. package/dist/session-key-D3P0tf5P.js +1 -0
  1261. package/dist/session-utils-8acNlxwP.js +1 -0
  1262. package/dist/sessions-BsxT0V2m.js +1 -0
  1263. package/dist/shared-9x5sqYRb.js +1 -0
  1264. package/dist/shared-BKWhOp64.js +1 -0
  1265. package/dist/shared-GesXrZzd.js +1 -0
  1266. package/dist/skill-commands-BWW6mc6t.js +1 -0
  1267. package/dist/skill-commands-CSF6wVPU.js +1 -0
  1268. package/dist/skill-commands-Db232ZRp.js +1 -0
  1269. package/dist/skill-commands-HJHHZqt6.js +1 -0
  1270. package/dist/skill-scanner-CUUF3Fvo.js +1 -0
  1271. package/dist/skill-scanner-CkxXNioD.js +1 -0
  1272. package/dist/skills-CKTicUKS.js +1 -0
  1273. package/dist/skills-DHbOKEGc.js +1 -0
  1274. package/dist/skills-cli-9Ls94z5H.js +1 -0
  1275. package/dist/skills-cli-BY7OhJzj.js +1 -0
  1276. package/dist/skills-install-CIdGCXSy.js +1 -0
  1277. package/dist/skills-install-DIdiVt9Y.js +1 -0
  1278. package/dist/skills-status-BWIugRCz.js +1 -0
  1279. package/dist/skills-status-DswSl5aD.js +1 -0
  1280. package/dist/sqlite-CILF3z9U.js +1 -0
  1281. package/dist/stagger-DmFYysrJ.js +1 -0
  1282. package/dist/stagger-DxzgG2jd.js +1 -0
  1283. package/dist/status-C-9fSiMn.js +1 -0
  1284. package/dist/status-CeBGmSAz.js +1 -0
  1285. package/dist/status-DYqPF0rB.js +1 -0
  1286. package/dist/status-JIPeVrsc.js +1 -0
  1287. package/dist/status.update-B_8Gumuc.js +1 -0
  1288. package/dist/status.update-DoSzHu2F.js +1 -0
  1289. package/dist/string-normalization-BrUPaXaM.js +1 -0
  1290. package/dist/string-normalization-DJT5zuUF.js +1 -0
  1291. package/dist/subsystem-BLbY429l.js +1 -0
  1292. package/dist/subsystem-Bc2XrjUz.js +1 -0
  1293. package/dist/subsystem-C5XF2Fy5.js +1 -0
  1294. package/dist/system-cli-CeZfoVPN.js +1 -0
  1295. package/dist/system-cli-DZkTYB9d.js +1 -0
  1296. package/dist/system-run-command-BKfMiqQM.js +1 -0
  1297. package/dist/system-run-command-DEWnZE0r.js +1 -0
  1298. package/dist/systemd-D7odsu4K.js +1 -0
  1299. package/dist/systemd-DbevZh65.js +1 -0
  1300. package/dist/systemd-hints-C0DKDl35.js +1 -0
  1301. package/dist/systemd-hints-lXpMy-kY.js +1 -0
  1302. package/dist/systemd-linger-C2MJD6KG.js +1 -0
  1303. package/dist/systemd-linger-cWKbFNpu.js +1 -0
  1304. package/dist/table-CR7TFMew.js +1 -0
  1305. package/dist/table-CY440fI1.js +1 -0
  1306. package/dist/tables-Brc2lNcB.js +1 -0
  1307. package/dist/tables-CrXdLc_6.js +1 -0
  1308. package/dist/tables-Oieq7UbT.js +1 -0
  1309. package/dist/tables-btcG3yFT.js +1 -0
  1310. package/dist/target-errors-CRlevJJ5.js +1 -0
  1311. package/dist/target-errors-CgWAJOam.js +1 -0
  1312. package/dist/target-errors-CpKXh2RS.js +1 -0
  1313. package/dist/target-errors-a35Md15n.js +1 -0
  1314. package/dist/targets-4EaxWBal.js +1 -0
  1315. package/dist/targets-BJTo7bqu.js +1 -0
  1316. package/dist/targets-BYVMrXDf.js +1 -0
  1317. package/dist/targets-Bq6rS6-Z.js +1 -0
  1318. package/dist/targets-CL5fYQi7.js +1 -0
  1319. package/dist/targets-fozeWOOg.js +1 -0
  1320. package/dist/targets-m_41k_Mv.js +1 -0
  1321. package/dist/telegram/audit.js +1 -0
  1322. package/dist/text-format-CvrvBBre.js +1 -0
  1323. package/dist/text-format-DEWK6oCT.js +1 -0
  1324. package/dist/token-DnTmiyJu.js +1 -0
  1325. package/dist/tokens-B2fq-rL6.js +1 -0
  1326. package/dist/tokens-CL2fSjGl.js +1 -0
  1327. package/dist/tokens-DRM8vzJx.js +1 -0
  1328. package/dist/tokens-XGbQGn67.js +1 -0
  1329. package/dist/tool-display-DJDtttQg.js +1 -0
  1330. package/dist/tool-display-DjuSUUbH.js +1 -0
  1331. package/dist/tui-B506apla.js +1 -0
  1332. package/dist/tui-CJUkUxHb.js +1 -0
  1333. package/dist/tui-cli-BEdGHmhc.js +1 -0
  1334. package/dist/tui-cli-Cq_eXDAV.js +1 -0
  1335. package/dist/types.secrets-C-5U96pc.js +1 -0
  1336. package/dist/types.secrets-D4tbc3Wq.js +1 -0
  1337. package/dist/update-BGrxUIyz.js +1 -0
  1338. package/dist/update-CwTy5DPl.js +1 -0
  1339. package/dist/update-cli-BwBMOeP0.js +1 -0
  1340. package/dist/update-cli-YrBbmw4f.js +1 -0
  1341. package/dist/update-runner-BvtyRBD2.js +1 -0
  1342. package/dist/update-runner-DYamgo1V.js +1 -0
  1343. package/dist/usage-format-BWD8FJFL.js +1 -0
  1344. package/dist/usage-format-yPwal8Iz.js +1 -0
  1345. package/dist/utils-CGdo13HV.js +1 -0
  1346. package/dist/utils-D3t-vPka.js +1 -0
  1347. package/dist/utils-R-mFyVJi.js +1 -0
  1348. package/dist/utils-UGOV_184.js +1 -0
  1349. package/dist/version-q3SkUw2K.js +1 -0
  1350. package/dist/warning-filter.js +1 -0
  1351. package/dist/web-Cq3xWCaD.js +1 -0
  1352. package/dist/web-DwcxsgH0.js +1 -0
  1353. package/dist/webhooks-cli-CIeyainW.js +1 -0
  1354. package/dist/webhooks-cli-DSNAve_D.js +1 -0
  1355. package/dist/whatsapp-actions-B6gt1KeB.js +1 -0
  1356. package/dist/whatsapp-actions-DACoH7qd.js +1 -0
  1357. package/dist/whatsapp-actions-iQhIeMya.js +1 -0
  1358. package/dist/whatsapp-actions-tmjID75a.js +1 -0
  1359. package/dist/widearea-dns-BDx7vkV2.js +1 -0
  1360. package/dist/widearea-dns-BFjqKXu_.js +1 -0
  1361. package/dist/windows-spawn-7oINn5ao.js +1 -0
  1362. package/dist/windows-spawn-AB7ItGAE.js +1 -0
  1363. package/dist/with-timeout-WveKxvFV.js +1 -0
  1364. package/dist/with-timeout-c1CzdShT.js +1 -0
  1365. package/dist/workspace-B0ZQeHXg.js +1 -0
  1366. package/dist/workspace-C45T1Cxg.js +1 -0
  1367. package/dist/workspace-dirs-A8Vib9_B.js +1 -0
  1368. package/dist/workspace-dirs-BhF1Dzxt.js +1 -0
  1369. package/dist/workspace-xNEpaJvu.js +1 -0
  1370. package/dist/wsl-DHxB2Ew_.js +1 -0
  1371. package/dist/wsl-Ok7GaSJ6.js +1 -0
  1372. package/node_modules/@aws-sdk/client-bedrock-runtime/package.json +2 -2
  1373. package/node_modules/@aws-sdk/token-providers/package.json +1 -1
  1374. package/node_modules/@grammyjs/types/package.json +1 -1
  1375. package/node_modules/@line/bot-sdk/dist/channel-access-token/api/channelAccessTokenClient.js +49 -3
  1376. package/node_modules/@line/bot-sdk/dist/cjs/channel-access-token/api/channelAccessTokenClient.js +49 -3
  1377. package/node_modules/@line/bot-sdk/dist/cjs/client.js +636 -0
  1378. package/node_modules/@line/bot-sdk/dist/cjs/endpoints.js +7 -0
  1379. package/node_modules/@line/bot-sdk/dist/cjs/exceptions.js +15 -1
  1380. package/node_modules/@line/bot-sdk/dist/cjs/http-axios.js +2 -6
  1381. package/node_modules/@line/bot-sdk/dist/cjs/http-fetch.js +5 -13
  1382. package/node_modules/@line/bot-sdk/dist/cjs/index.js +3 -1
  1383. package/node_modules/@line/bot-sdk/dist/cjs/insight/api/insightClient.js +3 -0
  1384. package/node_modules/@line/bot-sdk/dist/cjs/liff/api/liffClient.js +3 -0
  1385. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.factory.generated.js +66 -0
  1386. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.generated.js +1999 -0
  1387. package/node_modules/@line/bot-sdk/dist/cjs/line-bot-client.js +61 -0
  1388. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceBlobClient.js +3 -0
  1389. package/node_modules/@line/bot-sdk/dist/cjs/manage-audience/api/manageAudienceClient.js +3 -0
  1390. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiBlobClient.js +3 -0
  1391. package/node_modules/@line/bot-sdk/dist/cjs/messaging-api/api/messagingApiClient.js +3 -0
  1392. package/node_modules/@line/bot-sdk/dist/cjs/module/api/lineModuleClient.js +3 -0
  1393. package/node_modules/@line/bot-sdk/dist/cjs/module-attach/api/lineModuleAttachClient.js +3 -0
  1394. package/node_modules/@line/bot-sdk/dist/cjs/shop/api/shopClient.js +3 -0
  1395. package/node_modules/@line/bot-sdk/dist/cjs/utils.js +10 -0
  1396. package/node_modules/@line/bot-sdk/dist/cjs/version.js +1 -1
  1397. package/node_modules/@line/bot-sdk/dist/client.js +636 -0
  1398. package/node_modules/@line/bot-sdk/dist/endpoints.js +7 -0
  1399. package/node_modules/@line/bot-sdk/dist/exceptions.js +15 -1
  1400. package/node_modules/@line/bot-sdk/dist/http-axios.js +2 -6
  1401. package/node_modules/@line/bot-sdk/dist/http-fetch.js +5 -13
  1402. package/node_modules/@line/bot-sdk/dist/index.js +1 -0
  1403. package/node_modules/@line/bot-sdk/dist/insight/api/insightClient.js +3 -0
  1404. package/node_modules/@line/bot-sdk/dist/liff/api/liffClient.js +3 -0
  1405. package/node_modules/@line/bot-sdk/dist/line-bot-client.factory.generated.js +63 -0
  1406. package/node_modules/@line/bot-sdk/dist/line-bot-client.generated.js +1995 -0
  1407. package/node_modules/@line/bot-sdk/dist/line-bot-client.js +58 -0
  1408. package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceBlobClient.js +3 -0
  1409. package/node_modules/@line/bot-sdk/dist/manage-audience/api/manageAudienceClient.js +3 -0
  1410. package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiBlobClient.js +3 -0
  1411. package/node_modules/@line/bot-sdk/dist/messaging-api/api/messagingApiClient.js +3 -0
  1412. package/node_modules/@line/bot-sdk/dist/module/api/lineModuleClient.js +3 -0
  1413. package/node_modules/@line/bot-sdk/dist/module-attach/api/lineModuleAttachClient.js +3 -0
  1414. package/node_modules/@line/bot-sdk/dist/shop/api/shopClient.js +3 -0
  1415. package/node_modules/@line/bot-sdk/dist/utils.js +9 -0
  1416. package/node_modules/@line/bot-sdk/dist/version.js +1 -1
  1417. package/node_modules/@line/bot-sdk/package.json +10 -7
  1418. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/clipboard.linux-x64-gnu.node +0 -0
  1419. package/node_modules/@mariozechner/clipboard-linux-x64-gnu/package.json +25 -0
  1420. package/node_modules/@mariozechner/clipboard-linux-x64-musl/clipboard.linux-x64-musl.node +0 -0
  1421. package/node_modules/@mariozechner/clipboard-linux-x64-musl/package.json +25 -0
  1422. package/node_modules/@slack/bolt/dist/App.js +22 -30
  1423. package/node_modules/@slack/bolt/dist/Assistant.js +21 -37
  1424. package/node_modules/@slack/bolt/dist/CustomFunction.js +1 -43
  1425. package/node_modules/@slack/bolt/dist/context/create-function-complete.js +23 -0
  1426. package/node_modules/@slack/bolt/dist/context/create-function-fail.js +23 -0
  1427. package/node_modules/@slack/bolt/dist/context/create-respond.js +11 -0
  1428. package/node_modules/@slack/bolt/dist/context/create-say-stream.js +16 -0
  1429. package/node_modules/@slack/bolt/dist/context/create-say.js +17 -0
  1430. package/node_modules/@slack/bolt/dist/context/create-set-status.js +21 -0
  1431. package/node_modules/@slack/bolt/dist/context/index.js +16 -0
  1432. package/node_modules/@slack/bolt/dist/helpers.js +79 -3
  1433. package/node_modules/@slack/bolt/dist/index.js +10 -8
  1434. package/node_modules/@slack/bolt/dist/receivers/SocketModeReceiver.js +5 -1
  1435. package/node_modules/@slack/bolt/dist/types/events/index.js +0 -4
  1436. package/node_modules/@slack/bolt/package.json +7 -7
  1437. package/node_modules/@smithy/config-resolver/package.json +10 -11
  1438. package/node_modules/@smithy/core/dist-cjs/getSmithyContext.js +6 -0
  1439. package/node_modules/@smithy/core/dist-cjs/index.js +1 -1
  1440. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemeEndpointRuleSetPlugin.js +21 -0
  1441. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +21 -0
  1442. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/httpAuthSchemeMiddleware.js +46 -0
  1443. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/index.js +6 -0
  1444. package/node_modules/@smithy/core/dist-cjs/middleware-http-auth-scheme/resolveAuthOptions.js +24 -0
  1445. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/getHttpSigningMiddleware.js +19 -0
  1446. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/httpSigningMiddleware.js +27 -0
  1447. package/node_modules/@smithy/core/dist-cjs/middleware-http-signing/index.js +5 -0
  1448. package/node_modules/@smithy/core/dist-cjs/normalizeProvider.js +10 -0
  1449. package/node_modules/@smithy/core/dist-cjs/pagination/createPaginator.js +44 -0
  1450. package/node_modules/@smithy/core/dist-cjs/request-builder/requestBuilder.js +5 -0
  1451. package/node_modules/@smithy/core/dist-cjs/setFeature.js +14 -0
  1452. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +17 -0
  1453. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpApiKeyAuth.js +38 -0
  1454. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/httpBearerAuth.js +15 -0
  1455. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/index.js +6 -0
  1456. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/httpAuthSchemes/noAuth.js +9 -0
  1457. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/index.js +6 -0
  1458. package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/memoizeIdentityProvider.js +61 -0
  1459. package/node_modules/@smithy/core/package.json +15 -16
  1460. package/node_modules/@smithy/credential-provider-imds/package.json +9 -10
  1461. package/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +13 -0
  1462. package/node_modules/@smithy/eventstream-codec/package.json +6 -7
  1463. package/node_modules/@smithy/eventstream-serde-browser/package.json +7 -8
  1464. package/node_modules/@smithy/eventstream-serde-config-resolver/package.json +7 -8
  1465. package/node_modules/@smithy/eventstream-serde-node/package.json +7 -8
  1466. package/node_modules/@smithy/eventstream-serde-universal/package.json +9 -10
  1467. package/node_modules/@smithy/fetch-http-handler/package.json +12 -13
  1468. package/node_modules/@smithy/hash-node/package.json +6 -7
  1469. package/node_modules/@smithy/invalid-dependency/package.json +6 -7
  1470. package/node_modules/@smithy/middleware-content-length/package.json +7 -8
  1471. package/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +2 -2
  1472. package/node_modules/@smithy/middleware-endpoint/package.json +13 -14
  1473. package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +70 -29
  1474. package/node_modules/@smithy/middleware-retry/dist-es/index.js +5 -4
  1475. package/node_modules/@smithy/middleware-retry/dist-es/longPollMiddleware.js +15 -0
  1476. package/node_modules/@smithy/middleware-retry/dist-es/parseRetryAfterHeader.js +49 -0
  1477. package/node_modules/@smithy/middleware-retry/dist-es/{StandardRetryStrategy.js → retry-pre-sra-deprecated/StandardRetryStrategy.js} +1 -1
  1478. package/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +13 -20
  1479. package/node_modules/@smithy/middleware-retry/package.json +16 -16
  1480. package/node_modules/@smithy/middleware-serde/package.json +10 -11
  1481. package/node_modules/@smithy/middleware-stack/package.json +7 -8
  1482. package/node_modules/@smithy/node-config-provider/package.json +8 -9
  1483. package/node_modules/@smithy/node-http-handler/package.json +10 -11
  1484. package/node_modules/@smithy/property-provider/package.json +6 -7
  1485. package/node_modules/@smithy/protocol-http/package.json +6 -7
  1486. package/node_modules/@smithy/querystring-builder/package.json +6 -7
  1487. package/node_modules/@smithy/querystring-parser/package.json +6 -7
  1488. package/node_modules/@smithy/service-error-classification/package.json +6 -7
  1489. package/node_modules/@smithy/shared-ini-file-loader/package.json +7 -8
  1490. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +13 -0
  1491. package/node_modules/@smithy/signature-v4/package.json +9 -10
  1492. package/node_modules/@smithy/smithy-client/dist-cjs/index.js +1 -1
  1493. package/node_modules/@smithy/smithy-client/package.json +14 -15
  1494. package/node_modules/@smithy/types/package.json +7 -8
  1495. package/node_modules/@smithy/url-parser/package.json +7 -8
  1496. package/node_modules/@smithy/util-defaults-mode-browser/package.json +8 -9
  1497. package/node_modules/@smithy/util-defaults-mode-node/package.json +11 -12
  1498. package/node_modules/@smithy/util-endpoints/package.json +9 -10
  1499. package/node_modules/@smithy/util-middleware/package.json +6 -7
  1500. package/node_modules/@smithy/util-retry/dist-cjs/index.js +123 -76
  1501. package/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +7 -4
  1502. package/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +2 -2
  1503. package/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +24 -25
  1504. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryBackoffStrategy.js +14 -0
  1505. package/node_modules/@smithy/util-retry/dist-es/DefaultRetryToken.js +25 -0
  1506. package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +39 -26
  1507. package/node_modules/@smithy/util-retry/dist-es/index.js +1 -0
  1508. package/node_modules/@smithy/util-retry/dist-es/retries-2026-config.js +18 -0
  1509. package/node_modules/@smithy/util-retry/package.json +10 -11
  1510. package/node_modules/@smithy/util-stream/package.json +12 -13
  1511. package/node_modules/@snazzah/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
  1512. package/node_modules/@snazzah/davey-linux-x64-gnu/package.json +43 -0
  1513. package/node_modules/@snazzah/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
  1514. package/node_modules/@snazzah/davey-linux-x64-musl/package.json +43 -0
  1515. package/node_modules/dotenv/lib/main.js +1 -1
  1516. package/node_modules/dotenv/package.json +1 -1
  1517. package/node_modules/dotenv/skills/dotenv/SKILL.md +32 -52
  1518. package/node_modules/dotenv/skills/dotenvx/SKILL.md +57 -273
  1519. package/node_modules/grammy/out/bot.js +1 -0
  1520. package/node_modules/grammy/out/context.js +35 -0
  1521. package/node_modules/grammy/out/convenience/keyboard.js +30 -2
  1522. package/node_modules/grammy/out/core/api.js +34 -0
  1523. package/node_modules/grammy/out/filter.js +6 -2
  1524. package/node_modules/grammy/out/web.mjs +58 -10
  1525. package/node_modules/grammy/package.json +2 -2
  1526. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +12 -0
  1527. package/node_modules/lru-cache/dist/commonjs/index.js +227 -130
  1528. package/node_modules/lru-cache/dist/commonjs/index.min.js +1 -1
  1529. package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
  1530. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +17 -0
  1531. package/node_modules/lru-cache/dist/esm/index.js +227 -130
  1532. package/node_modules/lru-cache/dist/esm/index.min.js +1 -1
  1533. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.mts.map +1 -0
  1534. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +8 -0
  1535. package/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
  1536. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  1537. package/node_modules/lru-cache/package.json +29 -9
  1538. package/node_modules/netmask/dist/netmask.js +58 -0
  1539. package/node_modules/netmask/dist/netmask4.js +189 -0
  1540. package/node_modules/netmask/dist/netmask6.js +187 -0
  1541. package/node_modules/netmask/package.json +15 -6
  1542. package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
  1543. package/node_modules/path-expression-matcher/lib/pem.d.cts +93 -0
  1544. package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
  1545. package/node_modules/path-expression-matcher/package.json +1 -1
  1546. package/node_modules/path-expression-matcher/src/ExpressionSet.js +189 -0
  1547. package/node_modules/path-expression-matcher/src/Matcher.js +50 -20
  1548. package/node_modules/path-expression-matcher/src/index.js +3 -2
  1549. package/node_modules/strnum/package.json +1 -1
  1550. package/package.json +1 -1
  1551. package/preset-config.json +12 -0
  1552. package/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +0 -14
  1553. package/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +0 -11
  1554. package/node_modules/netmask/CREDITS.md +0 -30
  1555. package/node_modules/netmask/lib/netmask.coffee +0 -167
  1556. package/node_modules/netmask/lib/netmask.js +0 -208
  1557. package/node_modules/strnum/.github/SECURITY.md +0 -5
  1558. package/node_modules/strnum/.vscode/launch.json +0 -25
  1559. package/node_modules/strnum/algo.stflow +0 -84
  1560. package/skills/sherpa-onnx-tts/bin/sherpa-onnx-tts +0 -178
  1561. /package/node_modules/@smithy/middleware-retry/dist-es/{AdaptiveRetryStrategy.js → retry-pre-sra-deprecated/AdaptiveRetryStrategy.js} +0 -0
  1562. /package/node_modules/@smithy/middleware-retry/dist-es/{defaultRetryQuota.js → retry-pre-sra-deprecated/defaultRetryQuota.js} +0 -0
  1563. /package/node_modules/@smithy/middleware-retry/dist-es/{delayDecider.js → retry-pre-sra-deprecated/delayDecider.js} +0 -0
  1564. /package/node_modules/@smithy/middleware-retry/dist-es/{retryDecider.js → retry-pre-sra-deprecated/retryDecider.js} +0 -0
  1565. /package/node_modules/@smithy/middleware-retry/dist-es/{types.js → retry-pre-sra-deprecated/types.js} +0 -0
@@ -1 +1,2 @@
1
1
  import{f as e,p as t,s as n}from"./openclaw-root-CnsBf6ZU.js";import{g as r,m as i,v as a,y as o}from"./windows-spawn-7oINn5ao.js";import{n as s}from"./path-safety-BukYK8Kd.js";import c from"node:path";import{constants as l}from"node:fs";import u from"node:fs/promises";import{createHash as d,randomUUID as f}from"node:crypto";import{pipeline as p}from"node:stream/promises";import{Readable as m,Transform as h}from"node:stream";import g from"jszip";import*as _ from"tar";function v(e){return/^[a-zA-Z]:[\\/]/.test(e)}function y(e){return e.replaceAll(`\\`,`/`)}function b(e,t){if(!e||e===`.`||e===`./`)return;if(v(e))throw Error(`archive entry uses a drive path: ${e}`);let n=c.posix.normalize(y(e)),r=t?.escapeLabel??`destination`;if(n===`..`||n.startsWith(`../`))throw Error(`archive entry escapes ${r}: ${e}`);if(c.posix.isAbsolute(n)||n.startsWith(`//`))throw Error(`archive entry is absolute: ${e}`)}function x(e,t){let n=y(e);if(!n||n===`.`||n===`./`)return null;let r=n.split(`/`).filter(e=>e.length>0&&e!==`.`),i=Math.max(0,Math.floor(t)),a=i===0?r.join(`/`):r.slice(i).join(`/`),o=c.posix.normalize(a);return!o||o===`.`||o===`./`?null:o}function S(e){let t=s(e.rootDir),n=c.resolve(e.rootDir,e.relPath),r=e.escapeLabel??`destination`;if(!n.startsWith(t))throw Error(`archive entry escapes ${r}: ${e.originalPath}`);return n}var C=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`ArchiveSecurityError`}};function w(e){return new C(`destination-symlink-traversal`,`archive entry traverses symlink in destination: ${e}`)}async function T(e){let t=await u.lstat(e);if(t.isSymbolicLink())throw new C(`destination-symlink`,`archive destination is a symlink`);if(!t.isDirectory())throw new C(`destination-not-directory`,`archive destination is not a directory`);return await u.realpath(e)}async function ee(t){let n=t.relPath.split(/[\\/]+/).filter(Boolean),r=c.resolve(t.rootDir);for(let i of n){r=c.join(r,i);let n;try{n=await u.lstat(r)}catch(t){if(e(t))continue;throw t}if(n.isSymbolicLink())throw w(t.originalPath)}}async function E(n){let r;try{r=await u.realpath(n.targetPath)}catch(t){if(e(t))return;throw t}if(!t(n.destinationRealDir,r))throw w(n.originalPath)}async function D(e){if(await ee({rootDir:e.destinationDir,relPath:e.relPath,originalPath:e.originalPath}),e.isDirectory){await u.mkdir(e.outPath,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:e.outPath,originalPath:e.originalPath});return}let t=c.dirname(e.outPath);await u.mkdir(t,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath})}async function O(e){let t=c.join(e.destinationRealDir,e.relPath);await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath}),e.mode!==0&&await u.chmod(t,e.mode).catch(()=>void 0)}async function k(e){let t=await u.mkdtemp(c.join(e.destinationRealDir,`.openclaw-archive-`));try{return await e.run(t)}finally{await u.rm(t,{recursive:!0,force:!0}).catch(()=>void 0)}}async function A(e){let t=async n=>{let i=await u.readdir(n,{withFileTypes:!0});for(let a of i){let i=c.join(n,a.name),o=c.relative(e.sourceDir,i),s=o.split(c.sep).join(`/`),l=c.join(e.destinationDir,o),d=await u.lstat(i);if(d.isSymbolicLink())throw w(s);if(d.isDirectory()){await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:l,originalPath:s,isDirectory:!0}),await t(i),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s});continue}if(!d.isFile())throw Error(`archive staging contains unsupported entry: ${s}`);await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:l,originalPath:s,isDirectory:!1}),await r({sourcePath:i,rootDir:e.destinationRealDir,relativePath:o,mkdir:!0}),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s})}};await t(e.sourceDir)}function j(e){return w(e)}const M=`archive size exceeds limit`,N=`archive entry extracted size exceeds limit`,te=process.platform!==`win32`&&`O_NOFOLLOW`in l,ne=l.O_WRONLY|l.O_CREAT|l.O_EXCL|(te?l.O_NOFOLLOW:0),P=[`.tgz`,`.tar.gz`,`.tar`];function F(e){let t=e.toLowerCase();return t.endsWith(`.zip`)?`zip`:P.some(e=>t.endsWith(e))?`tar`:null}async function I(e){let t=c.join(e,`package`);try{if((await u.stat(t)).isDirectory())return t}catch{}let n=(await u.readdir(e,{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name);if(n.length!==1)throw Error(`unexpected archive layout (dirs: ${n.join(`, `)})`);let r=n[0];if(!r)throw Error(`unexpected archive layout (no package dir found)`);return c.join(e,r)}async function L(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>i(Error(`${n} timed out after ${t}ms`)),t)})])}finally{r&&clearTimeout(r)}}function R(e){if(typeof e!=`number`||!Number.isFinite(e))return;let t=Math.floor(e);return t>0?t:void 0}function z(e){return{maxArchiveBytes:R(e?.maxArchiveBytes)??268435456,maxEntries:R(e?.maxEntries)??5e4,maxExtractedBytes:R(e?.maxExtractedBytes)??536870912,maxEntryBytes:R(e?.maxEntryBytes)??268435456}}function B(e,t){if(e>t.maxEntries)throw Error(`archive entry count exceeds limit`)}function V(e){let t=0,n=0,r=r=>{let i=Math.max(0,Math.floor(r));if(i!==0){if(t+=i,t>e.maxEntryBytes)throw Error(N);if(n+=i,n>e.maxExtractedBytes)throw Error(`archive extracted size exceeds limit`)}};return{startEntry(){t=0},addBytes:r,addEntrySize(t){let n=Math.max(0,Math.floor(t));if(n>e.maxEntryBytes)throw Error(N);r(n)}}}function H(e){return new h({transform(t,n,r){try{let n=t instanceof Buffer?t:Buffer.from(t);e.onChunkBytes(n.byteLength),r(null,n)}catch(e){r(e instanceof Error?e:Error(String(e)))}}})}function U(e){return j(e)}async function W(e){try{return await o({rootDir:e.destinationRealDir,relativePath:e.relPath,mkdir:!1,mode:438})}catch(t){throw t instanceof i&&(t.code===`invalid-path`||t.code===`outside-workspace`||t.code===`path-mismatch`)?U(e.originalPath):t}}async function G(t){let n;try{n=await u.lstat(t)}catch(t){if(e(t))return;throw t}n.isFile()&&await u.unlink(t).catch(()=>void 0)}function K(e){return c.join(c.dirname(e),`.${c.basename(e)}.${process.pid}.${f()}.tmp`)}async function q(e){let t=await a({rootDir:e.destinationRealDir,relativePath:e.relPath,rejectHardlinks:!0});try{if(!n(t.stat,e.expectedStat))throw new i(`path-mismatch`,`path changed during zip extract`);return t.realPath}finally{await t.handle.close().catch(()=>void 0)}}async function J(e){if(typeof e.nodeStream==`function`)return e.nodeStream();let t=await e.async(`nodebuffer`);return m.from(t)}function Y(e){b(e.entryPath);let t=x(e.entryPath,e.strip);return t?(b(t),{relPath:t,outPath:S({rootDir:e.destinationDir,relPath:t,originalPath:e.entryPath})}):null}async function X(e){await D(e)}async function re(e){let t=await W({relPath:e.relPath,originalPath:e.entry.name,destinationRealDir:e.destinationRealDir});e.budget.startEntry();let n=await J(e.entry),r=t.openedRealPath,a=t.openedStat.mode&511;await t.handle.close().catch(()=>void 0);let o=null,s=null,c=null,l=!1;try{s=K(r),o=await u.open(s,ne,a||438);let t=o.createWriteStream();if(t.once(`close`,()=>{l=!0}),await p(n,H({onChunkBytes:e.budget.addBytes}),t),c=await u.stat(s),!c)throw Error(`zip temp write did not produce file metadata`);l||=(await o.close().catch(()=>void 0),!0),o=null,await u.rename(s,r),s=null;let i=await q({destinationRealDir:e.destinationRealDir,relPath:e.relPath,expectedStat:c});if(typeof e.entry.unixPermissions==`number`){let t=e.entry.unixPermissions&511;t!==0&&await u.chmod(i,t).catch(()=>void 0)}}catch(t){throw s?await u.rm(s,{force:!0}).catch(()=>void 0):await G(r).catch(()=>void 0),t instanceof i?U(e.entry.name):t}finally{o&&!l&&await o.close().catch(()=>void 0)}}async function ie(e){let t=z(e.limits),n=await T(e.destDir);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let r=await u.readFile(e.archivePath),i=await g.loadAsync(r),a=Object.values(i.files),o=Math.max(0,Math.floor(e.stripComponents??0));B(a.length,t);let s=V(t);for(let t of a){let r=Y({entryPath:t.name,strip:o,destinationDir:e.destDir});r&&(await X({destinationDir:e.destDir,destinationRealDir:n,relPath:r.relPath,outPath:r.outPath,originalPath:t.name,isDirectory:t.dir}),!t.dir&&await re({entry:t,relPath:r.relPath,destinationRealDir:n,budget:s}))}}const ae=new Set([`SymbolicLink`,`Link`,`BlockDevice`,`CharacterDevice`,`FIFO`,`Socket`]);function oe(e){return{path:typeof e==`object`&&e&&`path`in e?String(e.path):``,type:typeof e==`object`&&e&&`type`in e?String(e.type):``,size:typeof e==`object`&&e&&`size`in e&&typeof e.size==`number`&&Number.isFinite(e.size)?Math.max(0,Math.floor(e.size)):0}}function Z(e){let t=Math.max(0,Math.floor(e.stripComponents??0)),n=z(e.limits),r=0,i=V(n);return a=>{b(a.path,{escapeLabel:e.escapeLabel});let o=x(a.path,t);if(o){if(b(o,{escapeLabel:e.escapeLabel}),S({rootDir:e.rootDir,relPath:o,originalPath:a.path,escapeLabel:e.escapeLabel}),ae.has(a.type))throw Error(`tar entry is a link: ${a.path}`);r+=1,B(r,n),i.addEntrySize(a.size)}}}async function se(e){let t=e.kind??F(e.archivePath);if(!t)throw Error(`unsupported archive: ${e.archivePath}`);let n=t===`zip`?`extract zip`:`extract tar`;if(t===`tar`){await L((async()=>{let t=z(e.limits);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let n=await T(e.destDir);await k({destinationRealDir:n,run:async r=>{let i=Z({rootDir:n,stripComponents:e.stripComponents,limits:t});await _.x({file:e.archivePath,cwd:r,strip:Math.max(0,Math.floor(e.stripComponents??0)),gzip:e.tarGzip,preservePaths:!1,strict:!0,onReadEntry(e){try{i(oe(e))}catch(e){let t=e instanceof Error?e:Error(String(e));this.abort?.(t)}}}),await A({sourceDir:r,destinationDir:n,destinationRealDir:n})}})})(),e.timeoutMs,n);return}await L(ie({archivePath:e.archivePath,destDir:e.destDir,stripComponents:e.stripComponents,limits:e.limits}),e.timeoutMs,n)}async function Q(e){try{return await u.stat(e),!0}catch{return!1}}async function ce(e){let t=await u.readFile(e,`utf-8`);return JSON.parse(t)}function le(e){let t=e.trim();return t&&(t.includes(`/`)?t.split(`/`).pop()??t:t)}function $(e){let t=e.trim();return t&&t.replaceAll(`/`,`__`).replaceAll(`\\`,`__`)}function ue(e){let t=e.trim(),n=t.replaceAll(/[\\/]/g,`-`).replaceAll(/[^a-zA-Z0-9._-]/g,`-`).replaceAll(/-+/g,`-`).replaceAll(/^-+/g,``).replaceAll(/-+$/g,``),r=n.length>0?n:`skill`,i=r===`.`||r===`..`?`skill`:r,a=d(`sha256`).update(t).digest(`hex`).slice(0,10);return i===t?i.length>60?`${i.slice(0,50)}-${a}`:i:`${i.length>50?i.slice(0,50):i}-${a}`}function de(e){let t=c.join(e.baseDir,$(e.id)),n=c.resolve(e.baseDir),r=c.resolve(t),i=c.relative(n,r);return!i||i===`..`||i.startsWith(`..${c.sep}`)||c.isAbsolute(i)?{ok:!1,error:e.invalidNameMessage}:{ok:!0,path:t}}async function fe(e){let n=c.resolve(e.baseDir),r=c.resolve(e.candidatePath);if(!t(n,r))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`);let i=await u.lstat(n);if(!i.isDirectory()||i.isSymbolicLink())throw Error(`Invalid ${e.boundaryLabel}: base directory must be a real directory`);let a=await u.realpath(n),o=async n=>{let r=await u.lstat(n);if(!r.isDirectory()||r.isSymbolicLink()||!t(a,await u.realpath(n)))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`)};try{await o(r);return}catch(e){if(e.code!==`ENOENT`)throw e}await o(c.dirname(r))}export{le as a,Q as c,I as d,A as f,v as h,ue as i,ce as l,k as m,de as n,Z as o,T as p,$ as r,se as s,fe as t,F as u};
2
+ //# sourceMappingURL=install-safe-path-C6kc_8NW.js.map
@@ -1 +1,2 @@
1
1
  import{f as e,p as t,s as n}from"./openclaw-root-D_0Q6--h.js";import{g as r,m as i,v as a,y as o}from"./windows-spawn-AB7ItGAE.js";import{n as s}from"./path-safety-DaaMJFdt.js";import{constants as c}from"node:fs";import l from"node:path";import u from"node:fs/promises";import{createHash as d,randomUUID as f}from"node:crypto";import{pipeline as p}from"node:stream/promises";import{Readable as m,Transform as h}from"node:stream";import g from"jszip";import*as _ from"tar";function v(e){return/^[a-zA-Z]:[\\/]/.test(e)}function y(e){return e.replaceAll(`\\`,`/`)}function b(e,t){if(!e||e===`.`||e===`./`)return;if(v(e))throw Error(`archive entry uses a drive path: ${e}`);let n=l.posix.normalize(y(e)),r=t?.escapeLabel??`destination`;if(n===`..`||n.startsWith(`../`))throw Error(`archive entry escapes ${r}: ${e}`);if(l.posix.isAbsolute(n)||n.startsWith(`//`))throw Error(`archive entry is absolute: ${e}`)}function x(e,t){let n=y(e);if(!n||n===`.`||n===`./`)return null;let r=n.split(`/`).filter(e=>e.length>0&&e!==`.`),i=Math.max(0,Math.floor(t)),a=i===0?r.join(`/`):r.slice(i).join(`/`),o=l.posix.normalize(a);return!o||o===`.`||o===`./`?null:o}function S(e){let t=s(e.rootDir),n=l.resolve(e.rootDir,e.relPath),r=e.escapeLabel??`destination`;if(!n.startsWith(t))throw Error(`archive entry escapes ${r}: ${e.originalPath}`);return n}var C=class extends Error{constructor(e,t,n){super(t,n),this.code=e,this.name=`ArchiveSecurityError`}};function w(e){return new C(`destination-symlink-traversal`,`archive entry traverses symlink in destination: ${e}`)}async function T(e){let t=await u.lstat(e);if(t.isSymbolicLink())throw new C(`destination-symlink`,`archive destination is a symlink`);if(!t.isDirectory())throw new C(`destination-not-directory`,`archive destination is not a directory`);return await u.realpath(e)}async function ee(t){let n=t.relPath.split(/[\\/]+/).filter(Boolean),r=l.resolve(t.rootDir);for(let i of n){r=l.join(r,i);let n;try{n=await u.lstat(r)}catch(t){if(e(t))continue;throw t}if(n.isSymbolicLink())throw w(t.originalPath)}}async function E(n){let r;try{r=await u.realpath(n.targetPath)}catch(t){if(e(t))return;throw t}if(!t(n.destinationRealDir,r))throw w(n.originalPath)}async function D(e){if(await ee({rootDir:e.destinationDir,relPath:e.relPath,originalPath:e.originalPath}),e.isDirectory){await u.mkdir(e.outPath,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:e.outPath,originalPath:e.originalPath});return}let t=l.dirname(e.outPath);await u.mkdir(t,{recursive:!0}),await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath})}async function O(e){let t=l.join(e.destinationRealDir,e.relPath);await E({destinationRealDir:e.destinationRealDir,targetPath:t,originalPath:e.originalPath}),e.mode!==0&&await u.chmod(t,e.mode).catch(()=>void 0)}async function k(e){let t=await u.mkdtemp(l.join(e.destinationRealDir,`.openclaw-archive-`));try{return await e.run(t)}finally{await u.rm(t,{recursive:!0,force:!0}).catch(()=>void 0)}}async function A(e){let t=async n=>{let i=await u.readdir(n,{withFileTypes:!0});for(let a of i){let i=l.join(n,a.name),o=l.relative(e.sourceDir,i),s=o.split(l.sep).join(`/`),c=l.join(e.destinationDir,o),d=await u.lstat(i);if(d.isSymbolicLink())throw w(s);if(d.isDirectory()){await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:c,originalPath:s,isDirectory:!0}),await t(i),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s});continue}if(!d.isFile())throw Error(`archive staging contains unsupported entry: ${s}`);await D({destinationDir:e.destinationDir,destinationRealDir:e.destinationRealDir,relPath:o,outPath:c,originalPath:s,isDirectory:!1}),await r({sourcePath:i,rootDir:e.destinationRealDir,relativePath:o,mkdir:!0}),await O({destinationRealDir:e.destinationRealDir,relPath:o,mode:d.mode&511,originalPath:s})}};await t(e.sourceDir)}function j(e){return w(e)}const M=`archive size exceeds limit`,N=`archive entry extracted size exceeds limit`,te=process.platform!==`win32`&&`O_NOFOLLOW`in c,ne=c.O_WRONLY|c.O_CREAT|c.O_EXCL|(te?c.O_NOFOLLOW:0),P=[`.tgz`,`.tar.gz`,`.tar`];function F(e){let t=e.toLowerCase();return t.endsWith(`.zip`)?`zip`:P.some(e=>t.endsWith(e))?`tar`:null}async function I(e){let t=l.join(e,`package`);try{if((await u.stat(t)).isDirectory())return t}catch{}let n=(await u.readdir(e,{withFileTypes:!0})).filter(e=>e.isDirectory()).map(e=>e.name);if(n.length!==1)throw Error(`unexpected archive layout (dirs: ${n.join(`, `)})`);let r=n[0];if(!r)throw Error(`unexpected archive layout (no package dir found)`);return l.join(e,r)}async function L(e,t,n){let r;try{return await Promise.race([e,new Promise((e,i)=>{r=setTimeout(()=>i(Error(`${n} timed out after ${t}ms`)),t)})])}finally{r&&clearTimeout(r)}}function R(e){if(typeof e!=`number`||!Number.isFinite(e))return;let t=Math.floor(e);return t>0?t:void 0}function z(e){return{maxArchiveBytes:R(e?.maxArchiveBytes)??268435456,maxEntries:R(e?.maxEntries)??5e4,maxExtractedBytes:R(e?.maxExtractedBytes)??536870912,maxEntryBytes:R(e?.maxEntryBytes)??268435456}}function B(e,t){if(e>t.maxEntries)throw Error(`archive entry count exceeds limit`)}function V(e){let t=0,n=0,r=r=>{let i=Math.max(0,Math.floor(r));if(i!==0){if(t+=i,t>e.maxEntryBytes)throw Error(N);if(n+=i,n>e.maxExtractedBytes)throw Error(`archive extracted size exceeds limit`)}};return{startEntry(){t=0},addBytes:r,addEntrySize(t){let n=Math.max(0,Math.floor(t));if(n>e.maxEntryBytes)throw Error(N);r(n)}}}function H(e){return new h({transform(t,n,r){try{let n=t instanceof Buffer?t:Buffer.from(t);e.onChunkBytes(n.byteLength),r(null,n)}catch(e){r(e instanceof Error?e:Error(String(e)))}}})}function U(e){return j(e)}async function W(e){try{return await o({rootDir:e.destinationRealDir,relativePath:e.relPath,mkdir:!1,mode:438})}catch(t){throw t instanceof i&&(t.code===`invalid-path`||t.code===`outside-workspace`||t.code===`path-mismatch`)?U(e.originalPath):t}}async function G(t){let n;try{n=await u.lstat(t)}catch(t){if(e(t))return;throw t}n.isFile()&&await u.unlink(t).catch(()=>void 0)}function K(e){return l.join(l.dirname(e),`.${l.basename(e)}.${process.pid}.${f()}.tmp`)}async function q(e){let t=await a({rootDir:e.destinationRealDir,relativePath:e.relPath,rejectHardlinks:!0});try{if(!n(t.stat,e.expectedStat))throw new i(`path-mismatch`,`path changed during zip extract`);return t.realPath}finally{await t.handle.close().catch(()=>void 0)}}async function J(e){if(typeof e.nodeStream==`function`)return e.nodeStream();let t=await e.async(`nodebuffer`);return m.from(t)}function Y(e){b(e.entryPath);let t=x(e.entryPath,e.strip);return t?(b(t),{relPath:t,outPath:S({rootDir:e.destinationDir,relPath:t,originalPath:e.entryPath})}):null}async function X(e){await D(e)}async function re(e){let t=await W({relPath:e.relPath,originalPath:e.entry.name,destinationRealDir:e.destinationRealDir});e.budget.startEntry();let n=await J(e.entry),r=t.openedRealPath,a=t.openedStat.mode&511;await t.handle.close().catch(()=>void 0);let o=null,s=null,c=null,l=!1;try{s=K(r),o=await u.open(s,ne,a||438);let t=o.createWriteStream();if(t.once(`close`,()=>{l=!0}),await p(n,H({onChunkBytes:e.budget.addBytes}),t),c=await u.stat(s),!c)throw Error(`zip temp write did not produce file metadata`);l||=(await o.close().catch(()=>void 0),!0),o=null,await u.rename(s,r),s=null;let i=await q({destinationRealDir:e.destinationRealDir,relPath:e.relPath,expectedStat:c});if(typeof e.entry.unixPermissions==`number`){let t=e.entry.unixPermissions&511;t!==0&&await u.chmod(i,t).catch(()=>void 0)}}catch(t){throw s?await u.rm(s,{force:!0}).catch(()=>void 0):await G(r).catch(()=>void 0),t instanceof i?U(e.entry.name):t}finally{o&&!l&&await o.close().catch(()=>void 0)}}async function ie(e){let t=z(e.limits),n=await T(e.destDir);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let r=await u.readFile(e.archivePath),i=await g.loadAsync(r),a=Object.values(i.files),o=Math.max(0,Math.floor(e.stripComponents??0));B(a.length,t);let s=V(t);for(let t of a){let r=Y({entryPath:t.name,strip:o,destinationDir:e.destDir});r&&(await X({destinationDir:e.destDir,destinationRealDir:n,relPath:r.relPath,outPath:r.outPath,originalPath:t.name,isDirectory:t.dir}),!t.dir&&await re({entry:t,relPath:r.relPath,destinationRealDir:n,budget:s}))}}const ae=new Set([`SymbolicLink`,`Link`,`BlockDevice`,`CharacterDevice`,`FIFO`,`Socket`]);function oe(e){return{path:typeof e==`object`&&e&&`path`in e?String(e.path):``,type:typeof e==`object`&&e&&`type`in e?String(e.type):``,size:typeof e==`object`&&e&&`size`in e&&typeof e.size==`number`&&Number.isFinite(e.size)?Math.max(0,Math.floor(e.size)):0}}function Z(e){let t=Math.max(0,Math.floor(e.stripComponents??0)),n=z(e.limits),r=0,i=V(n);return a=>{b(a.path,{escapeLabel:e.escapeLabel});let o=x(a.path,t);if(o){if(b(o,{escapeLabel:e.escapeLabel}),S({rootDir:e.rootDir,relPath:o,originalPath:a.path,escapeLabel:e.escapeLabel}),ae.has(a.type))throw Error(`tar entry is a link: ${a.path}`);r+=1,B(r,n),i.addEntrySize(a.size)}}}async function se(e){let t=e.kind??F(e.archivePath);if(!t)throw Error(`unsupported archive: ${e.archivePath}`);let n=t===`zip`?`extract zip`:`extract tar`;if(t===`tar`){await L((async()=>{let t=z(e.limits);if((await u.stat(e.archivePath)).size>t.maxArchiveBytes)throw Error(M);let n=await T(e.destDir);await k({destinationRealDir:n,run:async r=>{let i=Z({rootDir:n,stripComponents:e.stripComponents,limits:t});await _.x({file:e.archivePath,cwd:r,strip:Math.max(0,Math.floor(e.stripComponents??0)),gzip:e.tarGzip,preservePaths:!1,strict:!0,onReadEntry(e){try{i(oe(e))}catch(e){let t=e instanceof Error?e:Error(String(e));this.abort?.(t)}}}),await A({sourceDir:r,destinationDir:n,destinationRealDir:n})}})})(),e.timeoutMs,n);return}await L(ie({archivePath:e.archivePath,destDir:e.destDir,stripComponents:e.stripComponents,limits:e.limits}),e.timeoutMs,n)}async function Q(e){try{return await u.stat(e),!0}catch{return!1}}async function ce(e){let t=await u.readFile(e,`utf-8`);return JSON.parse(t)}function le(e){let t=e.trim();return t&&(t.includes(`/`)?t.split(`/`).pop()??t:t)}function $(e){let t=e.trim();return t&&t.replaceAll(`/`,`__`).replaceAll(`\\`,`__`)}function ue(e){let t=e.trim(),n=t.replaceAll(/[\\/]/g,`-`).replaceAll(/[^a-zA-Z0-9._-]/g,`-`).replaceAll(/-+/g,`-`).replaceAll(/^-+/g,``).replaceAll(/-+$/g,``),r=n.length>0?n:`skill`,i=r===`.`||r===`..`?`skill`:r,a=d(`sha256`).update(t).digest(`hex`).slice(0,10);return i===t?i.length>60?`${i.slice(0,50)}-${a}`:i:`${i.length>50?i.slice(0,50):i}-${a}`}function de(e){let t=l.join(e.baseDir,$(e.id)),n=l.resolve(e.baseDir),r=l.resolve(t),i=l.relative(n,r);return!i||i===`..`||i.startsWith(`..${l.sep}`)||l.isAbsolute(i)?{ok:!1,error:e.invalidNameMessage}:{ok:!0,path:t}}async function fe(e){let n=l.resolve(e.baseDir),r=l.resolve(e.candidatePath);if(!t(n,r))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`);let i=await u.lstat(n);if(!i.isDirectory()||i.isSymbolicLink())throw Error(`Invalid ${e.boundaryLabel}: base directory must be a real directory`);let a=await u.realpath(n),o=async n=>{let r=await u.lstat(n);if(!r.isDirectory()||r.isSymbolicLink()||!t(a,await u.realpath(n)))throw Error(`Invalid path: must stay within ${e.boundaryLabel}`)};try{await o(r);return}catch(e){if(e.code!==`ENOENT`)throw e}await o(l.dirname(r))}export{le as a,Q as c,I as d,A as f,v as h,ue as i,ce as l,k as m,de as n,Z as o,T as p,$ as r,se as s,fe as t,F as u};
2
+ //# sourceMappingURL=install-safe-path-iesxijn2.js.map
@@ -1 +1,2 @@
1
1
  import{t as e,y as t}from"./utils-UGOV_184.js";import{_ as n}from"./env-overrides-DXJbFrwI.js";import{n as r,t as i}from"./scan-paths-C13EseXp.js";import{_ as a,b as o,x as s}from"./skills-DHbOKEGc.js";import{S as c}from"./windows-spawn-AB7ItGAE.js";import{a as l,c as u,l as d,n as f,r as p,u as m}from"./install-safe-path-iesxijn2.js";import{a as h,c as g,d as _,f as v,i as y,l as b,n as x,r as S,s as C,t as w,u as T}from"./npm-pack-install-B23L-AtF.js";import{t as E}from"./skill-scanner-CUUF3Fvo.js";import D from"node:path";import O from"node:fs/promises";const k={INVALID_NPM_SPEC:`invalid_npm_spec`,MISSING_OPENCLAW_EXTENSIONS:`missing_openclaw_extensions`,EMPTY_OPENCLAW_EXTENSIONS:`empty_openclaw_extensions`,NPM_PACKAGE_NOT_FOUND:`npm_package_not_found`,PLUGIN_ID_MISMATCH:`plugin_id_mismatch`},A={};function j(e){return p(e)}function M(e){return e?e===`.`||e===`..`?`invalid plugin name: reserved path segment`:e.includes(`/`)||e.includes(`\\`)?`invalid plugin name: path separators not allowed`:null:`invalid plugin name: missing`}function N(e){let t=s(e.manifest);return t.status===`missing`?{ok:!1,error:`package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example ["./dist/index.js"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions`,code:k.MISSING_OPENCLAW_EXTENSIONS}:t.status===`empty`?{ok:!1,error:`package.json openclaw.extensions is empty`,code:k.EMPTY_OPENCLAW_EXTENSIONS}:{ok:!0,entries:t.entries}}function P(e){let t=e.trim();return t.startsWith(`Package not found on npm:`)?!0:/E404|404 not found|not in this registry/i.test(t)}function F(e,t){return{ok:!0,pluginId:e,targetDir:t,manifestName:void 0,version:void 0,extensions:[D.basename(t)]}}function I(e){return{extensionsDir:e.extensionsDir,timeoutMs:e.timeoutMs,logger:e.logger,mode:e.mode,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId}}function L(e){return{extensionsDir:e.extensionsDir,logger:e.logger,mode:e.mode,dryRun:e.dryRun}}function R(n,r){let i=r?t(r):D.join(e,`extensions`),a=M(n);if(a)throw Error(a);let o=f({baseDir:i,id:n,invalidNameMessage:`invalid plugin name: path traversal detected`});if(!o.ok)throw Error(o.error);return o.path}async function z(n){let{logger:a,timeoutMs:s,mode:c,dryRun:f}=g(n,A),p=D.join(n.packageDir,`package.json`);if(!await u(p))return{ok:!1,error:`extracted package missing package.json`};let m;try{m=await d(p)}catch(e){return{ok:!1,error:`invalid package.json: ${String(e)}`}}let _=N({manifest:m});if(!_.ok)return{ok:!1,error:_.error,code:_.code};let v=_.entries,b=typeof m.name==`string`?m.name:``,x=b?l(b):`plugin`,C=o(n.packageDir),w=C.ok&&C.manifest.id?l(C.manifest.id):void 0,T=w??x,O=M(T);if(O)return{ok:!1,error:O};if(n.expectedPluginId&&n.expectedPluginId!==T)return{ok:!1,error:`plugin id mismatch: expected ${n.expectedPluginId}, got ${T}`,code:k.PLUGIN_ID_MISMATCH};w&&w!==x&&a.info?.(`Plugin manifest id "${w}" differs from npm package name "${x}"; using manifest id as the config key.`);let j=D.resolve(n.packageDir),P=[];for(let e of v){let t=D.resolve(j,e);if(!r(j,t)){a.warn?.(`extension entry escapes plugin directory and will not be scanned: ${e}`);continue}i(e)&&a.warn?.(`extension entry is in a hidden/node_modules path and will receive targeted scan coverage: ${e}`),P.push(t)}try{let e=await E(n.packageDir,{includeFiles:P});if(e.critical>0){let t=e.findings.filter(e=>e.severity===`critical`).map(e=>`${e.message} (${e.file}:${e.line})`).join(`; `);a.warn?.(`WARNING: Plugin "${T}" contains dangerous code patterns: ${t}`)}else e.warn>0&&a.warn?.(`Plugin "${T}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){a.warn?.(`Plugin "${T}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}let F=await y({baseDir:n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`),id:T,invalidNameMessage:`invalid plugin name: path traversal detected`,boundaryLabel:`extensions directory`});if(!F.ok)return{ok:!1,error:F.error};let I=F.targetDir,L=await S({mode:c,targetDir:I,alreadyExistsError:`plugin already exists: ${I} (delete it first)`});if(!L.ok)return L;if(f)return{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v};let R=m.dependencies??{},z=Object.keys(R).length>0,B=await h({sourceDir:n.packageDir,targetDir:I,mode:c,timeoutMs:s,logger:a,copyErrorPrefix:`failed to copy plugin`,hasDeps:z,depsLogMessage:`Installing plugin dependencies…`,afterCopy:async e=>{for(let t of v){let n=D.resolve(e,t);if(!r(e,n)){a.warn?.(`extension entry escapes plugin directory: ${t}`);continue}await u(n)||a.warn?.(`extension entry not found: ${t}`)}}});return B.ok?{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v}:B}async function B(e){let t=e.logger??A,n=e.timeoutMs??12e4,r=e.mode??`install`,i=await v(e.archivePath);if(!i.ok)return i;let a=i.path;return await T({archivePath:a,tempDirPrefix:`openclaw-plugin-`,timeoutMs:n,logger:t,onExtracted:async i=>await z({packageDir:i,...I({extensionsDir:e.extensionsDir,timeoutMs:n,logger:t,mode:r,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId})})})}async function V(e){let n=t(e.dirPath);return await u(n)?(await O.stat(n)).isDirectory()?await z({packageDir:n,...I(e)}):{ok:!1,error:`not a directory: ${n}`}:{ok:!1,error:`directory not found: ${n}`}}async function H(n){let{logger:r,mode:i,dryRun:a}=C(n,A),o=t(n.filePath);if(!await u(o))return{ok:!1,error:`file not found: ${o}`};let s=n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`);await O.mkdir(s,{recursive:!0});let l=D.basename(o,D.extname(o))||`plugin`,d=M(l);if(d)return{ok:!1,error:d};let f=D.join(s,`${j(l)}${D.extname(o)}`),p=await S({mode:i,targetDir:f,alreadyExistsError:`plugin already exists: ${f} (delete it first)`});if(!p.ok)return p;if(a)return F(l,f);r.info?.(`Installing to ${f}…`);try{await c({rootDir:s,relativePath:D.basename(f),sourcePath:o})}catch(e){return{ok:!1,error:String(e)}}return F(l,f)}async function U(e){let{logger:t,timeoutMs:r,mode:i,dryRun:a}=g(e,A),o=e.expectedPluginId,s=e.spec.trim(),c=n(s);if(c)return{ok:!1,error:c,code:k.INVALID_NPM_SPEC};t.info?.(`Downloading ${s}…`);let l=w(await x({tempDirPrefix:`openclaw-npm-pack-`,spec:s,timeoutMs:r,expectedIntegrity:e.expectedIntegrity,onIntegrityDrift:e.onIntegrityDrift,warn:e=>{t.warn?.(e)},installFromArchive:B,archiveInstallParams:{extensionsDir:e.extensionsDir,timeoutMs:r,logger:t,mode:i,dryRun:a,expectedPluginId:o}}));return!l.ok&&P(l.error)?{ok:!1,error:l.error,code:k.NPM_PACKAGE_NOT_FOUND}:l}async function W(e){let t=await b(e.path);if(!t.ok)return t;let{resolvedPath:n,stat:r}=t,i=I(e);return r.isDirectory()?await V({dirPath:n,...i}):m(n)?await B({archivePath:n,...i}):await H({filePath:n,...L(e)})}function G(e){let t=e.lookup.value.trim();if(t){if(e.lookup.kind===`pluginId`)return e.bundled.get(t);for(let n of e.bundled.values())if(n.npmSpec===t)return n}}function K(e){let t=a({workspaceDir:e.workspaceDir}),n=new Map;for(let e of t.candidates){if(e.origin!==`bundled`)continue;let t=o(e.rootDir,!1);if(!t.ok)continue;let r=t.manifest.id;if(n.has(r))continue;let i=e.packageManifest?.install?.npmSpec?.trim()||e.packageName?.trim()||void 0;n.set(r,{pluginId:r,localPath:e.rootDir,npmSpec:i})}return n}function q(e){return G({bundled:K({workspaceDir:e.workspaceDir}),lookup:e.lookup})}function J(e){return _(e)}function Y(e,t){let{pluginId:n,...r}=t,i={...e.plugins?.installs,[n]:{...e.plugins?.installs?.[n],...r,installedAt:r.installedAt??new Date().toISOString()}};return{...e,plugins:{...e.plugins,installs:{...i,[n]:i[n]}}}}export{K as a,W as c,G as i,R as l,Y as n,k as o,q as r,U as s,J as t};
2
+ //# sourceMappingURL=installs-BNeI_oML.js.map
@@ -1 +1,2 @@
1
1
  import{t as e,v as t}from"./utils-CGdo13HV.js";import{_ as n}from"./env-overrides-DHtB4kK3.js";import{n as r,t as i}from"./scan-paths-CWtvWW40.js";import{_ as a,b as o,x as s}from"./skills-CKTicUKS.js";import{S as c}from"./windows-spawn-7oINn5ao.js";import{a as l,c as u,l as d,n as f,r as p,u as m}from"./install-safe-path-C6kc_8NW.js";import{a as h,c as g,d as _,f as v,i as y,l as b,n as x,r as S,s as C,t as w,u as T}from"./npm-pack-install-C0te3Oap.js";import{t as E}from"./skill-scanner-CkxXNioD.js";import D from"node:path";import O from"node:fs/promises";const k={INVALID_NPM_SPEC:`invalid_npm_spec`,MISSING_OPENCLAW_EXTENSIONS:`missing_openclaw_extensions`,EMPTY_OPENCLAW_EXTENSIONS:`empty_openclaw_extensions`,NPM_PACKAGE_NOT_FOUND:`npm_package_not_found`,PLUGIN_ID_MISMATCH:`plugin_id_mismatch`},A={};function j(e){return p(e)}function M(e){return e?e===`.`||e===`..`?`invalid plugin name: reserved path segment`:e.includes(`/`)||e.includes(`\\`)?`invalid plugin name: path separators not allowed`:null:`invalid plugin name: missing`}function N(e){let t=s(e.manifest);return t.status===`missing`?{ok:!1,error:`package.json missing openclaw.extensions; update the plugin package to include openclaw.extensions (for example ["./dist/index.js"]). See https://docs.openclaw.ai/help/troubleshooting#plugin-install-fails-with-missing-openclaw-extensions`,code:k.MISSING_OPENCLAW_EXTENSIONS}:t.status===`empty`?{ok:!1,error:`package.json openclaw.extensions is empty`,code:k.EMPTY_OPENCLAW_EXTENSIONS}:{ok:!0,entries:t.entries}}function P(e){let t=e.trim();return t.startsWith(`Package not found on npm:`)?!0:/E404|404 not found|not in this registry/i.test(t)}function F(e,t){return{ok:!0,pluginId:e,targetDir:t,manifestName:void 0,version:void 0,extensions:[D.basename(t)]}}function I(e){return{extensionsDir:e.extensionsDir,timeoutMs:e.timeoutMs,logger:e.logger,mode:e.mode,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId}}function L(e){return{extensionsDir:e.extensionsDir,logger:e.logger,mode:e.mode,dryRun:e.dryRun}}function R(n,r){let i=r?t(r):D.join(e,`extensions`),a=M(n);if(a)throw Error(a);let o=f({baseDir:i,id:n,invalidNameMessage:`invalid plugin name: path traversal detected`});if(!o.ok)throw Error(o.error);return o.path}async function z(n){let{logger:a,timeoutMs:s,mode:c,dryRun:f}=g(n,A),p=D.join(n.packageDir,`package.json`);if(!await u(p))return{ok:!1,error:`extracted package missing package.json`};let m;try{m=await d(p)}catch(e){return{ok:!1,error:`invalid package.json: ${String(e)}`}}let _=N({manifest:m});if(!_.ok)return{ok:!1,error:_.error,code:_.code};let v=_.entries,b=typeof m.name==`string`?m.name:``,x=b?l(b):`plugin`,C=o(n.packageDir),w=C.ok&&C.manifest.id?l(C.manifest.id):void 0,T=w??x,O=M(T);if(O)return{ok:!1,error:O};if(n.expectedPluginId&&n.expectedPluginId!==T)return{ok:!1,error:`plugin id mismatch: expected ${n.expectedPluginId}, got ${T}`,code:k.PLUGIN_ID_MISMATCH};w&&w!==x&&a.info?.(`Plugin manifest id "${w}" differs from npm package name "${x}"; using manifest id as the config key.`);let j=D.resolve(n.packageDir),P=[];for(let e of v){let t=D.resolve(j,e);if(!r(j,t)){a.warn?.(`extension entry escapes plugin directory and will not be scanned: ${e}`);continue}i(e)&&a.warn?.(`extension entry is in a hidden/node_modules path and will receive targeted scan coverage: ${e}`),P.push(t)}try{let e=await E(n.packageDir,{includeFiles:P});if(e.critical>0){let t=e.findings.filter(e=>e.severity===`critical`).map(e=>`${e.message} (${e.file}:${e.line})`).join(`; `);a.warn?.(`WARNING: Plugin "${T}" contains dangerous code patterns: ${t}`)}else e.warn>0&&a.warn?.(`Plugin "${T}" has ${e.warn} suspicious code pattern(s). Run "openclaw security audit --deep" for details.`)}catch(e){a.warn?.(`Plugin "${T}" code safety scan failed (${String(e)}). Installation continues; run "openclaw security audit --deep" after install.`)}let F=await y({baseDir:n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`),id:T,invalidNameMessage:`invalid plugin name: path traversal detected`,boundaryLabel:`extensions directory`});if(!F.ok)return{ok:!1,error:F.error};let I=F.targetDir,L=await S({mode:c,targetDir:I,alreadyExistsError:`plugin already exists: ${I} (delete it first)`});if(!L.ok)return L;if(f)return{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v};let R=m.dependencies??{},z=Object.keys(R).length>0,B=await h({sourceDir:n.packageDir,targetDir:I,mode:c,timeoutMs:s,logger:a,copyErrorPrefix:`failed to copy plugin`,hasDeps:z,depsLogMessage:`Installing plugin dependencies…`,afterCopy:async e=>{for(let t of v){let n=D.resolve(e,t);if(!r(e,n)){a.warn?.(`extension entry escapes plugin directory: ${t}`);continue}await u(n)||a.warn?.(`extension entry not found: ${t}`)}}});return B.ok?{ok:!0,pluginId:T,targetDir:I,manifestName:b||void 0,version:typeof m.version==`string`?m.version:void 0,extensions:v}:B}async function B(e){let t=e.logger??A,n=e.timeoutMs??12e4,r=e.mode??`install`,i=await v(e.archivePath);if(!i.ok)return i;let a=i.path;return await T({archivePath:a,tempDirPrefix:`openclaw-plugin-`,timeoutMs:n,logger:t,onExtracted:async i=>await z({packageDir:i,...I({extensionsDir:e.extensionsDir,timeoutMs:n,logger:t,mode:r,dryRun:e.dryRun,expectedPluginId:e.expectedPluginId})})})}async function V(e){let n=t(e.dirPath);return await u(n)?(await O.stat(n)).isDirectory()?await z({packageDir:n,...I(e)}):{ok:!1,error:`not a directory: ${n}`}:{ok:!1,error:`directory not found: ${n}`}}async function H(n){let{logger:r,mode:i,dryRun:a}=C(n,A),o=t(n.filePath);if(!await u(o))return{ok:!1,error:`file not found: ${o}`};let s=n.extensionsDir?t(n.extensionsDir):D.join(e,`extensions`);await O.mkdir(s,{recursive:!0});let l=D.basename(o,D.extname(o))||`plugin`,d=M(l);if(d)return{ok:!1,error:d};let f=D.join(s,`${j(l)}${D.extname(o)}`),p=await S({mode:i,targetDir:f,alreadyExistsError:`plugin already exists: ${f} (delete it first)`});if(!p.ok)return p;if(a)return F(l,f);r.info?.(`Installing to ${f}…`);try{await c({rootDir:s,relativePath:D.basename(f),sourcePath:o})}catch(e){return{ok:!1,error:String(e)}}return F(l,f)}async function U(e){let{logger:t,timeoutMs:r,mode:i,dryRun:a}=g(e,A),o=e.expectedPluginId,s=e.spec.trim(),c=n(s);if(c)return{ok:!1,error:c,code:k.INVALID_NPM_SPEC};t.info?.(`Downloading ${s}…`);let l=w(await x({tempDirPrefix:`openclaw-npm-pack-`,spec:s,timeoutMs:r,expectedIntegrity:e.expectedIntegrity,onIntegrityDrift:e.onIntegrityDrift,warn:e=>{t.warn?.(e)},installFromArchive:B,archiveInstallParams:{extensionsDir:e.extensionsDir,timeoutMs:r,logger:t,mode:i,dryRun:a,expectedPluginId:o}}));return!l.ok&&P(l.error)?{ok:!1,error:l.error,code:k.NPM_PACKAGE_NOT_FOUND}:l}async function W(e){let t=await b(e.path);if(!t.ok)return t;let{resolvedPath:n,stat:r}=t,i=I(e);return r.isDirectory()?await V({dirPath:n,...i}):m(n)?await B({archivePath:n,...i}):await H({filePath:n,...L(e)})}function G(e){let t=e.lookup.value.trim();if(t){if(e.lookup.kind===`pluginId`)return e.bundled.get(t);for(let n of e.bundled.values())if(n.npmSpec===t)return n}}function K(e){let t=a({workspaceDir:e.workspaceDir}),n=new Map;for(let e of t.candidates){if(e.origin!==`bundled`)continue;let t=o(e.rootDir,!1);if(!t.ok)continue;let r=t.manifest.id;if(n.has(r))continue;let i=e.packageManifest?.install?.npmSpec?.trim()||e.packageName?.trim()||void 0;n.set(r,{pluginId:r,localPath:e.rootDir,npmSpec:i})}return n}function q(e){return G({bundled:K({workspaceDir:e.workspaceDir}),lookup:e.lookup})}function J(e){return _(e)}function Y(e,t){let{pluginId:n,...r}=t,i={...e.plugins?.installs,[n]:{...e.plugins?.installs?.[n],...r,installedAt:r.installedAt??new Date().toISOString()}};return{...e,plugins:{...e.plugins,installs:{...i,[n]:i[n]}}}}export{K as a,W as c,G as i,R as l,Y as n,k as o,q as r,U as s,J as t};
2
+ //# sourceMappingURL=installs-C1xQLuby.js.map
@@ -1 +1,2 @@
1
1
  import{Cc as e,Po as t,Tc as n,xc as r}from"./model-selection-BlC_rXAN.js";const i=[{value:`off`,label:`Off`,hint:`No Tailscale exposure`},{value:`serve`,label:`Serve`,hint:`Private HTTPS for your tailnet (devices on Tailscale)`},{value:`funnel`,label:`Funnel`,hint:`Public HTTPS via Tailscale Funnel (internet)`}],a=[`Tailscale binary not found in PATH or /Applications.`,`Ensure Tailscale is installed from:`,` https://tailscale.com/download/mac`,``,`You can continue setup, but serve/funnel will fail at runtime.`],o=[`Docs:`,`https://docs.openclaw.ai/gateway/tailscale`,`https://docs.openclaw.ai/web`];function s(t){let r=t.trim().replace(/\.$/,``);if(!r)return null;let i=n(r);return i&&e(i)?`[${i.toString().toLowerCase()}]`:r}function c(e){let t=s(e);if(!t)return null;try{return new URL(`https://${t}`).origin}catch{return null}}function l(e,t){let n=e??[],r=t.toLowerCase();return n.some(e=>e.toLowerCase()===r)?n:[...n,t]}async function u(e){if(e.tailscaleMode!==`serve`&&e.tailscaleMode!==`funnel`)return e.config;let n=await t(void 0,e.tailscaleBin??void 0).then(e=>c(e)).catch(()=>null);if(!n)return e.config;let r=l(e.config.gateway?.controlUi?.allowedOrigins??[],n);return{...e.config,gateway:{...e.config.gateway,controlUi:{...e.config.gateway?.controlUi,allowedOrigins:r}}}}function d(e){if(!e)return`IP address is required for custom bind mode`;if(!r(e))return`Invalid IPv4 address (e.g., 192.168.1.100)`}function f(e){return d(e)}export{u as a,a as i,o as n,i as r,f as t};
2
+ //# sourceMappingURL=ipv4-BOuNtoGn.js.map
@@ -1 +1,2 @@
1
1
  import{cs as e,is as t,os as n,ya as r}from"./auth-profiles-T8DuH3ax.js";const i=[{value:`off`,label:`Off`,hint:`No Tailscale exposure`},{value:`serve`,label:`Serve`,hint:`Private HTTPS for your tailnet (devices on Tailscale)`},{value:`funnel`,label:`Funnel`,hint:`Public HTTPS via Tailscale Funnel (internet)`}],a=[`Tailscale binary not found in PATH or /Applications.`,`Ensure Tailscale is installed from:`,` https://tailscale.com/download/mac`,``,`You can continue setup, but serve/funnel will fail at runtime.`],o=[`Docs:`,`https://docs.openclaw.ai/gateway/tailscale`,`https://docs.openclaw.ai/web`];function s(t){let r=t.trim().replace(/\.$/,``);if(!r)return null;let i=e(r);return i&&n(i)?`[${i.toString().toLowerCase()}]`:r}function c(e){let t=s(e);if(!t)return null;try{return new URL(`https://${t}`).origin}catch{return null}}function l(e,t){let n=e??[],r=t.toLowerCase();return n.some(e=>e.toLowerCase()===r)?n:[...n,t]}async function u(e){if(e.tailscaleMode!==`serve`&&e.tailscaleMode!==`funnel`)return e.config;let t=await r(void 0,e.tailscaleBin??void 0).then(e=>c(e)).catch(()=>null);if(!t)return e.config;let n=l(e.config.gateway?.controlUi?.allowedOrigins??[],t);return{...e.config,gateway:{...e.config.gateway,controlUi:{...e.config.gateway?.controlUi,allowedOrigins:n}}}}function d(e){if(!e)return`IP address is required for custom bind mode`;if(!t(e))return`Invalid IPv4 address (e.g., 192.168.1.100)`}function f(e){return d(e)}export{u as a,a as i,o as n,i as r,f as t};
2
+ //# sourceMappingURL=ipv4-CWdaEiVH.js.map
@@ -29,3 +29,4 @@ import{D as e,It as t,d as n,g as r,u as i,x as a,y as o}from"./paths-piJASC5k.j
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(t)),t.table=null;break;case`thead_open`:t.table&&(t.table.inHeader=!0);break;case`thead_close`:t.table&&(t.table.inHeader=!1);break;case`tbody_open`:case`tbody_close`:break;case`tr_open`:t.table&&(t.table.currentRow=[]);break;case`tr_close`:t.table&&(t.table.inHeader?t.table.headers=t.table.currentRow:t.table.rows.push(t.table.currentRow),t.table.currentRow=[]);break;case`th_open`:case`td_open`:t.table&&(t.table.currentCell=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(e){for(let t=e.openStyles.length-1;t>=0;--t){let n=e.openStyles[t],r=e.text.length;r>n.start&&e.styles.push({start:n.start,end:r,style:n.style})}e.openStyles=[]}function Le(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,style:r.style})}return n}function Re(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,href:r.href})}return n}function Z(e){let t=[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?e.style.localeCompare(t.style):e.end-t.end:e.start-t.start),n=[];for(let e of t){let t=n[n.length-1];if(t&&t.style===e.style&&(e.start<t.end||e.start===t.end&&e.style!==`blockquote`)){t.end=Math.max(t.end,e.end);continue}n.push({...e})}return n}function Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(r);let i=t.tableMode??`off`,a={text:``,styles:[],openStyles:[],links:[],linkStack:[],env:n,headingStyle:t.headingStyle??`none`,blockquotePrefix:t.blockquotePrefix??``,enableSpoilers:t.enableSpoilers??!1,tableMode:i,table:null,hasTables:!1};Y(r,a),X(a);let o=a.text.trimEnd().length,s=0;for(let e of a.styles)e.style===`code_block`&&e.end>s&&(s=e.end);let c=Math.max(o,s);return{ir:{text:c===a.text.length?a.text:a.text.slice(0,c),styles:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{S as _,xe as a,oe as c,ce as d,D as f,x as g,ie as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,b as v};
32
+ //# sourceMappingURL=ir-BF0M2kGp.js.map
@@ -29,3 +29,4 @@ import{S as e,T as t}from"./subsystem-BLbY429l.js";import{Dr as n,Er as r,Or as
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(t)),t.table=null;break;case`thead_open`:t.table&&(t.table.inHeader=!0);break;case`thead_close`:t.table&&(t.table.inHeader=!1);break;case`tbody_open`:case`tbody_close`:break;case`tr_open`:t.table&&(t.table.currentRow=[]);break;case`tr_close`:t.table&&(t.table.inHeader?t.table.headers=t.table.currentRow:t.table.rows.push(t.table.currentRow),t.table.currentRow=[]);break;case`th_open`:case`td_open`:t.table&&(t.table.currentCell=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(e){for(let t=e.openStyles.length-1;t>=0;--t){let n=e.openStyles[t],r=e.text.length;r>n.start&&e.styles.push({start:n.start,end:r,style:n.style})}e.openStyles=[]}function Le(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,style:r.style})}return n}function Re(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,href:r.href})}return n}function Z(e){let t=[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?e.style.localeCompare(t.style):e.end-t.end:e.start-t.start),n=[];for(let e of t){let t=n[n.length-1];if(t&&t.style===e.style&&(e.start<t.end||e.start===t.end&&e.style!==`blockquote`)){t.end=Math.max(t.end,e.end);continue}n.push({...e})}return n}function Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(r);let i=t.tableMode??`off`,a={text:``,styles:[],openStyles:[],links:[],linkStack:[],env:n,headingStyle:t.headingStyle??`none`,blockquotePrefix:t.blockquotePrefix??``,enableSpoilers:t.enableSpoilers??!1,tableMode:i,table:null,hasTables:!1};Y(r,a),X(a);let o=a.text.trimEnd().length,s=0;for(let e of a.styles)e.style===`code_block`&&e.end>s&&(s=e.end);let c=Math.max(o,s);return{ir:{text:c===a.text.length?a.text:a.text.slice(0,c),styles:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{C as _,xe as a,oe as c,ce as d,D as f,S as g,re as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,x as v};
32
+ //# sourceMappingURL=ir-D8Hh84ab.js.map
@@ -29,3 +29,4 @@ import{D as e,d as t,g as n,u as r,x as i,y as a}from"./paths-CrCoPIVK.js";impor
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(t)),t.table=null;break;case`thead_open`:t.table&&(t.table.inHeader=!0);break;case`thead_close`:t.table&&(t.table.inHeader=!1);break;case`tbody_open`:case`tbody_close`:break;case`tr_open`:t.table&&(t.table.currentRow=[]);break;case`tr_close`:t.table&&(t.table.inHeader?t.table.headers=t.table.currentRow:t.table.rows.push(t.table.currentRow),t.table.currentRow=[]);break;case`th_open`:case`td_open`:t.table&&(t.table.currentCell=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(e){for(let t=e.openStyles.length-1;t>=0;--t){let n=e.openStyles[t],r=e.text.length;r>n.start&&e.styles.push({start:n.start,end:r,style:n.style})}e.openStyles=[]}function Le(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,style:r.style})}return n}function Re(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,href:r.href})}return n}function Z(e){let t=[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?e.style.localeCompare(t.style):e.end-t.end:e.start-t.start),n=[];for(let e of t){let t=n[n.length-1];if(t&&t.style===e.style&&(e.start<t.end||e.start===t.end&&e.style!==`blockquote`)){t.end=Math.max(t.end,e.end);continue}n.push({...e})}return n}function Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(r);let i=t.tableMode??`off`,a={text:``,styles:[],openStyles:[],links:[],linkStack:[],env:n,headingStyle:t.headingStyle??`none`,blockquotePrefix:t.blockquotePrefix??``,enableSpoilers:t.enableSpoilers??!1,tableMode:i,table:null,hasTables:!1};Y(r,a),X(a);let o=a.text.trimEnd().length,s=0;for(let e of a.styles)e.style===`code_block`&&e.end>s&&(s=e.end);let c=Math.max(o,s);return{ir:{text:c===a.text.length?a.text:a.text.slice(0,c),styles:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{S as _,xe as a,oe as c,ce as d,D as f,x as g,ie as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,b as v};
32
+ //# sourceMappingURL=ir-DBWscfBd.js.map
@@ -29,3 +29,4 @@ import{S as e,T as t}from"./subsystem-C5XF2Fy5.js";import{y as n}from"./utils-UG
29
29
  `);break;case`code_block`:case`fence`:Ae(t,n.content??``);break;case`html_block`:case`html_inline`:H(t,n.content??``);break;case`table_open`:t.tableMode!==`off`&&(t.table=Me(),t.hasTables=!0);break;case`table_close`:t.table&&(t.tableMode===`bullets`?Fe(t):t.tableMode===`code`&&Ie(t)),t.table=null;break;case`thead_open`:t.table&&(t.table.inHeader=!0);break;case`thead_close`:t.table&&(t.table.inHeader=!1);break;case`tbody_open`:case`tbody_close`:break;case`tr_open`:t.table&&(t.table.currentRow=[]);break;case`tr_close`:t.table&&(t.table.inHeader?t.table.headers=t.table.currentRow:t.table.rows.push(t.table.currentRow),t.table.currentRow=[]);break;case`th_open`:case`td_open`:t.table&&(t.table.currentCell=De());break;case`th_close`:case`td_close`:t.table?.currentCell&&(t.table.currentRow.push(Ne(t.table.currentCell)),t.table.currentCell=null);break;case`hr`:t.text+=`───
30
30
 
31
31
  `;break;default:n.children&&Y(n.children,t);break}}function X(e){for(let t=e.openStyles.length-1;t>=0;--t){let n=e.openStyles[t],r=e.text.length;r>n.start&&e.styles.push({start:n.start,end:r,style:n.style})}e.openStyles=[]}function Le(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,style:r.style})}return n}function Re(e,t){let n=[];for(let r of e){let e=Math.max(0,Math.min(r.start,t)),i=Math.max(e,Math.min(r.end,t));i>e&&n.push({start:e,end:i,href:r.href})}return n}function Z(e){let t=[...e].toSorted((e,t)=>e.start===t.start?e.end===t.end?e.style.localeCompare(t.style):e.end-t.end:e.start-t.start),n=[];for(let e of t){let t=n[n.length-1];if(t&&t.style===e.style&&(e.start<t.end||e.start===t.end&&e.style!==`blockquote`)){t.end=Math.max(t.end,e.end);continue}n.push({...e})}return n}function Q(e,t,n){let r=Math.max(e.start,t),i=Math.min(e.end,n);return i<=r?null:{start:r,end:i}}function ze(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,style:i.style})}return Z(r)}function Be(e,t,n){if(e.length===0)return[];let r=[];for(let i of e){let e=Q(i,t,n);e&&r.push({start:e.start-t,end:e.end-t,href:i.href})}return r}function Ve(e,t={}){return $(e,t).ir}function $(e,t={}){let n={listStack:[]},r=we(t).parse(e??``,n);t.enableSpoilers&&Te(r);let i=t.tableMode??`off`,a={text:``,styles:[],openStyles:[],links:[],linkStack:[],env:n,headingStyle:t.headingStyle??`none`,blockquotePrefix:t.blockquotePrefix??``,enableSpoilers:t.enableSpoilers??!1,tableMode:i,table:null,hasTables:!1};Y(r,a),X(a);let o=a.text.trimEnd().length,s=0;for(let e of a.styles)e.style===`code_block`&&e.end>s&&(s=e.end);let c=Math.max(o,s);return{ir:{text:c===a.text.length?a.text:a.text.slice(0,c),styles:Z(Le(a.styles,c)),links:Re(a.links,c)},hasTables:a.hasTables}}function He(e,t){if(!e.text)return[];if(t<=0||e.text.length<=t)return[e];let n=D(e.text,t),r=[],i=0;return n.forEach((t,n)=>{if(!t)return;if(n>0)for(;i<e.text.length&&/\s/.test(e.text[i]??``);)i+=1;let a=i,o=Math.min(e.text.length,a+t.length);r.push({text:t,styles:ze(e.styles,a,o),links:Be(e.links,a,o)}),i=o}),r}export{C as _,xe as a,oe as c,ce as d,D as f,S as g,re as h,N as i,T as l,ae as m,Ve as n,Se as o,se as p,$ as r,me as s,He as t,O as u,x as v};
32
+ //# sourceMappingURL=ir-Dk7OQ4bA.js.map
@@ -1 +1,2 @@
1
1
  import e from"node:fs";import t from"node:path";function n(n,r){if(!n)return;let i=t.resolve(r,n);try{return e.realpathSync.native(i)}catch{return i}}function r({currentFile:e,argv:r=process.argv,env:i=process.env,cwd:a=process.cwd(),wrapperEntryPairs:o=[]}){let s=n(e,a),c=n(r[1],a);if(s&&c&&s===c)return!0;let l=n(i.pm_exec_path,a);if(s&&l&&s===l)return!0;if(s&&c&&o.length>0){let e=t.basename(s),n=t.basename(c);if(o.some(({wrapperBasename:t,entryBasename:r})=>e===r&&n===t))return!0}return!!(s&&c&&t.basename(s)===t.basename(c))}export{r as t};
2
+ //# sourceMappingURL=is-main-DG5ueqhF.js.map
@@ -1 +1,2 @@
1
1
  import{Pl as e}from"./model-selection-BlC_rXAN.js";function t(e){return typeof e==`string`&&e.trim()||`<root>`}function n(e){let n=Array.isArray(e.allowedValues)&&e.allowedValues.length>0;return{path:t(e.path),message:e.message,...n?{allowedValues:e.allowedValues}:{},...n&&typeof e.allowedValuesHiddenCount==`number`&&e.allowedValuesHiddenCount>0?{allowedValuesHiddenCount:e.allowedValuesHiddenCount}:{}}}function r(e){return e.map(e=>n(e))}function i(e,n){return n?.normalizeRoot?t(e):typeof e==`string`?e:``}function a(t,n=`-`,r){return`${n?`${n} `:``}${e(i(t.path,r))}: ${e(t.message)}`}function o(e,t=`-`,n){return e.map(e=>a(e,t,n))}export{o as n,r,a as t};
2
+ //# sourceMappingURL=issue-format-BT7cQEt3.js.map
@@ -1 +1,2 @@
1
1
  import{mc as e}from"./auth-profiles-T8DuH3ax.js";function t(e){return typeof e==`string`&&e.trim()||`<root>`}function n(e){let n=Array.isArray(e.allowedValues)&&e.allowedValues.length>0;return{path:t(e.path),message:e.message,...n?{allowedValues:e.allowedValues}:{},...n&&typeof e.allowedValuesHiddenCount==`number`&&e.allowedValuesHiddenCount>0?{allowedValuesHiddenCount:e.allowedValuesHiddenCount}:{}}}function r(e){return e.map(e=>n(e))}function i(e,n){return n?.normalizeRoot?t(e):typeof e==`string`?e:``}function a(t,n=`-`,r){return`${n?`${n} `:``}${e(i(t.path,r))}: ${e(t.message)}`}function o(e,t=`-`,n){return e.map(e=>a(e,t,n))}export{o as n,r,a as t};
2
+ //# sourceMappingURL=issue-format-C_lNzrKa.js.map
@@ -1,2 +1,3 @@
1
1
  import{H as e,t}from"./subsystem-BLbY429l.js";import{u as n}from"./paths-BjD3T_xq.js";import{Jr as r}from"./auth-profiles-T8DuH3ax.js";import{m as i,p as a,u as o}from"./arg-split-BOqSMBuf.js";import{n as s}from"./cmd-argv-Bh-KpaZ0.js";import{spawn as c,spawnSync as l}from"node:child_process";import u from"node:os";import d from"node:path";import f from"node:fs";import{randomUUID as p}from"node:crypto";const m=2e3,h=t(`restart`);function g(){return Date.now()}function _(e){let t=Math.max(0,Math.floor(e));if(!(t<=0))try{let e=new Int32Array(new SharedArrayBuffer(4));Atomics.wait(e,0,0,t)}catch{let e=Date.now();for(;Date.now()-e<t;);}}function v(e){let t=[],n,r;for(let i of e.split(/\r?\n/).filter(Boolean))if(i.startsWith(`p`)){n!=null&&r&&r.toLowerCase().includes(`openclaw`)&&t.push(n);let e=Number.parseInt(i.slice(1),10);n=Number.isFinite(e)&&e>0?e:void 0,r=void 0}else i.startsWith(`c`)&&(r=i.slice(1));return n!=null&&r&&r.toLowerCase().includes(`openclaw`)&&t.push(n),[...new Set(t)].filter(e=>e!==process.pid)}function y(e,t=2e3){if(process.platform===`win32`)return[];let n=l(r(),[`-nP`,`-iTCP:${e}`,`-sTCP:LISTEN`,`-Fpc`],{encoding:`utf8`,timeout:t});if(n.error){let t=n.error.code,r=t&&t.trim().length>0?t:n.error instanceof Error?n.error.message:`unknown error`;return h.warn(`lsof failed during initial stale-pid scan for port ${e}: ${r}`),[]}return n.status===1?[]:n.status===0?v(n.stdout):(h.warn(`lsof exited with status ${n.status} during initial stale-pid scan for port ${e}; skipping stale pid check`),[])}function b(e){try{let t=l(r(),[`-nP`,`-iTCP:${e}`,`-sTCP:LISTEN`,`-Fpc`],{encoding:`utf8`,timeout:400});if(t.error){let e=t.error.code;return{free:null,permanent:e===`ENOENT`||e===`EACCES`||e===`EPERM`}}return t.status===1?t.stdout?v(t.stdout).length===0?{free:!0}:{free:!1}:{free:!0}:t.status===0?v(t.stdout).length===0?{free:!0}:{free:!1}:{free:null,permanent:!1}}catch{return{free:null,permanent:!1}}}function x(e){let t=[];for(let n of e)try{process.kill(n,`SIGTERM`),t.push(n)}catch{}if(t.length===0)return t;_(600);for(let e of t)try{process.kill(e,0),process.kill(e,`SIGKILL`)}catch{}return _(400),t}function ee(e){let t=g()+m;for(;g()<t;){let t=b(e);if(t.free===!0||t.free===null&&t.permanent)return;_(50)}h.warn(`port ${e} still in use after ${m}ms; proceeding anyway`)}function S(e){try{let t=typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):n(void 0,process.env),r=y(t);if(r.length===0)return[];h.warn(`killing ${r.length} stale gateway process(es) before restart: ${r.join(`, `)}`);let i=x(r);return ee(t),i}catch{return[]}}function C(e){return e.OPENCLAW_WINDOWS_TASK_NAME?.trim()||i(e.OPENCLAW_PROFILE)}function w(e){return[`@echo off`,`setlocal`,`set /a attempts=0`,`:retry`,`timeout /t 1 /nobreak >nul`,`set /a attempts+=1`,`schtasks /Run /TN ${s(e)} >nul 2>&1`,`if not errorlevel 1 goto cleanup`,`if %attempts% GEQ 12 goto cleanup`,`goto retry`,`:cleanup`,`del "%~f0" >nul 2>&1`].join(`\r
2
2
  `)}function T(t=process.env){let n=C(t),r=d.join(e(),`openclaw-schtasks-restart-${p()}.cmd`),i=s(r);try{return f.writeFileSync(r,`${w(n)}\r\n`,`utf8`),c(`cmd.exe`,[`/d`,`/s`,`/c`,i],{detached:!0,stdio:`ignore`,windowsHide:!0}).unref(),{ok:!0,method:`schtasks`,tried:[`schtasks /Run /TN "${n}"`,`cmd.exe /d /s /c ${i}`]}}catch(e){try{f.unlinkSync(r)}catch{}return{ok:!1,method:`schtasks`,detail:e instanceof Error?e.message:String(e),tried:[`schtasks /Run /TN "${n}"`]}}}const E=2e3,D=t(`restart`);let O=0,k=0,A=!1,j=null,M=0,N=0,P=0,F=0,I=null,L=0,R;function z(){return N>P}function B(){I&&clearTimeout(I),I=null,L=0,R=void 0}function V(e,t=6){return!Array.isArray(e)||e.length===0?null:e.length<=t?e.join(`,`):`${e.slice(0,t).join(`,`)},+${e.length-t} more`}function H(e){let t=typeof e?.actor==`string`&&e.actor.trim()?e.actor.trim():null,n=typeof e?.deviceId==`string`&&e.deviceId.trim()?e.deviceId.trim():null,r=typeof e?.clientIp==`string`&&e.clientIp.trim()?e.clientIp.trim():null,i=V(e?.changedPaths),a=[];return t&&a.push(`actor=${t}`),n&&a.push(`device=${n}`),r&&a.push(`ip=${r}`),i&&a.push(`changedPaths=${i}`),a.length>0?a.join(` `):`actor=<unknown>`}function U(e){j=e}function W(){if(z())return B(),!1;B(),N=++M,J();try{process.listenerCount(`SIGUSR1`)>0?process.emit(`SIGUSR1`):process.kill(process.pid,`SIGUSR1`)}catch{return N=P,!1}return F=Date.now(),!0}function G(e=Date.now()){O<=0||e<=k||(O=0,k=0)}function K(e){A=e?.allowExternal===!0}function q(){return A}function J(e=0){let t=Math.max(0,Math.floor(e)),n=Date.now()+t+5e3;O+=1,n>k&&(k=n)}function Y(){return G(),O<=0?!1:(--O,O<=0&&(k=0),!0)}function te(){z()&&(P=N)}function X(e){let t=e.pollMs??500,n=Math.max(10,Math.floor(t)),r=e.maxWaitMs??9e4,i=Math.max(n,Math.floor(r)),a;try{a=e.getPendingCount()}catch(t){e.hooks?.onCheckError?.(t),W();return}if(a<=0){e.hooks?.onReady?.(),W();return}e.hooks?.onDeferring?.(a);let o=Date.now(),s=setInterval(()=>{let t;try{t=e.getPendingCount()}catch(t){clearInterval(s),e.hooks?.onCheckError?.(t),W();return}if(t<=0){clearInterval(s),e.hooks?.onReady?.(),W();return}let n=Date.now()-o;n>=i&&(clearInterval(s),e.hooks?.onTimeout?.(t,n),W())},n)}function Z(e){let t=e=>(typeof e==`string`?e:e?e.toString():``).replace(/\s+/g,` `).trim();if(e.error){if(e.error instanceof Error)return e.error.message;if(typeof e.error==`string`)return e.error;try{return JSON.stringify(e.error)}catch{return`unknown error`}}return t(e.stderr)||t(e.stdout)||(typeof e.status==`number`?`exit ${e.status}`:`unknown error`)}function ne(e,t){let n=e?.trim();return n?n.endsWith(`.service`)?n:`${n}.service`:`${a(t)}.service`}function re(){if(process.env.VITEST)return{ok:!0,method:`supervisor`,detail:`test mode`};S();let e=[];if(process.platform===`linux`){let t=ne(process.env.OPENCLAW_SYSTEMD_UNIT,process.env.OPENCLAW_PROFILE),n=[`--user`,`restart`,t];e.push(`systemctl ${n.join(` `)}`);let r=l(`systemctl`,n,{encoding:`utf8`,timeout:E});if(!r.error&&r.status===0)return{ok:!0,method:`systemd`,tried:e};let i=[`restart`,t];e.push(`systemctl ${i.join(` `)}`);let a=l(`systemctl`,i,{encoding:`utf8`,timeout:E});return!a.error&&a.status===0?{ok:!0,method:`systemd`,tried:e}:{ok:!1,method:`systemd`,detail:[`user: ${Z(r)}`,`system: ${Z(a)}`].join(`; `),tried:e}}if(process.platform===`win32`)return T(process.env);if(process.platform!==`darwin`)return{ok:!1,method:`supervisor`,detail:`unsupported platform restart`};let t=process.env.OPENCLAW_LAUNCHD_LABEL||o(process.env.OPENCLAW_PROFILE),n=typeof process.getuid==`function`?process.getuid():void 0,r=n===void 0?`gui/501`:`gui/${n}`,i=`${r}/${t}`,a=[`kickstart`,`-k`,i];e.push(`launchctl ${a.join(` `)}`);let s=l(`launchctl`,a,{encoding:`utf8`,timeout:E});if(!s.error&&s.status===0)return{ok:!0,method:`launchctl`,tried:e};let c=process.env.HOME?.trim()||u.homedir(),f=[`bootstrap`,r,d.join(c,`Library`,`LaunchAgents`,`${t}.plist`)];e.push(`launchctl ${f.join(` `)}`);let p=l(`launchctl`,f,{encoding:`utf8`,timeout:E});if(p.error||p.status!==0&&p.status!==null)return{ok:!1,method:`launchctl`,detail:Z(p),tried:e};let m=[`kickstart`,`-k`,i];e.push(`launchctl ${m.join(` `)}`);let h=l(`launchctl`,m,{encoding:`utf8`,timeout:E});return!h.error&&h.status===0?{ok:!0,method:`launchctl`,tried:e}:{ok:!1,method:`launchctl`,detail:Z(h),tried:e}}function ie(e){let t=typeof e?.delayMs==`number`&&Number.isFinite(e.delayMs)?Math.floor(e.delayMs):2e3,n=Math.min(Math.max(t,0),6e4),r=typeof e?.reason==`string`&&e.reason.trim()?e.reason.trim().slice(0,200):void 0,i=process.listenerCount(`SIGUSR1`)>0?`emit`:`signal`,a=Date.now(),o=Math.max(0,F+3e4-a),s=a+n+o;if(z())return D.warn(`restart request coalesced (already in-flight) reason=${r??`unspecified`} ${H(e?.audit)}`),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:0,reason:r,mode:i,coalesced:!0,cooldownMsApplied:o};if(I){let t=Math.max(0,L-a);if(s<L)D.warn(`restart request rescheduled earlier reason=${r??`unspecified`} pendingReason=${R??`unspecified`} oldDelayMs=${t} newDelayMs=${Math.max(0,s-a)} ${H(e?.audit)}`),B();else return D.warn(`restart request coalesced (already scheduled) reason=${r??`unspecified`} pendingReason=${R??`unspecified`} delayMs=${t} ${H(e?.audit)}`),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:t,reason:r,mode:i,coalesced:!0,cooldownMsApplied:o}}return L=s,R=r,I=setTimeout(()=>{I=null,L=0,R=void 0;let e=j;if(!e){W();return}X({getPendingCount:e})},Math.max(0,s-a)),{ok:!0,pid:process.pid,signal:`SIGUSR1`,delayMs:Math.max(0,s-a),reason:r,mode:i,coalesced:!1,cooldownMsApplied:o}}function ae(e,t){if(!Number.isFinite(e)||e<=0)return;let n=oe(t?.graceMs);if(process.platform===`win32`){ce(e,n);return}se(e,n)}function oe(e){return typeof e!=`number`||!Number.isFinite(e)?3e3:Math.max(0,Math.min(6e4,Math.floor(e)))}function Q(e){try{return process.kill(e,0),!0}catch{return!1}}function se(e,t){try{process.kill(-e,`SIGTERM`)}catch{try{process.kill(e,`SIGTERM`)}catch{return}}setTimeout(()=>{if(Q(-e))try{process.kill(-e,`SIGKILL`);return}catch{}if(Q(e))try{process.kill(e,`SIGKILL`)}catch{}},t).unref()}function $(e){try{c(`taskkill`,e,{stdio:`ignore`,detached:!0})}catch{}}function ce(e,t){$([`/T`,`/PID`,String(e)]),setTimeout(()=>{Q(e)&&$([`/F`,`/T`,`/PID`,String(e)])},t).unref()}export{q as a,K as c,S as d,y as f,W as i,U as l,Y as n,te as o,X as r,ie as s,ae as t,re as u};
3
+ //# sourceMappingURL=kill-tree-B3g7HrAO.js.map
@@ -1,2 +1,3 @@
1
1
  import{A as e,N as t,O as n,k as r,p as i}from"./subsystem-BLbY429l.js";import{d as a}from"./paths-BjD3T_xq.js";import{Bi as o,Fo as s,Hi as c,Po as l}from"./auth-profiles-T8DuH3ax.js";import{t as u}from"./command-format-CLxIPuLR.js";import{m as d,p as f,u as p}from"./arg-split-BOqSMBuf.js";import{t as m}from"./wsl-DHxB2Ew_.js";import{n as h}from"./issue-format-C_lNzrKa.js";import{i as g}from"./systemd-DbevZh65.js";import{t as _}from"./service-DZ9EbS15.js";import{a as v,c as y,l as b,n as x}from"./systemd-hints-lXpMy-kY.js";import{t as S}from"./parse-port-JVwkxcZ8.js";import{Writable as C}from"node:stream";function w(e){i.log(JSON.stringify(e,null,2))}function T(e,t){return{label:e.label,loaded:t,loadedText:e.loadedText,notLoadedText:e.notLoadedText}}function E(){return new C({write(e,t,n){n()}})}function D(e){let t=[],n=e.json?E():process.stdout,r=n=>{e.json&&w({action:e.action,...n,warnings:n.warnings??(t.length?t:void 0)})};return{stdout:n,warnings:t,emit:r,fail:(t,n)=>{if(e.json)r({ok:!1,error:t,hints:n});else if(i.error(t),n?.length)for(let e of n)i.log(`Tip: ${e}`);i.exit(1)}}}async function O(e){try{await e.install()}catch(t){e.fail(`${e.serviceNoun} install failed: ${String(t)}`);return}let t=!0;try{t=await e.service.isLoaded({env:process.env})}catch{t=!0}e.emit({ok:!0,result:`installed`,service:T(e.service,t),warnings:e.warnings.length?e.warnings:void 0})}function k(){let t=r();return{rich:t,label:r=>n(t,e.muted,r),accent:r=>n(t,e.accent,r),infoText:r=>n(t,e.info,r),okText:r=>n(t,e.success,r),warnText:r=>n(t,e.warn,r),errorText:r=>n(t,e.error,r)}}function A(t){let n=t??`unknown`;return n===`running`?e.success:n===`stopped`?e.error:n===`unknown`?e.muted:e.warn}function j(e){if(!e?.length)return null;for(let t=0;t<e.length;t+=1){let n=e[t];if(n===`--port`){let n=e[t+1],r=S(n);if(r)return r}if(n?.startsWith(`--port=`)){let e=S(n.split(`=`,2)[1]);if(e)return e}}return null}function M(e,t,n){return e===`custom`&&n?.trim()?n.trim():e===`tailnet`?t??`127.0.0.1`:`127.0.0.1`}const N=[`OPENCLAW_PROFILE`,`OPENCLAW_STATE_DIR`,`OPENCLAW_CONFIG_PATH`,`OPENCLAW_GATEWAY_PORT`,`OPENCLAW_NIX_MODE`];function P(e){if(!e)return{};let t={};for(let n of N){let r=e[n];r?.trim()&&(t[n]=r.trim())}return t}function F(e){let t=P(e);return Object.entries(t).map(([e,t])=>`${e}=${t}`)}function I(e){let t=e.trim();return t&&(t=t.replace(/^TCP\s+/i,``),t=t.replace(/\s+\(LISTEN\)\s*$/i,``),t.trim())}function L(e,n=process.env){if(!e)return[];let r=[],i=(()=>{try{return t().file}catch{return null}})();return e.missingUnit?(r.push(`Service not installed. Run: ${u(`openclaw gateway install`,n)}`),i&&r.push(`File logs: ${i}`),r):(e.status===`stopped`&&(i&&r.push(`File logs: ${i}`),r.push(...y({env:n,systemdServiceName:f(n.OPENCLAW_PROFILE),windowsTaskName:d(n.OPENCLAW_PROFILE)}))),r)}function R(e=process.env){let t=e.OPENCLAW_PROFILE;return b({installCommand:u(`openclaw gateway install`,e),startCommand:u(`openclaw gateway`,e),launchAgentPlistPath:`~/Library/LaunchAgents/${p(t)}.plist`,systemdServiceName:f(t),windowsTaskName:d(t)})}function z(e){return e.env,c({cfg:e.cfg}).token}async function B(e){return process.platform!==`linux`||await g().catch(()=>!1)?e:[...e,...x({wsl:await m()})]}function V(e){let t=e.json?E():process.stdout,n=t=>{e.json&&w({action:e.action,...t})};return{stdout:t,emit:n,fail:(t,r)=>{e.json?n({ok:!1,error:t,hints:r}):i.error(t),i.exit(1)}}}async function H(e){let t=await B(e.renderStartHints());if(e.emit({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,hints:t,service:T(e.service,e.loaded)}),!e.json){i.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);for(let e of t)i.log(`Start with: ${e}`)}}async function U(e){try{return await e.service.isLoaded({env:process.env})}catch(t){return e.fail(`${e.serviceNoun} service check failed: ${String(t)}`),null}}async function W(){try{let e=await s();return!e.exists||e.valid?null:e.issues.length>0?h(e.issues,``,{normalizeRoot:!0}).join(`
2
2
  `):`Unknown validation issue.`}catch{return null}}async function G(e){let{stdout:t,emit:n,fail:r}=V({action:`uninstall`,json:!!e.opts?.json});if(a(process.env)){r(`Nix mode detected; service uninstall is disabled.`);return}let i=!1;try{i=await e.service.isLoaded({env:process.env})}catch{i=!1}if(i&&e.stopBeforeUninstall)try{await e.service.stop({env:process.env,stdout:t})}catch{}try{await e.service.uninstall({env:process.env,stdout:t})}catch(t){r(`${e.serviceNoun} uninstall failed: ${String(t)}`);return}i=!1;try{i=await e.service.isLoaded({env:process.env})}catch{i=!1}if(i&&e.assertNotLoadedAfterUninstall){r(`${e.serviceNoun} service still loaded after uninstall.`);return}n({ok:!0,result:`uninstalled`,service:T(e.service,i)})}async function K(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`start`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(o===null)return;if(!o){await H({serviceNoun:e.serviceNoun,service:e.service,loaded:o,renderStartHints:e.renderStartHints,json:t,emit:r});return}{let t=await W();if(t){a(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`);return}}try{let a=await e.service.restart({env:process.env,stdout:n}),s=_(e.serviceNoun,a);if(s.scheduled){r({ok:!0,result:s.daemonActionResult,message:s.message,service:T(e.service,o)}),t||i.log(s.message);return}}catch(t){let n=e.renderStartHints();a(`${e.serviceNoun} start failed: ${String(t)}`,n);return}let s=!0;try{s=await e.service.isLoaded({env:process.env})}catch{s=!0}r({ok:!0,result:`started`,service:T(e.service,s)})}async function q(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`stop`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(o===null)return;if(!o){try{let o=await e.onNotLoaded?.({json:t,stdout:n,fail:a});if(o){r({ok:!0,result:o.result,message:o.message,warnings:o.warnings,service:T(e.service,!1)}),!t&&o.message&&i.log(o.message);return}}catch(t){a(`${e.serviceNoun} stop failed: ${String(t)}`);return}r({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,service:T(e.service,o)}),t||i.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);return}try{await e.service.stop({env:process.env,stdout:n})}catch(t){a(`${e.serviceNoun} stop failed: ${String(t)}`);return}let s=!1;try{s=await e.service.isLoaded({env:process.env})}catch{s=!1}r({ok:!0,result:`stopped`,service:T(e.service,s)})}async function J(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:a}=V({action:`restart`,json:t}),s=[],c=null,u=await U({serviceNoun:e.serviceNoun,service:e.service,fail:a});if(u===null)return!1;{let t=await W();if(t)return a(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`),!1}if(!u){try{c=await e.onNotLoaded?.({json:t,stdout:n,fail:a})??null}catch(t){return a(`${e.serviceNoun} restart failed: ${String(t)}`),!1}if(!c)return await H({serviceNoun:e.serviceNoun,service:e.service,loaded:u,renderStartHints:e.renderStartHints,json:t,emit:r}),!1;c.warnings?.length&&s.push(...c.warnings)}if(u&&e.checkTokenDrift)try{let n=(await e.service.readCommand(process.env))?.environment?.OPENCLAW_GATEWAY_TOKEN,r=v({serviceToken:n,configToken:z({cfg:await l(),env:process.env})});if(r){let e=r.detail?`${r.message} ${r.detail}`:r.message;s.push(e),t||(i.log(`\n⚠️ ${r.message}`),r.detail&&i.log(` ${r.detail}\n`))}}catch(e){if(o(e,`gateway.auth.token`)){let e=`Unable to verify gateway token drift: gateway.auth.token SecretRef is configured but unavailable in this command path.`;s.push(e),t||i.log(`\n⚠️ ${e}\n`)}}try{let o={outcome:`completed`};u&&(o=await e.service.restart({env:process.env,stdout:n}));let l=_(e.serviceNoun,o);if(l.scheduled)return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||i.log(l.message),!0;if(e.postRestartCheck){let o=await e.postRestartCheck({json:t,stdout:n,warnings:s,fail:a});if(o&&(l=_(e.serviceNoun,o),l.scheduled))return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||i.log(l.message),!0}let d=u;if(u)try{d=await e.service.isLoaded({env:process.env})}catch{d=!0}return r({ok:!0,result:`restarted`,message:c?.message,service:T(e.service,d),warnings:s.length?s:void 0}),!t&&c?.message&&i.log(c.message),!0}catch(t){let n=e.renderStartHints();return a(`${e.serviceNoun} restart failed: ${String(t)}`,n),!1}}export{k as a,j as c,L as d,A as f,O as g,D as h,G as i,M as l,T as m,K as n,P as o,F as p,q as r,I as s,J as t,R as u};
3
+ //# sourceMappingURL=lifecycle-core-D9KNCvxY.js.map
@@ -1,2 +1,3 @@
1
1
  import{d as e}from"./paths-B4IRk3wi.js";import{A as t,N as n,O as r,k as i,p as a}from"./subsystem-C5XF2Fy5.js";import{Xs as o,Zs as s,ro as c,to as l}from"./model-selection-BlC_rXAN.js";import{t as u}from"./command-format-BbDT1tlm.js";import{t as d}from"./wsl-Ok7GaSJ6.js";import{m as f,p,u as m}from"./arg-split-DE5RqDHq.js";import{n as h}from"./issue-format-BT7cQEt3.js";import{i as g}from"./systemd-D7odsu4K.js";import{t as _}from"./service-BtB9epJk.js";import{a as v,c as y,l as b,n as x}from"./systemd-hints-C0DKDl35.js";import{t as S}from"./parse-port-Bv1Y9Wk5.js";import{Writable as C}from"node:stream";function w(e){a.log(JSON.stringify(e,null,2))}function T(e,t){return{label:e.label,loaded:t,loadedText:e.loadedText,notLoadedText:e.notLoadedText}}function E(){return new C({write(e,t,n){n()}})}function D(e){let t=[],n=e.json?E():process.stdout,r=n=>{e.json&&w({action:e.action,...n,warnings:n.warnings??(t.length?t:void 0)})};return{stdout:n,warnings:t,emit:r,fail:(t,n)=>{if(e.json)r({ok:!1,error:t,hints:n});else if(a.error(t),n?.length)for(let e of n)a.log(`Tip: ${e}`);a.exit(1)}}}async function O(e){try{await e.install()}catch(t){e.fail(`${e.serviceNoun} install failed: ${String(t)}`);return}let t=!0;try{t=await e.service.isLoaded({env:process.env})}catch{t=!0}e.emit({ok:!0,result:`installed`,service:T(e.service,t),warnings:e.warnings.length?e.warnings:void 0})}function k(){let e=i();return{rich:e,label:n=>r(e,t.muted,n),accent:n=>r(e,t.accent,n),infoText:n=>r(e,t.info,n),okText:n=>r(e,t.success,n),warnText:n=>r(e,t.warn,n),errorText:n=>r(e,t.error,n)}}function A(e){let n=e??`unknown`;return n===`running`?t.success:n===`stopped`?t.error:n===`unknown`?t.muted:t.warn}function j(e){if(!e?.length)return null;for(let t=0;t<e.length;t+=1){let n=e[t];if(n===`--port`){let n=e[t+1],r=S(n);if(r)return r}if(n?.startsWith(`--port=`)){let e=S(n.split(`=`,2)[1]);if(e)return e}}return null}function M(e,t,n){return e===`custom`&&n?.trim()?n.trim():e===`tailnet`?t??`127.0.0.1`:`127.0.0.1`}const N=[`OPENCLAW_PROFILE`,`OPENCLAW_STATE_DIR`,`OPENCLAW_CONFIG_PATH`,`OPENCLAW_GATEWAY_PORT`,`OPENCLAW_NIX_MODE`];function P(e){if(!e)return{};let t={};for(let n of N){let r=e[n];r?.trim()&&(t[n]=r.trim())}return t}function F(e){let t=P(e);return Object.entries(t).map(([e,t])=>`${e}=${t}`)}function I(e){let t=e.trim();return t&&(t=t.replace(/^TCP\s+/i,``),t=t.replace(/\s+\(LISTEN\)\s*$/i,``),t.trim())}function L(e,t=process.env){if(!e)return[];let r=[],i=(()=>{try{return n().file}catch{return null}})();return e.missingUnit?(r.push(`Service not installed. Run: ${u(`openclaw gateway install`,t)}`),i&&r.push(`File logs: ${i}`),r):(e.status===`stopped`&&(i&&r.push(`File logs: ${i}`),r.push(...y({env:t,systemdServiceName:p(t.OPENCLAW_PROFILE),windowsTaskName:f(t.OPENCLAW_PROFILE)}))),r)}function R(e=process.env){let t=e.OPENCLAW_PROFILE;return b({installCommand:u(`openclaw gateway install`,e),startCommand:u(`openclaw gateway`,e),launchAgentPlistPath:`~/Library/LaunchAgents/${m(t)}.plist`,systemdServiceName:p(t),windowsTaskName:f(t)})}function z(e){return e.env,c({cfg:e.cfg}).token}async function B(e){return process.platform!==`linux`||await g().catch(()=>!1)?e:[...e,...x({wsl:await d()})]}function V(e){let t=e.json?E():process.stdout,n=t=>{e.json&&w({action:e.action,...t})};return{stdout:t,emit:n,fail:(t,r)=>{e.json?n({ok:!1,error:t,hints:r}):a.error(t),a.exit(1)}}}async function H(e){let t=await B(e.renderStartHints());if(e.emit({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,hints:t,service:T(e.service,e.loaded)}),!e.json){a.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);for(let e of t)a.log(`Start with: ${e}`)}}async function U(e){try{return await e.service.isLoaded({env:process.env})}catch(t){return e.fail(`${e.serviceNoun} service check failed: ${String(t)}`),null}}async function W(){try{let e=await s();return!e.exists||e.valid?null:e.issues.length>0?h(e.issues,``,{normalizeRoot:!0}).join(`
2
2
  `):`Unknown validation issue.`}catch{return null}}async function G(t){let{stdout:n,emit:r,fail:i}=V({action:`uninstall`,json:!!t.opts?.json});if(e(process.env)){i(`Nix mode detected; service uninstall is disabled.`);return}let a=!1;try{a=await t.service.isLoaded({env:process.env})}catch{a=!1}if(a&&t.stopBeforeUninstall)try{await t.service.stop({env:process.env,stdout:n})}catch{}try{await t.service.uninstall({env:process.env,stdout:n})}catch(e){i(`${t.serviceNoun} uninstall failed: ${String(e)}`);return}a=!1;try{a=await t.service.isLoaded({env:process.env})}catch{a=!1}if(a&&t.assertNotLoadedAfterUninstall){i(`${t.serviceNoun} service still loaded after uninstall.`);return}r({ok:!0,result:`uninstalled`,service:T(t.service,a)})}async function K(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`start`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(o===null)return;if(!o){await H({serviceNoun:e.serviceNoun,service:e.service,loaded:o,renderStartHints:e.renderStartHints,json:t,emit:r});return}{let t=await W();if(t){i(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`);return}}try{let i=await e.service.restart({env:process.env,stdout:n}),s=_(e.serviceNoun,i);if(s.scheduled){r({ok:!0,result:s.daemonActionResult,message:s.message,service:T(e.service,o)}),t||a.log(s.message);return}}catch(t){let n=e.renderStartHints();i(`${e.serviceNoun} start failed: ${String(t)}`,n);return}let s=!0;try{s=await e.service.isLoaded({env:process.env})}catch{s=!0}r({ok:!0,result:`started`,service:T(e.service,s)})}async function q(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`stop`,json:t}),o=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(o===null)return;if(!o){try{let o=await e.onNotLoaded?.({json:t,stdout:n,fail:i});if(o){r({ok:!0,result:o.result,message:o.message,warnings:o.warnings,service:T(e.service,!1)}),!t&&o.message&&a.log(o.message);return}}catch(t){i(`${e.serviceNoun} stop failed: ${String(t)}`);return}r({ok:!0,result:`not-loaded`,message:`${e.serviceNoun} service ${e.service.notLoadedText}.`,service:T(e.service,o)}),t||a.log(`${e.serviceNoun} service ${e.service.notLoadedText}.`);return}try{await e.service.stop({env:process.env,stdout:n})}catch(t){i(`${e.serviceNoun} stop failed: ${String(t)}`);return}let s=!1;try{s=await e.service.isLoaded({env:process.env})}catch{s=!1}r({ok:!0,result:`stopped`,service:T(e.service,s)})}async function J(e){let t=!!e.opts?.json,{stdout:n,emit:r,fail:i}=V({action:`restart`,json:t}),s=[],c=null,u=await U({serviceNoun:e.serviceNoun,service:e.service,fail:i});if(u===null)return!1;{let t=await W();if(t)return i(`${e.serviceNoun} aborted: config is invalid.\n${t}\nFix the config and retry, or run "openclaw doctor" to repair.`),!1}if(!u){try{c=await e.onNotLoaded?.({json:t,stdout:n,fail:i})??null}catch(t){return i(`${e.serviceNoun} restart failed: ${String(t)}`),!1}if(!c)return await H({serviceNoun:e.serviceNoun,service:e.service,loaded:u,renderStartHints:e.renderStartHints,json:t,emit:r}),!1;c.warnings?.length&&s.push(...c.warnings)}if(u&&e.checkTokenDrift)try{let n=(await e.service.readCommand(process.env))?.environment?.OPENCLAW_GATEWAY_TOKEN,r=v({serviceToken:n,configToken:z({cfg:await o(),env:process.env})});if(r){let e=r.detail?`${r.message} ${r.detail}`:r.message;s.push(e),t||(a.log(`\n⚠️ ${r.message}`),r.detail&&a.log(` ${r.detail}\n`))}}catch(e){if(l(e,`gateway.auth.token`)){let e=`Unable to verify gateway token drift: gateway.auth.token SecretRef is configured but unavailable in this command path.`;s.push(e),t||a.log(`\n⚠️ ${e}\n`)}}try{let o={outcome:`completed`};u&&(o=await e.service.restart({env:process.env,stdout:n}));let l=_(e.serviceNoun,o);if(l.scheduled)return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||a.log(l.message),!0;if(e.postRestartCheck){let o=await e.postRestartCheck({json:t,stdout:n,warnings:s,fail:i});if(o&&(l=_(e.serviceNoun,o),l.scheduled))return r({ok:!0,result:l.daemonActionResult,message:l.message,service:T(e.service,u),warnings:s.length?s:void 0}),t||a.log(l.message),!0}let d=u;if(u)try{d=await e.service.isLoaded({env:process.env})}catch{d=!0}return r({ok:!0,result:`restarted`,message:c?.message,service:T(e.service,d),warnings:s.length?s:void 0}),!t&&c?.message&&a.log(c.message),!0}catch(t){let n=e.renderStartHints();return i(`${e.serviceNoun} restart failed: ${String(t)}`,n),!1}}export{k as a,j as c,L as d,A as f,O as g,D as h,G as i,M as l,T as m,K as n,P as o,F as p,q as r,I as s,J as t,R as u};
3
+ //# sourceMappingURL=lifecycle-core-LM5UUUB1.js.map
@@ -1 +1,2 @@
1
1
  import{a as e,i as t,o as n,t as r}from"../secret-file-DuWm26jS.js";import{t as i}from"../account-lookup-CW-_CL7y.js";import"../utils-R-mFyVJi.js";function a(e){return r(e,`LINE credential file`,{rejectSymlink:!0})}function o(e){let{accountId:t,baseConfig:n,accountConfig:r}=e;if(r?.channelAccessToken?.trim())return{token:r.channelAccessToken.trim(),tokenSource:`config`};let i=a(r?.tokenFile);if(i)return{token:i,tokenSource:`file`};if(t===`default`){if(n?.channelAccessToken?.trim())return{token:n.channelAccessToken.trim(),tokenSource:`config`};let e=a(n?.tokenFile);if(e)return{token:e,tokenSource:`file`};let t=process.env.LINE_CHANNEL_ACCESS_TOKEN?.trim();if(t)return{token:t,tokenSource:`env`}}return{token:``,tokenSource:`none`}}function s(e){let{accountId:t,baseConfig:n,accountConfig:r}=e;if(r?.channelSecret?.trim())return r.channelSecret.trim();let i=a(r?.secretFile);if(i)return i;if(t===`default`){if(n?.channelSecret?.trim())return n.channelSecret.trim();let e=a(n?.secretFile);if(e)return e;let t=process.env.LINE_CHANNEL_SECRET?.trim();if(t)return t}return``}function c(t){let n=t.cfg,r=e(t.accountId),a=n.channels?.line,c=a?.accounts,l=r===`default`?void 0:i(c,r),{token:u,tokenSource:d}=o({accountId:r,baseConfig:a,accountConfig:l}),f=s({accountId:r,baseConfig:a,accountConfig:l}),{accounts:p,defaultAccount:m,...h}=a??{},g={...h,...l},_=l?.enabled??(r===`default`?a?.enabled??!0:!1);return{accountId:r,name:l?.name??(r===`default`?a?.name:void 0),enabled:_,channelAccessToken:u,channelSecret:f,tokenSource:d,config:g}}function l(e){let n=e.channels?.line,r=n?.accounts,i=new Set;if((n?.channelAccessToken?.trim()||n?.tokenFile||process.env.LINE_CHANNEL_ACCESS_TOKEN?.trim())&&i.add(t),r)for(let e of Object.keys(r))i.add(e);return Array.from(i)}function u(r){let i=n(r.channels?.line?.defaultAccount);if(i&&l(r).some(t=>e(t)===i))return i;let a=l(r);return a.includes(`default`)?t:a[0]??`default`}function d(t){return e(t)}export{t as DEFAULT_ACCOUNT_ID,l as listLineAccountIds,d as normalizeAccountId,u as resolveDefaultLineAccountId,c as resolveLineAccount};
2
+ //# sourceMappingURL=accounts.js.map
package/dist/line/send.js CHANGED
@@ -1 +1,2 @@
1
1
  import{t as e}from"../config-D12ZLKqh.js";import"../secret-file-DuWm26jS.js";import"../token-DnTmiyJu.js";import{f as t}from"../utils-R-mFyVJi.js";import"../proxy-env-DrC3TIGh.js";import{t as n}from"../channel-activity-B04WbrrK.js";import{resolveLineAccount as r}from"./accounts.js";import{messagingApi as i}from"@line/bot-sdk";function a(e,t){if(e?.trim())return e.trim();if(!t.channelAccessToken)throw Error(`LINE channel access token missing for account "${t.accountId}" (set channels.line.channelAccessToken or LINE_CHANNEL_ACCESS_TOKEN).`);return t.channelAccessToken.trim()}const o=new Map;function s(e){let t=e.trim();if(!t)throw Error(`Recipient is required for LINE sends`);let n=t.replace(/^line:group:/i,``).replace(/^line:room:/i,``).replace(/^line:user:/i,``).replace(/^line:/i,``);if(!n)throw Error(`Recipient is required for LINE sends`);return n}function c(t){let n=r({cfg:t.cfg??e(),accountId:t.accountId}),o=a(t.channelAccessToken,n);return{account:n,client:new i.MessagingApiClient({channelAccessToken:o})}}function l(e,t){let{account:n,client:r}=c(t);return{account:n,client:r,chatId:s(e)}}function u(e){return{type:`text`,text:e}}function d(e,t){return{type:`image`,originalContentUrl:e,previewImageUrl:t??e}}function f(e){return{type:`location`,title:e.title.slice(0,100),address:e.address.slice(0,100),latitude:e.latitude,longitude:e.longitude}}function p(e,n){if(!e||typeof e!=`object`)return;let{status:r,statusText:i,body:a}=e;typeof a==`string`&&t(`line: ${n} failed (${r?`${r} ${i??``}`.trim():`unknown status`}): ${a}`)}function m(e){n({channel:`line`,accountId:e,direction:`outbound`})}async function h(e,n,r={},i={}){if(n.length===0)throw Error(`Message must be non-empty for LINE sends`);let{account:a,client:o,chatId:s}=l(e,r),c=o.pushMessage({to:s,messages:n});if(i.errorContext){let e=i.errorContext;await c.catch(t=>{throw p(t,e),t})}else await c;return m(a.accountId),r.verbose&&t(i.verboseMessage?.(s,n.length)??`line: pushed ${n.length} messages to ${s}`),{messageId:`push`,chatId:s}}async function g(e,n,r={},i={}){let{account:a,client:o}=c(r);await o.replyMessage({replyToken:e,messages:n}),m(a.accountId),r.verbose&&t(i.verboseMessage?.(n.length)??`line: replied with ${n.length} messages`)}async function _(e,t,n={}){let r=s(e),i=[];if(n.mediaUrl?.trim()&&i.push(d(n.mediaUrl.trim())),t?.trim()&&i.push(u(t.trim())),i.length===0)throw Error(`Message must be non-empty for LINE sends`);return n.replyToken?(await g(n.replyToken,i,n,{verboseMessage:()=>`line: replied to ${r}`}),{messageId:`reply`,chatId:r}):h(r,i,n,{verboseMessage:e=>`line: pushed message to ${e}`})}async function v(e,t,n={}){return _(e,t,{...n,replyToken:void 0})}async function y(e,t,n={}){await g(e,t,n)}async function b(e,t,n={}){return h(e,t,n,{errorContext:`push message`})}function x(e,t){return{type:`flex`,altText:e,contents:t}}async function S(e,t,n,r={}){return h(e,[d(t,n)],r,{verboseMessage:e=>`line: pushed image to ${e}`})}async function C(e,t,n={}){return h(e,[f(t)],n,{verboseMessage:e=>`line: pushed location to ${e}`})}async function w(e,t,n,r={}){return h(e,[{type:`flex`,altText:t.slice(0,400),contents:n}],r,{errorContext:`push flex message`,verboseMessage:e=>`line: pushed flex message to ${e}`})}async function T(e,t,n={}){return h(e,[t],n,{verboseMessage:e=>`line: pushed template message to ${e}`})}async function E(e,t,n,r={}){return h(e,[O(t,n)],r,{verboseMessage:e=>`line: pushed message with quick replies to ${e}`})}function D(e){return{items:e.slice(0,13).map(e=>({type:`action`,action:{type:`message`,label:e.slice(0,20),text:e}}))}}function O(e,t){return{type:`text`,text:e,quickReply:D(t)}}async function k(e,n={}){let{client:r}=c(n);try{await r.showLoadingAnimation({chatId:s(e),loadingSeconds:n.loadingSeconds??20}),t(`line: showing loading animation to ${e}`)}catch(e){t(`line: loading animation failed (non-fatal): ${String(e)}`)}}async function A(e,n={}){if(n.useCache??!0){let t=o.get(e);if(t&&Date.now()-t.fetchedAt<3e5)return{displayName:t.displayName,pictureUrl:t.pictureUrl}}let{client:r}=c(n);try{let t=await r.getProfile(e),n={displayName:t.displayName,pictureUrl:t.pictureUrl};return o.set(e,{...n,fetchedAt:Date.now()}),n}catch(n){return t(`line: failed to fetch profile for ${e}: ${String(n)}`),null}}async function j(e,t={}){return(await A(e,t))?.displayName??e}export{x as createFlexMessage,d as createImageMessage,f as createLocationMessage,D as createQuickReplyItems,O as createTextMessageWithQuickReplies,j as getUserDisplayName,A as getUserProfile,w as pushFlexMessage,S as pushImageMessage,C as pushLocationMessage,v as pushMessageLine,b as pushMessagesLine,T as pushTemplateMessage,E as pushTextMessageWithQuickReplies,y as replyMessageLine,_ as sendMessageLine,k as showLoadingAnimation};
2
+ //# sourceMappingURL=send.js.map
@@ -1 +1,2 @@
1
1
  function e(e,t){return{type:`message`,label:e.slice(0,20),text:t??e}}function t(e,t){return{type:`uri`,label:e.slice(0,20),uri:t}}function n(e,t,n){return{type:`postback`,label:e.slice(0,20),data:t.slice(0,300),displayText:n?.slice(0,300)}}function r(e,t,n,r){return{type:`datetimepicker`,label:e.slice(0,20),data:t.slice(0,300),mode:n,initial:r?.initial,max:r?.max,min:r?.min}}function i(r){return r.type===`uri`&&r.uri?t(r.label,r.uri):r.type===`postback`&&r.data?n(r.label,r.data,r.label):e(r.label,r.data??r.label)}function a(e,t,n,r){let i={type:`confirm`,text:e.slice(0,240),actions:[t,n]};return{type:`template`,altText:r?.slice(0,400)??e.slice(0,400),template:i}}function o(e,t,n,r){let i=r?.thumbnailImageUrl?.trim()?160:60,a={type:`buttons`,title:e.slice(0,40),text:t.slice(0,i),actions:n.slice(0,4),thumbnailImageUrl:r?.thumbnailImageUrl,imageAspectRatio:r?.imageAspectRatio??`rectangle`,imageSize:r?.imageSize??`cover`,imageBackgroundColor:r?.imageBackgroundColor,defaultAction:r?.defaultAction};return{type:`template`,altText:r?.altText?.slice(0,400)??`${e}: ${t}`.slice(0,400),template:a}}function s(e,t){let n={type:`carousel`,columns:e.slice(0,10),imageAspectRatio:t?.imageAspectRatio??`rectangle`,imageSize:t?.imageSize??`cover`};return{type:`template`,altText:t?.altText?.slice(0,400)??`View carousel`,template:n}}function c(e){return{title:e.title?.slice(0,40),text:e.text.slice(0,120),actions:e.actions.slice(0,3),thumbnailImageUrl:e.thumbnailImageUrl,imageBackgroundColor:e.imageBackgroundColor,defaultAction:e.defaultAction}}function l(e,t){let n={type:`image_carousel`,columns:e.slice(0,10)};return{type:`template`,altText:t?.slice(0,400)??`View images`,template:n}}function u(e,t){return{imageUrl:e,action:t}}function d(t,r){return a(t,r?.yesData?n(r.yesText??`Yes`,r.yesData,r.yesText??`Yes`):e(r?.yesText??`Yes`),r?.noData?n(r.noText??`No`,r.noData,r.noText??`No`):e(r?.noText??`No`),r?.altText)}function f(t,n,r,i){return o(t,n,r.slice(0,4).map(t=>e(t.label,t.text)),{thumbnailImageUrl:i?.thumbnailImageUrl,altText:i?.altText})}function p(e,n,r,i){return o(e,n,r.slice(0,4).map(e=>t(e.label,e.url)),{thumbnailImageUrl:i?.thumbnailImageUrl,altText:i?.altText})}function m(r,i){return s(r.slice(0,10).map(r=>{let i=[];return r.actionUrl?i.push(t(r.actionLabel??`View`,r.actionUrl)):r.actionData?i.push(n(r.actionLabel??`Select`,r.actionData)):i.push(e(r.actionLabel??`Select`,r.title)),c({title:r.title,text:r.price?`${r.description}\n${r.price}`.slice(0,120):r.description,thumbnailImageUrl:r.imageUrl,actions:i})}),{altText:i})}function h(r){switch(r.type){case`confirm`:{let i=r.confirmData.startsWith(`http`)?t(r.confirmLabel,r.confirmData):r.confirmData.includes(`=`)?n(r.confirmLabel,r.confirmData,r.confirmLabel):e(r.confirmLabel,r.confirmData),o=r.cancelData.startsWith(`http`)?t(r.cancelLabel,r.cancelData):r.cancelData.includes(`=`)?n(r.cancelLabel,r.cancelData,r.cancelLabel):e(r.cancelLabel,r.cancelData);return a(r.text,i,o,r.altText)}case`buttons`:{let e=r.actions.slice(0,4).map(e=>i(e));return o(r.title,r.text,e,{thumbnailImageUrl:r.thumbnailImageUrl,altText:r.altText})}case`carousel`:return s(r.columns.slice(0,10).map(e=>{let t=e.actions.slice(0,3).map(e=>i(e));return c({title:e.title,text:e.text,thumbnailImageUrl:e.thumbnailImageUrl,actions:t})}),{altText:r.altText});default:return null}}export{h as buildTemplateMessageFromPayload,f as createButtonMenu,o as createButtonTemplate,c as createCarouselColumn,a as createConfirmTemplate,l as createImageCarousel,u as createImageCarouselColumn,p as createLinkMenu,m as createProductCarousel,s as createTemplateCarousel,d as createYesNoConfirm,r as datetimePickerAction,e as messageAction,n as postbackAction,t as uriAction};
2
+ //# sourceMappingURL=template-messages.js.map
@@ -1 +1,2 @@
1
1
  import{l as e}from"./utils-CGdo13HV.js";function t(t,n,r){let i=t.trim(),a=i.startsWith(`http`)?i:`https://docs.openclaw.ai${i.startsWith(`/`)?i:`/${i}`}`;return e(n??a,a,{fallback:r?.fallback??a,force:r?.force})}export{t};
2
+ //# sourceMappingURL=links-CBnmRP9D.js.map
@@ -1 +1,2 @@
1
1
  import{u as e}from"./utils-UGOV_184.js";function t(t,n,r){let i=t.trim(),a=i.startsWith(`http`)?i:`https://docs.openclaw.ai${i.startsWith(`/`)?i:`/${i}`}`;return e(n??a,a,{fallback:r?.fallback??a,force:r?.force})}export{t};
2
+ //# sourceMappingURL=links-CySwdMcF.js.map
@@ -4,3 +4,4 @@ Conversation summary:
4
4
  ${i.sessionContent.slice(0,2e3)}
5
5
 
6
6
  Reply with ONLY the slug, nothing else. Examples: "vendor-pitch", "api-design", "bug-fix"`,_=t(i.cfg,d),v=_?a(_,o):null,y=v?.provider??`anthropic`,b=v?.model??`claude-opus-4-6`,x=await s({sessionId:`slug-generator-${Date.now()}`,sessionKey:`temp:slug-generator`,agentId:d,sessionFile:f,workspaceDir:p,agentDir:m,config:i.cfg,prompt:g,provider:y,model:b,timeoutMs:15e3,runId:`slug-gen-${Date.now()}`});if(x.payloads&&x.payloads.length>0){let e=x.payloads[0]?.text;if(e)return e.trim().toLowerCase().replace(/[^a-z0-9-]/g,`-`).replace(/-+/g,`-`).replace(/^-|-$/g,``).slice(0,30)||null}return null}catch(e){let t=e instanceof Error?e.stack??e.message:String(e);return d.error(`Failed to generate slug: ${t}`),null}finally{if(f)try{await c.rm(u.dirname(f),{recursive:!0,force:!0})}catch{}}}export{f as generateSlugViaLLM};
7
+ //# sourceMappingURL=llm-slug-generator.js.map
@@ -1 +1,2 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
+ //# sourceMappingURL=load-options-BsOW74dp.js.map
@@ -1 +1,2 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
+ //# sourceMappingURL=load-options-C7dLuybp.js.map
@@ -1 +1,2 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
+ //# sourceMappingURL=load-options-DV4j6Aqb.js.map
@@ -1 +1,2 @@
1
1
  function e(e){return e&&e.length>0?e:void 0}function t(t={}){let n=e(t.mediaLocalRoots);return{...t.maxBytes===void 0?{}:{maxBytes:t.maxBytes},...n?{localRoots:n}:{}}}export{t};
2
+ //# sourceMappingURL=load-options-Dwt0CeEg.js.map
@@ -1 +1,2 @@
1
1
  import{g as e}from"./paths-B4IRk3wi.js";import{H as t}from"./subsystem-C5XF2Fy5.js";import{d as n}from"./agent-scope-DXZc3eNT.js";import{i as r,r as i}from"./windows-spawn-AB7ItGAE.js";import{n as a,t as o}from"./fetch-guard-DPdY0NXR.js";import s from"node:path";async function c(e,t){let n,r=!1;return await new Promise((i,a)=>{let o=()=>{n!==void 0&&(clearTimeout(n),n=void 0)};n=setTimeout(()=>{r=!0,o(),e.cancel().catch(()=>void 0),a(Error(`Media download stalled: no data received for ${t}ms`))},t),e.read().then(e=>{o(),r||i(e)},e=>{o(),r||a(e)})})}async function l(e,t,n){let r=n?.onOverflow??(e=>Error(`Content too large: ${e.size} bytes (limit: ${e.maxBytes} bytes)`)),i=n?.chunkTimeoutMs,a=e.body;if(!a||typeof a.getReader!=`function`){let n=Buffer.from(await e.arrayBuffer());if(n.length>t)throw r({size:n.length,maxBytes:t,res:e});return n}let o=a.getReader(),s=[],l=0;try{for(;;){let{done:n,value:a}=i?await c(o,i):await o.read();if(n)break;if(a?.length){if(l+=a.length,l>t){try{await o.cancel()}catch{}throw r({size:l,maxBytes:t,res:e})}s.push(a)}}}finally{try{o.releaseLock()}catch{}}return Buffer.concat(s.map(e=>Buffer.from(e)),l)}var u=class extends Error{constructor(e,t){super(t),this.code=e,this.name=`MediaFetchError`}};function d(e){return e.replace(/^["']|["']$/g,``)}function f(e){if(!e)return;let t=/filename\*\s*=\s*([^;]+)/i.exec(e);if(t?.[1]){let e=d(t[1].trim()),n=e.split(`''`).slice(1).join(`''`)||e;try{return s.basename(decodeURIComponent(n))}catch{return s.basename(n)}}let n=/filename\s*=\s*([^;]+)/i.exec(e);if(n?.[1])return s.basename(d(n[1].trim()))}async function p(e,t=200){try{let n=await e.text();if(!n)return;let r=n.replace(/\s+/g,` `).trim();return r?r.length<=t?r:`${r.slice(0,t)}…`:void 0}catch{return}}async function m(e){let{url:t,fetchImpl:n,requestInit:c,filePathHint:d,maxBytes:m,maxRedirects:h,readIdleTimeoutMs:g,ssrfPolicy:_,lookupFn:v}=e,y,b=t,x=null;try{let e=await o(a({url:t,fetchImpl:n,init:c,maxRedirects:h,policy:_,lookupFn:v}));y=e.response,b=e.finalUrl,x=e.release}catch(e){throw new u(`fetch_failed`,`Failed to fetch media from ${t}: ${String(e)}`)}try{if(!y.ok){let e=y.statusText?` ${y.statusText}`:``,n=b===t?``:` (redirected to ${b})`,r=`HTTP ${y.status}${e}`;if(!y.body)r=`HTTP ${y.status}${e}; empty response body`;else{let e=await p(y);e&&(r+=`; body: ${e}`)}throw new u(`http_error`,`Failed to fetch media from ${t}${n}: ${r}`)}let e=y.headers.get(`content-length`);if(m&&e){let n=Number(e);if(Number.isFinite(n)&&n>m)throw new u(`max_bytes`,`Failed to fetch media from ${t}: content length ${n} exceeds maxBytes ${m}`)}let n;try{n=m?await l(y,m,{onOverflow:({maxBytes:e,res:n})=>new u(`max_bytes`,`Failed to fetch media from ${n.url||t}: payload exceeds maxBytes ${e}`),chunkTimeoutMs:g}):Buffer.from(await y.arrayBuffer())}catch(e){throw e instanceof u?e:new u(`fetch_failed`,`Failed to fetch media from ${y.url||t}: ${String(e)}`)}let a;try{let e=new URL(b);a=s.basename(e.pathname)||void 0}catch{}let o=f(y.headers.get(`content-disposition`)),c=o||a||(d?s.basename(d):void 0),h=o&&s.extname(o)?o:d??b,_=await i({buffer:n,headerMime:y.headers.get(`content-type`),filePath:h});if(c&&!s.extname(c)&&_){let e=r(_);e&&(c=`${c}${e}`)}return{buffer:n,contentType:_??void 0,fileName:c}}finally{x&&await x()}}let h;function g(){return h||=t(),h}function _(e,t={}){let n=s.resolve(e);return[t.preferredTmpDir??g(),s.join(n,`media`),s.join(n,`agents`),s.join(n,`workspace`),s.join(n,`sandboxes`)]}function v(){return _(e())}function y(t,r){let i=_(e());if(!r?.trim())return i;let a=n(t,r);if(!a)return i;let o=s.resolve(a);return i.includes(o)||i.push(o),i}export{l as a,m as i,v as n,u as r,y as t};
2
+ //# sourceMappingURL=local-roots-6waH0SZ0.js.map
@@ -1 +1,2 @@
1
1
  import{a as e,f as t,g as n,l as r,t as i,u as a,x as o}from"./subsystem-Bc2XrjUz.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(t){let n=t.runtime===e?c(t.message):null;if(n){i(n.subsystem)[t.subsystemMethod](n.rest);return}t.runtime[t.runtimeMethod](t.runtimeFormatter(t.message)),o()[t.loggerMethod](t.message)}function u(t,n=e){l({message:t,runtime:n,runtimeMethod:`log`,runtimeFormatter:a,loggerMethod:`info`,subsystemMethod:`info`})}function d(t,r=e){l({message:t,runtime:r,runtimeMethod:`log`,runtimeFormatter:n,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(t,n=e){l({message:t,runtime:n,runtimeMethod:`error`,runtimeFormatter:r,loggerMethod:`error`,subsystemMethod:`error`})}function p(e){o().debug(e),t(e)}export{d as i,f as n,u as r,p as t};
2
+ //# sourceMappingURL=logger-5W0OocJW.js.map
@@ -1 +1,2 @@
1
1
  import{C as e,D as t,M as n,p as r,t as i,v as a,y as o}from"./subsystem-C5XF2Fy5.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(e){let t=e.runtime===r?c(e.message):null;if(t){i(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),n()[e.loggerMethod](e.message)}function u(e,t=r){l({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:o,loggerMethod:`info`,subsystemMethod:`info`})}function d(e,n=r){l({message:e,runtime:n,runtimeMethod:`log`,runtimeFormatter:t,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(e,t=r){l({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:a,loggerMethod:`error`,subsystemMethod:`error`})}function p(t){n().debug(t),e(t)}export{d as i,f as n,u as r,p as t};
2
+ //# sourceMappingURL=logger-Bl8URnrW.js.map
@@ -1 +1,2 @@
1
1
  import{d as e,l as t,o as n,r,u as i}from"./paths-BpQOWYiT.js";import a from"node:fs";import o from"node:path";import s from"node:os";import c,{Chalk as l}from"chalk";import{Logger as u}from"tslog";import d from"json5";import"node:util";const ee=new Set([`--dev`,`--no-color`]),te=new Set([`--profile`,`--log-level`]);function ne(e){return!e||e===`--`?!1:e.startsWith(`-`)?/^-\d+(?:\.\d+)?$/.test(e):!0}function f(e,t){let n=e[t];return n?ee.has(n)||n.startsWith(`--profile=`)||n.startsWith(`--log-level=`)?1:te.has(n)?ne(e[t+1])?2:1:0:0}function p(e,t=2){return m(e,t,{skipRootOptions:!0})}function m(e,t,n){let r=e.slice(2),i=[];for(let e=0;e<r.length;e+=1){let a=r[e];if(a){if(a===`--`)break;if(n.skipRootOptions){let t=f(r,e);if(t>0){e+=t-1;continue}}if(!a.startsWith(`-`)&&(i.push(a),i.length>=t))break}}return i}const h=`/tmp/qbotclaw`,re=a.constants.W_OK|a.constants.X_OK;function ie(e,t){return typeof e==`object`&&!!e&&`code`in e&&e.code===t}function g(e={}){let t=e.accessSync??a.accessSync,n=e.chmodSync??a.chmodSync,r=e.lstatSync??a.lstatSync,i=e.mkdirSync??a.mkdirSync,c=e.warn??(e=>console.warn(e)),l=e.getuid??(()=>{try{return typeof process.getuid==`function`?process.getuid():void 0}catch{return}}),u=e.tmpdir??s.tmpdir,d=l(),ee=e=>d===void 0?!0:!(typeof e.uid==`number`&&e.uid!==d||typeof e.mode==`number`&&e.mode&18),te=()=>{let e=u(),t=d===void 0?`qbotclaw`:`qbotclaw-${d}`;return o.join(e,t)},ne=e=>e.isDirectory()&&!e.isSymbolicLink()&&ee(e),f=e=>{try{return ne(r(e))?(t(e,re),`available`):`invalid`}catch(e){return ie(e,`ENOENT`)?`missing`:`invalid`}},p=e=>{try{let t=r(e);return!t.isDirectory()||t.isSymbolicLink()||d!==void 0&&typeof t.uid==`number`&&t.uid!==d||typeof t.mode!=`number`||!(t.mode&18)?!1:(n(e,448),c(`[openclaw] tightened permissions on temp dir: ${e}`),f(e)===`available`)}catch{return!1}},m=()=>{let e=te(),t=f(e);if(t===`available`)return e;if(t===`invalid`){if(p(e))return e;throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`)}try{i(e,{recursive:!0,mode:448}),n(e,448)}catch{throw Error(`Unable to create fallback OpenClaw temp dir: ${e}`)}if(f(e)!==`available`&&!p(e))throw Error(`Unsafe fallback OpenClaw temp dir: ${e}`);return e},g=f(h);if(g===`available`)return h;if(g===`invalid`)return p(`/tmp/qbotclaw`)?h:m();try{return t(`/tmp`,re),i(h,{recursive:!0,mode:448}),n(h,448),f(`/tmp/qbotclaw`)!==`available`&&!p(`/tmp/qbotclaw`)?m():h}catch{return m()}}function _(){let e=r();try{if(!a.existsSync(e))return;let t=a.readFileSync(e,`utf-8`),n=d.parse(t)?.logging;return!n||typeof n!=`object`||Array.isArray(n)?void 0:n}catch{return}}const ae=[`silent`,`fatal`,`error`,`warn`,`info`,`debug`,`trace`];function oe(e){if(typeof e!=`string`)return;let t=e.trim();return ae.includes(t)?t:void 0}function v(e,t=`info`){return oe(e)??t}function y(e){return{fatal:0,error:1,warn:2,info:3,debug:4,trace:5,silent:1/0}[e]}const b={cachedLogger:null,cachedSettings:null,cachedConsoleSettings:null,overrideSettings:null,invalidEnvLogLevelValue:null,consolePatched:!1,forceConsoleToStderr:!1,consoleTimestampPrefix:!1,consoleSubsystemFilter:null,resolvingConsoleSettings:!1,streamErrorHandlersInstalled:!1,rawConsole:null};function se(){let e=process.env.OPENCLAW_LOG_LEVEL,t=typeof e==`string`?e.trim():``;if(!t){b.invalidEnvLogLevelValue=null;return}let n=oe(t);if(n)return b.invalidEnvLogLevelValue=null,n;b.invalidEnvLogLevelValue!==t&&(b.invalidEnvLogLevelValue=t,process.stderr.write(`[openclaw] Ignoring invalid OPENCLAW_LOG_LEVEL="${t}" (allowed: ${ae.join(`|`)}).\n`))}function x(e){let t=process.getBuiltinModule;if(typeof t!=`function`)return null;try{let n=t(`module`),r=typeof n.createRequire==`function`?n.createRequire:null;return r?r(e):null}catch{return null}}function ce(e){try{return new Intl.DateTimeFormat(`en`,{timeZone:e}),!0}catch{return!1}}function S(e,t){let n=t??process.env.TZ,r=n&&ce(n)?n:Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Intl.DateTimeFormat(`en`,{timeZone:r,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hour12:!1,fractionalSecondDigits:3,timeZoneName:`longOffset`}),a=Object.fromEntries(i.formatToParts(e).map(e=>[e.type,e.value])),o=a.timeZoneName??`GMT`,s=o===`GMT`?`+00:00`:o.slice(3);return`${a.year}-${a.month}-${a.day}T${a.hour}:${a.minute}:${a.second}.${a.fractionalSecond}${s}`}const C=g();o.join(C,`qbotclaw.log`);const w=`qbotclaw`,T=`.log`,E=500*1024*1024,le=x(import.meta.url),D=new Set;function ue(e=process.argv){let[t,n]=p(e,2);return t===`config`&&n===`validate`}function de(e,t){e.attachTransport(e=>{if(D.has(t))try{t(e)}catch{}})}function fe(e){return process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`&&!e&&!b.overrideSettings}function pe(){let e=se();if(fe(e))return{level:`silent`,file:xe(),maxFileBytes:E};let t=b.overrideSettings??_();if(!t&&!ue())try{t=(le?.(`../config/config.js`))?.loadConfig?.().logging}catch{t=void 0}let n=process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_FILE_LOG!==`1`?`silent`:`info`,r=v(t?.level,n);return{level:e??r,file:t?.file??xe(),maxFileBytes:ge(t?.maxFileBytes)}}function me(e,t){return e?e.level!==t.level||e.file!==t.file||e.maxFileBytes!==t.maxFileBytes:!0}function O(e){let t=b.cachedSettings??pe();return b.cachedSettings||=t,t.level===`silent`?!1:y(e)<=y(t.level)}function he(e){let t=new u({name:`openclaw`,minLevel:y(e.level),type:`hidden`});if(e.level===`silent`){for(let e of D)de(t,e);return t}a.mkdirSync(o.dirname(e.file),{recursive:!0}),Se(e.file)&&Ce(o.dirname(e.file));let n=_e(e.file),r=!1;t.attachTransport(t=>{try{let i=S(t.date??new Date),a=`${JSON.stringify({...t,time:i})}\n`,o=Buffer.byteLength(a,`utf8`),s=n+o;if(s>e.maxFileBytes){if(!r){r=!0;let t=JSON.stringify({time:S(new Date),level:`warn`,subsystem:`logging`,message:`log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}`});k(e.file,`${t}\n`),process.stderr.write(`[openclaw] log file size cap reached; suppressing writes file=${e.file} maxFileBytes=${e.maxFileBytes}\n`)}return}k(e.file,a)&&(n=s)}catch{}});for(let e of D)de(t,e);return t}function ge(e){return typeof e==`number`&&Number.isFinite(e)&&e>0?Math.floor(e):E}function _e(e){try{return a.statSync(e).size}catch{return 0}}function k(e,t){try{return a.appendFileSync(e,t,{encoding:`utf8`}),!0}catch{return!1}}function A(){let e=pe(),t=b.cachedLogger,n=b.cachedSettings;return(!t||me(n,e))&&(b.cachedLogger=he(e),b.cachedSettings=e),b.cachedLogger}function ve(e,t){let n=A(),r=t?.level?y(t.level):void 0,i=e?JSON.stringify(e):void 0;return n.getSubLogger({name:i,minLevel:r,prefix:e?[i??``]:[]})}function ye(e,t){return{level:t,child:n=>ye(e.getSubLogger({name:n?JSON.stringify(n):void 0}),t),trace:(...t)=>e.trace(...t),debug:(...t)=>e.debug(...t),info:(...t)=>e.info(...t),warn:(...t)=>e.warn(...t),error:(...t)=>e.error(...t),fatal:(...t)=>e.fatal(...t)}}function be(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,`0`)}-${String(e.getDate()).padStart(2,`0`)}`}function xe(){let e=be(new Date);return o.join(C,`${w}-${e}${T}`)}function Se(e){let t=o.basename(e);return t.startsWith(`${w}-`)&&t.endsWith(T)&&t.length===`${w}-YYYY-MM-DD${T}`.length}function Ce(e){try{let t=a.readdirSync(e,{withFileTypes:!0}),n=Date.now()-864e5;for(let r of t){if(!r.isFile()||!r.name.startsWith(`${w}-`)||!r.name.endsWith(T))continue;let t=o.join(e,r.name);try{a.statSync(t).mtimeMs<n&&a.rmSync(t,{force:!0})}catch{}}}catch{}}const j={accent:`#FF5A2D`,accentBright:`#FF7A3D`,accentDim:`#D14A22`,info:`#FF8A5B`,success:`#2FBF71`,warn:`#FFB020`,error:`#E23D2D`,muted:`#8B7F77`},we=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`,M=process.env.NO_COLOR&&!we?new l({level:0}):c,N=e=>M.hex(e),P={accent:N(j.accent),accentBright:N(j.accentBright),accentDim:N(j.accentDim),info:N(j.info),success:N(j.success),warn:N(j.warn),error:N(j.error),muted:N(j.muted),heading:M.bold.hex(j.accent),command:N(j.accentBright),option:N(j.warn)},Te=()=>M.level>0,Ee=(e,t,n)=>e?t(n):n;let F=!1;function De(e){F=e}function I(){return F}function L(){return F||O(`debug`)}function R(e){if(L()){try{A().debug({message:e},`verbose`)}catch{}F&&console.log(P.muted(e))}}function Oe(e){F&&console.log(P.muted(e))}const ke=P.success,z=P.warn,B=P.info,V=P.error;let H=null;function Ae(e){e.isTTY&&(H=e)}function U(){H?.isTTY&&H.write(`\r\x1B[2K`)}function je(e){H&&(e&&H!==e||(H=null))}function W(e,t,n){let r=n?` (${n})`:``,i=`[terminal] restore ${e} failed${r}: ${String(t)}`;try{process.stderr.write(`${i}\n`)}catch(e){console.error(`[terminal] restore reporting failed${r}: ${String(e)}`)}}function Me(e,t={}){let n=t.resumeStdinIfPaused??t.resumeStdin??!1;try{U()}catch(t){W(`progress line`,t,e)}let r=process.stdin;if(r.isTTY&&typeof r.setRawMode==`function`){try{r.setRawMode(!1)}catch(t){W(`raw mode`,t,e)}if(n&&typeof r.isPaused==`function`&&r.isPaused())try{r.resume()}catch(t){W(`stdin resume`,t,e)}}if(process.stdout.isTTY)try{process.stdout.write(`\x1B[0m\x1B[?25h\x1B[?1000l\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?2004l`)}catch(t){W(`stdout reset`,t,e)}}function Ne(e=process.env){return e.VITEST!==`true`||e.OPENCLAW_TEST_RUNTIME_LOG===`1`?!0:typeof console.log.mock==`object`}function Pe(){return{log:(...e)=>{Ne()&&(U(),console.log(...e))},error:(...e)=>{U(),console.error(...e)}}}const G={...Pe(),exit:e=>{throw Me(`runtime exit`,{resumeStdinIfPaused:!1}),process.exit(e),Error(`unreachable`)}};function Fe(){return{...Pe(),exit:e=>{throw Error(`exit ${e}`)}}}const Ie=RegExp(`\\x1b\\[[0-9;]*m`,`g`),Le=RegExp(`\\x1b\\]8;;.*?\\x1b\\\\|\\x1b\\]8;;\\x1b\\\\`,`g`);typeof Intl<`u`&&`Segmenter`in Intl&&new Intl.Segmenter(void 0,{granularity:`grapheme`});function Re(e){return e.replace(Le,``).replace(Ie,``)}function ze(e){let t=Re(e);for(let e=0;e<=31;e++)t=t.replaceAll(String.fromCharCode(e),``);return t.replaceAll(``,``)}const Be=x(import.meta.url);let Ve=()=>{try{return(Be?.(`../config/config.js`))?.loadConfig?.().logging}catch{return}};function He(e){return I()?`debug`:!e&&process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`?`silent`:v(e,`info`)}function Ue(e){return e===`compact`||e===`json`||e===`pretty`?e:process.stdout.isTTY?`pretty`:`compact`}function We(){let e=se();if(process.env.VITEST===`true`&&process.env.OPENCLAW_TEST_CONSOLE!==`1`&&!I()&&!e&&!b.overrideSettings)return{level:`silent`,style:Ue(void 0)};let t=b.overrideSettings??_();if(!t)if(b.resolvingConsoleSettings)t=void 0;else{b.resolvingConsoleSettings=!0;try{t=Ve()}finally{b.resolvingConsoleSettings=!1}}return{level:e??He(t?.consoleLevel),style:Ue(t?.consoleStyle)}}function Ge(e,t){return e?e.level!==t.level||e.style!==t.style:!0}function Ke(){let e=We(),t=b.cachedConsoleSettings;return(!t||Ge(t,e))&&(b.cachedConsoleSettings=e),b.cachedConsoleSettings}function qe(e){let t=b.consoleSubsystemFilter;return!t||t.length===0?!0:t.some(t=>e===t||e.startsWith(`${t}/`))}function K(e){let t=new Date;return e===`pretty`?`${String(t.getHours()).padStart(2,`0`)}:${String(t.getMinutes()).padStart(2,`0`)}:${String(t.getSeconds()).padStart(2,`0`)}`:S(t)}function Je(e,t){return t.level===`silent`?!1:y(e)<=y(t.level)}(()=>{let e=process.getBuiltinModule;if(typeof e!=`function`)return null;try{let t=e(`util`);return typeof t.inspect==`function`?t.inspect:null}catch{return null}})();function Ye(){let e=(process.env.TERM??``).toLowerCase();return process.env.COLORTERM||process.env.TERM_PROGRAM?!0:e.length>0&&e!==`dumb`}function Xe(){let e=typeof process.env.FORCE_COLOR==`string`&&process.env.FORCE_COLOR.trim().length>0&&process.env.FORCE_COLOR.trim()!==`0`;return process.env.NO_COLOR&&!e?new l({level:0}):process.stdout.isTTY||process.stderr.isTTY||Ye()?new l({level:1}):new l({level:0})}const Ze=[`cyan`,`green`,`yellow`,`blue`,`magenta`,`red`],Qe={"gmail-watcher":`blue`},$e=[`gateway`,`channels`,`providers`],et=new Set([`telegram`,`whatsapp`,`discord`,`irc`,`googlechat`,`slack`,`signal`,`imessage`]);function tt(e,t){let n=Qe[t];if(n)return e[n];let r=0;for(let e=0;e<t.length;e+=1)r=r*31+t.charCodeAt(e)|0;return e[Ze[Math.abs(r)%Ze.length]]}function nt(e){let t=e.split(`/`).filter(Boolean),n=t.join(`/`)||e;for(;t.length>0&&$e.includes(t[0]);)t.shift();return t.length===0?n:et.has(t[0])?t[0]:t.length>2?t.slice(-2).join(`/`):t.join(`/`)}function rt(e,t){if(!t)return e;if(e.startsWith(`[`)){let n=e.indexOf(`]`);if(n>1&&e.slice(1,n).toLowerCase()===t.toLowerCase()){let t=n+1;for(;e[t]===` `;)t+=1;return e.slice(t)}}if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return e;let n=e.slice(t.length,t.length+1);if(n!==`:`&&n!==` `)return e;let r=t.length;for(;e[r]===` `;)r+=1;for(e[r]===`:`&&(r+=1);e[r]===` `;)r+=1;return e.slice(r)}function it(e){let t=e.style===`json`?e.subsystem:nt(e.subsystem);if(e.style===`json`)return JSON.stringify({time:K(`json`),level:e.level,subsystem:t,message:e.message,...e.meta});let n=Xe(),r=`[${t}]`,i=tt(n,t),a=e.level===`error`||e.level===`fatal`?n.red:e.level===`warn`?n.yellow:e.level===`debug`||e.level===`trace`?n.gray:n.cyan,o=rt(e.message,t);return`${[e.style===`pretty`?n.gray(K(`pretty`)):b.consoleTimestampPrefix?n.gray(K(e.style)):``,i(r)].filter(Boolean).join(` `)} ${a(o)}`}function at(e,t){U();let n=process.platform===`win32`&&process.env.GITHUB_ACTIONS===`true`?t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,`?`).replace(/[\uD800-\uDFFF]/g,`?`):t,r=b.rawConsole??console;b.forceConsoleToStderr||e===`error`||e===`fatal`?(r.error??console.error)(n):e===`warn`?(r.warn??console.warn)(n):(r.log??console.log)(n)}function ot(e){return I()||e.level===`error`||e.level===`fatal`||!(e.subsystem===`agent/embedded`||e.subsystem.startsWith(`agent/embedded/`)||e.subsystem===`model-fallback`||e.subsystem.startsWith(`model-fallback/`))?!1:(typeof e.meta?.runId==`string`?e.meta.runId:typeof e.meta?.sessionId==`string`?e.meta.sessionId:void 0)?.startsWith(`probe-`)?!0:/(sessionId|runId)=probe-/.test(e.message)}function st(e,t,n,r){if(t===`silent`)return;let i=e[t];typeof i==`function`&&(r&&Object.keys(r).length>0?i.call(e,r,n):i.call(e,n))}function q(e){let t=null,n=()=>(t||=ve({subsystem:e}),t),r=(t,r,i)=>{let a=Ke(),o=Je(t,{level:a.level})&&qe(e),s=O(t);if(!o&&!s)return;let c,l=i;if(i&&Object.keys(i).length>0){let{consoleMessage:e,...t}=i;typeof e==`string`&&(c=e),l=Object.keys(t).length>0?t:void 0}if(s&&st(n(),t,r,l),!o)return;let u=c??r;ot({level:t,subsystem:e,message:u,meta:l})||at(t,it({level:t,subsystem:e,message:a.style===`json`?r:u,style:a.style,meta:l}))},i=t=>Je(t,{level:Ke().level})&&qe(e),a=e=>O(e);return{subsystem:e,isEnabled:(e,t=`any`)=>t===`console`?i(e):t===`file`?a(e):i(e)||a(e),trace:(e,t)=>r(`trace`,e,t),debug:(e,t)=>r(`debug`,e,t),info:(e,t)=>r(`info`,e,t),warn:(e,t)=>r(`warn`,e,t),error:(e,t)=>r(`error`,e,t),fatal:(e,t)=>r(`fatal`,e,t),raw:t=>{if(a(`info`)&&st(n(),`info`,t,{raw:!0}),i(`info`)){if(ot({level:`info`,subsystem:e,message:t}))return;at(`info`,t)}},child:t=>q(`${e}/${t}`)}}function ct(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.prototype.toString.call(e)===`[object Object]`}async function lt(e){await a.promises.mkdir(e,{recursive:!0})}async function ut(e){try{return await a.promises.access(e),!0}catch{return!1}}function J(e,t,n){return Math.max(t,Math.min(n,e))}function dt(e,t,n){return J(Math.floor(e),t,n)}const ft=J;function pt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function mt(e){try{return JSON.parse(e)}catch{return null}}function ht(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Y(e){let t=e.replace(/^whatsapp:/,``).trim().replace(/[^\d+]/g,``);return t.startsWith(`+`)?`+${t.slice(1)}`:`+${t}`}function gt(e,t){if(!e||!Array.isArray(t)||t.length===0)return!1;let n=Y(e);return t.some(e=>{if(e===`*`)return!1;try{return Y(String(e))===n}catch{return!1}})}function _t(e){let t=e.replace(/^whatsapp:/,``).trim();return t.includes(`@`)?t:`${Y(t).replace(/\D/g,``)}@s.whatsapp.net`}function vt(e){let t=new Set,r=e=>{e&&t.add(Q(e))};r(e?.authDir);for(let t of e?.lidMappingDirs??[])r(t);return r(n()),r(o.join(jt,`credentials`)),[...t]}function yt(e,t){let n=`lid-mapping-${e}_reverse.json`,r=vt(t);for(let e of r){let t=o.join(e,n);try{let e=a.readFileSync(t,`utf8`),n=JSON.parse(e);if(n==null)continue;return Y(String(n))}catch{}}return null}function X(e,t){let n=e.match(/^(\d+)(?::\d+)?@(s\.whatsapp\.net|hosted)$/);if(n)return`+${n[1]}`;let r=e.match(/^(\d+)(?::\d+)?@(lid|hosted\.lid)$/);if(r){let e=r[1],n=yt(e,t);if(n)return n;(t?.logMissing??L())&&R(`LID mapping not found for ${e}; skipping inbound message`)}return null}async function bt(e,t){if(!e)return null;let n=X(e,t);if(n)return n;if(!/(@lid|@hosted\.lid)$/.test(e)||!t?.lidLookup?.getPNForLID)return null;try{let n=await t.lidLookup.getPNForLID(e);return n?X(n,t):null}catch(t){return L()&&R(`LID mapping lookup failed for ${e}: ${String(t)}`),null}}function xt(e){return new Promise(t=>setTimeout(t,e))}function St(e){return e>=55296&&e<=56319}function Z(e){return e>=56320&&e<=57343}function Ct(e,t,n){let r=e.length,i=t<0?Math.max(r+t,0):Math.min(t,r),a=n===void 0?r:n<0?Math.max(r+n,0):Math.min(n,r);if(a<i){let e=i;i=a,a=e}return i>0&&i<r&&Z(e.charCodeAt(i))&&St(e.charCodeAt(i-1))&&(i+=1),a>0&&a<r&&St(e.charCodeAt(a-1))&&Z(e.charCodeAt(a))&&--a,e.slice(i,a)}function wt(e,t){let n=Math.max(0,Math.floor(t));return e.length<=n?e:Ct(e,0,n)}function Q(n){if(!n)return``;let r=n.trim();if(!r)return r;if(r.startsWith(`~`)){let n=t(r,{home:e(process.env,s.homedir),env:process.env,homedir:s.homedir});return o.resolve(n)}return o.resolve(r)}function Tt(t=process.env,n=s.homedir){let r=t.OPENCLAW_STATE_DIR?.trim()||t.CLAWDBOT_STATE_DIR?.trim();if(r)return Q(r);let i=o.join(e(t,n),`.qbotclaw`);try{if(a.existsSync(i))return i}catch{}return i}function Et(){return i(process.env,s.homedir)}function Dt(){let e=Et();if(e)return process.env.OPENCLAW_HOME?.trim()?{home:e,prefix:`$OPENCLAW_HOME`}:{home:e,prefix:`~`}}function Ot(e){if(!e)return e;let t=Dt();if(!t)return e;let{home:n,prefix:r}=t;return e===n?r:e.startsWith(`${n}/`)||e.startsWith(`${n}\\`)?`${r}${e.slice(n.length)}`:e}function kt(e){if(!e)return e;let t=Dt();return t?e.split(t.home).join(t.prefix):e}function At(e,t,n){let r=e.replaceAll(`\x1B`,``),i=t.replaceAll(`\x1B`,``);return n?.force===!0||n?.force!==!1&&process.stdout.isTTY?`\u001b]8;;${i}\u0007${r}\u001b]8;;\u0007`:n?.fallback??`${r} (${i})`}const jt=Tt(),Mt=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function Nt(e){let t=e.match(Mt);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function $(e){let t=e.runtime===G?Nt(e.message):null;if(t){q(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),A()[e.loggerMethod](e.message)}function Pt(e,t=G){$({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:B,loggerMethod:`info`,subsystemMethod:`info`})}function Ft(e,t=G){$({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:z,loggerMethod:`warn`,subsystemMethod:`warn`})}function It(e,t=G){$({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:V,loggerMethod:`error`,subsystemMethod:`error`})}function Lt(e){A().debug(e),Oe(e)}export{Re as A,L as B,xt as C,ct as D,wt as E,je as F,P as G,z as H,V as I,x as J,ve as K,B as L,G as M,U as N,q as O,Ae as P,f as Q,R,Ot as S,_t as T,Ee as U,ke as V,Te as W,_ as X,v as Y,g as Z,Tt as _,jt as a,mt as b,J as c,At as d,ht as f,ut as g,Y as h,Ft as i,Fe as j,ze as k,lt as l,X as m,It as n,ft as o,gt as p,ye as q,Pt as r,dt as s,Lt as t,pt as u,bt as v,Ct as w,kt as x,Q as y,De as z};
2
+ //# sourceMappingURL=logger-DwWqfo66.js.map
@@ -1 +1,2 @@
1
1
  import{C as e,D as t,M as n,p as r,t as i,v as a,y as o}from"./subsystem-BLbY429l.js";const s=/^([a-z][a-z0-9-]{1,20}):\s+(.*)$/i;function c(e){let t=e.match(s);if(!t)return null;let[,n,r]=t;return{subsystem:n,rest:r}}function l(e){let t=e.runtime===r?c(e.message):null;if(t){i(t.subsystem)[e.subsystemMethod](t.rest);return}e.runtime[e.runtimeMethod](e.runtimeFormatter(e.message)),n()[e.loggerMethod](e.message)}function u(e,t=r){l({message:e,runtime:t,runtimeMethod:`log`,runtimeFormatter:o,loggerMethod:`info`,subsystemMethod:`info`})}function d(e,n=r){l({message:e,runtime:n,runtimeMethod:`log`,runtimeFormatter:t,loggerMethod:`warn`,subsystemMethod:`warn`})}function f(e,t=r){l({message:e,runtime:t,runtimeMethod:`error`,runtimeFormatter:a,loggerMethod:`error`,subsystemMethod:`error`})}function p(t){n().debug(t),e(t)}export{d as i,f as n,u as r,p as t};
2
+ //# sourceMappingURL=logger-kQAOe3qp.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{o as t}from"./utils-UGOV_184.js";import{Ws as n}from"./model-selection-BlC_rXAN.js";var r=e({formatConfigPath:()=>i,logConfigUpdated:()=>a});function i(e=n().configPath){return t(e)}function a(e,t={}){let r=i(t.path??n().configPath),a=t.suffix?` ${t.suffix}`:``;e.log(`Updated ${r}${a}`)}export{a as n,r,i as t};
2
+ //# sourceMappingURL=logging-Dqe9dxSX.js.map
@@ -1 +1,2 @@
1
1
  import{t as e}from"./rolldown-runtime-CNxR59P3.js";import{Oo as t}from"./auth-profiles-T8DuH3ax.js";import{a as n}from"./utils-CGdo13HV.js";var r=e({formatConfigPath:()=>i,logConfigUpdated:()=>a});function i(e=t().configPath){return n(e)}function a(e,n={}){let r=i(n.path??t().configPath),a=n.suffix?` ${n.suffix}`:``;e.log(`Updated ${r}${a}`)}export{a as n,r,i as t};
2
+ //# sourceMappingURL=logging-tYw1NbJd.js.map
@@ -1 +1,2 @@
1
1
  import{I as e,L as t,M as n,V as r,r as i}from"./logger-DwWqfo66.js";import{Za as a,gr as o,qs as s,xr as c}from"./model-selection-vfhBuN9O.js";import{i as l,n as u,t as d}from"./session-DA-i5xQ-.js";import{DisconnectReason as f}from"@whiskeysockets/baileys";async function p(p,m,h=n,g){let _=m??l,v=o({cfg:a(),accountId:g}),y=await d(!0,p,{authDir:v.authDir});i(`Waiting for WhatsApp connection...`,h);try{await _(y),console.log(r(`✅ Linked! Credentials saved for future sends.`))}catch(n){let i=n?.error?.output?.statusCode??n?.output?.statusCode;if(i===515){console.log(t(`WhatsApp asked for a restart after pairing (code 515); creds are saved. Restarting connection once…`));try{y.ws?.close()}catch{}let e=await d(!1,p,{authDir:v.authDir});try{await _(e),console.log(r(`✅ Linked after restart; web session ready.`));return}finally{setTimeout(()=>e.ws?.close(),500)}}if(i===f.loggedOut)throw await c({authDir:v.authDir,isLegacyAuthDir:v.isLegacyAuthDir,runtime:h}),console.error(e(`WhatsApp reported the session is logged out. Cleared cached web session; please rerun ${s(`openclaw channels login`)} and scan the QR again.`)),Error(`Session logged out; cache cleared. Re-run login.`,{cause:n});let a=u(n);throw console.error(e(`WhatsApp Web connection ended before fully opening. ${a}`)),Error(a,{cause:n})}finally{setTimeout(()=>{try{y.ws?.close()}catch{}},500)}}export{p as t};
2
+ //# sourceMappingURL=login-BOlqRyr0.js.map
@@ -1 +1,2 @@
1
1
  import{E as e,p as t,v as n,y as r}from"./subsystem-C5XF2Fy5.js";import{qs as i}from"./model-selection-BlC_rXAN.js";import{t as a}from"./command-format-BbDT1tlm.js";import{U as o,Y as s}from"./plugins-CYLrFT4h.js";import{r as c}from"./logger-Bl8URnrW.js";import{i as l,n as u,t as d}from"./session-CUUGjiV3.js";import{DisconnectReason as f}from"@whiskeysockets/baileys";async function p(p,m,h=t,g){let _=m??l,v=o({cfg:i(),accountId:g}),y=await d(!0,p,{authDir:v.authDir});c(`Waiting for WhatsApp connection...`,h);try{await _(y),console.log(e(`✅ Linked! Credentials saved for future sends.`))}catch(t){let i=t?.error?.output?.statusCode??t?.output?.statusCode;if(i===515){console.log(r(`WhatsApp asked for a restart after pairing (code 515); creds are saved. Restarting connection once…`));try{y.ws?.close()}catch{}let t=await d(!1,p,{authDir:v.authDir});try{await _(t),console.log(e(`✅ Linked after restart; web session ready.`));return}finally{setTimeout(()=>t.ws?.close(),500)}}if(i===f.loggedOut)throw await s({authDir:v.authDir,isLegacyAuthDir:v.isLegacyAuthDir,runtime:h}),console.error(n(`WhatsApp reported the session is logged out. Cleared cached web session; please rerun ${a(`openclaw channels login`)} and scan the QR again.`)),Error(`Session logged out; cache cleared. Re-run login.`,{cause:t});let o=u(t);throw console.error(n(`WhatsApp Web connection ended before fully opening. ${o}`)),Error(o,{cause:t})}finally{setTimeout(()=>{try{y.ws?.close()}catch{}},500)}}export{p as t};
2
+ //# sourceMappingURL=login-CkWesqf_.js.map
@@ -1 +1,2 @@
1
1
  import{E as e,p as t,v as n,y as r}from"./subsystem-BLbY429l.js";import{jo as i}from"./auth-profiles-T8DuH3ax.js";import{t as a}from"./command-format-CLxIPuLR.js";import{U as o,Y as s}from"./plugins-DNlgeTTc.js";import{r as c}from"./logger-kQAOe3qp.js";import{i as l,n as u,t as d}from"./session-bk3gFwO4.js";import{DisconnectReason as f}from"@whiskeysockets/baileys";async function p(p,m,h=t,g){let _=m??l,v=o({cfg:i(),accountId:g}),y=await d(!0,p,{authDir:v.authDir});c(`Waiting for WhatsApp connection...`,h);try{await _(y),console.log(e(`✅ Linked! Credentials saved for future sends.`))}catch(t){let i=t?.error?.output?.statusCode??t?.output?.statusCode;if(i===515){console.log(r(`WhatsApp asked for a restart after pairing (code 515); creds are saved. Restarting connection once…`));try{y.ws?.close()}catch{}let t=await d(!1,p,{authDir:v.authDir});try{await _(t),console.log(e(`✅ Linked after restart; web session ready.`));return}finally{setTimeout(()=>t.ws?.close(),500)}}if(i===f.loggedOut)throw await s({authDir:v.authDir,isLegacyAuthDir:v.isLegacyAuthDir,runtime:h}),console.error(n(`WhatsApp reported the session is logged out. Cleared cached web session; please rerun ${a(`openclaw channels login`)} and scan the QR again.`)),Error(`Session logged out; cache cleared. Re-run login.`,{cause:t});let o=u(t);throw console.error(n(`WhatsApp Web connection ended before fully opening. ${o}`)),Error(o,{cause:t})}finally{setTimeout(()=>{try{y.ws?.close()}catch{}},500)}}export{p as t};
2
+ //# sourceMappingURL=login-Do_NA1Je.js.map
@@ -1 +1,2 @@
1
1
  import{a as e,h as t,l as n,u as r}from"./subsystem-Bc2XrjUz.js";import{Ws as i,Za as a,gr as o,xr as s}from"./model-selection-B5JsBS9D.js";import{r as c}from"./logger-5W0OocJW.js";import{i as l,n as u,t as d}from"./session-C9TDmUS7.js";import{DisconnectReason as f}from"@whiskeysockets/baileys";async function p(p,m,h=e,g){let _=m??l,v=o({cfg:a(),accountId:g}),y=await d(!0,p,{authDir:v.authDir});c(`Waiting for WhatsApp connection...`,h);try{await _(y),console.log(t(`✅ Linked! Credentials saved for future sends.`))}catch(e){let a=e?.error?.output?.statusCode??e?.output?.statusCode;if(a===515){console.log(r(`WhatsApp asked for a restart after pairing (code 515); creds are saved. Restarting connection once…`));try{y.ws?.close()}catch{}let e=await d(!1,p,{authDir:v.authDir});try{await _(e),console.log(t(`✅ Linked after restart; web session ready.`));return}finally{setTimeout(()=>e.ws?.close(),500)}}if(a===f.loggedOut)throw await s({authDir:v.authDir,isLegacyAuthDir:v.isLegacyAuthDir,runtime:h}),console.error(n(`WhatsApp reported the session is logged out. Cleared cached web session; please rerun ${i(`openclaw channels login`)} and scan the QR again.`)),Error(`Session logged out; cache cleared. Re-run login.`,{cause:e});let o=u(e);throw console.error(n(`WhatsApp Web connection ended before fully opening. ${o}`)),Error(o,{cause:e})}finally{setTimeout(()=>{try{y.ws?.close()}catch{}},500)}}export{p as t};
2
+ //# sourceMappingURL=login-op9S8yqv.js.map
@@ -1 +1,2 @@
1
1
  import"./paths-piJASC5k.js";import"./paths-BpQOWYiT.js";import{I as e,L as t,M as n,V as r,r as i}from"./logger-DwWqfo66.js";import{Tr as a,Za as o,gr as s,kr as c,xr as l}from"./model-selection-vfhBuN9O.js";import"./github-copilot-token-wm6mbypz.js";import"./proxy-env-BNhTHkd_.js";import{i as u,n as d,r as f,t as p}from"./session-DA-i5xQ-.js";import{randomUUID as m}from"node:crypto";import{DisconnectReason as h}from"@whiskeysockets/baileys";import g from"qrcode-terminal/vendor/QRCode/index.js";import _ from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as v}from"node:zlib";const y=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function b(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=y[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function x(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=b(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function S(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function C(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=v(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,x(`IHDR`,s),x(`IDAT`,a),x(`IEND`,Buffer.alloc(0))])}const w=g,T=_;function E(e){let t=new w(-1,T.L);return t.addData(e),t.make(),t}async function D(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=E(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)S(s,a+e,t,o,0,0,0,255)}}return C(s,o,o).toString(`base64`)}const O=new Map;function k(e){try{e.ws?.close()}catch{}}async function A(e,t){let n=O.get(e);n&&(k(n.sock),O.delete(e)),t&&i(t)}function j(e){return Date.now()-e.startedAt<18e4}function M(e,t){t.waitPromise=u(t.sock).then(()=>{let n=O.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=O.get(e);r?.id===t.id&&(r.error=d(n),r.errorStatus=f(n))})}async function N(e,n){if(e.restartAttempted)return!1;e.restartAttempted=!0,n.log(t(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),k(e.sock);try{return e.sock=await p(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,M(e.accountId,e),!0}catch(t){return e.error=d(t),e.errorStatus=f(t),!1}}async function P(e={}){let r=e.runtime??n,i=s({cfg:o(),accountId:e.accountId}),l=await c(i.authDir),u=a(i.authDir);if(l&&!e.force)return{message:`WhatsApp is already linked (${u.e164??u.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let d=O.get(i.accountId);if(d&&j(d)&&d.qrDataUrl)return{qrDataUrl:d.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await A(i.accountId);let f=null,h=null,g=new Promise((e,t)=>{f=e,h=t}),_=setTimeout(()=>{h?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),v,y=null;try{v=await p(!1,!!e.verbose,{authDir:i.authDir,onQr:e=>{if(y)return;y=e;let n=O.get(i.accountId);n&&!n.qr&&(n.qr=e),clearTimeout(_),r.log(t(`WhatsApp QR received.`)),f?.(e)}})}catch(e){return clearTimeout(_),await A(i.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let b={accountId:i.accountId,authDir:i.authDir,isLegacyAuthDir:i.isLegacyAuthDir,id:m(),sock:v,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};O.set(i.accountId,b),y&&!b.qr&&(b.qr=y),M(i.accountId,b);let x;try{x=await g}catch(e){return clearTimeout(_),await A(i.accountId),{message:`Failed to get QR: ${String(e)}`}}return b.qrDataUrl=`data:image/png;base64,${await D(x)}`,{qrDataUrl:b.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function F(t={}){let i=t.runtime??n,a=s({cfg:o(),accountId:t.accountId}),c=O.get(a.accountId);if(!c)return{connected:!1,message:`No active WhatsApp login in progress.`};let u=c;if(!j(u))return await A(a.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let d=Math.max(t.timeoutMs??12e4,1e3),f=Date.now()+d;for(;;){let t=f-Date.now();if(t<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let n=new Promise(e=>setTimeout(()=>e(`timeout`),t));if(await Promise.race([u.waitPromise.then(()=>`done`),n])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(u.error){if(u.errorStatus===h.loggedOut){await l({authDir:u.authDir,isLegacyAuthDir:u.isLegacyAuthDir,runtime:i});let t=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await A(a.accountId,t),i.log(e(t)),{connected:!1,message:t}}if(u.errorStatus===515&&await N(u,i)&&j(u))continue;let t=`WhatsApp login failed: ${u.error}`;return await A(a.accountId,t),i.log(e(t)),{connected:!1,message:t}}if(u.connected){let e=`✅ Linked! WhatsApp is ready.`;return i.log(r(e)),await A(a.accountId),{connected:!0,message:e}}return{connected:!1,message:`Login ended without a connection.`}}}export{P as startWebLoginWithQr,F as waitForWebLogin};
2
+ //# sourceMappingURL=login-qr-B6rxvoTS.js.map
@@ -1 +1,2 @@
1
1
  import"./paths-B4IRk3wi.js";import{E as e,p as t,v as n,y as r}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import{qs as i}from"./model-selection-BlC_rXAN.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import{$ as a,U as o,Y as s,rt as c}from"./plugins-CYLrFT4h.js";import{r as l}from"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{i as u,n as d,r as f,t as p}from"./session-CUUGjiV3.js";import{randomUUID as m}from"node:crypto";import{DisconnectReason as h}from"@whiskeysockets/baileys";import g from"qrcode-terminal/vendor/QRCode/index.js";import _ from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as v}from"node:zlib";const y=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function b(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=y[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function x(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=b(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function S(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function C(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=v(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,x(`IHDR`,s),x(`IDAT`,a),x(`IEND`,Buffer.alloc(0))])}const w=g,T=_;function E(e){let t=new w(-1,T.L);return t.addData(e),t.make(),t}async function D(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=E(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)S(s,a+e,t,o,0,0,0,255)}}return C(s,o,o).toString(`base64`)}const O=new Map;function k(e){try{e.ws?.close()}catch{}}async function A(e,t){let n=O.get(e);n&&(k(n.sock),O.delete(e)),t&&l(t)}function j(e){return Date.now()-e.startedAt<18e4}function M(e,t){t.waitPromise=u(t.sock).then(()=>{let n=O.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=O.get(e);r?.id===t.id&&(r.error=d(n),r.errorStatus=f(n))})}async function N(e,t){if(e.restartAttempted)return!1;e.restartAttempted=!0,t.log(r(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),k(e.sock);try{return e.sock=await p(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,M(e.accountId,e),!0}catch(t){return e.error=d(t),e.errorStatus=f(t),!1}}async function P(e={}){let n=e.runtime??t,s=o({cfg:i(),accountId:e.accountId}),l=await c(s.authDir),u=a(s.authDir);if(l&&!e.force)return{message:`WhatsApp is already linked (${u.e164??u.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let d=O.get(s.accountId);if(d&&j(d)&&d.qrDataUrl)return{qrDataUrl:d.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await A(s.accountId);let f=null,h=null,g=new Promise((e,t)=>{f=e,h=t}),_=setTimeout(()=>{h?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),v,y=null;try{v=await p(!1,!!e.verbose,{authDir:s.authDir,onQr:e=>{if(y)return;y=e;let t=O.get(s.accountId);t&&!t.qr&&(t.qr=e),clearTimeout(_),n.log(r(`WhatsApp QR received.`)),f?.(e)}})}catch(e){return clearTimeout(_),await A(s.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let b={accountId:s.accountId,authDir:s.authDir,isLegacyAuthDir:s.isLegacyAuthDir,id:m(),sock:v,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};O.set(s.accountId,b),y&&!b.qr&&(b.qr=y),M(s.accountId,b);let x;try{x=await g}catch(e){return clearTimeout(_),await A(s.accountId),{message:`Failed to get QR: ${String(e)}`}}return b.qrDataUrl=`data:image/png;base64,${await D(x)}`,{qrDataUrl:b.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function F(r={}){let a=r.runtime??t,c=o({cfg:i(),accountId:r.accountId}),l=O.get(c.accountId);if(!l)return{connected:!1,message:`No active WhatsApp login in progress.`};let u=l;if(!j(u))return await A(c.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let d=Math.max(r.timeoutMs??12e4,1e3),f=Date.now()+d;for(;;){let t=f-Date.now();if(t<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let r=new Promise(e=>setTimeout(()=>e(`timeout`),t));if(await Promise.race([u.waitPromise.then(()=>`done`),r])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(u.error){if(u.errorStatus===h.loggedOut){await s({authDir:u.authDir,isLegacyAuthDir:u.isLegacyAuthDir,runtime:a});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await A(c.accountId,e),a.log(n(e)),{connected:!1,message:e}}if(u.errorStatus===515&&await N(u,a)&&j(u))continue;let e=`WhatsApp login failed: ${u.error}`;return await A(c.accountId,e),a.log(n(e)),{connected:!1,message:e}}if(u.connected){let t=`✅ Linked! WhatsApp is ready.`;return a.log(e(t)),await A(c.accountId),{connected:!0,message:t}}return{connected:!1,message:`Login ended without a connection.`}}}export{P as startWebLoginWithQr,F as waitForWebLogin};
2
+ //# sourceMappingURL=login-qr-BGH9zmhw.js.map
@@ -1 +1,2 @@
1
1
  import{B as e,C as t,H as n,S as r,_ as i,b as a,g as o,t as s,v as c,w as l,x as u,y as d}from"./config-D12ZLKqh.js";import"./secret-file-DuWm26jS.js";import"./token-DnTmiyJu.js";import{_ as f,b as p,h as m,l as h,n as g,o as _,u as v}from"./utils-R-mFyVJi.js";import{o as y,u as b}from"./proxy-env-DrC3TIGh.js";import x from"node:fs";import{randomUUID as S}from"node:crypto";import{DisconnectReason as C,fetchLatestBaileysVersion as w,makeCacheableSignalKeyStore as T,makeWASocket as E,useMultiFileAuthState as ee}from"@whiskeysockets/baileys";import D from"qrcode-terminal/vendor/QRCode/index.js";import O from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as k}from"node:zlib";import A from"qrcode-terminal";const j=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function M(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=j[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function N(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=M(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function P(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function F(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=k(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,N(`IHDR`,s),N(`IDAT`,a),N(`IEND`,Buffer.alloc(0))])}const I=D,L=O;function R(e){let t=new I(-1,L.L);return t.addData(e),t.make(),t}async function z(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=R(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)P(s,a+e,t,o,0,0,0,255)}}return F(s,o,o).toString(`base64`)}let B=Promise.resolve();function V(e,t,n){B=B.then(()=>H(e,t,n)).catch(e=>{n.warn({error:String(e)},`WhatsApp creds save queue error`)})}async function H(e,n,i){try{let n=t(e),i=r(e),a=d(n);if(a)try{JSON.parse(a),x.copyFileSync(n,i);try{x.chmodSync(i,384)}catch{}}catch{}}catch{}try{await Promise.resolve(n());try{x.chmodSync(t(e),384)}catch{}}catch(e){i.warn({error:String(e)},`failed saving WhatsApp creds`)}}async function U(t,r,i={}){let a=p(f({module:`baileys`},{level:r?`info`:`silent`}),r?`info`:`silent`),o=_(i.authDir??u());await g(o);let s=f({module:`web-session`});c(o);let{state:l,saveCreds:d}=await ee(o),{version:v}=await w(),y=E({auth:{creds:l.creds,keys:T(l.keys,a)},version:v,logger:a,printQRInTerminal:!1,browser:[`openclaw`,`cli`,n],syncFullHistory:!1,markOnlineOnConnect:!1});return y.ev.on(`creds.update`,()=>V(o,d,s)),y.ev.on(`connection.update`,n=>{try{let{connection:a,lastDisconnect:o,qr:s}=n;s&&(i.onQr?.(s),t&&(console.log(`Scan this QR in WhatsApp (Linked Devices):`),A.generate(s,{small:!0}))),a===`close`&&G(o?.error)===C.loggedOut&&console.error(h(`WhatsApp session logged out. Run: ${e(`openclaw channels login`)}`)),a===`open`&&r&&console.log(m(`WhatsApp Web connected.`))}catch(e){s.error({error:String(e)},`connection.update handler error`)}}),y.ws&&typeof y.ws.on==`function`&&y.ws.on(`error`,e=>{s.error({error:String(e)},`WebSocket error`)}),y}async function W(e){return new Promise((t,n)=>{let r=e.ev,i=(...e)=>{let a=e[0]??{};a.connection===`open`&&(r.off?.(`connection.update`,i),t()),a.connection===`close`&&(r.off?.(`connection.update`,i),n(a.lastDisconnect??Error(`Connection closed`)))};e.ev.on(`connection.update`,i)})}function G(e){return e?.output?.statusCode??e?.status}function K(e,t=800){try{let n=new WeakSet,r=JSON.stringify(e,(e,t)=>{if(typeof t==`bigint`)return t.toString();if(typeof t==`function`){let e=t.name;return`[Function ${typeof e==`string`&&e.length>0?e:`anonymous`}]`}if(typeof t==`object`&&t){if(n.has(t))return`[Circular]`;n.add(t)}return t},2);return r?r.length>t?`${r.slice(0,t)}…`:r:String(e)}catch{return String(e)}}function q(e){if(!e||typeof e!=`object`)return null;let t=e?.output;if(!t||typeof t!=`object`)return null;let n=t.payload,r=typeof t.statusCode==`number`?t.statusCode:typeof n?.statusCode==`number`?n.statusCode:void 0,i=typeof n?.error==`string`?n.error:void 0,a=typeof n?.message==`string`?n.message:void 0;return!r&&!i&&!a?null:{statusCode:r,error:i,message:a}}function J(e){if(e instanceof Error)return e.message;if(typeof e==`string`)return e;if(!e||typeof e!=`object`)return String(e);let t=q(e)??q(e?.error)??q(e?.lastDisconnect?.error),n=t?.statusCode??G(e),r=e?.code,i=typeof r==`string`||typeof r==`number`?String(r):void 0,a=[t?.message,typeof e?.message==`string`?e.message:void 0,typeof e?.error?.message==`string`?e.error?.message:void 0].filter(e=>!!(e&&e.trim().length>0))[0],o=[];return typeof n==`number`&&o.push(`status=${n}`),t?.error&&o.push(t.error),a&&o.push(a),i&&o.push(`code=${i}`),o.length>0?o.join(` `):K(e)}const Y=new Map;function X(e){try{e.ws?.close()}catch{}}async function Z(e,t){let n=Y.get(e);n&&(X(n.sock),Y.delete(e)),t&&y(t)}function Q(e){return Date.now()-e.startedAt<18e4}function $(e,t){t.waitPromise=W(t.sock).then(()=>{let n=Y.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=Y.get(e);r?.id===t.id&&(r.error=J(n),r.errorStatus=G(n))})}async function te(e,t){if(e.restartAttempted)return!1;e.restartAttempted=!0,t.log(v(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),X(e.sock);try{return e.sock=await U(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,$(e.accountId,e),!0}catch(t){return e.error=J(t),e.errorStatus=G(t),!1}}async function ne(e={}){let t=e.runtime??b,n=o({cfg:s(),accountId:e.accountId}),r=await l(n.authDir),i=a(n.authDir);if(r&&!e.force)return{message:`WhatsApp is already linked (${i.e164??i.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let c=Y.get(n.accountId);if(c&&Q(c)&&c.qrDataUrl)return{qrDataUrl:c.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await Z(n.accountId);let u=null,d=null,f=new Promise((e,t)=>{u=e,d=t}),p=setTimeout(()=>{d?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),m,h=null;try{m=await U(!1,!!e.verbose,{authDir:n.authDir,onQr:e=>{if(h)return;h=e;let r=Y.get(n.accountId);r&&!r.qr&&(r.qr=e),clearTimeout(p),t.log(v(`WhatsApp QR received.`)),u?.(e)}})}catch(e){return clearTimeout(p),await Z(n.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let g={accountId:n.accountId,authDir:n.authDir,isLegacyAuthDir:n.isLegacyAuthDir,id:S(),sock:m,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};Y.set(n.accountId,g),h&&!g.qr&&(g.qr=h),$(n.accountId,g);let _;try{_=await f}catch(e){return clearTimeout(p),await Z(n.accountId),{message:`Failed to get QR: ${String(e)}`}}return g.qrDataUrl=`data:image/png;base64,${await z(_)}`,{qrDataUrl:g.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function re(e={}){let t=e.runtime??b,n=o({cfg:s(),accountId:e.accountId}),r=Y.get(n.accountId);if(!r)return{connected:!1,message:`No active WhatsApp login in progress.`};let a=r;if(!Q(a))return await Z(n.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let c=Math.max(e.timeoutMs??12e4,1e3),l=Date.now()+c;for(;;){let e=l-Date.now();if(e<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let r=new Promise(t=>setTimeout(()=>t(`timeout`),e));if(await Promise.race([a.waitPromise.then(()=>`done`),r])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(a.error){if(a.errorStatus===C.loggedOut){await i({authDir:a.authDir,isLegacyAuthDir:a.isLegacyAuthDir,runtime:t});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await Z(n.accountId,e),t.log(h(e)),{connected:!1,message:e}}if(a.errorStatus===515&&await te(a,t)&&Q(a))continue;let e=`WhatsApp login failed: ${a.error}`;return await Z(n.accountId,e),t.log(h(e)),{connected:!1,message:e}}if(a.connected){let e=`✅ Linked! WhatsApp is ready.`;return t.log(m(e)),await Z(n.accountId),{connected:!0,message:e}}return{connected:!1,message:`Login ended without a connection.`}}}export{ne as startWebLoginWithQr,re as waitForWebLogin};
2
+ //# sourceMappingURL=login-qr-CiENvgog.js.map
@@ -1 +1,2 @@
1
1
  import{E as e,p as t,v as n,y as r}from"./subsystem-BLbY429l.js";import"./paths-BjD3T_xq.js";import"./boolean-D15s2V33.js";import{jo as i}from"./auth-profiles-T8DuH3ax.js";import"./agent-scope-DAWJwFfl.js";import"./utils-CGdo13HV.js";import"./openclaw-root-CnsBf6ZU.js";import"./github-copilot-token-C79yeDKS.js";import"./env-overrides-DHtB4kK3.js";import"./version-q3SkUw2K.js";import"./registry-BptzrW8D.js";import"./skills-CKTicUKS.js";import"./frontmatter-C7mzDNxd.js";import{$ as a,U as o,Y as s,rt as c}from"./plugins-DNlgeTTc.js";import{r as l}from"./logger-kQAOe3qp.js";import"./exec-B3eleY5O.js";import"./windows-spawn-7oINn5ao.js";import"./redact-CnRxK70G.js";import"./path-alias-guards-kY_ZbWs-.js";import"./errors-6SQWM9dj.js";import"./paths-BfjJY2VL.js";import"./chat-envelope-Bznn2SoS.js";import{i as u,n as d,r as f,t as p}from"./session-bk3gFwO4.js";import{randomUUID as m}from"node:crypto";import{DisconnectReason as h}from"@whiskeysockets/baileys";import g from"qrcode-terminal/vendor/QRCode/index.js";import _ from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as v}from"node:zlib";const y=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function b(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=y[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function x(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=b(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function S(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function C(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=v(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,x(`IHDR`,s),x(`IDAT`,a),x(`IEND`,Buffer.alloc(0))])}const w=g,T=_;function E(e){let t=new w(-1,T.L);return t.addData(e),t.make(),t}async function D(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=E(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)S(s,a+e,t,o,0,0,0,255)}}return C(s,o,o).toString(`base64`)}const O=new Map;function k(e){try{e.ws?.close()}catch{}}async function A(e,t){let n=O.get(e);n&&(k(n.sock),O.delete(e)),t&&l(t)}function j(e){return Date.now()-e.startedAt<18e4}function M(e,t){t.waitPromise=u(t.sock).then(()=>{let n=O.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=O.get(e);r?.id===t.id&&(r.error=d(n),r.errorStatus=f(n))})}async function N(e,t){if(e.restartAttempted)return!1;e.restartAttempted=!0,t.log(r(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),k(e.sock);try{return e.sock=await p(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,M(e.accountId,e),!0}catch(t){return e.error=d(t),e.errorStatus=f(t),!1}}async function P(e={}){let n=e.runtime??t,s=o({cfg:i(),accountId:e.accountId}),l=await c(s.authDir),u=a(s.authDir);if(l&&!e.force)return{message:`WhatsApp is already linked (${u.e164??u.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let d=O.get(s.accountId);if(d&&j(d)&&d.qrDataUrl)return{qrDataUrl:d.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await A(s.accountId);let f=null,h=null,g=new Promise((e,t)=>{f=e,h=t}),_=setTimeout(()=>{h?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(e.timeoutMs??3e4,5e3)),v,y=null;try{v=await p(!1,!!e.verbose,{authDir:s.authDir,onQr:e=>{if(y)return;y=e;let t=O.get(s.accountId);t&&!t.qr&&(t.qr=e),clearTimeout(_),n.log(r(`WhatsApp QR received.`)),f?.(e)}})}catch(e){return clearTimeout(_),await A(s.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let b={accountId:s.accountId,authDir:s.authDir,isLegacyAuthDir:s.isLegacyAuthDir,id:m(),sock:v,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!e.verbose};O.set(s.accountId,b),y&&!b.qr&&(b.qr=y),M(s.accountId,b);let x;try{x=await g}catch(e){return clearTimeout(_),await A(s.accountId),{message:`Failed to get QR: ${String(e)}`}}return b.qrDataUrl=`data:image/png;base64,${await D(x)}`,{qrDataUrl:b.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function F(r={}){let a=r.runtime??t,c=o({cfg:i(),accountId:r.accountId}),l=O.get(c.accountId);if(!l)return{connected:!1,message:`No active WhatsApp login in progress.`};let u=l;if(!j(u))return await A(c.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let d=Math.max(r.timeoutMs??12e4,1e3),f=Date.now()+d;for(;;){let t=f-Date.now();if(t<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let r=new Promise(e=>setTimeout(()=>e(`timeout`),t));if(await Promise.race([u.waitPromise.then(()=>`done`),r])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(u.error){if(u.errorStatus===h.loggedOut){await s({authDir:u.authDir,isLegacyAuthDir:u.isLegacyAuthDir,runtime:a});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await A(c.accountId,e),a.log(n(e)),{connected:!1,message:e}}if(u.errorStatus===515&&await N(u,a)&&j(u))continue;let e=`WhatsApp login failed: ${u.error}`;return await A(c.accountId,e),a.log(n(e)),{connected:!1,message:e}}if(u.connected){let t=`✅ Linked! WhatsApp is ready.`;return a.log(e(t)),await A(c.accountId),{connected:!0,message:t}}return{connected:!1,message:`Login ended without a connection.`}}}export{P as startWebLoginWithQr,F as waitForWebLogin};
2
+ //# sourceMappingURL=login-qr-DsV-lxFd.js.map
@@ -1 +1,2 @@
1
1
  import"./paths-CrCoPIVK.js";import"./paths-CChBdtE8.js";import{a as e,h as t,l as n,u as r}from"./subsystem-Bc2XrjUz.js";import"./workspace-B0ZQeHXg.js";import"./utils-D3t-vPka.js";import{Tr as i,Za as a,gr as o,kr as s,xr as c}from"./model-selection-B5JsBS9D.js";import"./github-copilot-token-DePP-lIf.js";import"./boolean-DypnRoRK.js";import"./proxy-env-DcmW_urA.js";import"./frontmatter-CzpfPBFl.js";import{r as l}from"./logger-5W0OocJW.js";import{i as u,n as d,r as f,t as p}from"./session-C9TDmUS7.js";import{randomUUID as m}from"node:crypto";import{DisconnectReason as h}from"@whiskeysockets/baileys";import g from"qrcode-terminal/vendor/QRCode/index.js";import _ from"qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel.js";import{deflateSync as v}from"node:zlib";const y=(()=>{let e=new Uint32Array(256);for(let t=0;t<256;t+=1){let n=t;for(let e=0;e<8;e+=1)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n>>>0}return e})();function b(e){let t=4294967295;for(let n=0;n<e.length;n+=1)t=y[(t^e[n])&255]^t>>>8;return(t^4294967295)>>>0}function x(e,t){let n=Buffer.from(e,`ascii`),r=Buffer.alloc(4);r.writeUInt32BE(t.length,0);let i=b(Buffer.concat([n,t])),a=Buffer.alloc(4);return a.writeUInt32BE(i,0),Buffer.concat([r,n,t,a])}function S(e,t,n,r,i,a,o,s=255){if(t<0||n<0||t>=r)return;let c=(n*r+t)*4;c<0||c+3>=e.length||(e[c]=i,e[c+1]=a,e[c+2]=o,e[c+3]=s)}function C(e,t,n){let r=t*4,i=Buffer.alloc((r+1)*n);for(let t=0;t<n;t+=1){let n=t*(r+1);i[n]=0,e.copy(i,n+1,t*r,t*r+r)}let a=v(i),o=Buffer.from([137,80,78,71,13,10,26,10]),s=Buffer.alloc(13);return s.writeUInt32BE(t,0),s.writeUInt32BE(n,4),s[8]=8,s[9]=6,s[10]=0,s[11]=0,s[12]=0,Buffer.concat([o,x(`IHDR`,s),x(`IDAT`,a),x(`IEND`,Buffer.alloc(0))])}const w=g,T=_;function E(e){let t=new w(-1,T.L);return t.addData(e),t.make(),t}async function D(e,t={}){let{scale:n=6,marginModules:r=4}=t,i=E(e),a=i.getModuleCount(),o=(a+r*2)*n,s=Buffer.alloc(o*o*4,255);for(let e=0;e<a;e+=1)for(let t=0;t<a;t+=1){if(!i.isDark(e,t))continue;let a=(t+r)*n,c=(e+r)*n;for(let e=0;e<n;e+=1){let t=c+e;for(let e=0;e<n;e+=1)S(s,a+e,t,o,0,0,0,255)}}return C(s,o,o).toString(`base64`)}const O=new Map;function k(e){try{e.ws?.close()}catch{}}async function A(e,t){let n=O.get(e);n&&(k(n.sock),O.delete(e)),t&&l(t)}function j(e){return Date.now()-e.startedAt<18e4}function M(e,t){t.waitPromise=u(t.sock).then(()=>{let n=O.get(e);n?.id===t.id&&(n.connected=!0)}).catch(n=>{let r=O.get(e);r?.id===t.id&&(r.error=d(n),r.errorStatus=f(n))})}async function N(e,t){if(e.restartAttempted)return!1;e.restartAttempted=!0,t.log(r(`WhatsApp asked for a restart after pairing (code 515); retrying connection once…`)),k(e.sock);try{return e.sock=await p(!1,e.verbose,{authDir:e.authDir}),e.connected=!1,e.error=void 0,e.errorStatus=void 0,M(e.accountId,e),!0}catch(t){return e.error=d(t),e.errorStatus=f(t),!1}}async function P(t={}){let n=t.runtime??e,c=o({cfg:a(),accountId:t.accountId}),l=await s(c.authDir),u=i(c.authDir);if(l&&!t.force)return{message:`WhatsApp is already linked (${u.e164??u.jid??`unknown`}). Say “relink” if you want a fresh QR.`};let d=O.get(c.accountId);if(d&&j(d)&&d.qrDataUrl)return{qrDataUrl:d.qrDataUrl,message:`QR already active. Scan it in WhatsApp → Linked Devices.`};await A(c.accountId);let f=null,h=null,g=new Promise((e,t)=>{f=e,h=t}),_=setTimeout(()=>{h?.(Error(`Timed out waiting for WhatsApp QR`))},Math.max(t.timeoutMs??3e4,5e3)),v,y=null;try{v=await p(!1,!!t.verbose,{authDir:c.authDir,onQr:e=>{if(y)return;y=e;let t=O.get(c.accountId);t&&!t.qr&&(t.qr=e),clearTimeout(_),n.log(r(`WhatsApp QR received.`)),f?.(e)}})}catch(e){return clearTimeout(_),await A(c.accountId),{message:`Failed to start WhatsApp login: ${String(e)}`}}let b={accountId:c.accountId,authDir:c.authDir,isLegacyAuthDir:c.isLegacyAuthDir,id:m(),sock:v,startedAt:Date.now(),connected:!1,waitPromise:Promise.resolve(),restartAttempted:!1,verbose:!!t.verbose};O.set(c.accountId,b),y&&!b.qr&&(b.qr=y),M(c.accountId,b);let x;try{x=await g}catch(e){return clearTimeout(_),await A(c.accountId),{message:`Failed to get QR: ${String(e)}`}}return b.qrDataUrl=`data:image/png;base64,${await D(x)}`,{qrDataUrl:b.qrDataUrl,message:`Scan this QR in WhatsApp → Linked Devices.`}}async function F(r={}){let i=r.runtime??e,s=o({cfg:a(),accountId:r.accountId}),l=O.get(s.accountId);if(!l)return{connected:!1,message:`No active WhatsApp login in progress.`};let u=l;if(!j(u))return await A(s.accountId),{connected:!1,message:`The login QR expired. Ask me to generate a new one.`};let d=Math.max(r.timeoutMs??12e4,1e3),f=Date.now()+d;for(;;){let e=f-Date.now();if(e<=0)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};let r=new Promise(t=>setTimeout(()=>t(`timeout`),e));if(await Promise.race([u.waitPromise.then(()=>`done`),r])===`timeout`)return{connected:!1,message:`Still waiting for the QR scan. Let me know when you’ve scanned it.`};if(u.error){if(u.errorStatus===h.loggedOut){await c({authDir:u.authDir,isLegacyAuthDir:u.isLegacyAuthDir,runtime:i});let e=`WhatsApp reported the session is logged out. Cleared cached web session; please scan a new QR.`;return await A(s.accountId,e),i.log(n(e)),{connected:!1,message:e}}if(u.errorStatus===515&&await N(u,i)&&j(u))continue;let e=`WhatsApp login failed: ${u.error}`;return await A(s.accountId,e),i.log(n(e)),{connected:!1,message:e}}if(u.connected){let e=`✅ Linked! WhatsApp is ready.`;return i.log(t(e)),await A(s.accountId),{connected:!0,message:e}}return{connected:!1,message:`Login ended without a connection.`}}}export{P as startWebLoginWithQr,F as waitForWebLogin};
2
+ //# sourceMappingURL=login-qr-QcDMg23y.js.map
@@ -1 +1,2 @@
1
1
  import"./paths-B4IRk3wi.js";import{A as e,F as t,I as n,O as r,h as i,k as a}from"./subsystem-C5XF2Fy5.js";import"./utils-UGOV_184.js";import"./model-selection-BlC_rXAN.js";import"./agent-scope-DXZc3eNT.js";import"./openclaw-root-D_0Q6--h.js";import"./github-copilot-token-DGYAlOmV.js";import{t as o}from"./command-format-BbDT1tlm.js";import"./boolean-Ch3DfXPy.js";import"./env-D7wNuBx1.js";import"./env-overrides-DXJbFrwI.js";import"./registry-hFAtCSWG.js";import"./skills-DHbOKEGc.js";import"./frontmatter-BkZkwkVO.js";import"./plugins-CYLrFT4h.js";import"./logger-Bl8URnrW.js";import"./exec-DHqLtFYt.js";import"./windows-spawn-AB7ItGAE.js";import"./redact-3_CiXMY6.js";import"./path-alias-guards-mvyLCPlN.js";import"./errors-Bunti32V.js";import"./paths-yLEk_25I.js";import"./chat-envelope-HVpKusFc.js";import{t as s}from"./call-CqoMqP5b.js";import{t as c}from"./links-CySwdMcF.js";import"./progress-LNttnI-y.js";import{n as l,t as u}from"./gateway-rpc-iFvDyHYd.js";import{t as d}from"./parse-log-line-NV-cipB_.js";import{setTimeout as f}from"node:timers/promises";function p(e){let t=e?.code;return t===`EPIPE`||t===`EIO`}function m(e={}){let t=!1,n=!1,r=(t,r)=>{n||(n=!0,e.onBrokenPipe?.(t,r))},i=(e,n)=>{if(!p(e))throw e;return t=!0,r(e,n),!1},a=(n,r)=>{if(t)return!1;try{e.beforeWrite?.()}catch(e){return i(e,process.stderr)}try{return n.write(r),!t}catch(e){return i(e,n)}};return{write:a,writeLine:(e,t)=>a(e,`${t}\n`),reset:()=>{t=!1,n=!1},isClosed:()=>t}}function h(e,t){if(!e)return t;let n=Number.parseInt(e,10);return Number.isFinite(n)&&n>0?n:t}async function g(e,t,n){let r=await l(`logs.tail`,e,{cursor:t,limit:h(e.limit,200),maxBytes:h(e.maxBytes,25e4)},{progress:n});if(!r||typeof r!=`object`)throw Error(`Unexpected logs.tail response`);return r}function _(e,n=`plain`,r=!1){if(!e)return``;let i=new Date(e);if(Number.isNaN(i.getTime()))return e;let a;return a=r?t(i):i.toISOString(),n===`pretty`?a.slice(11,19):a}function v(t,n){let i=d(t);if(!i)return t;let a=i.subsystem??i.module??``,o=_(i.time,n.pretty?`pretty`:`plain`,n.localTime),s=i.level??``,c=s.padEnd(5).trim(),l=i.message||i.raw;if(!n.pretty)return[o,s,a,l].filter(Boolean).join(` `).trim();let u=r(n.rich,e.muted,o),f=r(n.rich,e.accent,a),p=s===`error`||s===`fatal`?r(n.rich,e.error,c):s===`warn`?r(n.rich,e.warn,c):s===`debug`||s===`trace`?r(n.rich,e.muted,c):r(n.rich,e.info,c),m=s===`error`||s===`fatal`?r(n.rich,e.error,l):s===`warn`?r(n.rich,e.warn,l):s===`debug`||s===`trace`?r(n.rich,e.muted,l):r(n.rich,e.info,l);return[[u,p,f].filter(Boolean).join(` `),m].filter(Boolean).join(` `).trim()}function y(){let e=m({beforeWrite:()=>i(),onBrokenPipe:(e,t)=>{let n=e.code??`EPIPE`,r=`openclaw logs: output ${t===process.stdout?`stdout`:`stderr`} closed (${n}). Stopping tail.`;try{i(),process.stderr.write(`${r}\n`)}catch{}}});return{logLine:t=>e.writeLine(process.stdout,t),errorLine:t=>e.writeLine(process.stderr,t),emitJsonLine:(t,n=!1)=>e.write(n?process.stderr:process.stdout,`${JSON.stringify(t)}\n`)}}function b(t,n,i,a,c,l){let u=s({url:n.url}),d=`Gateway not reachable. Is it running and accessible?`,f=`Hint: run \`${o(`openclaw doctor`)}\`.`,p=t instanceof Error?t.message:String(t);if(i===`json`)return c({type:`error`,message:d,error:p,details:u,hint:f},!0),void 0;l(r(a,e.error,d))&&l(u.message)&&l(r(a,e.muted,f))}function x(t){let i=t.command(`logs`).description(`Tail gateway file logs via RPC`).option(`--limit <n>`,`Max lines to return`,`200`).option(`--max-bytes <n>`,`Max bytes to read`,`250000`).option(`--follow`,`Follow log output`,!1).option(`--interval <ms>`,`Polling interval in ms`,`1000`).option(`--json`,`Emit JSON log lines`,!1).option(`--plain`,`Plain text output (no ANSI styling)`,!1).option(`--no-color`,`Disable ANSI colors`).option(`--local-time`,`Display timestamps in local timezone`,!1).addHelpText(`after`,()=>`\n${e.muted(`Docs:`)} ${c(`/cli/logs`,`docs.openclaw.ai/cli/logs`)}\n`);u(i),i.action(async t=>{let{logLine:i,errorLine:o,emitJsonLine:s}=y(),c=h(t.interval,1e3),l,u=!0,p=!!t.json,m=!p&&!!process.stdout.isTTY&&!t.plain,_=a()&&t.color!==!1,x=!!t.localTime||!!process.env.TZ&&n(process.env.TZ);for(;;){let n,a=u&&!t.follow;try{n=await g(t,l,a)}catch(e){b(e,t,p?`json`:`text`,_,s,o),process.exit(1);return}let h=Array.isArray(n.lines)?n.lines:[];if(p){if(u&&!s({type:`meta`,file:n.file,cursor:n.cursor,size:n.size}))return;for(let e of h){let t=d(e);if(t){if(!s({type:`log`,...t}))return}else if(!s({type:`raw`,raw:e}))return}if(n.truncated&&!s({type:`notice`,message:`Log tail truncated (increase --max-bytes).`})||n.reset&&!s({type:`notice`,message:`Log cursor reset (file rotated).`}))return}else{if(u&&n.file&&!i(`${m?r(_,e.muted,`Log file:`):`Log file:`} ${n.file}`))return;for(let e of h)if(!i(v(e,{pretty:m,rich:_,localTime:x})))return;if(n.truncated&&!o(`Log tail truncated (increase --max-bytes).`)||n.reset&&!o(`Log cursor reset (file rotated).`))return}if(l=typeof n.cursor==`number`&&Number.isFinite(n.cursor)?n.cursor:l,u=!1,!t.follow)return;await f(c)}})}export{x as registerLogsCli};
2
+ //# sourceMappingURL=logs-cli-B4eUg_87.js.map