@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
@@ -64,3 +64,4 @@ stat -c "%F|%s|%Y" -- "$2"`,args:[t.canonicalParentPath,t.basename],allowFailure
64
64
  `)}function yG(){try{if(Ct(`which rg`,{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`],timeout:2e3}).trim())return}catch{}if(A.platform()===`darwin`)return{command:`/usr/bin/true`}}let bG=!1,xG=null;function SG(e,t){if(e===null)return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}let CG=null;async function wG(){return CG||=(await import(`@anthropic-ai/sandbox-runtime`)).SandboxManager,CG}const TG={network:{allowedDomains:[`github.com`,`*.github.com`,`*.githubusercontent.com`,`npmjs.org`,`*.npmjs.org`,`registry.npmjs.org`,`pypi.org`,`*.pypi.org`,`api.anthropic.com`,`*.openai.com`,`*.qq.com`,`*.imtt.qq.com`],deniedDomains:[],allowLocalBinding:!0},filesystem:{denyRead:[`~/.ssh`,`~/.gnupg`,`~/.aws/credentials`],allowWrite:[`.`,`/tmp`,`/private/tmp`,`/var/tmp`,`/private/var/tmp`],denyWrite:[`.env`,`.env.local`,`.env.production`]}};function EG(e,t){return e.map(e=>e===`.`?t?O.resolve(t):process.cwd():e===`~`||e.startsWith(`~/`)?O.resolve(A.homedir(),e.slice(e.startsWith(`~/`)?2:1)):e)}function DG(e,t){let n=yG(),r=n?{ripgrep:n}:{};if(!e)return{...TG,filesystem:{...TG.filesystem,allowWrite:EG(TG.filesystem?.allowWrite??[],t)},...r};let i=e.allowWrite??TG.filesystem?.allowWrite??[],a=e.allowedDomains?.includes(`*`);return{network:{allowedDomains:a?void 0:e.allowedDomains??TG.network?.allowedDomains??[],deniedDomains:a?[]:e.deniedDomains??TG.network?.deniedDomains??[],allowLocalBinding:e.allowLocalBinding??TG.network?.allowLocalBinding??!0,allowUnixSockets:e.allowUnixSockets},filesystem:{denyRead:e.denyRead??TG.filesystem?.denyRead??[],allowWrite:EG(i,t),denyWrite:e.denyWrite??TG.filesystem?.denyWrite??[]},...r}}async function OG(e){let t=e??DG();if(!(bG&&SG(xG,t)))try{await(await wG()).initialize(t,void 0,!0),bG=!0,xG=t,console.log(`[QBotClaw:SRT:Init] ✅ sandbox-runtime 初始化成功 | config=${JSON.stringify(t,null,2)}`),PG()}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Init] ❌ sandbox-runtime 初始化失败: ${t}`),e}}async function kG(e){bG||await OG();try{return await(await wG()).wrapWithSandbox(e)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Exec] ❌ wrapWithSandbox 失败: ${t}`),e}}async function AG(){if(bG)try{await(await wG()).reset(),bG=!1,xG=null}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Cleanup] ❌ sandbox-runtime 重置失败: ${t}`)}}async function jG(e){if(!bG)return[];try{return(await wG()).getSandboxViolationStore().getViolationsForCommand(e)}catch{return[]}}async function MG(){if(bG)try{(await wG()).cleanupAfterCommand()}catch{}}let NG=!1;function PG(){if(!NG){NG=!0,process.on(`exit`,()=>{bG&&(console.log(`[QBotClaw:SRT:Cleanup] 🧹 进程退出,执行 SRT 清理...`),AG())});for(let e of[`SIGTERM`,`SIGINT`])process.on(e,()=>{AG().finally(()=>{process.kill(process.pid,e)})})}}async function FG(e,n,r){if(await D.mkdir(e,{recursive:!0}),n){let r=E(n),i=[Ae,b,s,v,l,y,c];for(let n of i){let i=O.join(r,n),a=O.join(e,n);try{await D.access(a)}catch{try{let e=await t({absolutePath:i,rootPath:r,boundaryLabel:`sandbox seed workspace`});if(!e.ok)continue;try{let t=k.readFileSync(e.fd,`utf-8`);await D.writeFile(a,t,{encoding:`utf-8`,flag:`wx`})}finally{k.closeSync(e.fd)}}catch{}}}}await ye({dir:e,ensureBootstrapFiles:!r})}async function IG(e){let{cfg:t,rawSessionKey:n}=e,i=E(e.workspaceDir?.trim()||r),a=E(t.workspaceRoot),o=UL(t.scope,n),s=t.scope===`shared`?a:HL(a,o),c=t.workspaceAccess===`rw`?i:s;if(c===s){if(await FG(s,i,e.config?.agents?.defaults?.skipBootstrap),t.workspaceAccess!==`rw`)try{await EA({sourceWorkspaceDir:i,targetWorkspaceDir:s,config:e.config})}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);Le.error?.(`Sandbox skill sync failed: ${t}`)}}else await D.mkdir(c,{recursive:!0});return{agentWorkspaceDir:i,scopeKey:o,sandboxWorkspaceDir:s,workspaceDir:c}}async function LG(e){if(e.docker.user?.trim())return e.docker;let t=e.stat??(e=>D.stat(e));try{let n=await t(e.workspaceDir),r=Number.isInteger(n.uid)?n.uid:null,i=Number.isInteger(n.gid)?n.gid:null;return r===null||i===null||r<0||i<0?e.docker:{...e.docker,user:`${r}:${i}`}}catch{return e.docker}}function RG(e){let t=e.sessionKey?.trim();if(!t)return null;let n=_G({cfg:e.config,sessionKey:t});if(!n.sandboxed)return console.log(`[QBotClaw:Sandbox:Init] ❌ 沙箱未启用 | mode=${n.mode} | sessionKey=${t} | sandboxed=false`),null;let r=vD(e.config,n.agentId);return console.log(`[QBotClaw:Sandbox:Init] ✅ 沙箱已启用 | mode=${n.mode} | agentId=${n.agentId} | scope=${r.scope}`),{rawSessionKey:t,runtime:n,cfg:r}}async function zG(e){let t=RG(e);if(!t)return null;let{rawSessionKey:n,cfg:i}=t;if(i.runtime===`srt`){let t=E(e.workspaceDir?.trim()||r);await D.mkdir(t,{recursive:!0});let a=e.config?.agents?.defaults?.sandbox?.srt,o=DG(a,t);try{await OG(o)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);return console.log(`[QBotClaw:SRT:Init] ❌ SRT 初始化失败,回退到非沙箱模式: ${t}`),Le.error?.(`SRT sandbox initialization failed: ${t}`),null}let s={enabled:!0,runtime:`srt`,sessionKey:n,workspaceDir:t,agentWorkspaceDir:t,workspaceAccess:i.workspaceAccess===`none`?`rw`:i.workspaceAccess,containerName:`srt-sandbox-${n}`,containerWorkdir:t,docker:i.docker,tools:i.tools,browserAllowHostControl:i.browser.allowHostControl};if(a?.skillMounts!==!1){let n=[{hostRoot:t,containerRoot:t,writable:s.workspaceAccess===`rw`,source:`workspace`}];for(let e of i.docker.binds??[]){let t=e.split(`:`);if(t.length>=2&&t[0]&&t[1]){let e=E(t[0]);n.push({hostRoot:e,containerRoot:e,writable:!t[2]?.includes(`ro`),source:`bind`})}}let r=EG(a?.allowWrite??o.filesystem?.allowWrite??[],t),c=new Set(n.map(e=>e.hostRoot));for(let e of r){if(c.has(e))continue;let t=!1;for(let n of c)if(e.startsWith(n+O.sep)||e===n){t=!0;break}t||(c.add(e),n.push({hostRoot:e,containerRoot:e,writable:!0,source:`allowWrite`}))}let l=E(`~`);c.has(l)||(c.add(l),n.push({hostRoot:l,containerRoot:l,writable:!1,source:`bind`}));try{let r=CA(t,{config:e.config}),i=new Set;i.add(O.resolve(t));for(let e of r){let t=O.resolve(O.dirname(e.skill.baseDir));if(i.has(t))continue;let r=!1;for(let e of i)if(t.startsWith(e+O.sep)||t===e){r=!0;break}r||(i.add(t),n.push({hostRoot:t,containerRoot:t,writable:!1,source:`bind`}))}}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Init] ⚠️ Skills 源目录收集失败(非致命): ${t}`),Le.error?.(`SRT sandbox skill mount collection failed: ${t}`)}s.fsBridge=XA({workspaceDir:t,containerWorkdir:t,mounts:n,denyReadPaths:(a?.denyRead??o.filesystem?.denyRead??[]).map(e=>E(e))})}else s.fsBridge=YA(t);return s}await lz(i);let{agentWorkspaceDir:a,scopeKey:o,workspaceDir:s}=await IG({cfg:i,rawSessionKey:n,config:e.config,workspaceDir:e.workspaceDir}),c=await LG({docker:i.docker,workspaceDir:s}),l=c===i.docker?i:{...i,docker:c},u=await NR({sessionKey:n,workspaceDir:s,agentWorkspaceDir:a,cfg:l});console.log(`[QBotClaw:Sandbox:Init] 🐳 沙箱容器就绪 | containerName=${u}`);let d=await GR({scopeKey:o,workspaceDir:s,agentWorkspaceDir:a,cfg:l,evaluateEnabled:e.config?.browser?.evaluateEnabled??!0,bridgeAuth:i.browser.enabled?await(async()=>{let t=e.config??kw(),n=uO(t);try{n=(await fO({cfg:t})).auth}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);Le.error?.(`Sandbox browser auth ensure failed: ${t}`)}return n})():void 0}),f={enabled:!0,runtime:`docker`,sessionKey:n,workspaceDir:s,agentWorkspaceDir:a,workspaceAccess:l.workspaceAccess,containerName:u,containerWorkdir:l.docker.workdir,docker:l.docker,tools:l.tools,browserAllowHostControl:l.browser.allowHostControl,browser:d??void 0};return f.fsBridge=ez({sandbox:f}),f}async function BG(e){let t=RG(e);if(!t)return null;let{rawSessionKey:n,cfg:r}=t,{workspaceDir:i}=await IG({cfg:r,rawSessionKey:n,config:e.config,workspaceDir:e.workspaceDir});return{workspaceDir:i,containerWorkdir:r.docker.workdir}}function VG(e){if(typeof e!=`object`||!e)return JSON.stringify(e)??`null`;if(Array.isArray(e))return`[${e.map(e=>VG(e)).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${VG(t[e])}`).join(`,`)}}`}const HG=/\b(?:daily|weekly|monthly)(?:\/(?:daily|weekly|monthly))* (?:usage )?limit(?:s)?(?: (?:exhausted|reached|exceeded))?\b/i,UG={rateLimit:[/rate[_ ]limit|too many requests|429/,`model_cooldown`,`exceeded your current quota`,`resource has been exhausted`,`quota exceeded`,`resource_exhausted`,`usage limit`,/\btpm\b/i,`tokens per minute`,`tokens per day`],overloaded:[/overloaded_error|"type"\s*:\s*"overloaded_error"/i,`overloaded`,/service[_ ]unavailable.*(?:overload|capacity|high[_ ]demand)|(?:overload|capacity|high[_ ]demand).*service[_ ]unavailable/i,`high demand`],timeout:[`timeout`,`timed out`,`service unavailable`,`deadline exceeded`,`context deadline exceeded`,`connection error`,`network error`,`network request failed`,`fetch failed`,`socket hang up`,/\beconn(?:refused|reset|aborted)\b/i,/\benotfound\b/i,/\beai_again\b/i,/without sending (?:any )?chunks?/i,/\bstop reason:\s*(?:abort|error|malformed_response)\b/i,/\breason:\s*(?:abort|error|malformed_response)\b/i,/\bunhandled stop reason:\s*(?:abort|error|malformed_response)\b/i],billing:[/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment/i,`payment required`,`insufficient credits`,/insufficient[_ ]quota/i,`credit balance`,`plans & billing`,`insufficient balance`,`insufficient usd or diem balance`],authPermanent:[/api[_ ]?key[_ ]?(?:revoked|invalid|deactivated|deleted)/i,`invalid_api_key`,`key has been disabled`,`key has been revoked`,`account has been deactivated`,/could not (?:authenticate|validate).*(?:api[_ ]?key|credentials)/i,`permission_error`,`not allowed for this organization`],auth:[/invalid[_ ]?api[_ ]?key/,`incorrect api key`,`invalid token`,`authentication`,`re-authenticate`,`oauth token refresh failed`,`unauthorized`,`forbidden`,`access denied`,`insufficient permissions`,`insufficient permission`,/missing scopes?:/i,`expired`,`token has expired`,/\b401\b/,/\b403\b/,`no credentials found`,`no api key found`],format:[`string should match pattern`,`tool_use.id`,`tool_use_id`,`messages.1.content.1.tool_use.id`,`invalid request format`,/tool call id was.*must be/i]},WG=/^(?:error[:\s-]+)?billing(?:\s+error)?(?:[:\s-]+|$)|^(?:error[:\s-]+)?(?:credit balance|insufficient credits?|payment required|http\s*402\b)/i,GG=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|^\s*402\s+payment/i;function KG(e,t){if(!e)return!1;let n=e.toLowerCase();return t.some(e=>e instanceof RegExp?e.test(n):n.includes(e))}function qG(e){return KG(e,UG.format)}function JG(e){return KG(e,UG.rateLimit)}function YG(e){return KG(e,UG.timeout)}function XG(e){return HG.test(e)}function ZG(e){let t=e.toLowerCase();return t?e.length>512?GG.test(t):KG(t,UG.billing)?!0:WG.test(e)?t.includes(`upgrade`)||t.includes(`credits`)||t.includes(`payment`)||t.includes(`plan`):!1:!1}function QG(e){return KG(e,UG.authPermanent)}function $G(e){return KG(e,UG.auth)}function eK(e){return KG(e,UG.overloaded)}const tK=w(`errors`);function nK(e,t){let n=e?.trim(),r=t?.trim(),i=n&&r?`${n} (${r})`:n||void 0;return i?`⚠️ ${i} returned a billing error — your API key has run out of credits or has an insufficient balance. Check your ${n} billing dashboard and top up or switch to a different API key.`:`⚠️ API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key.`}const rK=nK();function iK(e){if(JG(e))return`⚠️ API rate limit reached. Please try again later.`;if(eK(e))return`The AI service is temporarily overloaded. Please try again in a moment.`}function aK(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`reasoning is mandatory`)||t.includes(`reasoning is required`)||t.includes(`requires reasoning`)||t.includes(`reasoning`)&&t.includes(`cannot be disabled`)}function oK(e){let t=e.toLowerCase();return/\btpm\b/i.test(t)||t.includes(`tokens per minute`)}function sK(e){if(!e)return!1;let t=e.toLowerCase();if(oK(e)||aK(e))return!1;let n=t.includes(`request size exceeds`),r=t.includes(`context window`)||t.includes(`context length`)||t.includes(`maximum context length`);return t.includes(`request_too_large`)||t.includes(`request exceeds the maximum size`)||t.includes(`context length exceeded`)||t.includes(`maximum context length`)||t.includes(`prompt is too long`)||t.includes(`exceeds model context window`)||t.includes(`model token limit`)||n&&r||t.includes(`context overflow:`)||t.includes(`exceed context limit`)||t.includes(`exceeds the model's maximum context`)||t.includes(`max_tokens`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`input length`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`is longer than`)&&r||t.includes(`413`)&&t.includes(`too large`)||t.includes(`context_window_exceeded`)||e.includes(`上下文过长`)||e.includes(`上下文超出`)||e.includes(`上下文长度超`)||e.includes(`超出最大上下文`)||e.includes(`请压缩上下文`)}const cK=/context window.*(too small|minimum is)/i,lK=/context.*overflow|context window.*(too (?:large|long)|exceed|over|limit|max(?:imum)?|requested|sent|tokens)|prompt.*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:request|input).*(?:context|window|length|token).*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:input|request).*(?:is longer|longer than).*(?:context|window|length)/i,uK=/rate limit|too many requests|requests per (?:minute|hour|day)|quota|throttl|429\b|tokens per day/i;function dK(e){return!e||oK(e)||aK(e)||ZG(e)||cK.test(e)||JG(e)?!1:sK(e)?!0:uK.test(e)?!1:lK.test(e)}function fK(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`summarization failed`)||t.includes(`auto-compaction`)||t.includes(`compaction failed`)||t.includes(`compaction`)?dK(e)?!0:t.includes(`context overflow`):!1}const pK=/^(?:error|api\s*error|apierror|openai\s*error|anthropic\s*error|gateway\s*error)[:\s-]+/i,mK=/<\s*\/?\s*final\s*>/gi,hK=/^(?:error|api\s*error|openai\s*error|anthropic\s*error|gateway\s*error|request failed|failed|exception)[:\s-]+/i,gK=/^(?:context overflow:|request_too_large\b|request size exceeds\b|request exceeds the maximum size\b|context length exceeded\b|maximum context length\b|prompt is too long\b|exceeds model context window\b)/i,_K=/^(?:http\s*)?(\d{3})\s+(.+)$/i,vK=/^(?:http\s*)?(\d{3})(?:\s+([\s\S]+))?$/i,yK=/^\s*(?:<!doctype\s+html\b|<html\b)/i,bK=new Set([521,522,523,524,525,526,530]),xK=new Set([499,500,502,503,504,521,522,523,524,529]),SK=[`error`,`bad request`,`not found`,`unauthorized`,`forbidden`,`internal server`,`service unavailable`,`gateway`,`rate limit`,`overloaded`,`timeout`,`timed out`,`invalid`,`too many requests`,`permission`],CK=[`insufficient credits`,`insufficient quota`,`credit balance`,`insufficient balance`,`plans & billing`,`add more credits`,`top up`],wK=[`upgrade your plan`,`upgrade plan`,`current plan`,`subscription`],TK=[`daily`,`weekly`,`monthly`],EK=[`try again`,`retry`,`temporary`,`cooldown`],DK=[`usage limit`,`rate limit`,`organization usage`],OK=[`organization`,`workspace`],kK=[`billing period`,`exceeded`,`reached`,`exhausted`],AK=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment required\b|^\s*402\s+.*used up your points\b/i,jK=/^(?:error[:\s-]+)?(?:(?:http\s*)?402(?:\s+payment required)?|payment required)(?:[:\s-]+|$)/i;function MK(e,t){return t.some(t=>e.includes(t))}function NK(e){return MK(e,CK)||MK(e,wK)&&e.includes(`limit`)||e.includes(`billing hard limit`)||e.includes(`hard limit reached`)||e.includes(`maximum allowed`)&&e.includes(`limit`)}function PK(e){let t=MK(e,TK),n=e.includes(`spend limit`)||e.includes(`spending limit`),r=MK(e,OK);return MK(e,EK)&&MK(e,DK)||t&&(e.includes(`usage limit`)||n)||t&&e.includes(`limit`)&&e.includes(`reset`)||r&&e.includes(`limit`)&&(n||MK(e,kK))}function FK(e){return e.trim().toLowerCase().replace(jK,``).trim()}function IK(e){let t=FK(e);return!t||NK(t)?`billing`:JG(t)||PK(t)?`rate_limit`:`billing`}function LK(e){return AK.test(e)?IK(e):null}function RK(e){let t=e.match(vK);if(!t)return null;let n=Number(t[1]);return Number.isFinite(n)?{code:n,rest:(t[2]??``).trim()}:null}function zK(e){let t=e.trim();if(!t)return!1;let n=RK(t);return!n||n.code<500?!1:bK.has(n.code)?!0:n.code<600&&yK.test(n.rest)&&/<\/html>/i.test(n.rest)}function BK(e){let t=e.trim();if(!t)return!1;let n=RK(t);return n?xK.has(n.code):!1}function VK(e,t){return typeof e!=`number`||!Number.isFinite(e)?null:e===402?t?IK(t):`billing`:e===429?`rate_limit`:e===401||e===403?t&&QG(t)?`auth_permanent`:`auth`:e===408?`timeout`:e===503||e===499?t&&eK(t)?`overloaded`:`timeout`:e===502||e===504?`timeout`:e===529?`overloaded`:e===400?t&&ZG(t)?`billing`:`format`:null}function HK(e){return e&&e.replace(mK,``)}function UK(e){let t=e.trim();if(!t)return e;let n=t.split(/\n{2,}/);if(n.length<2)return e;let r=e=>e.trim().replace(/\s+/g,` `),i=[],a=null;for(let e of n){let t=r(e);a&&t===a||(i.push(e.trim()),a=t)}return i.length===n.length?e:i.join(`
65
65
 
66
66
  `)}function WK(e){if(zK(e))return!0;let t=e.match(_K);if(!t)return!1;let n=Number(t[1]);if(!Number.isFinite(n)||n<400)return!1;let r=t[2].toLowerCase();return SK.some(e=>r.includes(e))}function GK(e){return sK(e)?YK(e)||WK(e)||hK.test(e)||gK.test(e):!1}function KK(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(t.type===`error`||typeof t.request_id==`string`||typeof t.requestId==`string`)return!0;if(`error`in t){let e=t.error;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;if(typeof t.message==`string`||typeof t.type==`string`||typeof t.code==`string`)return!0}}return!1}function qK(e){if(!e)return null;let t=e.trim();if(!t)return null;let n=[t];pK.test(t)&&n.push(t.replace(pK,``).trim());for(let e of n)if(!(!e.startsWith(`{`)||!e.endsWith(`}`)))try{let t=JSON.parse(e);if(KK(t))return t}catch{}return null}function JK(e){if(!e)return null;let t=qK(e);return t?VG(t):null}function YK(e){return JK(e)!==null}function XK(e){if(!e)return null;let t=e.trim();if(!t)return null;let n,r=t,i=r.match(/^(\d{3})\s+(.+)$/s);i&&(n=i[1],r=i[2].trim());let a=qK(r);if(!a)return null;let o=typeof a.request_id==`string`?a.request_id:typeof a.requestId==`string`?a.requestId:void 0,s=typeof a.type==`string`?a.type:void 0,c=typeof a.message==`string`?a.message:void 0,l,u;if(a.error&&typeof a.error==`object`&&!Array.isArray(a.error)){let e=a.error;typeof e.type==`string`&&(l=e.type),typeof e.code==`string`&&!l&&(l=e.code),typeof e.message==`string`&&(u=e.message)}return{httpCode:n,type:l??s,message:u??c,requestId:o}}function ZK(e){let t=(e??``).trim();if(!t)return`LLM request failed with an unknown error.`;let n=RK(t);if(n&&zK(t))return`The AI service is temporarily unavailable (HTTP ${n.code}). Please try again in a moment.`;let r=t.match(_K);if(r){let e=r[2].trim();if(!e.startsWith(`{`))return`HTTP ${r[1]}: ${e}`}let i=XK(t);if(i?.message){let e=i.httpCode?`HTTP ${i.httpCode}`:`LLM error`,t=i.type?` ${i.type}`:``,n=i.requestId?` (request_id: ${i.requestId})`:``;return`${e}${t}: ${i.message}${n}`}return t.length>600?`${t.slice(0,600)}…`:t}function QK(e,t){let n=(e.errorMessage??``).trim();if(e.stopReason!==`error`&&!n)return;if(!n)return`LLM request failed with an unknown error.`;let r=n.match(/unknown tool[:\s]+["']?([a-z0-9_-]+)["']?/i)??n.match(/tool\s+["']?([a-z0-9_-]+)["']?\s+(?:not found|is not available)/i);if(r?.[1]){let e=vG({cfg:t?.cfg,sessionKey:t?.sessionKey,toolName:r[1]});if(e)return e}if(sK(n))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(aK(n))return`Reasoning is required for this model endpoint. Use /think minimal (or any non-off level) and try again.`;if(/incorrect role information|roles must alternate|400.*role|"message".*role.*information/i.test(n))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(oq(n))return`Session history looks corrupted (tool call input missing). Use /new to start a fresh session. If this keeps happening, reset the session or delete the corrupted session transcript.`;let i=n.match(/"type":"invalid_request_error".*?"message":"([^"]+)"/);return i?.[1]?`LLM request rejected: ${i[1]}`:iK(n)||(YG(n)?`LLM request timed out.`:ZG(n)?nK(t?.provider,t?.model??e.model):WK(n)||YK(n)?ZK(n):(n.length>600&&tK.warn(`Long error truncated: ${n.slice(0,200)}`),n.length>600?`${n.slice(0,600)}…`:n))}function $K(e,t){if(!e)return e;let n=t?.errorContext??!1,r=HK(e),i=r.trim();if(!i)return``;if(n){if(/incorrect role information|roles must alternate/i.test(i))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(GK(i))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(ZG(i))return rK;if(YK(i)||WK(i))return ZK(i);if(hK.test(i))return iK(i)||(YG(i)?`LLM request timed out.`:ZK(i))}return UK(r.replace(/^(?:[ \t]*\r?\n)+/,``))}function eq(e){return!e||e.stopReason!==`error`?!1:JG(e.errorMessage??``)}const tq=/tool_(?:use|call)\.(?:input|arguments).*?(?:field required|required)/i,nq=/messages\.\d+\.content\.\d+\.tool_(?:use|call)\.(?:input|arguments)/i,rq=/image dimensions exceed max allowed size for many-image requests:\s*(\d+)\s*pixels/i,iq=/messages\.(\d+)\.content\.(\d+)\.image/i,aq=/image exceeds\s*(\d+(?:\.\d+)?)\s*mb/i;function oq(e){return e?tq.test(e)||nq.test(e):!1}function sq(e){return!e||e.stopReason!==`error`?!1:ZG(e.errorMessage??``)}function cq(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`"type":"api_error"`)&&t.includes(`internal server error`)}function lq(e){if(!e||!e.toLowerCase().includes(`image dimensions exceed max allowed size`))return null;let t=e.match(rq),n=e.match(iq);return{maxDimensionPx:t?.[1]?Number.parseInt(t[1],10):void 0,messageIndex:n?.[1]?Number.parseInt(n[1],10):void 0,contentIndex:n?.[2]?Number.parseInt(n[2],10):void 0,raw:e}}function uq(e){return!!lq(e)}function dq(e){if(!e)return null;let t=e.toLowerCase();if(!t.includes(`image exceeds`)||!t.includes(`mb`))return null;let n=e.match(aq);return{maxMb:n?.[1]?Number.parseFloat(n[1]):void 0,raw:e}}function fq(e){return e?!!dq(e):!1}function pq(e){return!uq(e)&&qG(e)}function mq(e){return!e||e.stopReason!==`error`?!1:$G(e.errorMessage??``)}function hq(e){if(!e)return!1;let t=e.toLowerCase();return!!(t.includes(`unknown model`)||t.includes(`model not found`)||t.includes(`model_not_found`)||t.includes(`not_found_error`)||t.includes(`does not exist`)&&t.includes(`model`)||t.includes(`invalid model`)&&!t.includes(`invalid model reference`)||/models\/[^\s]+ is not found/i.test(e)||/\b404\b/.test(e)&&/not[-_ ]?found/i.test(e))}function gq(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`session not found`)||t.includes(`session does not exist`)||t.includes(`session expired`)||t.includes(`session invalid`)||t.includes(`conversation not found`)||t.includes(`conversation does not exist`)||t.includes(`conversation expired`)||t.includes(`conversation invalid`)||t.includes(`no such session`)||t.includes(`invalid session`)||t.includes(`session id not found`)||t.includes(`conversation id not found`)}function _q(e){return uq(e)||fq(e)?null:gq(e)?`session_expired`:hq(e)?`model_not_found`:LK(e)||(XG(e)?ZG(e)?`billing`:`rate_limit`:JG(e)?`rate_limit`:eK(e)?`overloaded`:BK(e)?RK(e.trim())?.code===529?`overloaded`:`timeout`:cq(e)?`timeout`:pq(e)?`format`:ZG(e)?`billing`:YG(e)?`timeout`:QG(e)?`auth_permanent`:$G(e)?`auth`:null)}function vq(e){return _q(e)!==null}function yq(e){return!e||e.stopReason!==`error`?!1:vq(e.errorMessage??``)}function bq(e){return e===`google-gemini-cli`||e===`google-generative-ai`}function xq(e){if(!e)return null;let t=null;if(typeof e==`string`){let n=e.trim();if(!n.startsWith(`{`)||!n.endsWith(`}`))return null;try{t=JSON.parse(n)}catch{return null}}else typeof e==`object`&&(t=e);if(!t)return null;let n=typeof t.id==`string`?t.id:``,r=typeof t.type==`string`?t.type:``;return n.startsWith(`rs_`)&&(r===`reasoning`||r.startsWith(`reasoning.`))?{id:n,type:r}:null}function Sq(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(!t||typeof t!=`object`||t.type!==`thinking`)return!0}return!1}function Cq(e){let t=e.indexOf(`|`);return t<=0||t>=e.length-1?{callId:e}:{callId:e.slice(0,t),itemId:e.slice(t+1)}}function wq(e){return e===`toolCall`||e===`toolUse`||e===`functionCall`}function Tq(e){let t=!1,n=[],r=null;for(let i of e){if(!i||typeof i!=`object`){r=null,n.push(i);continue}let e=i.role;if(e===`assistant`){let e=i;if(!Array.isArray(e.content)){r=null,n.push(i);continue}let a=new Map,o=!1,s=!1,c=e.content.map(e=>{if(!e||typeof e!=`object`)return e;let t=e;if(t.type===`thinking`&&xq(t.thinkingSignature))return o=!0,e;let n=e;if(!wq(n.type)||typeof n.id!=`string`)return e;let r=Cq(n.id);return o||!r.itemId||!r.itemId.startsWith(`fc_`)?e:(s=!0,a.set(n.id,r.callId),{...e,id:r.callId})});if(r=a.size>0?a:null,!s){n.push(i);continue}t=!0,n.push({...e,content:c});continue}if(e===`toolResult`&&r&&r.size>0){let e=i,a=!1,o={};if(typeof e.toolCallId==`string`){let t=r.get(e.toolCallId);t&&t!==e.toolCallId&&(o.toolCallId=t,a=!0)}if(typeof e.toolUseId==`string`){let t=r.get(e.toolUseId);t&&t!==e.toolUseId&&(o.toolUseId=t,a=!0)}if(!a){n.push(i);continue}t=!0,n.push({...e,...o});continue}r=null,n.push(i)}return t?n:e}function Eq(e){let t=[];for(let n of e){if(!n||typeof n!=`object`){t.push(n);continue}if(n.role!==`assistant`){t.push(n);continue}let e=n;if(!Array.isArray(e.content)){t.push(n);continue}let r=!1,i=[];for(let t=0;t<e.content.length;t++){let n=e.content[t];if(!n||typeof n!=`object`){i.push(n);continue}let a=n;if(a.type!==`thinking`){i.push(n);continue}if(!xq(a.thinkingSignature)){i.push(n);continue}if(Sq(e.content,t)){i.push(n);continue}r=!0}if(!r){t.push(n);continue}i.length!==0&&t.push({...e,content:i})}return t}const Dq=new Set([`toolCall`,`toolUse`,`functionCall`]);function Oq(e,t=`strict`){if(!e||typeof e!=`string`)return t===`strict9`?`defaultid`:`defaulttoolid`;if(t===`strict9`){let t=e.replace(/[^a-zA-Z0-9]/g,``);return t.length>=9?t.slice(0,9):t.length>0?jq(t,9):jq(`sanitized`,9)}let n=e.replace(/[^a-zA-Z0-9]/g,``);return n.length>0?n:`sanitizedtoolid`}function kq(e){let t=e.content;if(!Array.isArray(t))return[];let n=[];for(let e of t){if(!e||typeof e!=`object`)continue;let t=e;typeof t.id!=`string`||!t.id||typeof t.type==`string`&&Dq.has(t.type)&&n.push({id:t.id,name:typeof t.name==`string`?t.name:void 0})}return n}function Aq(e){let t=e.toolCallId;if(typeof t==`string`&&t)return t;let n=e.toolUseId;return typeof n==`string`&&n?n:null}function jq(e,t=8){return jt(`sha256`).update(e).digest(`hex`).slice(0,t)}function Mq(e){if(e.mode===`strict9`){let t=Oq(e.id,e.mode),n=t.length>=9?t.slice(0,9):``;if(n&&!e.used.has(n))return n;for(let t=0;t<1e3;t+=1){let n=jq(`${e.id}:${t}`,9);if(!e.used.has(n))return n}return jq(`${e.id}:${Date.now()}`,9)}let t=Oq(e.id,e.mode).slice(0,40);if(!e.used.has(t))return t;let n=jq(e.id),r=e.mode===`strict`?``:`_`,i=40-r.length-n.length,a=`${t.length>i?t.slice(0,i):t}${r}${n}`;if(!e.used.has(a))return a;for(let t=2;t<1e3;t+=1){let n=e.mode===`strict`?`x${t}`:`_${t}`,r=`${a.slice(0,40-n.length)}${n}`;if(!e.used.has(r))return r}let o=e.mode===`strict`?`t${Date.now()}`:`_${Date.now()}`;return`${a.slice(0,40-o.length)}${o}`}function Nq(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=!1,r=t.map(t=>{if(!t||typeof t!=`object`)return t;let r=t,i=r.type,a=r.id;if(i!==`functionCall`&&i!==`toolUse`&&i!==`toolCall`||typeof a!=`string`||!a)return t;let o=e.resolve(a);return o===a?t:(n=!0,{...t,id:o})});return n?{...e.message,content:r}:e.message}function Pq(e){let t=typeof e.message.toolCallId==`string`&&e.message.toolCallId?e.message.toolCallId:void 0,n=e.message.toolUseId,r=typeof n==`string`&&n?n:void 0,i=t?e.resolve(t):void 0,a=r?e.resolve(r):void 0;return i===t&&a===r?e.message:{...e.message,...i&&{toolCallId:i},...a&&{toolUseId:a}}}function Fq(e,t=`strict`){let n=new Map,r=new Set,i=e=>{let i=n.get(e);if(i)return i;let a=Mq({id:e,used:r,mode:t});return n.set(e,a),r.add(a),a},a=!1,o=e.map(e=>{if(!e||typeof e!=`object`)return e;let t=e.role;if(t===`assistant`){let t=Nq({message:e,resolve:i});return t!==e&&(a=!0),t}if(t===`toolResult`){let t=Pq({message:e,resolve:i});return t!==e&&(a=!0),t}return e});return a?o:e}async function Iq(e,t,n){let r=(n?.sanitizeMode??`full`)===`full`,i={maxDimensionPx:n?.maxDimensionPx,maxBytes:n?.maxBytes},a=n?.sanitizeToolCallIds===!0?Fq(e,n.toolCallIdMode):e,o=[];for(let e of a){if(!e||typeof e!=`object`){o.push(e);continue}let a=e.role;if(a===`toolResult`){let n=e,r=await er(Array.isArray(n.content)?n.content:[],t,i);o.push({...n,content:r});continue}if(a===`user`){let n=e,r=n.content;if(Array.isArray(r)){let e=await er(r,t,i);o.push({...n,content:e});continue}}if(a===`assistant`){let a=e;if(a.stopReason===`error`){let e=a.content;if(Array.isArray(e)){let n=await er(e,t,i);o.push({...a,content:n})}else o.push(a);continue}let s=a.content;if(Array.isArray(s)){if(!r){let e=await er(s,t,i);o.push({...a,content:e});continue}let e=await er((n?.preserveSignatures?s:vE(s,n?.sanitizeThoughtSignatures)).filter(e=>{if(!e||typeof e!=`object`)return!0;let t=e;return t.type!==`text`||typeof t.text!=`string`?!0:t.text.trim().length>0}),t,i);if(e.length===0)continue;o.push({...a,content:e});continue}}o.push(e)}return o}function Lq(e){return e.trim().toLowerCase().replace(/\p{Emoji_Presentation}|\p{Extended_Pictographic}/gu,``).replace(/\s+/g,` `).trim()}function Rq(e,t){return t.length===0||!e||e.length<10?!1:t.some(t=>!t||t.length<10?!1:e.includes(t)||t.includes(e))}function zq(e,t){if(t.length===0)return!1;let n=Lq(e);return!n||n.length<10?!1:Rq(n,t.map(Lq))}function Bq(e){if(!e)return``;let t=e.trim().toLowerCase();return t===`z.ai`||t===`z-ai`?`zai`:t}function Vq(e){return Bq(e)===`zai`}const Hq=[`openai/gpt-5.4`,`openai/gpt-5.4-pro`,`openai/gpt-5.2`,`openai-codex/gpt-5.4`,`openai-codex/gpt-5.3-codex`,`openai-codex/gpt-5.3-codex-spark`,`openai-codex/gpt-5.2-codex`,`openai-codex/gpt-5.1-codex`,`github-copilot/gpt-5.2-codex`,`github-copilot/gpt-5.2`],Uq=new Set(Hq.map(e=>e.toLowerCase())),Wq=new Set(Hq.map(e=>e.split(`/`)[1]?.toLowerCase()).filter(e=>!!e));function Gq(e){if(!e)return;let t=e.trim().toLowerCase(),n=t.replace(/[\s_-]+/g,``);if(n===`adaptive`||n===`auto`)return`adaptive`;if(n===`xhigh`||n===`extrahigh`)return`xhigh`;if([`off`].includes(t))return`off`;if([`on`,`enable`,`enabled`].includes(t))return`low`;if([`min`,`minimal`].includes(t))return`minimal`;if([`low`,`thinkhard`,`think-hard`,`think_hard`].includes(t))return`low`;if([`mid`,`med`,`medium`,`thinkharder`,`think-harder`,`harder`].includes(t))return`medium`;if([`high`,`ultra`,`ultrathink`,`think-hard`,`thinkhardest`,`highest`,`max`].includes(t))return`high`;if([`think`].includes(t))return`minimal`}function Kq(e,t){let n=t?.trim().toLowerCase();if(!n)return!1;let r=e?.trim().toLowerCase();return r?Uq.has(`${r}/${n}`):Wq.has(n)}function qq(e,t){let n=[`off`,`minimal`,`low`,`medium`,`high`];return Kq(e,t)&&n.push(`xhigh`),n.push(`adaptive`),n}function Jq(e,t){return Vq(e)?[`off`,`on`]:qq(e,t)}function Yq(e,t,n=`, `){return Jq(e,t).join(n)}function Xq(){let e=[...Hq];return e.length===0?`unknown model`:e.length===1?e[0]:e.length===2?`${e[0]} or ${e[1]}`:`${e.slice(0,-1).join(`, `)} or ${e[e.length-1]}`}function Zq(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`all`,`everything`].includes(t))return`full`;if([`on`,`minimal`,`true`,`yes`,`1`].includes(t))return`on`}function Qq(e){return Zq(e)}function $q(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`enable`,`enabled`].includes(t)||[`tokens`,`token`,`tok`,`minimal`,`min`].includes(t))return`tokens`;if([`full`,`session`].includes(t))return`full`}function eJ(e){return $q(e)??`off`}function tJ(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`auto`,`auto-approve`,`autoapprove`].includes(t))return`full`;if([`ask`,`prompt`,`approval`,`approve`].includes(t))return`ask`;if([`on`,`true`,`yes`,`1`].includes(t))return`on`}function nJ(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`hide`,`hidden`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`show`,`visible`,`enable`,`enabled`].includes(t))return`on`;if([`stream`,`streaming`,`draft`,`live`].includes(t))return`stream`}function rJ(e){let t=e.match(/supported values are:\s*([^\n.]+)/i)??e.match(/supported values:\s*([^\n.]+)/i);if(!t?.[1])return[];let n=t[1],r=Array.from(n.matchAll(/['"]([^'"]+)['"]/g)).map(e=>e[1]?.trim());return r.length>0?r.filter(e=>!!e):n.split(/,|\band\b/gi).map(e=>e.replace(/^[^a-zA-Z]+|[^a-zA-Z]+$/g,``).trim()).filter(Boolean)}function iJ(e){let t=e.message?.trim();if(!t)return;let n=rJ(t);if(n.length===0)return/not supported/i.test(t)&&!e.attempted.has(`off`)?`off`:void 0;for(let t of n){let n=Gq(t);if(n&&!e.attempted.has(n))return n}}function aJ(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r||typeof r!=`object`){t.push(r);continue}if(r.role!==`assistant`){t.push(r);continue}let i=r,a=e[n+1];if((a&&typeof a==`object`?a.role:void 0)!==`user`){t.push(r);continue}let o=a,s=new Set;if(Array.isArray(o.content))for(let e of o.content)e&&e.type===`toolResult`&&e.toolUseId&&s.add(e.toolUseId);let c=Array.isArray(i.content)?i.content:[],l=c.filter(e=>e?e.type===`toolUse`?s.has(e.id||``):!0:!1);c.length>0&&l.length===0?t.push({...i,content:[{type:`text`,text:`[tool calls omitted]`}]}):t.push({...i,content:l})}return t}function oJ(e){let{messages:t,role:n,merge:r}=e;if(!Array.isArray(t)||t.length===0)return t;let i=[],a;for(let e of t){if(!e||typeof e!=`object`){i.push(e);continue}let t=e.role;if(!t){i.push(e);continue}if(t===a&&a===n){let t=i[i.length-1],n=e;if(t&&typeof t==`object`){let e=t;i[i.length-1]=r(e,n);continue}}i.push(e),a=t}return i}function sJ(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...e,content:n,...t.usage&&{usage:t.usage},...t.stopReason&&{stopReason:t.stopReason},...t.errorMessage&&{errorMessage:t.errorMessage}}}function cJ(e){return oJ({messages:e,role:`assistant`,merge:sJ})}function lJ(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...t,content:n,timestamp:t.timestamp??e.timestamp}}function uJ(e){return oJ({messages:aJ(e),role:`user`,merge:lJ})}const dJ=64e3,fJ=8e3,pJ=/\brequest[_ ]?id\b\s*[:=]\s*["'()]*([A-Za-z0-9._:-]+)/i,mJ=[String.raw`\b(?:x-)?api[-_]?key\b\s*[:=]\s*(["']?)([^\s"'\\;]+)\1`,String.raw`"(?:api[-_]?key|api_key)"\s*:\s*"([^"]+)"`,String.raw`(?:\bCookie\b\s*[:=]\s*[^;=\s]+=|;\s*[^;=\s]+=)([^;\s\r\n]+)`];function hJ(){let e=He()?.redactPatterns;return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function gJ(e,t){let n=e?.trim();if(n)return n.length>t?`${n.slice(0,t)}…`:n}function _J(e){let t=e?.trim();if(t)return t.length>dJ?t.slice(0,dJ):t}function vJ(e,t=200){let n=e?.trim();if(!n)return;let r=Array.from(n).filter(e=>{let t=e.charCodeAt(0);return!(t<=8||t===11||t===12||t>=14&&t<=31||t===127)}).join(``).replace(/[\r\n\t]+/g,` `).replace(/\s+/g,` `).trim();return r.length>t?`${r.slice(0,t)}…`:r}function yJ(e,t){return!e||!t?e:e.split(t).join(gE(t,{len:12}))}function bJ(e){if(!e)return e;let t=hJ();return g(e,{mode:`tools`,patterns:[...De(),...t,...mJ]})}function xJ(e){if(e)return e.match(pJ)?.[1]?.trim()||void 0}function SJ(e){let t=e.message&&e.message.length>fJ?e.message.slice(0,fJ):e.message;return(e.httpCode||e.type||t?VG({httpCode:e.httpCode,type:e.type,message:t}):null)||(e.requestId?e.raw.split(e.requestId).join(`<request_id>`):JK(e.raw))}function CJ(e){let t=_J(e);if(!t)return{};try{let e=XK(t),n=e?.requestId??xJ(t),r=n?gE(n,{len:12}):void 0,i=SJ({raw:t,requestId:n,httpCode:e?.httpCode,type:e?.type,message:e?.message}),a=yJ(bJ(t),n),o=yJ(bJ(e?.message),n);return{rawErrorPreview:gJ(a,400),rawErrorHash:gE(t,{len:12}),rawErrorFingerprint:i?gE(i,{len:12}):void 0,httpCode:e?.httpCode,providerErrorType:e?.type,providerErrorMessagePreview:gJ(o,200),requestIdHash:r}}catch{return{}}}function wJ(e){let t=CJ(e);return{textPreview:t.rawErrorPreview,textHash:t.rawErrorHash,textFingerprint:t.rawErrorFingerprint,httpCode:t.httpCode,providerErrorType:t.providerErrorType,providerErrorMessagePreview:t.providerErrorMessagePreview,requestIdHash:t.requestIdHash}}const TJ=w(`agent/embedded`);function EJ(e){let t=e.reason===`billing`||e.reason===`auth_permanent`?`disabled`:`cooldown`,n=e.previous?.cooldownUntil,r=e.previous?.disabledUntil,i=t===`disabled`?typeof r==`number`&&Number.isFinite(r)&&r>e.now&&r===e.next.disabledUntil:typeof n==`number`&&Number.isFinite(n)&&n>e.now&&n===e.next.cooldownUntil,a=gE(e.profileId,{len:12}),o=vJ(e.runId)??`-`,s=vJ(e.provider)??`-`;TJ.warn(`auth profile failure state updated`,{event:`auth_profile_failure_state_updated`,tags:[`error_handling`,`auth_profiles`,t],runId:e.runId,profileId:a,provider:e.provider,reason:e.reason,windowType:t,windowReused:i,previousErrorCount:e.previous?.errorCount,errorCount:e.next.errorCount,previousCooldownUntil:n,cooldownUntil:e.next.cooldownUntil,previousDisabledUntil:r,disabledUntil:e.next.disabledUntil,previousDisabledReason:e.previous?.disabledReason,disabledReason:e.next.disabledReason,failureCounts:e.next.failureCounts,consoleMessage:`auth profile failure state updated: runId=${o} profile=${a} provider=${s} reason=${e.reason} window=${t} reused=${String(i)}`})}const DJ=[`auth_permanent`,`auth`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`unknown`],OJ=new Set(DJ),kJ=new Map(DJ.map((e,t)=>[e,t]));function AJ(e){let t=z(e??``);return t===`openrouter`||t===`kilocode`}function jJ(e){let t=[e.cooldownUntil,e.disabledUntil].filter(e=>typeof e==`number`).filter(e=>Number.isFinite(e)&&e>0);return t.length===0?null:Math.max(...t)}function MJ(e,t,n){if(AJ(e.profiles[t]?.provider))return!1;let r=e.usageStats?.[t];if(!r)return!1;let i=jJ(r);return i?(n??Date.now())<i:!1}function NJ(e,t){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t<e}function PJ(e){let t=e.now??Date.now(),n=new Map,r=(e,t)=>{!OJ.has(e)||t<=0||!Number.isFinite(t)||n.set(e,(n.get(e)??0)+t)};for(let n of e.profileIds){let i=e.store.usageStats?.[n];if(!i)continue;if(NJ(i.disabledUntil,t)&&i.disabledReason&&OJ.has(i.disabledReason)){r(i.disabledReason,1e3);continue}if(!NJ(i.cooldownUntil,t))continue;let a=!1;for(let[e,t]of Object.entries(i.failureCounts??{})){let n=e,i=typeof t==`number`?t:0;!OJ.has(n)||i<=0||(r(n,i),a=!0)}a||r(`unknown`,1)}if(n.size===0)return null;let i=null,a=-1,o=2**53-1;for(let e of DJ){let t=n.get(e);if(typeof t!=`number`)continue;let r=kJ.get(e)??2**53-1;(t>a||t===a&&r<o)&&(i=e,a=t,o=r)}return i}function FJ(e,t){let n=null;for(let r of t){let t=e.usageStats?.[r];if(!t)continue;let i=jJ(t);typeof i!=`number`||!Number.isFinite(i)||i<=0||(n===null||i<n)&&(n=i)}return n}function IJ(e,t){let n=e.usageStats;if(!n)return!1;let r=t??Date.now(),i=!1;for(let[e,t]of Object.entries(n)){if(!t)continue;let a=!1,o=typeof t.cooldownUntil==`number`&&Number.isFinite(t.cooldownUntil)&&t.cooldownUntil>0&&r>=t.cooldownUntil,s=typeof t.disabledUntil==`number`&&Number.isFinite(t.disabledUntil)&&t.disabledUntil>0&&r>=t.disabledUntil;o&&(t.cooldownUntil=void 0,a=!0),s&&(t.disabledUntil=void 0,t.disabledReason=void 0,a=!0),a&&!jJ(t)&&(t.errorCount=0,t.failureCounts=void 0),a&&(n[e]=t,i=!0)}return i}async function LJ(e){let{store:t,profileId:n,agentDir:r}=e,i=await Sd({agentDir:r,updater:e=>e.profiles[n]?(HJ(e,n,e=>VJ(e,{lastUsed:Date.now()})),!0):!1});if(i){t.usageStats=i.usageStats;return}t.profiles[n]&&(HJ(t,n,e=>VJ(e,{lastUsed:Date.now()})),Fd(t,r))}function RJ(e){let t=Math.max(1,e);return Math.min(3600*1e3,60*1e3*5**Math.min(t-1,3))}function zJ(e){let t={billingBackoffHours:5,billingMaxHours:24,failureWindowHours:24},n=(e,t)=>typeof e==`number`&&Number.isFinite(e)&&e>0?e:t,r=e.cfg?.auth?.cooldowns,i=n((()=>{let t=r?.billingBackoffHoursByProvider;if(t){for(let[n,r]of Object.entries(t))if(z(n)===e.providerId)return r}})()??r?.billingBackoffHours,t.billingBackoffHours),a=n(r?.billingMaxHours,t.billingMaxHours),o=n(r?.failureWindowHours,t.failureWindowHours);return{billingBackoffMs:i*60*60*1e3,billingMaxMs:a*60*60*1e3,failureWindowMs:o*60*60*1e3}}function BJ(e){let t=Math.max(1,e.errorCount),n=Math.max(6e4,e.baseMs),r=Math.max(n,e.maxMs),i=n*2**Math.min(t-1,10);return Math.min(r,i)}function VJ(e,t){return{...e,errorCount:0,cooldownUntil:void 0,disabledUntil:void 0,disabledReason:void 0,failureCounts:void 0,...t}}function HJ(e,t,n){e.usageStats=e.usageStats??{},e.usageStats[t]=n(e.usageStats[t])}function UJ(e){let{existingUntil:t,now:n,recomputedUntil:r}=e;return typeof t==`number`&&Number.isFinite(t)&&t>n?t:r}function WJ(e){let t=e.cfgResolved.failureWindowMs,n=typeof e.existing.lastFailureAt==`number`&&e.existing.lastFailureAt>0&&e.now-e.existing.lastFailureAt>t,r=jJ(e.existing),i=typeof r==`number`&&e.now>=r,a=n||i,o=(a?0:e.existing.errorCount??0)+1,s=a?{}:{...e.existing.failureCounts};s[e.reason]=(s[e.reason]??0)+1;let c={...e.existing,errorCount:o,failureCounts:s,lastFailureAt:e.now};if(e.reason===`billing`||e.reason===`auth_permanent`){let t=BJ({errorCount:s[e.reason]??1,baseMs:e.cfgResolved.billingBackoffMs,maxMs:e.cfgResolved.billingMaxMs});c.disabledUntil=UJ({existingUntil:e.existing.disabledUntil,now:e.now,recomputedUntil:e.now+t}),c.disabledReason=e.reason}else{let t=RJ(o);c.cooldownUntil=UJ({existingUntil:e.existing.cooldownUntil,now:e.now,recomputedUntil:e.now+t})}return c}async function GJ(e){let{store:t,profileId:n,reason:r,agentDir:i,cfg:a,runId:o}=e,s=t.profiles[n];if(!s||AJ(s.provider))return;let c,l,u=0,d=await Sd({agentDir:i,updater:e=>{let t=e.profiles[n];if(!t||AJ(t.provider))return!1;let i=Date.now(),o=zJ({cfg:a,providerId:z(t.provider)});l=e.usageStats?.[n],u=i;let s=WJ({existing:l??{},now:i,reason:r,cfgResolved:o});return c=s,HJ(e,n,()=>s),!0}});if(d){t.usageStats=d.usageStats,c&&EJ({runId:o,profileId:n,provider:s.provider,reason:r,previous:l,next:c,now:u});return}if(!t.profiles[n])return;let f=Date.now(),p=zJ({cfg:a,providerId:z(t.profiles[n]?.provider??``)});l=t.usageStats?.[n];let m=WJ({existing:l??{},now:f,reason:r,cfgResolved:p});c=m,HJ(t,n,()=>m),Fd(t,i),EJ({runId:o,profileId:n,provider:t.profiles[n]?.provider??s.provider,reason:r,previous:l,next:c,now:f})}function KJ(e){let t=xu(e.provider),n=e.store.profiles[e.profileId];if(!n)return{eligible:!1,reasonCode:`profile_missing`};if(xu(n.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};let r=e.cfg?.auth?.profiles?.[e.profileId];if(r){if(xu(r.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};if(r.mode!==n.type&&!(r.mode===`oauth`&&n.type===`token`))return{eligible:!1,reasonCode:`mode_mismatch`}}let i=QT({credential:n,now:e.now});return{eligible:i.eligible,reasonCode:i.reasonCode}}function qJ(e){let{cfg:t,store:n,provider:r,preferredProfile:i}=e,a=z(r),o=xu(r),s=Date.now();IJ(n,s);let c=Su(n.order,a),l=Su(t?.auth?.order,a),u=c??l,d=t?.auth?.profiles?Object.entries(t.auth.profiles).filter(([,e])=>xu(e.provider)===o).map(([e])=>e):[],f=u??(d.length>0?d:Ld(n,r));if(f.length===0)return[];let p=e=>KJ({cfg:t,store:n,provider:o,profileId:e,now:s}).eligible,m=f.filter(p),h=f.every(e=>!n.profiles[e]);m.length===0&&d.length>0&&h&&(m=Ld(n,r).filter(p));let g=Id(m);if(u&&u.length>0){let e=[],t=[];for(let r of g)if(MJ(n,r)){let e=jJ(n.usageStats?.[r]??{})??s;t.push({profileId:r,cooldownUntil:e})}else e.push(r);let r=t.toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId),a=[...e,...r];return i&&a.includes(i)?[i,...a.filter(e=>e!==i)]:a}let _=JJ(g,n);return i&&_.includes(i)?[i,..._.filter(e=>e!==i)]:_}function JJ(e,t){let n=Date.now(),r=[],i=[];for(let n of e)MJ(t,n)?i.push(n):r.push(n);let a=r.map(e=>{let n=t.profiles[e]?.type;return{profileId:e,typeScore:n===`oauth`?0:n===`token`?1:n===`api_key`?2:3,lastUsed:t.usageStats?.[e]?.lastUsed??0}}).toSorted((e,t)=>e.typeScore===t.typeScore?e.lastUsed-t.lastUsed:e.typeScore-t.typeScore).map(e=>e.profileId),o=i.map(e=>({profileId:e,cooldownUntil:jJ(t.usageStats?.[e]??{})??n})).toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId);return[...a,...o]}var YJ=e({CLAUDE_CLI_PROFILE_ID:()=>CLAUDE_CLI_PROFILE_ID,CODEX_CLI_PROFILE_ID:()=>CODEX_CLI_PROFILE_ID,ensureAuthProfileStore:()=>Pd});const XJ=w(`model-auth`),ZJ=`AWS_BEARER_TOKEN_BEDROCK`,QJ=`AWS_ACCESS_KEY_ID`,$J=`AWS_SECRET_ACCESS_KEY`,eY=`AWS_PROFILE`;function tY(e,t){let n=e?.models?.providers??{},r=n[t];if(r)return r;let i=z(t);return i===t?Object.entries(n).find(([e])=>z(e)===i)?.[1]:n[i]??Object.entries(n).find(([e])=>z(e)===i)?.[1]}function nY(e,t){return Io(tY(e,t)?.apiKey)}function rY(e){let t=nY(e.cfg,e.provider);if(!t)return null;if(!ds(t))return{apiKey:t,source:`models.json`};if(!os(t))return null;let n=Io((e.env??process.env)[t]);return n?{apiKey:n,source:sY({applied:new Set(Po()),envVars:[t],label:`${t} (models.json marker)`})}:null}function iY(e,t,n){return!!rY({cfg:e,provider:t,env:n})}function aY(e,t){let n=tY(e,t)?.auth;if(n===`api-key`||n===`aws-sdk`||n===`oauth`||n===`token`)return n}function oY(e){if(z(e.provider)!==`ollama`)return null;let t=tY(e.cfg,e.provider);return!t||!(t.api?.trim()||t.baseUrl?.trim()||Array.isArray(t.models)&&t.models.length>0)?null:{apiKey:`ollama-local`,source:`models.providers.ollama (synthetic local key)`,mode:`api-key`}}function sY(e){return`${e.envVars.some(t=>e.applied.has(t))?`shell env: `:`env: `}${e.label}`}function cY(e=process.env){if(e[ZJ]?.trim())return ZJ;if(e[QJ]?.trim()&&e[$J]?.trim())return QJ;if(e[eY]?.trim())return eY}function lY(){let e=new Set(Po());return process.env[ZJ]?.trim()?{mode:`aws-sdk`,source:sY({applied:e,envVars:[ZJ],label:ZJ})}:process.env[QJ]?.trim()&&process.env[$J]?.trim()?{mode:`aws-sdk`,source:sY({applied:e,envVars:[QJ,$J],label:`${QJ} + ${$J}`})}:process.env[eY]?.trim()?{mode:`aws-sdk`,source:sY({applied:e,envVars:[eY],label:eY})}:{mode:`aws-sdk`,source:`aws-sdk default chain`}}async function uY(e){let{provider:t,cfg:n,profileId:r,preferredProfile:i}=e,a=e.store??Pd(e.agentDir);if(r){let t=await mE({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(!t)throw Error(`No credentials found for profile "${r}".`);let i=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:i===`oauth`?`oauth`:i===`token`?`token`:`api-key`}}let o=aY(n,t);if(o===`aws-sdk`)return lY();let s=qJ({cfg:n,store:a,provider:t,preferredProfile:i});for(let r of s)try{let t=await mE({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(t){let e=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:e===`oauth`?`oauth`:e===`token`?`token`:`api-key`}}}catch(e){XJ.debug?.(`auth profile "${r}" failed for provider "${t}": ${String(e)}`)}let c=dY(t);if(c)return{apiKey:c.apiKey,source:c.source,mode:c.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`};let l=rY({cfg:n,provider:t});if(l)return{apiKey:l.apiKey,source:l.source,mode:`api-key`};let u=oY({cfg:n,provider:t});if(u)return u;let d=z(t);if(o===void 0&&d===`amazon-bedrock`)return lY();if(t===`openai`&&Ld(a,`openai-codex`).length>0)throw Error(`No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.4 (OAuth) or set OPENAI_API_KEY to use openai/gpt-5.4.`);let f=hd(e.agentDir),p=O.dirname(f);throw Error([`No API key found for provider "${t}".`,`Auth store: ${f} (agentDir: ${p}).`,`Configure auth for this agent (${gr(`openclaw agents add <id>`)}) or copy auth-profiles.json from the main agentDir.`].join(` `))}function dY(e,t=process.env){let n=z(e),r=new Set(Po()),i=e=>{let n=Io(t[e]);return n?{apiKey:n,source:r.has(e)?`shell env: ${e}`:`env: ${e}`}:null},a=$o[n];if(a)for(let e of a){let t=i(e);if(t)return t}if(n===`google-vertex`){let e=Dt(n);return e?{apiKey:e,source:`gcloud adc`}:null}return null}function fY(e,t,n){let r=e?.trim();if(!r)return;let i=aY(t,r);if(i===`aws-sdk`)return`aws-sdk`;let a=n??Pd(),o=Ld(a,r);if(o.length>0){let e=new Set(o.map(e=>a.profiles[e]?.type).filter(e=>!!e));if([`oauth`,`token`,`api_key`].filter(t=>e.has(t)).length>=2)return`mixed`;if(e.has(`oauth`))return`oauth`;if(e.has(`token`))return`token`;if(e.has(`api_key`))return`api-key`}if(i===void 0&&z(r)===`amazon-bedrock`)return`aws-sdk`;let s=dY(r);return s?.apiKey?s.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`:iY(t,r)?`api-key`:`unknown`}async function pY(e){return uY({provider:e.model.provider,cfg:e.cfg,profileId:e.profileId,preferredProfile:e.preferredProfile,store:e.store,agentDir:e.agentDir})}function mY(e,t){let n=Fo(e.apiKey);if(n)return n;throw Error(`No API key resolved for provider "${t}" (auth mode: ${e.mode}).`)}export{yq as $,cg as $a,Dx as $i,wz as $n,Fs as $o,SA as $r,wr as $s,ZH as $t,Kq as A,q_ as Aa,bE as Ai,HB as An,hd as Ao,hM as Ar,N as As,WU as At,bq as B,u_ as Ba,yT as Bi,vB as Bn,z as Bo,Pj as Br,Hr as Bs,MU as Bt,qq as C,sv as Ca,XE as Ci,dV as Cn,cf as Co,DN as Cr,zi as Cs,RW as Ct,$q as D,G_ as Da,wE as Di,qB as Dn,Ld as Do,BM as Dr,M as Ds,tG as Dt,Gq as E,K_ as Ea,TE as Ei,tV as En,Id as Eo,RM as Er,Oi as Es,IW as Et,kq as F,F_ as Fa,UT as Fi,TB as Fn,Au as Fo,Xj as Fr,ii as Fs,LU as Ft,nK as G,$g as Ga,Ow as Gi,sB as Gn,Fu as Go,wj as Gr,Nr as Gs,hU as Gt,_q as H,d_ as Ha,Tw as Hi,lB as Hn,Nu as Ho,Aj as Hr,Kr as Hs,TU as Ht,Aq as I,M_ as Ia,HT as Ii,SB as In,Su as Io,Zj as Ir,ai as Is,PU as It,mq as J,Dg as Ja,UC as Ji,kz as Jn,ru as Jo,oj as Jr,Br as Js,uU as Jt,ZK as K,Kg as Ka,Aw as Ki,Vz as Kn,Lu as Ko,vj as Kr,Ir as Ks,_U as Kt,Fq as L,C_ as La,bT as Li,_B as Ln,Cu as Lo,qj as Lr,Pr as Ls,FU as Lt,Rq as M,R_ as Ma,gE as Mi,NB as Mn,Qu as Mo,CM as Mr,yi as Ms,BU as Mt,Lq as N,z_ as Na,mE as Ni,MB as Nn,Iu as No,Jj as Nr,oi as Ns,IU as Nt,Qq as O,Y_ as Oa,yE as Oi,WB as On,Rd as Oo,WM as Or,Ci as Os,HW as Ot,Iq as P,L_ as Pa,WT as Pi,jB as Pn,ku as Po,Kj as Pr,Qr as Ps,RU as Pt,sK as Q,yg as Qa,Ex as Qi,hz as Qn,Ls as Qo,CA as Qr,xr as Qs,eU as Qt,Tq as R,m_ as Ra,_T as Ri,bB as Rn,bu as Ro,zj as Rr,Wr as Rs,NU as Rt,Xq as S,ev as Sa,qE as Si,SV as Sn,rp as So,kN as Sr,Bi as Ss,rG as St,nJ as T,B_ as Ta,RE as Ti,rV as Tn,Wd as To,GM as Tr,xi as Ts,eG as Tt,VK as U,c_ as Ua,Ew as Ui,aB as Un,ju as Uo,sj as Ur,Rr as Us,xU as Ut,rK as V,p_ as Va,mT as Vi,yB as Vn,Mu as Vo,Nj as Vr,zr as Vs,EU as Vt,QK as W,e_ as Wa,kw as Wi,oB as Wn,Ru as Wo,Tj as Wr,Ur as Ws,dU as Wt,pq as X,kg as Xa,Mw as Xi,xz as Xn,oc as Xo,DA as Xr,Dr as Xs,nU as Xt,sq as Y,Og as Ya,Cw as Yi,pz as Yn,pu as Yo,tj as Yr,Mr as Ys,lU as Yt,fK as Z,Cg as Za,TC as Zi,bz as Zn,cc as Zo,yA as Zr,Er as Zs,tU as Zt,vJ as _,Gv as _a,an as _c,nD as _i,kV as _n,Sp as _o,ZF as _r,Li as _s,uG as _t,fY as a,Tx as aa,tr as ac,kk as ai,RH as an,zh as ao,fz as ar,us as as,lq as at,iJ as b,dv as ba,oD as bi,gV as bn,Tp as bo,rF as br,Ui as bs,oG as bt,qJ as c,H as ca,Ln as cc,WD as ci,PH as cn,ih as co,pL as cr,Ho as cs,ZG as ct,MJ as d,Oy as da,Hn as dc,W as di,AH as dn,sh as do,nI as dr,Io as ds,zG as dt,kx as ea,_r as ec,Qk as ei,QH as en,og as eo,vz as er,ms as es,vq as et,GJ as f,ky as fa,In as fc,OD as fi,wH as fn,Sm as fo,QF as fr,Fo as fs,MG as ft,wJ as g,ty as ga,dn as gc,rD as gi,PV as gn,om as go,GF as gr,Ta as gs,pG as gt,CJ as h,xy as ha,fn as hc,tD as hi,jV as hn,ym as ho,UF as hr,mo as hs,_G as ht,dY as i,wx as ia,rr as ic,Uk as ii,VH as in,Bh as io,uz as ir,ds as is,BK as it,zq as j,I_ as ja,EE as ji,PB as jn,fd as jo,SM as jr,Mi as js,UU as jt,eJ as k,J_ as ka,xE as ki,VB as kn,Pd as ko,pM as kr,ji as ks,$W as kt,IJ as l,ab as la,Pn as lc,LD as li,kH as ln,ah as lo,eL as lr,Vo as ls,YG as lt,PJ as m,Ny as ma,xn as mc,vD as mi,aH as mn,vm as mo,qF as mr,Mo as ms,kG as mt,mY as n,Sx as na,cr as nc,Vk as ni,WH as nn,sg as no,Sz as nr,gs as ns,eq as nt,rY as o,dx as oa,nr as oc,Ak as oi,LH as on,Rh as oo,dz as or,Wo as os,dq as ot,LJ as p,My as pa,Cn as pc,xD as pi,CH as pn,pm as po,WF as pr,No as ps,jG as pt,JK as q,Jg as qa,jw as qi,Rz as qn,Zl as qo,Cj as qr,Fr as qs,mU as qt,uY as r,xx as ra,ir as rc,zk as ri,KH as rn,Fh as ro,Cz as rr,ps as rs,YK as rt,YJ as s,Lb as sa,Wn as sc,RD as si,FH as sn,Ah as so,TL as sr,Uo as ss,$K as st,pY as t,hx as ta,gr as tc,Hk as ti,qH as tn,Qh as to,gz as tr,hs as ts,dK as tt,FJ as u,Sy as ua,Rn as uc,AD as ui,OH as un,bh as uo,QI as ur,Bo as us,BG as ut,uJ as v,xv as va,nn as vc,aD as vi,xV as vn,wp as vo,VF as vr,Ii as vs,fG as vt,tJ as w,cv as wa,LE as wi,sV as wn,Xd as wo,eN as wr,Ri as ws,zW as wt,Yq as x,iv as xa,YE as xi,CV as xn,Cp as xo,bP as xr,Hi as xs,iG as xt,cJ as y,Cv as ya,sD as yi,wV as yn,Ep as yo,iF as yr,Pi as ys,sG as yt,Eq as z,s_ as za,gT as zi,gB as zn,Eu as zo,Mj as zr,Gr as zs,AU as zt};
