@gaodefa/daocore 2026.5.25 → 2026.5.27

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 (1698) hide show
  1. package/dist/abort-By0wxKlI.js +277 -0
  2. package/dist/abort.runtime-C7zfjxBp.js +2 -0
  3. package/dist/abort.runtime.js +1 -1
  4. package/dist/account-inspect-DTeLlJz-.js +173 -0
  5. package/dist/accounts-B776XBaL.js +119 -0
  6. package/dist/accounts-CLyZILFF.js +107 -0
  7. package/dist/accounts-DiXgq14W.js +107 -0
  8. package/dist/accounts-iTlRLYN8.js +2 -0
  9. package/dist/acp-runtime-D9YQyGax.js +26 -0
  10. package/dist/acp-spawn-CWciV70C.js +1275 -0
  11. package/dist/acp-spawn-DjaS4O_V.js +2 -0
  12. package/dist/acp-stateful-target-driver-ByvGCj_i.js +89 -0
  13. package/dist/action-kill-DXeOA6YH.js +33 -0
  14. package/dist/action-runtime-BjQnG6qb.js +469 -0
  15. package/dist/action-runtime-api-a73ODsYk.js +2 -0
  16. package/dist/action-send-B_F3xwIu.js +39 -0
  17. package/dist/action-spawn-BFiW7gZJ.js +47 -0
  18. package/dist/actions-Bi7eE2I6.js +161 -0
  19. package/dist/actions.runtime-DmtbCLld.js +5 -0
  20. package/dist/agent-BOI4AdYK.js +3 -0
  21. package/dist/agent-DQPyDWP5.js +2 -0
  22. package/dist/agent-command-ClCxEw82.js +1367 -0
  23. package/dist/agent-components.runtime-C5wxy4D_.js +10 -0
  24. package/dist/agent-components.runtime.js +1 -1
  25. package/dist/agent-harness-CEPgjZ3p.d.ts +146 -0
  26. package/dist/agent-harness-runtime-CkdXIMHI.js +180 -0
  27. package/dist/agent-harness-runtime-DMYJ4buZ.d.ts +691 -0
  28. package/dist/agent-harness-task-runtime-CDtn5RjX.js +140 -0
  29. package/dist/agent-runner-execution-lXW8y0i2.js +1713 -0
  30. package/dist/agent-runner-utils-OdM9hLGt.js +266 -0
  31. package/dist/agent-runner.runtime-fZnfhCJI.js +3455 -0
  32. package/dist/agent-runner.runtime.js +1 -1
  33. package/dist/agent-runtime-Dp0RDnX1.js +229 -0
  34. package/dist/agent-via-gateway-vsBf3nqZ.js +463 -0
  35. package/dist/agents/pi-embedded-runner/tool-split.d.ts +1 -1
  36. package/dist/agents.commands.add-C94vGOFH.js +304 -0
  37. package/dist/agents.commands.delete-D-p2NL4v.js +128 -0
  38. package/dist/api-BZ2QC7WM.js +2 -0
  39. package/dist/api-BmYK5Dge.js +6 -0
  40. package/dist/api-C9Dmd2CA.d.ts +52 -0
  41. package/dist/api-CGdlHCIH.js +3 -0
  42. package/dist/api-CGjlsXii.js +134 -0
  43. package/dist/api-DGqp6wZo.js +2 -0
  44. package/dist/api-DKpE-zdY.js +639 -0
  45. package/dist/apply-GK4z5lYw.js +54 -0
  46. package/dist/apply-_yxsBkiR.js +41 -0
  47. package/dist/approval-handler.runtime-C7d9p3DG.js +130 -0
  48. package/dist/assistant-B-h25aRy.js +291 -0
  49. package/dist/attachment-normalize-DWZ4Nrn-.js +225 -0
  50. package/dist/attempt-execution-BY9C1EOu.js +558 -0
  51. package/dist/attempt-execution.runtime-SR7eolDa.js +3 -0
  52. package/dist/attempt-execution.runtime.js +1 -1
  53. package/dist/attempt-execution.shared-h6uYmkJz.js +38 -0
  54. package/dist/attempt.prompt-helpers-COc5m_TZ.js +475 -0
  55. package/dist/attempt.tool-run-context-CAtfgOqC.js +2094 -0
  56. package/dist/auth-BdkNYTYU.js +541 -0
  57. package/dist/banner-0TOO6XHd.js +397 -0
  58. package/dist/banner-DTHug6Ey.js +2 -0
  59. package/dist/binding-routing-BJ_A83Nl.js +113 -0
  60. package/dist/binding-targets-D5dmPh4R.js +121 -0
  61. package/dist/bot-DX1uG3P-.js +7894 -0
  62. package/dist/bot-deps-BpaYejaN.js +2 -0
  63. package/dist/bot-deps-CKFDy5y3.js +747 -0
  64. package/dist/bot-message-context.runtime-BKOeRg34.js +7 -0
  65. package/dist/bot-message-context.runtime.js +1 -1
  66. package/dist/bot-message-context.session.runtime-xgZdFv6P.js +12 -0
  67. package/dist/bot-message-context.session.runtime.js +1 -1
  68. package/dist/bot-native-commands.delivery.runtime-DDMQrRfJ.js +4 -0
  69. package/dist/bot-native-commands.delivery.runtime.js +1 -1
  70. package/dist/bot-native-commands.runtime-CVVvUz0h.js +13 -0
  71. package/dist/bot-native-commands.runtime.js +1 -1
  72. package/dist/bridge-server-37OWsDZc.js +113 -0
  73. package/dist/browser-cli-BC_6aZJV.js +2 -0
  74. package/dist/browser-cli-Dg1ipmgf.js +230 -0
  75. package/dist/browser-cli-actions-input-B0QuzzSW.js +473 -0
  76. package/dist/browser-cli-actions-observe-C246bas5.js +81 -0
  77. package/dist/browser-cli-debug-F64e_v4B.js +137 -0
  78. package/dist/browser-cli-inspect-Srn6eWjO.js +104 -0
  79. package/dist/browser-cli-manage-CaZ97-Me.js +443 -0
  80. package/dist/browser-cli-resize-CUR20fvZ.js +26 -0
  81. package/dist/browser-cli-shared-BhphnFVo.js +50 -0
  82. package/dist/browser-cli-state-CzaNXNWF.js +337 -0
  83. package/dist/browser-control-auth-DTY0Wx2B.js +2 -0
  84. package/dist/browser-profiles-BDGPPDJ7.js +2 -0
  85. package/dist/browser-runtime-aqBKI8Oi.js +384 -0
  86. package/dist/build-CG7aTzO9.js +257 -0
  87. package/dist/build-info.json +3 -3
  88. package/dist/bundled/boot-md/handler.js +2 -2
  89. package/dist/bundled/session-memory/handler.js +1 -1
  90. package/dist/call-BAWIPJo2.d.ts +43 -0
  91. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  92. package/dist/capability-cli-BhF26gVm.js +1782 -0
  93. package/dist/channel-5_XS0Mss.js +508 -0
  94. package/dist/channel-7L-vyWOO.js +362 -0
  95. package/dist/channel-B6YcNFXw.d.ts +104 -0
  96. package/dist/channel-BVxTyJ0I.js +376 -0
  97. package/dist/channel-BWIsr1r-.js +808 -0
  98. package/dist/channel-Ba0p4xM-.js +1134 -0
  99. package/dist/channel-BdhbzWTg.d.ts +427 -0
  100. package/dist/channel-Bi2nTop1.js +481 -0
  101. package/dist/channel-Bj29iFgF.js +740 -0
  102. package/dist/channel-Bkp8v6zY.d.ts +14 -0
  103. package/dist/channel-BoK62YYe.d.ts +49 -0
  104. package/dist/channel-C10lHKrC.d.ts +47 -0
  105. package/dist/channel-C6G6-tH6.js +562 -0
  106. package/dist/channel-CBhuuq-_.js +2126 -0
  107. package/dist/channel-CMmVpcnl.js +867 -0
  108. package/dist/channel-COc7idAe.js +653 -0
  109. package/dist/channel-CZrble5P.d.ts +8 -0
  110. package/dist/channel-CjfuHhSU.js +1556 -0
  111. package/dist/channel-Cquy73C-.js +1249 -0
  112. package/dist/channel-CzvuskEn.js +955 -0
  113. package/dist/channel-D6u-243v.js +1777 -0
  114. package/dist/channel-D8X4fgB9.d.ts +106 -0
  115. package/dist/channel-D9LDQOYt.d.ts +8 -0
  116. package/dist/channel-DR8PbP31.js +238 -0
  117. package/dist/channel-DUZ0s98I.js +1496 -0
  118. package/dist/channel-DVGMasO6.d.ts +7 -0
  119. package/dist/channel-Djgm5DE9.d.ts +64 -0
  120. package/dist/channel-Dl4eeuJ3.d.ts +114 -0
  121. package/dist/channel-DpQ6_cvo.d.ts +8 -0
  122. package/dist/channel-JqEqZ04S.d.ts +6 -0
  123. package/dist/channel-actions.runtime-BzEqt_Va.js +265 -0
  124. package/dist/channel-actions.runtime.js +1 -1
  125. package/dist/channel-core-CbkDdNXh.d.ts +6 -0
  126. package/dist/channel-core-DDZnTvT6.js +5 -0
  127. package/dist/channel-entry-contract-DUSF3gce.d.ts +112 -0
  128. package/dist/channel-hShoCuAc.d.ts +12 -0
  129. package/dist/channel-inbound-C2wLEE7Q.js +80 -0
  130. package/dist/channel-pIMjOo6Y.d.ts +28 -0
  131. package/dist/channel-plugin-runtime-B8AWkA0i.js +998 -0
  132. package/dist/channel-plugin-runtime-Cg67QAiE.d.ts +7 -0
  133. package/dist/channel-runtime-CciKN6E5.js +408 -0
  134. package/dist/channel-uP-mo8Q6.d.ts +7 -0
  135. package/dist/channel-whyHp4eY.d.ts +26 -0
  136. package/dist/channel.runtime-BQN8Bkb0.js +254 -0
  137. package/dist/channel.runtime-BXeGEvv7.js +21009 -0
  138. package/dist/channel.runtime-C40ILulM.js +1008 -0
  139. package/dist/channel.runtime-CJ2DSojv.js +733 -0
  140. package/dist/channel.runtime-CUaygROD.js +652 -0
  141. package/dist/channel.runtime-CcCbJhDb.js +88 -0
  142. package/dist/channel.runtime-DJbKu9D3.js +4 -0
  143. package/dist/channel.runtime-DgRuSo5T.js +109 -0
  144. package/dist/channel.runtime-tRXUD2p2.js +2528 -0
  145. package/dist/channel.setup-3aVku-g-.js +1098 -0
  146. package/dist/channel.setup-BMXb23G7.d.ts +6 -0
  147. package/dist/channel.setup-BdEXf9Ic.d.ts +8 -0
  148. package/dist/channel.setup-DT7Z9egu.js +343 -0
  149. package/dist/channel.setup-DhlkGTJV.js +10 -0
  150. package/dist/channel.setup-UZjcpncE.d.ts +7 -0
  151. package/dist/chat-D3LWYymW.js +2666 -0
  152. package/dist/chrome--ATU1T0X.js +1503 -0
  153. package/dist/cli/run-main.js +9 -9
  154. package/dist/cli-D8hIXnS1.js +1341 -0
  155. package/dist/cli-DYinYyHP.d.ts +20 -0
  156. package/dist/cli-backend-CSCGROD2.d.ts +5 -0
  157. package/dist/cli-backend-DmBwqwqy.d.ts +5 -0
  158. package/dist/cli-compaction-jmi3u2HG.js +347 -0
  159. package/dist/cli-metadata-Cy9MEdPv.js +22 -0
  160. package/dist/cli-runner-DuT8oeZF.js +540 -0
  161. package/dist/cli-runner-DvKgnkCL.js +2 -0
  162. package/dist/cli-runner.runtime-B-aD16MD.js +4 -0
  163. package/dist/cli-runner.runtime-DofcKX1U.js +3 -0
  164. package/dist/cli-runner.runtime.js +1 -1
  165. package/dist/cli-shared-CXpra3BN.d.ts +20 -0
  166. package/dist/cli-startup-metadata.json +13 -13
  167. package/dist/client-B5IcAlfB.js +650 -0
  168. package/dist/client-adapter-CXA67h2E.js +897 -0
  169. package/dist/client-factory-aY6TuKfQ.js +9 -0
  170. package/dist/command-auth-DS9XgXEG.js +135 -0
  171. package/dist/command-execution-startup-DQOLt5Sz.js +87 -0
  172. package/dist/command-handlers-DqxF-IM9.js +1609 -0
  173. package/dist/command-registry-BSVx1oOc.js +4 -0
  174. package/dist/command-registry-CsPIOiQ3.js +9 -0
  175. package/dist/command-registry-core-Bzu5ff5F.js +110 -0
  176. package/dist/command-status.runtime-MKsizBC-.js +90 -0
  177. package/dist/command-status.runtime.js +1 -1
  178. package/dist/commands-CqcnXnk-.d.ts +113 -0
  179. package/dist/commands-acp-ClJofWty.js +74 -0
  180. package/dist/commands-compact.runtime-7VqYX4tS.js +10 -0
  181. package/dist/commands-compact.runtime.js +1 -1
  182. package/dist/commands-handlers.runtime-Dfqf_Oyp.js +6154 -0
  183. package/dist/commands-handlers.runtime.js +1 -1
  184. package/dist/commands-status-CRaEj9Vf.js +16 -0
  185. package/dist/commands-status-uDaqCP2F.js +3 -0
  186. package/dist/commands-status.runtime-uDaqCP2F.js +3 -0
  187. package/dist/commands-status.runtime.js +1 -1
  188. package/dist/commands-subagents-control.runtime-BaYcGLtc.js +2 -0
  189. package/dist/commands-subagents-control.runtime-C4xMpLed.js +3 -0
  190. package/dist/commands-subagents-control.runtime.js +1 -1
  191. package/dist/commands-system-prompt-C3lzz7wW.js +162 -0
  192. package/dist/commands-system-prompt-DpiW5FkQ.js +2 -0
  193. package/dist/commands.runtime-l4fGcB5c.js +176 -0
  194. package/dist/commands.runtime.js +1 -1
  195. package/dist/commitments/runtime.js +1 -1
  196. package/dist/compact-Dq0mi-y_.js +480 -0
  197. package/dist/compact-voJdoXm-.js +1141 -0
  198. package/dist/compact.runtime-BNLPSDQQ.js +12 -0
  199. package/dist/compact.runtime.js +1 -1
  200. package/dist/completion-cli-qHUelvvd.js +315 -0
  201. package/dist/computer-use-dP3FCUtq.js +367 -0
  202. package/dist/config-BDGPPDJ7.js +2 -0
  203. package/dist/config-Dg3sgjXu.js +373 -0
  204. package/dist/config-cli-INHPnZOG.js +1633 -0
  205. package/dist/config-mutations-CAgnXnDt.js +159 -0
  206. package/dist/config-schema-Bqr7vPys.d.ts +20 -0
  207. package/dist/configure-M1VU0h9O.js +3 -0
  208. package/dist/configure.commands-CM8RXyn3.js +1251 -0
  209. package/dist/configure.commands-PvOJd4nu.js +2 -0
  210. package/dist/context-engine-host-compat-D7I7Q63Z.js +288 -0
  211. package/dist/context-engine-host-compat-DGHUiQUV.js +2 -0
  212. package/dist/context-engine-lifecycle-Zsi-S6qy.js +1274 -0
  213. package/dist/contracts-testkit-DQ4aMv6G.d.ts +145 -0
  214. package/dist/control-auth-BKUTwIvH.js +114 -0
  215. package/dist/control-service-CKUzEAa0.js +145 -0
  216. package/dist/control-ui/assets/agents-ClA7Dmdi.js +1008 -0
  217. package/dist/control-ui/assets/channel-config-extras-DbFSI8yX.js +2 -0
  218. package/dist/control-ui/assets/channels-DnbSBvPm.js +367 -0
  219. package/dist/control-ui/assets/cron-CEUF8LjD.js +1013 -0
  220. package/dist/control-ui/assets/debug-DRYELUHG.js +97 -0
  221. package/dist/control-ui/assets/index-DCsdjM46.js +7370 -0
  222. package/dist/control-ui/assets/instances-COCizU2x.js +57 -0
  223. package/dist/control-ui/assets/logs-DNECqE3y.js +74 -0
  224. package/dist/control-ui/assets/nodes-MFf2wNIy.js +436 -0
  225. package/dist/control-ui/assets/sessions-DDnQy3rE.js +399 -0
  226. package/dist/control-ui/assets/skills-8ppwfjOc.js +314 -0
  227. package/dist/control-ui/assets/skills-shared-DI8nwzCe.js +11 -0
  228. package/dist/control-ui/index.html +1 -1
  229. package/dist/control-ui/sw.js +1 -1
  230. package/dist/conversation-binding-runtime-rXAYUZyM.js +4 -0
  231. package/dist/conversation-runtime-CV0pSg81.js +31 -0
  232. package/dist/core-BV0irASW.js +282 -0
  233. package/dist/core-DIQ0fbwp.d.ts +224 -0
  234. package/dist/core-api-CyhjZVzn.js +5 -0
  235. package/dist/core-api-YdHGjff8.js +2 -0
  236. package/dist/crestodian/crestodian.js +1 -1
  237. package/dist/crestodian/rescue-message.js +1 -1
  238. package/dist/crestodian-n5FVHIW5.js +55 -0
  239. package/dist/daocore-runtime-JsdCNe3l.d.ts +151 -0
  240. package/dist/daocore-tools-CXDZ1Xhe.js +11727 -0
  241. package/dist/dashboard-CeQV6L1K.js +263 -0
  242. package/dist/delivery-D7LfafSk.js +1002 -0
  243. package/dist/dev-BSY4rs1s.js +97 -0
  244. package/dist/dialogue-DWFnjTiN.js +37 -0
  245. package/dist/dir-fetch-tool-BnlEyfZh.js +565 -0
  246. package/dist/dir-list-tool-Blhg_vTH.js +100 -0
  247. package/dist/direct-dm-DJPIaf5J.js +64 -0
  248. package/dist/directive-handling.fast-lane-DGV6PZYZ.js +68 -0
  249. package/dist/directive-handling.impl-CTDwclQa.js +818 -0
  250. package/dist/directive-handling.impl-_zI0_GsT.js +2 -0
  251. package/dist/directive-handling.model-selection-C8lG4FHQ.js +122 -0
  252. package/dist/directive-handling.persist.runtime-CmLb1evR.js +263 -0
  253. package/dist/directive-handling.persist.runtime.js +1 -1
  254. package/dist/dispatch-DvZRbIrc.js +1640 -0
  255. package/dist/dispatch-acp-transcript.runtime-PehNIsnR.js +40 -0
  256. package/dist/dispatch-acp-transcript.runtime.js +1 -1
  257. package/dist/dispatch-acp.runtime-Dg8ft-Ve.js +18 -0
  258. package/dist/dispatch-acp.runtime.js +1 -1
  259. package/dist/doctor-DJFM3lrT.js +6 -0
  260. package/dist/doctor-_ob4EiVf.js +2 -0
  261. package/dist/doctor-config-flow-D6iEk-en.js +1741 -0
  262. package/dist/doctor-core-checks-CCfWWL1-.js +573 -0
  263. package/dist/doctor-core-checks-CqkHUVcZ.js +2 -0
  264. package/dist/doctor-health-CrNPft4G.js +65 -0
  265. package/dist/doctor-health-contributions-Bwu5M_GQ.js +696 -0
  266. package/dist/doctor-lint-B2Wb_jEn.js +94 -0
  267. package/dist/doctor-prompter-cXq7RExi.js +58 -0
  268. package/dist/doctor-state-integrity-DfYyVFbQ.js +1231 -0
  269. package/dist/dynamic-tools-CbHsYkuk.js +486 -0
  270. package/dist/embedded-backend-IYuqoxzv.js +579 -0
  271. package/dist/embedded-gateway-stub.runtime-BjJ_93Pp.js +12 -0
  272. package/dist/embedded-gateway-stub.runtime.js +1 -1
  273. package/dist/embedding-provider-56qUY6a4.d.ts +16 -0
  274. package/dist/embedding-provider-CfSvDhLk.d.ts +65 -0
  275. package/dist/embedding-provider-DV9KtS1H.d.ts +21 -0
  276. package/dist/entry.d.ts +1 -1
  277. package/dist/entry.js +1 -1
  278. package/dist/exec-approvals-VjIKwFog.js +149 -0
  279. package/dist/extensionAPI.js +1 -1
  280. package/dist/extensions/active-memory/index.d.ts +1 -1
  281. package/dist/extensions/active-memory/index.js +1 -1
  282. package/dist/extensions/admin-http-rpc/index.d.ts +1 -1
  283. package/dist/extensions/admin-http-rpc/index.js +1 -1
  284. package/dist/extensions/alibaba/index.d.ts +1 -1
  285. package/dist/extensions/anthropic/api.d.ts +3 -3
  286. package/dist/extensions/anthropic/cli-backend-api.d.ts +2 -2
  287. package/dist/extensions/anthropic/cli-backend.d.ts +1 -1
  288. package/dist/extensions/anthropic/cli-migration.d.ts +1 -1
  289. package/dist/extensions/anthropic/cli-shared.d.ts +1 -1
  290. package/dist/extensions/anthropic/contract-api.d.ts +1 -1
  291. package/dist/extensions/anthropic/index.d.ts +1 -1
  292. package/dist/extensions/anthropic/provider-contract-api.d.ts +1 -1
  293. package/dist/extensions/anthropic/provider-discovery.d.ts +1 -1
  294. package/dist/extensions/anthropic/provider-policy-api.d.ts +1 -1
  295. package/dist/extensions/anthropic/register.runtime.d.ts +1 -1
  296. package/dist/extensions/anthropic/replay-policy.d.ts +1 -1
  297. package/dist/extensions/anthropic/setup-api.d.ts +1 -1
  298. package/dist/extensions/anthropic/stream-wrappers.d.ts +1 -1
  299. package/dist/extensions/anthropic/test-api.d.ts +2 -2
  300. package/dist/extensions/arcee/index.d.ts +1 -1
  301. package/dist/extensions/azure-speech/index.d.ts +1 -1
  302. package/dist/extensions/azure-speech/speech-provider.d.ts +1 -1
  303. package/dist/extensions/bonjour/index.d.ts +1 -1
  304. package/dist/extensions/browser/browser-bridge.js +1 -1
  305. package/dist/extensions/browser/browser-config.js +4 -4
  306. package/dist/extensions/browser/browser-control-auth.js +2 -2
  307. package/dist/extensions/browser/browser-doctor.js +2 -2
  308. package/dist/extensions/browser/browser-maintenance.js +1 -1
  309. package/dist/extensions/browser/browser-profiles.js +2 -2
  310. package/dist/extensions/browser/browser-runtime-api.js +11 -11
  311. package/dist/extensions/browser/cli-metadata.d.ts +1 -1
  312. package/dist/extensions/browser/cli-metadata.js +1 -1
  313. package/dist/extensions/browser/index.d.ts +1 -1
  314. package/dist/extensions/browser/index.js +1 -1
  315. package/dist/extensions/browser/plugin-registration.d.ts +1 -1
  316. package/dist/extensions/browser/plugin-registration.js +1 -1
  317. package/dist/extensions/browser/register.runtime.d.ts +2 -2
  318. package/dist/extensions/browser/register.runtime.js +4 -4
  319. package/dist/extensions/browser/runtime-api.d.ts +3 -3
  320. package/dist/extensions/browser/runtime-api.js +13 -13
  321. package/dist/extensions/browser/setup-api.d.ts +1 -1
  322. package/dist/extensions/byteplus/index.d.ts +1 -1
  323. package/dist/extensions/byteplus/provider-discovery.d.ts +1 -1
  324. package/dist/extensions/canvas/cli-metadata.d.ts +1 -1
  325. package/dist/extensions/canvas/index.d.ts +1 -1
  326. package/dist/extensions/canvas/index.js +1 -1
  327. package/dist/extensions/canvas/runtime-api.d.ts +2 -2
  328. package/dist/extensions/canvas/setup-api.d.ts +1 -1
  329. package/dist/extensions/cerebras/index.d.ts +1 -1
  330. package/dist/extensions/chutes/index.d.ts +1 -1
  331. package/dist/extensions/clickclack/api.d.ts +2 -2
  332. package/dist/extensions/clickclack/api.js +2 -2
  333. package/dist/extensions/clickclack/channel-plugin-api.d.ts +1 -1
  334. package/dist/extensions/clickclack/channel-plugin-api.js +1 -1
  335. package/dist/extensions/clickclack/index.d.ts +2 -2
  336. package/dist/extensions/clickclack/runtime-api.d.ts +2 -2
  337. package/dist/extensions/clickclack/runtime-api.js +2 -2
  338. package/dist/extensions/cloudflare-ai-gateway/index.d.ts +1 -1
  339. package/dist/extensions/cloudflare-ai-gateway/stream-wrappers.d.ts +1 -1
  340. package/dist/extensions/comfy/index.d.ts +1 -1
  341. package/dist/extensions/copilot-proxy/index.d.ts +1 -1
  342. package/dist/extensions/copilot-proxy/runtime-api.d.ts +2 -2
  343. package/dist/extensions/deepgram/index.d.ts +1 -1
  344. package/dist/extensions/deepgram/realtime-transcription-provider.d.ts +1 -1
  345. package/dist/extensions/deepgram/test-api.d.ts +1 -1
  346. package/dist/extensions/deepinfra/api.d.ts +2 -2
  347. package/dist/extensions/deepinfra/embedding-provider.d.ts +1 -1
  348. package/dist/extensions/deepinfra/index.d.ts +1 -1
  349. package/dist/extensions/deepinfra/memory-embedding-adapter.d.ts +1 -1
  350. package/dist/extensions/deepinfra/speech-provider.d.ts +1 -1
  351. package/dist/extensions/deepseek/api.d.ts +1 -1
  352. package/dist/extensions/deepseek/index.d.ts +1 -1
  353. package/dist/extensions/deepseek/provider-discovery.d.ts +1 -1
  354. package/dist/extensions/deepseek/provider-policy-api.d.ts +1 -1
  355. package/dist/extensions/deepseek/stream.d.ts +1 -1
  356. package/dist/extensions/deepseek/thinking.d.ts +1 -1
  357. package/dist/extensions/device-pair/api.d.ts +3 -3
  358. package/dist/extensions/device-pair/api.js +1 -1
  359. package/dist/extensions/device-pair/index.d.ts +1 -1
  360. package/dist/extensions/device-pair/notify.d.ts +1 -1
  361. package/dist/extensions/device-pair/pair-command-approve.js +1 -1
  362. package/dist/extensions/document-extract/index.d.ts +1 -1
  363. package/dist/extensions/duckduckgo/index.d.ts +1 -1
  364. package/dist/extensions/elevenlabs/index.d.ts +1 -1
  365. package/dist/extensions/elevenlabs/realtime-transcription-provider.d.ts +1 -1
  366. package/dist/extensions/elevenlabs/setup-api.d.ts +1 -1
  367. package/dist/extensions/elevenlabs/speech-provider.d.ts +1 -1
  368. package/dist/extensions/elevenlabs/test-api.d.ts +2 -2
  369. package/dist/extensions/exa/index.d.ts +1 -1
  370. package/dist/extensions/fal/index.d.ts +1 -1
  371. package/dist/extensions/fal/provider-contract-api.d.ts +1 -1
  372. package/dist/extensions/fal/provider-registration.d.ts +1 -1
  373. package/dist/extensions/file-transfer/index.d.ts +1 -1
  374. package/dist/extensions/file-transfer/index.js +4 -4
  375. package/dist/extensions/firecrawl/index.d.ts +1 -1
  376. package/dist/extensions/fireworks/index.d.ts +1 -1
  377. package/dist/extensions/fireworks/provider-policy-api.d.ts +1 -1
  378. package/dist/extensions/fireworks/stream.d.ts +1 -1
  379. package/dist/extensions/fireworks/thinking-policy.d.ts +1 -1
  380. package/dist/extensions/github-copilot/embeddings.d.ts +1 -1
  381. package/dist/extensions/github-copilot/index.d.ts +1 -1
  382. package/dist/extensions/github-copilot/models.d.ts +1 -1
  383. package/dist/extensions/github-copilot/register.runtime.d.ts +2 -2
  384. package/dist/extensions/github-copilot/stream.d.ts +1 -1
  385. package/dist/extensions/google/api.d.ts +5 -5
  386. package/dist/extensions/google/cli-backend.d.ts +1 -1
  387. package/dist/extensions/google/embedding-batch.d.ts +1 -1
  388. package/dist/extensions/google/embedding-provider.d.ts +1 -1
  389. package/dist/extensions/google/gemini-cli-provider.d.ts +1 -1
  390. package/dist/extensions/google/index.d.ts +1 -1
  391. package/dist/extensions/google/memory-embedding-adapter.d.ts +1 -1
  392. package/dist/extensions/google/provider-contract-api.d.ts +1 -1
  393. package/dist/extensions/google/provider-hooks.d.ts +2 -2
  394. package/dist/extensions/google/provider-models.d.ts +1 -1
  395. package/dist/extensions/google/provider-policy-api.d.ts +1 -1
  396. package/dist/extensions/google/provider-policy.d.ts +1 -1
  397. package/dist/extensions/google/provider-registration.d.ts +1 -1
  398. package/dist/extensions/google/realtime-voice-provider.d.ts +1 -1
  399. package/dist/extensions/google/runtime-api.d.ts +3 -3
  400. package/dist/extensions/google/setup-api.d.ts +1 -1
  401. package/dist/extensions/google/speech-provider.d.ts +1 -1
  402. package/dist/extensions/google/test-api.d.ts +2 -2
  403. package/dist/extensions/google/thinking-api.d.ts +1 -1
  404. package/dist/extensions/google/thinking.d.ts +1 -1
  405. package/dist/extensions/google/transport-stream.d.ts +1 -1
  406. package/dist/extensions/gradium/index.d.ts +1 -1
  407. package/dist/extensions/gradium/speech-provider.d.ts +1 -1
  408. package/dist/extensions/groq/index.d.ts +1 -1
  409. package/dist/extensions/huggingface/index.d.ts +1 -1
  410. package/dist/extensions/image-generation-core/api.d.ts +3 -3
  411. package/dist/extensions/image-generation-core/runtime-api.d.ts +1 -1
  412. package/dist/extensions/imessage/api.d.ts +2 -2
  413. package/dist/extensions/imessage/api.js +2 -2
  414. package/dist/extensions/imessage/channel-plugin-api.d.ts +1 -1
  415. package/dist/extensions/imessage/channel-plugin-api.js +1 -1
  416. package/dist/extensions/imessage/index.d.ts +2 -2
  417. package/dist/extensions/imessage/message-tool-api.d.ts +1 -1
  418. package/dist/extensions/imessage/runtime-api.d.ts +2 -2
  419. package/dist/extensions/imessage/runtime-api.js +3 -3
  420. package/dist/extensions/imessage/setup-entry.d.ts +2 -2
  421. package/dist/extensions/imessage/test-api.d.ts +1 -1
  422. package/dist/extensions/inworld/index.d.ts +1 -1
  423. package/dist/extensions/inworld/speech-provider.d.ts +1 -1
  424. package/dist/extensions/irc/api.d.ts +1 -1
  425. package/dist/extensions/irc/api.js +2 -2
  426. package/dist/extensions/irc/channel-plugin-api.d.ts +1 -1
  427. package/dist/extensions/irc/channel-plugin-api.js +1 -1
  428. package/dist/extensions/irc/index.d.ts +2 -2
  429. package/dist/extensions/irc/setup-entry.d.ts +2 -2
  430. package/dist/extensions/kilocode/index.d.ts +1 -1
  431. package/dist/extensions/kimi-coding/index.d.ts +1 -1
  432. package/dist/extensions/kimi-coding/stream.d.ts +1 -1
  433. package/dist/extensions/litellm/index.d.ts +1 -1
  434. package/dist/extensions/llm-task/api.d.ts +2 -2
  435. package/dist/extensions/llm-task/index.d.ts +1 -1
  436. package/dist/extensions/llm-task/index.js +1 -1
  437. package/dist/extensions/lmstudio/api.d.ts +1 -1
  438. package/dist/extensions/lmstudio/index.d.ts +1 -1
  439. package/dist/extensions/lmstudio/memory-embedding-adapter.d.ts +1 -1
  440. package/dist/extensions/mattermost/api.js +1 -1
  441. package/dist/extensions/mattermost/channel-plugin-api.d.ts +2 -2
  442. package/dist/extensions/mattermost/channel-plugin-api.js +1 -1
  443. package/dist/extensions/mattermost/channel-plugin-runtime.d.ts +1 -1
  444. package/dist/extensions/mattermost/channel-plugin-runtime.js +1 -1
  445. package/dist/extensions/mattermost/index.d.ts +2 -2
  446. package/dist/extensions/mattermost/policy-api.js +1 -1
  447. package/dist/extensions/mattermost/runtime-api.d.ts +3 -3
  448. package/dist/extensions/mattermost/runtime-api.js +2 -2
  449. package/dist/extensions/mattermost/setup-entry.d.ts +2 -2
  450. package/dist/extensions/mattermost/slash-route-api.d.ts +1 -1
  451. package/dist/extensions/mattermost/slash-route-api.js +1 -1
  452. package/dist/extensions/memory-core/api.d.ts +1 -1
  453. package/dist/extensions/memory-core/cli-metadata.d.ts +1 -1
  454. package/dist/extensions/memory-core/cli-metadata.js +1 -1
  455. package/dist/extensions/memory-core/index.d.ts +1 -1
  456. package/dist/extensions/memory-core/manager-runtime.d.ts +1 -1
  457. package/dist/extensions/memory-core/runtime-api.d.ts +2 -2
  458. package/dist/extensions/memory-wiki/api.d.ts +3 -3
  459. package/dist/extensions/memory-wiki/cli-metadata.d.ts +1 -1
  460. package/dist/extensions/memory-wiki/index.d.ts +1 -1
  461. package/dist/extensions/memory-wiki/setup-api.d.ts +1 -1
  462. package/dist/extensions/microsoft/index.d.ts +1 -1
  463. package/dist/extensions/microsoft/speech-provider.d.ts +1 -1
  464. package/dist/extensions/microsoft/test-api.d.ts +1 -1
  465. package/dist/extensions/microsoft-foundry/auth.d.ts +1 -1
  466. package/dist/extensions/microsoft-foundry/cli.d.ts +1 -1
  467. package/dist/extensions/microsoft-foundry/index.d.ts +1 -1
  468. package/dist/extensions/microsoft-foundry/onboard.d.ts +3 -3
  469. package/dist/extensions/microsoft-foundry/provider.d.ts +1 -1
  470. package/dist/extensions/microsoft-foundry/runtime.d.ts +1 -1
  471. package/dist/extensions/microsoft-foundry/shared-runtime.d.ts +1 -1
  472. package/dist/extensions/microsoft-foundry/shared.d.ts +1 -1
  473. package/dist/extensions/migrate-claude/apply.d.ts +1 -1
  474. package/dist/extensions/migrate-claude/apply.js +1 -1
  475. package/dist/extensions/migrate-claude/config.d.ts +1 -1
  476. package/dist/extensions/migrate-claude/helpers.d.ts +1 -1
  477. package/dist/extensions/migrate-claude/index.d.ts +1 -1
  478. package/dist/extensions/migrate-claude/index.js +1 -1
  479. package/dist/extensions/migrate-claude/memory.d.ts +2 -2
  480. package/dist/extensions/migrate-claude/plan.d.ts +1 -1
  481. package/dist/extensions/migrate-claude/plan.js +1 -1
  482. package/dist/extensions/migrate-claude/provider.d.ts +1 -1
  483. package/dist/extensions/migrate-claude/provider.js +1 -1
  484. package/dist/extensions/migrate-claude/skills.d.ts +2 -2
  485. package/dist/extensions/migrate-claude/targets.d.ts +1 -1
  486. package/dist/extensions/migrate-claude/targets.js +1 -1
  487. package/dist/extensions/migrate-hermes/apply.d.ts +1 -1
  488. package/dist/extensions/migrate-hermes/apply.js +1 -1
  489. package/dist/extensions/migrate-hermes/config.d.ts +1 -1
  490. package/dist/extensions/migrate-hermes/helpers.d.ts +1 -1
  491. package/dist/extensions/migrate-hermes/index.d.ts +1 -1
  492. package/dist/extensions/migrate-hermes/index.js +1 -1
  493. package/dist/extensions/migrate-hermes/items.d.ts +1 -1
  494. package/dist/extensions/migrate-hermes/model.d.ts +1 -1
  495. package/dist/extensions/migrate-hermes/model.js +1 -1
  496. package/dist/extensions/migrate-hermes/plan.d.ts +1 -1
  497. package/dist/extensions/migrate-hermes/plan.js +1 -1
  498. package/dist/extensions/migrate-hermes/provider.d.ts +1 -1
  499. package/dist/extensions/migrate-hermes/provider.js +1 -1
  500. package/dist/extensions/migrate-hermes/secrets.d.ts +2 -2
  501. package/dist/extensions/migrate-hermes/secrets.js +1 -1
  502. package/dist/extensions/migrate-hermes/skills.d.ts +2 -2
  503. package/dist/extensions/migrate-hermes/targets.d.ts +1 -1
  504. package/dist/extensions/migrate-hermes/targets.js +1 -1
  505. package/dist/extensions/minimax/index.d.ts +1 -1
  506. package/dist/extensions/minimax/provider-contract-api.d.ts +1 -1
  507. package/dist/extensions/minimax/provider-registration.d.ts +1 -1
  508. package/dist/extensions/minimax/speech-provider.d.ts +1 -1
  509. package/dist/extensions/mistral/embedding-provider.d.ts +1 -1
  510. package/dist/extensions/mistral/index.d.ts +1 -1
  511. package/dist/extensions/mistral/memory-embedding-adapter.d.ts +1 -1
  512. package/dist/extensions/mistral/realtime-transcription-provider.d.ts +1 -1
  513. package/dist/extensions/mistral/test-api.d.ts +1 -1
  514. package/dist/extensions/moonshot/index.d.ts +1 -1
  515. package/dist/extensions/moonshot/provider-contract-api.d.ts +1 -1
  516. package/dist/extensions/moonshot/provider-discovery.d.ts +1 -1
  517. package/dist/extensions/nvidia/index.d.ts +1 -1
  518. package/dist/extensions/oc-path/cli-metadata.d.ts +1 -1
  519. package/dist/extensions/oc-path/cli-registration.d.ts +1 -1
  520. package/dist/extensions/oc-path/index.d.ts +1 -1
  521. package/dist/extensions/ollama/api.d.ts +1 -1
  522. package/dist/extensions/ollama/index.d.ts +1 -1
  523. package/dist/extensions/ollama/provider-discovery.d.ts +1 -1
  524. package/dist/extensions/ollama/provider-policy-api.d.ts +1 -1
  525. package/dist/extensions/ollama/runtime-api.d.ts +1 -1
  526. package/dist/extensions/open-prose/index.d.ts +1 -1
  527. package/dist/extensions/open-prose/runtime-api.d.ts +2 -2
  528. package/dist/extensions/openai/api.d.ts +4 -4
  529. package/dist/extensions/openai/embedding-batch.d.ts +1 -1
  530. package/dist/extensions/openai/embedding-provider.d.ts +1 -1
  531. package/dist/extensions/openai/index.d.ts +1 -1
  532. package/dist/extensions/openai/memory-embedding-adapter.d.ts +1 -1
  533. package/dist/extensions/openai/openai-codex-oauth.runtime.d.ts +1 -1
  534. package/dist/extensions/openai/openai-codex-provider.d.ts +1 -1
  535. package/dist/extensions/openai/openai-provider.d.ts +1 -1
  536. package/dist/extensions/openai/prompt-overlay.d.ts +1 -1
  537. package/dist/extensions/openai/provider-contract-api.d.ts +1 -1
  538. package/dist/extensions/openai/provider-policy-api.d.ts +1 -1
  539. package/dist/extensions/openai/realtime-transcription-provider.d.ts +1 -1
  540. package/dist/extensions/openai/realtime-voice-provider.d.ts +1 -1
  541. package/dist/extensions/openai/register.runtime.d.ts +6 -6
  542. package/dist/extensions/openai/replay-policy.d.ts +1 -1
  543. package/dist/extensions/openai/setup-api.d.ts +1 -1
  544. package/dist/extensions/openai/shared.d.ts +3 -3
  545. package/dist/extensions/openai/speech-provider.d.ts +1 -1
  546. package/dist/extensions/openai/test-api.d.ts +3 -3
  547. package/dist/extensions/openai/thinking-policy.d.ts +1 -1
  548. package/dist/extensions/openai/transport-policy.d.ts +1 -1
  549. package/dist/extensions/opencode/index.d.ts +1 -1
  550. package/dist/extensions/opencode/provider-policy-api.d.ts +1 -1
  551. package/dist/extensions/opencode-go/index.d.ts +1 -1
  552. package/dist/extensions/opencode-go/provider-catalog.d.ts +1 -1
  553. package/dist/extensions/opencode-go/stream.d.ts +1 -1
  554. package/dist/extensions/openrouter/api.d.ts +1 -1
  555. package/dist/extensions/openrouter/index.d.ts +1 -1
  556. package/dist/extensions/openrouter/provider-contract-api.d.ts +1 -1
  557. package/dist/extensions/openrouter/provider-policy-api.d.ts +1 -1
  558. package/dist/extensions/openrouter/speech-provider.d.ts +1 -1
  559. package/dist/extensions/openrouter/stream.d.ts +1 -1
  560. package/dist/extensions/openrouter/test-api.d.ts +1 -1
  561. package/dist/extensions/openrouter/thinking-policy.d.ts +1 -1
  562. package/dist/extensions/openrouter/video-generation-provider.d.ts +1 -1
  563. package/dist/extensions/openrouter/video-model-catalog.d.ts +1 -1
  564. package/dist/extensions/perplexity/index.d.ts +1 -1
  565. package/dist/extensions/phone-control/index.d.ts +1 -1
  566. package/dist/extensions/phone-control/runtime-api.d.ts +2 -2
  567. package/dist/extensions/policy/api.js +1 -1
  568. package/dist/extensions/policy/index.d.ts +1 -1
  569. package/dist/extensions/policy/index.js +2 -2
  570. package/dist/extensions/qianfan/index.d.ts +1 -1
  571. package/dist/extensions/qwen/api.d.ts +1 -1
  572. package/dist/extensions/qwen/index.d.ts +1 -1
  573. package/dist/extensions/qwen/stream.d.ts +1 -1
  574. package/dist/extensions/runway/index.d.ts +1 -1
  575. package/dist/extensions/searxng/index.d.ts +1 -1
  576. package/dist/extensions/senseaudio/index.d.ts +1 -1
  577. package/dist/extensions/sglang/index.d.ts +1 -1
  578. package/dist/extensions/signal/api.d.ts +2 -2
  579. package/dist/extensions/signal/api.js +6 -6
  580. package/dist/extensions/signal/channel-entry.d.ts +2 -2
  581. package/dist/extensions/signal/channel-plugin-api.d.ts +1 -1
  582. package/dist/extensions/signal/channel-plugin-api.js +1 -1
  583. package/dist/extensions/signal/index.d.ts +2 -2
  584. package/dist/extensions/signal/reaction-runtime-api.js +1 -1
  585. package/dist/extensions/signal/runtime-api.d.ts +4 -4
  586. package/dist/extensions/signal/runtime-api.js +7 -7
  587. package/dist/extensions/signal/setup-entry.d.ts +2 -2
  588. package/dist/extensions/skill-workshop/api.d.ts +2 -2
  589. package/dist/extensions/skill-workshop/api.js +1 -1
  590. package/dist/extensions/skill-workshop/index.d.ts +1 -1
  591. package/dist/extensions/skill-workshop/index.js +2 -2
  592. package/dist/extensions/speech-core/api.d.ts +3 -3
  593. package/dist/extensions/speech-core/runtime-api.d.ts +2 -2
  594. package/dist/extensions/stepfun/index.d.ts +1 -1
  595. package/dist/extensions/synthetic/index.d.ts +1 -1
  596. package/dist/extensions/talk-voice/api.d.ts +2 -2
  597. package/dist/extensions/talk-voice/index.d.ts +1 -1
  598. package/dist/extensions/tavily/index.d.ts +1 -1
  599. package/dist/extensions/telegram/account-inspect-api.js +1 -1
  600. package/dist/extensions/telegram/api.d.ts +3 -3
  601. package/dist/extensions/telegram/api.js +11 -11
  602. package/dist/extensions/telegram/channel-plugin-api.d.ts +2 -2
  603. package/dist/extensions/telegram/channel-plugin-api.js +2 -2
  604. package/dist/extensions/telegram/contract-api.d.ts +1 -1
  605. package/dist/extensions/telegram/contract-api.js +3 -3
  606. package/dist/extensions/telegram/index.d.ts +2 -2
  607. package/dist/extensions/telegram/runtime-api.d.ts +3 -3
  608. package/dist/extensions/telegram/runtime-api.js +7 -7
  609. package/dist/extensions/telegram/security-audit-contract-api.js +1 -1
  610. package/dist/extensions/telegram/setup-entry.d.ts +2 -2
  611. package/dist/extensions/telegram/setup-plugin-api.d.ts +1 -1
  612. package/dist/extensions/telegram/setup-plugin-api.js +1 -1
  613. package/dist/extensions/telegram/test-api.js +2 -2
  614. package/dist/extensions/tencent/index.d.ts +1 -1
  615. package/dist/extensions/tencent/provider-discovery.d.ts +1 -1
  616. package/dist/extensions/thread-ownership/api.d.ts +2 -2
  617. package/dist/extensions/thread-ownership/index.d.ts +1 -1
  618. package/dist/extensions/together/index.d.ts +1 -1
  619. package/dist/extensions/tokenjuice/index.d.ts +1 -1
  620. package/dist/extensions/tokenjuice/tool-result-middleware.d.ts +1 -1
  621. package/dist/extensions/tts-local-cli/index.d.ts +1 -1
  622. package/dist/extensions/tts-local-cli/speech-provider.d.ts +1 -1
  623. package/dist/extensions/venice/index.d.ts +1 -1
  624. package/dist/extensions/venice/stream.d.ts +1 -1
  625. package/dist/extensions/vercel-ai-gateway/index.d.ts +1 -1
  626. package/dist/extensions/vercel-ai-gateway/thinking.d.ts +1 -1
  627. package/dist/extensions/video-generation-core/api.d.ts +2 -2
  628. package/dist/extensions/video-generation-core/runtime-api.d.ts +1 -1
  629. package/dist/extensions/vllm/api.d.ts +1 -1
  630. package/dist/extensions/vllm/index.d.ts +1 -1
  631. package/dist/extensions/vllm/stream.d.ts +1 -1
  632. package/dist/extensions/volcengine/index.d.ts +1 -1
  633. package/dist/extensions/volcengine/provider-discovery.d.ts +1 -1
  634. package/dist/extensions/volcengine/speech-provider.d.ts +1 -1
  635. package/dist/extensions/voyage/embedding-batch.d.ts +1 -1
  636. package/dist/extensions/voyage/embedding-provider.d.ts +1 -1
  637. package/dist/extensions/voyage/index.d.ts +1 -1
  638. package/dist/extensions/voyage/memory-embedding-adapter.d.ts +1 -1
  639. package/dist/extensions/vydra/index.d.ts +1 -1
  640. package/dist/extensions/vydra/speech-provider.d.ts +1 -1
  641. package/dist/extensions/web-readability/index.d.ts +1 -1
  642. package/dist/extensions/webhooks/api.d.ts +2 -2
  643. package/dist/extensions/webhooks/api.js +1 -1
  644. package/dist/extensions/webhooks/index.d.ts +1 -1
  645. package/dist/extensions/webhooks/index.js +1 -1
  646. package/dist/extensions/webhooks/runtime-api.d.ts +1 -1
  647. package/dist/extensions/xai/api.d.ts +1 -1
  648. package/dist/extensions/xai/index.d.ts +1 -1
  649. package/dist/extensions/xai/index.js +4 -4
  650. package/dist/extensions/xai/provider-contract-api.d.ts +1 -1
  651. package/dist/extensions/xai/provider-discovery.d.ts +1 -1
  652. package/dist/extensions/xai/provider-models.d.ts +1 -1
  653. package/dist/extensions/xai/provider-policy-api.d.ts +1 -1
  654. package/dist/extensions/xai/realtime-transcription-provider.d.ts +1 -1
  655. package/dist/extensions/xai/realtime-transcription-provider.js +1 -1
  656. package/dist/extensions/xai/setup-api.d.ts +1 -1
  657. package/dist/extensions/xai/speech-provider.d.ts +1 -1
  658. package/dist/extensions/xai/speech-provider.js +1 -1
  659. package/dist/extensions/xai/stream.d.ts +1 -1
  660. package/dist/extensions/xai/test-api.js +1 -1
  661. package/dist/extensions/xai/tts.js +1 -1
  662. package/dist/extensions/xai/web-search.js +1 -1
  663. package/dist/extensions/xai/xai-oauth.d.ts +1 -1
  664. package/dist/extensions/xai/xai-oauth.js +1 -1
  665. package/dist/extensions/xiaomi/index.d.ts +1 -1
  666. package/dist/extensions/xiaomi/speech-provider.d.ts +1 -1
  667. package/dist/extensions/xiaomi/stream.d.ts +1 -1
  668. package/dist/extensions/xiaomi/thinking.d.ts +1 -1
  669. package/dist/extensions/zai/index.d.ts +1 -1
  670. package/dist/file-fetch-tool-smMykVXl.js +124 -0
  671. package/dist/file-write-tool-yEYLZ2hU.js +127 -0
  672. package/dist/format-DyREJP5V.js +1145 -0
  673. package/dist/gateway/protocol/index.d.ts +1 -1
  674. package/dist/gateway-cli-D4yhwJa8.js +435 -0
  675. package/dist/gateway-method-runtime-B8AOnwqD.js +21 -0
  676. package/dist/gateway-runtime-COtKzRqi.d.ts +163 -0
  677. package/dist/gemini-cli-provider-BQgviROv.d.ts +6 -0
  678. package/dist/get-reply-Co-_Qlr-.js +4689 -0
  679. package/dist/get-reply-from-config.runtime-BcbRKxzJ.js +2 -0
  680. package/dist/get-reply-from-config.runtime.js +1 -1
  681. package/dist/graph-users-CF7Dlee2.js +1419 -0
  682. package/dist/group-access-BTU-w5S5.js +112 -0
  683. package/dist/handle-action.guild-admin-DS29y_6h.js +288 -0
  684. package/dist/harness-d9YmZWA3.js +61 -0
  685. package/dist/health-Cov1Kryj.js +4 -0
  686. package/dist/heartbeat-runner-B2wo_xDj.js +5 -0
  687. package/dist/heartbeat-runner.runtime-DrHZD-P2.js +4 -0
  688. package/dist/heartbeat-runner.runtime.js +1 -1
  689. package/dist/help-BgDd1atJ.js +136 -0
  690. package/dist/hooks-CgXKCJSD.js +534 -0
  691. package/dist/http-registry-Yo_NvKls.d.ts +23 -0
  692. package/dist/image-generation-runtime-BIAvq6jv.d.ts +21 -0
  693. package/dist/inbound-direct-dm-runtime-DjOHl6c_.js +2 -0
  694. package/dist/inbound-reply-dispatch-BCTiM2jm.js +148 -0
  695. package/dist/index-7GMgTC5k.d.ts +3971 -0
  696. package/dist/index.js +1 -1
  697. package/dist/init-CreYGHpp.js +59 -0
  698. package/dist/inline-buttons-C94TOhmL.js +40 -0
  699. package/dist/interactive-dispatch-ChuCQxzf.d.ts +56 -0
  700. package/dist/interactive-dispatch-DY_jVu-V.d.ts +143 -0
  701. package/dist/internal-events-B6D5bqsn.js +90 -0
  702. package/dist/isolated-agent-9faqxl7c.js +1118 -0
  703. package/dist/isolated-agent-CaY4uTcE.js +2 -0
  704. package/dist/lifecycle-pTz4liUn.js +571 -0
  705. package/dist/list.probe-B8pt-DOd.js +449 -0
  706. package/dist/list.status-command-Wgmt361J.js +789 -0
  707. package/dist/llm-slug-generator-Do4oXnXl.js +78 -0
  708. package/dist/llm-slug-generator.js +1 -1
  709. package/dist/loader-C-JyPvyF.d.ts +142 -0
  710. package/dist/local-dispatch.runtime-7keeuHHm.js +9 -0
  711. package/dist/local-dispatch.runtime.js +1 -1
  712. package/dist/manager-CknaUr2b.d.ts +356 -0
  713. package/dist/manager.runtime-B3nVh8Nl.js +2714 -0
  714. package/dist/manager.runtime.js +1 -1
  715. package/dist/markdown-to-line-CZLeX0SL.js +811 -0
  716. package/dist/mcp-http-LaAmzBev.js +2 -0
  717. package/dist/mcp-http-M4GjuKFd.js +555 -0
  718. package/dist/media-understanding-provider-DLA6VsQZ.js +339 -0
  719. package/dist/memory-core-host-engine-storage-izjrNFNA.d.ts +54 -0
  720. package/dist/memory-embedding-adapter-B3WLPdKc.d.ts +5 -0
  721. package/dist/message-actions-Dlv-B5yk.js +145 -0
  722. package/dist/message-handler-2HSbEoAi.js +384 -0
  723. package/dist/message-handler-XiApv_iS.js +1715 -0
  724. package/dist/message-handler.preflight-CN-g4nxs.js +1125 -0
  725. package/dist/message-handler.process-BzVq3Lq_.js +1484 -0
  726. package/dist/migration-DVKbowM8.d.ts +45 -0
  727. package/dist/model-BSBoLWjJ.d.ts +33 -0
  728. package/dist/model-Sqz99RFi.js +74 -0
  729. package/dist/model-selection-Bh9QtqlJ.js +272 -0
  730. package/dist/models-BvEw11kE.d.ts +24 -0
  731. package/dist/models-C_dD1FNN.js +2 -0
  732. package/dist/models-CtpB-fi2.js +104 -0
  733. package/dist/models-cli-I2sJE5tg.js +256 -0
  734. package/dist/monitor-B4J6Kn4-.js +60 -0
  735. package/dist/monitor-BIFxJ3Ql.js +2788 -0
  736. package/dist/monitor-BTkcXHvw.js +834 -0
  737. package/dist/monitor-BX7Encm5.js +1657 -0
  738. package/dist/monitor-CZsJ4D3J.js +4377 -0
  739. package/dist/monitor-CvKt9k7P.js +2 -0
  740. package/dist/monitor-Dy9phiVJ.js +1370 -0
  741. package/dist/monitor-auth-CjtJPc9C.js +179 -0
  742. package/dist/monitor-jQpVHEky.js +715 -0
  743. package/dist/monitor-polling.runtime-Li4-3e2G.js +883 -0
  744. package/dist/monitor-polling.runtime.js +1 -1
  745. package/dist/monitor-webhook.runtime-CQ2kN5ya.js +387 -0
  746. package/dist/monitor-webhook.runtime.js +1 -1
  747. package/dist/monitor.account-CFdazLEm.js +5233 -0
  748. package/dist/monitor.runtime-B774iFU_.js +2 -0
  749. package/dist/monitor.runtime.js +1 -1
  750. package/dist/monitor.webhook-NNrWA5P9.js +180 -0
  751. package/dist/node-cli-sessions-Ct-6bGab.js +1228 -0
  752. package/dist/onboard-DEUA1HCQ.js +733 -0
  753. package/dist/onboard-helpers-Cupkjkec.js +251 -0
  754. package/dist/onboard-helpers-D1Pvowo1.js +6 -0
  755. package/dist/onboard-remote-BN_7wNqG.js +2 -0
  756. package/dist/onboard-remote-BqYAK5dF.js +212 -0
  757. package/dist/onboard-skills-BM40qOkc.js +160 -0
  758. package/dist/onboard-skills-rSLgDOzB.js +2 -0
  759. package/dist/openai-codex-provider-C48t8ka8.d.ts +5 -0
  760. package/dist/openai-http-BRnxRJ_y.js +824 -0
  761. package/dist/openai-provider-Df75q4KM.d.ts +5 -0
  762. package/dist/openresponses-http-Dg3OL0qA.js +1173 -0
  763. package/dist/operations-jvr0A8cu.js +805 -0
  764. package/dist/outbound-adapter-BJej9JpO.js +543 -0
  765. package/dist/outbound-session-route-D3QVwFKr.js +45 -0
  766. package/dist/outbound.runtime-gdOoPtOh.js +2 -0
  767. package/dist/outbound.runtime.js +1 -1
  768. package/dist/pi-embedded-CwD_xrGP.js +3796 -0
  769. package/dist/pi-embedded-DL6l8KBl.js +4 -0
  770. package/dist/pi-embedded.runtime-DyGCj24d.js +4 -0
  771. package/dist/pi-embedded.runtime.js +1 -1
  772. package/dist/pi-tools-BzbgexEG.js +2413 -0
  773. package/dist/plan-HWBV2Rhq.js +112 -0
  774. package/dist/plan-iN77JYw-.js +81 -0
  775. package/dist/plugin-CbNvjum_.js +12396 -0
  776. package/dist/plugin-DMYsMKAW.d.ts +17 -0
  777. package/dist/plugin-app-cache-key-CHpwYM0e.js +46 -0
  778. package/dist/plugin-enabled-DjbDhNRG.js +233 -0
  779. package/dist/plugin-entry-DwVZtdM9.d.ts +47 -0
  780. package/dist/plugin-registration-BM_Iko3e.js +88 -0
  781. package/dist/plugin-runtime-Dx9WRWX8.d.ts +117 -0
  782. package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
  783. package/dist/plugin-sdk/acp-runtime-backend.js +1 -1
  784. package/dist/plugin-sdk/acp-runtime.js +2 -2
  785. package/dist/plugin-sdk/agent-harness-runtime.js +6 -6
  786. package/dist/plugin-sdk/agent-harness-task-runtime.js +1 -1
  787. package/dist/plugin-sdk/agent-harness.js +7 -7
  788. package/dist/plugin-sdk/agent-runtime.js +2 -2
  789. package/dist/plugin-sdk/channel-core.js +2 -2
  790. package/dist/plugin-sdk/channel-inbound.js +2 -2
  791. package/dist/plugin-sdk/channel-test-helpers.js +1 -1
  792. package/dist/plugin-sdk/command-auth.js +1 -1
  793. package/dist/plugin-sdk/command-status-runtime.js +1 -1
  794. package/dist/plugin-sdk/compat.js +1 -1
  795. package/dist/plugin-sdk/conversation-binding-runtime.js +2 -2
  796. package/dist/plugin-sdk/conversation-runtime.js +3 -3
  797. package/dist/plugin-sdk/core.js +2 -2
  798. package/dist/plugin-sdk/direct-dm.js +1 -1
  799. package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
  800. package/dist/plugin-sdk/health.js +2 -2
  801. package/dist/plugin-sdk/inbound-reply-dispatch.js +1 -1
  802. package/dist/plugin-sdk/index.js +1 -1
  803. package/dist/plugin-sdk/mattermost.js +1 -1
  804. package/dist/plugin-sdk/plugin-test-contracts.js +2 -2
  805. package/dist/plugin-sdk/provider-test-contracts.js +4 -4
  806. package/dist/plugin-sdk/reply-runtime.js +4 -4
  807. package/dist/plugin-sdk/testing.js +2 -2
  808. package/dist/plugin-sdk/zalouser.js +1 -1
  809. package/dist/plugin-service-CVyMm03C.js +1229 -0
  810. package/dist/plugin-service-mHunWjlo.d.ts +24 -0
  811. package/dist/plugins/build-smoke-entry.d.ts +2 -2
  812. package/dist/plugins/loader.d.ts +1 -1
  813. package/dist/plugins/provider-discovery.runtime.d.ts +1 -1
  814. package/dist/plugins/provider-runtime.runtime.d.ts +1 -1
  815. package/dist/plugins/runtime/index.js +4 -4
  816. package/dist/policy-B2lTxn8H.js +680 -0
  817. package/dist/policy-Bp9GYcSZ.js +138 -0
  818. package/dist/prepare.runtime-CxhQeo9l.js +732 -0
  819. package/dist/prepare.runtime.js +1 -1
  820. package/dist/preview-warnings-FVRS7Mcs.js +392 -0
  821. package/dist/probe-BRLc43oX.js +47 -0
  822. package/dist/probe-C1eD9yG7.js +2204 -0
  823. package/dist/probe-C1giMJtz.js +682 -0
  824. package/dist/probe-rIUNPFef.js +2 -0
  825. package/dist/program-DfIqBXRH.js +131 -0
  826. package/dist/prompt-overlay-D0r0EA6z.d.ts +23 -0
  827. package/dist/provider-BCxvG42s.js +152 -0
  828. package/dist/provider-BHPMcHk-.js +32 -0
  829. package/dist/provider-CIAQ8D7q.js +32 -0
  830. package/dist/provider-api-key-auth-2Fp25hP8.d.ts +27 -0
  831. package/dist/provider-auth-result-mIg6RY-l.d.ts +21 -0
  832. package/dist/provider-catalog-runtime-B7e02aat.d.ts +23 -0
  833. package/dist/provider-catalog-shared-D0mIMF1C.d.ts +62 -0
  834. package/dist/provider-dispatcher-DyJDef6y.js +22 -0
  835. package/dist/provider-dispatcher.runtime.js +1 -1
  836. package/dist/provider-hook-runtime-CrtHxgL6.d.ts +61 -0
  837. package/dist/provider-j7cYms68.js +8735 -0
  838. package/dist/provider-model-shared-BESf3jvo.d.ts +143 -0
  839. package/dist/provider-models-B6wofKVD.d.ts +12 -0
  840. package/dist/provider-policy-0JjxJfxh.d.ts +30 -0
  841. package/dist/provider-registration-O7mvATZX.d.ts +6 -0
  842. package/dist/provider-registry-CtFVQxwM.d.ts +8 -0
  843. package/dist/provider-registry-DZxCJHb2.d.ts +8 -0
  844. package/dist/provider-registry-DcUASGbX.d.ts +30 -0
  845. package/dist/provider-runtime-CrrstiDP.d.ts +359 -0
  846. package/dist/provider-self-hosted-setup-DKlGE8A7.d.ts +74 -0
  847. package/dist/provider-session.runtime-CmNY15Mr.js +9 -0
  848. package/dist/provider-session.runtime.js +1 -1
  849. package/dist/provider-stream-C2vPdKh5.d.ts +140 -0
  850. package/dist/provider-stream-shared-CslVTt39.d.ts +128 -0
  851. package/dist/provider.runtime-DJO3dwrX.js +2 -0
  852. package/dist/provider.runtime.js +1 -1
  853. package/dist/providers.runtime-CHPPEG1J.d.ts +25 -0
  854. package/dist/public-surface-loader-CgBnme5n.js +114 -0
  855. package/dist/pw-ai-UeRWGzcL.js +3029 -0
  856. package/dist/pw-role-snapshot-BtlutwlO.js +333 -0
  857. package/dist/reaction-level-DWOV-qJM.js +19 -0
  858. package/dist/reaction-runtime-api-5ZiPcbGJ.js +116 -0
  859. package/dist/realtime-transcription-Brox5yj7.d.ts +43 -0
  860. package/dist/realtime-transcription-provider-B9DWwCuO.d.ts +32 -0
  861. package/dist/realtime-transcription-provider-CGhoGie3.d.ts +28 -0
  862. package/dist/realtime-transcription-provider-Dau7Zk9V.d.ts +37 -0
  863. package/dist/realtime-transcription-provider-DcsAmQEp.js +205 -0
  864. package/dist/realtime-transcription-provider-WgtPbRJc.d.ts +5 -0
  865. package/dist/realtime-voice-C5Xiylos.d.ts +333 -0
  866. package/dist/realtime-voice-provider-DUPM9wyW.d.ts +5 -0
  867. package/dist/register-Dga1nJRL.js +2178 -0
  868. package/dist/register.agent-VIgyZLKG.js +156 -0
  869. package/dist/register.configure-C21zJ4Qb.js +16 -0
  870. package/dist/register.crestodian-Bam6mUXr.js +24 -0
  871. package/dist/register.maintenance-D9E-Hh90.js +83 -0
  872. package/dist/register.onboard-BnUcaZsb.js +113 -0
  873. package/dist/register.runtime-BcgdXzLA.d.ts +6 -0
  874. package/dist/register.runtime-BdRAp4xz.js +54 -0
  875. package/dist/register.setup-Bq-9IQdV.js +40 -0
  876. package/dist/register.subclis-DubBtg8Z.js +31 -0
  877. package/dist/register.subclis-H_qmmDFx.js +3 -0
  878. package/dist/register.subclis-core-fg3DalSH.js +273 -0
  879. package/dist/registry-DnnBulh_.d.ts +91 -0
  880. package/dist/registry-types-BQ26lhRo.d.ts +392 -0
  881. package/dist/repair-sequencing-Dn0sDvBE.js +640 -0
  882. package/dist/reply-delivery-DZGfRh-W.js +196 -0
  883. package/dist/reply-runtime-BdCPL-OF.js +11 -0
  884. package/dist/reply.runtime-BcbRKxzJ.js +2 -0
  885. package/dist/reply.runtime.js +1 -1
  886. package/dist/request-Ca681Kt1.js +54 -0
  887. package/dist/resolve-allowlist-DWjCzDq1.js +220 -0
  888. package/dist/result-fallback-classifier-BWIh0wzc.js +79 -0
  889. package/dist/root-help-8a3TWleF.js +43 -0
  890. package/dist/route-BsWREv6-.js +469 -0
  891. package/dist/route-resolution-D8FyF30I.js +274 -0
  892. package/dist/routes-BxkaJuyM.js +3602 -0
  893. package/dist/routes-DdwFgSv9.js +2 -0
  894. package/dist/run-attempt-Ca7HP1Nd.js +7704 -0
  895. package/dist/run-command-JwrnqCIB.js +2 -0
  896. package/dist/run-command-wWvfXyIf.js +23 -0
  897. package/dist/run-embedded.runtime-0QIAc8PG.js +4 -0
  898. package/dist/run-embedded.runtime.js +1 -1
  899. package/dist/run-execution-cli.runtime-LhD-S0h_.js +4 -0
  900. package/dist/run-execution-cli.runtime.js +1 -1
  901. package/dist/run-executor.runtime.js +1 -1
  902. package/dist/run-prKMVvM2.js +1162 -0
  903. package/dist/run-subagent-registry.runtime-C07jSlV2.js +2 -0
  904. package/dist/run-subagent-registry.runtime.js +1 -1
  905. package/dist/runtime-7Xhj2T8S.js +6179 -0
  906. package/dist/runtime-CXUwJU3q.js +438 -0
  907. package/dist/runtime-DeQypuDs.js +1287 -0
  908. package/dist/runtime-api-0djTIsuz.js +13 -0
  909. package/dist/runtime-api-Bz1h0p3i.js +17 -0
  910. package/dist/runtime-api-CLcJZKu2.js +13 -0
  911. package/dist/runtime-api-Ce7axAAW.js +24 -0
  912. package/dist/runtime-api-CoAsju8a.js +4 -0
  913. package/dist/runtime-api-DEuynhDr.js +3 -0
  914. package/dist/runtime-api-oZFIOS9l.js +21 -0
  915. package/dist/runtime-api.actions-DWLRlSej.js +3 -0
  916. package/dist/runtime-api.monitor-DtXB3_sf.js +6 -0
  917. package/dist/runtime-api.send-BU586hbs.js +4 -0
  918. package/dist/runtime-api.threads-Djhr5AJy.js +2 -0
  919. package/dist/runtime-channel-BIgBTs_X.js +2 -0
  920. package/dist/runtime-channel-CsUTBjYU.js +150 -0
  921. package/dist/runtime-embedded-pi.runtime-Rszd_KCt.js +2 -0
  922. package/dist/runtime-embedded-pi.runtime.js +1 -1
  923. package/dist/runtime-taskflow-Co1PrqbP.d.ts +435 -0
  924. package/dist/sanitize-outbound-2umQeW_U.js +127 -0
  925. package/dist/sdk-setup-tools-TiaNam05.js +8 -0
  926. package/dist/secrets-BmyFSkt-.js +113 -0
  927. package/dist/secrets-cli-DPAwFvtH.js +149 -0
  928. package/dist/security-audit-BR9FBcLD.js +122 -0
  929. package/dist/security-audit-RKut1lWG.js +118 -0
  930. package/dist/security-audit.runtime-Pe7YbS9P.js +2 -0
  931. package/dist/security-audit.runtime.js +1 -1
  932. package/dist/selection-Cqhmjpyl.js +16157 -0
  933. package/dist/selection-xFFMaq92.js +3 -0
  934. package/dist/send-BDHagrwl.js +1631 -0
  935. package/dist/send-BV_O_Ljd.js +192 -0
  936. package/dist/send-W-DVyil6.js +2 -0
  937. package/dist/send-jUp2-szO.js +143 -0
  938. package/dist/send.components-BR_yPtKv.js +500 -0
  939. package/dist/send.components-CK7UbpRP.js +2 -0
  940. package/dist/send.runtime-DHLfdHbS.js +2 -0
  941. package/dist/send.runtime.js +1 -1
  942. package/dist/server-DRcdRu6J.js +73 -0
  943. package/dist/server-Ddv-oAKv.js +24 -0
  944. package/dist/server-close.runtime.d.ts +1 -1
  945. package/dist/server-close.runtime.js +1 -1
  946. package/dist/server-context-9rW0Cvdw.js +2 -0
  947. package/dist/server-context-uRD5N8_D.js +955 -0
  948. package/dist/server-cron-BClEPtbv.js +2 -0
  949. package/dist/server-cron-CNGar45o.js +2989 -0
  950. package/dist/server-methods-CAMhJf7g.js +16494 -0
  951. package/dist/server-node-events-DW5DoAxk.js +596 -0
  952. package/dist/server-plugin-bootstrap-CqX4dDcN.js +70 -0
  953. package/dist/server-plugins-BIhs3eCz.js +432 -0
  954. package/dist/server-reload-handlers-54HSfSr7.js +714 -0
  955. package/dist/server-restart-sentinel-C47-O08k.js +747 -0
  956. package/dist/server-restart-sentinel-Cx-3Rzl0.js +2 -0
  957. package/dist/server-runtime-services-D-SWzUww.js +267 -0
  958. package/dist/server-runtime-services-D0GOFPFq.js +2 -0
  959. package/dist/server-startup-plugins-C8pzVvkb.js +113 -0
  960. package/dist/server-startup-post-attach-2xoGJJts.js +716 -0
  961. package/dist/server-ws-runtime-Dywo6GC-.js +349 -0
  962. package/dist/server.impl-xK22fZyJ.js +2586 -0
  963. package/dist/service-Ci8roOZn.js +1446 -0
  964. package/dist/session-binding-BsdbGBhb.js +219 -0
  965. package/dist/session-binding-D42jROcb.js +2 -0
  966. package/dist/session-kill-http-kU4rUj1_.js +121 -0
  967. package/dist/session-reset-service-DkCGElAA.js +625 -0
  968. package/dist/session-route-hmQSEijy.js +93 -0
  969. package/dist/session-status.runtime-Dsz-54he.js +2 -0
  970. package/dist/session-status.runtime.js +1 -1
  971. package/dist/session-subagent-reactivation.runtime-CYJIkiW8.js +2 -0
  972. package/dist/session-subagent-reactivation.runtime.js +1 -1
  973. package/dist/session-tab-registry-YfQve--K.js +521 -0
  974. package/dist/sessions-history-http-DeuZSSGj.js +430 -0
  975. package/dist/sessions.runtime-wAccC8Lk.js +2 -0
  976. package/dist/sessions.runtime.js +1 -1
  977. package/dist/setup-B8caUFIZ.js +586 -0
  978. package/dist/setup-CgHGdMpV.js +2 -0
  979. package/dist/setup-api-Uew7qBry.js +29 -0
  980. package/dist/setup-core-BP_fjsmA.js +174 -0
  981. package/dist/setup-onboard-configure-help-fast-path-ykLp2JqU.js +64 -0
  982. package/dist/setup-surface-BgEGrdZ3.js +320 -0
  983. package/dist/setup-surface-BvSqsFEu.js +221 -0
  984. package/dist/setup-surface-CHzMJ7_T.js +405 -0
  985. package/dist/setup-surface-DYm3Xvgt.js +288 -0
  986. package/dist/setup.finalize-BgLIjblM.js +582 -0
  987. package/dist/setup.gateway-config-BBguRpIc.js +281 -0
  988. package/dist/setup.migration-import-BY06brv-.js +200 -0
  989. package/dist/setup.migration-import-Igj5NMey.js +2 -0
  990. package/dist/shared-2-FiBN51.d.ts +115 -0
  991. package/dist/shared-client-GL2KQ2Eu.js +2 -0
  992. package/dist/shared-client-Mc7bTBoQ.js +629 -0
  993. package/dist/shared-moi7PK0C.js +121 -0
  994. package/dist/side-question-BEHswpGw.js +683 -0
  995. package/dist/simple-completion-runtime-JMnVclQ6.d.ts +73 -0
  996. package/dist/skill-tool-dispatch.runtime-O5uXeees.js +143 -0
  997. package/dist/skill-tool-dispatch.runtime.js +1 -1
  998. package/dist/slash-state-BAYUTcHl.js +2166 -0
  999. package/dist/speech-CmQkc7zi.d.ts +47 -0
  1000. package/dist/speech-core-CVkLGUxG.d.ts +36 -0
  1001. package/dist/speech-provider-22oDk8Tz.js +184 -0
  1002. package/dist/speech-provider-B73iu4fH.d.ts +5 -0
  1003. package/dist/speech-provider-BEBH8vyF.d.ts +34 -0
  1004. package/dist/speech-provider-BhCRdoMK.d.ts +8 -0
  1005. package/dist/speech-provider-Cf1PVMAj.d.ts +8 -0
  1006. package/dist/speech-provider-DdEPWhuR.d.ts +5 -0
  1007. package/dist/speech-provider-ECom8JiZ.d.ts +5 -0
  1008. package/dist/src-C8wkJgE6.js +4256 -0
  1009. package/dist/startup-context-BhLJufFU.js +313 -0
  1010. package/dist/status-C20LHDLA.js +73 -0
  1011. package/dist/status-message-CmzgS8zM.js +484 -0
  1012. package/dist/status-message.runtime-iG6qi7wn.js +6 -0
  1013. package/dist/status-message.runtime.js +1 -1
  1014. package/dist/status-subagents.runtime-D49P_RIr.js +18 -0
  1015. package/dist/status-subagents.runtime.js +1 -1
  1016. package/dist/status-text-BI7Q1z4U.js +296 -0
  1017. package/dist/status.runtime-RQes0TI5.js +2 -0
  1018. package/dist/sticker-cache-Dh4joqan.js +206 -0
  1019. package/dist/sticker-vision.runtime-5SRgpo_k.js +17 -0
  1020. package/dist/sticker-vision.runtime.js +1 -1
  1021. package/dist/stream-CYHgCxMh.d.ts +5 -0
  1022. package/dist/stream-D8Ytt_tB.d.ts +120 -0
  1023. package/dist/stream-DX9I-gkW.d.ts +19 -0
  1024. package/dist/stream-DjL6Gw2C.d.ts +16 -0
  1025. package/dist/stream-m7GKt3W2.d.ts +10 -0
  1026. package/dist/stream-wrappers-UyEQes6p.d.ts +21 -0
  1027. package/dist/subagent-announce-BEPlkjCS.js +354 -0
  1028. package/dist/subagent-announce-delivery-jcxPIfNG.js +958 -0
  1029. package/dist/subagent-control-DdMWVJXs.js +508 -0
  1030. package/dist/subagent-hooks-BsTVb6ur.js +2 -0
  1031. package/dist/subagent-hooks-CBlMBrss.js +2 -0
  1032. package/dist/subagent-hooks-Ch5oDUxb.js +116 -0
  1033. package/dist/subagent-hooks-DmUeAwY3.js +146 -0
  1034. package/dist/subagent-hooks-PNuPbYEl.js +2 -0
  1035. package/dist/subagent-hooks-api-BQ051dF0.js +23 -0
  1036. package/dist/subagent-hooks-api-DcVS0aJZ.js +22 -0
  1037. package/dist/subagent-hooks-api-Dlbc5Mtd.js +23 -0
  1038. package/dist/subagent-hooks-dwsegI07.js +230 -0
  1039. package/dist/subagent-orphan-recovery-Cl_y6Poi.js +352 -0
  1040. package/dist/subagent-registry-BosUdBW6.js +2351 -0
  1041. package/dist/subagent-registry-Bxd6vaAO.js +3 -0
  1042. package/dist/subagent-registry.runtime.js +1 -1
  1043. package/dist/subagent-session-cleanup-Bd6d93qi.js +525 -0
  1044. package/dist/subagent-spawn-ViO3XAR1.js +1164 -0
  1045. package/dist/target-id-Bje_v2Ax.js +107 -0
  1046. package/dist/targets-C4byiOgQ.js +19 -0
  1047. package/dist/targets-D-0Biv4s.d.ts +10 -0
  1048. package/dist/targets-J0MVE-dD.js +44 -0
  1049. package/dist/targets-S-Pmze3w.d.ts +10 -0
  1050. package/dist/targets-ZMEvyNa8.js +19 -0
  1051. package/dist/task-registry-control.runtime.js +1 -1
  1052. package/dist/telegram/token.js +1 -1
  1053. package/dist/testing-Dk757Ggg.js +267 -0
  1054. package/dist/thinking-policy-B31-nCQk.d.ts +5 -0
  1055. package/dist/thread-bindings-CYrmTzFY.js +232 -0
  1056. package/dist/thread-bindings-Cf7fkXxk.js +571 -0
  1057. package/dist/thread-bindings-DI6LNGbW.js +8 -0
  1058. package/dist/thread-bindings-DdmuKtVD.js +228 -0
  1059. package/dist/thread-bindings.discord-api-C01V3kFk.js +187 -0
  1060. package/dist/thread-bindings.manager--WOGVrL-.js +2 -0
  1061. package/dist/thread-bindings.manager-HzjqZNiL.js +536 -0
  1062. package/dist/thread-lifecycle-CJKTxWnQ.js +1614 -0
  1063. package/dist/token-D-FQ8AQz.js +134 -0
  1064. package/dist/tool-DTCfs0DU.js +139 -0
  1065. package/dist/tool-actions.runtime-Cb3iA3Os.js +534 -0
  1066. package/dist/tool-actions.runtime.js +1 -1
  1067. package/dist/tool-plugin-B9aQw4fj.d.ts +77 -0
  1068. package/dist/tool-resolution-CbqzNutV.js +149 -0
  1069. package/dist/tool-split-zov3PauL.d.ts +19 -0
  1070. package/dist/tools-effective-inventory-BsAax-ML.js +204 -0
  1071. package/dist/tools-invoke-http-DAqZxikd.js +67 -0
  1072. package/dist/tools-invoke-shared-CsVRemTL.js +200 -0
  1073. package/dist/transport-stream-3OMu_lV2.d.ts +42 -0
  1074. package/dist/tts-Ckj6MJNr.js +66 -0
  1075. package/dist/tui-CwwCXMCq.js +2 -0
  1076. package/dist/tui-DpJn3v2D.js +4709 -0
  1077. package/dist/tui-backend-DQ9wF5es.js +256 -0
  1078. package/dist/tui-cli-k3AYPBn3.js +37 -0
  1079. package/dist/types-D3enA0Vx.d.ts +786 -0
  1080. package/dist/types-DHSQkzyq2.d.ts +3650 -0
  1081. package/dist/types.public-DHQb4Kl9.d.ts +70 -0
  1082. package/dist/update-cli-DB5Doqld.js +3664 -0
  1083. package/dist/video-generation-runtime-Dj060lga.d.ts +21 -0
  1084. package/dist/video-model-catalog-CQ-f89xh.d.ts +16 -0
  1085. package/dist/vision-tools-Dp0JrLRi.js +1409 -0
  1086. package/dist/web-search-B0yvxuiq.js +62 -0
  1087. package/dist/web-search-provider.runtime-B-cNT-5J.js +2 -0
  1088. package/dist/web-search-provider.runtime-HhmIlk_Z.js +328 -0
  1089. package/dist/web-search-provider.runtime.js +1 -1
  1090. package/dist/webhook-targets-CW4Nl_cq.d.ts +99 -0
  1091. package/dist/xai-oauth-cZGjnEjh.js +479 -0
  1092. package/dist/xai-user-agent-DA8le6vP.js +32 -0
  1093. package/package.json +1 -1
  1094. package/dist/abort-CvuLeqr1.js +0 -277
  1095. package/dist/abort.runtime-DNoavlKn.js +0 -2
  1096. package/dist/account-inspect-ByX21U_z.js +0 -173
  1097. package/dist/accounts-B0sjdn0w.js +0 -119
  1098. package/dist/accounts-BF_AfTED.js +0 -107
  1099. package/dist/accounts-DX1c8NKM.js +0 -107
  1100. package/dist/accounts-EA2GGTep.js +0 -2
  1101. package/dist/acp-runtime-BC8oA7xM.js +0 -26
  1102. package/dist/acp-spawn-CPYDCZ95.js +0 -2
  1103. package/dist/acp-spawn-Cqi47GCL.js +0 -1275
  1104. package/dist/acp-stateful-target-driver-CcWMRAQ2.js +0 -89
  1105. package/dist/action-kill-CZrPfOIS.js +0 -33
  1106. package/dist/action-runtime-DuhVKLRJ.js +0 -469
  1107. package/dist/action-runtime-api-BKaUWi7b.js +0 -2
  1108. package/dist/action-send-_NpIHMwj.js +0 -39
  1109. package/dist/action-spawn-Dymn4rUo.js +0 -47
  1110. package/dist/actions-Bk_WaEAa.js +0 -161
  1111. package/dist/actions.runtime-Hh7HYOlJ.js +0 -5
  1112. package/dist/agent-CQzGVmy1.js +0 -2
  1113. package/dist/agent-ClmYyW81.js +0 -3
  1114. package/dist/agent-command-DbU2fo-p.js +0 -1367
  1115. package/dist/agent-components.runtime-BpXJmJXk.js +0 -10
  1116. package/dist/agent-harness-D8c6PLE_.d.ts +0 -146
  1117. package/dist/agent-harness-runtime-AHXS4Jj3.d.ts +0 -691
  1118. package/dist/agent-harness-runtime-TzbK9YTz.js +0 -180
  1119. package/dist/agent-harness-task-runtime-CZWJEsKk.js +0 -140
  1120. package/dist/agent-runner-execution-CmHT78Vr.js +0 -1713
  1121. package/dist/agent-runner-utils-B0i1PW18.js +0 -266
  1122. package/dist/agent-runner.runtime-B6Ah_MlB.js +0 -3455
  1123. package/dist/agent-runtime-BOMioAX6.js +0 -229
  1124. package/dist/agent-via-gateway-DfxQCPit.js +0 -463
  1125. package/dist/agents.commands.add-CszEBxoJ.js +0 -304
  1126. package/dist/agents.commands.delete-ulnJ7RH9.js +0 -128
  1127. package/dist/api-6SmEQDkK.js +0 -134
  1128. package/dist/api-B7QdoMF5.js +0 -2
  1129. package/dist/api-BBgby6ck.js +0 -639
  1130. package/dist/api-DwKV-xfM.d.ts +0 -52
  1131. package/dist/api-RfjCqA7Y.js +0 -6
  1132. package/dist/api-VDkFlOiv.js +0 -2
  1133. package/dist/api-We4xoZFr.js +0 -3
  1134. package/dist/apply-Cgtzilem.js +0 -41
  1135. package/dist/apply-Csp3U8cA.js +0 -54
  1136. package/dist/approval-handler.runtime-aQaSBbpF.js +0 -130
  1137. package/dist/assistant-UMyirSUH.js +0 -291
  1138. package/dist/attachment-normalize-BupK-_Ox.js +0 -225
  1139. package/dist/attempt-execution-oLlyFjHk.js +0 -558
  1140. package/dist/attempt-execution.runtime-Cq8RE0x_.js +0 -3
  1141. package/dist/attempt-execution.shared-DyBzUJGB.js +0 -38
  1142. package/dist/attempt.prompt-helpers-CVBP6t5J.js +0 -475
  1143. package/dist/attempt.tool-run-context-UU1BUUC9.js +0 -2094
  1144. package/dist/auth-BDaK_y-g.js +0 -541
  1145. package/dist/banner-VbID973v.js +0 -2
  1146. package/dist/banner-W77piyz6.js +0 -397
  1147. package/dist/binding-routing-DahKvjr3.js +0 -113
  1148. package/dist/binding-targets-C3mqUdUT.js +0 -121
  1149. package/dist/bot-DonUKEuy.js +0 -7894
  1150. package/dist/bot-deps-CroXwZeM.js +0 -747
  1151. package/dist/bot-deps-DKoy3x0l.js +0 -2
  1152. package/dist/bot-message-context.runtime-BI_zyqDu.js +0 -7
  1153. package/dist/bot-message-context.session.runtime-Cpy2H9Ez.js +0 -12
  1154. package/dist/bot-native-commands.delivery.runtime-CsHg3h1O.js +0 -4
  1155. package/dist/bot-native-commands.runtime-rmoBpwZY.js +0 -13
  1156. package/dist/bridge-server-BmDNWgHD.js +0 -113
  1157. package/dist/browser-cli-BQLwmLw3.js +0 -2
  1158. package/dist/browser-cli-CHHIN-of.js +0 -230
  1159. package/dist/browser-cli-actions-input-DBZ7uwag.js +0 -473
  1160. package/dist/browser-cli-actions-observe-BdH2-WTk.js +0 -81
  1161. package/dist/browser-cli-debug-C82Apbgb.js +0 -137
  1162. package/dist/browser-cli-inspect-CrO1qca7.js +0 -104
  1163. package/dist/browser-cli-manage-Dgm1IUZT.js +0 -443
  1164. package/dist/browser-cli-resize-DqgMr3DY.js +0 -26
  1165. package/dist/browser-cli-shared-BTnXMCKA.js +0 -50
  1166. package/dist/browser-cli-state-DT3bVOtg.js +0 -337
  1167. package/dist/browser-control-auth-BRwKCt45.js +0 -2
  1168. package/dist/browser-profiles-DhGtxK9v.js +0 -2
  1169. package/dist/browser-runtime-BL6b-qtr.js +0 -384
  1170. package/dist/build-33AnG55F.js +0 -257
  1171. package/dist/call-dct8amtn.d.ts +0 -43
  1172. package/dist/capability-cli-D-KoVyyP.js +0 -1782
  1173. package/dist/channel-0tgrzPag.js +0 -867
  1174. package/dist/channel-4g20sJKJ.d.ts +0 -104
  1175. package/dist/channel-6tG8jWsw.d.ts +0 -8
  1176. package/dist/channel-7OEbQ8xS.d.ts +0 -6
  1177. package/dist/channel-7rVapSdN.d.ts +0 -8
  1178. package/dist/channel-B1fZN0iI.d.ts +0 -427
  1179. package/dist/channel-B5Q7fRiN.js +0 -1134
  1180. package/dist/channel-BEg_0h_C.d.ts +0 -12
  1181. package/dist/channel-BNp1J_eZ.js +0 -376
  1182. package/dist/channel-BP6RWm-M.d.ts +0 -47
  1183. package/dist/channel-BRjqrJfj.d.ts +0 -49
  1184. package/dist/channel-BUoyH_tP.d.ts +0 -114
  1185. package/dist/channel-BVBG4Tmn.d.ts +0 -28
  1186. package/dist/channel-Bap23sAx.js +0 -481
  1187. package/dist/channel-BhZ7x0SB.d.ts +0 -26
  1188. package/dist/channel-Bxod9CjX.js +0 -508
  1189. package/dist/channel-C6LASGjS.js +0 -808
  1190. package/dist/channel-COWZEKCw.js +0 -1249
  1191. package/dist/channel-CRAIreZ3.js +0 -238
  1192. package/dist/channel-CVY2hnJh.js +0 -1556
  1193. package/dist/channel-CgKdh_Jd.d.ts +0 -106
  1194. package/dist/channel-Cxo62btA.js +0 -1496
  1195. package/dist/channel-D5SzoyWI.js +0 -562
  1196. package/dist/channel-DE4vIsYF.d.ts +0 -64
  1197. package/dist/channel-DOdRHxJg.js +0 -1777
  1198. package/dist/channel-DZygtXdy.js +0 -362
  1199. package/dist/channel-DfhOnM71.d.ts +0 -7
  1200. package/dist/channel-DhZiptRe.d.ts +0 -8
  1201. package/dist/channel-DqPZviVV.js +0 -2126
  1202. package/dist/channel-Dssy3NQA.js +0 -740
  1203. package/dist/channel-actions.runtime-CDaMC9SV.js +0 -265
  1204. package/dist/channel-buMY8xZQ.d.ts +0 -7
  1205. package/dist/channel-core-CBhC_PNR.js +0 -5
  1206. package/dist/channel-core-x9b94azO.d.ts +0 -6
  1207. package/dist/channel-cvGHll3-.js +0 -955
  1208. package/dist/channel-entry-contract-BfZdcgTS.d.ts +0 -112
  1209. package/dist/channel-inbound-CNdyzYlz.js +0 -80
  1210. package/dist/channel-l8amaSI9.js +0 -653
  1211. package/dist/channel-plugin-runtime-CvcVGjj4.js +0 -998
  1212. package/dist/channel-plugin-runtime-D5n9A86n.d.ts +0 -7
  1213. package/dist/channel-runtime-BAbg8Dcv.js +0 -408
  1214. package/dist/channel-sWtDTVwd.d.ts +0 -14
  1215. package/dist/channel.runtime-9o-iF8zm.js +0 -2528
  1216. package/dist/channel.runtime-BotO7RD0.js +0 -21009
  1217. package/dist/channel.runtime-BrDb4cP8.js +0 -88
  1218. package/dist/channel.runtime-C1cLfrDt.js +0 -254
  1219. package/dist/channel.runtime-CTM3VO2E.js +0 -4
  1220. package/dist/channel.runtime-CnodqvCJ.js +0 -733
  1221. package/dist/channel.runtime-Dmr8503H.js +0 -1008
  1222. package/dist/channel.runtime-DqzR3Gd9.js +0 -109
  1223. package/dist/channel.runtime-LOf0PHu_.js +0 -652
  1224. package/dist/channel.setup-1leD5F5B.js +0 -343
  1225. package/dist/channel.setup-D9UyWhXM.js +0 -1098
  1226. package/dist/channel.setup-DkVld-9Z.d.ts +0 -7
  1227. package/dist/channel.setup-DxT4prSl.d.ts +0 -8
  1228. package/dist/channel.setup-IHNFkdUD.js +0 -10
  1229. package/dist/channel.setup-YwXqilBB.d.ts +0 -6
  1230. package/dist/chat-DrycI6KH.js +0 -2666
  1231. package/dist/chrome-CgGY9FsG.js +0 -1503
  1232. package/dist/cli-backend-B3aNoTD4.d.ts +0 -5
  1233. package/dist/cli-backend-BVUFOLXj.d.ts +0 -5
  1234. package/dist/cli-compaction-DPmSHZx7.js +0 -347
  1235. package/dist/cli-metadata-eFfCoGmY.js +0 -22
  1236. package/dist/cli-nmYmL8lb.js +0 -1341
  1237. package/dist/cli-runner-BTOYShgV.js +0 -2
  1238. package/dist/cli-runner-DgXAxJVr.js +0 -540
  1239. package/dist/cli-runner.runtime-BeMsKcaS.js +0 -4
  1240. package/dist/cli-runner.runtime-DMD8X8-h.js +0 -3
  1241. package/dist/cli-shared-BAuePn3e.d.ts +0 -20
  1242. package/dist/cli-v6XF4hHd.d.ts +0 -20
  1243. package/dist/client-CKLZqMCW.js +0 -650
  1244. package/dist/client-adapter-B_0W-6Fx.js +0 -897
  1245. package/dist/client-factory-CdMLQFeA.js +0 -9
  1246. package/dist/command-auth-BxYfnQzs.js +0 -135
  1247. package/dist/command-execution-startup-CiV5yFW1.js +0 -87
  1248. package/dist/command-handlers-BAWROGlt.js +0 -1609
  1249. package/dist/command-registry-BqTMebZr.js +0 -4
  1250. package/dist/command-registry-C2Y8GeJl.js +0 -9
  1251. package/dist/command-registry-core-Bi-d0-WH.js +0 -110
  1252. package/dist/command-status.runtime-BSXHZzOq.js +0 -90
  1253. package/dist/commands-Z6AfrJar.d.ts +0 -113
  1254. package/dist/commands-acp-BYWOkjAx.js +0 -74
  1255. package/dist/commands-compact.runtime-Cyb7Pu12.js +0 -10
  1256. package/dist/commands-handlers.runtime-DdJ20XTn.js +0 -6154
  1257. package/dist/commands-status-6uhiUw13.js +0 -3
  1258. package/dist/commands-status-BJ5AnkOG.js +0 -16
  1259. package/dist/commands-status.runtime-6uhiUw13.js +0 -3
  1260. package/dist/commands-subagents-control.runtime-DZrrLjSk.js +0 -2
  1261. package/dist/commands-subagents-control.runtime-_R3XgUpp.js +0 -3
  1262. package/dist/commands-system-prompt-CHGtJPnx.js +0 -162
  1263. package/dist/commands-system-prompt-CM23NlDu.js +0 -2
  1264. package/dist/commands.runtime-DUEbtHG1.js +0 -176
  1265. package/dist/compact-BA6lVtLj.js +0 -480
  1266. package/dist/compact-BfC-utPW.js +0 -1141
  1267. package/dist/compact.runtime-BRL2wCqh.js +0 -12
  1268. package/dist/completion-cli-CYKoLZLl.js +0 -315
  1269. package/dist/computer-use-BWgYktaW.js +0 -367
  1270. package/dist/config-B_HanwOV.js +0 -373
  1271. package/dist/config-DhGtxK9v.js +0 -2
  1272. package/dist/config-cli-CI5UtWr-.js +0 -1633
  1273. package/dist/config-mutations-D2GtlLMA.js +0 -159
  1274. package/dist/config-schema-BKOfHz23.d.ts +0 -20
  1275. package/dist/configure-CuPwIiwW.js +0 -3
  1276. package/dist/configure.commands-BWpwrafi.js +0 -1251
  1277. package/dist/configure.commands-qzipmoDP.js +0 -2
  1278. package/dist/context-engine-host-compat-D246ZMR2.js +0 -2
  1279. package/dist/context-engine-host-compat-KMl-oqCw.js +0 -288
  1280. package/dist/context-engine-lifecycle-DvEDHkQz.js +0 -1274
  1281. package/dist/contracts-testkit-Ym3exIK5.d.ts +0 -145
  1282. package/dist/control-auth-B_RiUaHt.js +0 -114
  1283. package/dist/control-service-DcQFx6_O.js +0 -145
  1284. package/dist/control-ui/assets/agents-Bc8cIfWF.js +0 -1008
  1285. package/dist/control-ui/assets/channel-config-extras-DQru4ECs.js +0 -2
  1286. package/dist/control-ui/assets/channels-BfncerPV.js +0 -367
  1287. package/dist/control-ui/assets/cron-DHLcga_r.js +0 -1013
  1288. package/dist/control-ui/assets/debug-DprDzDn1.js +0 -97
  1289. package/dist/control-ui/assets/index-XTZKpkBL.js +0 -7370
  1290. package/dist/control-ui/assets/instances-D1_lOT13.js +0 -57
  1291. package/dist/control-ui/assets/logs-DINx8syb.js +0 -74
  1292. package/dist/control-ui/assets/nodes-BH4XOUmD.js +0 -436
  1293. package/dist/control-ui/assets/sessions-D5Xt25SY.js +0 -399
  1294. package/dist/control-ui/assets/skills-BmayrBHY.js +0 -314
  1295. package/dist/control-ui/assets/skills-shared-CHaYSJ_s.js +0 -11
  1296. package/dist/conversation-binding-runtime-_jhzwiiC.js +0 -4
  1297. package/dist/conversation-runtime-F5kCN0Sj.js +0 -31
  1298. package/dist/core-BpeKfqbI.d.ts +0 -224
  1299. package/dist/core-DE71gncT.js +0 -282
  1300. package/dist/core-api-B4L5WkKc.js +0 -5
  1301. package/dist/core-api-Q9oM19yY.js +0 -2
  1302. package/dist/crestodian-DLpxYmzP.js +0 -55
  1303. package/dist/daocore-runtime-BnYtDbMC.d.ts +0 -151
  1304. package/dist/daocore-tools-wNTIZIO3.js +0 -11727
  1305. package/dist/dashboard-SHmcCcnT.js +0 -263
  1306. package/dist/delivery-BA4di5Tw.js +0 -1002
  1307. package/dist/dev-Cr2Dhgoc.js +0 -97
  1308. package/dist/dialogue-xI4qAuLY.js +0 -37
  1309. package/dist/dir-fetch-tool-6d4yElM4.js +0 -565
  1310. package/dist/dir-list-tool-D2k-hax6.js +0 -100
  1311. package/dist/direct-dm-eGyFHTug.js +0 -64
  1312. package/dist/directive-handling.fast-lane-Ci1l6GN_.js +0 -68
  1313. package/dist/directive-handling.impl-Co3i_YQ4.js +0 -818
  1314. package/dist/directive-handling.impl-DHKC0TrU.js +0 -2
  1315. package/dist/directive-handling.model-selection-bv5KrHOw.js +0 -122
  1316. package/dist/directive-handling.persist.runtime-CPLg-YHh.js +0 -263
  1317. package/dist/dispatch-CdvERWY-.js +0 -1640
  1318. package/dist/dispatch-acp-transcript.runtime-BhQo1XEg.js +0 -40
  1319. package/dist/dispatch-acp.runtime-Dtiu2EgE.js +0 -18
  1320. package/dist/doctor-BzsPHvLP.js +0 -2
  1321. package/dist/doctor-Cg4FWB15.js +0 -6
  1322. package/dist/doctor-config-flow-SYjHcyu4.js +0 -1741
  1323. package/dist/doctor-core-checks-75amkN-e.js +0 -2
  1324. package/dist/doctor-core-checks-B1fu7KDm.js +0 -573
  1325. package/dist/doctor-health-contributions-BMdJKStr.js +0 -696
  1326. package/dist/doctor-health-vLyDQqfq.js +0 -65
  1327. package/dist/doctor-lint-DfvFyBgL.js +0 -94
  1328. package/dist/doctor-prompter-C-dTuOnw.js +0 -58
  1329. package/dist/doctor-state-integrity-Cv-ECLuv.js +0 -1231
  1330. package/dist/dynamic-tools-BG8ijDFH.js +0 -486
  1331. package/dist/embedded-backend-bRfALCWz.js +0 -579
  1332. package/dist/embedded-gateway-stub.runtime-CAh3IhtZ.js +0 -12
  1333. package/dist/embedding-provider-B7kg9IhC.d.ts +0 -16
  1334. package/dist/embedding-provider-jB1zjkZy.d.ts +0 -65
  1335. package/dist/embedding-provider-sea2CddJ.d.ts +0 -21
  1336. package/dist/exec-approvals-BBa28Sct.js +0 -149
  1337. package/dist/file-fetch-tool-DRIsI7eQ.js +0 -124
  1338. package/dist/file-write-tool-vTMh7eW6.js +0 -127
  1339. package/dist/format-nrhTS41q.js +0 -1145
  1340. package/dist/gateway-cli-CCgw11Ik.js +0 -435
  1341. package/dist/gateway-method-runtime-BNAVGCC_.js +0 -21
  1342. package/dist/gateway-runtime-DGdJumdK.d.ts +0 -163
  1343. package/dist/gemini-cli-provider-Bbpd5lx5.d.ts +0 -6
  1344. package/dist/get-reply-DGFCqKen.js +0 -4689
  1345. package/dist/get-reply-from-config.runtime-l7NTyCh5.js +0 -2
  1346. package/dist/graph-users-CGpakgek.js +0 -1419
  1347. package/dist/group-access-D095jQ78.js +0 -112
  1348. package/dist/handle-action.guild-admin-B3pALmMq.js +0 -288
  1349. package/dist/harness-Bs-sPbOD.js +0 -61
  1350. package/dist/health-4gWMIKHu.js +0 -4
  1351. package/dist/heartbeat-runner-Sky_Rjw7.js +0 -5
  1352. package/dist/heartbeat-runner.runtime-CRZ-NbrW.js +0 -4
  1353. package/dist/help-B68Ov4LD.js +0 -136
  1354. package/dist/hooks-DWSdYas_.js +0 -534
  1355. package/dist/http-registry-CHKiFHCC.d.ts +0 -23
  1356. package/dist/image-generation-runtime-p-dfXZTf.d.ts +0 -21
  1357. package/dist/inbound-direct-dm-runtime-5z3W9Oqn.js +0 -2
  1358. package/dist/inbound-reply-dispatch-D7NeeFC1.js +0 -148
  1359. package/dist/index-CKAHTIU4.d.ts +0 -3971
  1360. package/dist/init-BXF3o80o.js +0 -59
  1361. package/dist/inline-buttons-DsHwKEVU.js +0 -40
  1362. package/dist/interactive-dispatch-BsKWomnh.d.ts +0 -143
  1363. package/dist/interactive-dispatch-CItEYOu3.d.ts +0 -56
  1364. package/dist/internal-events-TAN9dPEj.js +0 -90
  1365. package/dist/isolated-agent-CTrVGI6q.js +0 -2
  1366. package/dist/isolated-agent-DPyibJ8B.js +0 -1118
  1367. package/dist/lifecycle-BwTg0Djv.js +0 -571
  1368. package/dist/list.probe-BpM4PKu7.js +0 -449
  1369. package/dist/list.status-command-BbcloYBd.js +0 -789
  1370. package/dist/llm-slug-generator-UG7Bhj_y.js +0 -78
  1371. package/dist/loader-D6z2PEKl.d.ts +0 -142
  1372. package/dist/local-dispatch.runtime-CU6Y-BDa.js +0 -9
  1373. package/dist/manager-C3AVKMSl.d.ts +0 -356
  1374. package/dist/manager.runtime-Da5LiiaQ.js +0 -2714
  1375. package/dist/markdown-to-line-BnESmsY4.js +0 -811
  1376. package/dist/mcp-http-C38KS7On.js +0 -2
  1377. package/dist/mcp-http-CcGhAZcF.js +0 -555
  1378. package/dist/media-understanding-provider-BCz5dVl6.js +0 -339
  1379. package/dist/memory-core-host-engine-storage-sWQlfr8J.d.ts +0 -54
  1380. package/dist/memory-embedding-adapter-BrGY0ecB.d.ts +0 -5
  1381. package/dist/message-actions-CQURSOZH.js +0 -145
  1382. package/dist/message-handler-C2U3bt-X.js +0 -1715
  1383. package/dist/message-handler-CwZfuHhP.js +0 -384
  1384. package/dist/message-handler.preflight-Cosa3kg0.js +0 -1125
  1385. package/dist/message-handler.process-BlKFMYXw.js +0 -1484
  1386. package/dist/migration-hAtbc95i.d.ts +0 -45
  1387. package/dist/model-B8M2deNL.js +0 -74
  1388. package/dist/model-Ck-vNyGd.d.ts +0 -33
  1389. package/dist/model-selection-v2wQWgsT.js +0 -272
  1390. package/dist/models-B7IiQBWY.js +0 -104
  1391. package/dist/models-CnWFsPX6.d.ts +0 -24
  1392. package/dist/models-DMNzBNgt.js +0 -2
  1393. package/dist/models-cli-CQaOg02d.js +0 -256
  1394. package/dist/monitor-Bd9kOezJ.js +0 -1370
  1395. package/dist/monitor-Cy6D6MyS.js +0 -715
  1396. package/dist/monitor-DStY23C4.js +0 -834
  1397. package/dist/monitor-DnF8eltK.js +0 -1657
  1398. package/dist/monitor-DrFJ63I1.js +0 -4377
  1399. package/dist/monitor-J8jOsDaJ.js +0 -60
  1400. package/dist/monitor-auth-DKkbt_CR.js +0 -179
  1401. package/dist/monitor-jp3H9Ri_.js +0 -2
  1402. package/dist/monitor-polling.runtime-DPCAacPc.js +0 -883
  1403. package/dist/monitor-tBNmyf1s.js +0 -2788
  1404. package/dist/monitor-webhook.runtime-BnjEsLRS.js +0 -387
  1405. package/dist/monitor.account-Gh8FuMEq.js +0 -5233
  1406. package/dist/monitor.runtime-Bdh6dxyq.js +0 -2
  1407. package/dist/monitor.webhook-BosT2ylg.js +0 -180
  1408. package/dist/node-cli-sessions-B0_DtIxz.js +0 -1228
  1409. package/dist/onboard-CiTp3HuT.js +0 -733
  1410. package/dist/onboard-helpers-6NgX4RkW.js +0 -251
  1411. package/dist/onboard-helpers-BwxJT_0T.js +0 -6
  1412. package/dist/onboard-remote-CNCFouj7.js +0 -212
  1413. package/dist/onboard-remote-DXzWgH_H.js +0 -2
  1414. package/dist/onboard-skills-Dx58zrXg.js +0 -160
  1415. package/dist/onboard-skills-qaynAMqw.js +0 -2
  1416. package/dist/openai-codex-provider-Bj9cyh4I.d.ts +0 -5
  1417. package/dist/openai-http-Dp0cp01u.js +0 -824
  1418. package/dist/openai-provider-Dm3YkkWf.d.ts +0 -5
  1419. package/dist/openresponses-http-acbxr5UW.js +0 -1173
  1420. package/dist/operations-BZVuEl9E.js +0 -805
  1421. package/dist/outbound-adapter-BKGzT1Rl.js +0 -543
  1422. package/dist/outbound-session-route-mWVuRF9I.js +0 -45
  1423. package/dist/outbound.runtime-BTjY78St.js +0 -2
  1424. package/dist/pi-embedded-CFP2IrYS.js +0 -3796
  1425. package/dist/pi-embedded-D8caT0Nm.js +0 -4
  1426. package/dist/pi-embedded.runtime-eBik36nq.js +0 -4
  1427. package/dist/pi-tools-DOiFN8QJ.js +0 -2413
  1428. package/dist/plan-Cq2-YWkv.js +0 -112
  1429. package/dist/plan-DZacZ3Zv.js +0 -81
  1430. package/dist/plugin-BcNkVMQf.d.ts +0 -17
  1431. package/dist/plugin-app-cache-key-CBK84hKp.js +0 -46
  1432. package/dist/plugin-enabled-CMfz3hfi.js +0 -233
  1433. package/dist/plugin-entry-BS5QKDoz.d.ts +0 -47
  1434. package/dist/plugin-k9ChkvvX.js +0 -12396
  1435. package/dist/plugin-registration-DzPoDboh.js +0 -88
  1436. package/dist/plugin-runtime-BNGhLQ-_.d.ts +0 -117
  1437. package/dist/plugin-service-BynKHNHj.d.ts +0 -24
  1438. package/dist/plugin-service-Ckp9CgP5.js +0 -1229
  1439. package/dist/policy-CBa8yH5k.js +0 -680
  1440. package/dist/policy-Dlam-IbU.js +0 -138
  1441. package/dist/prepare.runtime-B8h04--2.js +0 -732
  1442. package/dist/preview-warnings-DPDK9HPk.js +0 -392
  1443. package/dist/probe-Bts3wK7l.js +0 -682
  1444. package/dist/probe-ByHrOECy.js +0 -47
  1445. package/dist/probe-CXqCx5yV.js +0 -2204
  1446. package/dist/probe-fhhJ0LMx.js +0 -2
  1447. package/dist/program-DfNLP_PI.js +0 -131
  1448. package/dist/prompt-overlay-qKGGXVs-.d.ts +0 -23
  1449. package/dist/provider-CeG5mirD.js +0 -8735
  1450. package/dist/provider-D_TXf9b1.js +0 -152
  1451. package/dist/provider-Fb0fhEC5.js +0 -32
  1452. package/dist/provider-api-key-auth-BIph5btg.d.ts +0 -27
  1453. package/dist/provider-auth-result-BFvMZrH6.d.ts +0 -21
  1454. package/dist/provider-catalog-runtime-Du74RUel.d.ts +0 -23
  1455. package/dist/provider-catalog-shared-B3nN3sf2.d.ts +0 -62
  1456. package/dist/provider-dispatcher-DQ0FP7Oj.js +0 -22
  1457. package/dist/provider-hook-runtime-CRpS8VJ_.d.ts +0 -61
  1458. package/dist/provider-model-shared-GrPEK3SY.d.ts +0 -143
  1459. package/dist/provider-models-iUJVn9QI.d.ts +0 -12
  1460. package/dist/provider-policy-DliVEM__.d.ts +0 -30
  1461. package/dist/provider-registration-BxzmE1yB.d.ts +0 -6
  1462. package/dist/provider-registry-B4AQXjYK.d.ts +0 -8
  1463. package/dist/provider-registry-BHyB46kI.d.ts +0 -30
  1464. package/dist/provider-registry-CnfpUSqh.d.ts +0 -8
  1465. package/dist/provider-runtime-D3j0VBbF.d.ts +0 -359
  1466. package/dist/provider-self-hosted-setup-_11XAmRH.d.ts +0 -74
  1467. package/dist/provider-session.runtime-CIMJ-7ay.js +0 -9
  1468. package/dist/provider-stream-mWxYXsAm.d.ts +0 -140
  1469. package/dist/provider-stream-shared-QayId-fm.d.ts +0 -128
  1470. package/dist/provider-xNaUQ5Lv.js +0 -32
  1471. package/dist/provider.runtime-CGsYbZGk.js +0 -2
  1472. package/dist/providers.runtime-fmZQlSRt.d.ts +0 -25
  1473. package/dist/public-surface-loader-CuVkM64A.js +0 -114
  1474. package/dist/pw-ai-BDGftH9e.js +0 -3029
  1475. package/dist/pw-role-snapshot-C_P091Iv.js +0 -333
  1476. package/dist/reaction-level-DKxiNfWB.js +0 -19
  1477. package/dist/reaction-runtime-api-TY4aPHui.js +0 -116
  1478. package/dist/realtime-transcription-CmRx7wX7.d.ts +0 -43
  1479. package/dist/realtime-transcription-provider-BNca2pAl.js +0 -205
  1480. package/dist/realtime-transcription-provider-Csl2NRiB.d.ts +0 -5
  1481. package/dist/realtime-transcription-provider-CtUTdTS4.d.ts +0 -37
  1482. package/dist/realtime-transcription-provider-DKd69ns6.d.ts +0 -28
  1483. package/dist/realtime-transcription-provider-DPj1VZIg.d.ts +0 -32
  1484. package/dist/realtime-voice-CVgV9cqF.d.ts +0 -333
  1485. package/dist/realtime-voice-provider-CmtxwZon.d.ts +0 -5
  1486. package/dist/register-DLjqO2vR.js +0 -2178
  1487. package/dist/register.agent-FV7a6yzo.js +0 -156
  1488. package/dist/register.configure-DrkSyKW3.js +0 -16
  1489. package/dist/register.crestodian-CQGAa8z2.js +0 -24
  1490. package/dist/register.maintenance-tocHfiS3.js +0 -83
  1491. package/dist/register.onboard-BomHnBGE.js +0 -113
  1492. package/dist/register.runtime-6AmV3Vgs.js +0 -54
  1493. package/dist/register.runtime-CSz0gVBB.d.ts +0 -6
  1494. package/dist/register.setup-ENYtNAA5.js +0 -40
  1495. package/dist/register.subclis-BC6TefAM.js +0 -31
  1496. package/dist/register.subclis-DZdEZgSS.js +0 -3
  1497. package/dist/register.subclis-core-C-EfowrU.js +0 -273
  1498. package/dist/registry-VitXYFE8.d.ts +0 -91
  1499. package/dist/registry-types-C4eAzEgQ.d.ts +0 -392
  1500. package/dist/repair-sequencing-l8dFaytn.js +0 -640
  1501. package/dist/reply-delivery-DdeUWVuk.js +0 -196
  1502. package/dist/reply-runtime-Bd91JEZL.js +0 -11
  1503. package/dist/reply.runtime-l7NTyCh5.js +0 -2
  1504. package/dist/request-BY_4UukN.js +0 -54
  1505. package/dist/resolve-allowlist-C4lmxl4V.js +0 -220
  1506. package/dist/result-fallback-classifier-XORMMp30.js +0 -79
  1507. package/dist/root-help-CTW0Wyrf.js +0 -43
  1508. package/dist/route-dOf1WMkJ.js +0 -469
  1509. package/dist/route-resolution-BddNYZEI.js +0 -274
  1510. package/dist/routes-D0xw72Lf.js +0 -3602
  1511. package/dist/routes-TXSPQFWS.js +0 -2
  1512. package/dist/run-DpvUuaWB.js +0 -1162
  1513. package/dist/run-attempt-Bet0PiSc.js +0 -7704
  1514. package/dist/run-command-C5vMVqMt.js +0 -23
  1515. package/dist/run-command-pNDd7NqP.js +0 -2
  1516. package/dist/run-embedded.runtime-CBZV6YWj.js +0 -4
  1517. package/dist/run-execution-cli.runtime-DTQLV8tA.js +0 -4
  1518. package/dist/run-subagent-registry.runtime-DJCvSdhY.js +0 -2
  1519. package/dist/runtime-CNXeG8vX.js +0 -1287
  1520. package/dist/runtime-DEOSWxv9.js +0 -438
  1521. package/dist/runtime-api-BCM7T4WV.js +0 -17
  1522. package/dist/runtime-api-BTnMvj8L.js +0 -13
  1523. package/dist/runtime-api-By6LEySM.js +0 -3
  1524. package/dist/runtime-api-Cd0b5LPQ.js +0 -4
  1525. package/dist/runtime-api-CtuDiikz.js +0 -21
  1526. package/dist/runtime-api-DjySILXC.js +0 -13
  1527. package/dist/runtime-api-XJTq_pyQ.js +0 -24
  1528. package/dist/runtime-api.actions-BmsSg8Ai.js +0 -3
  1529. package/dist/runtime-api.monitor-DSk7Pd5H.js +0 -6
  1530. package/dist/runtime-api.send-D3sPncy9.js +0 -4
  1531. package/dist/runtime-api.threads-BK9cB4L1.js +0 -2
  1532. package/dist/runtime-channel--Wjr2ePx.js +0 -150
  1533. package/dist/runtime-channel-WdTa9hHZ.js +0 -2
  1534. package/dist/runtime-embedded-pi.runtime-BNYBvaxo.js +0 -2
  1535. package/dist/runtime-r3jS5wSq.js +0 -6179
  1536. package/dist/runtime-taskflow-DMBY6o56.d.ts +0 -435
  1537. package/dist/sanitize-outbound-D6IBCCpn.js +0 -127
  1538. package/dist/sdk-setup-tools-DcDrd8tW.js +0 -8
  1539. package/dist/secrets-OV1uTwRt.js +0 -113
  1540. package/dist/secrets-cli-llC7t41S.js +0 -149
  1541. package/dist/security-audit-BM_fypcl.js +0 -118
  1542. package/dist/security-audit-CQ2yKgF8.js +0 -122
  1543. package/dist/security-audit.runtime-CRgJUegH.js +0 -2
  1544. package/dist/selection-DkJ7MaPC.js +0 -16157
  1545. package/dist/selection-LeUiOSn0.js +0 -3
  1546. package/dist/send-C0ZHzB6o.js +0 -1631
  1547. package/dist/send-CXL3cM-w.js +0 -192
  1548. package/dist/send-CuDA29HM.js +0 -2
  1549. package/dist/send-D7qhwK7Z.js +0 -143
  1550. package/dist/send.components-BNeg1zrc.js +0 -2
  1551. package/dist/send.components-DwRyC_Hc.js +0 -500
  1552. package/dist/send.runtime-DBIUdxpO.js +0 -2
  1553. package/dist/server-DGcm6Swr.js +0 -24
  1554. package/dist/server-DPvleC-x.js +0 -73
  1555. package/dist/server-context-BWBM4f-_.js +0 -955
  1556. package/dist/server-context-CFgwcLlu.js +0 -2
  1557. package/dist/server-cron-C1kChsjw.js +0 -2989
  1558. package/dist/server-cron-CS1EP5Li.js +0 -2
  1559. package/dist/server-methods-BcIlC8iD.js +0 -16494
  1560. package/dist/server-node-events-BAZCvZOy.js +0 -596
  1561. package/dist/server-plugin-bootstrap-cQUi21Uu.js +0 -70
  1562. package/dist/server-plugins-BRFre223.js +0 -432
  1563. package/dist/server-reload-handlers-DfcsAX-5.js +0 -714
  1564. package/dist/server-restart-sentinel-CFX5zQkM.js +0 -747
  1565. package/dist/server-restart-sentinel-DUvs77Q0.js +0 -2
  1566. package/dist/server-runtime-services-0vm5XmvV.js +0 -2
  1567. package/dist/server-runtime-services-CLz_vkLy.js +0 -267
  1568. package/dist/server-startup-plugins-CPXqqIRV.js +0 -113
  1569. package/dist/server-startup-post-attach-BkNe1Z6g.js +0 -716
  1570. package/dist/server-ws-runtime-rcJeRHFO.js +0 -349
  1571. package/dist/server.impl-a6knQ-N8.js +0 -2586
  1572. package/dist/service-H-BcELwS.js +0 -1446
  1573. package/dist/session-binding-BQliaqL7.js +0 -2
  1574. package/dist/session-binding-DPvZil_F.js +0 -219
  1575. package/dist/session-kill-http-DJMipluP.js +0 -121
  1576. package/dist/session-reset-service-Dn9FU5wA.js +0 -625
  1577. package/dist/session-route-JLWNmJxD.js +0 -93
  1578. package/dist/session-status.runtime-D0OptHcW.js +0 -2
  1579. package/dist/session-subagent-reactivation.runtime-BUmf1vNS.js +0 -2
  1580. package/dist/session-tab-registry-CoBvJVRj.js +0 -521
  1581. package/dist/sessions-history-http-B8CkLDAn.js +0 -430
  1582. package/dist/sessions.runtime-DbNqS_Gy.js +0 -2
  1583. package/dist/setup-CTZUUn1s.js +0 -586
  1584. package/dist/setup-D6fXOEjD.js +0 -2
  1585. package/dist/setup-api-DLPEXHCv.js +0 -29
  1586. package/dist/setup-core-DLXb29jm.js +0 -174
  1587. package/dist/setup-onboard-configure-help-fast-path-CrcZmKPI.js +0 -64
  1588. package/dist/setup-surface--Cct-rCt.js +0 -288
  1589. package/dist/setup-surface-CW8YN207.js +0 -320
  1590. package/dist/setup-surface-DIxcfqD0.js +0 -221
  1591. package/dist/setup-surface-IJ6kmKgi.js +0 -405
  1592. package/dist/setup.finalize-gWpWnCCk.js +0 -582
  1593. package/dist/setup.gateway-config-D_DaSfpW.js +0 -281
  1594. package/dist/setup.migration-import-CYZjCkle.js +0 -2
  1595. package/dist/setup.migration-import-CZJU4scH.js +0 -200
  1596. package/dist/shared-Bp_Fgv6B.js +0 -121
  1597. package/dist/shared-CLqPY0yv.d.ts +0 -115
  1598. package/dist/shared-client-OQdg8NGC.js +0 -629
  1599. package/dist/shared-client-dk1ICVBm.js +0 -2
  1600. package/dist/side-question-CbhRW3UI.js +0 -683
  1601. package/dist/simple-completion-runtime-XIF65b47.d.ts +0 -73
  1602. package/dist/skill-tool-dispatch.runtime-EcycYnWE.js +0 -143
  1603. package/dist/slash-state-BoX6WwB5.js +0 -2166
  1604. package/dist/speech-CvkJG5Mt.d.ts +0 -47
  1605. package/dist/speech-core-MG83lB3i.d.ts +0 -36
  1606. package/dist/speech-provider-1EN9hT-3.d.ts +0 -8
  1607. package/dist/speech-provider-67ebyEcs.js +0 -184
  1608. package/dist/speech-provider-B6tb45De.d.ts +0 -5
  1609. package/dist/speech-provider-C74wAyBX.d.ts +0 -5
  1610. package/dist/speech-provider-CYJoZZpj.d.ts +0 -8
  1611. package/dist/speech-provider-DavEMdKC.d.ts +0 -34
  1612. package/dist/speech-provider-DvFtveg6.d.ts +0 -5
  1613. package/dist/src-CbfOifft.js +0 -4256
  1614. package/dist/startup-context-YF24NARp.js +0 -313
  1615. package/dist/status-message-CcrZdfCO.js +0 -484
  1616. package/dist/status-message.runtime-Cptt1EPV.js +0 -6
  1617. package/dist/status-subagents.runtime-v2eijc4R.js +0 -18
  1618. package/dist/status-text-BWwar3Yc.js +0 -296
  1619. package/dist/status-tn3uQDY7.js +0 -73
  1620. package/dist/status.runtime-BFjTHLiQ.js +0 -2
  1621. package/dist/sticker-cache-Cs7LV_3a.js +0 -206
  1622. package/dist/sticker-vision.runtime-CyPMpoCs.js +0 -17
  1623. package/dist/stream-1rWKMSqV.d.ts +0 -16
  1624. package/dist/stream-Bk9TnoRV.d.ts +0 -10
  1625. package/dist/stream-DZeY9rhs.d.ts +0 -120
  1626. package/dist/stream-DgCoKjcL.d.ts +0 -19
  1627. package/dist/stream-exnufPSG.d.ts +0 -5
  1628. package/dist/stream-wrappers-D2EuY1tP.d.ts +0 -21
  1629. package/dist/subagent-announce-CRjGGxSB.js +0 -354
  1630. package/dist/subagent-announce-delivery-CbfRRdwt.js +0 -958
  1631. package/dist/subagent-control-VTsWynTB.js +0 -508
  1632. package/dist/subagent-hooks-BB__aHul.js +0 -2
  1633. package/dist/subagent-hooks-Cb5fJ2H0.js +0 -146
  1634. package/dist/subagent-hooks-CwVBMhp_.js +0 -2
  1635. package/dist/subagent-hooks-Cx9_GAMF.js +0 -116
  1636. package/dist/subagent-hooks-DOJhvTDx.js +0 -230
  1637. package/dist/subagent-hooks-DUMqhB3r.js +0 -2
  1638. package/dist/subagent-hooks-api-BDGmCxB2.js +0 -22
  1639. package/dist/subagent-hooks-api-CcTdPqP1.js +0 -23
  1640. package/dist/subagent-hooks-api-D18tQta6.js +0 -23
  1641. package/dist/subagent-orphan-recovery-6bNIX25Q.js +0 -352
  1642. package/dist/subagent-registry-DokIxoQ6.js +0 -2351
  1643. package/dist/subagent-registry-tlyJE0hN.js +0 -3
  1644. package/dist/subagent-session-cleanup-BWHQ6rcm.js +0 -525
  1645. package/dist/subagent-spawn-BUdUAwoc.js +0 -1164
  1646. package/dist/target-id-CI1U3MSO.js +0 -107
  1647. package/dist/targets-CbBORUXB.d.ts +0 -10
  1648. package/dist/targets-CgmlXrhv.js +0 -44
  1649. package/dist/targets-D-jSrLUN.js +0 -19
  1650. package/dist/targets-DPDu8x6v.js +0 -19
  1651. package/dist/targets-D_fXvxrg.d.ts +0 -10
  1652. package/dist/testing-D-48HuIK.js +0 -267
  1653. package/dist/thinking-policy-CY16OlCs.d.ts +0 -5
  1654. package/dist/thread-bindings-B9J0nGG7.js +0 -232
  1655. package/dist/thread-bindings-BByWvFZq.js +0 -8
  1656. package/dist/thread-bindings-Cxjm2mLg.js +0 -571
  1657. package/dist/thread-bindings-DQWmglaO.js +0 -228
  1658. package/dist/thread-bindings.discord-api-DWWDvMgL.js +0 -187
  1659. package/dist/thread-bindings.manager-CQW6bNs5.js +0 -2
  1660. package/dist/thread-bindings.manager-DpBYBs9s.js +0 -536
  1661. package/dist/thread-lifecycle-PpB8gTx1.js +0 -1614
  1662. package/dist/token-CBy6YYM_.js +0 -134
  1663. package/dist/tool-BCHcwX9p.js +0 -139
  1664. package/dist/tool-actions.runtime-Cwxr2NmB.js +0 -534
  1665. package/dist/tool-plugin-DHZYdwyJ.d.ts +0 -77
  1666. package/dist/tool-resolution-DQpf531V.js +0 -149
  1667. package/dist/tool-split-ClZW5eN5.d.ts +0 -19
  1668. package/dist/tools-effective-inventory-BHxeIAri.js +0 -204
  1669. package/dist/tools-invoke-http-Bv2LES5Q.js +0 -67
  1670. package/dist/tools-invoke-shared-Cf_ifab9.js +0 -200
  1671. package/dist/transport-stream-D_pZ9Qwv.d.ts +0 -42
  1672. package/dist/tts-CjTcF0YS.js +0 -66
  1673. package/dist/tui-D3_WpyGV.js +0 -2
  1674. package/dist/tui-Y8IezK6P.js +0 -4709
  1675. package/dist/tui-backend-BIJbrfDK.js +0 -256
  1676. package/dist/tui-cli-YVLQJGLU.js +0 -37
  1677. package/dist/types-CnKegQ41.d.ts +0 -786
  1678. package/dist/types-Dyry5PA_2.d.ts +0 -3650
  1679. package/dist/types.public-AUFnQi6j.d.ts +0 -70
  1680. package/dist/update-cli-B7MOXy4Y.js +0 -3664
  1681. package/dist/video-generation-runtime-Cc8klYNS.d.ts +0 -21
  1682. package/dist/video-model-catalog-XG42YlJS.d.ts +0 -16
  1683. package/dist/vision-tools-kEwnV2UO.js +0 -1409
  1684. package/dist/web-search-DH1W_lfx.js +0 -62
  1685. package/dist/web-search-provider.runtime-BX9TezsY.js +0 -328
  1686. package/dist/web-search-provider.runtime-BhRjYeyp.js +0 -2
  1687. package/dist/webhook-targets--wGRjxMd.d.ts +0 -99
  1688. package/dist/xai-oauth-BZQ--94U.js +0 -479
  1689. package/dist/xai-user-agent-SpZaKTGR.js +0 -32
  1690. /package/dist/{acp-runtime-backend-DU5R8SXu.js → acp-runtime-backend-DHyoMnZY.js} +0 -0
  1691. /package/dist/{channel-actions-Ce2Sna1a.js → channel-actions-B5OPAiNK.js} +0 -0
  1692. /package/dist/{command-status-runtime-Cj5vB8lc.js → command-status-runtime-BqQvv1BR.js} +0 -0
  1693. /package/dist/{delegate-BeKeQwNR.js → delegate-B1QIF1j8.js} +0 -0
  1694. /package/dist/{dispatch-acp-DXlzEM_A.js → dispatch-acp-Ch9ZmM4b.js} +0 -0
  1695. /package/dist/{heartbeat-runner-Dncw_0KS.js → heartbeat-runner-BkgH94IS.js} +0 -0
  1696. /package/dist/{library-6cU4n1-c.js → library-DP1oARlw.js} +0 -0
  1697. /package/dist/{run-executor.runtime-DjwaphFT.js → run-executor.runtime-Czk4Lxkj.js} +0 -0
  1698. /package/dist/{shared-BE5PSFeb.js → shared-SiM6kZAE.js} +0 -0
@@ -0,0 +1,1633 @@
1
+ import { c as normalizeOptionalString, d as normalizeStringifiedOptionalString } from "./string-coerce-DyL154ka.js";
2
+ import { t as CONFIG_PATH } from "./paths-ZwPDM6zn.js";
3
+ import { t as formatCliCommand } from "./command-format-tWmMYcvZ.js";
4
+ import { t as formatDocsLink } from "./links-CM5vg8_V.js";
5
+ import { r as theme } from "./theme-D58JpUfy.js";
6
+ import { g as shortenHomePath } from "./utils-CNnMhEDp.js";
7
+ import { l as isValidEnvSecretRefId, m as resolveSecretInputRef, o as coerceSecretRef } from "./types.secrets-Ct1DNG7D.js";
8
+ import { n as normalizeAgentModelRefForConfig, t as normalizeAgentModelMapForConfig } from "./model-input-ChW9XXsQ.js";
9
+ import { t as isBlockedObjectKey } from "./prototype-keys-gIgii6VQ.js";
10
+ import { n as defaultRuntime, r as writeRuntimeJson } from "./runtime-E_A14BX_.js";
11
+ import { n as discoverConfigSecretTargets, s as resolveConfigSecretTargetByPath } from "./target-registry-CKKXN9Gr.js";
12
+ import { a as formatExecSecretRefIdValidationMessage, c as isValidSecretProviderAlias, d as validateExecSecretRefId, o as isValidExecSecretRefId, s as isValidFileSecretRefId, u as secretRefKey } from "./ref-contract-D77qqtrn.js";
13
+ import { a as resolveSecretRefValue } from "./resolve-B9StgVkZ.js";
14
+ import { n as info, o as success, t as danger } from "./globals-CTkTxjGR.js";
15
+ import { U as AUTO_MANAGED_CONFIG_META_PATHS, u as readConfigFileSnapshot, w as validateConfigObjectRawWithPlugins, x as collectUnsupportedSecretRefPolicyIssues } from "./io-CcynUC5m.js";
16
+ import { n as formatConfigIssueLines, o as normalizeConfigIssues } from "./issue-format-c8ezaSew.js";
17
+ import { r as normalizeConfiguredProviderCatalogModelId } from "./model-ref-shared-aYu6YNuy.js";
18
+ import { w as SecretProviderSchema } from "./zod-schema.core-D3MmpZyV.js";
19
+ import { i as replaceConfigFile } from "./mutate-CIVoWqFQ.js";
20
+ import "./config-D3mxUrDI.js";
21
+ import { s as formatStrictJsonParseFailure } from "./error-format-C3FC3NTF.js";
22
+ import { n as redactConfigObject } from "./redact-snapshot-Jvbz_U1q.js";
23
+ import { n as readBestEffortRuntimeConfigSchema } from "./runtime-schema-BSTfY9jn.js";
24
+ import { n as setCommandJsonMode } from "./json-mode-hhJKGso0.js";
25
+ import fs from "node:fs";
26
+ import JSON5 from "json5";
27
+ //#region src/cli/config-set-input.ts
28
+ function hasBatchMode(opts) {
29
+ return Boolean(normalizeOptionalString(opts.batchJson) || normalizeOptionalString(opts.batchFile));
30
+ }
31
+ function hasRefBuilderOptions(opts) {
32
+ return Boolean(opts.refProvider || opts.refSource || opts.refId);
33
+ }
34
+ function hasProviderBuilderOptions(opts) {
35
+ return Boolean(opts.providerSource || opts.providerAllowlist?.length || opts.providerPath || opts.providerMode || opts.providerTimeoutMs || opts.providerMaxBytes || opts.providerCommand || opts.providerArg?.length || opts.providerNoOutputTimeoutMs || opts.providerMaxOutputBytes || opts.providerJsonOnly || opts.providerEnv?.length || opts.providerPassEnv?.length || opts.providerTrustedDir?.length || opts.providerAllowInsecurePath || opts.providerAllowSymlinkCommand);
36
+ }
37
+ function parseJson5Raw(raw, label) {
38
+ try {
39
+ return JSON5.parse(raw);
40
+ } catch (err) {
41
+ throw new Error(`Failed to parse ${label}: ${String(err)}`, { cause: err });
42
+ }
43
+ }
44
+ function parseBatchEntries(raw, sourceLabel) {
45
+ const parsed = parseJson5Raw(raw, sourceLabel);
46
+ if (!Array.isArray(parsed)) throw new Error(`${sourceLabel} must be a JSON array.`);
47
+ const out = [];
48
+ for (const [index, entry] of parsed.entries()) {
49
+ if (!entry || typeof entry !== "object" || Array.isArray(entry)) throw new Error(`${sourceLabel}[${index}] must be an object.`);
50
+ const typed = entry;
51
+ const path = normalizeOptionalString(typed.path) ?? "";
52
+ if (!path) throw new Error(`${sourceLabel}[${index}].path is required.`);
53
+ const hasValue = Object.prototype.hasOwnProperty.call(typed, "value");
54
+ const hasRef = Object.prototype.hasOwnProperty.call(typed, "ref");
55
+ const hasProvider = Object.prototype.hasOwnProperty.call(typed, "provider");
56
+ if (Number(hasValue) + Number(hasRef) + Number(hasProvider) !== 1) throw new Error(`${sourceLabel}[${index}] must include exactly one of: value, ref, provider.`);
57
+ out.push({
58
+ path,
59
+ ...hasValue ? { value: typed.value } : {},
60
+ ...hasRef ? { ref: typed.ref } : {},
61
+ ...hasProvider ? { provider: typed.provider } : {}
62
+ });
63
+ }
64
+ return out;
65
+ }
66
+ function parseBatchSource(opts) {
67
+ const batchJson = normalizeOptionalString(opts.batchJson);
68
+ const batchFile = normalizeOptionalString(opts.batchFile);
69
+ const hasInline = Boolean(batchJson);
70
+ const hasFile = Boolean(batchFile);
71
+ if (!hasInline && !hasFile) return null;
72
+ if (hasInline && hasFile) throw new Error("Use either --batch-json or --batch-file, not both.");
73
+ if (hasInline) return parseBatchEntries(batchJson, "--batch-json");
74
+ const pathname = normalizeStringifiedOptionalString(opts.batchFile) ?? "";
75
+ if (!pathname) throw new Error("--batch-file must not be empty.");
76
+ return parseBatchEntries(fs.readFileSync(pathname, "utf8"), "--batch-file");
77
+ }
78
+ //#endregion
79
+ //#region src/cli/config-set-parser.ts
80
+ function resolveConfigSetMode(params) {
81
+ if (params.hasBatchMode) {
82
+ if (params.hasRefBuilderOptions || params.hasProviderBuilderOptions) return {
83
+ ok: false,
84
+ error: "batch mode (--batch-json/--batch-file) cannot be combined with ref builder (--ref-*) or provider builder (--provider-*) flags."
85
+ };
86
+ return {
87
+ ok: true,
88
+ mode: "batch"
89
+ };
90
+ }
91
+ if (params.hasRefBuilderOptions && params.hasProviderBuilderOptions) return {
92
+ ok: false,
93
+ error: "choose exactly one mode: ref builder (--ref-provider/--ref-source/--ref-id) or provider builder (--provider-*), not both."
94
+ };
95
+ if (params.hasRefBuilderOptions) return {
96
+ ok: true,
97
+ mode: "ref_builder"
98
+ };
99
+ if (params.hasProviderBuilderOptions) return {
100
+ ok: true,
101
+ mode: "provider_builder"
102
+ };
103
+ return {
104
+ ok: true,
105
+ mode: params.strictJson ? "json" : "value"
106
+ };
107
+ }
108
+ //#endregion
109
+ //#region src/cli/config-cli.ts
110
+ function normalizeAgentDefaultModelValueForConfigMutation(value) {
111
+ if (typeof value === "string") return normalizeAgentModelRefForConfig(value);
112
+ if (!isPlainRecord(value)) return value;
113
+ const next = { ...value };
114
+ if (typeof next.primary === "string") next.primary = normalizeAgentModelRefForConfig(next.primary);
115
+ if (Array.isArray(next.fallbacks)) next.fallbacks = next.fallbacks.map((fallback) => typeof fallback === "string" ? normalizeAgentModelRefForConfig(fallback) : fallback);
116
+ return next;
117
+ }
118
+ function normalizeAgentListModelRefsForConfigMutation(value) {
119
+ if (!Array.isArray(value)) return value;
120
+ let mutated = false;
121
+ const next = value.map((agent) => {
122
+ if (!isPlainRecord(agent)) return agent;
123
+ let nextAgent = agent;
124
+ if (Object.prototype.hasOwnProperty.call(agent, "model")) {
125
+ const model = normalizeAgentDefaultModelValueForConfigMutation(agent.model);
126
+ if (model !== agent.model) {
127
+ nextAgent = {
128
+ ...nextAgent,
129
+ model
130
+ };
131
+ mutated = true;
132
+ }
133
+ }
134
+ if (isPlainRecord(agent.models)) {
135
+ const models = normalizeAgentModelMapForConfig(agent.models);
136
+ if (models !== agent.models) {
137
+ nextAgent = {
138
+ ...nextAgent,
139
+ models
140
+ };
141
+ mutated = true;
142
+ }
143
+ }
144
+ return nextAgent;
145
+ });
146
+ return mutated ? next : value;
147
+ }
148
+ function normalizeProviderCatalogModelsForConfigMutation(provider, models) {
149
+ if (!Array.isArray(models)) return models;
150
+ let mutated = false;
151
+ const next = models.map((model) => {
152
+ if (!isPlainRecord(model) || typeof model.id !== "string") return model;
153
+ const trimmed = model.id.trim();
154
+ if (!trimmed) return model;
155
+ const id = normalizeConfiguredProviderCatalogModelId(provider, trimmed);
156
+ if (id === model.id) return model;
157
+ mutated = true;
158
+ return {
159
+ ...model,
160
+ id
161
+ };
162
+ });
163
+ return mutated ? next : models;
164
+ }
165
+ function normalizeModelProviderRefsForConfigMutation(providers) {
166
+ if (!isPlainRecord(providers)) return providers;
167
+ let mutated = false;
168
+ const nextProviders = { ...providers };
169
+ for (const [provider, providerConfig] of Object.entries(providers)) {
170
+ if (!isPlainRecord(providerConfig)) continue;
171
+ const models = normalizeProviderCatalogModelsForConfigMutation(provider, providerConfig.models);
172
+ if (models === providerConfig.models) continue;
173
+ nextProviders[provider] = {
174
+ ...providerConfig,
175
+ models
176
+ };
177
+ mutated = true;
178
+ }
179
+ return mutated ? nextProviders : providers;
180
+ }
181
+ function normalizeConfigMutationModelRefs(cfg) {
182
+ const defaults = cfg.agents?.defaults;
183
+ const agentList = cfg.agents?.list;
184
+ const providers = cfg.models?.providers;
185
+ const normalizedAgentList = normalizeAgentListModelRefsForConfigMutation(agentList);
186
+ const normalizedProviders = normalizeModelProviderRefsForConfigMutation(providers);
187
+ return {
188
+ ...cfg,
189
+ ...defaults || normalizedAgentList !== agentList ? { agents: {
190
+ ...cfg.agents,
191
+ ...defaults ? { defaults: {
192
+ ...defaults,
193
+ ...defaults.model !== void 0 ? { model: normalizeAgentDefaultModelValueForConfigMutation(defaults.model) } : void 0,
194
+ ...defaults.models !== void 0 ? { models: normalizeAgentModelMapForConfig(defaults.models) } : void 0
195
+ } } : void 0,
196
+ ...normalizedAgentList !== agentList ? { list: normalizedAgentList } : void 0
197
+ } } : void 0,
198
+ ...normalizedProviders !== providers ? { models: {
199
+ ...cfg.models,
200
+ providers: normalizedProviders
201
+ } } : void 0
202
+ };
203
+ }
204
+ function normalizeConfigMutationExplicitSetPath(path) {
205
+ if (path.length >= 4 && path[0] === "agents" && path[1] === "defaults" && path[2] === "models") {
206
+ const normalizedModelId = normalizeAgentModelRefForConfig(path[3]);
207
+ return normalizedModelId === path[3] ? path : [
208
+ ...path.slice(0, 3),
209
+ normalizedModelId,
210
+ ...path.slice(4)
211
+ ];
212
+ }
213
+ return path;
214
+ }
215
+ const GATEWAY_AUTH_MODE_PATH = [
216
+ "gateway",
217
+ "auth",
218
+ "mode"
219
+ ];
220
+ const SECRET_PROVIDER_PATH_PREFIX = ["secrets", "providers"];
221
+ const PLUGIN_INSTALL_RECORD_PATH_PREFIX = ["plugins", "installs"];
222
+ const CONFIG_SET_EXAMPLE_VALUE = formatCliCommand("daocore config set gateway.port 19001 --strict-json");
223
+ const CONFIG_SET_EXAMPLE_REF = formatCliCommand("daocore config set channels.discord.token --ref-provider default --ref-source env --ref-id DISCORD_BOT_TOKEN");
224
+ const CONFIG_SET_EXAMPLE_PROVIDER = formatCliCommand("daocore config set secrets.providers.vault --provider-source file --provider-path /etc/daocore/secrets.json --provider-mode json");
225
+ const CONFIG_SET_EXAMPLE_BATCH = formatCliCommand("daocore config set --batch-file ./config-set.batch.json --dry-run");
226
+ const CONFIG_PATCH_EXAMPLE_FILE = formatCliCommand("daocore config patch --file ./daocore.patch.json5 --dry-run");
227
+ const CONFIG_PATCH_EXAMPLE_STDIN = formatCliCommand("daocore config patch --stdin");
228
+ const CONFIG_SET_DESCRIPTION = [
229
+ "Set config values by path (value mode, ref/provider builder mode, or batch JSON mode).",
230
+ "Examples:",
231
+ CONFIG_SET_EXAMPLE_VALUE,
232
+ CONFIG_SET_EXAMPLE_REF,
233
+ CONFIG_SET_EXAMPLE_PROVIDER,
234
+ CONFIG_SET_EXAMPLE_BATCH
235
+ ].join("\n");
236
+ const CONFIG_PATCH_DESCRIPTION = [
237
+ "Patch config from a JSON5 object in one validated write.",
238
+ "Objects merge recursively, arrays/scalars replace, and null deletes a path.",
239
+ "Examples:",
240
+ CONFIG_PATCH_EXAMPLE_FILE,
241
+ CONFIG_PATCH_EXAMPLE_STDIN
242
+ ].join("\n");
243
+ const CONFIG_SET_POLICY_ERROR_MAX_ISSUES = 5;
244
+ const CONFIG_PATCH_STDIN_MAX_BYTES = 1024 * 1024;
245
+ var ConfigSetDryRunValidationError = class extends Error {
246
+ constructor(result) {
247
+ super("config set dry-run validation failed");
248
+ this.result = result;
249
+ this.name = "ConfigSetDryRunValidationError";
250
+ }
251
+ };
252
+ function isIndexSegment(raw) {
253
+ return /^[0-9]+$/.test(raw);
254
+ }
255
+ function parseBracketPathSegment(raw, fullPath) {
256
+ const trimmed = raw.trim();
257
+ if (!trimmed) throw new Error(`Invalid path (empty "[]"): ${fullPath}`);
258
+ if (trimmed.startsWith("\"") || trimmed.startsWith("'")) {
259
+ try {
260
+ const parsed = JSON5.parse(trimmed);
261
+ if (typeof parsed === "string" && parsed.trim()) return parsed;
262
+ } catch (err) {
263
+ throw new Error(`Invalid path bracket string (${trimmed}): ${fullPath}`, { cause: err });
264
+ }
265
+ throw new Error(`Invalid path bracket string (${trimmed}): ${fullPath}`);
266
+ }
267
+ return trimmed;
268
+ }
269
+ function parsePath(raw) {
270
+ const trimmed = raw.trim();
271
+ if (!trimmed) return [];
272
+ const parts = [];
273
+ let current = "";
274
+ let i = 0;
275
+ while (i < trimmed.length) {
276
+ const ch = trimmed[i];
277
+ if (ch === "\\") {
278
+ const next = trimmed[i + 1];
279
+ if (next) current += next;
280
+ i += 2;
281
+ continue;
282
+ }
283
+ if (ch === ".") {
284
+ if (current) parts.push(current);
285
+ current = "";
286
+ i += 1;
287
+ continue;
288
+ }
289
+ if (ch === "[") {
290
+ if (current) parts.push(current);
291
+ current = "";
292
+ const close = trimmed.indexOf("]", i);
293
+ if (close === -1) throw new Error(`Invalid path (missing "]"): ${raw}`);
294
+ const inside = trimmed.slice(i + 1, close).trim();
295
+ if (!inside) throw new Error(`Invalid path (empty "[]"): ${raw}`);
296
+ parts.push(parseBracketPathSegment(inside, raw));
297
+ i = close + 1;
298
+ continue;
299
+ }
300
+ current += ch;
301
+ i += 1;
302
+ }
303
+ if (current) parts.push(current);
304
+ return parts.map((part) => part.trim()).filter(Boolean);
305
+ }
306
+ function parseValue(raw, opts) {
307
+ const trimmed = raw.trim();
308
+ if (opts.strictJson) try {
309
+ return JSON.parse(trimmed);
310
+ } catch (err) {
311
+ throw new Error(formatStrictJsonParseFailure({
312
+ value: raw,
313
+ cause: err
314
+ }), { cause: err });
315
+ }
316
+ try {
317
+ return JSON5.parse(trimmed);
318
+ } catch {
319
+ return raw;
320
+ }
321
+ }
322
+ function hasOwnPathKey(value, key) {
323
+ return Object.prototype.hasOwnProperty.call(value, key);
324
+ }
325
+ function isPlainRecord(value) {
326
+ return Boolean(value && typeof value === "object" && !Array.isArray(value));
327
+ }
328
+ function formatDoctorHint(message) {
329
+ return `Run \`${formatCliCommand("daocore doctor --fix")}\` ${message}`;
330
+ }
331
+ function formatUnsupportedSecretRefPolicyFailureMessage(issues) {
332
+ const lines = ["Config policy validation failed: unsupported SecretRef usage was detected.", ...issues.slice(0, CONFIG_SET_POLICY_ERROR_MAX_ISSUES).map((issue) => `- ${issue}`)];
333
+ if (issues.length > CONFIG_SET_POLICY_ERROR_MAX_ISSUES) lines.push(`- ... ${issues.length - CONFIG_SET_POLICY_ERROR_MAX_ISSUES} more`);
334
+ return lines.join("\n");
335
+ }
336
+ function validatePathSegments(path) {
337
+ for (const segment of path) if (!isIndexSegment(segment) && isBlockedObjectKey(segment)) throw new Error(`Invalid path segment: ${segment}`);
338
+ }
339
+ function getAtPath(root, path) {
340
+ let current = root;
341
+ for (const segment of path) {
342
+ if (!current || typeof current !== "object") return { found: false };
343
+ if (Array.isArray(current)) {
344
+ if (!isIndexSegment(segment)) return { found: false };
345
+ const index = Number.parseInt(segment, 10);
346
+ if (!Number.isFinite(index) || index < 0 || index >= current.length) return { found: false };
347
+ current = current[index];
348
+ continue;
349
+ }
350
+ const record = current;
351
+ if (!hasOwnPathKey(record, segment)) return { found: false };
352
+ current = record[segment];
353
+ }
354
+ return {
355
+ found: true,
356
+ value: current
357
+ };
358
+ }
359
+ function isSchemaRecord(value) {
360
+ return Boolean(value && typeof value === "object" && !Array.isArray(value));
361
+ }
362
+ function schemaTypes(schema) {
363
+ if (typeof schema.type === "string") return new Set([schema.type]);
364
+ if (Array.isArray(schema.type)) return new Set(schema.type.filter((entry) => typeof entry === "string"));
365
+ return /* @__PURE__ */ new Set();
366
+ }
367
+ function schemaAlternatives(schema, seen = /* @__PURE__ */ new Set()) {
368
+ if (seen.has(schema)) return [];
369
+ seen.add(schema);
370
+ const alternatives = [schema];
371
+ for (const key of [
372
+ "anyOf",
373
+ "oneOf",
374
+ "allOf"
375
+ ]) {
376
+ const entries = schema[key];
377
+ if (!Array.isArray(entries)) continue;
378
+ for (const entry of entries) if (isSchemaRecord(entry)) alternatives.push(...schemaAlternatives(entry, seen));
379
+ }
380
+ return alternatives;
381
+ }
382
+ function schemaLooksArray(schema) {
383
+ return schemaTypes(schema).has("array") || isSchemaRecord(schema.items) || Array.isArray(schema.items);
384
+ }
385
+ function schemaLooksObject(schema) {
386
+ return schemaTypes(schema).has("object") || isSchemaRecord(schema.properties) || schema.additionalProperties === true || isSchemaRecord(schema.additionalProperties);
387
+ }
388
+ function propertySchema(schema, segment) {
389
+ const schemas = [];
390
+ for (const alternative of schemaAlternatives(schema)) {
391
+ if (schemaLooksArray(alternative)) {
392
+ if (isIndexSegment(segment)) {
393
+ const index = Number.parseInt(segment, 10);
394
+ const indexedItem = Array.isArray(alternative.items) ? alternative.items[index] : alternative.items;
395
+ if (isSchemaRecord(indexedItem)) schemas.push(indexedItem);
396
+ }
397
+ continue;
398
+ }
399
+ const explicit = (isSchemaRecord(alternative.properties) ? alternative.properties : void 0)?.[segment];
400
+ if (isSchemaRecord(explicit)) {
401
+ schemas.push(explicit);
402
+ continue;
403
+ }
404
+ if (isSchemaRecord(alternative.additionalProperties)) schemas.push(alternative.additionalProperties);
405
+ }
406
+ return schemas;
407
+ }
408
+ function schemasAtPath(schema, path) {
409
+ if (!schema) return [];
410
+ let schemas = [schema];
411
+ for (const segment of path) {
412
+ schemas = schemas.flatMap((candidate) => propertySchema(candidate, segment));
413
+ if (schemas.length === 0) return [];
414
+ }
415
+ return schemas;
416
+ }
417
+ function schemaPrefersArrayAtPath(schema, path) {
418
+ const candidates = schemasAtPath(schema, path).flatMap((candidate) => schemaAlternatives(candidate));
419
+ if (candidates.length === 0) return;
420
+ const hasArray = candidates.some((candidate) => schemaLooksArray(candidate));
421
+ const hasObject = candidates.some((candidate) => schemaLooksObject(candidate));
422
+ if (hasArray && !hasObject) return true;
423
+ if (hasObject && !hasArray) return false;
424
+ }
425
+ function shouldCreateArrayForMissingPathSegment(params) {
426
+ if (!params.next || params.options?.numericObjectKeys || !isIndexSegment(params.next)) return false;
427
+ const parentPath = params.path.slice(0, params.segmentIndex + 1);
428
+ const schemaPreference = schemaPrefersArrayAtPath(params.options?.schema, parentPath);
429
+ if (schemaPreference !== void 0) return schemaPreference;
430
+ return true;
431
+ }
432
+ function setAtPath(root, path, value, options) {
433
+ let current = root;
434
+ for (let i = 0; i < path.length - 1; i += 1) {
435
+ const segment = path[i];
436
+ const next = path[i + 1];
437
+ const nextIsIndex = shouldCreateArrayForMissingPathSegment({
438
+ path,
439
+ segmentIndex: i,
440
+ next,
441
+ options
442
+ });
443
+ if (Array.isArray(current)) {
444
+ if (!isIndexSegment(segment)) throw new Error(`Expected numeric index for array segment "${segment}"`);
445
+ const index = Number.parseInt(segment, 10);
446
+ const existing = current[index];
447
+ if (!existing || typeof existing !== "object") current[index] = nextIsIndex ? [] : {};
448
+ current = current[index];
449
+ continue;
450
+ }
451
+ if (!current || typeof current !== "object") throw new Error(`Cannot traverse into "${segment}" (not an object)`);
452
+ const record = current;
453
+ const existing = hasOwnPathKey(record, segment) ? record[segment] : void 0;
454
+ if (!existing || typeof existing !== "object") record[segment] = nextIsIndex ? [] : {};
455
+ current = record[segment];
456
+ }
457
+ const last = path[path.length - 1];
458
+ if (Array.isArray(current)) {
459
+ if (!isIndexSegment(last)) throw new Error(`Expected numeric index for array segment "${last}"`);
460
+ const index = Number.parseInt(last, 10);
461
+ current[index] = value;
462
+ return;
463
+ }
464
+ if (!current || typeof current !== "object") throw new Error(`Cannot set "${last}" (parent is not an object)`);
465
+ current[last] = value;
466
+ }
467
+ function modelArrayIds(value) {
468
+ if (!Array.isArray(value)) return null;
469
+ const ids = /* @__PURE__ */ new Set();
470
+ for (const entry of value) {
471
+ if (!isPlainRecord(entry) || typeof entry.id !== "string" || !entry.id.trim()) return null;
472
+ ids.add(entry.id.trim());
473
+ }
474
+ return ids;
475
+ }
476
+ function mergeModelArrays(existing, patch) {
477
+ const merged = [...existing];
478
+ const indexById = /* @__PURE__ */ new Map();
479
+ for (const [index, entry] of merged.entries()) if (isPlainRecord(entry) && typeof entry.id === "string" && entry.id.trim()) indexById.set(entry.id.trim(), index);
480
+ for (const entry of patch) {
481
+ if (!isPlainRecord(entry) || typeof entry.id !== "string" || !entry.id.trim()) {
482
+ merged.push(entry);
483
+ continue;
484
+ }
485
+ const id = entry.id.trim();
486
+ const existingIndex = indexById.get(id);
487
+ if (existingIndex === void 0) {
488
+ indexById.set(id, merged.length);
489
+ merged.push(entry);
490
+ continue;
491
+ }
492
+ const existingEntry = merged[existingIndex];
493
+ merged[existingIndex] = isPlainRecord(existingEntry) ? {
494
+ ...existingEntry,
495
+ ...entry
496
+ } : entry;
497
+ }
498
+ return merged;
499
+ }
500
+ function mergeConfigValue(existing, patch, path) {
501
+ if (isProviderModelListPath(path) && Array.isArray(existing) && Array.isArray(patch)) return mergeModelArrays(existing, patch);
502
+ if (isPlainRecord(existing) && isPlainRecord(patch)) {
503
+ const next = { ...existing };
504
+ for (const [key, value] of Object.entries(patch)) next[key] = hasOwnPathKey(next, key) && isPlainRecord(next[key]) && isPlainRecord(value) ? mergeConfigValue(next[key], value, [...path, key]) : value;
505
+ return next;
506
+ }
507
+ throw new Error(`Cannot merge ${toDotPath(path)}; use --replace to replace intentionally.`);
508
+ }
509
+ function mergeAtPath(root, path, value, options) {
510
+ const existing = getAtPath(root, path);
511
+ if (!existing.found) {
512
+ setAtPath(root, path, value, options);
513
+ return;
514
+ }
515
+ setAtPath(root, path, mergeConfigValue(existing.value, value, path), options);
516
+ }
517
+ function isProviderModelListPath(path) {
518
+ return path.length === 4 && path[0] === "models" && path[1] === "providers" && path[3] === "models";
519
+ }
520
+ function isProtectedMapReplacementPath(path) {
521
+ if (path.join(".") === "agents.defaults.models") return true;
522
+ if (path.join(".") === "models.providers") return true;
523
+ if (path.length === 3 && path[0] === "models" && path[1] === "providers") return true;
524
+ if (path.join(".") === "plugins.entries") return true;
525
+ if (path.join(".") === "auth.profiles") return true;
526
+ return false;
527
+ }
528
+ function isProtectedArrayReplacementPath(path) {
529
+ return isProviderModelListPath(path) || path.join(".") === "agents.list";
530
+ }
531
+ function formatRemovedEntries(entries) {
532
+ const visible = entries.slice(0, 6);
533
+ const suffix = entries.length > visible.length ? `, ... ${entries.length - visible.length} more` : "";
534
+ return `${visible.join(", ")}${suffix}`;
535
+ }
536
+ function assertNonDestructiveReplacement(params) {
537
+ if (params.allowReplace) return;
538
+ const existing = getAtPath(params.root, params.path);
539
+ if (!existing.found) return;
540
+ const pathLabel = toDotPath(params.path);
541
+ if (isProtectedMapReplacementPath(params.path) && isPlainRecord(existing.value)) {
542
+ if (!isPlainRecord(params.value)) return;
543
+ const nextKeys = new Set(Object.keys(params.value));
544
+ const removed = Object.keys(existing.value).filter((key) => !nextKeys.has(key));
545
+ if (removed.length > 0) throw new Error(`Refusing to replace ${pathLabel}; it would remove existing entries: ${formatRemovedEntries(removed)}. Use --merge to merge object values or --replace to replace intentionally.`);
546
+ }
547
+ if (isProtectedArrayReplacementPath(params.path)) {
548
+ const existingIds = modelArrayIds(existing.value);
549
+ const nextIds = modelArrayIds(params.value);
550
+ if (!existingIds || !nextIds) return;
551
+ const removed = [...existingIds].filter((id) => !nextIds.has(id));
552
+ if (removed.length > 0) throw new Error(`Refusing to replace ${pathLabel}; it would remove existing entries: ${formatRemovedEntries(removed)}. Use --merge to merge by id or --replace to replace intentionally.`);
553
+ }
554
+ }
555
+ function unsetAtPath(root, path) {
556
+ let current = root;
557
+ for (let i = 0; i < path.length - 1; i += 1) {
558
+ const segment = path[i];
559
+ if (!current || typeof current !== "object") return { removed: false };
560
+ if (Array.isArray(current)) {
561
+ if (!isIndexSegment(segment)) return { removed: false };
562
+ const index = Number.parseInt(segment, 10);
563
+ if (!Number.isFinite(index) || index < 0 || index >= current.length) return { removed: false };
564
+ current = current[index];
565
+ continue;
566
+ }
567
+ const record = current;
568
+ if (!hasOwnPathKey(record, segment)) return { removed: false };
569
+ current = record[segment];
570
+ }
571
+ const last = path[path.length - 1];
572
+ if (Array.isArray(current)) {
573
+ if (!isIndexSegment(last)) return { removed: false };
574
+ const index = Number.parseInt(last, 10);
575
+ if (!Number.isFinite(index) || index < 0 || index >= current.length) return { removed: false };
576
+ current.splice(index, 1);
577
+ return {
578
+ removed: true,
579
+ leafContainer: "array"
580
+ };
581
+ }
582
+ if (!current || typeof current !== "object") return { removed: false };
583
+ const record = current;
584
+ if (!hasOwnPathKey(record, last)) return { removed: false };
585
+ delete record[last];
586
+ return {
587
+ removed: true,
588
+ leafContainer: "object"
589
+ };
590
+ }
591
+ async function loadValidConfig(runtime = defaultRuntime) {
592
+ const snapshot = await readConfigFileSnapshot();
593
+ if (snapshot.valid) return snapshot;
594
+ runtime.error(`DaoCore config is invalid: ${shortenHomePath(snapshot.path)}`);
595
+ for (const line of formatConfigIssueLines(snapshot.issues, "-", { normalizeRoot: true })) runtime.error(line);
596
+ runtime.error(formatDoctorHint("to repair, then retry."));
597
+ runtime.exit(1);
598
+ return snapshot;
599
+ }
600
+ function parseRequiredPath(path) {
601
+ const parsedPath = parsePath(path);
602
+ if (parsedPath.length === 0) throw new Error("Path is empty.");
603
+ validatePathSegments(parsedPath);
604
+ return parsedPath;
605
+ }
606
+ function pathEquals(path, expected) {
607
+ return path.length === expected.length && path.every((segment, index) => segment === expected[index]);
608
+ }
609
+ function pruneInactiveGatewayAuthCredentials(params) {
610
+ if (!params.operations.some((operation) => pathEquals(operation.requestedPath, GATEWAY_AUTH_MODE_PATH))) return [];
611
+ const gatewayRaw = params.root.gateway;
612
+ if (!gatewayRaw || typeof gatewayRaw !== "object" || Array.isArray(gatewayRaw)) return [];
613
+ const authRaw = gatewayRaw.auth;
614
+ if (!authRaw || typeof authRaw !== "object" || Array.isArray(authRaw)) return [];
615
+ const auth = authRaw;
616
+ const mode = normalizeOptionalString(auth.mode) ?? "";
617
+ const removedPaths = [];
618
+ const remove = (key) => {
619
+ if (Object.hasOwn(auth, key)) {
620
+ delete auth[key];
621
+ removedPaths.push(`gateway.auth.${key}`);
622
+ }
623
+ };
624
+ if (mode === "token") remove("password");
625
+ else if (mode === "password") remove("token");
626
+ else if (mode === "trusted-proxy") {
627
+ remove("token");
628
+ remove("password");
629
+ }
630
+ return removedPaths;
631
+ }
632
+ function toDotPath(path) {
633
+ return path.join(".");
634
+ }
635
+ function parseSecretRefSource(raw, label) {
636
+ const source = raw.trim();
637
+ if (source === "env" || source === "file" || source === "exec") return source;
638
+ throw new Error(`${label} must be one of: env, file, exec.`);
639
+ }
640
+ function parseSecretRefBuilder(params) {
641
+ const provider = params.provider.trim();
642
+ if (!provider) throw new Error(`${params.fieldPrefix}.provider is required.`);
643
+ if (!isValidSecretProviderAlias(provider)) throw new Error(`${params.fieldPrefix}.provider must match /^[a-z][a-z0-9_-]{0,63}$/ (example: "default").`);
644
+ const source = parseSecretRefSource(params.source, `${params.fieldPrefix}.source`);
645
+ const id = params.id.trim();
646
+ if (!id) throw new Error(`${params.fieldPrefix}.id is required.`);
647
+ if (source === "env" && !isValidEnvSecretRefId(id)) throw new Error(`${params.fieldPrefix}.id must match /^[A-Z][A-Z0-9_]{0,127}$/ for env refs.`);
648
+ if (source === "file" && !isValidFileSecretRefId(id)) throw new Error(`${params.fieldPrefix}.id must be an absolute JSON pointer (or "value" for singleValue mode).`);
649
+ if (source === "exec") {
650
+ if (!validateExecSecretRefId(id).ok) throw new Error(formatExecSecretRefIdValidationMessage());
651
+ }
652
+ return {
653
+ source,
654
+ provider,
655
+ id
656
+ };
657
+ }
658
+ function parseOptionalPositiveInteger(raw, flag) {
659
+ if (raw === void 0) return;
660
+ const trimmed = raw.trim();
661
+ if (!trimmed) throw new Error(`${flag} must not be empty.`);
662
+ const parsed = Number(trimmed);
663
+ if (!Number.isInteger(parsed) || parsed <= 0) throw new Error(`${flag} must be a positive integer.`);
664
+ return parsed;
665
+ }
666
+ function parseProviderEnvEntries(entries) {
667
+ if (!entries || entries.length === 0) return;
668
+ const env = {};
669
+ for (const entry of entries) {
670
+ const separator = entry.indexOf("=");
671
+ if (separator <= 0) throw new Error(`--provider-env expects KEY=VALUE entries (received: "${entry}").`);
672
+ const key = entry.slice(0, separator).trim();
673
+ if (!key) throw new Error(`--provider-env key must not be empty (received: "${entry}").`);
674
+ env[key] = entry.slice(separator + 1);
675
+ }
676
+ return Object.keys(env).length > 0 ? env : void 0;
677
+ }
678
+ function parseProviderAliasPath(path) {
679
+ if (!(path.length === 3 && path[0] === SECRET_PROVIDER_PATH_PREFIX[0] && path[1] === SECRET_PROVIDER_PATH_PREFIX[1])) throw new Error("Provider builder mode requires path \"secrets.providers.<alias>\" (example: secrets.providers.vault).");
680
+ const alias = path[2] ?? "";
681
+ if (!isValidSecretProviderAlias(alias)) throw new Error(`Provider alias "${alias}" must match /^[a-z][a-z0-9_-]{0,63}$/ (example: "default").`);
682
+ return alias;
683
+ }
684
+ function buildProviderFromBuilder(opts) {
685
+ const sourceRaw = opts.providerSource?.trim();
686
+ if (!sourceRaw) throw new Error("--provider-source is required in provider builder mode.");
687
+ const source = parseSecretRefSource(sourceRaw, "--provider-source");
688
+ const timeoutMs = parseOptionalPositiveInteger(opts.providerTimeoutMs, "--provider-timeout-ms");
689
+ const maxBytes = parseOptionalPositiveInteger(opts.providerMaxBytes, "--provider-max-bytes");
690
+ const noOutputTimeoutMs = parseOptionalPositiveInteger(opts.providerNoOutputTimeoutMs, "--provider-no-output-timeout-ms");
691
+ const maxOutputBytes = parseOptionalPositiveInteger(opts.providerMaxOutputBytes, "--provider-max-output-bytes");
692
+ const providerEnv = parseProviderEnvEntries(opts.providerEnv);
693
+ let provider;
694
+ if (source === "env") {
695
+ const allowlist = (opts.providerAllowlist ?? []).map((entry) => entry.trim()).filter(Boolean);
696
+ for (const envName of allowlist) if (!isValidEnvSecretRefId(envName)) throw new Error(`--provider-allowlist entry "${envName}" must match /^[A-Z][A-Z0-9_]{0,127}$/.`);
697
+ provider = {
698
+ source: "env",
699
+ ...allowlist.length > 0 ? { allowlist } : {}
700
+ };
701
+ } else if (source === "file") {
702
+ const filePath = opts.providerPath?.trim();
703
+ if (!filePath) throw new Error("--provider-path is required when --provider-source file is used.");
704
+ const modeRaw = opts.providerMode?.trim();
705
+ if (modeRaw && modeRaw !== "singleValue" && modeRaw !== "json") throw new Error("--provider-mode must be one of: singleValue, json.");
706
+ const mode = modeRaw === "singleValue" || modeRaw === "json" ? modeRaw : void 0;
707
+ provider = {
708
+ source: "file",
709
+ path: filePath,
710
+ ...mode ? { mode } : {},
711
+ ...timeoutMs !== void 0 ? { timeoutMs } : {},
712
+ ...maxBytes !== void 0 ? { maxBytes } : {},
713
+ ...opts.providerAllowInsecurePath ? { allowInsecurePath: true } : {}
714
+ };
715
+ } else {
716
+ const command = opts.providerCommand?.trim();
717
+ if (!command) throw new Error("--provider-command is required when --provider-source exec is used.");
718
+ provider = {
719
+ source: "exec",
720
+ command,
721
+ ...opts.providerArg && opts.providerArg.length > 0 ? { args: opts.providerArg.map((entry) => entry.trim()) } : {},
722
+ ...timeoutMs !== void 0 ? { timeoutMs } : {},
723
+ ...noOutputTimeoutMs !== void 0 ? { noOutputTimeoutMs } : {},
724
+ ...maxOutputBytes !== void 0 ? { maxOutputBytes } : {},
725
+ ...opts.providerJsonOnly ? { jsonOnly: true } : {},
726
+ ...providerEnv ? { env: providerEnv } : {},
727
+ ...opts.providerPassEnv && opts.providerPassEnv.length > 0 ? { passEnv: opts.providerPassEnv.map((entry) => entry.trim()).filter(Boolean) } : {},
728
+ ...opts.providerTrustedDir && opts.providerTrustedDir.length > 0 ? { trustedDirs: opts.providerTrustedDir.map((entry) => entry.trim()).filter(Boolean) } : {},
729
+ ...opts.providerAllowInsecurePath ? { allowInsecurePath: true } : {},
730
+ ...opts.providerAllowSymlinkCommand ? { allowSymlinkCommand: true } : {}
731
+ };
732
+ }
733
+ const validated = SecretProviderSchema.safeParse(provider);
734
+ if (!validated.success) {
735
+ const issue = validated.error.issues[0];
736
+ const issuePath = issue?.path?.join(".") ?? "<provider>";
737
+ const issueMessage = issue?.message ?? "Invalid provider config.";
738
+ throw new Error(`Provider builder config invalid at ${issuePath}: ${issueMessage}`);
739
+ }
740
+ return validated.data;
741
+ }
742
+ function parseSecretRefFromUnknown(value, label) {
743
+ if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error(`${label} must be an object with source/provider/id.`);
744
+ const candidate = value;
745
+ if (typeof candidate.provider !== "string" || typeof candidate.source !== "string" || typeof candidate.id !== "string") throw new Error(`${label} must include string fields: source, provider, id.`);
746
+ return parseSecretRefBuilder({
747
+ provider: candidate.provider,
748
+ source: candidate.source,
749
+ id: candidate.id,
750
+ fieldPrefix: label
751
+ });
752
+ }
753
+ function buildRefAssignmentOperation(params) {
754
+ const resolved = resolveConfigSecretTargetByPath(params.requestedPath);
755
+ if (resolved?.entry.secretShape === "sibling_ref" && resolved.refPathSegments) return {
756
+ inputMode: params.inputMode,
757
+ requestedPath: params.requestedPath,
758
+ setPath: resolved.refPathSegments,
759
+ value: params.ref,
760
+ schemaValidated: true,
761
+ touchedSecretTargetPath: toDotPath(resolved.pathSegments),
762
+ assignedRef: params.ref,
763
+ ...resolved.providerId ? { touchedProviderAlias: resolved.providerId } : {}
764
+ };
765
+ return {
766
+ inputMode: params.inputMode,
767
+ requestedPath: params.requestedPath,
768
+ setPath: params.requestedPath,
769
+ value: params.ref,
770
+ ...resolved ? { schemaValidated: true } : {},
771
+ touchedSecretTargetPath: resolved ? toDotPath(resolved.pathSegments) : toDotPath(params.requestedPath),
772
+ assignedRef: params.ref,
773
+ ...resolved?.providerId ? { touchedProviderAlias: resolved.providerId } : {}
774
+ };
775
+ }
776
+ function parseProviderAliasFromTargetPath(path) {
777
+ if (path.length >= 3 && path[0] === SECRET_PROVIDER_PATH_PREFIX[0] && path[1] === SECRET_PROVIDER_PATH_PREFIX[1]) return path[2] ?? null;
778
+ return null;
779
+ }
780
+ function touchesSecretProviderCollection(path) {
781
+ return path.length === 1 && path[0] === "secrets" || path.length === 2 && path[0] === "secrets" && path[1] === "providers";
782
+ }
783
+ function touchesSecretDefaults(path) {
784
+ return path.length === 1 && path[0] === "secrets" || path.length === 2 && path[0] === "secrets" && path[1] === "defaults";
785
+ }
786
+ function buildValueAssignmentOperation(params) {
787
+ const resolved = resolveConfigSecretTargetByPath(params.requestedPath);
788
+ const providerAlias = parseProviderAliasFromTargetPath(params.requestedPath);
789
+ const coercedRef = coerceSecretRef(params.value);
790
+ return {
791
+ inputMode: params.inputMode,
792
+ requestedPath: params.requestedPath,
793
+ setPath: params.requestedPath,
794
+ value: params.value,
795
+ ...resolved ? { touchedSecretTargetPath: toDotPath(resolved.pathSegments) } : {},
796
+ ...providerAlias ? { touchedProviderAlias: providerAlias } : {},
797
+ ...coercedRef ? { assignedRef: coercedRef } : {}
798
+ };
799
+ }
800
+ function parseBatchOperations(entries) {
801
+ const operations = [];
802
+ for (const [index, entry] of entries.entries()) {
803
+ const path = parseRequiredPath(entry.path);
804
+ if (entry.ref !== void 0) {
805
+ const ref = parseSecretRefFromUnknown(entry.ref, `batch[${index}].ref`);
806
+ operations.push(buildRefAssignmentOperation({
807
+ requestedPath: path,
808
+ ref,
809
+ inputMode: "json"
810
+ }));
811
+ continue;
812
+ }
813
+ if (entry.provider !== void 0) {
814
+ const alias = parseProviderAliasPath(path);
815
+ const validated = SecretProviderSchema.safeParse(entry.provider);
816
+ if (!validated.success) {
817
+ const issue = validated.error.issues[0];
818
+ const issuePath = issue?.path?.join(".") ?? "<provider>";
819
+ throw new Error(`batch[${index}].provider invalid at ${issuePath}: ${issue?.message ?? ""}`);
820
+ }
821
+ operations.push({
822
+ inputMode: "json",
823
+ requestedPath: path,
824
+ setPath: path,
825
+ value: validated.data,
826
+ schemaValidated: true,
827
+ touchedProviderAlias: alias
828
+ });
829
+ continue;
830
+ }
831
+ operations.push(buildValueAssignmentOperation({
832
+ requestedPath: path,
833
+ value: entry.value,
834
+ inputMode: "json"
835
+ }));
836
+ }
837
+ return operations;
838
+ }
839
+ function configPatchModeError(message) {
840
+ return /* @__PURE__ */ new Error(`config patch mode error: ${message}`);
841
+ }
842
+ async function readStdinText() {
843
+ const chunks = [];
844
+ let bytes = 0;
845
+ if (process.stdin.isTTY) throw configPatchModeError("--stdin refuses to read from an interactive terminal; pipe input or use --file <path>.");
846
+ process.stdin.setEncoding("utf8");
847
+ for await (const chunk of process.stdin) {
848
+ const text = String(chunk);
849
+ bytes += Buffer.byteLength(text, "utf8");
850
+ if (bytes > CONFIG_PATCH_STDIN_MAX_BYTES) throw configPatchModeError(`--stdin input exceeds ${CONFIG_PATCH_STDIN_MAX_BYTES} bytes; use --file <path> for larger patches.`);
851
+ chunks.push(text);
852
+ }
853
+ return chunks.join("");
854
+ }
855
+ async function readConfigPatchInput(opts) {
856
+ const file = normalizeOptionalString(opts.file);
857
+ const stdin = Boolean(opts.stdin);
858
+ if (Boolean(file) === stdin) throw configPatchModeError("provide exactly one of --file <path> or --stdin.");
859
+ const sourceLabel = stdin ? "--stdin" : "--file";
860
+ const raw = stdin ? await readStdinText() : fs.readFileSync(file, "utf8");
861
+ try {
862
+ return JSON5.parse(raw);
863
+ } catch (err) {
864
+ throw new Error(`Failed to parse ${sourceLabel} as JSON5: ${String(err)}`, { cause: err });
865
+ }
866
+ }
867
+ function parseReplacePaths(paths) {
868
+ return (paths ?? []).map((path) => parseRequiredPath(path));
869
+ }
870
+ function pathKey(path) {
871
+ return JSON.stringify(path);
872
+ }
873
+ function buildDeleteOperation(path) {
874
+ return {
875
+ inputMode: "json",
876
+ requestedPath: path,
877
+ setPath: path,
878
+ value: void 0,
879
+ mutation: "delete"
880
+ };
881
+ }
882
+ function buildUnsetOperation(path) {
883
+ const resolved = resolveConfigSecretTargetByPath(path);
884
+ const providerAlias = parseProviderAliasFromTargetPath(path);
885
+ return {
886
+ inputMode: "unset",
887
+ requestedPath: path,
888
+ setPath: path,
889
+ value: void 0,
890
+ mutation: "delete",
891
+ ...touchesSecretProviderCollection(path) || touchesSecretDefaults(path) ? { touchesAllSecretRefs: true } : {},
892
+ ...resolved ? { touchedSecretTargetPath: toDotPath(resolved.pathSegments) } : {},
893
+ ...providerAlias ? { touchedProviderAlias: providerAlias } : {}
894
+ };
895
+ }
896
+ function buildApplyValueOperation(params) {
897
+ if (isPlainRecord(params.value) ? coerceSecretRef(params.value) : null) return {
898
+ ...buildRefAssignmentOperation({
899
+ requestedPath: params.path,
900
+ ref: parseSecretRefFromUnknown(params.value, `patch.${toDotPath(params.path)}`),
901
+ inputMode: "json"
902
+ }),
903
+ ...params.mutation ? { mutation: params.mutation } : {}
904
+ };
905
+ return {
906
+ ...buildValueAssignmentOperation({
907
+ requestedPath: params.path,
908
+ value: params.value,
909
+ inputMode: "json"
910
+ }),
911
+ ...params.mutation ? { mutation: params.mutation } : {}
912
+ };
913
+ }
914
+ function buildConfigPatchOperations(params) {
915
+ if (!isPlainRecord(params.patch)) throw configPatchModeError("input must be a JSON5 object patch.");
916
+ const operations = [];
917
+ const replacePathKeys = new Set(params.replacePaths.map(pathKey));
918
+ const matchedReplacePathKeys = /* @__PURE__ */ new Set();
919
+ const visit = (value, path) => {
920
+ validatePathSegments(path);
921
+ const replacementKey = pathKey(path);
922
+ if (path.length > 0 && replacePathKeys.has(replacementKey)) {
923
+ matchedReplacePathKeys.add(replacementKey);
924
+ operations.push(value === null ? buildDeleteOperation(path) : buildApplyValueOperation({
925
+ path,
926
+ value,
927
+ mutation: "replace"
928
+ }));
929
+ return;
930
+ }
931
+ if (path.length > 0 && value === null) {
932
+ operations.push(buildDeleteOperation(path));
933
+ return;
934
+ }
935
+ if (path.length > 0 && isPlainRecord(value) && coerceSecretRef(value)) {
936
+ operations.push(buildApplyValueOperation({
937
+ path,
938
+ value
939
+ }));
940
+ return;
941
+ }
942
+ if (isPlainRecord(value)) {
943
+ if (path.length > 0 && Object.keys(value).length === 0) {
944
+ operations.push(buildApplyValueOperation({
945
+ path,
946
+ value,
947
+ mutation: "merge"
948
+ }));
949
+ return;
950
+ }
951
+ for (const [key, child] of Object.entries(value)) visit(child, [...path, key]);
952
+ return;
953
+ }
954
+ if (path.length === 0) throw configPatchModeError("input must contain at least one config key.");
955
+ operations.push(buildApplyValueOperation({
956
+ path,
957
+ value
958
+ }));
959
+ };
960
+ visit(params.patch, []);
961
+ const unusedReplacePath = params.replacePaths.find((path) => !matchedReplacePathKeys.has(pathKey(path)));
962
+ if (unusedReplacePath) throw configPatchModeError(`--replace-path ${toDotPath(unusedReplacePath)} did not match any value in the input patch.`);
963
+ if (operations.length === 0) throw configPatchModeError("input patch did not contain any config updates.");
964
+ return operations;
965
+ }
966
+ function collectSecretRefsFromUnknown(value) {
967
+ const refs = [];
968
+ const visit = (candidate) => {
969
+ const ref = coerceSecretRef(candidate);
970
+ if (ref) {
971
+ refs.push(ref);
972
+ return;
973
+ }
974
+ if (Array.isArray(candidate)) {
975
+ for (const entry of candidate) visit(entry);
976
+ return;
977
+ }
978
+ if (isPlainRecord(candidate)) for (const entry of Object.values(candidate)) visit(entry);
979
+ };
980
+ visit(value);
981
+ return refs;
982
+ }
983
+ function modeError(message) {
984
+ return /* @__PURE__ */ new Error(`config set mode error: ${message}`);
985
+ }
986
+ function buildSingleSetOperations(params) {
987
+ const pathProvided = typeof params.path === "string" && params.path.trim().length > 0;
988
+ const parsedPath = pathProvided ? parseRequiredPath(params.path) : null;
989
+ const strictJson = Boolean(params.opts.strictJson || params.opts.json);
990
+ const modeResolution = resolveConfigSetMode({
991
+ hasBatchMode: false,
992
+ hasRefBuilderOptions: hasRefBuilderOptions(params.opts),
993
+ hasProviderBuilderOptions: hasProviderBuilderOptions(params.opts),
994
+ strictJson
995
+ });
996
+ if (!modeResolution.ok) throw modeError(modeResolution.error);
997
+ if (modeResolution.mode === "ref_builder") {
998
+ if (!pathProvided || !parsedPath) throw modeError("ref builder mode requires <path>.");
999
+ if (params.value !== void 0) throw modeError("ref builder mode does not accept <value>.");
1000
+ if (!params.opts.refProvider || !params.opts.refSource || !params.opts.refId) throw modeError("ref builder mode requires --ref-provider <alias>, --ref-source <env|file|exec>, and --ref-id <id>.");
1001
+ return [buildRefAssignmentOperation({
1002
+ requestedPath: parsedPath,
1003
+ ref: parseSecretRefBuilder({
1004
+ provider: params.opts.refProvider,
1005
+ source: params.opts.refSource,
1006
+ id: params.opts.refId,
1007
+ fieldPrefix: "ref"
1008
+ }),
1009
+ inputMode: "builder"
1010
+ })];
1011
+ }
1012
+ if (modeResolution.mode === "provider_builder") {
1013
+ if (!pathProvided || !parsedPath) throw modeError("provider builder mode requires <path>.");
1014
+ if (params.value !== void 0) throw modeError("provider builder mode does not accept <value>.");
1015
+ const alias = parseProviderAliasPath(parsedPath);
1016
+ return [{
1017
+ inputMode: "builder",
1018
+ requestedPath: parsedPath,
1019
+ setPath: parsedPath,
1020
+ value: buildProviderFromBuilder(params.opts),
1021
+ schemaValidated: true,
1022
+ touchedProviderAlias: alias
1023
+ }];
1024
+ }
1025
+ if (!pathProvided || !parsedPath) throw modeError("value/json mode requires <path> when batch mode is not used.");
1026
+ if (params.value === void 0) throw modeError("value/json mode requires <value>.");
1027
+ return [buildValueAssignmentOperation({
1028
+ requestedPath: parsedPath,
1029
+ value: parseValue(params.value, { strictJson }),
1030
+ inputMode: modeResolution.mode === "json" ? "json" : "value"
1031
+ })];
1032
+ }
1033
+ function collectDryRunRefs(params) {
1034
+ const refsByKey = /* @__PURE__ */ new Map();
1035
+ const targetPaths = /* @__PURE__ */ new Set();
1036
+ const providerAliases = /* @__PURE__ */ new Set();
1037
+ let includeAllDiscoveredRefs = false;
1038
+ for (const operation of params.operations) {
1039
+ if (operation.assignedRef) refsByKey.set(secretRefKey(operation.assignedRef), operation.assignedRef);
1040
+ for (const ref of collectSecretRefsFromUnknown(operation.value)) refsByKey.set(secretRefKey(ref), ref);
1041
+ if (operation.touchedSecretTargetPath) targetPaths.add(operation.touchedSecretTargetPath);
1042
+ if (operation.touchedProviderAlias) providerAliases.add(operation.touchedProviderAlias);
1043
+ includeAllDiscoveredRefs ||= operation.touchesAllSecretRefs === true;
1044
+ }
1045
+ if (!includeAllDiscoveredRefs && targetPaths.size === 0 && providerAliases.size === 0) return [...refsByKey.values()];
1046
+ const defaults = params.config.secrets?.defaults;
1047
+ for (const target of discoverConfigSecretTargets(params.config)) {
1048
+ const { ref } = resolveSecretInputRef({
1049
+ value: target.value,
1050
+ refValue: target.refValue,
1051
+ defaults
1052
+ });
1053
+ if (!ref) continue;
1054
+ if (includeAllDiscoveredRefs || targetPaths.has(target.path) || providerAliases.has(ref.provider)) refsByKey.set(secretRefKey(ref), ref);
1055
+ }
1056
+ return [...refsByKey.values()];
1057
+ }
1058
+ async function collectDryRunResolvabilityErrors(params) {
1059
+ const failures = [];
1060
+ for (const ref of params.refs) try {
1061
+ await resolveSecretRefValue(ref, {
1062
+ config: params.config,
1063
+ env: process.env
1064
+ });
1065
+ } catch (err) {
1066
+ failures.push({
1067
+ kind: "resolvability",
1068
+ message: String(err),
1069
+ ref: `${ref.source}:${ref.provider}:${ref.id}`
1070
+ });
1071
+ }
1072
+ return failures;
1073
+ }
1074
+ function collectDryRunStaticErrorsForSkippedExecRefs(params) {
1075
+ const failures = [];
1076
+ for (const ref of params.refs) {
1077
+ const id = ref.id.trim();
1078
+ const refLabel = `${ref.source}:${ref.provider}:${id}`;
1079
+ if (!id) {
1080
+ failures.push({
1081
+ kind: "resolvability",
1082
+ message: "Error: Secret reference id is empty.",
1083
+ ref: refLabel
1084
+ });
1085
+ continue;
1086
+ }
1087
+ if (!isValidExecSecretRefId(id)) {
1088
+ failures.push({
1089
+ kind: "resolvability",
1090
+ message: `Error: ${formatExecSecretRefIdValidationMessage()} (ref: ${refLabel}).`,
1091
+ ref: refLabel
1092
+ });
1093
+ continue;
1094
+ }
1095
+ const providerConfig = params.config.secrets?.providers?.[ref.provider];
1096
+ if (!providerConfig) {
1097
+ failures.push({
1098
+ kind: "resolvability",
1099
+ message: `Error: Secret provider "${ref.provider}" is not configured (ref: ${refLabel}).`,
1100
+ ref: refLabel
1101
+ });
1102
+ continue;
1103
+ }
1104
+ if (providerConfig.source !== ref.source) failures.push({
1105
+ kind: "resolvability",
1106
+ message: `Error: Secret provider "${ref.provider}" has source "${providerConfig.source}" but ref requests "${ref.source}".`,
1107
+ ref: refLabel
1108
+ });
1109
+ }
1110
+ return failures;
1111
+ }
1112
+ function selectDryRunRefsForResolution(params) {
1113
+ const refsToResolve = [];
1114
+ const skippedExecRefs = [];
1115
+ for (const ref of params.refs) {
1116
+ if (ref.source === "exec" && !params.allowExecInDryRun) {
1117
+ skippedExecRefs.push(ref);
1118
+ continue;
1119
+ }
1120
+ refsToResolve.push(ref);
1121
+ }
1122
+ return {
1123
+ refsToResolve,
1124
+ skippedExecRefs
1125
+ };
1126
+ }
1127
+ function pathStartsWith(path, prefix) {
1128
+ return prefix.every((segment, index) => path[index] === segment);
1129
+ }
1130
+ function formatPluginInstallConfigSetError() {
1131
+ return [
1132
+ "plugins.installs is managed by the plugin index and cannot be edited with config set.",
1133
+ "",
1134
+ "Use plugin commands instead:",
1135
+ ` ${formatCliCommand("daocore plugins install <spec>")}`,
1136
+ ` ${formatCliCommand("daocore plugins update <plugin-id>")}`,
1137
+ ` ${formatCliCommand("daocore plugins uninstall <plugin-id>")}`
1138
+ ].join("\n");
1139
+ }
1140
+ function isAutoManagedMetaPath(path) {
1141
+ return AUTO_MANAGED_CONFIG_META_PATHS.some((managedPath) => pathStartsWith(path, managedPath));
1142
+ }
1143
+ function valueHasAutoManagedChild(value, childPath) {
1144
+ let cursor = value;
1145
+ for (const segment of childPath) {
1146
+ if (cursor === null || typeof cursor !== "object" || Array.isArray(cursor)) return false;
1147
+ if (typeof segment !== "string") return false;
1148
+ const record = cursor;
1149
+ if (!Object.prototype.hasOwnProperty.call(record, segment)) return false;
1150
+ cursor = record[segment];
1151
+ }
1152
+ return cursor !== void 0;
1153
+ }
1154
+ function operationClobbersAncestorChild(operation, managedPath, options) {
1155
+ if (operation.mutation === "delete") return true;
1156
+ const childPath = managedPath.slice(operation.requestedPath.length);
1157
+ if (operation.mutation === "merge" || Boolean(options.merge) && operation.mutation !== "replace") return valueHasAutoManagedChild(operation.value, childPath);
1158
+ return true;
1159
+ }
1160
+ function findAutoManagedMetaTargets(operations, options = {}) {
1161
+ const matches = [];
1162
+ const seen = /* @__PURE__ */ new Set();
1163
+ const record = (path) => {
1164
+ const segments = [...path];
1165
+ const key = toDotPath(segments);
1166
+ if (seen.has(key)) return;
1167
+ seen.add(key);
1168
+ matches.push(segments);
1169
+ };
1170
+ for (const operation of operations) {
1171
+ if (isAutoManagedMetaPath(operation.requestedPath)) {
1172
+ record(operation.requestedPath);
1173
+ continue;
1174
+ }
1175
+ for (const managedPath of AUTO_MANAGED_CONFIG_META_PATHS) {
1176
+ if (operation.requestedPath.length >= managedPath.length) continue;
1177
+ if (!pathStartsWith(managedPath, operation.requestedPath)) continue;
1178
+ if (operationClobbersAncestorChild(operation, managedPath, options)) record(managedPath);
1179
+ }
1180
+ }
1181
+ return matches;
1182
+ }
1183
+ function findAutoManagedMetaUnsetTargets(path) {
1184
+ return findAutoManagedMetaTargets([{
1185
+ inputMode: "json",
1186
+ requestedPath: [...path],
1187
+ setPath: [...path],
1188
+ value: void 0,
1189
+ mutation: "delete"
1190
+ }]);
1191
+ }
1192
+ function formatAutoManagedMetaError(paths) {
1193
+ const targets = paths.map((path) => toDotPath(path));
1194
+ return [
1195
+ `${targets.length === 1 ? targets[0] : targets.join(", ")} is auto-managed by DaoCore and cannot be edited; the value would be overwritten on the next config write.`,
1196
+ "",
1197
+ "These fields are stamped on every config write to record the DaoCore version and timestamp that produced the file."
1198
+ ].join("\n");
1199
+ }
1200
+ async function loadConfigMutationSchema() {
1201
+ try {
1202
+ return structuredClone((await readBestEffortRuntimeConfigSchema()).schema);
1203
+ } catch {
1204
+ return;
1205
+ }
1206
+ }
1207
+ function collectDryRunSchemaErrors(params) {
1208
+ const validated = validateConfigObjectRawWithPlugins(params.config);
1209
+ if (validated.ok) return [];
1210
+ return formatConfigIssueLines(validated.issues, "-", { normalizeRoot: true }).map((message) => ({
1211
+ kind: "schema",
1212
+ message
1213
+ }));
1214
+ }
1215
+ function dedupeDryRunErrors(errors) {
1216
+ const deduped = [];
1217
+ const seen = /* @__PURE__ */ new Set();
1218
+ for (const error of errors) {
1219
+ const key = error.kind === "resolvability" ? `${error.kind}\u0000${error.ref ?? ""}\u0000${error.message}` : `${error.kind}\u0000${error.message}`;
1220
+ if (seen.has(key)) continue;
1221
+ seen.add(key);
1222
+ deduped.push(error);
1223
+ }
1224
+ return deduped;
1225
+ }
1226
+ function formatDryRunFailureMessage(params) {
1227
+ const { errors, skippedExecRefs } = params;
1228
+ const missingPathErrors = errors.filter((error) => error.kind === "missing-path");
1229
+ const schemaErrors = errors.filter((error) => error.kind === "schema");
1230
+ const resolveErrors = errors.filter((error) => error.kind === "resolvability");
1231
+ const lines = [];
1232
+ if (missingPathErrors.length > 0) lines.push(...missingPathErrors.map((error) => error.message));
1233
+ if (schemaErrors.length > 0) {
1234
+ lines.push("Dry run failed: config schema validation failed.");
1235
+ lines.push(...schemaErrors.map((error) => `- ${error.message}`));
1236
+ }
1237
+ if (resolveErrors.length > 0) {
1238
+ lines.push(`Dry run failed: ${resolveErrors.length} SecretRef assignment(s) could not be resolved.`);
1239
+ lines.push(...resolveErrors.slice(0, 5).map((error) => `- ${error.ref ?? "<unknown-ref>"} -> ${error.message}`));
1240
+ if (resolveErrors.length > 5) lines.push(`- ... ${resolveErrors.length - 5} more`);
1241
+ }
1242
+ if (skippedExecRefs > 0) lines.push(`Dry run note: skipped ${skippedExecRefs} exec SecretRef resolvability check(s). Re-run with --allow-exec to execute exec providers during dry-run.`);
1243
+ return lines.join("\n");
1244
+ }
1245
+ async function runConfigOperations(params) {
1246
+ const { runtime, operations, options } = params;
1247
+ if (operations.some((operation) => pathStartsWith(operation.requestedPath, PLUGIN_INSTALL_RECORD_PATH_PREFIX))) throw new Error(formatPluginInstallConfigSetError());
1248
+ const autoManagedMetaTargets = findAutoManagedMetaTargets(operations, { merge: options.merge });
1249
+ if (autoManagedMetaTargets.length > 0) throw new Error(formatAutoManagedMetaError(autoManagedMetaTargets));
1250
+ const snapshot = await loadValidConfig(runtime);
1251
+ const next = structuredClone(snapshot.resolved);
1252
+ const mutationSchema = await loadConfigMutationSchema();
1253
+ const unsetPaths = [];
1254
+ const explicitSetPaths = [];
1255
+ for (const operation of operations) {
1256
+ if (operation.mutation === "delete") {
1257
+ unsetAtPath(next, operation.setPath);
1258
+ unsetPaths.push(operation.setPath);
1259
+ continue;
1260
+ }
1261
+ explicitSetPaths.push(operation.setPath);
1262
+ if (operation.mutation === "merge" || options.merge && operation.mutation !== "replace") mergeAtPath(next, operation.setPath, operation.value, {
1263
+ numericObjectKeys: params.successMode === "patch",
1264
+ schema: mutationSchema
1265
+ });
1266
+ else {
1267
+ assertNonDestructiveReplacement({
1268
+ root: next,
1269
+ path: operation.setPath,
1270
+ value: operation.value,
1271
+ allowReplace: options.replace || operation.mutation === "replace"
1272
+ });
1273
+ setAtPath(next, operation.setPath, operation.value, {
1274
+ numericObjectKeys: params.successMode === "patch",
1275
+ schema: mutationSchema
1276
+ });
1277
+ }
1278
+ }
1279
+ const removedGatewayAuthPaths = pruneInactiveGatewayAuthCredentials({
1280
+ root: next,
1281
+ operations
1282
+ });
1283
+ const nextConfig = normalizeConfigMutationModelRefs(next);
1284
+ const normalizedExplicitSetPaths = explicitSetPaths.map(normalizeConfigMutationExplicitSetPath);
1285
+ const policyIssueLines = formatConfigIssueLines(collectUnsupportedSecretRefPolicyIssues(nextConfig), "", { normalizeRoot: true }).map((line) => line.trim());
1286
+ if (options.dryRun) {
1287
+ const hasJsonMode = operations.some((operation) => operation.inputMode === "json");
1288
+ const hasBuilderMode = operations.some((operation) => operation.inputMode === "builder");
1289
+ const hasUnsetMode = operations.some((operation) => operation.inputMode === "unset");
1290
+ const requiresFullSchemaValidation = operations.some((operation) => operation.inputMode === "unset" || operation.inputMode === "json" && operation.schemaValidated !== true);
1291
+ const selectedDryRunRefs = selectDryRunRefsForResolution({
1292
+ refs: hasJsonMode || hasBuilderMode || hasUnsetMode ? collectDryRunRefs({
1293
+ config: nextConfig,
1294
+ operations
1295
+ }) : [],
1296
+ allowExecInDryRun: Boolean(options.allowExec)
1297
+ });
1298
+ const errors = [];
1299
+ if ((!hasJsonMode || !requiresFullSchemaValidation) && policyIssueLines.length > 0) errors.push(...policyIssueLines.map((message) => ({
1300
+ kind: "schema",
1301
+ message
1302
+ })));
1303
+ if (requiresFullSchemaValidation) errors.push(...collectDryRunSchemaErrors({ config: nextConfig }));
1304
+ if (hasJsonMode || hasBuilderMode || hasUnsetMode) {
1305
+ errors.push(...collectDryRunStaticErrorsForSkippedExecRefs({
1306
+ refs: selectedDryRunRefs.skippedExecRefs,
1307
+ config: nextConfig
1308
+ }));
1309
+ errors.push(...await collectDryRunResolvabilityErrors({
1310
+ refs: selectedDryRunRefs.refsToResolve,
1311
+ config: nextConfig
1312
+ }));
1313
+ }
1314
+ const dedupedErrors = dedupeDryRunErrors(errors);
1315
+ const dryRunResult = {
1316
+ ok: dedupedErrors.length === 0,
1317
+ operations: operations.length,
1318
+ configPath: shortenHomePath(snapshot.path),
1319
+ inputModes: [...new Set(operations.map((operation) => operation.inputMode))],
1320
+ checks: {
1321
+ schema: requiresFullSchemaValidation || policyIssueLines.length > 0,
1322
+ resolvability: hasJsonMode || hasBuilderMode || hasUnsetMode,
1323
+ resolvabilityComplete: (hasJsonMode || hasBuilderMode || hasUnsetMode) && selectedDryRunRefs.skippedExecRefs.length === 0
1324
+ },
1325
+ refsChecked: selectedDryRunRefs.refsToResolve.length,
1326
+ skippedExecRefs: selectedDryRunRefs.skippedExecRefs.length,
1327
+ ...dedupedErrors.length > 0 ? { errors: dedupedErrors } : {}
1328
+ };
1329
+ if (dedupedErrors.length > 0) {
1330
+ if (options.json) throw new ConfigSetDryRunValidationError(dryRunResult);
1331
+ throw new Error(formatDryRunFailureMessage({
1332
+ errors: dedupedErrors,
1333
+ skippedExecRefs: selectedDryRunRefs.skippedExecRefs.length
1334
+ }));
1335
+ }
1336
+ if (options.json) writeRuntimeJson(runtime, dryRunResult);
1337
+ else {
1338
+ if (!dryRunResult.checks.schema && !dryRunResult.checks.resolvability) runtime.log(info("Dry run note: value mode does not run schema/resolvability checks. Use --strict-json, builder flags, or batch mode to enable validation checks."));
1339
+ if (dryRunResult.skippedExecRefs > 0) runtime.log(info(`Dry run note: skipped ${dryRunResult.skippedExecRefs} exec SecretRef resolvability check(s). Re-run with --allow-exec to execute exec providers during dry-run.`));
1340
+ runtime.log(info(`Dry run successful: ${operations.length} update(s) validated against ${shortenHomePath(snapshot.path)}.`));
1341
+ }
1342
+ return;
1343
+ }
1344
+ if (policyIssueLines.length > 0) throw new Error(formatUnsupportedSecretRefPolicyFailureMessage(policyIssueLines));
1345
+ await replaceConfigFile({
1346
+ nextConfig,
1347
+ ...snapshot.hash !== void 0 ? { baseHash: snapshot.hash } : {},
1348
+ ...unsetPaths.length > 0 || explicitSetPaths.length > 0 ? { writeOptions: {
1349
+ ...unsetPaths.length > 0 ? { unsetPaths } : {},
1350
+ ...normalizedExplicitSetPaths.length > 0 ? { explicitSetPaths: normalizedExplicitSetPaths } : {}
1351
+ } } : {}
1352
+ });
1353
+ if (removedGatewayAuthPaths.length > 0) runtime.log(info(`Removed inactive ${removedGatewayAuthPaths.join(", ")} for gateway.auth.mode=${nextConfig.gateway?.auth?.mode ?? "<unset>"}.`));
1354
+ if (params.successMode === "set" && operations.length === 1) {
1355
+ const operation = operations[0];
1356
+ const action = operation?.mutation === "delete" ? "Removed" : "Updated";
1357
+ runtime.log(info(`${action} ${toDotPath(operation?.requestedPath ?? [])}. Restart the gateway to apply.`));
1358
+ return;
1359
+ }
1360
+ if (params.successMode === "set") {
1361
+ runtime.log(info(`Updated ${operations.length} config paths. Restart the gateway to apply.`));
1362
+ return;
1363
+ }
1364
+ runtime.log(info(`Applied ${operations.length} config update(s). Restart the gateway to apply.`));
1365
+ }
1366
+ function handleConfigMutationError(params) {
1367
+ if (params.options.dryRun && params.options.json && params.err instanceof ConfigSetDryRunValidationError) {
1368
+ writeRuntimeJson(params.runtime, params.err.result);
1369
+ params.runtime.exit(1);
1370
+ return;
1371
+ }
1372
+ params.runtime.error(danger(String(params.err)));
1373
+ params.runtime.exit(1);
1374
+ }
1375
+ async function runConfigSet(opts) {
1376
+ const runtime = opts.runtime ?? defaultRuntime;
1377
+ try {
1378
+ const modeResolution = resolveConfigSetMode({
1379
+ hasBatchMode: hasBatchMode(opts.cliOptions),
1380
+ hasRefBuilderOptions: hasRefBuilderOptions(opts.cliOptions),
1381
+ hasProviderBuilderOptions: hasProviderBuilderOptions(opts.cliOptions),
1382
+ strictJson: Boolean(opts.cliOptions.strictJson || opts.cliOptions.json)
1383
+ });
1384
+ if (!modeResolution.ok) throw modeError(modeResolution.error);
1385
+ if (opts.cliOptions.allowExec && !opts.cliOptions.dryRun) throw modeError("--allow-exec requires --dry-run.");
1386
+ if (opts.cliOptions.merge && opts.cliOptions.replace) throw modeError("choose either --merge or --replace, not both.");
1387
+ const batchEntries = parseBatchSource(opts.cliOptions);
1388
+ if (batchEntries) {
1389
+ if (opts.path !== void 0 || opts.value !== void 0) throw modeError("batch mode does not accept <path> or <value> arguments.");
1390
+ }
1391
+ await runConfigOperations({
1392
+ runtime,
1393
+ operations: batchEntries ? parseBatchOperations(batchEntries) : buildSingleSetOperations({
1394
+ path: opts.path,
1395
+ value: opts.value,
1396
+ opts: opts.cliOptions
1397
+ }),
1398
+ options: opts.cliOptions,
1399
+ successMode: "set"
1400
+ });
1401
+ } catch (err) {
1402
+ handleConfigMutationError({
1403
+ err,
1404
+ runtime,
1405
+ options: opts.cliOptions
1406
+ });
1407
+ }
1408
+ }
1409
+ async function runConfigPatch(opts) {
1410
+ const runtime = opts.runtime ?? defaultRuntime;
1411
+ try {
1412
+ if (opts.cliOptions.allowExec && !opts.cliOptions.dryRun) throw configPatchModeError("--allow-exec requires --dry-run.");
1413
+ if (opts.cliOptions.json && !opts.cliOptions.dryRun) throw configPatchModeError("--json requires --dry-run.");
1414
+ await runConfigOperations({
1415
+ runtime,
1416
+ operations: buildConfigPatchOperations({
1417
+ patch: await readConfigPatchInput(opts.cliOptions),
1418
+ replacePaths: parseReplacePaths(opts.cliOptions.replacePath)
1419
+ }),
1420
+ options: {
1421
+ dryRun: opts.cliOptions.dryRun,
1422
+ allowExec: opts.cliOptions.allowExec,
1423
+ json: opts.cliOptions.json
1424
+ },
1425
+ successMode: "patch"
1426
+ });
1427
+ } catch (err) {
1428
+ handleConfigMutationError({
1429
+ err,
1430
+ runtime,
1431
+ options: opts.cliOptions
1432
+ });
1433
+ }
1434
+ }
1435
+ async function runConfigGet(opts) {
1436
+ const runtime = opts.runtime ?? defaultRuntime;
1437
+ try {
1438
+ const parsedPath = parseRequiredPath(opts.path);
1439
+ const res = getAtPath(redactConfigObject((await loadValidConfig(runtime)).config), parsedPath);
1440
+ if (!res.found) {
1441
+ runtime.error(danger(`Config path not found: ${opts.path}. Run ${formatCliCommand("daocore config validate")} to inspect config shape.`));
1442
+ runtime.exit(1);
1443
+ return;
1444
+ }
1445
+ if (opts.json) {
1446
+ writeRuntimeJson(runtime, res.value ?? null);
1447
+ return;
1448
+ }
1449
+ if (typeof res.value === "string" || typeof res.value === "number" || typeof res.value === "boolean") {
1450
+ runtime.log(String(res.value));
1451
+ return;
1452
+ }
1453
+ writeRuntimeJson(runtime, res.value ?? null);
1454
+ } catch (err) {
1455
+ runtime.error(danger(String(err)));
1456
+ runtime.exit(1);
1457
+ }
1458
+ }
1459
+ async function runConfigUnset(opts) {
1460
+ const runtime = opts.runtime ?? defaultRuntime;
1461
+ const cliOptions = opts.cliOptions ?? {};
1462
+ try {
1463
+ if (cliOptions.allowExec && !cliOptions.dryRun) throw new Error("--allow-exec can only be used with --dry-run.");
1464
+ if (cliOptions.json && !cliOptions.dryRun) throw new Error("--json can only be used with --dry-run.");
1465
+ const parsedPath = parseRequiredPath(opts.path);
1466
+ const autoManagedUnsetTargets = findAutoManagedMetaUnsetTargets(parsedPath);
1467
+ if (autoManagedUnsetTargets.length > 0) throw new Error(formatAutoManagedMetaError(autoManagedUnsetTargets));
1468
+ const snapshot = await loadValidConfig(runtime);
1469
+ const next = structuredClone(snapshot.resolved);
1470
+ const unsetResult = unsetAtPath(next, parsedPath);
1471
+ if (!unsetResult.removed) {
1472
+ if (cliOptions.dryRun && cliOptions.json) throw new ConfigSetDryRunValidationError({
1473
+ ok: false,
1474
+ operations: 1,
1475
+ configPath: shortenHomePath(snapshot.path),
1476
+ inputModes: ["unset"],
1477
+ checks: {
1478
+ schema: false,
1479
+ resolvability: false,
1480
+ resolvabilityComplete: false
1481
+ },
1482
+ refsChecked: 0,
1483
+ skippedExecRefs: 0,
1484
+ errors: [{
1485
+ kind: "missing-path",
1486
+ message: `Config path not found: ${opts.path}. Nothing was changed.`
1487
+ }]
1488
+ });
1489
+ runtime.error(danger(`Config path not found: ${opts.path}. Nothing was changed. Run ${formatCliCommand("daocore config get <path>")} first if you are unsure of the path.`));
1490
+ runtime.exit(1);
1491
+ return;
1492
+ }
1493
+ if (cliOptions.dryRun) {
1494
+ await runConfigOperations({
1495
+ runtime,
1496
+ operations: [buildUnsetOperation(parsedPath)],
1497
+ options: cliOptions,
1498
+ successMode: "set"
1499
+ });
1500
+ return;
1501
+ }
1502
+ await replaceConfigFile({
1503
+ nextConfig: next,
1504
+ ...snapshot.hash !== void 0 ? { baseHash: snapshot.hash } : {},
1505
+ ...unsetResult.leafContainer === "array" ? {} : { writeOptions: { unsetPaths: [parsedPath] } }
1506
+ });
1507
+ runtime.log(info(`Removed ${opts.path}. Restart the gateway to apply.`));
1508
+ } catch (err) {
1509
+ handleConfigMutationError({
1510
+ err,
1511
+ runtime,
1512
+ options: cliOptions
1513
+ });
1514
+ }
1515
+ }
1516
+ async function runConfigFile(opts) {
1517
+ const runtime = opts.runtime ?? defaultRuntime;
1518
+ try {
1519
+ const snapshot = await readConfigFileSnapshot();
1520
+ runtime.log(shortenHomePath(snapshot.path));
1521
+ } catch (err) {
1522
+ runtime.error(danger(String(err)));
1523
+ runtime.exit(1);
1524
+ }
1525
+ }
1526
+ async function buildCliConfigSchema() {
1527
+ const schema = structuredClone((await readBestEffortRuntimeConfigSchema()).schema);
1528
+ schema.properties = {
1529
+ $schema: { type: "string" },
1530
+ ...schema.properties
1531
+ };
1532
+ return schema;
1533
+ }
1534
+ async function runConfigSchema(opts = {}) {
1535
+ const runtime = opts.runtime ?? defaultRuntime;
1536
+ try {
1537
+ writeRuntimeJson(runtime, await buildCliConfigSchema());
1538
+ } catch (err) {
1539
+ runtime.error(danger(`Config schema error: ${String(err)}`));
1540
+ runtime.exit(1);
1541
+ }
1542
+ }
1543
+ async function runConfigValidate(opts = {}) {
1544
+ const runtime = opts.runtime ?? defaultRuntime;
1545
+ let outputPath = CONFIG_PATH ?? "daocore.json";
1546
+ try {
1547
+ const snapshot = await readConfigFileSnapshot();
1548
+ outputPath = snapshot.path;
1549
+ const shortPath = shortenHomePath(outputPath);
1550
+ if (!snapshot.exists) {
1551
+ if (opts.json) writeRuntimeJson(runtime, {
1552
+ valid: false,
1553
+ path: outputPath,
1554
+ error: "file not found"
1555
+ }, 0);
1556
+ else {
1557
+ runtime.error(danger(`Config file not found: ${shortPath}`));
1558
+ runtime.error(`Create one with ${formatCliCommand("daocore onboard")} or run ${formatCliCommand("daocore doctor --fix")}.`);
1559
+ }
1560
+ runtime.exit(1);
1561
+ return;
1562
+ }
1563
+ if (!snapshot.valid) {
1564
+ const issues = normalizeConfigIssues(snapshot.issues);
1565
+ if (opts.json) writeRuntimeJson(runtime, {
1566
+ valid: false,
1567
+ path: outputPath,
1568
+ issues
1569
+ });
1570
+ else {
1571
+ runtime.error(danger(`DaoCore config is invalid: ${shortPath}`));
1572
+ for (const line of formatConfigIssueLines(issues, danger("×"), { normalizeRoot: true })) runtime.error(` ${line}`);
1573
+ runtime.error("");
1574
+ runtime.error(formatDoctorHint("to repair, or fix the keys above manually."));
1575
+ runtime.error(`Inspect with ${formatCliCommand("daocore config validate")}.`);
1576
+ }
1577
+ runtime.exit(1);
1578
+ return;
1579
+ }
1580
+ if (opts.json) writeRuntimeJson(runtime, {
1581
+ valid: true,
1582
+ path: outputPath
1583
+ }, 0);
1584
+ else runtime.log(success(`Config valid: ${shortPath}`));
1585
+ } catch (err) {
1586
+ if (opts.json) writeRuntimeJson(runtime, {
1587
+ valid: false,
1588
+ path: outputPath,
1589
+ error: String(err)
1590
+ }, 0);
1591
+ else runtime.error(danger(`Config validation error: ${String(err)}`));
1592
+ runtime.exit(1);
1593
+ }
1594
+ }
1595
+ function registerConfigCli(program) {
1596
+ const cmd = program.command("config").description("Non-interactive config helpers (get/set/patch/unset/file/schema/validate). Run without subcommand for guided setup.").addHelpText("after", () => `\n${theme.muted("Docs:")} ${formatDocsLink("/cli/config", "docs.openclaw.ai/cli/config")}\n`).option("--section <section>", "Configuration sections for guided setup (repeatable). Use with no subcommand.", (value, previous) => [...previous, value], []).action(async (opts) => {
1597
+ const { configureCommandFromSectionsArg } = await import("./configure-M1VU0h9O.js");
1598
+ await configureCommandFromSectionsArg(opts.section, defaultRuntime);
1599
+ });
1600
+ cmd.command("get").description("Get a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--json", "Output JSON", false).action(async (path, opts) => {
1601
+ await runConfigGet({
1602
+ path,
1603
+ json: Boolean(opts.json)
1604
+ });
1605
+ });
1606
+ setCommandJsonMode(cmd.command("set"), "parse-only").description(CONFIG_SET_DESCRIPTION).argument("[path]", "Config path (dot or bracket notation)").argument("[value]", "Value (JSON/JSON5 or raw string)").option("--strict-json", "Strict JSON parsing (error instead of raw string fallback)", false).option("--json", "Legacy alias for --strict-json", false).option("--dry-run", "Validate changes without writing daocore.json (checks run in builder/json/batch modes; exec SecretRefs are skipped unless --allow-exec is set)", false).option("--allow-exec", "Dry-run only: allow exec SecretRef resolvability checks (may execute provider commands)", false).option("--merge", "Merge object/map values instead of replacing the target path", false).option("--replace", "Allow full replacement of protected map/list paths such as agents.defaults.models", false).option("--ref-provider <alias>", "SecretRef builder: provider alias").option("--ref-source <source>", "SecretRef builder: source (env|file|exec)").option("--ref-id <id>", "SecretRef builder: ref id").option("--provider-source <source>", "Provider builder: source (env|file|exec)").option("--provider-allowlist <envVar>", "Provider builder (env): allowlist entry (repeatable)", (value, previous) => [...previous, value], []).option("--provider-path <path>", "Provider builder (file): path").option("--provider-mode <mode>", "Provider builder (file): mode (singleValue|json)").option("--provider-timeout-ms <ms>", "Provider builder (file|exec): timeout ms").option("--provider-max-bytes <bytes>", "Provider builder (file): max bytes").option("--provider-command <path>", "Provider builder (exec): absolute command path").option("--provider-arg <arg>", "Provider builder (exec): command arg (repeatable)", (value, previous) => [...previous, value], []).option("--provider-no-output-timeout-ms <ms>", "Provider builder (exec): no-output timeout ms").option("--provider-max-output-bytes <bytes>", "Provider builder (exec): max output bytes").option("--provider-json-only", "Provider builder (exec): require JSON output", false).option("--provider-env <key=value>", "Provider builder (exec): env assignment (repeatable)", (value, previous) => [...previous, value], []).option("--provider-pass-env <envVar>", "Provider builder (exec): pass host env var (repeatable)", (value, previous) => [...previous, value], []).option("--provider-trusted-dir <path>", "Provider builder (exec): trusted directory (repeatable)", (value, previous) => [...previous, value], []).option("--provider-allow-insecure-path", "Provider builder (file|exec): bypass strict path permission checks", false).option("--provider-allow-symlink-command", "Provider builder (exec): allow command symlink path", false).option("--batch-json <json>", "Batch mode: JSON array of set operations").option("--batch-file <path>", "Batch mode: read JSON array of set operations from file").action(async (path, value, opts) => {
1607
+ await runConfigSet({
1608
+ path,
1609
+ value,
1610
+ cliOptions: opts
1611
+ });
1612
+ });
1613
+ cmd.command("patch").description(CONFIG_PATCH_DESCRIPTION).option("--file <path>", "Read a JSON5 config patch object from file").option("--stdin", "Read a JSON5 config patch object from stdin", false).option("--dry-run", "Validate changes without writing daocore.json (checks schema and SecretRef resolvability; exec SecretRefs are skipped unless --allow-exec is set)", false).option("--allow-exec", "Dry-run only: allow exec SecretRef resolvability checks (may execute provider commands)", false).option("--json", "Output dry-run result as JSON", false).option("--replace-path <path>", "Replace the object or array at this dot/bracket path instead of recursively applying it (repeatable)", (value, previous) => [...previous, value], []).action(async (opts) => {
1614
+ await runConfigPatch({ cliOptions: opts });
1615
+ });
1616
+ cmd.command("unset").description("Remove a config value by dot path").argument("<path>", "Config path (dot or bracket notation)").option("--dry-run", "validate the removal without writing the config file").option("--allow-exec", "allow exec SecretRef providers during --dry-run").option("--json", "print dry-run result as JSON").action(async (path, options) => {
1617
+ await runConfigUnset({
1618
+ path,
1619
+ cliOptions: options
1620
+ });
1621
+ });
1622
+ cmd.command("file").description("Print the active config file path").action(async () => {
1623
+ await runConfigFile({});
1624
+ });
1625
+ cmd.command("schema").description("Print the JSON schema for daocore.json").action(async () => {
1626
+ await runConfigSchema({});
1627
+ });
1628
+ cmd.command("validate").description("Validate the current config against the schema without starting the gateway").option("--json", "Output validation result as JSON", false).action(async (opts) => {
1629
+ await runConfigValidate({ json: Boolean(opts.json) });
1630
+ });
1631
+ }
1632
+ //#endregion
1633
+ export { registerConfigCli, runConfigFile, runConfigGet, runConfigPatch, runConfigSchema, runConfigSet, runConfigUnset, runConfigValidate };