67
+ //# sourceMappingURL=model-auth-Cw3fuhm_.js.map
@@ -64,3 +64,4 @@ stat -c "%F|%s|%Y" -- "$2"`,args:[t.canonicalParentPath,t.basename],allowFailure
64
64
  `)}function nG(){try{if(bt(`which rg`,{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`],timeout:2e3}).trim())return}catch{}if(j.platform()===`darwin`)return{command:`/usr/bin/true`}}let rG=!1,iG=null;function aG(e,t){if(e===null)return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}let oG=null;async function sG(){return oG||=(await import(`@anthropic-ai/sandbox-runtime`)).SandboxManager,oG}const cG={network:{allowedDomains:[`github.com`,`*.github.com`,`*.githubusercontent.com`,`npmjs.org`,`*.npmjs.org`,`registry.npmjs.org`,`pypi.org`,`*.pypi.org`,`api.anthropic.com`,`*.openai.com`,`*.qq.com`,`*.imtt.qq.com`],deniedDomains:[],allowLocalBinding:!0},filesystem:{denyRead:[`~/.ssh`,`~/.gnupg`,`~/.aws/credentials`],allowWrite:[`.`,`/tmp`,`/private/tmp`,`/var/tmp`,`/private/var/tmp`],denyWrite:[`.env`,`.env.local`,`.env.production`]}};function lG(e,t){return e.map(e=>e===`.`?t?k.resolve(t):process.cwd():e===`~`||e.startsWith(`~/`)?k.resolve(j.homedir(),e.slice(e.startsWith(`~/`)?2:1)):e)}function uG(e,t){let n=nG(),r=n?{ripgrep:n}:{};if(!e)return{...cG,filesystem:{...cG.filesystem,allowWrite:lG(cG.filesystem?.allowWrite??[],t)},...r};let i=e.allowWrite??cG.filesystem?.allowWrite??[],a=e.allowedDomains?.includes(`*`);return{network:{allowedDomains:a?void 0:e.allowedDomains??cG.network?.allowedDomains??[],deniedDomains:a?[]:e.deniedDomains??cG.network?.deniedDomains??[],allowLocalBinding:e.allowLocalBinding??cG.network?.allowLocalBinding??!0,allowUnixSockets:e.allowUnixSockets},filesystem:{denyRead:e.denyRead??cG.filesystem?.denyRead??[],allowWrite:lG(i,t),denyWrite:e.denyWrite??cG.filesystem?.denyWrite??[]},...r}}async function dG(e){let t=e??uG();if(!(rG&&aG(iG,t)))try{await(await sG()).initialize(t,void 0,!0),rG=!0,iG=t,console.log(`[QBotClaw:SRT:Init] ✅ sandbox-runtime 初始化成功 | config=${JSON.stringify(t,null,2)}`),_G()}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Init] ❌ sandbox-runtime 初始化失败: ${t}`),e}}async function fG(e){rG||await dG();try{return await(await sG()).wrapWithSandbox(e)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Exec] ❌ wrapWithSandbox 失败: ${t}`),e}}async function pG(){if(rG)try{await(await sG()).reset(),rG=!1,iG=null}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Cleanup] ❌ sandbox-runtime 重置失败: ${t}`)}}async function mG(e){if(!rG)return[];try{return(await sG()).getSandboxViolationStore().getViolationsForCommand(e)}catch{return[]}}async function hG(){if(rG)try{(await sG()).cleanupAfterCommand()}catch{}}let gG=!1;function _G(){if(!gG){gG=!0,process.on(`exit`,()=>{rG&&(console.log(`[QBotClaw:SRT:Cleanup] 🧹 进程退出,执行 SRT 清理...`),pG())});for(let e of[`SIGTERM`,`SIGINT`])process.on(e,()=>{pG().finally(()=>{process.kill(process.pid,e)})})}}async function vG(e,n,r){if(await M.mkdir(e,{recursive:!0}),n){let r=D(n),i=[S,we,ve,ce,xe,g,t];for(let t of i){let n=k.join(r,t),i=k.join(e,t);try{await M.access(i)}catch{try{let e=await Ee({absolutePath:n,rootPath:r,boundaryLabel:`sandbox seed workspace`});if(!e.ok)continue;try{let t=A.readFileSync(e.fd,`utf-8`);await M.writeFile(i,t,{encoding:`utf-8`,flag:`wx`})}finally{A.closeSync(e.fd)}}catch{}}}}await fe({dir:e,ensureBootstrapFiles:!r})}async function yG(e){let{cfg:t,rawSessionKey:n}=e,r=D(e.workspaceDir?.trim()||ee),i=D(t.workspaceRoot),a=jI(t.scope,n),o=t.scope===`shared`?i:AI(i,a),s=t.workspaceAccess===`rw`?r:o;if(s===o){if(await vG(o,r,e.config?.agents?.defaults?.skipBootstrap),t.workspaceAccess!==`rw`)try{await JO({sourceWorkspaceDir:r,targetWorkspaceDir:o,config:e.config})}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);Re.error?.(`Sandbox skill sync failed: ${t}`)}}else await M.mkdir(s,{recursive:!0});return{agentWorkspaceDir:r,scopeKey:a,sandboxWorkspaceDir:o,workspaceDir:s}}async function bG(e){if(e.docker.user?.trim())return e.docker;let t=e.stat??(e=>M.stat(e));try{let n=await t(e.workspaceDir),r=Number.isInteger(n.uid)?n.uid:null,i=Number.isInteger(n.gid)?n.gid:null;return r===null||i===null||r<0||i<0?e.docker:{...e.docker,user:`${r}:${i}`}}catch{return e.docker}}function xG(e){let t=e.sessionKey?.trim();if(!t)return null;let n=eG({cfg:e.config,sessionKey:t});if(!n.sandboxed)return console.log(`[QBotClaw:Sandbox:Init] ❌ 沙箱未启用 | mode=${n.mode} | sessionKey=${t} | sandboxed=false`),null;let r=BT(e.config,n.agentId);return console.log(`[QBotClaw:Sandbox:Init] ✅ 沙箱已启用 | mode=${n.mode} | agentId=${n.agentId} | scope=${r.scope}`),{rawSessionKey:t,runtime:n,cfg:r}}async function SG(e){let t=xG(e);if(!t)return null;let{rawSessionKey:n,cfg:r}=t;if(r.runtime===`srt`){let t=D(e.workspaceDir?.trim()||ee);await M.mkdir(t,{recursive:!0});let i=e.config?.agents?.defaults?.sandbox?.srt,a=uG(i,t);try{await dG(a)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);return console.log(`[QBotClaw:SRT:Init] ❌ SRT 初始化失败,回退到非沙箱模式: ${t}`),Re.error?.(`SRT sandbox initialization failed: ${t}`),null}let o={enabled:!0,runtime:`srt`,sessionKey:n,workspaceDir:t,agentWorkspaceDir:t,workspaceAccess:r.workspaceAccess===`none`?`rw`:r.workspaceAccess,containerName:`srt-sandbox-${n}`,containerWorkdir:t,docker:r.docker,tools:r.tools,browserAllowHostControl:r.browser.allowHostControl};if(i?.skillMounts!==!1){let n=[{hostRoot:t,containerRoot:t,writable:o.workspaceAccess===`rw`,source:`workspace`}];for(let e of r.docker.binds??[]){let t=e.split(`:`);if(t.length>=2&&t[0]&&t[1]){let e=D(t[0]);n.push({hostRoot:e,containerRoot:e,writable:!t[2]?.includes(`ro`),source:`bind`})}}let s=lG(i?.allowWrite??a.filesystem?.allowWrite??[],t),c=new Set(n.map(e=>e.hostRoot));for(let e of s){if(c.has(e))continue;let t=!1;for(let n of c)if(e.startsWith(n+k.sep)||e===n){t=!0;break}t||(c.add(e),n.push({hostRoot:e,containerRoot:e,writable:!0,source:`allowWrite`}))}let l=D(`~`);c.has(l)||(c.add(l),n.push({hostRoot:l,containerRoot:l,writable:!1,source:`bind`}));try{let r=GO(t,{config:e.config}),i=new Set;i.add(k.resolve(t));for(let e of r){let t=k.resolve(k.dirname(e.skill.baseDir));if(i.has(t))continue;let r=!1;for(let e of i)if(t.startsWith(e+k.sep)||t===e){r=!0;break}r||(i.add(t),n.push({hostRoot:t,containerRoot:t,writable:!1,source:`bind`}))}}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Init] ⚠️ Skills 源目录收集失败(非致命): ${t}`),Re.error?.(`SRT sandbox skill mount collection failed: ${t}`)}o.fsBridge=vk({workspaceDir:t,containerWorkdir:t,mounts:n,denyReadPaths:(i?.denyRead??a.filesystem?.denyRead??[]).map(e=>D(e))})}else o.fsBridge=_k(t);return o}await ZL(r);let{agentWorkspaceDir:i,scopeKey:a,workspaceDir:o}=await yG({cfg:r,rawSessionKey:n,config:e.config,workspaceDir:e.workspaceDir}),s=await bG({docker:r.docker,workspaceDir:o}),c=s===r.docker?r:{...r,docker:s},l=await xL({sessionKey:n,workspaceDir:o,agentWorkspaceDir:i,cfg:c});console.log(`[QBotClaw:Sandbox:Init] 🐳 沙箱容器就绪 | containerName=${l}`);let u=await NL({scopeKey:a,workspaceDir:o,agentWorkspaceDir:i,cfg:c,evaluateEnabled:e.config?.browser?.evaluateEnabled??!0,bridgeAuth:r.browser.enabled?await(async()=>{let t=e.config??FS(),n=ME(t);try{n=(await PE({cfg:t})).auth}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);Re.error?.(`Sandbox browser auth ensure failed: ${t}`)}return n})():void 0}),d={enabled:!0,runtime:`docker`,sessionKey:n,workspaceDir:o,agentWorkspaceDir:i,workspaceAccess:c.workspaceAccess,containerName:l,containerWorkdir:c.docker.workdir,docker:c.docker,tools:c.tools,browserAllowHostControl:c.browser.allowHostControl,browser:u??void 0};return d.fsBridge=HL({sandbox:d}),d}async function CG(e){let t=xG(e);if(!t)return null;let{rawSessionKey:n,cfg:r}=t,{workspaceDir:i}=await yG({cfg:r,rawSessionKey:n,config:e.config,workspaceDir:e.workspaceDir});return{workspaceDir:i,containerWorkdir:r.docker.workdir}}function wG(e){if(typeof e!=`object`||!e)return JSON.stringify(e)??`null`;if(Array.isArray(e))return`[${e.map(e=>wG(e)).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${wG(t[e])}`).join(`,`)}}`}const TG=/\b(?:daily|weekly|monthly)(?:\/(?:daily|weekly|monthly))* (?:usage )?limit(?:s)?(?: (?:exhausted|reached|exceeded))?\b/i,EG={rateLimit:[/rate[_ ]limit|too many requests|429/,`model_cooldown`,`exceeded your current quota`,`resource has been exhausted`,`quota exceeded`,`resource_exhausted`,`usage limit`,/\btpm\b/i,`tokens per minute`,`tokens per day`],overloaded:[/overloaded_error|"type"\s*:\s*"overloaded_error"/i,`overloaded`,/service[_ ]unavailable.*(?:overload|capacity|high[_ ]demand)|(?:overload|capacity|high[_ ]demand).*service[_ ]unavailable/i,`high demand`],timeout:[`timeout`,`timed out`,`service unavailable`,`deadline exceeded`,`context deadline exceeded`,`connection error`,`network error`,`network request failed`,`fetch failed`,`socket hang up`,/\beconn(?:refused|reset|aborted)\b/i,/\benotfound\b/i,/\beai_again\b/i,/without sending (?:any )?chunks?/i,/\bstop reason:\s*(?:abort|error|malformed_response)\b/i,/\breason:\s*(?:abort|error|malformed_response)\b/i,/\bunhandled stop reason:\s*(?:abort|error|malformed_response)\b/i],billing:[/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment/i,`payment required`,`insufficient credits`,/insufficient[_ ]quota/i,`credit balance`,`plans & billing`,`insufficient balance`,`insufficient usd or diem balance`],authPermanent:[/api[_ ]?key[_ ]?(?:revoked|invalid|deactivated|deleted)/i,`invalid_api_key`,`key has been disabled`,`key has been revoked`,`account has been deactivated`,/could not (?:authenticate|validate).*(?:api[_ ]?key|credentials)/i,`permission_error`,`not allowed for this organization`],auth:[/invalid[_ ]?api[_ ]?key/,`incorrect api key`,`invalid token`,`authentication`,`re-authenticate`,`oauth token refresh failed`,`unauthorized`,`forbidden`,`access denied`,`insufficient permissions`,`insufficient permission`,/missing scopes?:/i,`expired`,`token has expired`,/\b401\b/,/\b403\b/,`no credentials found`,`no api key found`],format:[`string should match pattern`,`tool_use.id`,`tool_use_id`,`messages.1.content.1.tool_use.id`,`invalid request format`,/tool call id was.*must be/i]},DG=/^(?:error[:\s-]+)?billing(?:\s+error)?(?:[:\s-]+|$)|^(?:error[:\s-]+)?(?:credit balance|insufficient credits?|payment required|http\s*402\b)/i,OG=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|^\s*402\s+payment/i;function kG(e,t){if(!e)return!1;let n=e.toLowerCase();return t.some(e=>e instanceof RegExp?e.test(n):n.includes(e))}function AG(e){return kG(e,EG.format)}function jG(e){return kG(e,EG.rateLimit)}function MG(e){return kG(e,EG.timeout)}function NG(e){return TG.test(e)}function PG(e){let t=e.toLowerCase();return t?e.length>512?OG.test(t):kG(t,EG.billing)?!0:DG.test(e)?t.includes(`upgrade`)||t.includes(`credits`)||t.includes(`payment`)||t.includes(`plan`):!1:!1}function FG(e){return kG(e,EG.authPermanent)}function IG(e){return kG(e,EG.auth)}function LG(e){return kG(e,EG.overloaded)}const RG=T(`errors`);function zG(e,t){let n=e?.trim(),r=t?.trim(),i=n&&r?`${n} (${r})`:n||void 0;return i?`⚠️ ${i} returned a billing error — your API key has run out of credits or has an insufficient balance. Check your ${n} billing dashboard and top up or switch to a different API key.`:`⚠️ API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key.`}const BG=zG();function VG(e){if(jG(e))return`⚠️ API rate limit reached. Please try again later.`;if(LG(e))return`The AI service is temporarily overloaded. Please try again in a moment.`}function HG(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`reasoning is mandatory`)||t.includes(`reasoning is required`)||t.includes(`requires reasoning`)||t.includes(`reasoning`)&&t.includes(`cannot be disabled`)}function UG(e){let t=e.toLowerCase();return/\btpm\b/i.test(t)||t.includes(`tokens per minute`)}function WG(e){if(!e)return!1;let t=e.toLowerCase();if(UG(e)||HG(e))return!1;let n=t.includes(`request size exceeds`),r=t.includes(`context window`)||t.includes(`context length`)||t.includes(`maximum context length`);return t.includes(`request_too_large`)||t.includes(`request exceeds the maximum size`)||t.includes(`context length exceeded`)||t.includes(`maximum context length`)||t.includes(`prompt is too long`)||t.includes(`exceeds model context window`)||t.includes(`model token limit`)||n&&r||t.includes(`context overflow:`)||t.includes(`exceed context limit`)||t.includes(`exceeds the model's maximum context`)||t.includes(`max_tokens`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`input length`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`is longer than`)&&r||t.includes(`413`)&&t.includes(`too large`)||t.includes(`context_window_exceeded`)||e.includes(`上下文过长`)||e.includes(`上下文超出`)||e.includes(`上下文长度超`)||e.includes(`超出最大上下文`)||e.includes(`请压缩上下文`)}const GG=/context window.*(too small|minimum is)/i,KG=/context.*overflow|context window.*(too (?:large|long)|exceed|over|limit|max(?:imum)?|requested|sent|tokens)|prompt.*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:request|input).*(?:context|window|length|token).*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:input|request).*(?:is longer|longer than).*(?:context|window|length)/i,qG=/rate limit|too many requests|requests per (?:minute|hour|day)|quota|throttl|429\b|tokens per day/i;function JG(e){return!e||UG(e)||HG(e)||PG(e)||GG.test(e)||jG(e)?!1:WG(e)?!0:qG.test(e)?!1:KG.test(e)}function YG(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`summarization failed`)||t.includes(`auto-compaction`)||t.includes(`compaction failed`)||t.includes(`compaction`)?JG(e)?!0:t.includes(`context overflow`):!1}const XG=/^(?:error|api\s*error|apierror|openai\s*error|anthropic\s*error|gateway\s*error)[:\s-]+/i,ZG=/<\s*\/?\s*final\s*>/gi,QG=/^(?:error|api\s*error|openai\s*error|anthropic\s*error|gateway\s*error|request failed|failed|exception)[:\s-]+/i,$G=/^(?:context overflow:|request_too_large\b|request size exceeds\b|request exceeds the maximum size\b|context length exceeded\b|maximum context length\b|prompt is too long\b|exceeds model context window\b)/i,eK=/^(?:http\s*)?(\d{3})\s+(.+)$/i,tK=/^(?:http\s*)?(\d{3})(?:\s+([\s\S]+))?$/i,nK=/^\s*(?:<!doctype\s+html\b|<html\b)/i,rK=new Set([521,522,523,524,525,526,530]),iK=new Set([499,500,502,503,504,521,522,523,524,529]),aK=[`error`,`bad request`,`not found`,`unauthorized`,`forbidden`,`internal server`,`service unavailable`,`gateway`,`rate limit`,`overloaded`,`timeout`,`timed out`,`invalid`,`too many requests`,`permission`],oK=[`insufficient credits`,`insufficient quota`,`credit balance`,`insufficient balance`,`plans & billing`,`add more credits`,`top up`],sK=[`upgrade your plan`,`upgrade plan`,`current plan`,`subscription`],cK=[`daily`,`weekly`,`monthly`],lK=[`try again`,`retry`,`temporary`,`cooldown`],uK=[`usage limit`,`rate limit`,`organization usage`],dK=[`organization`,`workspace`],fK=[`billing period`,`exceeded`,`reached`,`exhausted`],pK=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment required\b|^\s*402\s+.*used up your points\b/i,mK=/^(?:error[:\s-]+)?(?:(?:http\s*)?402(?:\s+payment required)?|payment required)(?:[:\s-]+|$)/i;function hK(e,t){return t.some(t=>e.includes(t))}function gK(e){return hK(e,oK)||hK(e,sK)&&e.includes(`limit`)||e.includes(`billing hard limit`)||e.includes(`hard limit reached`)||e.includes(`maximum allowed`)&&e.includes(`limit`)}function _K(e){let t=hK(e,cK),n=e.includes(`spend limit`)||e.includes(`spending limit`),r=hK(e,dK);return hK(e,lK)&&hK(e,uK)||t&&(e.includes(`usage limit`)||n)||t&&e.includes(`limit`)&&e.includes(`reset`)||r&&e.includes(`limit`)&&(n||hK(e,fK))}function vK(e){return e.trim().toLowerCase().replace(mK,``).trim()}function yK(e){let t=vK(e);return!t||gK(t)?`billing`:jG(t)||_K(t)?`rate_limit`:`billing`}function bK(e){return pK.test(e)?yK(e):null}function xK(e){let t=e.match(tK);if(!t)return null;let n=Number(t[1]);return Number.isFinite(n)?{code:n,rest:(t[2]??``).trim()}:null}function SK(e){let t=e.trim();if(!t)return!1;let n=xK(t);return!n||n.code<500?!1:rK.has(n.code)?!0:n.code<600&&nK.test(n.rest)&&/<\/html>/i.test(n.rest)}function CK(e){let t=e.trim();if(!t)return!1;let n=xK(t);return n?iK.has(n.code):!1}function wK(e,t){return typeof e!=`number`||!Number.isFinite(e)?null:e===402?t?yK(t):`billing`:e===429?`rate_limit`:e===401||e===403?t&&FG(t)?`auth_permanent`:`auth`:e===408?`timeout`:e===503||e===499?t&&LG(t)?`overloaded`:`timeout`:e===502||e===504?`timeout`:e===529?`overloaded`:e===400?t&&PG(t)?`billing`:`format`:null}function TK(e){return e&&e.replace(ZG,``)}function EK(e){let t=e.trim();if(!t)return e;let n=t.split(/\n{2,}/);if(n.length<2)return e;let r=e=>e.trim().replace(/\s+/g,` `),i=[],a=null;for(let e of n){let t=r(e);a&&t===a||(i.push(e.trim()),a=t)}return i.length===n.length?e:i.join(`
65
65
 
66
66
  `)}function DK(e){if(SK(e))return!0;let t=e.match(eK);if(!t)return!1;let n=Number(t[1]);if(!Number.isFinite(n)||n<400)return!1;let r=t[2].toLowerCase();return aK.some(e=>r.includes(e))}function OK(e){return WG(e)?MK(e)||DK(e)||QG.test(e)||$G.test(e):!1}function kK(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(t.type===`error`||typeof t.request_id==`string`||typeof t.requestId==`string`)return!0;if(`error`in t){let e=t.error;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;if(typeof t.message==`string`||typeof t.type==`string`||typeof t.code==`string`)return!0}}return!1}function AK(e){if(!e)return null;let t=e.trim();if(!t)return null;let n=[t];XG.test(t)&&n.push(t.replace(XG,``).trim());for(let e of n)if(!(!e.startsWith(`{`)||!e.endsWith(`}`)))try{let t=JSON.parse(e);if(kK(t))return t}catch{}return null}function jK(e){if(!e)return null;let t=AK(e);return t?wG(t):null}function MK(e){return jK(e)!==null}function NK(e){if(!e)return null;let t=e.trim();if(!t)return null;let n,r=t,i=r.match(/^(\d{3})\s+(.+)$/s);i&&(n=i[1],r=i[2].trim());let a=AK(r);if(!a)return null;let o=typeof a.request_id==`string`?a.request_id:typeof a.requestId==`string`?a.requestId:void 0,s=typeof a.type==`string`?a.type:void 0,c=typeof a.message==`string`?a.message:void 0,l,u;if(a.error&&typeof a.error==`object`&&!Array.isArray(a.error)){let e=a.error;typeof e.type==`string`&&(l=e.type),typeof e.code==`string`&&!l&&(l=e.code),typeof e.message==`string`&&(u=e.message)}return{httpCode:n,type:l??s,message:u??c,requestId:o}}function PK(e){let t=(e??``).trim();if(!t)return`LLM request failed with an unknown error.`;let n=xK(t);if(n&&SK(t))return`The AI service is temporarily unavailable (HTTP ${n.code}). Please try again in a moment.`;let r=t.match(eK);if(r){let e=r[2].trim();if(!e.startsWith(`{`))return`HTTP ${r[1]}: ${e}`}let i=NK(t);if(i?.message){let e=i.httpCode?`HTTP ${i.httpCode}`:`LLM error`,t=i.type?` ${i.type}`:``,n=i.requestId?` (request_id: ${i.requestId})`:``;return`${e}${t}: ${i.message}${n}`}return t.length>600?`${t.slice(0,600)}…`:t}function FK(e,t){let n=(e.errorMessage??``).trim();if(e.stopReason!==`error`&&!n)return;if(!n)return`LLM request failed with an unknown error.`;let r=n.match(/unknown tool[:\s]+["']?([a-z0-9_-]+)["']?/i)??n.match(/tool\s+["']?([a-z0-9_-]+)["']?\s+(?:not found|is not available)/i);if(r?.[1]){let e=tG({cfg:t?.cfg,sessionKey:t?.sessionKey,toolName:r[1]});if(e)return e}if(WG(n))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(HG(n))return`Reasoning is required for this model endpoint. Use /think minimal (or any non-off level) and try again.`;if(/incorrect role information|roles must alternate|400.*role|"message".*role.*information/i.test(n))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(UK(n))return`Session history looks corrupted (tool call input missing). Use /new to start a fresh session. If this keeps happening, reset the session or delete the corrupted session transcript.`;let i=n.match(/"type":"invalid_request_error".*?"message":"([^"]+)"/);return i?.[1]?`LLM request rejected: ${i[1]}`:VG(n)||(MG(n)?`LLM request timed out.`:PG(n)?zG(t?.provider,t?.model??e.model):DK(n)||MK(n)?PK(n):(n.length>600&&RG.warn(`Long error truncated: ${n.slice(0,200)}`),n.length>600?`${n.slice(0,600)}…`:n))}function IK(e,t){if(!e)return e;let n=t?.errorContext??!1,r=TK(e),i=r.trim();if(!i)return``;if(n){if(/incorrect role information|roles must alternate/i.test(i))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(OK(i))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(PG(i))return BG;if(MK(i)||DK(i))return PK(i);if(QG.test(i))return VG(i)||(MG(i)?`LLM request timed out.`:PK(i))}return EK(r.replace(/^(?:[ \t]*\r?\n)+/,``))}function LK(e){return!e||e.stopReason!==`error`?!1:jG(e.errorMessage??``)}const RK=/tool_(?:use|call)\.(?:input|arguments).*?(?:field required|required)/i,zK=/messages\.\d+\.content\.\d+\.tool_(?:use|call)\.(?:input|arguments)/i,BK=/image dimensions exceed max allowed size for many-image requests:\s*(\d+)\s*pixels/i,VK=/messages\.(\d+)\.content\.(\d+)\.image/i,HK=/image exceeds\s*(\d+(?:\.\d+)?)\s*mb/i;function UK(e){return e?RK.test(e)||zK.test(e):!1}function WK(e){return!e||e.stopReason!==`error`?!1:PG(e.errorMessage??``)}function GK(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`"type":"api_error"`)&&t.includes(`internal server error`)}function KK(e){if(!e||!e.toLowerCase().includes(`image dimensions exceed max allowed size`))return null;let t=e.match(BK),n=e.match(VK);return{maxDimensionPx:t?.[1]?Number.parseInt(t[1],10):void 0,messageIndex:n?.[1]?Number.parseInt(n[1],10):void 0,contentIndex:n?.[2]?Number.parseInt(n[2],10):void 0,raw:e}}function qK(e){return!!KK(e)}function JK(e){if(!e)return null;let t=e.toLowerCase();if(!t.includes(`image exceeds`)||!t.includes(`mb`))return null;let n=e.match(HK);return{maxMb:n?.[1]?Number.parseFloat(n[1]):void 0,raw:e}}function YK(e){return e?!!JK(e):!1}function XK(e){return!qK(e)&&AG(e)}function ZK(e){return!e||e.stopReason!==`error`?!1:IG(e.errorMessage??``)}function QK(e){if(!e)return!1;let t=e.toLowerCase();return!!(t.includes(`unknown model`)||t.includes(`model not found`)||t.includes(`model_not_found`)||t.includes(`not_found_error`)||t.includes(`does not exist`)&&t.includes(`model`)||t.includes(`invalid model`)&&!t.includes(`invalid model reference`)||/models\/[^\s]+ is not found/i.test(e)||/\b404\b/.test(e)&&/not[-_ ]?found/i.test(e))}function $K(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`session not found`)||t.includes(`session does not exist`)||t.includes(`session expired`)||t.includes(`session invalid`)||t.includes(`conversation not found`)||t.includes(`conversation does not exist`)||t.includes(`conversation expired`)||t.includes(`conversation invalid`)||t.includes(`no such session`)||t.includes(`invalid session`)||t.includes(`session id not found`)||t.includes(`conversation id not found`)}function eq(e){return qK(e)||YK(e)?null:$K(e)?`session_expired`:QK(e)?`model_not_found`:bK(e)||(NG(e)?PG(e)?`billing`:`rate_limit`:jG(e)?`rate_limit`:LG(e)?`overloaded`:CK(e)?xK(e.trim())?.code===529?`overloaded`:`timeout`:GK(e)?`timeout`:XK(e)?`format`:PG(e)?`billing`:MG(e)?`timeout`:FG(e)?`auth_permanent`:IG(e)?`auth`:null)}function tq(e){return eq(e)!==null}function nq(e){return!e||e.stopReason!==`error`?!1:tq(e.errorMessage??``)}function rq(e){return e===`google-gemini-cli`||e===`google-generative-ai`}function iq(e){if(!e)return null;let t=null;if(typeof e==`string`){let n=e.trim();if(!n.startsWith(`{`)||!n.endsWith(`}`))return null;try{t=JSON.parse(n)}catch{return null}}else typeof e==`object`&&(t=e);if(!t)return null;let n=typeof t.id==`string`?t.id:``,r=typeof t.type==`string`?t.type:``;return n.startsWith(`rs_`)&&(r===`reasoning`||r.startsWith(`reasoning.`))?{id:n,type:r}:null}function aq(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(!t||typeof t!=`object`||t.type!==`thinking`)return!0}return!1}function oq(e){let t=e.indexOf(`|`);return t<=0||t>=e.length-1?{callId:e}:{callId:e.slice(0,t),itemId:e.slice(t+1)}}function sq(e){return e===`toolCall`||e===`toolUse`||e===`functionCall`}function cq(e){let t=!1,n=[],r=null;for(let i of e){if(!i||typeof i!=`object`){r=null,n.push(i);continue}let e=i.role;if(e===`assistant`){let e=i;if(!Array.isArray(e.content)){r=null,n.push(i);continue}let a=new Map,o=!1,s=!1,c=e.content.map(e=>{if(!e||typeof e!=`object`)return e;let t=e;if(t.type===`thinking`&&iq(t.thinkingSignature))return o=!0,e;let n=e;if(!sq(n.type)||typeof n.id!=`string`)return e;let r=oq(n.id);return o||!r.itemId||!r.itemId.startsWith(`fc_`)?e:(s=!0,a.set(n.id,r.callId),{...e,id:r.callId})});if(r=a.size>0?a:null,!s){n.push(i);continue}t=!0,n.push({...e,content:c});continue}if(e===`toolResult`&&r&&r.size>0){let e=i,a=!1,o={};if(typeof e.toolCallId==`string`){let t=r.get(e.toolCallId);t&&t!==e.toolCallId&&(o.toolCallId=t,a=!0)}if(typeof e.toolUseId==`string`){let t=r.get(e.toolUseId);t&&t!==e.toolUseId&&(o.toolUseId=t,a=!0)}if(!a){n.push(i);continue}t=!0,n.push({...e,...o});continue}r=null,n.push(i)}return t?n:e}function lq(e){let t=[];for(let n of e){if(!n||typeof n!=`object`){t.push(n);continue}if(n.role!==`assistant`){t.push(n);continue}let e=n;if(!Array.isArray(e.content)){t.push(n);continue}let r=!1,i=[];for(let t=0;t<e.content.length;t++){let n=e.content[t];if(!n||typeof n!=`object`){i.push(n);continue}let a=n;if(a.type!==`thinking`){i.push(n);continue}if(!iq(a.thinkingSignature)){i.push(n);continue}if(aq(e.content,t)){i.push(n);continue}r=!0}if(!r){t.push(n);continue}i.length!==0&&t.push({...e,content:i})}return t}const uq=new Set([`toolCall`,`toolUse`,`functionCall`]);function dq(e,t=`strict`){if(!e||typeof e!=`string`)return t===`strict9`?`defaultid`:`defaulttoolid`;if(t===`strict9`){let t=e.replace(/[^a-zA-Z0-9]/g,``);return t.length>=9?t.slice(0,9):t.length>0?mq(t,9):mq(`sanitized`,9)}let n=e.replace(/[^a-zA-Z0-9]/g,``);return n.length>0?n:`sanitizedtoolid`}function fq(e){let t=e.content;if(!Array.isArray(t))return[];let n=[];for(let e of t){if(!e||typeof e!=`object`)continue;let t=e;typeof t.id!=`string`||!t.id||typeof t.type==`string`&&uq.has(t.type)&&n.push({id:t.id,name:typeof t.name==`string`?t.name:void 0})}return n}function pq(e){let t=e.toolCallId;if(typeof t==`string`&&t)return t;let n=e.toolUseId;return typeof n==`string`&&n?n:null}function mq(e,t=8){return kt(`sha256`).update(e).digest(`hex`).slice(0,t)}function hq(e){if(e.mode===`strict9`){let t=dq(e.id,e.mode),n=t.length>=9?t.slice(0,9):``;if(n&&!e.used.has(n))return n;for(let t=0;t<1e3;t+=1){let n=mq(`${e.id}:${t}`,9);if(!e.used.has(n))return n}return mq(`${e.id}:${Date.now()}`,9)}let t=dq(e.id,e.mode).slice(0,40);if(!e.used.has(t))return t;let n=mq(e.id),r=e.mode===`strict`?``:`_`,i=40-r.length-n.length,a=`${t.length>i?t.slice(0,i):t}${r}${n}`;if(!e.used.has(a))return a;for(let t=2;t<1e3;t+=1){let n=e.mode===`strict`?`x${t}`:`_${t}`,r=`${a.slice(0,40-n.length)}${n}`;if(!e.used.has(r))return r}let o=e.mode===`strict`?`t${Date.now()}`:`_${Date.now()}`;return`${a.slice(0,40-o.length)}${o}`}function gq(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=!1,r=t.map(t=>{if(!t||typeof t!=`object`)return t;let r=t,i=r.type,a=r.id;if(i!==`functionCall`&&i!==`toolUse`&&i!==`toolCall`||typeof a!=`string`||!a)return t;let o=e.resolve(a);return o===a?t:(n=!0,{...t,id:o})});return n?{...e.message,content:r}:e.message}function _q(e){let t=typeof e.message.toolCallId==`string`&&e.message.toolCallId?e.message.toolCallId:void 0,n=e.message.toolUseId,r=typeof n==`string`&&n?n:void 0,i=t?e.resolve(t):void 0,a=r?e.resolve(r):void 0;return i===t&&a===r?e.message:{...e.message,...i&&{toolCallId:i},...a&&{toolUseId:a}}}function vq(e,t=`strict`){let n=new Map,r=new Set,i=e=>{let i=n.get(e);if(i)return i;let a=hq({id:e,used:r,mode:t});return n.set(e,a),r.add(a),a},a=!1,o=e.map(e=>{if(!e||typeof e!=`object`)return e;let t=e.role;if(t===`assistant`){let t=gq({message:e,resolve:i});return t!==e&&(a=!0),t}if(t===`toolResult`){let t=_q({message:e,resolve:i});return t!==e&&(a=!0),t}return e});return a?o:e}function yq(e){let t=0;for(let n=0;n<e.length;n+=1)e.charCodeAt(n)<=32||(t+=1);if(t===0)return 0;let n=0,r=e.length-1;for(;r>=0&&e.charCodeAt(r)<=32;)--r;if(r>=0&&e[r]===`=`){for(n=1,--r;r>=0&&e.charCodeAt(r)<=32;)--r;r>=0&&e[r]===`=`&&(n=2)}let i=Math.floor(t*3/4)-n;return Math.max(0,i)}const bq=/^[A-Za-z0-9+/]+={0,2}$/;function xq(e){let t=e.replace(/\s+/g,``);if(!(!t||t.length%4!=0||!bq.test(t)))return t}function Sq(e){let t=e?.agents?.defaults?.imageMaxDimensionPx;return typeof t!=`number`||!Number.isFinite(t)?{}:{maxDimensionPx:Math.max(1,Math.floor(t))}}const Cq=T(`agents/tool-images`);function wq(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`image`&&typeof t.data==`string`&&typeof t.mimeType==`string`}function Tq(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`text`&&typeof t.text==`string`}function Eq(e){let t=e.trim();if(t){if(t.startsWith(`/9j/`))return`image/jpeg`;if(t.startsWith(`iVBOR`))return`image/png`;if(t.startsWith(`R0lGOD`))return`image/gif`}}function Dq(e){return!Number.isFinite(e)||e<1024?`${Math.max(0,Math.round(e))}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(2)}MB`}function Oq(e){for(let t of e.split(/\r?\n/u)){let e=t.trim();if(!e.startsWith(`MEDIA:`))continue;let n=e.slice(6).trim();if(n)return(n.match(/^`([^`]+)`$/u)?.[1]??n).trim()}}function kq(e){let t=e.trim();if(!t)return;try{let e=new URL(t).pathname.split(`/`).filter(Boolean).at(-1);return e&&e.length>0?e:void 0}catch{}let n=t.replaceAll(`\\`,`/`).split(`/`).filter(Boolean).at(-1);return n&&n.length>0?n:void 0}function Aq(e){let t=e.block;for(let e of[`fileName`,`filename`,`path`,`url`]){let n=t[e];if(typeof n!=`string`||n.trim().length===0)continue;let r=kq(n);if(r)return r}if(typeof t.name==`string`&&t.name.trim().length>0)return t.name.trim();if(e.mediaPathHint){let t=kq(e.mediaPathHint);if(t)return t}if(typeof e.label==`string`&&e.label.startsWith(`read:`)){let t=kq(e.label.slice(5));if(t)return t}}async function jq(e){let t=Buffer.from(e.base64,`base64`),n=await IP(t),r=n?.width,i=n?.height,a=t.byteLength>e.maxBytes,o=typeof r==`number`&&typeof i==`number`,s=o&&(r>e.maxDimensionPx||i>e.maxDimensionPx);if(o&&!a&&r<=e.maxDimensionPx&&i<=e.maxDimensionPx)return{base64:e.base64,mimeType:e.mimeType,resized:!1,width:r,height:i};let c=o?Math.max(r??0,i??0):e.maxDimensionPx,l=c>0?Math.min(e.maxDimensionPx,c):e.maxDimensionPx,u=DP(e.maxDimensionPx,l),d=null;for(let n of u)for(let o of EP){let c=await RP({buffer:t,maxSide:n,quality:o,withoutEnlargement:!0});if((!d||c.byteLength<d.size)&&(d={buffer:c,size:c.byteLength}),c.byteLength<=e.maxBytes){let l=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,u=e.fileName?`${e.fileName} ${l}`:l,d=t.byteLength>0?Number(((t.byteLength-c.byteLength)/t.byteLength*100).toFixed(1)):0;return Cq.info(`Image resized to fit limits: ${u} ${Dq(t.byteLength)} -> ${Dq(c.byteLength)} (-${d}%)`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxBytes:e.maxBytes,maxDimensionPx:e.maxDimensionPx,triggerOverBytes:a,triggerOverDimensions:s,outputMimeType:`image/jpeg`,outputBytes:c.byteLength,outputQuality:o,outputMaxSide:n,byteReductionPct:d}),{base64:c.toString(`base64`),mimeType:`image/jpeg`,resized:!0,width:r,height:i}}}let f=d?.buffer??t,p=(e.maxBytes/(1024*1024)).toFixed(0),m=(f.byteLength/(1024*1024)).toFixed(2),h=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,g=e.fileName?`${e.fileName} ${h}`:h;throw Cq.warn(`Image resize failed to fit limits: ${g} best=${Dq(f.byteLength)} limit=${Dq(e.maxBytes)}`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxDimensionPx:e.maxDimensionPx,maxBytes:e.maxBytes,smallestCandidateBytes:f.byteLength,triggerOverBytes:a,triggerOverDimensions:s}),Error(`Image could not be reduced below ${p}MB (got ${m}MB)`)}async function Mq(e,t,n={}){let r=Math.max(n.maxDimensionPx??1200,1),i=Math.max(n.maxBytes??5242880,1),a=[],o;for(let n of e){if(Tq(n)){let e=Oq(n.text);e&&(o=e)}if(!wq(n)){a.push(n);continue}let e=n.data.trim();if(!e){a.push({type:`text`,text:`[${t}] omitted empty image payload`});continue}let s=xq(e);if(!s){a.push({type:`text`,text:`[${t}] omitted image payload: invalid base64`});continue}try{let e=Eq(s)??n.mimeType,c=await jq({base64:s,mimeType:e,maxDimensionPx:r,maxBytes:i,label:t,fileName:Aq({block:n,label:t,mediaPathHint:o})});a.push({...n,data:c.base64,mimeType:c.resized?c.mimeType:e})}catch(e){a.push({type:`text`,text:`[${t}] omitted image payload: ${String(e)}`})}}return a}async function Nq(e,t,n={}){if(e.length===0)return{images:e,dropped:0};let r=(await Mq(e,t,n)).filter(wq);return{images:r,dropped:Math.max(0,e.length-r.length)}}async function Pq(e,t,n={}){let r=Array.isArray(e.content)?e.content:[];if(!r.some(e=>wq(e)||Tq(e)))return e;let i=await Mq(r,t,n);return{...e,content:i}}async function Fq(e,t,n){let r=(n?.sanitizeMode??`full`)===`full`,i={maxDimensionPx:n?.maxDimensionPx,maxBytes:n?.maxBytes},a=n?.sanitizeToolCallIds===!0?vq(e,n.toolCallIdMode):e,o=[];for(let e of a){if(!e||typeof e!=`object`){o.push(e);continue}let a=e.role;if(a===`toolResult`){let n=e,r=await Mq(Array.isArray(n.content)?n.content:[],t,i);o.push({...n,content:r});continue}if(a===`user`){let n=e,r=n.content;if(Array.isArray(r)){let e=await Mq(r,t,i);o.push({...n,content:e});continue}}if(a===`assistant`){let a=e;if(a.stopReason===`error`){let e=a.content;if(Array.isArray(e)){let n=await Mq(e,t,i);o.push({...a,content:n})}else o.push(a);continue}let s=a.content;if(Array.isArray(s)){if(!r){let e=await Mq(s,t,i);o.push({...a,content:e});continue}let e=await Mq((n?.preserveSignatures?s:Bw(s,n?.sanitizeThoughtSignatures)).filter(e=>{if(!e||typeof e!=`object`)return!0;let t=e;return t.type!==`text`||typeof t.text!=`string`?!0:t.text.trim().length>0}),t,i);if(e.length===0)continue;o.push({...a,content:e});continue}}o.push(e)}return o}function Iq(e){return e.trim().toLowerCase().replace(/\p{Emoji_Presentation}|\p{Extended_Pictographic}/gu,``).replace(/\s+/g,` `).trim()}function Lq(e,t){return t.length===0||!e||e.length<10?!1:t.some(t=>!t||t.length<10?!1:e.includes(t)||t.includes(e))}function Rq(e,t){if(t.length===0)return!1;let n=Iq(e);return!n||n.length<10?!1:Lq(n,t.map(Iq))}function zq(e){if(!e)return``;let t=e.trim().toLowerCase();return t===`z.ai`||t===`z-ai`?`zai`:t}function Bq(e){return zq(e)===`zai`}const Vq=[`openai/gpt-5.4`,`openai/gpt-5.4-pro`,`openai/gpt-5.2`,`openai-codex/gpt-5.4`,`openai-codex/gpt-5.3-codex`,`openai-codex/gpt-5.3-codex-spark`,`openai-codex/gpt-5.2-codex`,`openai-codex/gpt-5.1-codex`,`github-copilot/gpt-5.2-codex`,`github-copilot/gpt-5.2`],Hq=new Set(Vq.map(e=>e.toLowerCase())),Uq=new Set(Vq.map(e=>e.split(`/`)[1]?.toLowerCase()).filter(e=>!!e));function Wq(e){if(!e)return;let t=e.trim().toLowerCase(),n=t.replace(/[\s_-]+/g,``);if(n===`adaptive`||n===`auto`)return`adaptive`;if(n===`xhigh`||n===`extrahigh`)return`xhigh`;if([`off`].includes(t))return`off`;if([`on`,`enable`,`enabled`].includes(t))return`low`;if([`min`,`minimal`].includes(t))return`minimal`;if([`low`,`thinkhard`,`think-hard`,`think_hard`].includes(t))return`low`;if([`mid`,`med`,`medium`,`thinkharder`,`think-harder`,`harder`].includes(t))return`medium`;if([`high`,`ultra`,`ultrathink`,`think-hard`,`thinkhardest`,`highest`,`max`].includes(t))return`high`;if([`think`].includes(t))return`minimal`}function Gq(e,t){let n=t?.trim().toLowerCase();if(!n)return!1;let r=e?.trim().toLowerCase();return r?Hq.has(`${r}/${n}`):Uq.has(n)}function Kq(e,t){let n=[`off`,`minimal`,`low`,`medium`,`high`];return Gq(e,t)&&n.push(`xhigh`),n.push(`adaptive`),n}function qq(e,t){return Bq(e)?[`off`,`on`]:Kq(e,t)}function Jq(e,t,n=`, `){return qq(e,t).join(n)}function Yq(){let e=[...Vq];return e.length===0?`unknown model`:e.length===1?e[0]:e.length===2?`${e[0]} or ${e[1]}`:`${e.slice(0,-1).join(`, `)} or ${e[e.length-1]}`}function Xq(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`all`,`everything`].includes(t))return`full`;if([`on`,`minimal`,`true`,`yes`,`1`].includes(t))return`on`}function Zq(e){return Xq(e)}function Qq(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`enable`,`enabled`].includes(t)||[`tokens`,`token`,`tok`,`minimal`,`min`].includes(t))return`tokens`;if([`full`,`session`].includes(t))return`full`}function $q(e){return Qq(e)??`off`}function eJ(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`auto`,`auto-approve`,`autoapprove`].includes(t))return`full`;if([`ask`,`prompt`,`approval`,`approve`].includes(t))return`ask`;if([`on`,`true`,`yes`,`1`].includes(t))return`on`}function tJ(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`hide`,`hidden`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`show`,`visible`,`enable`,`enabled`].includes(t))return`on`;if([`stream`,`streaming`,`draft`,`live`].includes(t))return`stream`}function nJ(e){let t=e.match(/supported values are:\s*([^\n.]+)/i)??e.match(/supported values:\s*([^\n.]+)/i);if(!t?.[1])return[];let n=t[1],r=Array.from(n.matchAll(/['"]([^'"]+)['"]/g)).map(e=>e[1]?.trim());return r.length>0?r.filter(e=>!!e):n.split(/,|\band\b/gi).map(e=>e.replace(/^[^a-zA-Z]+|[^a-zA-Z]+$/g,``).trim()).filter(Boolean)}function rJ(e){let t=e.message?.trim();if(!t)return;let n=nJ(t);if(n.length===0)return/not supported/i.test(t)&&!e.attempted.has(`off`)?`off`:void 0;for(let t of n){let n=Wq(t);if(n&&!e.attempted.has(n))return n}}function iJ(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r||typeof r!=`object`){t.push(r);continue}if(r.role!==`assistant`){t.push(r);continue}let i=r,a=e[n+1];if((a&&typeof a==`object`?a.role:void 0)!==`user`){t.push(r);continue}let o=a,s=new Set;if(Array.isArray(o.content))for(let e of o.content)e&&e.type===`toolResult`&&e.toolUseId&&s.add(e.toolUseId);let c=Array.isArray(i.content)?i.content:[],l=c.filter(e=>e?e.type===`toolUse`?s.has(e.id||``):!0:!1);c.length>0&&l.length===0?t.push({...i,content:[{type:`text`,text:`[tool calls omitted]`}]}):t.push({...i,content:l})}return t}function aJ(e){let{messages:t,role:n,merge:r}=e;if(!Array.isArray(t)||t.length===0)return t;let i=[],a;for(let e of t){if(!e||typeof e!=`object`){i.push(e);continue}let t=e.role;if(!t){i.push(e);continue}if(t===a&&a===n){let t=i[i.length-1],n=e;if(t&&typeof t==`object`){let e=t;i[i.length-1]=r(e,n);continue}}i.push(e),a=t}return i}function oJ(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...e,content:n,...t.usage&&{usage:t.usage},...t.stopReason&&{stopReason:t.stopReason},...t.errorMessage&&{errorMessage:t.errorMessage}}}function sJ(e){return aJ({messages:e,role:`assistant`,merge:oJ})}function cJ(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...t,content:n,timestamp:t.timestamp??e.timestamp}}function lJ(e){return aJ({messages:iJ(e),role:`user`,merge:cJ})}const uJ=64e3,dJ=8e3,fJ=/\brequest[_ ]?id\b\s*[:=]\s*["'()]*([A-Za-z0-9._:-]+)/i,pJ=[String.raw`\b(?:x-)?api[-_]?key\b\s*[:=]\s*(["']?)([^\s"'\\;]+)\1`,String.raw`"(?:api[-_]?key|api_key)"\s*:\s*"([^"]+)"`,String.raw`(?:\bCookie\b\s*[:=]\s*[^;=\s]+=|;\s*[^;=\s]+=)([^;\s\r\n]+)`];function mJ(){let e=Ve()?.redactPatterns;return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function hJ(e,t){let n=e?.trim();if(n)return n.length>t?`${n.slice(0,t)}…`:n}function gJ(e){let t=e?.trim();if(t)return t.length>uJ?t.slice(0,uJ):t}function _J(e,t=200){let n=e?.trim();if(!n)return;let r=Array.from(n).filter(e=>{let t=e.charCodeAt(0);return!(t<=8||t===11||t===12||t>=14&&t<=31||t===127)}).join(``).replace(/[\r\n\t]+/g,` `).replace(/\s+/g,` `).trim();return r.length>t?`${r.slice(0,t)}…`:r}function vJ(e,t){return!e||!t?e:e.split(t).join(Rw(t,{len:12}))}function yJ(e){if(!e)return e;let t=mJ();return p(e,{mode:`tools`,patterns:[...d(),...t,...pJ]})}function bJ(e){if(e)return e.match(fJ)?.[1]?.trim()||void 0}function xJ(e){let t=e.message&&e.message.length>dJ?e.message.slice(0,dJ):e.message;return(e.httpCode||e.type||t?wG({httpCode:e.httpCode,type:e.type,message:t}):null)||(e.requestId?e.raw.split(e.requestId).join(`<request_id>`):jK(e.raw))}function SJ(e){let t=gJ(e);if(!t)return{};try{let e=NK(t),n=e?.requestId??bJ(t),r=n?Rw(n,{len:12}):void 0,i=xJ({raw:t,requestId:n,httpCode:e?.httpCode,type:e?.type,message:e?.message}),a=vJ(yJ(t),n),o=vJ(yJ(e?.message),n);return{rawErrorPreview:hJ(a,400),rawErrorHash:Rw(t,{len:12}),rawErrorFingerprint:i?Rw(i,{len:12}):void 0,httpCode:e?.httpCode,providerErrorType:e?.type,providerErrorMessagePreview:hJ(o,200),requestIdHash:r}}catch{return{}}}function CJ(e){let t=SJ(e);return{textPreview:t.rawErrorPreview,textHash:t.rawErrorHash,textFingerprint:t.rawErrorFingerprint,httpCode:t.httpCode,providerErrorType:t.providerErrorType,providerErrorMessagePreview:t.providerErrorMessagePreview,requestIdHash:t.requestIdHash}}const wJ=T(`agent/embedded`);function TJ(e){let t=e.reason===`billing`||e.reason===`auth_permanent`?`disabled`:`cooldown`,n=e.previous?.cooldownUntil,r=e.previous?.disabledUntil,i=t===`disabled`?typeof r==`number`&&Number.isFinite(r)&&r>e.now&&r===e.next.disabledUntil:typeof n==`number`&&Number.isFinite(n)&&n>e.now&&n===e.next.cooldownUntil,a=Rw(e.profileId,{len:12}),o=_J(e.runId)??`-`,s=_J(e.provider)??`-`;wJ.warn(`auth profile failure state updated`,{event:`auth_profile_failure_state_updated`,tags:[`error_handling`,`auth_profiles`,t],runId:e.runId,profileId:a,provider:e.provider,reason:e.reason,windowType:t,windowReused:i,previousErrorCount:e.previous?.errorCount,errorCount:e.next.errorCount,previousCooldownUntil:n,cooldownUntil:e.next.cooldownUntil,previousDisabledUntil:r,disabledUntil:e.next.disabledUntil,previousDisabledReason:e.previous?.disabledReason,disabledReason:e.next.disabledReason,failureCounts:e.next.failureCounts,consoleMessage:`auth profile failure state updated: runId=${o} profile=${a} provider=${s} reason=${e.reason} window=${t} reused=${String(i)}`})}const EJ=[`auth_permanent`,`auth`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`unknown`],DJ=new Set(EJ),OJ=new Map(EJ.map((e,t)=>[e,t]));function kJ(e){let t=z(e??``);return t===`openrouter`||t===`kilocode`}function AJ(e){let t=[e.cooldownUntil,e.disabledUntil].filter(e=>typeof e==`number`).filter(e=>Number.isFinite(e)&&e>0);return t.length===0?null:Math.max(...t)}function jJ(e,t,n){if(kJ(e.profiles[t]?.provider))return!1;let r=e.usageStats?.[t];if(!r)return!1;let i=AJ(r);return i?(n??Date.now())<i:!1}function MJ(e,t){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t<e}function NJ(e){let t=e.now??Date.now(),n=new Map,r=(e,t)=>{!DJ.has(e)||t<=0||!Number.isFinite(t)||n.set(e,(n.get(e)??0)+t)};for(let n of e.profileIds){let i=e.store.usageStats?.[n];if(!i)continue;if(MJ(i.disabledUntil,t)&&i.disabledReason&&DJ.has(i.disabledReason)){r(i.disabledReason,1e3);continue}if(!MJ(i.cooldownUntil,t))continue;let a=!1;for(let[e,t]of Object.entries(i.failureCounts??{})){let n=e,i=typeof t==`number`?t:0;!DJ.has(n)||i<=0||(r(n,i),a=!0)}a||r(`unknown`,1)}if(n.size===0)return null;let i=null,a=-1,o=2**53-1;for(let e of EJ){let t=n.get(e);if(typeof t!=`number`)continue;let r=OJ.get(e)??2**53-1;(t>a||t===a&&r<o)&&(i=e,a=t,o=r)}return i}function PJ(e,t){let n=null;for(let r of t){let t=e.usageStats?.[r];if(!t)continue;let i=AJ(t);typeof i!=`number`||!Number.isFinite(i)||i<=0||(n===null||i<n)&&(n=i)}return n}function FJ(e,t){let n=e.usageStats;if(!n)return!1;let r=t??Date.now(),i=!1;for(let[e,t]of Object.entries(n)){if(!t)continue;let a=!1,o=typeof t.cooldownUntil==`number`&&Number.isFinite(t.cooldownUntil)&&t.cooldownUntil>0&&r>=t.cooldownUntil,s=typeof t.disabledUntil==`number`&&Number.isFinite(t.disabledUntil)&&t.disabledUntil>0&&r>=t.disabledUntil;o&&(t.cooldownUntil=void 0,a=!0),s&&(t.disabledUntil=void 0,t.disabledReason=void 0,a=!0),a&&!AJ(t)&&(t.errorCount=0,t.failureCounts=void 0),a&&(n[e]=t,i=!0)}return i}async function IJ(e){let{store:t,profileId:n,agentDir:r}=e,i=await Ol({agentDir:r,updater:e=>e.profiles[n]?(VJ(e,n,e=>BJ(e,{lastUsed:Date.now()})),!0):!1});if(i){t.usageStats=i.usageStats;return}t.profiles[n]&&(VJ(t,n,e=>BJ(e,{lastUsed:Date.now()})),Vl(t,r))}function LJ(e){let t=Math.max(1,e);return Math.min(3600*1e3,60*1e3*5**Math.min(t-1,3))}function RJ(e){let t={billingBackoffHours:5,billingMaxHours:24,failureWindowHours:24},n=(e,t)=>typeof e==`number`&&Number.isFinite(e)&&e>0?e:t,r=e.cfg?.auth?.cooldowns,i=n((()=>{let t=r?.billingBackoffHoursByProvider;if(t){for(let[n,r]of Object.entries(t))if(z(n)===e.providerId)return r}})()??r?.billingBackoffHours,t.billingBackoffHours),a=n(r?.billingMaxHours,t.billingMaxHours),o=n(r?.failureWindowHours,t.failureWindowHours);return{billingBackoffMs:i*60*60*1e3,billingMaxMs:a*60*60*1e3,failureWindowMs:o*60*60*1e3}}function zJ(e){let t=Math.max(1,e.errorCount),n=Math.max(6e4,e.baseMs),r=Math.max(n,e.maxMs),i=n*2**Math.min(t-1,10);return Math.min(r,i)}function BJ(e,t){return{...e,errorCount:0,cooldownUntil:void 0,disabledUntil:void 0,disabledReason:void 0,failureCounts:void 0,...t}}function VJ(e,t,n){e.usageStats=e.usageStats??{},e.usageStats[t]=n(e.usageStats[t])}function HJ(e){let{existingUntil:t,now:n,recomputedUntil:r}=e;return typeof t==`number`&&Number.isFinite(t)&&t>n?t:r}function UJ(e){let t=e.cfgResolved.failureWindowMs,n=typeof e.existing.lastFailureAt==`number`&&e.existing.lastFailureAt>0&&e.now-e.existing.lastFailureAt>t,r=AJ(e.existing),i=typeof r==`number`&&e.now>=r,a=n||i,o=(a?0:e.existing.errorCount??0)+1,s=a?{}:{...e.existing.failureCounts};s[e.reason]=(s[e.reason]??0)+1;let c={...e.existing,errorCount:o,failureCounts:s,lastFailureAt:e.now};if(e.reason===`billing`||e.reason===`auth_permanent`){let t=zJ({errorCount:s[e.reason]??1,baseMs:e.cfgResolved.billingBackoffMs,maxMs:e.cfgResolved.billingMaxMs});c.disabledUntil=HJ({existingUntil:e.existing.disabledUntil,now:e.now,recomputedUntil:e.now+t}),c.disabledReason=e.reason}else{let t=LJ(o);c.cooldownUntil=HJ({existingUntil:e.existing.cooldownUntil,now:e.now,recomputedUntil:e.now+t})}return c}async function WJ(e){let{store:t,profileId:n,reason:r,agentDir:i,cfg:a,runId:o}=e,s=t.profiles[n];if(!s||kJ(s.provider))return;let c,l,u=0,d=await Ol({agentDir:i,updater:e=>{let t=e.profiles[n];if(!t||kJ(t.provider))return!1;let i=Date.now(),o=RJ({cfg:a,providerId:z(t.provider)});l=e.usageStats?.[n],u=i;let s=UJ({existing:l??{},now:i,reason:r,cfgResolved:o});return c=s,VJ(e,n,()=>s),!0}});if(d){t.usageStats=d.usageStats,c&&TJ({runId:o,profileId:n,provider:s.provider,reason:r,previous:l,next:c,now:u});return}if(!t.profiles[n])return;let f=Date.now(),p=RJ({cfg:a,providerId:z(t.profiles[n]?.provider??``)});l=t.usageStats?.[n];let m=UJ({existing:l??{},now:f,reason:r,cfgResolved:p});c=m,VJ(t,n,()=>m),Vl(t,i),TJ({runId:o,profileId:n,provider:t.profiles[n]?.provider??s.provider,reason:r,previous:l,next:c,now:f})}function GJ(e){let t=Dc(e.provider),n=e.store.profiles[e.profileId];if(!n)return{eligible:!1,reasonCode:`profile_missing`};if(Dc(n.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};let r=e.cfg?.auth?.profiles?.[e.profileId];if(r){if(Dc(r.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};if(r.mode!==n.type&&!(r.mode===`oauth`&&n.type===`token`))return{eligible:!1,reasonCode:`mode_mismatch`}}let i=bw({credential:n,now:e.now});return{eligible:i.eligible,reasonCode:i.reasonCode}}function KJ(e){let{cfg:t,store:n,provider:r,preferredProfile:i}=e,a=z(r),o=Dc(r),s=Date.now();FJ(n,s);let c=Oc(n.order,a),l=Oc(t?.auth?.order,a),u=c??l,d=t?.auth?.profiles?Object.entries(t.auth.profiles).filter(([,e])=>Dc(e.provider)===o).map(([e])=>e):[],f=u??(d.length>0?d:Ul(n,r));if(f.length===0)return[];let p=e=>GJ({cfg:t,store:n,provider:o,profileId:e,now:s}).eligible,m=f.filter(p),h=f.every(e=>!n.profiles[e]);m.length===0&&d.length>0&&h&&(m=Ul(n,r).filter(p));let g=Hl(m);if(u&&u.length>0){let e=[],t=[];for(let r of g)if(jJ(n,r)){let e=AJ(n.usageStats?.[r]??{})??s;t.push({profileId:r,cooldownUntil:e})}else e.push(r);let r=t.toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId),a=[...e,...r];return i&&a.includes(i)?[i,...a.filter(e=>e!==i)]:a}let _=qJ(g,n);return i&&_.includes(i)?[i,..._.filter(e=>e!==i)]:_}function qJ(e,t){let n=Date.now(),r=[],i=[];for(let n of e)jJ(t,n)?i.push(n):r.push(n);let a=r.map(e=>{let n=t.profiles[e]?.type;return{profileId:e,typeScore:n===`oauth`?0:n===`token`?1:n===`api_key`?2:3,lastUsed:t.usageStats?.[e]?.lastUsed??0}}).toSorted((e,t)=>e.typeScore===t.typeScore?e.lastUsed-t.lastUsed:e.typeScore-t.typeScore).map(e=>e.profileId),o=i.map(e=>({profileId:e,cooldownUntil:AJ(t.usageStats?.[e]??{})??n})).toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId);return[...a,...o]}var JJ=e({CLAUDE_CLI_PROFILE_ID:()=>CLAUDE_CLI_PROFILE_ID,CODEX_CLI_PROFILE_ID:()=>CODEX_CLI_PROFILE_ID,ensureAuthProfileStore:()=>Bl});const YJ=T(`model-auth`),XJ=`AWS_BEARER_TOKEN_BEDROCK`,ZJ=`AWS_ACCESS_KEY_ID`,QJ=`AWS_SECRET_ACCESS_KEY`,$J=`AWS_PROFILE`;function eY(e,t){let n=e?.models?.providers??{},r=n[t];if(r)return r;let i=z(t);return i===t?Object.entries(n).find(([e])=>z(e)===i)?.[1]:n[i]??Object.entries(n).find(([e])=>z(e)===i)?.[1]}function tY(e,t){return Vi(eY(e,t)?.apiKey)}function nY(e){let t=tY(e.cfg,e.provider);if(!t)return null;if(!ga(t))return{apiKey:t,source:`models.json`};if(!da(t))return null;let n=Vi((e.env??process.env)[t]);return n?{apiKey:n,source:oY({applied:new Set(zi()),envVars:[t],label:`${t} (models.json marker)`})}:null}function rY(e,t,n){return!!nY({cfg:e,provider:t,env:n})}function iY(e,t){let n=eY(e,t)?.auth;if(n===`api-key`||n===`aws-sdk`||n===`oauth`||n===`token`)return n}function aY(e){if(z(e.provider)!==`ollama`)return null;let t=eY(e.cfg,e.provider);return!t||!(t.api?.trim()||t.baseUrl?.trim()||Array.isArray(t.models)&&t.models.length>0)?null:{apiKey:`ollama-local`,source:`models.providers.ollama (synthetic local key)`,mode:`api-key`}}function oY(e){return`${e.envVars.some(t=>e.applied.has(t))?`shell env: `:`env: `}${e.label}`}function sY(e=process.env){if(e[XJ]?.trim())return XJ;if(e[ZJ]?.trim()&&e[QJ]?.trim())return ZJ;if(e[$J]?.trim())return $J}function cY(){let e=new Set(zi());return process.env[XJ]?.trim()?{mode:`aws-sdk`,source:oY({applied:e,envVars:[XJ],label:XJ})}:process.env[ZJ]?.trim()&&process.env[QJ]?.trim()?{mode:`aws-sdk`,source:oY({applied:e,envVars:[ZJ,QJ],label:`${ZJ} + ${QJ}`})}:process.env[$J]?.trim()?{mode:`aws-sdk`,source:oY({applied:e,envVars:[$J],label:$J})}:{mode:`aws-sdk`,source:`aws-sdk default chain`}}async function lY(e){let{provider:t,cfg:n,profileId:r,preferredProfile:i}=e,a=e.store??Bl(e.agentDir);if(r){let t=await Iw({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(!t)throw Error(`No credentials found for profile "${r}".`);let i=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:i===`oauth`?`oauth`:i===`token`?`token`:`api-key`}}let o=iY(n,t);if(o===`aws-sdk`)return cY();let s=KJ({cfg:n,store:a,provider:t,preferredProfile:i});for(let r of s)try{let t=await Iw({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(t){let e=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:e===`oauth`?`oauth`:e===`token`?`token`:`api-key`}}}catch(e){YJ.debug?.(`auth profile "${r}" failed for provider "${t}": ${String(e)}`)}let c=uY(t);if(c)return{apiKey:c.apiKey,source:c.source,mode:c.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`};let l=nY({cfg:n,provider:t});if(l)return{apiKey:l.apiKey,source:l.source,mode:`api-key`};let u=aY({cfg:n,provider:t});if(u)return u;let d=z(t);if(o===void 0&&d===`amazon-bedrock`)return cY();if(t===`openai`&&Ul(a,`openai-codex`).length>0)throw Error(`No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.4 (OAuth) or set OPENAI_API_KEY to use openai/gpt-5.4.`);let f=xl(e.agentDir),p=k.dirname(f);throw Error([`No API key found for provider "${t}".`,`Auth store: ${f} (agentDir: ${p}).`,`Configure auth for this agent (${oi(`openclaw agents add <id>`)}) or copy auth-profiles.json from the main agentDir.`].join(` `))}function uY(e,t=process.env){let n=z(e),r=new Set(zi()),i=e=>{let n=Vi(t[e]);return n?{apiKey:n,source:r.has(e)?`shell env: ${e}`:`env: ${e}`}:null},a=ia[n];if(a)for(let e of a){let t=i(e);if(t)return t}if(n===`google-vertex`){let e=_t(n);return e?{apiKey:e,source:`gcloud adc`}:null}return null}function dY(e,t,n){let r=e?.trim();if(!r)return;let i=iY(t,r);if(i===`aws-sdk`)return`aws-sdk`;let a=n??Bl(),o=Ul(a,r);if(o.length>0){let e=new Set(o.map(e=>a.profiles[e]?.type).filter(e=>!!e));if([`oauth`,`token`,`api_key`].filter(t=>e.has(t)).length>=2)return`mixed`;if(e.has(`oauth`))return`oauth`;if(e.has(`token`))return`token`;if(e.has(`api_key`))return`api-key`}if(i===void 0&&z(r)===`amazon-bedrock`)return`aws-sdk`;let s=uY(r);return s?.apiKey?s.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`:rY(t,r)?`api-key`:`unknown`}async function fY(e){return lY({provider:e.model.provider,cfg:e.cfg,profileId:e.profileId,preferredProfile:e.preferredProfile,store:e.store,agentDir:e.agentDir})}function pY(e,t){let n=Bi(e.apiKey);if(n)return n;throw Error(`No API key resolved for provider "${t}" (auth mode: ${e.mode}).`)}export{ZK as $,_g as $a,vT as $i,jz as $n,Ad as $o,Yj as $r,or as $s,qH as $t,Gq as A,jx as Aa,bO as Ai,BB as An,km as Ao,eR as Ar,mo as As,LW as At,fq as B,Uv as Ba,QT as Bi,tB as Bn,Ip as Bo,RP as Br,Ji as Bs,bU as Bt,Kq as C,FS as Ca,Gk as Ci,iV as Cn,oh as Co,rR as Cr,Wc as Cs,YW as Ct,Qq as D,Yx as Da,VO as Di,aV as Dn,Nm as Do,uR as Dr,lc as Ds,BW as Dt,Wq as E,LS as Ea,YO as Ei,oV as En,eh as Eo,iR as Er,rc as Es,VW as Et,Nq as F,Oy as Fa,ZD as Fi,TB as Fn,pm as Fo,BF as Fr,xa as Fs,DU as Ft,rq as G,F_ as Ga,CT as Gi,zz as Gn,Of as Go,dP as Gr,Bi as Gs,hU as Gt,vq as H,dv as Ha,XT as Hi,$z as Hn,dp as Ho,bP as Hr,Ki as Hs,vU as Ht,Pq as I,Dy as Ia,QD as Ii,_B as In,Vp as Io,zP as Ir,va as Is,EU as It,wK as J,D_ as Ja,DT as Ji,Pz as Jn,Tf as Jo,lP as Jr,yi as Js,iU as Jt,BG as K,R_ as Ka,TT as Ki,Bz as Kn,yf as Ko,pP as Kr,Ri as Ks,lU as Kt,Sq as L,Ay as La,oE as Li,gB as Ln,Kp as Lo,IP as Lr,ga as Ls,CU as Lt,Lq as M,Ny as Ma,lO as Mi,AB as Mn,mm as Mo,pI as Mr,Ba as Ms,RW as Mt,Iq as N,Fy as Na,sO as Ni,DB as Nn,fm as No,tI as Nr,ya as Ns,TW as Nt,Zq as O,kS as Oa,GO as Oi,JB as On,Pm as Oo,dR as Or,yc as Os,xW as Ot,Fq as P,xy as Pa,dO as Pi,wB as Pn,im as Po,HF as Pr,ba as Ps,IW as Pt,jK as Q,kg as Qa,hT as Qi,Oz as Qn,jd as Qo,Zj as Qr,pr as Qs,ZH as Qt,xq as R,jy as Ra,fE as Ri,hB as Rn,Gp as Ro,BP as Rr,ha as Rs,yU as Rt,Yq as S,MS as Sa,Bk as Si,fV as Sn,mh as So,cR as Sr,Lc as Ss,qW as St,tJ as T,IS as Ta,Ck as Ti,$B as Tn,Qm as To,oR as Tr,Uc as Ts,UW as Tt,cq as U,O_ as Ua,UT as Ui,eB as Un,Ep as Uo,fP as Ur,Gi as Us,gU as Ut,pq as V,H as Va,W as Vi,qz as Vn,up as Vo,wP as Vr,qi as Vs,_U as Vt,lq as W,P_ as Wa,BT as Wi,kz as Wn,pp as Wo,hP as Wr,Vi as Ws,pU as Wt,zG as X,Zg as Xa,OT as Xi,Nz as Xn,Dd as Xo,TN as Xr,oi as Xs,QH as Xt,FK as Y,s_ as Ya,kT as Yi,Vz as Yn,ff as Yo,EN as Yr,si as Ys,JH as Yt,PK as Z,Dg as Za,_T as Zi,Rz as Zn,kd as Zo,HM as Zr,Qr as Zs,eU as Zt,_J as _,iC as _a,tn as _c,tA as _i,sH as _n,bh as _o,kR as _r,Ec as _s,hG as _t,dY as a,Uw as aa,On as ac,FA as ai,FH as an,Qh as ao,mz as ar,Hl as as,tq as at,rJ as b,KS as ba,qk as bi,mV as bn,yh as bo,tR as br,Rc as bs,eG as bt,KJ as c,Rw as ca,kn as cc,GA as ci,kH as cn,eg as co,lz as cr,Bl as cs,MK as ct,jJ as d,dw as da,Sn as dc,vA as di,bH as dn,Wh as do,cz as dr,il as ds,JK as dt,aT as ea,fr as ec,Sj as ei,KH as en,ug as eo,Az as er,Od as es,WK as et,WJ as f,uw as fa,yn as fc,yA as fi,vH as fn,Gh as fo,QR as fr,Hc as fs,IK as ft,CJ as g,VC as ga,nn as gc,nA as gi,pH as gn,kh as go,AR as gr,kc as gs,SG as gt,SJ as h,RC as ha,rn as hc,eA as hi,dH as hn,Rh as ho,XR as hr,Oc as hs,CG as ht,uY as i,Vw as ia,L as ic,fj as ii,PH as in,Kh as io,xz as ir,Xl as is,nq as it,Rq as j,My as ja,uO as ji,RB as jn,Tm as jo,$L as jr,Ha as js,yW as jt,$q as k,RS as ka,WO as ki,WB as kn,Fm as ko,QL as kr,fo as ks,SW as kt,FJ as l,Iw as la,fn as lc,gA as li,wH as ln,$h as lo,az as lr,xl as ls,CK as lt,NJ as m,zC as ma,un as mc,sA as mi,fH as mn,Vh as mo,YR as mr,Ic as ms,MG as mt,pY as n,qw as na,_r as nc,oj as ni,RH as nn,pg as no,Dz as nr,pu as ns,YG as nt,nY as o,Hw as oa,Dn as oc,LA as oi,AH as on,Zh as oo,dz as or,Ul as os,JG as ot,IJ as p,HC as pa,Cn as pc,hA as pi,_H as pn,Uh as po,JR as pr,Fc as ps,PG as pt,eq as q,z_ as qa,wT as qi,Lz as qn,wf as qo,yP as qr,Li as qs,cU as qt,lY as r,Kw as ra,mr as rc,cj as ri,LH as rn,mg as ro,vz as rr,nu as rs,WG as rt,JJ as s,Jw as sa,Tn as sc,WA as si,DH as sn,tg as so,oz as sr,Wl as ss,LK as st,fY as t,oT as ta,I as tc,pj as ti,zH as tn,og as to,Fz as tr,cd as ts,XK as tt,PJ as u,fw as ua,vn as uc,mA as ui,xH as un,Hh as uo,sz as ur,vl as us,KK as ut,lJ as v,nC as va,Qk as vi,oH as vn,ph as vo,ER as vr,Mc as vs,mG as vt,eJ as w,PS as wa,Ok as wi,sV as wn,ah as wo,fR as wr,Vc as ws,WW as wt,Jq as x,jS as xa,Kk as xi,_V as xn,_h as xo,lR as xr,zc as xs,XW as xt,sJ as y,qS as ya,kk as yi,HV as yn,gh as yo,_R as yr,z as ys,fG as yt,yq as z,_y as za,aE as zi,mB as zn,Wp as zo,WP as zr,Yi as zs,xU as zt};
67
+ //# sourceMappingURL=model-auth-CycDtQl-.js.map
@@ -64,3 +64,4 @@ stat -c "%F|%s|%Y" -- "$2"`,args:[t.canonicalParentPath,t.basename],allowFailure
64
64
  `)}function eU(){try{if((0,c.execSync)(`which rg`,{encoding:`utf8`,stdio:[`ignore`,`pipe`,`ignore`],timeout:2e3}).trim())return}catch{}if(u.default.platform()===`darwin`)return{command:`/usr/bin/true`}}let tU=!1,nU=null;function rU(e,t){if(e===null)return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}let iU=null;async function aU(){return iU||=(await import(`@anthropic-ai/sandbox-runtime`)).SandboxManager,iU}const oU={network:{allowedDomains:[`github.com`,`*.github.com`,`*.githubusercontent.com`,`npmjs.org`,`*.npmjs.org`,`registry.npmjs.org`,`pypi.org`,`*.pypi.org`,`api.anthropic.com`,`*.openai.com`,`*.qq.com`,`*.imtt.qq.com`],deniedDomains:[],allowLocalBinding:!0},filesystem:{denyRead:[`~/.ssh`,`~/.gnupg`,`~/.aws/credentials`],allowWrite:[`.`,`/tmp`,`/private/tmp`,`/var/tmp`,`/private/var/tmp`],denyWrite:[`.env`,`.env.local`,`.env.production`]}};function sU(e,t){return e.map(e=>e===`.`?t?o.default.resolve(t):process.cwd():e===`~`||e.startsWith(`~/`)?o.default.resolve(u.default.homedir(),e.slice(e.startsWith(`~/`)?2:1)):e)}function cU(e,t){let n=eU(),r=n?{ripgrep:n}:{};if(!e)return{...oU,filesystem:{...oU.filesystem,allowWrite:sU(oU.filesystem?.allowWrite??[],t)},...r};let i=e.allowWrite??oU.filesystem?.allowWrite??[],a=e.allowedDomains?.includes(`*`);return{network:{allowedDomains:a?void 0:e.allowedDomains??oU.network?.allowedDomains??[],deniedDomains:a?[]:e.deniedDomains??oU.network?.deniedDomains??[],allowLocalBinding:e.allowLocalBinding??oU.network?.allowLocalBinding??!0,allowUnixSockets:e.allowUnixSockets},filesystem:{denyRead:e.denyRead??oU.filesystem?.denyRead??[],allowWrite:sU(i,t),denyWrite:e.denyWrite??oU.filesystem?.denyWrite??[]},...r}}async function lU(e){let t=e??cU();if(!(tU&&rU(nU,t)))try{await(await aU()).initialize(t,void 0,!0),tU=!0,nU=t,console.log(`[QBotClaw:SRT:Init] ✅ sandbox-runtime 初始化成功 | config=${JSON.stringify(t,null,2)}`),hU()}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Init] ❌ sandbox-runtime 初始化失败: ${t}`),e}}async function uU(e){tU||await lU();try{return await(await aU()).wrapWithSandbox(e)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);throw console.log(`[QBotClaw:SRT:Exec] ❌ wrapWithSandbox 失败: ${t}`),e}}async function dU(){if(tU)try{await(await aU()).reset(),tU=!1,nU=null}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Cleanup] ❌ sandbox-runtime 重置失败: ${t}`)}}async function fU(e){if(!tU)return[];try{return(await aU()).getSandboxViolationStore().getViolationsForCommand(e)}catch{return[]}}async function pU(){if(tU)try{(await aU()).cleanupAfterCommand()}catch{}}let mU=!1;function hU(){if(!mU){mU=!0,process.on(`exit`,()=>{tU&&(console.log(`[QBotClaw:SRT:Cleanup] 🧹 进程退出,执行 SRT 清理...`),dU())});for(let e of[`SIGTERM`,`SIGINT`])process.on(e,()=>{dU().finally(()=>{process.kill(process.pid,e)})})}}async function gU(e,r,i){if(await p.default.mkdir(e,{recursive:!0}),r){let i=n.y(r),a=[t.X,t.tt,t.nt,t.et,t.rt,t.Q,t.$];for(let n of a){let r=o.default.join(i,n),a=o.default.join(e,n);try{await p.default.access(a)}catch{try{let e=await t.ut({absolutePath:r,rootPath:i,boundaryLabel:`sandbox seed workspace`});if(!e.ok)continue;try{let t=l.default.readFileSync(e.fd,`utf-8`);await p.default.writeFile(a,t,{encoding:`utf-8`,flag:`wx`})}finally{l.default.closeSync(e.fd)}}catch{}}}}await t.it({dir:e,ensureBootstrapFiles:!i})}async function _U(e){let{cfg:r,rawSessionKey:i}=e,a=n.y(e.workspaceDir?.trim()||t.Z),o=n.y(r.workspaceRoot),s=OP(r.scope,i),c=r.scope===`shared`?o:DP(o,s),l=r.workspaceAccess===`rw`?a:c;if(l===c){if(await gU(c,a,e.config?.agents?.defaults?.skipBootstrap),r.workspaceAccess!==`rw`)try{await qE({sourceWorkspaceDir:a,targetWorkspaceDir:c,config:e.config})}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);n.M.error?.(`Sandbox skill sync failed: ${t}`)}}else await p.default.mkdir(l,{recursive:!0});return{agentWorkspaceDir:a,scopeKey:s,sandboxWorkspaceDir:c,workspaceDir:l}}async function vU(e){if(e.docker.user?.trim())return e.docker;let t=e.stat??(e=>p.default.stat(e));try{let n=await t(e.workspaceDir),r=Number.isInteger(n.uid)?n.uid:null,i=Number.isInteger(n.gid)?n.gid:null;return r===null||i===null||r<0||i<0?e.docker:{...e.docker,user:`${r}:${i}`}}catch{return e.docker}}function yU(e){let t=e.sessionKey?.trim();if(!t)return null;let n=QH({cfg:e.config,sessionKey:t});if(!n.sandboxed)return console.log(`[QBotClaw:Sandbox:Init] ❌ 沙箱未启用 | mode=${n.mode} | sessionKey=${t} | sandboxed=false`),null;let r=zC(e.config,n.agentId);return console.log(`[QBotClaw:Sandbox:Init] ✅ 沙箱已启用 | mode=${n.mode} | agentId=${n.agentId} | scope=${r.scope}`),{rawSessionKey:t,runtime:n,cfg:r}}async function bU(e){let r=yU(e);if(!r)return null;let{rawSessionKey:i,cfg:a}=r;if(a.runtime===`srt`){let r=n.y(e.workspaceDir?.trim()||t.Z);await p.default.mkdir(r,{recursive:!0});let s=e.config?.agents?.defaults?.sandbox?.srt,c=cU(s,r);try{await lU(c)}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);return console.log(`[QBotClaw:SRT:Init] ❌ SRT 初始化失败,回退到非沙箱模式: ${t}`),n.M.error?.(`SRT sandbox initialization failed: ${t}`),null}let l={enabled:!0,runtime:`srt`,sessionKey:i,workspaceDir:r,agentWorkspaceDir:r,workspaceAccess:a.workspaceAccess===`none`?`rw`:a.workspaceAccess,containerName:`srt-sandbox-${i}`,containerWorkdir:r,docker:a.docker,tools:a.tools,browserAllowHostControl:a.browser.allowHostControl};if(s?.skillMounts!==!1){let t=[{hostRoot:r,containerRoot:r,writable:l.workspaceAccess===`rw`,source:`workspace`}];for(let e of a.docker.binds??[]){let r=e.split(`:`);if(r.length>=2&&r[0]&&r[1]){let e=n.y(r[0]);t.push({hostRoot:e,containerRoot:e,writable:!r[2]?.includes(`ro`),source:`bind`})}}let i=sU(s?.allowWrite??c.filesystem?.allowWrite??[],r),u=new Set(t.map(e=>e.hostRoot));for(let e of i){if(u.has(e))continue;let n=!1;for(let t of u)if(e.startsWith(t+o.default.sep)||e===t){n=!0;break}n||(u.add(e),t.push({hostRoot:e,containerRoot:e,writable:!0,source:`allowWrite`}))}let d=n.y(`~`);u.has(d)||(u.add(d),t.push({hostRoot:d,containerRoot:d,writable:!1,source:`bind`}));try{let n=WE(r,{config:e.config}),i=new Set;i.add(o.default.resolve(r));for(let e of n){let n=o.default.resolve(o.default.dirname(e.skill.baseDir));if(i.has(n))continue;let r=!1;for(let e of i)if(n.startsWith(e+o.default.sep)||n===e){r=!0;break}r||(i.add(n),t.push({hostRoot:n,containerRoot:n,writable:!1,source:`bind`}))}}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);console.log(`[QBotClaw:SRT:Init] ⚠️ Skills 源目录收集失败(非致命): ${t}`),n.M.error?.(`SRT sandbox skill mount collection failed: ${t}`)}l.fsBridge=_D({workspaceDir:r,containerWorkdir:r,mounts:t,denyReadPaths:(s?.denyRead??c.filesystem?.denyRead??[]).map(e=>n.y(e))})}else l.fsBridge=gD(r);return l}await JF(a);let{agentWorkspaceDir:s,scopeKey:c,workspaceDir:l}=await _U({cfg:a,rawSessionKey:i,config:e.config,workspaceDir:e.workspaceDir}),u=await vU({docker:a.docker,workspaceDir:l}),d=u===a.docker?a:{...a,docker:u},f=await vF({sessionKey:i,workspaceDir:l,agentWorkspaceDir:s,cfg:d});console.log(`[QBotClaw:Sandbox:Init] 🐳 沙箱容器就绪 | containerName=${f}`);let m=await AF({scopeKey:c,workspaceDir:l,agentWorkspaceDir:s,cfg:d,evaluateEnabled:e.config?.browser?.evaluateEnabled??!0,bridgeAuth:a.browser.enabled?await(async()=>{let t=e.config??Nb(),r=jw(t);try{r=(await Nw({cfg:t})).auth}catch(e){let t=e instanceof Error?e.message:JSON.stringify(e);n.M.error?.(`Sandbox browser auth ensure failed: ${t}`)}return r})():void 0}),h={enabled:!0,runtime:`docker`,sessionKey:i,workspaceDir:l,agentWorkspaceDir:s,workspaceAccess:d.workspaceAccess,containerName:f,containerWorkdir:d.docker.workdir,docker:d.docker,tools:d.tools,browserAllowHostControl:d.browser.allowHostControl,browser:m??void 0};return h.fsBridge=zF({sandbox:h}),h}async function xU(e){let t=yU(e);if(!t)return null;let{rawSessionKey:n,cfg:r}=t,{workspaceDir:i}=await _U({cfg:r,rawSessionKey:n,config:e.config,workspaceDir:e.workspaceDir});return{workspaceDir:i,containerWorkdir:r.docker.workdir}}function SU(e){if(typeof e!=`object`||!e)return JSON.stringify(e)??`null`;if(Array.isArray(e))return`[${e.map(e=>SU(e)).join(`,`)}]`;let t=e;return`{${Object.keys(t).toSorted().map(e=>`${JSON.stringify(e)}:${SU(t[e])}`).join(`,`)}}`}const CU=/\b(?:daily|weekly|monthly)(?:\/(?:daily|weekly|monthly))* (?:usage )?limit(?:s)?(?: (?:exhausted|reached|exceeded))?\b/i,wU={rateLimit:[/rate[_ ]limit|too many requests|429/,`model_cooldown`,`exceeded your current quota`,`resource has been exhausted`,`quota exceeded`,`resource_exhausted`,`usage limit`,/\btpm\b/i,`tokens per minute`,`tokens per day`],overloaded:[/overloaded_error|"type"\s*:\s*"overloaded_error"/i,`overloaded`,/service[_ ]unavailable.*(?:overload|capacity|high[_ ]demand)|(?:overload|capacity|high[_ ]demand).*service[_ ]unavailable/i,`high demand`],timeout:[`timeout`,`timed out`,`service unavailable`,`deadline exceeded`,`context deadline exceeded`,`connection error`,`network error`,`network request failed`,`fetch failed`,`socket hang up`,/\beconn(?:refused|reset|aborted)\b/i,/\benotfound\b/i,/\beai_again\b/i,/without sending (?:any )?chunks?/i,/\bstop reason:\s*(?:abort|error|malformed_response)\b/i,/\breason:\s*(?:abort|error|malformed_response)\b/i,/\bunhandled stop reason:\s*(?:abort|error|malformed_response)\b/i],billing:[/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment/i,`payment required`,`insufficient credits`,/insufficient[_ ]quota/i,`credit balance`,`plans & billing`,`insufficient balance`,`insufficient usd or diem balance`],authPermanent:[/api[_ ]?key[_ ]?(?:revoked|invalid|deactivated|deleted)/i,`invalid_api_key`,`key has been disabled`,`key has been revoked`,`account has been deactivated`,/could not (?:authenticate|validate).*(?:api[_ ]?key|credentials)/i,`permission_error`,`not allowed for this organization`],auth:[/invalid[_ ]?api[_ ]?key/,`incorrect api key`,`invalid token`,`authentication`,`re-authenticate`,`oauth token refresh failed`,`unauthorized`,`forbidden`,`access denied`,`insufficient permissions`,`insufficient permission`,/missing scopes?:/i,`expired`,`token has expired`,/\b401\b/,/\b403\b/,`no credentials found`,`no api key found`],format:[`string should match pattern`,`tool_use.id`,`tool_use_id`,`messages.1.content.1.tool_use.id`,`invalid request format`,/tool call id was.*must be/i]},TU=/^(?:error[:\s-]+)?billing(?:\s+error)?(?:[:\s-]+|$)|^(?:error[:\s-]+)?(?:credit balance|insufficient credits?|payment required|http\s*402\b)/i,EU=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|^\s*402\s+payment/i;function DU(e,t){if(!e)return!1;let n=e.toLowerCase();return t.some(e=>e instanceof RegExp?e.test(n):n.includes(e))}function OU(e){return DU(e,wU.format)}function kU(e){return DU(e,wU.rateLimit)}function AU(e){return DU(e,wU.timeout)}function jU(e){return CU.test(e)}function MU(e){let t=e.toLowerCase();return t?e.length>512?EU.test(t):DU(t,wU.billing)?!0:TU.test(e)?t.includes(`upgrade`)||t.includes(`credits`)||t.includes(`payment`)||t.includes(`plan`):!1:!1}function NU(e){return DU(e,wU.authPermanent)}function PU(e){return DU(e,wU.auth)}function FU(e){return DU(e,wU.overloaded)}const IU=n.O(`errors`);function LU(e,t){let n=e?.trim(),r=t?.trim(),i=n&&r?`${n} (${r})`:n||void 0;return i?`⚠️ ${i} returned a billing error — your API key has run out of credits or has an insufficient balance. Check your ${n} billing dashboard and top up or switch to a different API key.`:`⚠️ API provider returned a billing error — your API key has run out of credits or has an insufficient balance. Check your provider's billing dashboard and top up or switch to a different API key.`}const RU=LU();function zU(e){if(kU(e))return`⚠️ API rate limit reached. Please try again later.`;if(FU(e))return`The AI service is temporarily overloaded. Please try again in a moment.`}function BU(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`reasoning is mandatory`)||t.includes(`reasoning is required`)||t.includes(`requires reasoning`)||t.includes(`reasoning`)&&t.includes(`cannot be disabled`)}function VU(e){let t=e.toLowerCase();return/\btpm\b/i.test(t)||t.includes(`tokens per minute`)}function HU(e){if(!e)return!1;let t=e.toLowerCase();if(VU(e)||BU(e))return!1;let n=t.includes(`request size exceeds`),r=t.includes(`context window`)||t.includes(`context length`)||t.includes(`maximum context length`);return t.includes(`request_too_large`)||t.includes(`request exceeds the maximum size`)||t.includes(`context length exceeded`)||t.includes(`maximum context length`)||t.includes(`prompt is too long`)||t.includes(`exceeds model context window`)||t.includes(`model token limit`)||n&&r||t.includes(`context overflow:`)||t.includes(`exceed context limit`)||t.includes(`exceeds the model's maximum context`)||t.includes(`max_tokens`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`input length`)&&t.includes(`exceed`)&&t.includes(`context`)||t.includes(`is longer than`)&&r||t.includes(`413`)&&t.includes(`too large`)||t.includes(`context_window_exceeded`)||e.includes(`上下文过长`)||e.includes(`上下文超出`)||e.includes(`上下文长度超`)||e.includes(`超出最大上下文`)||e.includes(`请压缩上下文`)}const UU=/context window.*(too small|minimum is)/i,WU=/context.*overflow|context window.*(too (?:large|long)|exceed|over|limit|max(?:imum)?|requested|sent|tokens)|prompt.*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:request|input).*(?:context|window|length|token).*(too (?:large|long)|exceed|over|limit|max(?:imum)?)|(?:input|request).*(?:is longer|longer than).*(?:context|window|length)/i,GU=/rate limit|too many requests|requests per (?:minute|hour|day)|quota|throttl|429\b|tokens per day/i;function KU(e){return!e||VU(e)||BU(e)||MU(e)||UU.test(e)||kU(e)?!1:HU(e)?!0:GU.test(e)?!1:WU.test(e)}function qU(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`summarization failed`)||t.includes(`auto-compaction`)||t.includes(`compaction failed`)||t.includes(`compaction`)?KU(e)?!0:t.includes(`context overflow`):!1}const JU=/^(?:error|api\s*error|apierror|openai\s*error|anthropic\s*error|gateway\s*error)[:\s-]+/i,YU=/<\s*\/?\s*final\s*>/gi,XU=/^(?:error|api\s*error|openai\s*error|anthropic\s*error|gateway\s*error|request failed|failed|exception)[:\s-]+/i,ZU=/^(?:context overflow:|request_too_large\b|request size exceeds\b|request exceeds the maximum size\b|context length exceeded\b|maximum context length\b|prompt is too long\b|exceeds model context window\b)/i,QU=/^(?:http\s*)?(\d{3})\s+(.+)$/i,$U=/^(?:http\s*)?(\d{3})(?:\s+([\s\S]+))?$/i,eW=/^\s*(?:<!doctype\s+html\b|<html\b)/i,tW=new Set([521,522,523,524,525,526,530]),nW=new Set([499,500,502,503,504,521,522,523,524,529]),rW=[`error`,`bad request`,`not found`,`unauthorized`,`forbidden`,`internal server`,`service unavailable`,`gateway`,`rate limit`,`overloaded`,`timeout`,`timed out`,`invalid`,`too many requests`,`permission`],iW=[`insufficient credits`,`insufficient quota`,`credit balance`,`insufficient balance`,`plans & billing`,`add more credits`,`top up`],aW=[`upgrade your plan`,`upgrade plan`,`current plan`,`subscription`],oW=[`daily`,`weekly`,`monthly`],sW=[`try again`,`retry`,`temporary`,`cooldown`],cW=[`usage limit`,`rate limit`,`organization usage`],lW=[`organization`,`workspace`],uW=[`billing period`,`exceeded`,`reached`,`exhausted`],dW=/["']?(?:status|code)["']?\s*[:=]\s*402\b|\bhttp\s*402\b|\berror(?:\s+code)?\s*[:=]?\s*402\b|\b(?:got|returned|received)\s+(?:a\s+)?402\b|^\s*402\s+payment required\b|^\s*402\s+.*used up your points\b/i,fW=/^(?:error[:\s-]+)?(?:(?:http\s*)?402(?:\s+payment required)?|payment required)(?:[:\s-]+|$)/i;function pW(e,t){return t.some(t=>e.includes(t))}function mW(e){return pW(e,iW)||pW(e,aW)&&e.includes(`limit`)||e.includes(`billing hard limit`)||e.includes(`hard limit reached`)||e.includes(`maximum allowed`)&&e.includes(`limit`)}function hW(e){let t=pW(e,oW),n=e.includes(`spend limit`)||e.includes(`spending limit`),r=pW(e,lW);return pW(e,sW)&&pW(e,cW)||t&&(e.includes(`usage limit`)||n)||t&&e.includes(`limit`)&&e.includes(`reset`)||r&&e.includes(`limit`)&&(n||pW(e,uW))}function gW(e){return e.trim().toLowerCase().replace(fW,``).trim()}function _W(e){let t=gW(e);return!t||mW(t)?`billing`:kU(t)||hW(t)?`rate_limit`:`billing`}function vW(e){return dW.test(e)?_W(e):null}function yW(e){let t=e.match($U);if(!t)return null;let n=Number(t[1]);return Number.isFinite(n)?{code:n,rest:(t[2]??``).trim()}:null}function bW(e){let t=e.trim();if(!t)return!1;let n=yW(t);return!n||n.code<500?!1:tW.has(n.code)?!0:n.code<600&&eW.test(n.rest)&&/<\/html>/i.test(n.rest)}function xW(e){let t=e.trim();if(!t)return!1;let n=yW(t);return n?nW.has(n.code):!1}function SW(e,t){return typeof e!=`number`||!Number.isFinite(e)?null:e===402?t?_W(t):`billing`:e===429?`rate_limit`:e===401||e===403?t&&NU(t)?`auth_permanent`:`auth`:e===408?`timeout`:e===503||e===499?t&&FU(t)?`overloaded`:`timeout`:e===502||e===504?`timeout`:e===529?`overloaded`:e===400?t&&MU(t)?`billing`:`format`:null}function CW(e){return e&&e.replace(YU,``)}function wW(e){let t=e.trim();if(!t)return e;let n=t.split(/\n{2,}/);if(n.length<2)return e;let r=e=>e.trim().replace(/\s+/g,` `),i=[],a=null;for(let e of n){let t=r(e);a&&t===a||(i.push(e.trim()),a=t)}return i.length===n.length?e:i.join(`
65
65
 
66
66
  `)}function TW(e){if(bW(e))return!0;let t=e.match(QU);if(!t)return!1;let n=Number(t[1]);if(!Number.isFinite(n)||n<400)return!1;let r=t[2].toLowerCase();return rW.some(e=>r.includes(e))}function EW(e){return HU(e)?AW(e)||TW(e)||XU.test(e)||ZU.test(e):!1}function DW(e){if(!e||typeof e!=`object`||Array.isArray(e))return!1;let t=e;if(t.type===`error`||typeof t.request_id==`string`||typeof t.requestId==`string`)return!0;if(`error`in t){let e=t.error;if(e&&typeof e==`object`&&!Array.isArray(e)){let t=e;if(typeof t.message==`string`||typeof t.type==`string`||typeof t.code==`string`)return!0}}return!1}function OW(e){if(!e)return null;let t=e.trim();if(!t)return null;let n=[t];JU.test(t)&&n.push(t.replace(JU,``).trim());for(let e of n)if(!(!e.startsWith(`{`)||!e.endsWith(`}`)))try{let t=JSON.parse(e);if(DW(t))return t}catch{}return null}function kW(e){if(!e)return null;let t=OW(e);return t?SU(t):null}function AW(e){return kW(e)!==null}function jW(e){if(!e)return null;let t=e.trim();if(!t)return null;let n,r=t,i=r.match(/^(\d{3})\s+(.+)$/s);i&&(n=i[1],r=i[2].trim());let a=OW(r);if(!a)return null;let o=typeof a.request_id==`string`?a.request_id:typeof a.requestId==`string`?a.requestId:void 0,s=typeof a.type==`string`?a.type:void 0,c=typeof a.message==`string`?a.message:void 0,l,u;if(a.error&&typeof a.error==`object`&&!Array.isArray(a.error)){let e=a.error;typeof e.type==`string`&&(l=e.type),typeof e.code==`string`&&!l&&(l=e.code),typeof e.message==`string`&&(u=e.message)}return{httpCode:n,type:l??s,message:u??c,requestId:o}}function MW(e){let t=(e??``).trim();if(!t)return`LLM request failed with an unknown error.`;let n=yW(t);if(n&&bW(t))return`The AI service is temporarily unavailable (HTTP ${n.code}). Please try again in a moment.`;let r=t.match(QU);if(r){let e=r[2].trim();if(!e.startsWith(`{`))return`HTTP ${r[1]}: ${e}`}let i=jW(t);if(i?.message){let e=i.httpCode?`HTTP ${i.httpCode}`:`LLM error`,t=i.type?` ${i.type}`:``,n=i.requestId?` (request_id: ${i.requestId})`:``;return`${e}${t}: ${i.message}${n}`}return t.length>600?`${t.slice(0,600)}…`:t}function NW(e,t){let n=(e.errorMessage??``).trim();if(e.stopReason!==`error`&&!n)return;if(!n)return`LLM request failed with an unknown error.`;let r=n.match(/unknown tool[:\s]+["']?([a-z0-9_-]+)["']?/i)??n.match(/tool\s+["']?([a-z0-9_-]+)["']?\s+(?:not found|is not available)/i);if(r?.[1]){let e=$H({cfg:t?.cfg,sessionKey:t?.sessionKey,toolName:r[1]});if(e)return e}if(HU(n))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(BU(n))return`Reasoning is required for this model endpoint. Use /think minimal (or any non-off level) and try again.`;if(/incorrect role information|roles must alternate|400.*role|"message".*role.*information/i.test(n))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(VW(n))return`Session history looks corrupted (tool call input missing). Use /new to start a fresh session. If this keeps happening, reset the session or delete the corrupted session transcript.`;let i=n.match(/"type":"invalid_request_error".*?"message":"([^"]+)"/);return i?.[1]?`LLM request rejected: ${i[1]}`:zU(n)||(AU(n)?`LLM request timed out.`:MU(n)?LU(t?.provider,t?.model??e.model):TW(n)||AW(n)?MW(n):(n.length>600&&IU.warn(`Long error truncated: ${n.slice(0,200)}`),n.length>600?`${n.slice(0,600)}…`:n))}function PW(e,t){if(!e)return e;let n=t?.errorContext??!1,r=CW(e),i=r.trim();if(!i)return``;if(n){if(/incorrect role information|roles must alternate/i.test(i))return`Message ordering conflict - please try again. If this persists, use /new to start a fresh session.`;if(EW(i))return`Context overflow: prompt too large for the model. Try /reset (or /new) to start a fresh session, or use a larger-context model.`;if(MU(i))return RU;if(AW(i)||TW(i))return MW(i);if(XU.test(i))return zU(i)||(AU(i)?`LLM request timed out.`:MW(i))}return wW(r.replace(/^(?:[ \t]*\r?\n)+/,``))}function FW(e){return!e||e.stopReason!==`error`?!1:kU(e.errorMessage??``)}const IW=/tool_(?:use|call)\.(?:input|arguments).*?(?:field required|required)/i,LW=/messages\.\d+\.content\.\d+\.tool_(?:use|call)\.(?:input|arguments)/i,RW=/image dimensions exceed max allowed size for many-image requests:\s*(\d+)\s*pixels/i,zW=/messages\.(\d+)\.content\.(\d+)\.image/i,BW=/image exceeds\s*(\d+(?:\.\d+)?)\s*mb/i;function VW(e){return e?IW.test(e)||LW.test(e):!1}function HW(e){return!e||e.stopReason!==`error`?!1:MU(e.errorMessage??``)}function UW(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`"type":"api_error"`)&&t.includes(`internal server error`)}function WW(e){if(!e||!e.toLowerCase().includes(`image dimensions exceed max allowed size`))return null;let t=e.match(RW),n=e.match(zW);return{maxDimensionPx:t?.[1]?Number.parseInt(t[1],10):void 0,messageIndex:n?.[1]?Number.parseInt(n[1],10):void 0,contentIndex:n?.[2]?Number.parseInt(n[2],10):void 0,raw:e}}function GW(e){return!!WW(e)}function KW(e){if(!e)return null;let t=e.toLowerCase();if(!t.includes(`image exceeds`)||!t.includes(`mb`))return null;let n=e.match(BW);return{maxMb:n?.[1]?Number.parseFloat(n[1]):void 0,raw:e}}function qW(e){return e?!!KW(e):!1}function JW(e){return!GW(e)&&OU(e)}function YW(e){return!e||e.stopReason!==`error`?!1:PU(e.errorMessage??``)}function XW(e){if(!e)return!1;let t=e.toLowerCase();return!!(t.includes(`unknown model`)||t.includes(`model not found`)||t.includes(`model_not_found`)||t.includes(`not_found_error`)||t.includes(`does not exist`)&&t.includes(`model`)||t.includes(`invalid model`)&&!t.includes(`invalid model reference`)||/models\/[^\s]+ is not found/i.test(e)||/\b404\b/.test(e)&&/not[-_ ]?found/i.test(e))}function ZW(e){if(!e)return!1;let t=e.toLowerCase();return t.includes(`session not found`)||t.includes(`session does not exist`)||t.includes(`session expired`)||t.includes(`session invalid`)||t.includes(`conversation not found`)||t.includes(`conversation does not exist`)||t.includes(`conversation expired`)||t.includes(`conversation invalid`)||t.includes(`no such session`)||t.includes(`invalid session`)||t.includes(`session id not found`)||t.includes(`conversation id not found`)}function QW(e){return GW(e)||qW(e)?null:ZW(e)?`session_expired`:XW(e)?`model_not_found`:vW(e)||(jU(e)?MU(e)?`billing`:`rate_limit`:kU(e)?`rate_limit`:FU(e)?`overloaded`:xW(e)?yW(e.trim())?.code===529?`overloaded`:`timeout`:UW(e)?`timeout`:JW(e)?`format`:MU(e)?`billing`:AU(e)?`timeout`:NU(e)?`auth_permanent`:PU(e)?`auth`:null)}function $W(e){return QW(e)!==null}function eG(e){return!e||e.stopReason!==`error`?!1:$W(e.errorMessage??``)}function tG(e){return e===`google-gemini-cli`||e===`google-generative-ai`}function nG(e){if(!e)return null;let t=null;if(typeof e==`string`){let n=e.trim();if(!n.startsWith(`{`)||!n.endsWith(`}`))return null;try{t=JSON.parse(n)}catch{return null}}else typeof e==`object`&&(t=e);if(!t)return null;let n=typeof t.id==`string`?t.id:``,r=typeof t.type==`string`?t.type:``;return n.startsWith(`rs_`)&&(r===`reasoning`||r.startsWith(`reasoning.`))?{id:n,type:r}:null}function rG(e,t){for(let n=t+1;n<e.length;n++){let t=e[n];if(!t||typeof t!=`object`||t.type!==`thinking`)return!0}return!1}function iG(e){let t=e.indexOf(`|`);return t<=0||t>=e.length-1?{callId:e}:{callId:e.slice(0,t),itemId:e.slice(t+1)}}function aG(e){return e===`toolCall`||e===`toolUse`||e===`functionCall`}function oG(e){let t=!1,n=[],r=null;for(let i of e){if(!i||typeof i!=`object`){r=null,n.push(i);continue}let e=i.role;if(e===`assistant`){let e=i;if(!Array.isArray(e.content)){r=null,n.push(i);continue}let a=new Map,o=!1,s=!1,c=e.content.map(e=>{if(!e||typeof e!=`object`)return e;let t=e;if(t.type===`thinking`&&nG(t.thinkingSignature))return o=!0,e;let n=e;if(!aG(n.type)||typeof n.id!=`string`)return e;let r=iG(n.id);return o||!r.itemId||!r.itemId.startsWith(`fc_`)?e:(s=!0,a.set(n.id,r.callId),{...e,id:r.callId})});if(r=a.size>0?a:null,!s){n.push(i);continue}t=!0,n.push({...e,content:c});continue}if(e===`toolResult`&&r&&r.size>0){let e=i,a=!1,o={};if(typeof e.toolCallId==`string`){let t=r.get(e.toolCallId);t&&t!==e.toolCallId&&(o.toolCallId=t,a=!0)}if(typeof e.toolUseId==`string`){let t=r.get(e.toolUseId);t&&t!==e.toolUseId&&(o.toolUseId=t,a=!0)}if(!a){n.push(i);continue}t=!0,n.push({...e,...o});continue}r=null,n.push(i)}return t?n:e}function sG(e){let t=[];for(let n of e){if(!n||typeof n!=`object`){t.push(n);continue}if(n.role!==`assistant`){t.push(n);continue}let e=n;if(!Array.isArray(e.content)){t.push(n);continue}let r=!1,i=[];for(let t=0;t<e.content.length;t++){let n=e.content[t];if(!n||typeof n!=`object`){i.push(n);continue}let a=n;if(a.type!==`thinking`){i.push(n);continue}if(!nG(a.thinkingSignature)){i.push(n);continue}if(rG(e.content,t)){i.push(n);continue}r=!0}if(!r){t.push(n);continue}i.length!==0&&t.push({...e,content:i})}return t}const cG=new Set([`toolCall`,`toolUse`,`functionCall`]);function lG(e,t=`strict`){if(!e||typeof e!=`string`)return t===`strict9`?`defaultid`:`defaulttoolid`;if(t===`strict9`){let t=e.replace(/[^a-zA-Z0-9]/g,``);return t.length>=9?t.slice(0,9):t.length>0?fG(t,9):fG(`sanitized`,9)}let n=e.replace(/[^a-zA-Z0-9]/g,``);return n.length>0?n:`sanitizedtoolid`}function uG(e){let t=e.content;if(!Array.isArray(t))return[];let n=[];for(let e of t){if(!e||typeof e!=`object`)continue;let t=e;typeof t.id!=`string`||!t.id||typeof t.type==`string`&&cG.has(t.type)&&n.push({id:t.id,name:typeof t.name==`string`?t.name:void 0})}return n}function dG(e){let t=e.toolCallId;if(typeof t==`string`&&t)return t;let n=e.toolUseId;return typeof n==`string`&&n?n:null}function fG(e,t=8){return(0,h.createHash)(`sha256`).update(e).digest(`hex`).slice(0,t)}function pG(e){if(e.mode===`strict9`){let t=lG(e.id,e.mode),n=t.length>=9?t.slice(0,9):``;if(n&&!e.used.has(n))return n;for(let t=0;t<1e3;t+=1){let n=fG(`${e.id}:${t}`,9);if(!e.used.has(n))return n}return fG(`${e.id}:${Date.now()}`,9)}let t=lG(e.id,e.mode).slice(0,40);if(!e.used.has(t))return t;let n=fG(e.id),r=e.mode===`strict`?``:`_`,i=40-r.length-n.length,a=`${t.length>i?t.slice(0,i):t}${r}${n}`;if(!e.used.has(a))return a;for(let t=2;t<1e3;t+=1){let n=e.mode===`strict`?`x${t}`:`_${t}`,r=`${a.slice(0,40-n.length)}${n}`;if(!e.used.has(r))return r}let o=e.mode===`strict`?`t${Date.now()}`:`_${Date.now()}`;return`${a.slice(0,40-o.length)}${o}`}function mG(e){let t=e.message.content;if(!Array.isArray(t))return e.message;let n=!1,r=t.map(t=>{if(!t||typeof t!=`object`)return t;let r=t,i=r.type,a=r.id;if(i!==`functionCall`&&i!==`toolUse`&&i!==`toolCall`||typeof a!=`string`||!a)return t;let o=e.resolve(a);return o===a?t:(n=!0,{...t,id:o})});return n?{...e.message,content:r}:e.message}function hG(e){let t=typeof e.message.toolCallId==`string`&&e.message.toolCallId?e.message.toolCallId:void 0,n=e.message.toolUseId,r=typeof n==`string`&&n?n:void 0,i=t?e.resolve(t):void 0,a=r?e.resolve(r):void 0;return i===t&&a===r?e.message:{...e.message,...i&&{toolCallId:i},...a&&{toolUseId:a}}}function gG(e,t=`strict`){let n=new Map,r=new Set,i=e=>{let i=n.get(e);if(i)return i;let a=pG({id:e,used:r,mode:t});return n.set(e,a),r.add(a),a},a=!1,o=e.map(e=>{if(!e||typeof e!=`object`)return e;let t=e.role;if(t===`assistant`){let t=mG({message:e,resolve:i});return t!==e&&(a=!0),t}if(t===`toolResult`){let t=hG({message:e,resolve:i});return t!==e&&(a=!0),t}return e});return a?o:e}function _G(e){let t=0;for(let n=0;n<e.length;n+=1)e.charCodeAt(n)<=32||(t+=1);if(t===0)return 0;let n=0,r=e.length-1;for(;r>=0&&e.charCodeAt(r)<=32;)--r;if(r>=0&&e[r]===`=`){for(n=1,--r;r>=0&&e.charCodeAt(r)<=32;)--r;r>=0&&e[r]===`=`&&(n=2)}let i=Math.floor(t*3/4)-n;return Math.max(0,i)}const vG=/^[A-Za-z0-9+/]+={0,2}$/;function yG(e){let t=e.replace(/\s+/g,``);if(!(!t||t.length%4!=0||!vG.test(t)))return t}function bG(e){let t=e?.agents?.defaults?.imageMaxDimensionPx;return typeof t!=`number`||!Number.isFinite(t)?{}:{maxDimensionPx:Math.max(1,Math.floor(t))}}const xG=n.O(`agents/tool-images`);function SG(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`image`&&typeof t.data==`string`&&typeof t.mimeType==`string`}function CG(e){if(!e||typeof e!=`object`)return!1;let t=e;return t.type===`text`&&typeof t.text==`string`}function wG(e){let t=e.trim();if(t){if(t.startsWith(`/9j/`))return`image/jpeg`;if(t.startsWith(`iVBOR`))return`image/png`;if(t.startsWith(`R0lGOD`))return`image/gif`}}function TG(e){return!Number.isFinite(e)||e<1024?`${Math.max(0,Math.round(e))}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/(1024*1024)).toFixed(2)}MB`}function EG(e){for(let t of e.split(/\r?\n/u)){let e=t.trim();if(!e.startsWith(`MEDIA:`))continue;let n=e.slice(6).trim();if(n)return(n.match(/^`([^`]+)`$/u)?.[1]??n).trim()}}function DG(e){let t=e.trim();if(!t)return;try{let e=new URL(t).pathname.split(`/`).filter(Boolean).at(-1);return e&&e.length>0?e:void 0}catch{}let n=t.replaceAll(`\\`,`/`).split(`/`).filter(Boolean).at(-1);return n&&n.length>0?n:void 0}function OG(e){let t=e.block;for(let e of[`fileName`,`filename`,`path`,`url`]){let n=t[e];if(typeof n!=`string`||n.trim().length===0)continue;let r=DG(n);if(r)return r}if(typeof t.name==`string`&&t.name.trim().length>0)return t.name.trim();if(e.mediaPathHint){let t=DG(e.mediaPathHint);if(t)return t}if(typeof e.label==`string`&&e.label.startsWith(`read:`)){let t=DG(e.label.slice(5));if(t)return t}}async function kG(e){let t=Buffer.from(e.base64,`base64`),n=await NM(t),r=n?.width,i=n?.height,a=t.byteLength>e.maxBytes,o=typeof r==`number`&&typeof i==`number`,s=o&&(r>e.maxDimensionPx||i>e.maxDimensionPx);if(o&&!a&&r<=e.maxDimensionPx&&i<=e.maxDimensionPx)return{base64:e.base64,mimeType:e.mimeType,resized:!1,width:r,height:i};let c=o?Math.max(r??0,i??0):e.maxDimensionPx,l=c>0?Math.min(e.maxDimensionPx,c):e.maxDimensionPx,u=wM(e.maxDimensionPx,l),d=null;for(let n of u)for(let o of CM){let c=await FM({buffer:t,maxSide:n,quality:o,withoutEnlargement:!0});if((!d||c.byteLength<d.size)&&(d={buffer:c,size:c.byteLength}),c.byteLength<=e.maxBytes){let l=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,u=e.fileName?`${e.fileName} ${l}`:l,d=t.byteLength>0?Number(((t.byteLength-c.byteLength)/t.byteLength*100).toFixed(1)):0;return xG.info(`Image resized to fit limits: ${u} ${TG(t.byteLength)} -> ${TG(c.byteLength)} (-${d}%)`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxBytes:e.maxBytes,maxDimensionPx:e.maxDimensionPx,triggerOverBytes:a,triggerOverDimensions:s,outputMimeType:`image/jpeg`,outputBytes:c.byteLength,outputQuality:o,outputMaxSide:n,byteReductionPct:d}),{base64:c.toString(`base64`),mimeType:`image/jpeg`,resized:!0,width:r,height:i}}}let f=d?.buffer??t,p=(e.maxBytes/(1024*1024)).toFixed(0),m=(f.byteLength/(1024*1024)).toFixed(2),h=typeof r==`number`&&typeof i==`number`?`${r}x${i}px`:`unknown`,g=e.fileName?`${e.fileName} ${h}`:h;throw xG.warn(`Image resize failed to fit limits: ${g} best=${TG(f.byteLength)} limit=${TG(e.maxBytes)}`,{label:e.label,fileName:e.fileName,sourceMimeType:e.mimeType,sourceWidth:r,sourceHeight:i,sourceBytes:t.byteLength,maxDimensionPx:e.maxDimensionPx,maxBytes:e.maxBytes,smallestCandidateBytes:f.byteLength,triggerOverBytes:a,triggerOverDimensions:s}),Error(`Image could not be reduced below ${p}MB (got ${m}MB)`)}async function AG(e,t,n={}){let r=Math.max(n.maxDimensionPx??1200,1),i=Math.max(n.maxBytes??5242880,1),a=[],o;for(let n of e){if(CG(n)){let e=EG(n.text);e&&(o=e)}if(!SG(n)){a.push(n);continue}let e=n.data.trim();if(!e){a.push({type:`text`,text:`[${t}] omitted empty image payload`});continue}let s=yG(e);if(!s){a.push({type:`text`,text:`[${t}] omitted image payload: invalid base64`});continue}try{let e=wG(s)??n.mimeType,c=await kG({base64:s,mimeType:e,maxDimensionPx:r,maxBytes:i,label:t,fileName:OG({block:n,label:t,mediaPathHint:o})});a.push({...n,data:c.base64,mimeType:c.resized?c.mimeType:e})}catch(e){a.push({type:`text`,text:`[${t}] omitted image payload: ${String(e)}`})}}return a}async function jG(e,t,n={}){if(e.length===0)return{images:e,dropped:0};let r=(await AG(e,t,n)).filter(SG);return{images:r,dropped:Math.max(0,e.length-r.length)}}async function MG(e,t,n={}){let r=Array.isArray(e.content)?e.content:[];if(!r.some(e=>SG(e)||CG(e)))return e;let i=await AG(r,t,n);return{...e,content:i}}async function NG(e,t,n){let r=(n?.sanitizeMode??`full`)===`full`,i={maxDimensionPx:n?.maxDimensionPx,maxBytes:n?.maxBytes},a=n?.sanitizeToolCallIds===!0?gG(e,n.toolCallIdMode):e,o=[];for(let e of a){if(!e||typeof e!=`object`){o.push(e);continue}let a=e.role;if(a===`toolResult`){let n=e,r=await AG(Array.isArray(n.content)?n.content:[],t,i);o.push({...n,content:r});continue}if(a===`user`){let n=e,r=n.content;if(Array.isArray(r)){let e=await AG(r,t,i);o.push({...n,content:e});continue}}if(a===`assistant`){let a=e;if(a.stopReason===`error`){let e=a.content;if(Array.isArray(e)){let n=await AG(e,t,i);o.push({...a,content:n})}else o.push(a);continue}let s=a.content;if(Array.isArray(s)){if(!r){let e=await AG(s,t,i);o.push({...a,content:e});continue}let e=await AG((n?.preserveSignatures?s:zS(s,n?.sanitizeThoughtSignatures)).filter(e=>{if(!e||typeof e!=`object`)return!0;let t=e;return t.type!==`text`||typeof t.text!=`string`?!0:t.text.trim().length>0}),t,i);if(e.length===0)continue;o.push({...a,content:e});continue}}o.push(e)}return o}function PG(e){return e.trim().toLowerCase().replace(/\p{Emoji_Presentation}|\p{Extended_Pictographic}/gu,``).replace(/\s+/g,` `).trim()}function FG(e,t){return t.length===0||!e||e.length<10?!1:t.some(t=>!t||t.length<10?!1:e.includes(t)||t.includes(e))}function IG(e,t){if(t.length===0)return!1;let n=PG(e);return!n||n.length<10?!1:FG(n,t.map(PG))}function LG(e){if(!e)return``;let t=e.trim().toLowerCase();return t===`z.ai`||t===`z-ai`?`zai`:t}function RG(e){return LG(e)===`zai`}const zG=[`openai/gpt-5.4`,`openai/gpt-5.4-pro`,`openai/gpt-5.2`,`openai-codex/gpt-5.4`,`openai-codex/gpt-5.3-codex`,`openai-codex/gpt-5.3-codex-spark`,`openai-codex/gpt-5.2-codex`,`openai-codex/gpt-5.1-codex`,`github-copilot/gpt-5.2-codex`,`github-copilot/gpt-5.2`],BG=new Set(zG.map(e=>e.toLowerCase())),VG=new Set(zG.map(e=>e.split(`/`)[1]?.toLowerCase()).filter(e=>!!e));function HG(e){if(!e)return;let t=e.trim().toLowerCase(),n=t.replace(/[\s_-]+/g,``);if(n===`adaptive`||n===`auto`)return`adaptive`;if(n===`xhigh`||n===`extrahigh`)return`xhigh`;if([`off`].includes(t))return`off`;if([`on`,`enable`,`enabled`].includes(t))return`low`;if([`min`,`minimal`].includes(t))return`minimal`;if([`low`,`thinkhard`,`think-hard`,`think_hard`].includes(t))return`low`;if([`mid`,`med`,`medium`,`thinkharder`,`think-harder`,`harder`].includes(t))return`medium`;if([`high`,`ultra`,`ultrathink`,`think-hard`,`thinkhardest`,`highest`,`max`].includes(t))return`high`;if([`think`].includes(t))return`minimal`}function UG(e,t){let n=t?.trim().toLowerCase();if(!n)return!1;let r=e?.trim().toLowerCase();return r?BG.has(`${r}/${n}`):VG.has(n)}function WG(e,t){let n=[`off`,`minimal`,`low`,`medium`,`high`];return UG(e,t)&&n.push(`xhigh`),n.push(`adaptive`),n}function GG(e,t){return RG(e)?[`off`,`on`]:WG(e,t)}function KG(e,t,n=`, `){return GG(e,t).join(n)}function qG(){let e=[...zG];return e.length===0?`unknown model`:e.length===1?e[0]:e.length===2?`${e[0]} or ${e[1]}`:`${e.slice(0,-1).join(`, `)} or ${e[e.length-1]}`}function JG(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`all`,`everything`].includes(t))return`full`;if([`on`,`minimal`,`true`,`yes`,`1`].includes(t))return`on`}function YG(e){return JG(e)}function XG(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`enable`,`enabled`].includes(t)||[`tokens`,`token`,`tok`,`minimal`,`min`].includes(t))return`tokens`;if([`full`,`session`].includes(t))return`full`}function ZG(e){return XG(e)??`off`}function QG(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`].includes(t))return`off`;if([`full`,`auto`,`auto-approve`,`autoapprove`].includes(t))return`full`;if([`ask`,`prompt`,`approval`,`approve`].includes(t))return`ask`;if([`on`,`true`,`yes`,`1`].includes(t))return`on`}function $G(e){if(!e)return;let t=e.toLowerCase();if([`off`,`false`,`no`,`0`,`hide`,`hidden`,`disable`,`disabled`].includes(t))return`off`;if([`on`,`true`,`yes`,`1`,`show`,`visible`,`enable`,`enabled`].includes(t))return`on`;if([`stream`,`streaming`,`draft`,`live`].includes(t))return`stream`}function eK(e){let t=e.match(/supported values are:\s*([^\n.]+)/i)??e.match(/supported values:\s*([^\n.]+)/i);if(!t?.[1])return[];let n=t[1],r=Array.from(n.matchAll(/['"]([^'"]+)['"]/g)).map(e=>e[1]?.trim());return r.length>0?r.filter(e=>!!e):n.split(/,|\band\b/gi).map(e=>e.replace(/^[^a-zA-Z]+|[^a-zA-Z]+$/g,``).trim()).filter(Boolean)}function tK(e){let t=e.message?.trim();if(!t)return;let n=eK(t);if(n.length===0)return/not supported/i.test(t)&&!e.attempted.has(`off`)?`off`:void 0;for(let t of n){let n=HG(t);if(n&&!e.attempted.has(n))return n}}function nK(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(!r||typeof r!=`object`){t.push(r);continue}if(r.role!==`assistant`){t.push(r);continue}let i=r,a=e[n+1];if((a&&typeof a==`object`?a.role:void 0)!==`user`){t.push(r);continue}let o=a,s=new Set;if(Array.isArray(o.content))for(let e of o.content)e&&e.type===`toolResult`&&e.toolUseId&&s.add(e.toolUseId);let c=Array.isArray(i.content)?i.content:[],l=c.filter(e=>e?e.type===`toolUse`?s.has(e.id||``):!0:!1);c.length>0&&l.length===0?t.push({...i,content:[{type:`text`,text:`[tool calls omitted]`}]}):t.push({...i,content:l})}return t}function rK(e){let{messages:t,role:n,merge:r}=e;if(!Array.isArray(t)||t.length===0)return t;let i=[],a;for(let e of t){if(!e||typeof e!=`object`){i.push(e);continue}let t=e.role;if(!t){i.push(e);continue}if(t===a&&a===n){let t=i[i.length-1],n=e;if(t&&typeof t==`object`){let e=t;i[i.length-1]=r(e,n);continue}}i.push(e),a=t}return i}function iK(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...e,content:n,...t.usage&&{usage:t.usage},...t.stopReason&&{stopReason:t.stopReason},...t.errorMessage&&{errorMessage:t.errorMessage}}}function aK(e){return rK({messages:e,role:`assistant`,merge:iK})}function oK(e,t){let n=[...Array.isArray(e.content)?e.content:[],...Array.isArray(t.content)?t.content:[]];return{...t,content:n,timestamp:t.timestamp??e.timestamp}}function sK(e){return rK({messages:nK(e),role:`user`,merge:oK})}const cK=64e3,lK=8e3,uK=/\brequest[_ ]?id\b\s*[:=]\s*["'()]*([A-Za-z0-9._:-]+)/i,dK=[String.raw`\b(?:x-)?api[-_]?key\b\s*[:=]\s*(["']?)([^\s"'\\;]+)\1`,String.raw`"(?:api[-_]?key|api_key)"\s*:\s*"([^"]+)"`,String.raw`(?:\bCookie\b\s*[:=]\s*[^;=\s]+=|;\s*[^;=\s]+=)([^;\s\r\n]+)`];function fK(){let e=n.X()?.redactPatterns;return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function pK(e,t){let n=e?.trim();if(n)return n.length>t?`${n.slice(0,t)}…`:n}function mK(e){let t=e?.trim();if(t)return t.length>cK?t.slice(0,cK):t}function hK(e,t=200){let n=e?.trim();if(!n)return;let r=Array.from(n).filter(e=>{let t=e.charCodeAt(0);return!(t<=8||t===11||t===12||t>=14&&t<=31||t===127)}).join(``).replace(/[\r\n\t]+/g,` `).replace(/\s+/g,` `).trim();return r.length>t?`${r.slice(0,t)}…`:r}function gK(e,t){return!e||!t?e:e.split(t).join(LS(t,{len:12}))}function _K(e){if(!e)return e;let n=fK();return t.N(e,{mode:`tools`,patterns:[...t.M(),...n,...dK]})}function vK(e){if(e)return e.match(uK)?.[1]?.trim()||void 0}function yK(e){let t=e.message&&e.message.length>lK?e.message.slice(0,lK):e.message;return(e.httpCode||e.type||t?SU({httpCode:e.httpCode,type:e.type,message:t}):null)||(e.requestId?e.raw.split(e.requestId).join(`<request_id>`):kW(e.raw))}function bK(e){let t=mK(e);if(!t)return{};try{let e=jW(t),n=e?.requestId??vK(t),r=n?LS(n,{len:12}):void 0,i=yK({raw:t,requestId:n,httpCode:e?.httpCode,type:e?.type,message:e?.message}),a=gK(_K(t),n),o=gK(_K(e?.message),n);return{rawErrorPreview:pK(a,400),rawErrorHash:LS(t,{len:12}),rawErrorFingerprint:i?LS(i,{len:12}):void 0,httpCode:e?.httpCode,providerErrorType:e?.type,providerErrorMessagePreview:pK(o,200),requestIdHash:r}}catch{return{}}}function xK(e){let t=bK(e);return{textPreview:t.rawErrorPreview,textHash:t.rawErrorHash,textFingerprint:t.rawErrorFingerprint,httpCode:t.httpCode,providerErrorType:t.providerErrorType,providerErrorMessagePreview:t.providerErrorMessagePreview,requestIdHash:t.requestIdHash}}const SK=n.O(`agent/embedded`);function CK(e){let t=e.reason===`billing`||e.reason===`auth_permanent`?`disabled`:`cooldown`,n=e.previous?.cooldownUntil,r=e.previous?.disabledUntil,i=t===`disabled`?typeof r==`number`&&Number.isFinite(r)&&r>e.now&&r===e.next.disabledUntil:typeof n==`number`&&Number.isFinite(n)&&n>e.now&&n===e.next.cooldownUntil,a=LS(e.profileId,{len:12}),o=hK(e.runId)??`-`,s=hK(e.provider)??`-`;SK.warn(`auth profile failure state updated`,{event:`auth_profile_failure_state_updated`,tags:[`error_handling`,`auth_profiles`,t],runId:e.runId,profileId:a,provider:e.provider,reason:e.reason,windowType:t,windowReused:i,previousErrorCount:e.previous?.errorCount,errorCount:e.next.errorCount,previousCooldownUntil:n,cooldownUntil:e.next.cooldownUntil,previousDisabledUntil:r,disabledUntil:e.next.disabledUntil,previousDisabledReason:e.previous?.disabledReason,disabledReason:e.next.disabledReason,failureCounts:e.next.failureCounts,consoleMessage:`auth profile failure state updated: runId=${o} profile=${a} provider=${s} reason=${e.reason} window=${t} reused=${String(i)}`})}const wK=[`auth_permanent`,`auth`,`billing`,`format`,`model_not_found`,`overloaded`,`timeout`,`rate_limit`,`unknown`],TK=new Set(wK),EK=new Map(wK.map((e,t)=>[e,t]));function DK(e){let t=I(e??``);return t===`openrouter`||t===`kilocode`}function OK(e){let t=[e.cooldownUntil,e.disabledUntil].filter(e=>typeof e==`number`).filter(e=>Number.isFinite(e)&&e>0);return t.length===0?null:Math.max(...t)}function kK(e,t,n){if(DK(e.profiles[t]?.provider))return!1;let r=e.usageStats?.[t];if(!r)return!1;let i=OK(r);return i?(n??Date.now())<i:!1}function AK(e,t){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t<e}function jK(e){let t=e.now??Date.now(),n=new Map,r=(e,t)=>{!TK.has(e)||t<=0||!Number.isFinite(t)||n.set(e,(n.get(e)??0)+t)};for(let n of e.profileIds){let i=e.store.usageStats?.[n];if(!i)continue;if(AK(i.disabledUntil,t)&&i.disabledReason&&TK.has(i.disabledReason)){r(i.disabledReason,1e3);continue}if(!AK(i.cooldownUntil,t))continue;let a=!1;for(let[e,t]of Object.entries(i.failureCounts??{})){let n=e,i=typeof t==`number`?t:0;!TK.has(n)||i<=0||(r(n,i),a=!0)}a||r(`unknown`,1)}if(n.size===0)return null;let i=null,a=-1,o=2**53-1;for(let e of wK){let t=n.get(e);if(typeof t!=`number`)continue;let r=EK.get(e)??2**53-1;(t>a||t===a&&r<o)&&(i=e,a=t,o=r)}return i}function MK(e,t){let n=null;for(let r of t){let t=e.usageStats?.[r];if(!t)continue;let i=OK(t);typeof i!=`number`||!Number.isFinite(i)||i<=0||(n===null||i<n)&&(n=i)}return n}function NK(e,t){let n=e.usageStats;if(!n)return!1;let r=t??Date.now(),i=!1;for(let[e,t]of Object.entries(n)){if(!t)continue;let a=!1,o=typeof t.cooldownUntil==`number`&&Number.isFinite(t.cooldownUntil)&&t.cooldownUntil>0&&r>=t.cooldownUntil,s=typeof t.disabledUntil==`number`&&Number.isFinite(t.disabledUntil)&&t.disabledUntil>0&&r>=t.disabledUntil;o&&(t.cooldownUntil=void 0,a=!0),s&&(t.disabledUntil=void 0,t.disabledReason=void 0,a=!0),a&&!OK(t)&&(t.errorCount=0,t.failureCounts=void 0),a&&(n[e]=t,i=!0)}return i}async function PK(e){let{store:t,profileId:n,agentDir:r}=e,i=await As({agentDir:r,updater:e=>e.profiles[n]?(zK(e,n,e=>RK(e,{lastUsed:Date.now()})),!0):!1});if(i){t.usageStats=i.usageStats;return}t.profiles[n]&&(zK(t,n,e=>RK(e,{lastUsed:Date.now()})),Us(t,r))}function FK(e){let t=Math.max(1,e);return Math.min(3600*1e3,60*1e3*5**Math.min(t-1,3))}function IK(e){let t={billingBackoffHours:5,billingMaxHours:24,failureWindowHours:24},n=(e,t)=>typeof e==`number`&&Number.isFinite(e)&&e>0?e:t,r=e.cfg?.auth?.cooldowns,i=n((()=>{let t=r?.billingBackoffHoursByProvider;if(t){for(let[n,r]of Object.entries(t))if(I(n)===e.providerId)return r}})()??r?.billingBackoffHours,t.billingBackoffHours),a=n(r?.billingMaxHours,t.billingMaxHours),o=n(r?.failureWindowHours,t.failureWindowHours);return{billingBackoffMs:i*60*60*1e3,billingMaxMs:a*60*60*1e3,failureWindowMs:o*60*60*1e3}}function LK(e){let t=Math.max(1,e.errorCount),n=Math.max(6e4,e.baseMs),r=Math.max(n,e.maxMs),i=n*2**Math.min(t-1,10);return Math.min(r,i)}function RK(e,t){return{...e,errorCount:0,cooldownUntil:void 0,disabledUntil:void 0,disabledReason:void 0,failureCounts:void 0,...t}}function zK(e,t,n){e.usageStats=e.usageStats??{},e.usageStats[t]=n(e.usageStats[t])}function BK(e){let{existingUntil:t,now:n,recomputedUntil:r}=e;return typeof t==`number`&&Number.isFinite(t)&&t>n?t:r}function VK(e){let t=e.cfgResolved.failureWindowMs,n=typeof e.existing.lastFailureAt==`number`&&e.existing.lastFailureAt>0&&e.now-e.existing.lastFailureAt>t,r=OK(e.existing),i=typeof r==`number`&&e.now>=r,a=n||i,o=(a?0:e.existing.errorCount??0)+1,s=a?{}:{...e.existing.failureCounts};s[e.reason]=(s[e.reason]??0)+1;let c={...e.existing,errorCount:o,failureCounts:s,lastFailureAt:e.now};if(e.reason===`billing`||e.reason===`auth_permanent`){let t=LK({errorCount:s[e.reason]??1,baseMs:e.cfgResolved.billingBackoffMs,maxMs:e.cfgResolved.billingMaxMs});c.disabledUntil=BK({existingUntil:e.existing.disabledUntil,now:e.now,recomputedUntil:e.now+t}),c.disabledReason=e.reason}else{let t=FK(o);c.cooldownUntil=BK({existingUntil:e.existing.cooldownUntil,now:e.now,recomputedUntil:e.now+t})}return c}async function HK(e){let{store:t,profileId:n,reason:r,agentDir:i,cfg:a,runId:o}=e,s=t.profiles[n];if(!s||DK(s.provider))return;let c,l,u=0,d=await As({agentDir:i,updater:e=>{let t=e.profiles[n];if(!t||DK(t.provider))return!1;let i=Date.now(),o=IK({cfg:a,providerId:I(t.provider)});l=e.usageStats?.[n],u=i;let s=VK({existing:l??{},now:i,reason:r,cfgResolved:o});return c=s,zK(e,n,()=>s),!0}});if(d){t.usageStats=d.usageStats,c&&CK({runId:o,profileId:n,provider:s.provider,reason:r,previous:l,next:c,now:u});return}if(!t.profiles[n])return;let f=Date.now(),p=IK({cfg:a,providerId:I(t.profiles[n]?.provider??``)});l=t.usageStats?.[n];let m=VK({existing:l??{},now:f,reason:r,cfgResolved:p});c=m,zK(t,n,()=>m),Us(t,i),CK({runId:o,profileId:n,provider:t.profiles[n]?.provider??s.provider,reason:r,previous:l,next:c,now:f})}function UK(e){let t=ko(e.provider),n=e.store.profiles[e.profileId];if(!n)return{eligible:!1,reasonCode:`profile_missing`};if(ko(n.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};let r=e.cfg?.auth?.profiles?.[e.profileId];if(r){if(ko(r.provider)!==t)return{eligible:!1,reasonCode:`provider_mismatch`};if(r.mode!==n.type&&!(r.mode===`oauth`&&n.type===`token`))return{eligible:!1,reasonCode:`mode_mismatch`}}let i=yS({credential:n,now:e.now});return{eligible:i.eligible,reasonCode:i.reasonCode}}function WK(e){let{cfg:t,store:n,provider:r,preferredProfile:i}=e,a=I(r),o=ko(r),s=Date.now();NK(n,s);let c=Ao(n.order,a),l=Ao(t?.auth?.order,a),u=c??l,d=t?.auth?.profiles?Object.entries(t.auth.profiles).filter(([,e])=>ko(e.provider)===o).map(([e])=>e):[],f=u??(d.length>0?d:L(n,r));if(f.length===0)return[];let p=e=>UK({cfg:t,store:n,provider:o,profileId:e,now:s}).eligible,m=f.filter(p),h=f.every(e=>!n.profiles[e]);m.length===0&&d.length>0&&h&&(m=L(n,r).filter(p));let g=Ws(m);if(u&&u.length>0){let e=[],t=[];for(let r of g)if(kK(n,r)){let e=OK(n.usageStats?.[r]??{})??s;t.push({profileId:r,cooldownUntil:e})}else e.push(r);let r=t.toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId),a=[...e,...r];return i&&a.includes(i)?[i,...a.filter(e=>e!==i)]:a}let _=GK(g,n);return i&&_.includes(i)?[i,..._.filter(e=>e!==i)]:_}function GK(e,t){let n=Date.now(),r=[],i=[];for(let n of e)kK(t,n)?i.push(n):r.push(n);let a=r.map(e=>{let n=t.profiles[e]?.type;return{profileId:e,typeScore:n===`oauth`?0:n===`token`?1:n===`api_key`?2:3,lastUsed:t.usageStats?.[e]?.lastUsed??0}}).toSorted((e,t)=>e.typeScore===t.typeScore?e.lastUsed-t.lastUsed:e.typeScore-t.typeScore).map(e=>e.profileId),o=i.map(e=>({profileId:e,cooldownUntil:OK(t.usageStats?.[e]??{})??n})).toSorted((e,t)=>e.cooldownUntil-t.cooldownUntil).map(e=>e.profileId);return[...a,...o]}const KK=n.O(`model-auth`),qK=`AWS_BEARER_TOKEN_BEDROCK`,JK=`AWS_ACCESS_KEY_ID`,YK=`AWS_SECRET_ACCESS_KEY`,XK=`AWS_PROFILE`;function ZK(e,t){let n=e?.models?.providers??{},r=n[t];if(r)return r;let i=I(t);return i===t?Object.entries(n).find(([e])=>I(e)===i)?.[1]:n[i]??Object.entries(n).find(([e])=>I(e)===i)?.[1]}function QK(e,t){return Wn(ZK(e,t)?.apiKey)}function $K(e){let t=QK(e.cfg,e.provider);if(!t)return null;if(!yr(t))return{apiKey:t,source:`models.json`};if(!mr(t))return null;let n=Wn((e.env??process.env)[t]);return n?{apiKey:n,source:rq({applied:new Set(Hn()),envVars:[t],label:`${t} (models.json marker)`})}:null}function eq(e,t,n){return!!$K({cfg:e,provider:t,env:n})}function tq(e,t){let n=ZK(e,t)?.auth;if(n===`api-key`||n===`aws-sdk`||n===`oauth`||n===`token`)return n}function nq(e){if(I(e.provider)!==`ollama`)return null;let t=ZK(e.cfg,e.provider);return!t||!(t.api?.trim()||t.baseUrl?.trim()||Array.isArray(t.models)&&t.models.length>0)?null:{apiKey:`ollama-local`,source:`models.providers.ollama (synthetic local key)`,mode:`api-key`}}function rq(e){return`${e.envVars.some(t=>e.applied.has(t))?`shell env: `:`env: `}${e.label}`}function iq(e=process.env){if(e[qK]?.trim())return qK;if(e[JK]?.trim()&&e[YK]?.trim())return JK;if(e[XK]?.trim())return XK}function aq(){let e=new Set(Hn());return process.env[qK]?.trim()?{mode:`aws-sdk`,source:rq({applied:e,envVars:[qK],label:qK})}:process.env[JK]?.trim()&&process.env[YK]?.trim()?{mode:`aws-sdk`,source:rq({applied:e,envVars:[JK,YK],label:`${JK} + ${YK}`})}:process.env[XK]?.trim()?{mode:`aws-sdk`,source:rq({applied:e,envVars:[XK],label:XK})}:{mode:`aws-sdk`,source:`aws-sdk default chain`}}async function oq(e){let{provider:t,cfg:n,profileId:r,preferredProfile:i}=e,a=e.store??Hs(e.agentDir);if(r){let t=await FS({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(!t)throw Error(`No credentials found for profile "${r}".`);let i=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:i===`oauth`?`oauth`:i===`token`?`token`:`api-key`}}let s=tq(n,t);if(s===`aws-sdk`)return aq();let c=WK({cfg:n,store:a,provider:t,preferredProfile:i});for(let r of c)try{let t=await FS({cfg:n,store:a,profileId:r,agentDir:e.agentDir});if(t){let e=a.profiles[r]?.type;return{apiKey:t.apiKey,profileId:r,source:`profile:${r}`,mode:e===`oauth`?`oauth`:e===`token`?`token`:`api-key`}}}catch(e){KK.debug?.(`auth profile "${r}" failed for provider "${t}": ${String(e)}`)}let l=sq(t);if(l)return{apiKey:l.apiKey,source:l.source,mode:l.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`};let u=$K({cfg:n,provider:t});if(u)return{apiKey:u.apiKey,source:u.source,mode:`api-key`};let d=nq({cfg:n,provider:t});if(d)return d;let f=I(t);if(s===void 0&&f===`amazon-bedrock`)return aq();if(t===`openai`&&L(a,`openai-codex`).length>0)throw Error(`No API key found for provider "openai". You are authenticated with OpenAI Codex OAuth. Use openai-codex/gpt-5.4 (OAuth) or set OPENAI_API_KEY to use openai/gpt-5.4.`);let p=Cs(e.agentDir),m=o.default.dirname(p);throw Error([`No API key found for provider "${t}".`,`Auth store: ${p} (agentDir: ${m}).`,`Configure auth for this agent (${ln(`openclaw agents add <id>`)}) or copy auth-profiles.json from the main agentDir.`].join(` `))}function sq(e,t=process.env){let n=I(e),r=new Set(Hn()),i=e=>{let n=Wn(t[e]);return n?{apiKey:n,source:r.has(e)?`shell env: ${e}`:`env: ${e}`}:null},a=sr[n];if(a)for(let e of a){let t=i(e);if(t)return t}if(n===`google-vertex`){let e=(0,s.getEnvApiKey)(n);return e?{apiKey:e,source:`gcloud adc`}:null}return null}function cq(e,t,n){let r=e?.trim();if(!r)return;let i=tq(t,r);if(i===`aws-sdk`)return`aws-sdk`;let a=n??Hs(),o=L(a,r);if(o.length>0){let e=new Set(o.map(e=>a.profiles[e]?.type).filter(e=>!!e));if([`oauth`,`token`,`api_key`].filter(t=>e.has(t)).length>=2)return`mixed`;if(e.has(`oauth`))return`oauth`;if(e.has(`token`))return`token`;if(e.has(`api_key`))return`api-key`}if(i===void 0&&I(r)===`amazon-bedrock`)return`aws-sdk`;let s=sq(r);return s?.apiKey?s.source.includes(`OAUTH_TOKEN`)?`oauth`:`api-key`:eq(t,r)?`api-key`:`unknown`}async function lq(e){return oq({provider:e.model.provider,cfg:e.cfg,profileId:e.profileId,preferredProfile:e.preferredProfile,store:e.store,agentDir:e.agentDir})}function uq(e,t){let n=Un(e.apiKey);if(n)return n;throw Error(`No API key resolved for provider "${t}" (auth mode: ${e.mode}).`)}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return kW}}),Object.defineProperty(exports,`$a`,{enumerable:!0,get:function(){return Dh}}),Object.defineProperty(exports,`$i`,{enumerable:!0,get:function(){return OC}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return jL}}),Object.defineProperty(exports,`$o`,{enumerable:!0,get:function(){return wu}}),Object.defineProperty(exports,`$r`,{enumerable:!0,get:function(){return Cj}}),Object.defineProperty(exports,`$s`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return YB}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return ZG}}),Object.defineProperty(exports,`Aa`,{enumerable:!0,get:function(){return Pb}}),Object.defineProperty(exports,`Ac`,{enumerable:!0,get:function(){return se}}),Object.defineProperty(exports,`Ai`,{enumerable:!0,get:function(){return JE}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return HR}}),Object.defineProperty(exports,`Ao`,{enumerable:!0,get:function(){return Qf}}),Object.defineProperty(exports,`Ar`,{enumerable:!0,get:function(){return tI}}),Object.defineProperty(exports,`As`,{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return bH}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return _G}}),Object.defineProperty(exports,`Ba`,{enumerable:!0,get:function(){return D_}}),Object.defineProperty(exports,`Bi`,{enumerable:!0,get:function(){return ZT}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return mR}}),Object.defineProperty(exports,`Bo`,{enumerable:!0,get:function(){return pf}}),Object.defineProperty(exports,`Br`,{enumerable:!0,get:function(){return IM}}),Object.defineProperty(exports,`Bs`,{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return yV}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return qG}}),Object.defineProperty(exports,`Ca`,{enumerable:!0,get:function(){return ex}}),Object.defineProperty(exports,`Cc`,{enumerable:!0,get:function(){return D}}),Object.defineProperty(exports,`Ci`,{enumerable:!0,get:function(){return DD}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return uz}}),Object.defineProperty(exports,`Co`,{enumerable:!0,get:function(){return pp}}),Object.defineProperty(exports,`Cr`,{enumerable:!0,get:function(){return mI}}),Object.defineProperty(exports,`Cs`,{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return GH}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return HG}}),Object.defineProperty(exports,`Da`,{enumerable:!0,get:function(){return Ab}}),Object.defineProperty(exports,`Dc`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`Di`,{enumerable:!0,get:function(){return UD}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return iz}}),Object.defineProperty(exports,`Do`,{enumerable:!0,get:function(){return mp}}),Object.defineProperty(exports,`Dr`,{enumerable:!0,get:function(){return eI}}),Object.defineProperty(exports,`Ds`,{enumerable:!0,get:function(){return I}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return zH}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return $G}}),Object.defineProperty(exports,`Ea`,{enumerable:!0,get:function(){return kb}}),Object.defineProperty(exports,`Ec`,{enumerable:!0,get:function(){return O}}),Object.defineProperty(exports,`Ei`,{enumerable:!0,get:function(){return RD}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return ZR}}),Object.defineProperty(exports,`Eo`,{enumerable:!0,get:function(){return _p}}),Object.defineProperty(exports,`Er`,{enumerable:!0,get:function(){return aI}}),Object.defineProperty(exports,`Es`,{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return VH}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return NG}}),Object.defineProperty(exports,`Fa`,{enumerable:!0,get:function(){return Ay}}),Object.defineProperty(exports,`Fi`,{enumerable:!0,get:function(){return lE}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return OR}}),Object.defineProperty(exports,`Fo`,{enumerable:!0,get:function(){return kf}}),Object.defineProperty(exports,`Fr`,{enumerable:!0,get:function(){return XF}}),Object.defineProperty(exports,`Fs`,{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return PH}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return sG}}),Object.defineProperty(exports,`Ga`,{enumerable:!0,get:function(){return Hg}}),Object.defineProperty(exports,`Gi`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return ZL}}),Object.defineProperty(exports,`Go`,{enumerable:!0,get:function(){return Fd}}),Object.defineProperty(exports,`Gr`,{enumerable:!0,get:function(){return xM}}),Object.defineProperty(exports,`Gs`,{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return dV}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return dG}}),Object.defineProperty(exports,`Ha`,{enumerable:!0,get:function(){return k_}}),Object.defineProperty(exports,`Hi`,{enumerable:!0,get:function(){return dw}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return fR}}),Object.defineProperty(exports,`Ho`,{enumerable:!0,get:function(){return Gd}}),Object.defineProperty(exports,`Hr`,{enumerable:!0,get:function(){return LM}}),Object.defineProperty(exports,`Hs`,{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return hV}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return jG}}),Object.defineProperty(exports,`Ia`,{enumerable:!0,get:function(){return j_}}),Object.defineProperty(exports,`Ii`,{enumerable:!0,get:function(){return cE}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return TR}}),Object.defineProperty(exports,`Io`,{enumerable:!0,get:function(){return Tf}}),Object.defineProperty(exports,`Ir`,{enumerable:!0,get:function(){return uP}}),Object.defineProperty(exports,`Is`,{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return TV}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return QW}}),Object.defineProperty(exports,`Ja`,{enumerable:!0,get:function(){return 2097152}}),Object.defineProperty(exports,`Ji`,{enumerable:!0,get:function(){return zC}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return LL}}),Object.defineProperty(exports,`Jo`,{enumerable:!0,get:function(){return Td}}),Object.defineProperty(exports,`Jr`,{enumerable:!0,get:function(){return fM}}),Object.defineProperty(exports,`Js`,{enumerable:!0,get:function(){return Zn}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return oV}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return tG}}),Object.defineProperty(exports,`Ka`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`Ki`,{enumerable:!0,get:function(){return YC}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return QL}}),Object.defineProperty(exports,`Ko`,{enumerable:!0,get:function(){return ld}}),Object.defineProperty(exports,`Kr`,{enumerable:!0,get:function(){return _M}}),Object.defineProperty(exports,`Ks`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return pV}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return MG}}),Object.defineProperty(exports,`La`,{enumerable:!0,get:function(){return M_}}),Object.defineProperty(exports,`Li`,{enumerable:!0,get:function(){return oE}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return SR}}),Object.defineProperty(exports,`Lo`,{enumerable:!0,get:function(){return mf}}),Object.defineProperty(exports,`Lr`,{enumerable:!0,get:function(){return QN}}),Object.defineProperty(exports,`Ls`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return wV}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return IG}}),Object.defineProperty(exports,`Ma`,{enumerable:!0,get:function(){return Jy}}),Object.defineProperty(exports,`Mi`,{enumerable:!0,get:function(){return WE}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return IR}}),Object.defineProperty(exports,`Mo`,{enumerable:!0,get:function(){return Nf}}),Object.defineProperty(exports,`Mr`,{enumerable:!0,get:function(){return cI}}),Object.defineProperty(exports,`Ms`,{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return _H}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return FG}}),Object.defineProperty(exports,`Na`,{enumerable:!0,get:function(){return Db}}),Object.defineProperty(exports,`Ni`,{enumerable:!0,get:function(){return UE}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return AR}}),Object.defineProperty(exports,`No`,{enumerable:!0,get:function(){return Pf}}),Object.defineProperty(exports,`Nr`,{enumerable:!0,get:function(){return YF}}),Object.defineProperty(exports,`Ns`,{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return IH}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return XG}}),Object.defineProperty(exports,`Oa`,{enumerable:!0,get:function(){return Nb}}),Object.defineProperty(exports,`Oc`,{enumerable:!0,get:function(){return me}}),Object.defineProperty(exports,`Oi`,{enumerable:!0,get:function(){return ED}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return rz}}),Object.defineProperty(exports,`Oo`,{enumerable:!0,get:function(){return op}}),Object.defineProperty(exports,`Or`,{enumerable:!0,get:function(){return lI}}),Object.defineProperty(exports,`Os`,{enumerable:!0,get:function(){return Bo}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return RH}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return PG}}),Object.defineProperty(exports,`Pa`,{enumerable:!0,get:function(){return Ib}}),Object.defineProperty(exports,`Pi`,{enumerable:!0,get:function(){return yE}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return kR}}),Object.defineProperty(exports,`Po`,{enumerable:!0,get:function(){return Ff}}),Object.defineProperty(exports,`Pr`,{enumerable:!0,get:function(){return ZF}}),Object.defineProperty(exports,`Ps`,{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return CH}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return MW}}),Object.defineProperty(exports,`Qa`,{enumerable:!0,get:function(){return Rh}}),Object.defineProperty(exports,`Qi`,{enumerable:!0,get:function(){return EC}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return zL}}),Object.defineProperty(exports,`Qo`,{enumerable:!0,get:function(){return Cu}}),Object.defineProperty(exports,`Qr`,{enumerable:!0,get:function(){return oM}}),Object.defineProperty(exports,`Qs`,{enumerable:!0,get:function(){return Wn}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return QB}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return bG}}),Object.defineProperty(exports,`Ra`,{enumerable:!0,get:function(){return P_}}),Object.defineProperty(exports,`Ri`,{enumerable:!0,get:function(){return uE}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return CR}}),Object.defineProperty(exports,`Ro`,{enumerable:!0,get:function(){return ff}}),Object.defineProperty(exports,`Rr`,{enumerable:!0,get:function(){return zN}}),Object.defineProperty(exports,`Rs`,{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return xV}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return KG}}),Object.defineProperty(exports,`Sa`,{enumerable:!0,get:function(){return nx}}),Object.defineProperty(exports,`Sc`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`Si`,{enumerable:!0,get:function(){return XD}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return hz}}),Object.defineProperty(exports,`So`,{enumerable:!0,get:function(){return bp}}),Object.defineProperty(exports,`Sr`,{enumerable:!0,get:function(){return CI}}),Object.defineProperty(exports,`Ss`,{enumerable:!0,get:function(){return Ro}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return JH}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return QG}}),Object.defineProperty(exports,`Ta`,{enumerable:!0,get:function(){return Wb}}),Object.defineProperty(exports,`Tc`,{enumerable:!0,get:function(){return Ee}}),Object.defineProperty(exports,`Ti`,{enumerable:!0,get:function(){return WD}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return az}}),Object.defineProperty(exports,`To`,{enumerable:!0,get:function(){return yp}}),Object.defineProperty(exports,`Tr`,{enumerable:!0,get:function(){return oI}}),Object.defineProperty(exports,`Ts`,{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return HH}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return gG}}),Object.defineProperty(exports,`Ua`,{enumerable:!0,get:function(){return A_}}),Object.defineProperty(exports,`Ui`,{enumerable:!0,get:function(){return iw}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return $L}}),Object.defineProperty(exports,`Uo`,{enumerable:!0,get:function(){return Wd}}),Object.defineProperty(exports,`Ur`,{enumerable:!0,get:function(){return VM}}),Object.defineProperty(exports,`Us`,{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return gV}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return uG}}),Object.defineProperty(exports,`Va`,{enumerable:!0,get:function(){return E_}}),Object.defineProperty(exports,`Vi`,{enumerable:!0,get:function(){return aw}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return pR}}),Object.defineProperty(exports,`Vo`,{enumerable:!0,get:function(){return Bd}}),Object.defineProperty(exports,`Vr`,{enumerable:!0,get:function(){return NM}}),Object.defineProperty(exports,`Vs`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return vV}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return oG}}),Object.defineProperty(exports,`Wa`,{enumerable:!0,get:function(){return g_}}),Object.defineProperty(exports,`Wi`,{enumerable:!0,get:function(){return ZC}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return GL}}),Object.defineProperty(exports,`Wo`,{enumerable:!0,get:function(){return Ud}}),Object.defineProperty(exports,`Wr`,{enumerable:!0,get:function(){return FM}}),Object.defineProperty(exports,`Ws`,{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return mV}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return NW}}),Object.defineProperty(exports,`Xa`,{enumerable:!0,get:function(){return Ph}}),Object.defineProperty(exports,`Xi`,{enumerable:!0,get:function(){return wC}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return FL}}),Object.defineProperty(exports,`Xo`,{enumerable:!0,get:function(){return Du}}),Object.defineProperty(exports,`Xr`,{enumerable:!0,get:function(){return uM}}),Object.defineProperty(exports,`Xs`,{enumerable:!0,get:function(){return Yn}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return KB}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return SW}}),Object.defineProperty(exports,`Ya`,{enumerable:!0,get:function(){return Nh}}),Object.defineProperty(exports,`Yi`,{enumerable:!0,get:function(){return SC}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return RL}}),Object.defineProperty(exports,`Yo`,{enumerable:!0,get:function(){return fd}}),Object.defineProperty(exports,`Yr`,{enumerable:!0,get:function(){return cM}}),Object.defineProperty(exports,`Ys`,{enumerable:!0,get:function(){return Xn}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return nV}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return LU}}),Object.defineProperty(exports,`Za`,{enumerable:!0,get:function(){return Lh}}),Object.defineProperty(exports,`Zi`,{enumerable:!0,get:function(){return CC}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return ML}}),Object.defineProperty(exports,`Zo`,{enumerable:!0,get:function(){return vu}}),Object.defineProperty(exports,`Zr`,{enumerable:!0,get:function(){return gM}}),Object.defineProperty(exports,`Zs`,{enumerable:!0,get:function(){return Jn}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return XB}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return xK}}),Object.defineProperty(exports,`_a`,{enumerable:!0,get:function(){return Vx}}),Object.defineProperty(exports,`_c`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`_i`,{enumerable:!0,get:function(){return pO}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return dB}}),Object.defineProperty(exports,`_o`,{enumerable:!0,get:function(){return Gp}}),Object.defineProperty(exports,`_r`,{enumerable:!0,get:function(){return GI}}),Object.defineProperty(exports,`_s`,{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return bU}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return cq}}),Object.defineProperty(exports,`aa`,{enumerable:!0,get:function(){return aC}}),Object.defineProperty(exports,`ac`,{enumerable:!0,get:function(){return en}}),Object.defineProperty(exports,`ai`,{enumerable:!0,get:function(){return uk}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return MB}}),Object.defineProperty(exports,`ao`,{enumerable:!0,get:function(){return um}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return TL}}),Object.defineProperty(exports,`as`,{enumerable:!0,get:function(){return Ol}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return eG}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return aK}}),Object.defineProperty(exports,`ba`,{enumerable:!0,get:function(){return Bx}}),Object.defineProperty(exports,`bc`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`bi`,{enumerable:!0,get:function(){return eO}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return Bz}}),Object.defineProperty(exports,`bo`,{enumerable:!0,get:function(){return Rp}}),Object.defineProperty(exports,`br`,{enumerable:!0,get:function(){return DI}}),Object.defineProperty(exports,`bs`,{enumerable:!0,get:function(){return Wo}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return uU}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return WK}}),Object.defineProperty(exports,`ca`,{enumerable:!0,get:function(){return BS}}),Object.defineProperty(exports,`cc`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`ci`,{enumerable:!0,get:function(){return lk}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return TB}}),Object.defineProperty(exports,`co`,{enumerable:!0,get:function(){return mm}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return fL}}),Object.defineProperty(exports,`cs`,{enumerable:!0,get:function(){return rc}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return FW}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return MK}}),Object.defineProperty(exports,`da`,{enumerable:!0,get:function(){return qS}}),Object.defineProperty(exports,`dc`,{enumerable:!0,get:function(){return gt}}),Object.defineProperty(exports,`di`,{enumerable:!0,get:function(){return HO}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return yB}}),Object.defineProperty(exports,`do`,{enumerable:!0,get:function(){return Zp}}),Object.defineProperty(exports,`dr`,{enumerable:!0,get:function(){return sL}}),Object.defineProperty(exports,`ds`,{enumerable:!0,get:function(){return Js}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return WW}}),Object.defineProperty(exports,`ea`,{enumerable:!0,get:function(){return DC}}),Object.defineProperty(exports,`ec`,{enumerable:!0,get:function(){return Vn}}),Object.defineProperty(exports,`ei`,{enumerable:!0,get:function(){return Sj}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return GB}}),Object.defineProperty(exports,`eo`,{enumerable:!0,get:function(){return sh}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return IL}}),Object.defineProperty(exports,`es`,{enumerable:!0,get:function(){return du}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return YW}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return kK}}),Object.defineProperty(exports,`fa`,{enumerable:!0,get:function(){return LS}}),Object.defineProperty(exports,`fc`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`fi`,{enumerable:!0,get:function(){return UO}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return vB}}),Object.defineProperty(exports,`fo`,{enumerable:!0,get:function(){return tm}}),Object.defineProperty(exports,`fr`,{enumerable:!0,get:function(){return rL}}),Object.defineProperty(exports,`fs`,{enumerable:!0,get:function(){return Ws}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return KW}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return bK}}),Object.defineProperty(exports,`ga`,{enumerable:!0,get:function(){return lS}}),Object.defineProperty(exports,`gc`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`gi`,{enumerable:!0,get:function(){return _O}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return lB}}),Object.defineProperty(exports,`go`,{enumerable:!0,get:function(){return Wp}}),Object.defineProperty(exports,`gr`,{enumerable:!0,get:function(){return YI}}),Object.defineProperty(exports,`gs`,{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return xU}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return jK}}),Object.defineProperty(exports,`ha`,{enumerable:!0,get:function(){return uS}}),Object.defineProperty(exports,`hc`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`hi`,{enumerable:!0,get:function(){return gO}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return uB}}),Object.defineProperty(exports,`ho`,{enumerable:!0,get:function(){return Hp}}),Object.defineProperty(exports,`hr`,{enumerable:!0,get:function(){return XI}}),Object.defineProperty(exports,`hs`,{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return AU}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return sq}}),Object.defineProperty(exports,`ia`,{enumerable:!0,get:function(){return iC}}),Object.defineProperty(exports,`ic`,{enumerable:!0,get:function(){return ln}}),Object.defineProperty(exports,`ii`,{enumerable:!0,get:function(){return yk}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return FB}}),Object.defineProperty(exports,`io`,{enumerable:!0,get:function(){return _m}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return NL}}),Object.defineProperty(exports,`is`,{enumerable:!0,get:function(){return Al}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return HU}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return UG}}),Object.defineProperty(exports,`ja`,{enumerable:!0,get:function(){return Fb}}),Object.defineProperty(exports,`jc`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`ji`,{enumerable:!0,get:function(){return BE}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return RR}}),Object.defineProperty(exports,`jo`,{enumerable:!0,get:function(){return ep}}),Object.defineProperty(exports,`jr`,{enumerable:!0,get:function(){return sI}}),Object.defineProperty(exports,`js`,{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return FH}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return YG}}),Object.defineProperty(exports,`ka`,{enumerable:!0,get:function(){return Mb}}),Object.defineProperty(exports,`kc`,{enumerable:!0,get:function(){return ce}}),Object.defineProperty(exports,`ki`,{enumerable:!0,get:function(){return`text`}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return KR}}),Object.defineProperty(exports,`ko`,{enumerable:!0,get:function(){return ap}}),Object.defineProperty(exports,`kr`,{enumerable:!0,get:function(){return rI}}),Object.defineProperty(exports,`ks`,{enumerable:!0,get:function(){return Vo}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return yH}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return FK}}),Object.defineProperty(exports,`la`,{enumerable:!0,get:function(){return HS}}),Object.defineProperty(exports,`lc`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`li`,{enumerable:!0,get:function(){return NO}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return DB}}),Object.defineProperty(exports,`lo`,{enumerable:!0,get:function(){return Kp}}),Object.defineProperty(exports,`lr`,{enumerable:!0,get:function(){return lL}}),Object.defineProperty(exports,`ls`,{enumerable:!0,get:function(){return Zs}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return AW}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return PK}}),Object.defineProperty(exports,`ma`,{enumerable:!0,get:function(){return dS}}),Object.defineProperty(exports,`mc`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`mi`,{enumerable:!0,get:function(){return fO}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return hB}}),Object.defineProperty(exports,`mo`,{enumerable:!0,get:function(){return $p}}),Object.defineProperty(exports,`mr`,{enumerable:!0,get:function(){return oL}}),Object.defineProperty(exports,`ms`,{enumerable:!0,get:function(){return Gs}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return MU}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return uq}}),Object.defineProperty(exports,`na`,{enumerable:!0,get:function(){return mC}}),Object.defineProperty(exports,`nc`,{enumerable:!0,get:function(){return Sn}}),Object.defineProperty(exports,`ni`,{enumerable:!0,get:function(){return Jk}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return LB}}),Object.defineProperty(exports,`no`,{enumerable:!0,get:function(){return Dm}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return kL}}),Object.defineProperty(exports,`ns`,{enumerable:!0,get:function(){return kl}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return JW}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return $K}}),Object.defineProperty(exports,`oa`,{enumerable:!0,get:function(){return KS}}),Object.defineProperty(exports,`oc`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`oi`,{enumerable:!0,get:function(){return 5242880}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return NB}}),Object.defineProperty(exports,`oo`,{enumerable:!0,get:function(){return om}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return gL}}),Object.defineProperty(exports,`os`,{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return $W}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return HK}}),Object.defineProperty(exports,`pa`,{enumerable:!0,get:function(){return FS}}),Object.defineProperty(exports,`pc`,{enumerable:!0,get:function(){return`^(?!.*(?:^|/)\\.{1,2}(?:/|$))[A-Za-z0-9][A-Za-z0-9._:/-]{0,255}$`}}),Object.defineProperty(exports,`pi`,{enumerable:!0,get:function(){return mO}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return gB}}),Object.defineProperty(exports,`po`,{enumerable:!0,get:function(){return em}}),Object.defineProperty(exports,`pr`,{enumerable:!0,get:function(){return aL}}),Object.defineProperty(exports,`ps`,{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return PW}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return RU}}),Object.defineProperty(exports,`qa`,{enumerable:!0,get:function(){return ug}}),Object.defineProperty(exports,`qi`,{enumerable:!0,get:function(){return HC}}),Object.defineProperty(exports,`qn`,{enumerable:!0,get:function(){return DL}}),Object.defineProperty(exports,`qo`,{enumerable:!0,get:function(){return ud}}),Object.defineProperty(exports,`qr`,{enumerable:!0,get:function(){return lM}}),Object.defineProperty(exports,`qs`,{enumerable:!0,get:function(){return Qn}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return sV}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return oq}}),Object.defineProperty(exports,`ra`,{enumerable:!0,get:function(){return _C}}),Object.defineProperty(exports,`rc`,{enumerable:!0,get:function(){return un}}),Object.defineProperty(exports,`ri`,{enumerable:!0,get:function(){return Kk}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return IB}}),Object.defineProperty(exports,`ro`,{enumerable:!0,get:function(){return km}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return OL}}),Object.defineProperty(exports,`rs`,{enumerable:!0,get:function(){return jl}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return qU}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return UK}}),Object.defineProperty(exports,`sa`,{enumerable:!0,get:function(){return GS}}),Object.defineProperty(exports,`sc`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`si`,{enumerable:!0,get:function(){return ak}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return OB}}),Object.defineProperty(exports,`so`,{enumerable:!0,get:function(){return pm}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return yL}}),Object.defineProperty(exports,`ss`,{enumerable:!0,get:function(){return mc}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return KU}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return lq}}),Object.defineProperty(exports,`ta`,{enumerable:!0,get:function(){return gC}}),Object.defineProperty(exports,`tc`,{enumerable:!0,get:function(){return Bn}}),Object.defineProperty(exports,`ti`,{enumerable:!0,get:function(){return zA}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return WB}}),Object.defineProperty(exports,`to`,{enumerable:!0,get:function(){return Zm}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return EL}}),Object.defineProperty(exports,`ts`,{enumerable:!0,get:function(){return Dl}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return HW}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return NK}}),Object.defineProperty(exports,`ua`,{enumerable:!0,get:function(){return VS}}),Object.defineProperty(exports,`uc`,{enumerable:!0,get:function(){return yt}}),Object.defineProperty(exports,`ui`,{enumerable:!0,get:function(){return FO}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return SB}}),Object.defineProperty(exports,`uo`,{enumerable:!0,get:function(){return Qp}}),Object.defineProperty(exports,`ur`,{enumerable:!0,get:function(){return iL}}),Object.defineProperty(exports,`us`,{enumerable:!0,get:function(){return Ys}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return xW}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return hK}}),Object.defineProperty(exports,`va`,{enumerable:!0,get:function(){return Rx}}),Object.defineProperty(exports,`vc`,{enumerable:!0,get:function(){return Pe}}),Object.defineProperty(exports,`vi`,{enumerable:!0,get:function(){return aO}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return aB}}),Object.defineProperty(exports,`vo`,{enumerable:!0,get:function(){return Up}}),Object.defineProperty(exports,`vr`,{enumerable:!0,get:function(){return KI}}),Object.defineProperty(exports,`vs`,{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return pU}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return WG}}),Object.defineProperty(exports,`wa`,{enumerable:!0,get:function(){return Gb}}),Object.defineProperty(exports,`wc`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`wi`,{enumerable:!0,get:function(){return GD}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return nz}}),Object.defineProperty(exports,`wo`,{enumerable:!0,get:function(){return gp}}),Object.defineProperty(exports,`wr`,{enumerable:!0,get:function(){return QF}}),Object.defineProperty(exports,`ws`,{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return qH}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return tK}}),Object.defineProperty(exports,`xa`,{enumerable:!0,get:function(){return Fx}}),Object.defineProperty(exports,`xc`,{enumerable:!0,get:function(){return ge}}),Object.defineProperty(exports,`xi`,{enumerable:!0,get:function(){return $D}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return fz}}),Object.defineProperty(exports,`xo`,{enumerable:!0,get:function(){return kp}}),Object.defineProperty(exports,`xr`,{enumerable:!0,get:function(){return EI}}),Object.defineProperty(exports,`xs`,{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return QH}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return sK}}),Object.defineProperty(exports,`ya`,{enumerable:!0,get:function(){return Lx}}),Object.defineProperty(exports,`yc`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`yi`,{enumerable:!0,get:function(){return QD}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return iB}}),Object.defineProperty(exports,`yo`,{enumerable:!0,get:function(){return Vp}}),Object.defineProperty(exports,`yr`,{enumerable:!0,get:function(){return qI}}),Object.defineProperty(exports,`ys`,{enumerable:!0,get:function(){return os}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return fU}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return yG}}),Object.defineProperty(exports,`za`,{enumerable:!0,get:function(){return b_}}),Object.defineProperty(exports,`zi`,{enumerable:!0,get:function(){return XT}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return hR}}),Object.defineProperty(exports,`zo`,{enumerable:!0,get:function(){return rf}}),Object.defineProperty(exports,`zr`,{enumerable:!0,get:function(){return LN}}),Object.defineProperty(exports,`zs`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return _V}});
67
+ //# sourceMappingURL=model-auth-D-7xiXhK.cjs.map