@gaodefa/daocore 2026.5.25 → 2026.5.26

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 (1740) 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/control-plane/manager.d.ts +2 -1
  10. package/dist/acp-runtime-D9YQyGax.js +26 -0
  11. package/dist/acp-spawn-CWciV70C.js +1275 -0
  12. package/dist/acp-spawn-DjaS4O_V.js +2 -0
  13. package/dist/acp-stateful-target-driver-ByvGCj_i.js +89 -0
  14. package/dist/action-kill-DXeOA6YH.js +33 -0
  15. package/dist/action-runtime-BjQnG6qb.js +469 -0
  16. package/dist/action-runtime-api-a73ODsYk.js +2 -0
  17. package/dist/action-send-B_F3xwIu.js +39 -0
  18. package/dist/action-spawn-BFiW7gZJ.js +47 -0
  19. package/dist/actions-Bi7eE2I6.js +161 -0
  20. package/dist/actions.runtime-DmtbCLld.js +5 -0
  21. package/dist/agent-BOI4AdYK.js +3 -0
  22. package/dist/agent-DQPyDWP5.js +2 -0
  23. package/dist/agent-command-ClCxEw82.js +1367 -0
  24. package/dist/agent-command-DKqx29vm.d.ts +105 -0
  25. package/dist/agent-components.runtime-C5wxy4D_.js +10 -0
  26. package/dist/agent-components.runtime.js +1 -1
  27. package/dist/agent-harness-BsBVO7nU.d.ts +146 -0
  28. package/dist/agent-harness-runtime-CkdXIMHI.js +180 -0
  29. package/dist/agent-harness-runtime-KHFO733B.d.ts +691 -0
  30. package/dist/agent-harness-task-runtime-CDtn5RjX.js +140 -0
  31. package/dist/agent-runner-execution-lXW8y0i2.js +1713 -0
  32. package/dist/agent-runner-utils-OdM9hLGt.js +266 -0
  33. package/dist/agent-runner.runtime-fZnfhCJI.js +3455 -0
  34. package/dist/agent-runner.runtime.js +1 -1
  35. package/dist/agent-runtime-Dp0RDnX1.js +229 -0
  36. package/dist/agent-via-gateway-vsBf3nqZ.js +463 -0
  37. package/dist/agents/pi-embedded-runner/tool-split.d.ts +1 -1
  38. package/dist/agents.commands.add-C94vGOFH.js +304 -0
  39. package/dist/agents.commands.delete-D-p2NL4v.js +128 -0
  40. package/dist/api-BZ2QC7WM.js +2 -0
  41. package/dist/api-BmYK5Dge.js +6 -0
  42. package/dist/api-CGdlHCIH.js +3 -0
  43. package/dist/api-CGjlsXii.js +134 -0
  44. package/dist/api-DGqp6wZo.js +2 -0
  45. package/dist/api-DKpE-zdY.js +639 -0
  46. package/dist/api-DNyivJXK.d.ts +52 -0
  47. package/dist/apply-GK4z5lYw.js +54 -0
  48. package/dist/apply-_yxsBkiR.js +41 -0
  49. package/dist/approval-handler.runtime-C7d9p3DG.js +130 -0
  50. package/dist/assistant-B-h25aRy.js +291 -0
  51. package/dist/attachment-normalize-DWZ4Nrn-.js +225 -0
  52. package/dist/attempt-execution-BY9C1EOu.js +558 -0
  53. package/dist/attempt-execution.runtime-SR7eolDa.js +3 -0
  54. package/dist/attempt-execution.runtime.js +1 -1
  55. package/dist/attempt-execution.shared-h6uYmkJz.js +38 -0
  56. package/dist/attempt.prompt-helpers-COc5m_TZ.js +475 -0
  57. package/dist/attempt.tool-run-context-CAtfgOqC.js +2094 -0
  58. package/dist/auth-BdkNYTYU.js +541 -0
  59. package/dist/banner-0TOO6XHd.js +397 -0
  60. package/dist/banner-DTHug6Ey.js +2 -0
  61. package/dist/binding-routing-BJ_A83Nl.js +113 -0
  62. package/dist/binding-targets-D5dmPh4R.js +121 -0
  63. package/dist/bot-DX1uG3P-.js +7894 -0
  64. package/dist/bot-deps-BpaYejaN.js +2 -0
  65. package/dist/bot-deps-CKFDy5y3.js +747 -0
  66. package/dist/bot-message-context.runtime-BKOeRg34.js +7 -0
  67. package/dist/bot-message-context.runtime.js +1 -1
  68. package/dist/bot-message-context.session.runtime-xgZdFv6P.js +12 -0
  69. package/dist/bot-message-context.session.runtime.js +1 -1
  70. package/dist/bot-native-commands.delivery.runtime-DDMQrRfJ.js +4 -0
  71. package/dist/bot-native-commands.delivery.runtime.js +1 -1
  72. package/dist/bot-native-commands.runtime-CVVvUz0h.js +13 -0
  73. package/dist/bot-native-commands.runtime.js +1 -1
  74. package/dist/bridge-server-37OWsDZc.js +113 -0
  75. package/dist/browser-cli-BC_6aZJV.js +2 -0
  76. package/dist/browser-cli-Dg1ipmgf.js +230 -0
  77. package/dist/browser-cli-actions-input-B0QuzzSW.js +473 -0
  78. package/dist/browser-cli-actions-observe-C246bas5.js +81 -0
  79. package/dist/browser-cli-debug-F64e_v4B.js +137 -0
  80. package/dist/browser-cli-inspect-Srn6eWjO.js +104 -0
  81. package/dist/browser-cli-manage-CaZ97-Me.js +443 -0
  82. package/dist/browser-cli-resize-CUR20fvZ.js +26 -0
  83. package/dist/browser-cli-shared-BhphnFVo.js +50 -0
  84. package/dist/browser-cli-state-CzaNXNWF.js +337 -0
  85. package/dist/browser-control-auth-DTY0Wx2B.js +2 -0
  86. package/dist/browser-profiles-BDGPPDJ7.js +2 -0
  87. package/dist/browser-runtime-aqBKI8Oi.js +384 -0
  88. package/dist/build-CG7aTzO9.js +257 -0
  89. package/dist/build-info.json +3 -3
  90. package/dist/bundled/boot-md/handler.js +2 -2
  91. package/dist/bundled/session-memory/handler.js +1 -1
  92. package/dist/bundled-channel-config-schema-vrKpzJVf.d.ts +3163 -0
  93. package/dist/call-Za47o1YZ.d.ts +43 -0
  94. package/dist/canvas-host/a2ui/.bundle.hash +1 -1
  95. package/dist/capability-cli-BhF26gVm.js +1782 -0
  96. package/dist/channel-5RHqx1Ge.d.ts +26 -0
  97. package/dist/channel-5_XS0Mss.js +508 -0
  98. package/dist/channel-7L-vyWOO.js +362 -0
  99. package/dist/channel-B07xPK0L.d.ts +114 -0
  100. package/dist/channel-B9b-GX-e.d.ts +14 -0
  101. package/dist/channel-BBWX_bA0.d.ts +7 -0
  102. package/dist/channel-BVxTyJ0I.js +376 -0
  103. package/dist/channel-BWIsr1r-.js +808 -0
  104. package/dist/channel-Ba0p4xM-.js +1134 -0
  105. package/dist/channel-Bi2nTop1.js +481 -0
  106. package/dist/channel-Bj29iFgF.js +740 -0
  107. package/dist/channel-Bl8tKAuG.d.ts +427 -0
  108. package/dist/channel-Bqy7BYGm.d.ts +28 -0
  109. package/dist/channel-BvzHMdKo.d.ts +8 -0
  110. package/dist/channel-C6G6-tH6.js +562 -0
  111. package/dist/channel-CBhuuq-_.js +2126 -0
  112. package/dist/channel-CMmVpcnl.js +867 -0
  113. package/dist/channel-COc7idAe.js +653 -0
  114. package/dist/channel-CcsuLAYt.d.ts +49 -0
  115. package/dist/channel-CjfuHhSU.js +1556 -0
  116. package/dist/channel-Cquy73C-.js +1249 -0
  117. package/dist/channel-Cu7Jxm_X.d.ts +104 -0
  118. package/dist/channel-CzvuskEn.js +955 -0
  119. package/dist/channel-D6u-243v.js +1777 -0
  120. package/dist/channel-DId5JNlc.d.ts +47 -0
  121. package/dist/channel-DR8PbP31.js +238 -0
  122. package/dist/channel-DUYRu5km.d.ts +7 -0
  123. package/dist/channel-DUZ0s98I.js +1496 -0
  124. package/dist/channel-DXelghSl.d.ts +8 -0
  125. package/dist/channel-FhfE8D-t.d.ts +6 -0
  126. package/dist/channel-PEX_yYEO.d.ts +64 -0
  127. package/dist/channel-aWqPl-K4.d.ts +106 -0
  128. package/dist/channel-actions.runtime-BzEqt_Va.js +265 -0
  129. package/dist/channel-actions.runtime.js +1 -1
  130. package/dist/channel-cSdO0kAq.d.ts +8 -0
  131. package/dist/channel-core-ClgodQav.d.ts +6 -0
  132. package/dist/channel-core-DDZnTvT6.js +5 -0
  133. package/dist/channel-entry-contract-Bzkb_oJX.d.ts +112 -0
  134. package/dist/channel-inbound-C2wLEE7Q.js +80 -0
  135. package/dist/channel-lifecycle-DCTZ2J_8.d.ts +126 -0
  136. package/dist/channel-pairing-pKisqGWj.d.ts +58 -0
  137. package/dist/channel-plugin-runtime-B8AWkA0i.js +998 -0
  138. package/dist/channel-plugin-runtime-ntEeH9SC.d.ts +7 -0
  139. package/dist/channel-runtime-CciKN6E5.js +408 -0
  140. package/dist/channel-za2kUUnL.d.ts +12 -0
  141. package/dist/channel.runtime-BQN8Bkb0.js +254 -0
  142. package/dist/channel.runtime-BXeGEvv7.js +21009 -0
  143. package/dist/channel.runtime-C40ILulM.js +1008 -0
  144. package/dist/channel.runtime-CJ2DSojv.js +733 -0
  145. package/dist/channel.runtime-CUaygROD.js +652 -0
  146. package/dist/channel.runtime-CcCbJhDb.js +88 -0
  147. package/dist/channel.runtime-DJbKu9D3.js +4 -0
  148. package/dist/channel.runtime-DgRuSo5T.js +109 -0
  149. package/dist/channel.runtime-tRXUD2p2.js +2528 -0
  150. package/dist/channel.setup-3aVku-g-.js +1098 -0
  151. package/dist/channel.setup-Cau-V9UT.d.ts +7 -0
  152. package/dist/channel.setup-DT7Z9egu.js +343 -0
  153. package/dist/channel.setup-DhlkGTJV.js +10 -0
  154. package/dist/channel.setup-P5V7jWHY.d.ts +6 -0
  155. package/dist/channel.setup-x333W0eZ.d.ts +8 -0
  156. package/dist/chat-D3LWYymW.js +2666 -0
  157. package/dist/chrome--ATU1T0X.js +1503 -0
  158. package/dist/cli/run-main.js +9 -9
  159. package/dist/cli-D8hIXnS1.js +1341 -0
  160. package/dist/cli-backend-C1JA33SE.d.ts +5 -0
  161. package/dist/cli-backend-D8WmqNqJ.d.ts +5 -0
  162. package/dist/cli-compaction-jmi3u2HG.js +347 -0
  163. package/dist/cli-daS2Mzjd.d.ts +20 -0
  164. package/dist/cli-metadata-Cy9MEdPv.js +22 -0
  165. package/dist/cli-runner-DuT8oeZF.js +540 -0
  166. package/dist/cli-runner-DvKgnkCL.js +2 -0
  167. package/dist/cli-runner.runtime-B-aD16MD.js +4 -0
  168. package/dist/cli-runner.runtime-DofcKX1U.js +3 -0
  169. package/dist/cli-runner.runtime.js +1 -1
  170. package/dist/cli-shared-BFZytJBA.d.ts +20 -0
  171. package/dist/cli-startup-metadata.json +13 -13
  172. package/dist/client-B5IcAlfB.js +650 -0
  173. package/dist/client-adapter-CXA67h2E.js +897 -0
  174. package/dist/client-factory-aY6TuKfQ.js +9 -0
  175. package/dist/command-auth-DS9XgXEG.js +135 -0
  176. package/dist/command-execution-startup-DQOLt5Sz.js +87 -0
  177. package/dist/command-handlers-DqxF-IM9.js +1609 -0
  178. package/dist/command-registry-BSVx1oOc.js +4 -0
  179. package/dist/command-registry-CsPIOiQ3.js +9 -0
  180. package/dist/command-registry-core-Bzu5ff5F.js +110 -0
  181. package/dist/command-status.runtime-MKsizBC-.js +90 -0
  182. package/dist/command-status.runtime.js +1 -1
  183. package/dist/commands-B6Y6rqal.d.ts +113 -0
  184. package/dist/commands-acp-ClJofWty.js +74 -0
  185. package/dist/commands-compact.runtime-7VqYX4tS.js +10 -0
  186. package/dist/commands-compact.runtime.js +1 -1
  187. package/dist/commands-handlers.runtime-Dfqf_Oyp.js +6154 -0
  188. package/dist/commands-handlers.runtime.js +1 -1
  189. package/dist/commands-status-CRaEj9Vf.js +16 -0
  190. package/dist/commands-status-uDaqCP2F.js +3 -0
  191. package/dist/commands-status.runtime-uDaqCP2F.js +3 -0
  192. package/dist/commands-status.runtime.js +1 -1
  193. package/dist/commands-subagents-control.runtime-BaYcGLtc.js +2 -0
  194. package/dist/commands-subagents-control.runtime-C4xMpLed.js +3 -0
  195. package/dist/commands-subagents-control.runtime.js +1 -1
  196. package/dist/commands-system-prompt-C3lzz7wW.js +162 -0
  197. package/dist/commands-system-prompt-DpiW5FkQ.js +2 -0
  198. package/dist/commands.runtime-l4fGcB5c.js +176 -0
  199. package/dist/commands.runtime.js +1 -1
  200. package/dist/commitments/runtime.js +1 -1
  201. package/dist/compact-Dq0mi-y_.js +480 -0
  202. package/dist/compact-voJdoXm-.js +1141 -0
  203. package/dist/compact.runtime-BNLPSDQQ.js +12 -0
  204. package/dist/compact.runtime.js +1 -1
  205. package/dist/completion-cli-qHUelvvd.js +315 -0
  206. package/dist/computer-use-dP3FCUtq.js +367 -0
  207. package/dist/config-BDGPPDJ7.js +2 -0
  208. package/dist/config-Dg3sgjXu.js +373 -0
  209. package/dist/config-cli-INHPnZOG.js +1633 -0
  210. package/dist/config-mutations-CAgnXnDt.js +159 -0
  211. package/dist/config-schema-BkkovNaj.d.ts +20 -0
  212. package/dist/configure-M1VU0h9O.js +3 -0
  213. package/dist/configure.commands-CM8RXyn3.js +1251 -0
  214. package/dist/configure.commands-PvOJd4nu.js +2 -0
  215. package/dist/context-engine-host-compat-D7I7Q63Z.js +288 -0
  216. package/dist/context-engine-host-compat-DGHUiQUV.js +2 -0
  217. package/dist/context-engine-lifecycle-Zsi-S6qy.js +1274 -0
  218. package/dist/contracts-testkit-Ch7UfUw6.d.ts +145 -0
  219. package/dist/control-auth-BKUTwIvH.js +114 -0
  220. package/dist/control-service-CKUzEAa0.js +145 -0
  221. package/dist/control-ui/assets/agents-CUjpwxUf.js +1008 -0
  222. package/dist/control-ui/assets/channel-config-extras-Dd4z5RQ8.js +2 -0
  223. package/dist/control-ui/assets/channels-554ojNKp.js +367 -0
  224. package/dist/control-ui/assets/cron-BAd2PXq5.js +1013 -0
  225. package/dist/control-ui/assets/debug-BGCb3cT4.js +97 -0
  226. package/dist/control-ui/assets/index-BXico1DI.js +7370 -0
  227. package/dist/control-ui/assets/instances-EkBPy6m3.js +57 -0
  228. package/dist/control-ui/assets/logs-zcOeZekZ.js +74 -0
  229. package/dist/control-ui/assets/nodes-BymRwDa6.js +436 -0
  230. package/dist/control-ui/assets/sessions-C_oSuy7x.js +399 -0
  231. package/dist/control-ui/assets/skills-BVjEetcV.js +314 -0
  232. package/dist/control-ui/assets/skills-shared-weS2ZYM5.js +11 -0
  233. package/dist/control-ui/index.html +1 -1
  234. package/dist/control-ui/sw.js +1 -1
  235. package/dist/conversation-binding-runtime-rXAYUZyM.js +4 -0
  236. package/dist/conversation-runtime-CV0pSg81.js +31 -0
  237. package/dist/core-BV0irASW.js +282 -0
  238. package/dist/core-DIjsbXou.d.ts +224 -0
  239. package/dist/core-api-CyhjZVzn.js +5 -0
  240. package/dist/core-api-YdHGjff8.js +2 -0
  241. package/dist/crestodian/crestodian.js +1 -1
  242. package/dist/crestodian/rescue-message.js +1 -1
  243. package/dist/crestodian-n5FVHIW5.js +55 -0
  244. package/dist/daocore-runtime-DhfJoXrT.d.ts +151 -0
  245. package/dist/daocore-tools-CXDZ1Xhe.js +11727 -0
  246. package/dist/dashboard-CeQV6L1K.js +263 -0
  247. package/dist/delivery-D7LfafSk.js +1002 -0
  248. package/dist/dev-BSY4rs1s.js +97 -0
  249. package/dist/dialogue-DWFnjTiN.js +37 -0
  250. package/dist/dir-fetch-tool-BnlEyfZh.js +565 -0
  251. package/dist/dir-list-tool-Blhg_vTH.js +100 -0
  252. package/dist/direct-dm-DJPIaf5J.js +64 -0
  253. package/dist/directive-handling.fast-lane-DGV6PZYZ.js +68 -0
  254. package/dist/directive-handling.impl-CTDwclQa.js +818 -0
  255. package/dist/directive-handling.impl-_zI0_GsT.js +2 -0
  256. package/dist/directive-handling.model-selection-C8lG4FHQ.js +122 -0
  257. package/dist/directive-handling.persist.runtime-CmLb1evR.js +263 -0
  258. package/dist/directive-handling.persist.runtime.js +1 -1
  259. package/dist/dispatch-DvZRbIrc.js +1640 -0
  260. package/dist/dispatch-acp-transcript.runtime-PehNIsnR.js +40 -0
  261. package/dist/dispatch-acp-transcript.runtime.js +1 -1
  262. package/dist/dispatch-acp.runtime-Dg8ft-Ve.js +18 -0
  263. package/dist/dispatch-acp.runtime.js +1 -1
  264. package/dist/doctor-DJFM3lrT.js +6 -0
  265. package/dist/doctor-_ob4EiVf.js +2 -0
  266. package/dist/doctor-config-flow-D6iEk-en.js +1741 -0
  267. package/dist/doctor-core-checks-CCfWWL1-.js +573 -0
  268. package/dist/doctor-core-checks-CqkHUVcZ.js +2 -0
  269. package/dist/doctor-health-CrNPft4G.js +65 -0
  270. package/dist/doctor-health-contributions-Bwu5M_GQ.js +696 -0
  271. package/dist/doctor-lint-B2Wb_jEn.js +94 -0
  272. package/dist/doctor-prompter-cXq7RExi.js +58 -0
  273. package/dist/doctor-state-integrity-DfYyVFbQ.js +1231 -0
  274. package/dist/dynamic-tools-CbHsYkuk.js +486 -0
  275. package/dist/embedded-backend-IYuqoxzv.js +579 -0
  276. package/dist/embedded-gateway-stub.runtime-BjJ_93Pp.js +12 -0
  277. package/dist/embedded-gateway-stub.runtime.js +1 -1
  278. package/dist/embedding-provider-B50jxKn8.d.ts +65 -0
  279. package/dist/embedding-provider-DOktf4gm.d.ts +21 -0
  280. package/dist/embedding-provider-DZOjws8e.d.ts +16 -0
  281. package/dist/entry.d.ts +1 -1
  282. package/dist/entry.js +1 -1
  283. package/dist/exec-approvals-VjIKwFog.js +149 -0
  284. package/dist/extensionAPI.js +1 -1
  285. package/dist/extensions/active-memory/index.d.ts +1 -1
  286. package/dist/extensions/active-memory/index.js +1 -1
  287. package/dist/extensions/admin-http-rpc/index.d.ts +1 -1
  288. package/dist/extensions/admin-http-rpc/index.js +1 -1
  289. package/dist/extensions/alibaba/index.d.ts +1 -1
  290. package/dist/extensions/anthropic/api.d.ts +3 -3
  291. package/dist/extensions/anthropic/cli-backend-api.d.ts +2 -2
  292. package/dist/extensions/anthropic/cli-backend.d.ts +1 -1
  293. package/dist/extensions/anthropic/cli-migration.d.ts +1 -1
  294. package/dist/extensions/anthropic/cli-shared.d.ts +1 -1
  295. package/dist/extensions/anthropic/contract-api.d.ts +1 -1
  296. package/dist/extensions/anthropic/index.d.ts +1 -1
  297. package/dist/extensions/anthropic/provider-contract-api.d.ts +1 -1
  298. package/dist/extensions/anthropic/provider-discovery.d.ts +1 -1
  299. package/dist/extensions/anthropic/provider-policy-api.d.ts +1 -1
  300. package/dist/extensions/anthropic/register.runtime.d.ts +1 -1
  301. package/dist/extensions/anthropic/replay-policy.d.ts +1 -1
  302. package/dist/extensions/anthropic/setup-api.d.ts +1 -1
  303. package/dist/extensions/anthropic/stream-wrappers.d.ts +1 -1
  304. package/dist/extensions/anthropic/test-api.d.ts +2 -2
  305. package/dist/extensions/arcee/index.d.ts +1 -1
  306. package/dist/extensions/azure-speech/index.d.ts +1 -1
  307. package/dist/extensions/azure-speech/speech-provider.d.ts +1 -1
  308. package/dist/extensions/bonjour/index.d.ts +1 -1
  309. package/dist/extensions/browser/browser-bridge.js +1 -1
  310. package/dist/extensions/browser/browser-config.js +4 -4
  311. package/dist/extensions/browser/browser-control-auth.js +2 -2
  312. package/dist/extensions/browser/browser-doctor.js +2 -2
  313. package/dist/extensions/browser/browser-maintenance.js +1 -1
  314. package/dist/extensions/browser/browser-profiles.js +2 -2
  315. package/dist/extensions/browser/browser-runtime-api.js +11 -11
  316. package/dist/extensions/browser/cli-metadata.d.ts +1 -1
  317. package/dist/extensions/browser/cli-metadata.js +1 -1
  318. package/dist/extensions/browser/index.d.ts +1 -1
  319. package/dist/extensions/browser/index.js +1 -1
  320. package/dist/extensions/browser/plugin-registration.d.ts +1 -1
  321. package/dist/extensions/browser/plugin-registration.js +1 -1
  322. package/dist/extensions/browser/register.runtime.d.ts +2 -2
  323. package/dist/extensions/browser/register.runtime.js +4 -4
  324. package/dist/extensions/browser/runtime-api.d.ts +3 -3
  325. package/dist/extensions/browser/runtime-api.js +13 -13
  326. package/dist/extensions/browser/setup-api.d.ts +1 -1
  327. package/dist/extensions/byteplus/index.d.ts +1 -1
  328. package/dist/extensions/byteplus/provider-discovery.d.ts +1 -1
  329. package/dist/extensions/canvas/cli-metadata.d.ts +1 -1
  330. package/dist/extensions/canvas/index.d.ts +1 -1
  331. package/dist/extensions/canvas/index.js +1 -1
  332. package/dist/extensions/canvas/runtime-api.d.ts +2 -2
  333. package/dist/extensions/canvas/setup-api.d.ts +1 -1
  334. package/dist/extensions/cerebras/index.d.ts +1 -1
  335. package/dist/extensions/chutes/index.d.ts +1 -1
  336. package/dist/extensions/clickclack/api.d.ts +2 -2
  337. package/dist/extensions/clickclack/api.js +2 -2
  338. package/dist/extensions/clickclack/channel-plugin-api.d.ts +1 -1
  339. package/dist/extensions/clickclack/channel-plugin-api.js +1 -1
  340. package/dist/extensions/clickclack/index.d.ts +2 -2
  341. package/dist/extensions/clickclack/runtime-api.d.ts +2 -2
  342. package/dist/extensions/clickclack/runtime-api.js +2 -2
  343. package/dist/extensions/cloudflare-ai-gateway/index.d.ts +1 -1
  344. package/dist/extensions/cloudflare-ai-gateway/stream-wrappers.d.ts +1 -1
  345. package/dist/extensions/comfy/index.d.ts +1 -1
  346. package/dist/extensions/copilot-proxy/index.d.ts +1 -1
  347. package/dist/extensions/copilot-proxy/runtime-api.d.ts +2 -2
  348. package/dist/extensions/deepgram/index.d.ts +1 -1
  349. package/dist/extensions/deepgram/realtime-transcription-provider.d.ts +1 -1
  350. package/dist/extensions/deepgram/test-api.d.ts +1 -1
  351. package/dist/extensions/deepinfra/api.d.ts +2 -2
  352. package/dist/extensions/deepinfra/embedding-provider.d.ts +1 -1
  353. package/dist/extensions/deepinfra/index.d.ts +1 -1
  354. package/dist/extensions/deepinfra/memory-embedding-adapter.d.ts +1 -1
  355. package/dist/extensions/deepinfra/speech-provider.d.ts +1 -1
  356. package/dist/extensions/deepseek/api.d.ts +1 -1
  357. package/dist/extensions/deepseek/index.d.ts +1 -1
  358. package/dist/extensions/deepseek/provider-discovery.d.ts +1 -1
  359. package/dist/extensions/deepseek/provider-policy-api.d.ts +1 -1
  360. package/dist/extensions/deepseek/stream.d.ts +1 -1
  361. package/dist/extensions/deepseek/thinking.d.ts +1 -1
  362. package/dist/extensions/device-pair/api.d.ts +3 -3
  363. package/dist/extensions/device-pair/api.js +1 -1
  364. package/dist/extensions/device-pair/index.d.ts +1 -1
  365. package/dist/extensions/device-pair/notify.d.ts +1 -1
  366. package/dist/extensions/device-pair/pair-command-approve.js +1 -1
  367. package/dist/extensions/document-extract/index.d.ts +1 -1
  368. package/dist/extensions/duckduckgo/index.d.ts +1 -1
  369. package/dist/extensions/elevenlabs/index.d.ts +1 -1
  370. package/dist/extensions/elevenlabs/realtime-transcription-provider.d.ts +1 -1
  371. package/dist/extensions/elevenlabs/setup-api.d.ts +1 -1
  372. package/dist/extensions/elevenlabs/speech-provider.d.ts +1 -1
  373. package/dist/extensions/elevenlabs/test-api.d.ts +2 -2
  374. package/dist/extensions/exa/index.d.ts +1 -1
  375. package/dist/extensions/fal/index.d.ts +1 -1
  376. package/dist/extensions/fal/provider-contract-api.d.ts +1 -1
  377. package/dist/extensions/fal/provider-registration.d.ts +1 -1
  378. package/dist/extensions/file-transfer/index.d.ts +1 -1
  379. package/dist/extensions/file-transfer/index.js +4 -4
  380. package/dist/extensions/firecrawl/index.d.ts +1 -1
  381. package/dist/extensions/fireworks/index.d.ts +1 -1
  382. package/dist/extensions/fireworks/provider-policy-api.d.ts +1 -1
  383. package/dist/extensions/fireworks/stream.d.ts +1 -1
  384. package/dist/extensions/fireworks/thinking-policy.d.ts +1 -1
  385. package/dist/extensions/github-copilot/embeddings.d.ts +1 -1
  386. package/dist/extensions/github-copilot/index.d.ts +1 -1
  387. package/dist/extensions/github-copilot/models.d.ts +1 -1
  388. package/dist/extensions/github-copilot/register.runtime.d.ts +2 -2
  389. package/dist/extensions/github-copilot/stream.d.ts +1 -1
  390. package/dist/extensions/google/api.d.ts +5 -5
  391. package/dist/extensions/google/cli-backend.d.ts +1 -1
  392. package/dist/extensions/google/embedding-batch.d.ts +1 -1
  393. package/dist/extensions/google/embedding-provider.d.ts +1 -1
  394. package/dist/extensions/google/gemini-cli-provider.d.ts +1 -1
  395. package/dist/extensions/google/index.d.ts +1 -1
  396. package/dist/extensions/google/memory-embedding-adapter.d.ts +1 -1
  397. package/dist/extensions/google/provider-contract-api.d.ts +1 -1
  398. package/dist/extensions/google/provider-hooks.d.ts +2 -2
  399. package/dist/extensions/google/provider-models.d.ts +1 -1
  400. package/dist/extensions/google/provider-policy-api.d.ts +1 -1
  401. package/dist/extensions/google/provider-policy.d.ts +1 -1
  402. package/dist/extensions/google/provider-registration.d.ts +1 -1
  403. package/dist/extensions/google/realtime-voice-provider.d.ts +1 -1
  404. package/dist/extensions/google/runtime-api.d.ts +3 -3
  405. package/dist/extensions/google/setup-api.d.ts +1 -1
  406. package/dist/extensions/google/speech-provider.d.ts +1 -1
  407. package/dist/extensions/google/test-api.d.ts +2 -2
  408. package/dist/extensions/google/thinking-api.d.ts +1 -1
  409. package/dist/extensions/google/thinking.d.ts +1 -1
  410. package/dist/extensions/google/transport-stream.d.ts +1 -1
  411. package/dist/extensions/gradium/index.d.ts +1 -1
  412. package/dist/extensions/gradium/speech-provider.d.ts +1 -1
  413. package/dist/extensions/groq/index.d.ts +1 -1
  414. package/dist/extensions/huggingface/index.d.ts +1 -1
  415. package/dist/extensions/image-generation-core/api.d.ts +4 -4
  416. package/dist/extensions/image-generation-core/runtime-api.d.ts +1 -1
  417. package/dist/extensions/imessage/api.d.ts +2 -2
  418. package/dist/extensions/imessage/api.js +2 -2
  419. package/dist/extensions/imessage/channel-plugin-api.d.ts +1 -1
  420. package/dist/extensions/imessage/channel-plugin-api.js +1 -1
  421. package/dist/extensions/imessage/index.d.ts +2 -2
  422. package/dist/extensions/imessage/message-tool-api.d.ts +1 -1
  423. package/dist/extensions/imessage/runtime-api.d.ts +4 -4
  424. package/dist/extensions/imessage/runtime-api.js +3 -3
  425. package/dist/extensions/imessage/setup-entry.d.ts +2 -2
  426. package/dist/extensions/imessage/test-api.d.ts +1 -1
  427. package/dist/extensions/inworld/index.d.ts +1 -1
  428. package/dist/extensions/inworld/speech-provider.d.ts +1 -1
  429. package/dist/extensions/irc/api.d.ts +1 -1
  430. package/dist/extensions/irc/api.js +2 -2
  431. package/dist/extensions/irc/channel-plugin-api.d.ts +1 -1
  432. package/dist/extensions/irc/channel-plugin-api.js +1 -1
  433. package/dist/extensions/irc/index.d.ts +2 -2
  434. package/dist/extensions/irc/setup-entry.d.ts +2 -2
  435. package/dist/extensions/kilocode/index.d.ts +1 -1
  436. package/dist/extensions/kimi-coding/index.d.ts +1 -1
  437. package/dist/extensions/kimi-coding/stream.d.ts +1 -1
  438. package/dist/extensions/litellm/index.d.ts +1 -1
  439. package/dist/extensions/llm-task/api.d.ts +2 -2
  440. package/dist/extensions/llm-task/index.d.ts +1 -1
  441. package/dist/extensions/llm-task/index.js +1 -1
  442. package/dist/extensions/lmstudio/api.d.ts +1 -1
  443. package/dist/extensions/lmstudio/index.d.ts +1 -1
  444. package/dist/extensions/lmstudio/memory-embedding-adapter.d.ts +1 -1
  445. package/dist/extensions/mattermost/api.js +1 -1
  446. package/dist/extensions/mattermost/channel-plugin-api.d.ts +2 -2
  447. package/dist/extensions/mattermost/channel-plugin-api.js +1 -1
  448. package/dist/extensions/mattermost/channel-plugin-runtime.d.ts +1 -1
  449. package/dist/extensions/mattermost/channel-plugin-runtime.js +1 -1
  450. package/dist/extensions/mattermost/index.d.ts +2 -2
  451. package/dist/extensions/mattermost/policy-api.js +1 -1
  452. package/dist/extensions/mattermost/runtime-api.d.ts +9 -9
  453. package/dist/extensions/mattermost/runtime-api.js +2 -2
  454. package/dist/extensions/mattermost/setup-entry.d.ts +2 -2
  455. package/dist/extensions/mattermost/slash-route-api.d.ts +1 -1
  456. package/dist/extensions/mattermost/slash-route-api.js +1 -1
  457. package/dist/extensions/memory-core/api.d.ts +1 -1
  458. package/dist/extensions/memory-core/cli-metadata.d.ts +1 -1
  459. package/dist/extensions/memory-core/cli-metadata.js +1 -1
  460. package/dist/extensions/memory-core/index.d.ts +1 -1
  461. package/dist/extensions/memory-core/manager-runtime.d.ts +1 -1
  462. package/dist/extensions/memory-core/runtime-api.d.ts +2 -2
  463. package/dist/extensions/memory-wiki/api.d.ts +3 -3
  464. package/dist/extensions/memory-wiki/cli-metadata.d.ts +1 -1
  465. package/dist/extensions/memory-wiki/index.d.ts +1 -1
  466. package/dist/extensions/memory-wiki/setup-api.d.ts +1 -1
  467. package/dist/extensions/microsoft/index.d.ts +1 -1
  468. package/dist/extensions/microsoft/speech-provider.d.ts +1 -1
  469. package/dist/extensions/microsoft/test-api.d.ts +1 -1
  470. package/dist/extensions/microsoft-foundry/auth.d.ts +1 -1
  471. package/dist/extensions/microsoft-foundry/cli.d.ts +1 -1
  472. package/dist/extensions/microsoft-foundry/index.d.ts +1 -1
  473. package/dist/extensions/microsoft-foundry/onboard.d.ts +3 -3
  474. package/dist/extensions/microsoft-foundry/provider.d.ts +1 -1
  475. package/dist/extensions/microsoft-foundry/runtime.d.ts +1 -1
  476. package/dist/extensions/microsoft-foundry/shared-runtime.d.ts +1 -1
  477. package/dist/extensions/microsoft-foundry/shared.d.ts +1 -1
  478. package/dist/extensions/migrate-claude/apply.d.ts +1 -1
  479. package/dist/extensions/migrate-claude/apply.js +1 -1
  480. package/dist/extensions/migrate-claude/config.d.ts +1 -1
  481. package/dist/extensions/migrate-claude/helpers.d.ts +1 -1
  482. package/dist/extensions/migrate-claude/index.d.ts +1 -1
  483. package/dist/extensions/migrate-claude/index.js +1 -1
  484. package/dist/extensions/migrate-claude/memory.d.ts +2 -2
  485. package/dist/extensions/migrate-claude/plan.d.ts +1 -1
  486. package/dist/extensions/migrate-claude/plan.js +1 -1
  487. package/dist/extensions/migrate-claude/provider.d.ts +1 -1
  488. package/dist/extensions/migrate-claude/provider.js +1 -1
  489. package/dist/extensions/migrate-claude/skills.d.ts +2 -2
  490. package/dist/extensions/migrate-claude/targets.d.ts +1 -1
  491. package/dist/extensions/migrate-claude/targets.js +1 -1
  492. package/dist/extensions/migrate-hermes/apply.d.ts +1 -1
  493. package/dist/extensions/migrate-hermes/apply.js +1 -1
  494. package/dist/extensions/migrate-hermes/config.d.ts +1 -1
  495. package/dist/extensions/migrate-hermes/helpers.d.ts +1 -1
  496. package/dist/extensions/migrate-hermes/index.d.ts +1 -1
  497. package/dist/extensions/migrate-hermes/index.js +1 -1
  498. package/dist/extensions/migrate-hermes/items.d.ts +1 -1
  499. package/dist/extensions/migrate-hermes/model.d.ts +1 -1
  500. package/dist/extensions/migrate-hermes/model.js +1 -1
  501. package/dist/extensions/migrate-hermes/plan.d.ts +1 -1
  502. package/dist/extensions/migrate-hermes/plan.js +1 -1
  503. package/dist/extensions/migrate-hermes/provider.d.ts +1 -1
  504. package/dist/extensions/migrate-hermes/provider.js +1 -1
  505. package/dist/extensions/migrate-hermes/secrets.d.ts +2 -2
  506. package/dist/extensions/migrate-hermes/secrets.js +1 -1
  507. package/dist/extensions/migrate-hermes/skills.d.ts +2 -2
  508. package/dist/extensions/migrate-hermes/targets.d.ts +1 -1
  509. package/dist/extensions/migrate-hermes/targets.js +1 -1
  510. package/dist/extensions/minimax/index.d.ts +1 -1
  511. package/dist/extensions/minimax/provider-contract-api.d.ts +1 -1
  512. package/dist/extensions/minimax/provider-registration.d.ts +1 -1
  513. package/dist/extensions/minimax/speech-provider.d.ts +1 -1
  514. package/dist/extensions/mistral/embedding-provider.d.ts +1 -1
  515. package/dist/extensions/mistral/index.d.ts +1 -1
  516. package/dist/extensions/mistral/memory-embedding-adapter.d.ts +1 -1
  517. package/dist/extensions/mistral/realtime-transcription-provider.d.ts +1 -1
  518. package/dist/extensions/mistral/test-api.d.ts +1 -1
  519. package/dist/extensions/moonshot/index.d.ts +1 -1
  520. package/dist/extensions/moonshot/provider-contract-api.d.ts +1 -1
  521. package/dist/extensions/moonshot/provider-discovery.d.ts +1 -1
  522. package/dist/extensions/nvidia/index.d.ts +1 -1
  523. package/dist/extensions/oc-path/cli-metadata.d.ts +1 -1
  524. package/dist/extensions/oc-path/cli-registration.d.ts +1 -1
  525. package/dist/extensions/oc-path/index.d.ts +1 -1
  526. package/dist/extensions/ollama/api.d.ts +1 -1
  527. package/dist/extensions/ollama/index.d.ts +1 -1
  528. package/dist/extensions/ollama/provider-discovery.d.ts +1 -1
  529. package/dist/extensions/ollama/provider-policy-api.d.ts +1 -1
  530. package/dist/extensions/ollama/runtime-api.d.ts +1 -1
  531. package/dist/extensions/open-prose/index.d.ts +1 -1
  532. package/dist/extensions/open-prose/runtime-api.d.ts +2 -2
  533. package/dist/extensions/openai/api.d.ts +4 -4
  534. package/dist/extensions/openai/embedding-batch.d.ts +1 -1
  535. package/dist/extensions/openai/embedding-provider.d.ts +1 -1
  536. package/dist/extensions/openai/index.d.ts +1 -1
  537. package/dist/extensions/openai/memory-embedding-adapter.d.ts +1 -1
  538. package/dist/extensions/openai/openai-codex-oauth.runtime.d.ts +1 -1
  539. package/dist/extensions/openai/openai-codex-provider.d.ts +1 -1
  540. package/dist/extensions/openai/openai-provider.d.ts +1 -1
  541. package/dist/extensions/openai/prompt-overlay.d.ts +1 -1
  542. package/dist/extensions/openai/provider-contract-api.d.ts +1 -1
  543. package/dist/extensions/openai/provider-policy-api.d.ts +1 -1
  544. package/dist/extensions/openai/realtime-transcription-provider.d.ts +1 -1
  545. package/dist/extensions/openai/realtime-voice-provider.d.ts +1 -1
  546. package/dist/extensions/openai/register.runtime.d.ts +6 -6
  547. package/dist/extensions/openai/replay-policy.d.ts +1 -1
  548. package/dist/extensions/openai/setup-api.d.ts +1 -1
  549. package/dist/extensions/openai/shared.d.ts +3 -3
  550. package/dist/extensions/openai/speech-provider.d.ts +1 -1
  551. package/dist/extensions/openai/test-api.d.ts +3 -3
  552. package/dist/extensions/openai/thinking-policy.d.ts +1 -1
  553. package/dist/extensions/openai/transport-policy.d.ts +1 -1
  554. package/dist/extensions/opencode/index.d.ts +1 -1
  555. package/dist/extensions/opencode/provider-policy-api.d.ts +1 -1
  556. package/dist/extensions/opencode-go/index.d.ts +1 -1
  557. package/dist/extensions/opencode-go/provider-catalog.d.ts +1 -1
  558. package/dist/extensions/opencode-go/stream.d.ts +1 -1
  559. package/dist/extensions/openrouter/api.d.ts +1 -1
  560. package/dist/extensions/openrouter/index.d.ts +1 -1
  561. package/dist/extensions/openrouter/provider-contract-api.d.ts +1 -1
  562. package/dist/extensions/openrouter/provider-policy-api.d.ts +1 -1
  563. package/dist/extensions/openrouter/speech-provider.d.ts +1 -1
  564. package/dist/extensions/openrouter/stream.d.ts +1 -1
  565. package/dist/extensions/openrouter/test-api.d.ts +1 -1
  566. package/dist/extensions/openrouter/thinking-policy.d.ts +1 -1
  567. package/dist/extensions/openrouter/video-generation-provider.d.ts +1 -1
  568. package/dist/extensions/openrouter/video-model-catalog.d.ts +1 -1
  569. package/dist/extensions/perplexity/index.d.ts +1 -1
  570. package/dist/extensions/phone-control/index.d.ts +1 -1
  571. package/dist/extensions/phone-control/runtime-api.d.ts +2 -2
  572. package/dist/extensions/policy/api.js +1 -1
  573. package/dist/extensions/policy/index.d.ts +1 -1
  574. package/dist/extensions/policy/index.js +2 -2
  575. package/dist/extensions/qianfan/index.d.ts +1 -1
  576. package/dist/extensions/qwen/api.d.ts +1 -1
  577. package/dist/extensions/qwen/index.d.ts +1 -1
  578. package/dist/extensions/qwen/stream.d.ts +1 -1
  579. package/dist/extensions/runway/index.d.ts +1 -1
  580. package/dist/extensions/searxng/index.d.ts +1 -1
  581. package/dist/extensions/senseaudio/index.d.ts +1 -1
  582. package/dist/extensions/sglang/index.d.ts +1 -1
  583. package/dist/extensions/signal/api.d.ts +3 -3
  584. package/dist/extensions/signal/api.js +6 -6
  585. package/dist/extensions/signal/channel-entry.d.ts +2 -2
  586. package/dist/extensions/signal/channel-plugin-api.d.ts +1 -1
  587. package/dist/extensions/signal/channel-plugin-api.js +1 -1
  588. package/dist/extensions/signal/index.d.ts +2 -2
  589. package/dist/extensions/signal/reaction-runtime-api.js +1 -1
  590. package/dist/extensions/signal/runtime-api.d.ts +7 -7
  591. package/dist/extensions/signal/runtime-api.js +7 -7
  592. package/dist/extensions/signal/setup-entry.d.ts +2 -2
  593. package/dist/extensions/skill-workshop/api.d.ts +2 -2
  594. package/dist/extensions/skill-workshop/api.js +1 -1
  595. package/dist/extensions/skill-workshop/index.d.ts +1 -1
  596. package/dist/extensions/skill-workshop/index.js +2 -2
  597. package/dist/extensions/speech-core/api.d.ts +3 -3
  598. package/dist/extensions/speech-core/runtime-api.d.ts +2 -2
  599. package/dist/extensions/stepfun/index.d.ts +1 -1
  600. package/dist/extensions/synthetic/index.d.ts +1 -1
  601. package/dist/extensions/talk-voice/api.d.ts +2 -2
  602. package/dist/extensions/talk-voice/index.d.ts +1 -1
  603. package/dist/extensions/tavily/index.d.ts +1 -1
  604. package/dist/extensions/telegram/account-inspect-api.js +1 -1
  605. package/dist/extensions/telegram/api.d.ts +4 -4
  606. package/dist/extensions/telegram/api.js +11 -11
  607. package/dist/extensions/telegram/channel-plugin-api.d.ts +2 -2
  608. package/dist/extensions/telegram/channel-plugin-api.js +2 -2
  609. package/dist/extensions/telegram/contract-api.d.ts +1 -1
  610. package/dist/extensions/telegram/contract-api.js +3 -3
  611. package/dist/extensions/telegram/index.d.ts +2 -2
  612. package/dist/extensions/telegram/runtime-api.d.ts +4 -4
  613. package/dist/extensions/telegram/runtime-api.js +7 -7
  614. package/dist/extensions/telegram/security-audit-contract-api.js +1 -1
  615. package/dist/extensions/telegram/setup-entry.d.ts +2 -2
  616. package/dist/extensions/telegram/setup-plugin-api.d.ts +1 -1
  617. package/dist/extensions/telegram/setup-plugin-api.js +1 -1
  618. package/dist/extensions/telegram/test-api.js +2 -2
  619. package/dist/extensions/tencent/index.d.ts +1 -1
  620. package/dist/extensions/tencent/provider-discovery.d.ts +1 -1
  621. package/dist/extensions/thread-ownership/api.d.ts +2 -2
  622. package/dist/extensions/thread-ownership/index.d.ts +1 -1
  623. package/dist/extensions/together/index.d.ts +1 -1
  624. package/dist/extensions/tokenjuice/index.d.ts +1 -1
  625. package/dist/extensions/tokenjuice/tool-result-middleware.d.ts +1 -1
  626. package/dist/extensions/tts-local-cli/index.d.ts +1 -1
  627. package/dist/extensions/tts-local-cli/speech-provider.d.ts +1 -1
  628. package/dist/extensions/venice/index.d.ts +1 -1
  629. package/dist/extensions/venice/stream.d.ts +1 -1
  630. package/dist/extensions/vercel-ai-gateway/index.d.ts +1 -1
  631. package/dist/extensions/vercel-ai-gateway/thinking.d.ts +1 -1
  632. package/dist/extensions/video-generation-core/api.d.ts +3 -3
  633. package/dist/extensions/video-generation-core/runtime-api.d.ts +1 -1
  634. package/dist/extensions/vllm/api.d.ts +1 -1
  635. package/dist/extensions/vllm/index.d.ts +1 -1
  636. package/dist/extensions/vllm/stream.d.ts +1 -1
  637. package/dist/extensions/volcengine/index.d.ts +1 -1
  638. package/dist/extensions/volcengine/provider-discovery.d.ts +1 -1
  639. package/dist/extensions/volcengine/speech-provider.d.ts +1 -1
  640. package/dist/extensions/voyage/embedding-batch.d.ts +1 -1
  641. package/dist/extensions/voyage/embedding-provider.d.ts +1 -1
  642. package/dist/extensions/voyage/index.d.ts +1 -1
  643. package/dist/extensions/voyage/memory-embedding-adapter.d.ts +1 -1
  644. package/dist/extensions/vydra/index.d.ts +1 -1
  645. package/dist/extensions/vydra/speech-provider.d.ts +1 -1
  646. package/dist/extensions/web-readability/index.d.ts +1 -1
  647. package/dist/extensions/webhooks/api.d.ts +2 -2
  648. package/dist/extensions/webhooks/api.js +1 -1
  649. package/dist/extensions/webhooks/index.d.ts +1 -1
  650. package/dist/extensions/webhooks/index.js +1 -1
  651. package/dist/extensions/webhooks/runtime-api.d.ts +2 -2
  652. package/dist/extensions/xai/api.d.ts +1 -1
  653. package/dist/extensions/xai/index.d.ts +1 -1
  654. package/dist/extensions/xai/index.js +4 -4
  655. package/dist/extensions/xai/provider-contract-api.d.ts +1 -1
  656. package/dist/extensions/xai/provider-discovery.d.ts +1 -1
  657. package/dist/extensions/xai/provider-models.d.ts +1 -1
  658. package/dist/extensions/xai/provider-policy-api.d.ts +1 -1
  659. package/dist/extensions/xai/realtime-transcription-provider.d.ts +1 -1
  660. package/dist/extensions/xai/realtime-transcription-provider.js +1 -1
  661. package/dist/extensions/xai/setup-api.d.ts +1 -1
  662. package/dist/extensions/xai/speech-provider.d.ts +1 -1
  663. package/dist/extensions/xai/speech-provider.js +1 -1
  664. package/dist/extensions/xai/stream.d.ts +1 -1
  665. package/dist/extensions/xai/test-api.js +1 -1
  666. package/dist/extensions/xai/tts.js +1 -1
  667. package/dist/extensions/xai/web-search.js +1 -1
  668. package/dist/extensions/xai/xai-oauth.d.ts +1 -1
  669. package/dist/extensions/xai/xai-oauth.js +1 -1
  670. package/dist/extensions/xiaomi/index.d.ts +1 -1
  671. package/dist/extensions/xiaomi/speech-provider.d.ts +1 -1
  672. package/dist/extensions/xiaomi/stream.d.ts +1 -1
  673. package/dist/extensions/xiaomi/thinking.d.ts +1 -1
  674. package/dist/extensions/zai/index.d.ts +1 -1
  675. package/dist/file-fetch-tool-smMykVXl.js +124 -0
  676. package/dist/file-write-tool-yEYLZ2hU.js +127 -0
  677. package/dist/format-DyREJP5V.js +1145 -0
  678. package/dist/gateway/protocol/index.d.ts +1 -1
  679. package/dist/gateway-cli-D4yhwJa8.js +435 -0
  680. package/dist/gateway-method-runtime-B8AOnwqD.js +21 -0
  681. package/dist/gateway-runtime-BqKz92h9.d.ts +163 -0
  682. package/dist/gemini-cli-provider-wUxyeRzT.d.ts +6 -0
  683. package/dist/get-reply-Co-_Qlr-.js +4689 -0
  684. package/dist/get-reply-from-config.runtime-BcbRKxzJ.js +2 -0
  685. package/dist/get-reply-from-config.runtime.js +1 -1
  686. package/dist/graph-users-CF7Dlee2.js +1419 -0
  687. package/dist/group-access-BTU-w5S5.js +112 -0
  688. package/dist/group-keys-B_lbVBmI.d.ts +17 -0
  689. package/dist/handle-action.guild-admin-DS29y_6h.js +288 -0
  690. package/dist/harness-d9YmZWA3.js +61 -0
  691. package/dist/health-Cov1Kryj.js +4 -0
  692. package/dist/heartbeat-runner-B2wo_xDj.js +5 -0
  693. package/dist/heartbeat-runner.runtime-DrHZD-P2.js +4 -0
  694. package/dist/heartbeat-runner.runtime.js +1 -1
  695. package/dist/help-BgDd1atJ.js +136 -0
  696. package/dist/hook-runtime-UU80d5qW.d.ts +108 -0
  697. package/dist/hooks-CgXKCJSD.js +534 -0
  698. package/dist/http-registry-CBDAGRJy.d.ts +23 -0
  699. package/dist/image-generation-runtime-BFOnMPYD.d.ts +21 -0
  700. package/dist/inbound-direct-dm-runtime-DjOHl6c_.js +2 -0
  701. package/dist/inbound-reply-dispatch-BCTiM2jm.js +148 -0
  702. package/dist/index-D7Vsu6c4.d.ts +3971 -0
  703. package/dist/index.d.ts +1 -1
  704. package/dist/index.js +1 -1
  705. package/dist/init-CreYGHpp.js +59 -0
  706. package/dist/inline-buttons-C94TOhmL.js +40 -0
  707. package/dist/interactive-dispatch-AIMj_vt7.d.ts +143 -0
  708. package/dist/interactive-dispatch-Bh_T3uZG.d.ts +56 -0
  709. package/dist/internal-events-B6D5bqsn.js +90 -0
  710. package/dist/isolated-agent-9faqxl7c.js +1118 -0
  711. package/dist/isolated-agent-CaY4uTcE.js +2 -0
  712. package/dist/lifecycle-pTz4liUn.js +571 -0
  713. package/dist/list.probe-B8pt-DOd.js +449 -0
  714. package/dist/list.status-command-Wgmt361J.js +789 -0
  715. package/dist/llm-slug-generator-Do4oXnXl.js +78 -0
  716. package/dist/llm-slug-generator.js +1 -1
  717. package/dist/loader-BFBzvUK_.d.ts +142 -0
  718. package/dist/local-dispatch.runtime-7keeuHHm.js +9 -0
  719. package/dist/local-dispatch.runtime.js +1 -1
  720. package/dist/manager-D058VQAp.d.ts +10 -0
  721. package/dist/manager-DerRaxsV.d.ts +356 -0
  722. package/dist/manager.core-DKeUsAcV.d.ts +198 -0
  723. package/dist/manager.runtime-B3nVh8Nl.js +2714 -0
  724. package/dist/manager.runtime.js +1 -1
  725. package/dist/markdown-to-line-CZLeX0SL.js +811 -0
  726. package/dist/mcp-http-LaAmzBev.js +2 -0
  727. package/dist/mcp-http-M4GjuKFd.js +555 -0
  728. package/dist/media-understanding-provider-DLA6VsQZ.js +339 -0
  729. package/dist/memory-core-host-engine-storage-MF-67Z8w.d.ts +54 -0
  730. package/dist/memory-embedding-adapter-CEwgurWU.d.ts +5 -0
  731. package/dist/message-actions-Dlv-B5yk.js +145 -0
  732. package/dist/message-handler-2HSbEoAi.js +384 -0
  733. package/dist/message-handler-XiApv_iS.js +1715 -0
  734. package/dist/message-handler.preflight-CN-g4nxs.js +1125 -0
  735. package/dist/message-handler.process-BzVq3Lq_.js +1484 -0
  736. package/dist/migration-BXmTbRk9.d.ts +45 -0
  737. package/dist/model-Ci5kQ7PA.d.ts +33 -0
  738. package/dist/model-Sqz99RFi.js +74 -0
  739. package/dist/model-selection-Bh9QtqlJ.js +272 -0
  740. package/dist/models-C_dD1FNN.js +2 -0
  741. package/dist/models-CtpB-fi2.js +104 -0
  742. package/dist/models-Cxa7r3rl.d.ts +24 -0
  743. package/dist/models-cli-I2sJE5tg.js +256 -0
  744. package/dist/monitor-B4J6Kn4-.js +60 -0
  745. package/dist/monitor-BIFxJ3Ql.js +2788 -0
  746. package/dist/monitor-BTkcXHvw.js +834 -0
  747. package/dist/monitor-BX7Encm5.js +1657 -0
  748. package/dist/monitor-CZsJ4D3J.js +4377 -0
  749. package/dist/monitor-CvKt9k7P.js +2 -0
  750. package/dist/monitor-Dy9phiVJ.js +1370 -0
  751. package/dist/monitor-auth-CjtJPc9C.js +179 -0
  752. package/dist/monitor-jQpVHEky.js +715 -0
  753. package/dist/monitor-polling.runtime-Li4-3e2G.js +883 -0
  754. package/dist/monitor-polling.runtime.js +1 -1
  755. package/dist/monitor-webhook.runtime-CQ2kN5ya.js +387 -0
  756. package/dist/monitor-webhook.runtime.js +1 -1
  757. package/dist/monitor.account-CFdazLEm.js +5233 -0
  758. package/dist/monitor.runtime-B774iFU_.js +2 -0
  759. package/dist/monitor.runtime.js +1 -1
  760. package/dist/monitor.webhook-NNrWA5P9.js +180 -0
  761. package/dist/node-cli-sessions-Ct-6bGab.js +1228 -0
  762. package/dist/onboard-DEUA1HCQ.js +733 -0
  763. package/dist/onboard-helpers-Cupkjkec.js +251 -0
  764. package/dist/onboard-helpers-D1Pvowo1.js +6 -0
  765. package/dist/onboard-remote-BN_7wNqG.js +2 -0
  766. package/dist/onboard-remote-BqYAK5dF.js +212 -0
  767. package/dist/onboard-skills-BM40qOkc.js +160 -0
  768. package/dist/onboard-skills-rSLgDOzB.js +2 -0
  769. package/dist/openai-codex-provider-Fo-TKiyf.d.ts +5 -0
  770. package/dist/openai-http-BRnxRJ_y.js +824 -0
  771. package/dist/openai-provider-BqDrspuV.d.ts +5 -0
  772. package/dist/openresponses-http-Dg3OL0qA.js +1173 -0
  773. package/dist/operations-jvr0A8cu.js +805 -0
  774. package/dist/outbound-adapter-BJej9JpO.js +543 -0
  775. package/dist/outbound-session-route-D3QVwFKr.js +45 -0
  776. package/dist/outbound.runtime-gdOoPtOh.js +2 -0
  777. package/dist/outbound.runtime.js +1 -1
  778. package/dist/pairing-store-C-WQTUHq.d.ts +87 -0
  779. package/dist/pi-embedded-CwD_xrGP.js +3796 -0
  780. package/dist/pi-embedded-DL6l8KBl.js +4 -0
  781. package/dist/pi-embedded.runtime-DyGCj24d.js +4 -0
  782. package/dist/pi-embedded.runtime.js +1 -1
  783. package/dist/pi-tools-BzbgexEG.js +2413 -0
  784. package/dist/plan-HWBV2Rhq.js +112 -0
  785. package/dist/plan-iN77JYw-.js +81 -0
  786. package/dist/plugin-BbOOGgCS.d.ts +17 -0
  787. package/dist/plugin-CbNvjum_.js +12396 -0
  788. package/dist/plugin-app-cache-key-CHpwYM0e.js +46 -0
  789. package/dist/plugin-enabled-DjbDhNRG.js +233 -0
  790. package/dist/plugin-entry-B3_M6paP.d.ts +47 -0
  791. package/dist/plugin-registration-BM_Iko3e.js +88 -0
  792. package/dist/plugin-runtime-QzTPitsy.d.ts +117 -0
  793. package/dist/plugin-sdk/.boundary-entry-shims.stamp +1 -1
  794. package/dist/plugin-sdk/acp-runtime-backend.js +1 -1
  795. package/dist/plugin-sdk/acp-runtime.js +2 -2
  796. package/dist/plugin-sdk/agent-harness-runtime.js +6 -6
  797. package/dist/plugin-sdk/agent-harness-task-runtime.js +1 -1
  798. package/dist/plugin-sdk/agent-harness.js +7 -7
  799. package/dist/plugin-sdk/agent-runtime.js +2 -2
  800. package/dist/plugin-sdk/channel-core.js +2 -2
  801. package/dist/plugin-sdk/channel-inbound.js +2 -2
  802. package/dist/plugin-sdk/channel-test-helpers.js +1 -1
  803. package/dist/plugin-sdk/command-auth.js +1 -1
  804. package/dist/plugin-sdk/command-status-runtime.js +1 -1
  805. package/dist/plugin-sdk/compat.js +1 -1
  806. package/dist/plugin-sdk/conversation-binding-runtime.js +2 -2
  807. package/dist/plugin-sdk/conversation-runtime.js +3 -3
  808. package/dist/plugin-sdk/core.js +2 -2
  809. package/dist/plugin-sdk/direct-dm.js +1 -1
  810. package/dist/plugin-sdk/gateway-method-runtime.js +1 -1
  811. package/dist/plugin-sdk/health.js +2 -2
  812. package/dist/plugin-sdk/inbound-reply-dispatch.js +1 -1
  813. package/dist/plugin-sdk/index.js +1 -1
  814. package/dist/plugin-sdk/mattermost.js +1 -1
  815. package/dist/plugin-sdk/plugin-test-contracts.js +2 -2
  816. package/dist/plugin-sdk/provider-test-contracts.js +4 -4
  817. package/dist/plugin-sdk/reply-runtime.js +4 -4
  818. package/dist/plugin-sdk/testing.js +2 -2
  819. package/dist/plugin-sdk/zalouser.js +1 -1
  820. package/dist/plugin-service-CVyMm03C.js +1229 -0
  821. package/dist/plugin-service-bHD8oLfO.d.ts +24 -0
  822. package/dist/plugins/build-smoke-entry.d.ts +2 -2
  823. package/dist/plugins/loader.d.ts +1 -1
  824. package/dist/plugins/provider-discovery.runtime.d.ts +1 -1
  825. package/dist/plugins/provider-runtime.runtime.d.ts +1 -1
  826. package/dist/plugins/runtime/index.js +4 -4
  827. package/dist/policy-B2lTxn8H.js +680 -0
  828. package/dist/policy-Bp9GYcSZ.js +138 -0
  829. package/dist/prepare.runtime-CxhQeo9l.js +732 -0
  830. package/dist/prepare.runtime.js +1 -1
  831. package/dist/preview-warnings-FVRS7Mcs.js +392 -0
  832. package/dist/probe-BRLc43oX.js +47 -0
  833. package/dist/probe-C1eD9yG7.js +2204 -0
  834. package/dist/probe-C1giMJtz.js +682 -0
  835. package/dist/probe-rIUNPFef.js +2 -0
  836. package/dist/program-DfIqBXRH.js +131 -0
  837. package/dist/prompt-overlay-Bq3sUpDV.d.ts +23 -0
  838. package/dist/provider-BCxvG42s.js +152 -0
  839. package/dist/provider-BHPMcHk-.js +32 -0
  840. package/dist/provider-CIAQ8D7q.js +32 -0
  841. package/dist/provider-api-key-auth-BsEQw2pm.d.ts +27 -0
  842. package/dist/provider-auth-result-B204hPXB.d.ts +21 -0
  843. package/dist/provider-catalog-runtime-Dcyw8skT.d.ts +23 -0
  844. package/dist/provider-catalog-shared-qfgsIQS-.d.ts +62 -0
  845. package/dist/provider-dispatcher-DyJDef6y.js +22 -0
  846. package/dist/provider-dispatcher.runtime.js +1 -1
  847. package/dist/provider-hook-runtime-NiAPyKFa.d.ts +61 -0
  848. package/dist/provider-j7cYms68.js +8735 -0
  849. package/dist/provider-model-shared-BwE02tDa.d.ts +143 -0
  850. package/dist/provider-models-hfm5XTTN.d.ts +12 -0
  851. package/dist/provider-policy-BB7uTrIp.d.ts +30 -0
  852. package/dist/provider-registration-DEjYSu9M.d.ts +6 -0
  853. package/dist/provider-registry-D5hn-VAM.d.ts +8 -0
  854. package/dist/provider-registry-DHIsMEbc.d.ts +8 -0
  855. package/dist/provider-registry-VyHjmzoh.d.ts +30 -0
  856. package/dist/provider-runtime-CdtuIOgf.d.ts +359 -0
  857. package/dist/provider-self-hosted-setup-xR0Nsu7L.d.ts +74 -0
  858. package/dist/provider-session.runtime-CmNY15Mr.js +9 -0
  859. package/dist/provider-session.runtime.js +1 -1
  860. package/dist/provider-stream-CxVko1CO.d.ts +140 -0
  861. package/dist/provider-stream-shared-BxFPKFGe.d.ts +128 -0
  862. package/dist/provider.runtime-DJO3dwrX.js +2 -0
  863. package/dist/provider.runtime.js +1 -1
  864. package/dist/providers.runtime-CJOUbS2S.d.ts +25 -0
  865. package/dist/public-surface-loader-CgBnme5n.js +114 -0
  866. package/dist/pw-ai-UeRWGzcL.js +3029 -0
  867. package/dist/pw-role-snapshot-BtlutwlO.js +333 -0
  868. package/dist/reaction-level-DWOV-qJM.js +19 -0
  869. package/dist/reaction-runtime-api-5ZiPcbGJ.js +116 -0
  870. package/dist/realtime-transcription-CZadifvk.d.ts +43 -0
  871. package/dist/realtime-transcription-provider-BF9HxM3d.d.ts +5 -0
  872. package/dist/realtime-transcription-provider-Bcj92hEI.d.ts +32 -0
  873. package/dist/realtime-transcription-provider-DKZ9iHkc.d.ts +28 -0
  874. package/dist/realtime-transcription-provider-DcsAmQEp.js +205 -0
  875. package/dist/realtime-transcription-provider-DhjVTTqb.d.ts +37 -0
  876. package/dist/realtime-voice-B2W34yTP.d.ts +333 -0
  877. package/dist/realtime-voice-provider-CgNNrGwQ.d.ts +5 -0
  878. package/dist/register-Dga1nJRL.js +2178 -0
  879. package/dist/register.agent-VIgyZLKG.js +156 -0
  880. package/dist/register.configure-C21zJ4Qb.js +16 -0
  881. package/dist/register.crestodian-Bam6mUXr.js +24 -0
  882. package/dist/register.maintenance-D9E-Hh90.js +83 -0
  883. package/dist/register.onboard-BnUcaZsb.js +113 -0
  884. package/dist/register.runtime-BdRAp4xz.js +54 -0
  885. package/dist/register.runtime-D3abILg7.d.ts +6 -0
  886. package/dist/register.setup-Bq-9IQdV.js +40 -0
  887. package/dist/register.subclis-DubBtg8Z.js +31 -0
  888. package/dist/register.subclis-H_qmmDFx.js +3 -0
  889. package/dist/register.subclis-core-fg3DalSH.js +273 -0
  890. package/dist/registry-CPtiHUu_.d.ts +91 -0
  891. package/dist/registry-types-XtFJDNYl.d.ts +392 -0
  892. package/dist/repair-sequencing-Dn0sDvBE.js +640 -0
  893. package/dist/reply-delivery-DZGfRh-W.js +196 -0
  894. package/dist/reply-runtime-BdCPL-OF.js +11 -0
  895. package/dist/reply-runtime-DuaOZ9MH.d.ts +34 -0
  896. package/dist/reply.runtime-BcbRKxzJ.js +2 -0
  897. package/dist/reply.runtime.js +1 -1
  898. package/dist/request-Ca681Kt1.js +54 -0
  899. package/dist/resolve-allowlist-DWjCzDq1.js +220 -0
  900. package/dist/result-fallback-classifier-BWIh0wzc.js +79 -0
  901. package/dist/root-help-8a3TWleF.js +43 -0
  902. package/dist/route-BsWREv6-.js +469 -0
  903. package/dist/route-resolution-D8FyF30I.js +274 -0
  904. package/dist/routes-BxkaJuyM.js +3602 -0
  905. package/dist/routes-DdwFgSv9.js +2 -0
  906. package/dist/run-attempt-Ca7HP1Nd.js +7704 -0
  907. package/dist/run-command-JwrnqCIB.js +2 -0
  908. package/dist/run-command-wWvfXyIf.js +23 -0
  909. package/dist/run-embedded.runtime-0QIAc8PG.js +4 -0
  910. package/dist/run-embedded.runtime.js +1 -1
  911. package/dist/run-execution-cli.runtime-LhD-S0h_.js +4 -0
  912. package/dist/run-execution-cli.runtime.js +1 -1
  913. package/dist/run-executor.runtime.js +1 -1
  914. package/dist/run-prKMVvM2.js +1162 -0
  915. package/dist/run-subagent-registry.runtime-C07jSlV2.js +2 -0
  916. package/dist/run-subagent-registry.runtime.js +1 -1
  917. package/dist/runtime-3PDZU_1b.d.ts +17 -0
  918. package/dist/runtime-7Xhj2T8S.js +6179 -0
  919. package/dist/runtime-CXUwJU3q.js +438 -0
  920. package/dist/runtime-DeQypuDs.js +1287 -0
  921. package/dist/runtime-api-0djTIsuz.js +13 -0
  922. package/dist/runtime-api-9CEihqK3.d.ts +3151 -0
  923. package/dist/runtime-api-Bz1h0p3i.js +17 -0
  924. package/dist/runtime-api-CLcJZKu2.js +13 -0
  925. package/dist/runtime-api-Ce7axAAW.js +24 -0
  926. package/dist/runtime-api-CoAsju8a.js +4 -0
  927. package/dist/runtime-api-DEuynhDr.js +3 -0
  928. package/dist/runtime-api-oZFIOS9l.js +21 -0
  929. package/dist/runtime-api.actions-Blt2bAHw.d.ts +23 -0
  930. package/dist/runtime-api.actions-DWLRlSej.js +3 -0
  931. package/dist/runtime-api.monitor-DtXB3_sf.js +6 -0
  932. package/dist/runtime-api.send-BU586hbs.js +4 -0
  933. package/dist/runtime-api.send-BygcWA7R.d.ts +38 -0
  934. package/dist/runtime-api.threads-Djhr5AJy.js +2 -0
  935. package/dist/runtime-channel-BIgBTs_X.js +2 -0
  936. package/dist/runtime-channel-CsUTBjYU.js +150 -0
  937. package/dist/runtime-embedded-pi.runtime-Rszd_KCt.js +2 -0
  938. package/dist/runtime-embedded-pi.runtime.js +1 -1
  939. package/dist/runtime-taskflow-s80xQc2H.d.ts +435 -0
  940. package/dist/sanitize-outbound-2umQeW_U.js +127 -0
  941. package/dist/sdk-setup-tools-TiaNam05.js +8 -0
  942. package/dist/secrets-BmyFSkt-.js +113 -0
  943. package/dist/secrets-cli-DPAwFvtH.js +149 -0
  944. package/dist/security-audit-BR9FBcLD.js +122 -0
  945. package/dist/security-audit-RKut1lWG.js +118 -0
  946. package/dist/security-audit.runtime-Pe7YbS9P.js +2 -0
  947. package/dist/security-audit.runtime.js +1 -1
  948. package/dist/selection-Cqhmjpyl.js +16157 -0
  949. package/dist/selection-xFFMaq92.js +3 -0
  950. package/dist/send-BDHagrwl.js +1631 -0
  951. package/dist/send-BETlETJ5.d.ts +231 -0
  952. package/dist/send-BV_O_Ljd.js +192 -0
  953. package/dist/send-CpcmWYrM.d.ts +104 -0
  954. package/dist/send-W-DVyil6.js +2 -0
  955. package/dist/send-jUp2-szO.js +143 -0
  956. package/dist/send.components-BR_yPtKv.js +500 -0
  957. package/dist/send.components-CK7UbpRP.js +2 -0
  958. package/dist/send.runtime-DHLfdHbS.js +2 -0
  959. package/dist/send.runtime.js +1 -1
  960. package/dist/send.types-D_3tsfSL.d.ts +159 -0
  961. package/dist/server-DRcdRu6J.js +73 -0
  962. package/dist/server-Ddv-oAKv.js +24 -0
  963. package/dist/server-close.runtime.d.ts +1 -1
  964. package/dist/server-close.runtime.js +1 -1
  965. package/dist/server-context-9rW0Cvdw.js +2 -0
  966. package/dist/server-context-uRD5N8_D.js +955 -0
  967. package/dist/server-cron-BClEPtbv.js +2 -0
  968. package/dist/server-cron-CNGar45o.js +2989 -0
  969. package/dist/server-methods-CAMhJf7g.js +16494 -0
  970. package/dist/server-node-events-DW5DoAxk.js +596 -0
  971. package/dist/server-plugin-bootstrap-CqX4dDcN.js +70 -0
  972. package/dist/server-plugins-BIhs3eCz.js +432 -0
  973. package/dist/server-reload-handlers-54HSfSr7.js +714 -0
  974. package/dist/server-restart-sentinel-C47-O08k.js +747 -0
  975. package/dist/server-restart-sentinel-Cx-3Rzl0.js +2 -0
  976. package/dist/server-runtime-services-D-SWzUww.js +267 -0
  977. package/dist/server-runtime-services-D0GOFPFq.js +2 -0
  978. package/dist/server-startup-plugins-C8pzVvkb.js +113 -0
  979. package/dist/server-startup-post-attach-2xoGJJts.js +716 -0
  980. package/dist/server-ws-runtime-Dywo6GC-.js +349 -0
  981. package/dist/server.impl-xK22fZyJ.js +2586 -0
  982. package/dist/service-Ci8roOZn.js +1446 -0
  983. package/dist/session-binding-BsdbGBhb.js +219 -0
  984. package/dist/session-binding-D42jROcb.js +2 -0
  985. package/dist/session-kill-http-kU4rUj1_.js +121 -0
  986. package/dist/session-reset-service-DkCGElAA.js +625 -0
  987. package/dist/session-route-hmQSEijy.js +93 -0
  988. package/dist/session-status.runtime-Dsz-54he.js +2 -0
  989. package/dist/session-status.runtime.js +1 -1
  990. package/dist/session-subagent-reactivation.runtime-CYJIkiW8.js +2 -0
  991. package/dist/session-subagent-reactivation.runtime.js +1 -1
  992. package/dist/session-tab-registry-YfQve--K.js +521 -0
  993. package/dist/sessions-history-http-DeuZSSGj.js +430 -0
  994. package/dist/sessions.runtime-wAccC8Lk.js +2 -0
  995. package/dist/sessions.runtime.js +1 -1
  996. package/dist/setup-B8caUFIZ.js +586 -0
  997. package/dist/setup-CgHGdMpV.js +2 -0
  998. package/dist/setup-api-Uew7qBry.js +29 -0
  999. package/dist/setup-core-BP_fjsmA.js +174 -0
  1000. package/dist/setup-onboard-configure-help-fast-path-ykLp2JqU.js +64 -0
  1001. package/dist/setup-surface-BgEGrdZ3.js +320 -0
  1002. package/dist/setup-surface-BvSqsFEu.js +221 -0
  1003. package/dist/setup-surface-CHzMJ7_T.js +405 -0
  1004. package/dist/setup-surface-DYm3Xvgt.js +288 -0
  1005. package/dist/setup.finalize-BgLIjblM.js +582 -0
  1006. package/dist/setup.gateway-config-BBguRpIc.js +281 -0
  1007. package/dist/setup.migration-import-BY06brv-.js +200 -0
  1008. package/dist/setup.migration-import-Igj5NMey.js +2 -0
  1009. package/dist/shared-client-GL2KQ2Eu.js +2 -0
  1010. package/dist/shared-client-Mc7bTBoQ.js +629 -0
  1011. package/dist/shared-moi7PK0C.js +121 -0
  1012. package/dist/shared-rlOyTpAw.d.ts +115 -0
  1013. package/dist/side-question-BEHswpGw.js +683 -0
  1014. package/dist/simple-completion-runtime-CsXJkjY5.d.ts +73 -0
  1015. package/dist/skill-tool-dispatch.runtime-O5uXeees.js +143 -0
  1016. package/dist/skill-tool-dispatch.runtime.js +1 -1
  1017. package/dist/slash-state-BAYUTcHl.js +2166 -0
  1018. package/dist/speech-BAP4NgqI.d.ts +47 -0
  1019. package/dist/speech-core-DZmhKq_b.d.ts +36 -0
  1020. package/dist/speech-provider-22oDk8Tz.js +184 -0
  1021. package/dist/speech-provider-79S_bTlE.d.ts +8 -0
  1022. package/dist/speech-provider-BYJna1nq.d.ts +5 -0
  1023. package/dist/speech-provider-BvKhsuyg.d.ts +5 -0
  1024. package/dist/speech-provider-CdVIHtT6.d.ts +5 -0
  1025. package/dist/speech-provider-OiRKJFwo.d.ts +8 -0
  1026. package/dist/speech-provider-xUDd1kmD.d.ts +34 -0
  1027. package/dist/src-C8wkJgE6.js +4256 -0
  1028. package/dist/startup-context-BhLJufFU.js +313 -0
  1029. package/dist/status-C20LHDLA.js +73 -0
  1030. package/dist/status-message-CmzgS8zM.js +484 -0
  1031. package/dist/status-message.runtime-iG6qi7wn.js +6 -0
  1032. package/dist/status-message.runtime.js +1 -1
  1033. package/dist/status-subagents.runtime-D49P_RIr.js +18 -0
  1034. package/dist/status-subagents.runtime.js +1 -1
  1035. package/dist/status-text-BI7Q1z4U.js +296 -0
  1036. package/dist/status.runtime-RQes0TI5.js +2 -0
  1037. package/dist/sticker-cache-Dh4joqan.js +206 -0
  1038. package/dist/sticker-vision.runtime-5SRgpo_k.js +17 -0
  1039. package/dist/sticker-vision.runtime.js +1 -1
  1040. package/dist/stream-BrMwI7HV.d.ts +10 -0
  1041. package/dist/stream-Bx_akKgo.d.ts +16 -0
  1042. package/dist/stream-D094UIVI.d.ts +5 -0
  1043. package/dist/stream-D5DoOmTT.d.ts +19 -0
  1044. package/dist/stream-Tt9cSOCl.d.ts +120 -0
  1045. package/dist/stream-wrappers-CUkNtyZK.d.ts +21 -0
  1046. package/dist/subagent-announce-BEPlkjCS.js +354 -0
  1047. package/dist/subagent-announce-delivery-jcxPIfNG.js +958 -0
  1048. package/dist/subagent-control-DdMWVJXs.js +508 -0
  1049. package/dist/subagent-hooks-BsTVb6ur.js +2 -0
  1050. package/dist/subagent-hooks-CBlMBrss.js +2 -0
  1051. package/dist/subagent-hooks-Ch5oDUxb.js +116 -0
  1052. package/dist/subagent-hooks-DmUeAwY3.js +146 -0
  1053. package/dist/subagent-hooks-PNuPbYEl.js +2 -0
  1054. package/dist/subagent-hooks-api-BQ051dF0.js +23 -0
  1055. package/dist/subagent-hooks-api-DcVS0aJZ.js +22 -0
  1056. package/dist/subagent-hooks-api-Dlbc5Mtd.js +23 -0
  1057. package/dist/subagent-hooks-dwsegI07.js +230 -0
  1058. package/dist/subagent-orphan-recovery-Cl_y6Poi.js +352 -0
  1059. package/dist/subagent-registry-BVVgDSdq.d.ts +1 -0
  1060. package/dist/subagent-registry-BosUdBW6.js +2351 -0
  1061. package/dist/subagent-registry-Bxd6vaAO.js +3 -0
  1062. package/dist/subagent-registry-read-BVVgDSdq.d.ts +1 -0
  1063. package/dist/subagent-registry.runtime.js +1 -1
  1064. package/dist/subagent-session-cleanup-Bd6d93qi.js +525 -0
  1065. package/dist/subagent-spawn-ViO3XAR1.js +1164 -0
  1066. package/dist/target-id-Bje_v2Ax.js +107 -0
  1067. package/dist/targets-9q_q5M9n.d.ts +10 -0
  1068. package/dist/targets-C4byiOgQ.js +19 -0
  1069. package/dist/targets-J0MVE-dD.js +44 -0
  1070. package/dist/targets-ZMEvyNa8.js +19 -0
  1071. package/dist/targets-qBcfKetP.d.ts +10 -0
  1072. package/dist/task-registry-control.runtime.d.ts +1 -1
  1073. package/dist/task-registry-control.runtime.js +1 -1
  1074. package/dist/telegram/token.js +1 -1
  1075. package/dist/testing-Dk757Ggg.js +267 -0
  1076. package/dist/thinking-policy-DO6T8IfK.d.ts +5 -0
  1077. package/dist/thread-bindings-CYrmTzFY.js +232 -0
  1078. package/dist/thread-bindings-Cf7fkXxk.js +571 -0
  1079. package/dist/thread-bindings-DI6LNGbW.js +8 -0
  1080. package/dist/thread-bindings-DdmuKtVD.js +228 -0
  1081. package/dist/thread-bindings.discord-api-C01V3kFk.js +187 -0
  1082. package/dist/thread-bindings.manager--WOGVrL-.js +2 -0
  1083. package/dist/thread-bindings.manager-HzjqZNiL.js +536 -0
  1084. package/dist/thread-lifecycle-CJKTxWnQ.js +1614 -0
  1085. package/dist/token-D-FQ8AQz.js +134 -0
  1086. package/dist/tool-DTCfs0DU.js +139 -0
  1087. package/dist/tool-actions.runtime-Cb3iA3Os.js +534 -0
  1088. package/dist/tool-actions.runtime.js +1 -1
  1089. package/dist/tool-plugin-CbbLM31f.d.ts +77 -0
  1090. package/dist/tool-resolution-CbqzNutV.js +149 -0
  1091. package/dist/tool-split-bLqMPHTZ.d.ts +19 -0
  1092. package/dist/tools-effective-inventory-BsAax-ML.js +204 -0
  1093. package/dist/tools-invoke-http-DAqZxikd.js +67 -0
  1094. package/dist/tools-invoke-shared-CsVRemTL.js +200 -0
  1095. package/dist/transport-stream-DOXZsjVL.d.ts +42 -0
  1096. package/dist/tts-Ckj6MJNr.js +66 -0
  1097. package/dist/tui-CwwCXMCq.js +2 -0
  1098. package/dist/tui-DpJn3v2D.js +4709 -0
  1099. package/dist/tui-backend-DQ9wF5es.js +256 -0
  1100. package/dist/tui-cli-k3AYPBn3.js +37 -0
  1101. package/dist/types--0xYmMG9.d.ts +786 -0
  1102. package/dist/types-CMDl9l_P2.d.ts +3650 -0
  1103. package/dist/types.public-DvhPzYJi.d.ts +70 -0
  1104. package/dist/update-cli-DB5Doqld.js +3664 -0
  1105. package/dist/video-generation-runtime-CTQN-4SI.d.ts +21 -0
  1106. package/dist/video-model-catalog-CTyt4dXa.d.ts +16 -0
  1107. package/dist/vision-tools-Dp0JrLRi.js +1409 -0
  1108. package/dist/web-search-B0yvxuiq.js +62 -0
  1109. package/dist/web-search-provider.runtime-B-cNT-5J.js +2 -0
  1110. package/dist/web-search-provider.runtime-HhmIlk_Z.js +328 -0
  1111. package/dist/web-search-provider.runtime.js +1 -1
  1112. package/dist/webhook-targets-3u4hOqRl.d.ts +99 -0
  1113. package/dist/xai-oauth-cZGjnEjh.js +479 -0
  1114. package/dist/xai-user-agent-DA8le6vP.js +32 -0
  1115. package/dist/zod-schema.core-i5HaY1T4.d.ts +166 -0
  1116. package/package.json +1 -1
  1117. package/dist/abort-CvuLeqr1.js +0 -277
  1118. package/dist/abort.runtime-DNoavlKn.js +0 -2
  1119. package/dist/account-inspect-ByX21U_z.js +0 -173
  1120. package/dist/accounts-B0sjdn0w.js +0 -119
  1121. package/dist/accounts-BF_AfTED.js +0 -107
  1122. package/dist/accounts-DX1c8NKM.js +0 -107
  1123. package/dist/accounts-EA2GGTep.js +0 -2
  1124. package/dist/acp-runtime-BC8oA7xM.js +0 -26
  1125. package/dist/acp-spawn-CPYDCZ95.js +0 -2
  1126. package/dist/acp-spawn-Cqi47GCL.js +0 -1275
  1127. package/dist/acp-stateful-target-driver-CcWMRAQ2.js +0 -89
  1128. package/dist/action-kill-CZrPfOIS.js +0 -33
  1129. package/dist/action-runtime-DuhVKLRJ.js +0 -469
  1130. package/dist/action-runtime-api-BKaUWi7b.js +0 -2
  1131. package/dist/action-send-_NpIHMwj.js +0 -39
  1132. package/dist/action-spawn-Dymn4rUo.js +0 -47
  1133. package/dist/actions-Bk_WaEAa.js +0 -161
  1134. package/dist/actions.runtime-Hh7HYOlJ.js +0 -5
  1135. package/dist/agent-CQzGVmy1.js +0 -2
  1136. package/dist/agent-ClmYyW81.js +0 -3
  1137. package/dist/agent-command-D5KxwCVS.d.ts +0 -141
  1138. package/dist/agent-command-DbU2fo-p.js +0 -1367
  1139. package/dist/agent-components.runtime-BpXJmJXk.js +0 -10
  1140. package/dist/agent-harness-D8c6PLE_.d.ts +0 -146
  1141. package/dist/agent-harness-runtime-AHXS4Jj3.d.ts +0 -691
  1142. package/dist/agent-harness-runtime-TzbK9YTz.js +0 -180
  1143. package/dist/agent-harness-task-runtime-CZWJEsKk.js +0 -140
  1144. package/dist/agent-runner-execution-CmHT78Vr.js +0 -1713
  1145. package/dist/agent-runner-utils-B0i1PW18.js +0 -266
  1146. package/dist/agent-runner.runtime-B6Ah_MlB.js +0 -3455
  1147. package/dist/agent-runtime-BOMioAX6.js +0 -229
  1148. package/dist/agent-via-gateway-DfxQCPit.js +0 -463
  1149. package/dist/agents.commands.add-CszEBxoJ.js +0 -304
  1150. package/dist/agents.commands.delete-ulnJ7RH9.js +0 -128
  1151. package/dist/api-6SmEQDkK.js +0 -134
  1152. package/dist/api-B7QdoMF5.js +0 -2
  1153. package/dist/api-BBgby6ck.js +0 -639
  1154. package/dist/api-DwKV-xfM.d.ts +0 -52
  1155. package/dist/api-RfjCqA7Y.js +0 -6
  1156. package/dist/api-VDkFlOiv.js +0 -2
  1157. package/dist/api-We4xoZFr.js +0 -3
  1158. package/dist/apply-Cgtzilem.js +0 -41
  1159. package/dist/apply-Csp3U8cA.js +0 -54
  1160. package/dist/approval-handler.runtime-aQaSBbpF.js +0 -130
  1161. package/dist/assistant-UMyirSUH.js +0 -291
  1162. package/dist/attachment-normalize-BupK-_Ox.js +0 -225
  1163. package/dist/attempt-execution-oLlyFjHk.js +0 -558
  1164. package/dist/attempt-execution.runtime-Cq8RE0x_.js +0 -3
  1165. package/dist/attempt-execution.shared-DyBzUJGB.js +0 -38
  1166. package/dist/attempt.prompt-helpers-CVBP6t5J.js +0 -475
  1167. package/dist/attempt.tool-run-context-UU1BUUC9.js +0 -2094
  1168. package/dist/auth-BDaK_y-g.js +0 -541
  1169. package/dist/banner-VbID973v.js +0 -2
  1170. package/dist/banner-W77piyz6.js +0 -397
  1171. package/dist/binding-routing-DahKvjr3.js +0 -113
  1172. package/dist/binding-targets-C3mqUdUT.js +0 -121
  1173. package/dist/bot-DonUKEuy.js +0 -7894
  1174. package/dist/bot-deps-CroXwZeM.js +0 -747
  1175. package/dist/bot-deps-DKoy3x0l.js +0 -2
  1176. package/dist/bot-message-context.runtime-BI_zyqDu.js +0 -7
  1177. package/dist/bot-message-context.session.runtime-Cpy2H9Ez.js +0 -12
  1178. package/dist/bot-native-commands.delivery.runtime-CsHg3h1O.js +0 -4
  1179. package/dist/bot-native-commands.runtime-rmoBpwZY.js +0 -13
  1180. package/dist/bridge-server-BmDNWgHD.js +0 -113
  1181. package/dist/browser-cli-BQLwmLw3.js +0 -2
  1182. package/dist/browser-cli-CHHIN-of.js +0 -230
  1183. package/dist/browser-cli-actions-input-DBZ7uwag.js +0 -473
  1184. package/dist/browser-cli-actions-observe-BdH2-WTk.js +0 -81
  1185. package/dist/browser-cli-debug-C82Apbgb.js +0 -137
  1186. package/dist/browser-cli-inspect-CrO1qca7.js +0 -104
  1187. package/dist/browser-cli-manage-Dgm1IUZT.js +0 -443
  1188. package/dist/browser-cli-resize-DqgMr3DY.js +0 -26
  1189. package/dist/browser-cli-shared-BTnXMCKA.js +0 -50
  1190. package/dist/browser-cli-state-DT3bVOtg.js +0 -337
  1191. package/dist/browser-control-auth-BRwKCt45.js +0 -2
  1192. package/dist/browser-profiles-DhGtxK9v.js +0 -2
  1193. package/dist/browser-runtime-BL6b-qtr.js +0 -384
  1194. package/dist/build-33AnG55F.js +0 -257
  1195. package/dist/bundled-channel-config-schema-4eXcH-RE.d.ts +0 -3163
  1196. package/dist/call-dct8amtn.d.ts +0 -43
  1197. package/dist/capability-cli-D-KoVyyP.js +0 -1782
  1198. package/dist/channel-0tgrzPag.js +0 -867
  1199. package/dist/channel-4g20sJKJ.d.ts +0 -104
  1200. package/dist/channel-6tG8jWsw.d.ts +0 -8
  1201. package/dist/channel-7OEbQ8xS.d.ts +0 -6
  1202. package/dist/channel-7rVapSdN.d.ts +0 -8
  1203. package/dist/channel-B1fZN0iI.d.ts +0 -427
  1204. package/dist/channel-B5Q7fRiN.js +0 -1134
  1205. package/dist/channel-BEg_0h_C.d.ts +0 -12
  1206. package/dist/channel-BNp1J_eZ.js +0 -376
  1207. package/dist/channel-BP6RWm-M.d.ts +0 -47
  1208. package/dist/channel-BRjqrJfj.d.ts +0 -49
  1209. package/dist/channel-BUoyH_tP.d.ts +0 -114
  1210. package/dist/channel-BVBG4Tmn.d.ts +0 -28
  1211. package/dist/channel-Bap23sAx.js +0 -481
  1212. package/dist/channel-BhZ7x0SB.d.ts +0 -26
  1213. package/dist/channel-Bxod9CjX.js +0 -508
  1214. package/dist/channel-C6LASGjS.js +0 -808
  1215. package/dist/channel-COWZEKCw.js +0 -1249
  1216. package/dist/channel-CRAIreZ3.js +0 -238
  1217. package/dist/channel-CVY2hnJh.js +0 -1556
  1218. package/dist/channel-CgKdh_Jd.d.ts +0 -106
  1219. package/dist/channel-Cxo62btA.js +0 -1496
  1220. package/dist/channel-D5SzoyWI.js +0 -562
  1221. package/dist/channel-DE4vIsYF.d.ts +0 -64
  1222. package/dist/channel-DOdRHxJg.js +0 -1777
  1223. package/dist/channel-DZygtXdy.js +0 -362
  1224. package/dist/channel-DfhOnM71.d.ts +0 -7
  1225. package/dist/channel-DhZiptRe.d.ts +0 -8
  1226. package/dist/channel-DqPZviVV.js +0 -2126
  1227. package/dist/channel-Dssy3NQA.js +0 -740
  1228. package/dist/channel-actions.runtime-CDaMC9SV.js +0 -265
  1229. package/dist/channel-buMY8xZQ.d.ts +0 -7
  1230. package/dist/channel-core-CBhC_PNR.js +0 -5
  1231. package/dist/channel-core-x9b94azO.d.ts +0 -6
  1232. package/dist/channel-cvGHll3-.js +0 -955
  1233. package/dist/channel-entry-contract-BfZdcgTS.d.ts +0 -112
  1234. package/dist/channel-inbound-CNdyzYlz.js +0 -80
  1235. package/dist/channel-l8amaSI9.js +0 -653
  1236. package/dist/channel-lifecycle-DCl2GbRW.d.ts +0 -125
  1237. package/dist/channel-pairing-BRqfYy30.d.ts +0 -58
  1238. package/dist/channel-plugin-runtime-CvcVGjj4.js +0 -998
  1239. package/dist/channel-plugin-runtime-D5n9A86n.d.ts +0 -7
  1240. package/dist/channel-runtime-BAbg8Dcv.js +0 -408
  1241. package/dist/channel-sWtDTVwd.d.ts +0 -14
  1242. package/dist/channel.runtime-9o-iF8zm.js +0 -2528
  1243. package/dist/channel.runtime-BotO7RD0.js +0 -21009
  1244. package/dist/channel.runtime-BrDb4cP8.js +0 -88
  1245. package/dist/channel.runtime-C1cLfrDt.js +0 -254
  1246. package/dist/channel.runtime-CTM3VO2E.js +0 -4
  1247. package/dist/channel.runtime-CnodqvCJ.js +0 -733
  1248. package/dist/channel.runtime-Dmr8503H.js +0 -1008
  1249. package/dist/channel.runtime-DqzR3Gd9.js +0 -109
  1250. package/dist/channel.runtime-LOf0PHu_.js +0 -652
  1251. package/dist/channel.setup-1leD5F5B.js +0 -343
  1252. package/dist/channel.setup-D9UyWhXM.js +0 -1098
  1253. package/dist/channel.setup-DkVld-9Z.d.ts +0 -7
  1254. package/dist/channel.setup-DxT4prSl.d.ts +0 -8
  1255. package/dist/channel.setup-IHNFkdUD.js +0 -10
  1256. package/dist/channel.setup-YwXqilBB.d.ts +0 -6
  1257. package/dist/chat-DrycI6KH.js +0 -2666
  1258. package/dist/chrome-CgGY9FsG.js +0 -1503
  1259. package/dist/cli-backend-B3aNoTD4.d.ts +0 -5
  1260. package/dist/cli-backend-BVUFOLXj.d.ts +0 -5
  1261. package/dist/cli-compaction-DPmSHZx7.js +0 -347
  1262. package/dist/cli-metadata-eFfCoGmY.js +0 -22
  1263. package/dist/cli-nmYmL8lb.js +0 -1341
  1264. package/dist/cli-runner-BTOYShgV.js +0 -2
  1265. package/dist/cli-runner-DgXAxJVr.js +0 -540
  1266. package/dist/cli-runner.runtime-BeMsKcaS.js +0 -4
  1267. package/dist/cli-runner.runtime-DMD8X8-h.js +0 -3
  1268. package/dist/cli-shared-BAuePn3e.d.ts +0 -20
  1269. package/dist/cli-v6XF4hHd.d.ts +0 -20
  1270. package/dist/client-CKLZqMCW.js +0 -650
  1271. package/dist/client-adapter-B_0W-6Fx.js +0 -897
  1272. package/dist/client-factory-CdMLQFeA.js +0 -9
  1273. package/dist/command-auth-BxYfnQzs.js +0 -135
  1274. package/dist/command-execution-startup-CiV5yFW1.js +0 -87
  1275. package/dist/command-handlers-BAWROGlt.js +0 -1609
  1276. package/dist/command-registry-BqTMebZr.js +0 -4
  1277. package/dist/command-registry-C2Y8GeJl.js +0 -9
  1278. package/dist/command-registry-core-Bi-d0-WH.js +0 -110
  1279. package/dist/command-status.runtime-BSXHZzOq.js +0 -90
  1280. package/dist/commands-Z6AfrJar.d.ts +0 -113
  1281. package/dist/commands-acp-BYWOkjAx.js +0 -74
  1282. package/dist/commands-compact.runtime-Cyb7Pu12.js +0 -10
  1283. package/dist/commands-handlers.runtime-DdJ20XTn.js +0 -6154
  1284. package/dist/commands-status-6uhiUw13.js +0 -3
  1285. package/dist/commands-status-BJ5AnkOG.js +0 -16
  1286. package/dist/commands-status.runtime-6uhiUw13.js +0 -3
  1287. package/dist/commands-subagents-control.runtime-DZrrLjSk.js +0 -2
  1288. package/dist/commands-subagents-control.runtime-_R3XgUpp.js +0 -3
  1289. package/dist/commands-system-prompt-CHGtJPnx.js +0 -162
  1290. package/dist/commands-system-prompt-CM23NlDu.js +0 -2
  1291. package/dist/commands.runtime-DUEbtHG1.js +0 -176
  1292. package/dist/compact-BA6lVtLj.js +0 -480
  1293. package/dist/compact-BfC-utPW.js +0 -1141
  1294. package/dist/compact.runtime-BRL2wCqh.js +0 -12
  1295. package/dist/completion-cli-CYKoLZLl.js +0 -315
  1296. package/dist/computer-use-BWgYktaW.js +0 -367
  1297. package/dist/config-B_HanwOV.js +0 -373
  1298. package/dist/config-DhGtxK9v.js +0 -2
  1299. package/dist/config-cli-CI5UtWr-.js +0 -1633
  1300. package/dist/config-mutations-D2GtlLMA.js +0 -159
  1301. package/dist/config-schema-BKOfHz23.d.ts +0 -20
  1302. package/dist/configure-CuPwIiwW.js +0 -3
  1303. package/dist/configure.commands-BWpwrafi.js +0 -1251
  1304. package/dist/configure.commands-qzipmoDP.js +0 -2
  1305. package/dist/context-engine-host-compat-D246ZMR2.js +0 -2
  1306. package/dist/context-engine-host-compat-KMl-oqCw.js +0 -288
  1307. package/dist/context-engine-lifecycle-DvEDHkQz.js +0 -1274
  1308. package/dist/contracts-testkit-Ym3exIK5.d.ts +0 -145
  1309. package/dist/control-auth-B_RiUaHt.js +0 -114
  1310. package/dist/control-service-DcQFx6_O.js +0 -145
  1311. package/dist/control-ui/assets/agents-Bc8cIfWF.js +0 -1008
  1312. package/dist/control-ui/assets/channel-config-extras-DQru4ECs.js +0 -2
  1313. package/dist/control-ui/assets/channels-BfncerPV.js +0 -367
  1314. package/dist/control-ui/assets/cron-DHLcga_r.js +0 -1013
  1315. package/dist/control-ui/assets/debug-DprDzDn1.js +0 -97
  1316. package/dist/control-ui/assets/index-XTZKpkBL.js +0 -7370
  1317. package/dist/control-ui/assets/instances-D1_lOT13.js +0 -57
  1318. package/dist/control-ui/assets/logs-DINx8syb.js +0 -74
  1319. package/dist/control-ui/assets/nodes-BH4XOUmD.js +0 -436
  1320. package/dist/control-ui/assets/sessions-D5Xt25SY.js +0 -399
  1321. package/dist/control-ui/assets/skills-BmayrBHY.js +0 -314
  1322. package/dist/control-ui/assets/skills-shared-CHaYSJ_s.js +0 -11
  1323. package/dist/conversation-binding-runtime-_jhzwiiC.js +0 -4
  1324. package/dist/conversation-runtime-F5kCN0Sj.js +0 -31
  1325. package/dist/core-BpeKfqbI.d.ts +0 -224
  1326. package/dist/core-DE71gncT.js +0 -282
  1327. package/dist/core-api-B4L5WkKc.js +0 -5
  1328. package/dist/core-api-Q9oM19yY.js +0 -2
  1329. package/dist/crestodian-DLpxYmzP.js +0 -55
  1330. package/dist/daocore-runtime-BnYtDbMC.d.ts +0 -151
  1331. package/dist/daocore-tools-wNTIZIO3.js +0 -11727
  1332. package/dist/dashboard-SHmcCcnT.js +0 -263
  1333. package/dist/delivery-BA4di5Tw.js +0 -1002
  1334. package/dist/dev-Cr2Dhgoc.js +0 -97
  1335. package/dist/dialogue-xI4qAuLY.js +0 -37
  1336. package/dist/dir-fetch-tool-6d4yElM4.js +0 -565
  1337. package/dist/dir-list-tool-D2k-hax6.js +0 -100
  1338. package/dist/direct-dm-eGyFHTug.js +0 -64
  1339. package/dist/directive-handling.fast-lane-Ci1l6GN_.js +0 -68
  1340. package/dist/directive-handling.impl-Co3i_YQ4.js +0 -818
  1341. package/dist/directive-handling.impl-DHKC0TrU.js +0 -2
  1342. package/dist/directive-handling.model-selection-bv5KrHOw.js +0 -122
  1343. package/dist/directive-handling.persist.runtime-CPLg-YHh.js +0 -263
  1344. package/dist/dispatch-CdvERWY-.js +0 -1640
  1345. package/dist/dispatch-acp-transcript.runtime-BhQo1XEg.js +0 -40
  1346. package/dist/dispatch-acp.runtime-Dtiu2EgE.js +0 -18
  1347. package/dist/doctor-BzsPHvLP.js +0 -2
  1348. package/dist/doctor-Cg4FWB15.js +0 -6
  1349. package/dist/doctor-config-flow-SYjHcyu4.js +0 -1741
  1350. package/dist/doctor-core-checks-75amkN-e.js +0 -2
  1351. package/dist/doctor-core-checks-B1fu7KDm.js +0 -573
  1352. package/dist/doctor-health-contributions-BMdJKStr.js +0 -696
  1353. package/dist/doctor-health-vLyDQqfq.js +0 -65
  1354. package/dist/doctor-lint-DfvFyBgL.js +0 -94
  1355. package/dist/doctor-prompter-C-dTuOnw.js +0 -58
  1356. package/dist/doctor-state-integrity-Cv-ECLuv.js +0 -1231
  1357. package/dist/dynamic-tools-BG8ijDFH.js +0 -486
  1358. package/dist/embedded-backend-bRfALCWz.js +0 -579
  1359. package/dist/embedded-gateway-stub.runtime-CAh3IhtZ.js +0 -12
  1360. package/dist/embedding-provider-B7kg9IhC.d.ts +0 -16
  1361. package/dist/embedding-provider-jB1zjkZy.d.ts +0 -65
  1362. package/dist/embedding-provider-sea2CddJ.d.ts +0 -21
  1363. package/dist/exec-approvals-BBa28Sct.js +0 -149
  1364. package/dist/file-fetch-tool-DRIsI7eQ.js +0 -124
  1365. package/dist/file-write-tool-vTMh7eW6.js +0 -127
  1366. package/dist/format-nrhTS41q.js +0 -1145
  1367. package/dist/gateway-cli-CCgw11Ik.js +0 -435
  1368. package/dist/gateway-method-runtime-BNAVGCC_.js +0 -21
  1369. package/dist/gateway-runtime-DGdJumdK.d.ts +0 -163
  1370. package/dist/gemini-cli-provider-Bbpd5lx5.d.ts +0 -6
  1371. package/dist/get-reply-DGFCqKen.js +0 -4689
  1372. package/dist/get-reply-from-config.runtime-l7NTyCh5.js +0 -2
  1373. package/dist/graph-users-CGpakgek.js +0 -1419
  1374. package/dist/group-access-D095jQ78.js +0 -112
  1375. package/dist/group-keys-DnxWQtll.d.ts +0 -17
  1376. package/dist/handle-action.guild-admin-B3pALmMq.js +0 -288
  1377. package/dist/harness-Bs-sPbOD.js +0 -61
  1378. package/dist/health-4gWMIKHu.js +0 -4
  1379. package/dist/heartbeat-runner-Sky_Rjw7.js +0 -5
  1380. package/dist/heartbeat-runner.runtime-CRZ-NbrW.js +0 -4
  1381. package/dist/help-B68Ov4LD.js +0 -136
  1382. package/dist/hook-runtime-Cm73yH0T.d.ts +0 -107
  1383. package/dist/hooks-DWSdYas_.js +0 -534
  1384. package/dist/http-registry-CHKiFHCC.d.ts +0 -23
  1385. package/dist/image-generation-runtime-p-dfXZTf.d.ts +0 -21
  1386. package/dist/inbound-direct-dm-runtime-5z3W9Oqn.js +0 -2
  1387. package/dist/inbound-reply-dispatch-D7NeeFC1.js +0 -148
  1388. package/dist/index-CKAHTIU4.d.ts +0 -3971
  1389. package/dist/init-BXF3o80o.js +0 -59
  1390. package/dist/inline-buttons-DsHwKEVU.js +0 -40
  1391. package/dist/interactive-dispatch-BsKWomnh.d.ts +0 -143
  1392. package/dist/interactive-dispatch-CItEYOu3.d.ts +0 -56
  1393. package/dist/internal-events-TAN9dPEj.js +0 -90
  1394. package/dist/isolated-agent-CTrVGI6q.js +0 -2
  1395. package/dist/isolated-agent-DPyibJ8B.js +0 -1118
  1396. package/dist/lifecycle-BwTg0Djv.js +0 -571
  1397. package/dist/list.probe-BpM4PKu7.js +0 -449
  1398. package/dist/list.status-command-BbcloYBd.js +0 -789
  1399. package/dist/llm-slug-generator-UG7Bhj_y.js +0 -78
  1400. package/dist/loader-D6z2PEKl.d.ts +0 -142
  1401. package/dist/local-dispatch.runtime-CU6Y-BDa.js +0 -9
  1402. package/dist/manager-C3AVKMSl.d.ts +0 -356
  1403. package/dist/manager-CSN9j9hh.d.ts +0 -205
  1404. package/dist/manager.runtime-Da5LiiaQ.js +0 -2714
  1405. package/dist/markdown-to-line-BnESmsY4.js +0 -811
  1406. package/dist/mcp-http-C38KS7On.js +0 -2
  1407. package/dist/mcp-http-CcGhAZcF.js +0 -555
  1408. package/dist/media-understanding-provider-BCz5dVl6.js +0 -339
  1409. package/dist/memory-core-host-engine-storage-sWQlfr8J.d.ts +0 -54
  1410. package/dist/memory-embedding-adapter-BrGY0ecB.d.ts +0 -5
  1411. package/dist/message-actions-CQURSOZH.js +0 -145
  1412. package/dist/message-handler-C2U3bt-X.js +0 -1715
  1413. package/dist/message-handler-CwZfuHhP.js +0 -384
  1414. package/dist/message-handler.preflight-Cosa3kg0.js +0 -1125
  1415. package/dist/message-handler.process-BlKFMYXw.js +0 -1484
  1416. package/dist/migration-hAtbc95i.d.ts +0 -45
  1417. package/dist/model-B8M2deNL.js +0 -74
  1418. package/dist/model-Ck-vNyGd.d.ts +0 -33
  1419. package/dist/model-selection-v2wQWgsT.js +0 -272
  1420. package/dist/models-B7IiQBWY.js +0 -104
  1421. package/dist/models-CnWFsPX6.d.ts +0 -24
  1422. package/dist/models-DMNzBNgt.js +0 -2
  1423. package/dist/models-cli-CQaOg02d.js +0 -256
  1424. package/dist/monitor-Bd9kOezJ.js +0 -1370
  1425. package/dist/monitor-Cy6D6MyS.js +0 -715
  1426. package/dist/monitor-DStY23C4.js +0 -834
  1427. package/dist/monitor-DnF8eltK.js +0 -1657
  1428. package/dist/monitor-DrFJ63I1.js +0 -4377
  1429. package/dist/monitor-J8jOsDaJ.js +0 -60
  1430. package/dist/monitor-auth-DKkbt_CR.js +0 -179
  1431. package/dist/monitor-jp3H9Ri_.js +0 -2
  1432. package/dist/monitor-polling.runtime-DPCAacPc.js +0 -883
  1433. package/dist/monitor-tBNmyf1s.js +0 -2788
  1434. package/dist/monitor-webhook.runtime-BnjEsLRS.js +0 -387
  1435. package/dist/monitor.account-Gh8FuMEq.js +0 -5233
  1436. package/dist/monitor.runtime-Bdh6dxyq.js +0 -2
  1437. package/dist/monitor.webhook-BosT2ylg.js +0 -180
  1438. package/dist/node-cli-sessions-B0_DtIxz.js +0 -1228
  1439. package/dist/onboard-CiTp3HuT.js +0 -733
  1440. package/dist/onboard-helpers-6NgX4RkW.js +0 -251
  1441. package/dist/onboard-helpers-BwxJT_0T.js +0 -6
  1442. package/dist/onboard-remote-CNCFouj7.js +0 -212
  1443. package/dist/onboard-remote-DXzWgH_H.js +0 -2
  1444. package/dist/onboard-skills-Dx58zrXg.js +0 -160
  1445. package/dist/onboard-skills-qaynAMqw.js +0 -2
  1446. package/dist/openai-codex-provider-Bj9cyh4I.d.ts +0 -5
  1447. package/dist/openai-http-Dp0cp01u.js +0 -824
  1448. package/dist/openai-provider-Dm3YkkWf.d.ts +0 -5
  1449. package/dist/openresponses-http-acbxr5UW.js +0 -1173
  1450. package/dist/operations-BZVuEl9E.js +0 -805
  1451. package/dist/outbound-adapter-BKGzT1Rl.js +0 -543
  1452. package/dist/outbound-session-route-mWVuRF9I.js +0 -45
  1453. package/dist/outbound.runtime-BTjY78St.js +0 -2
  1454. package/dist/pairing-challenge-DD0D0sfM.d.ts +0 -87
  1455. package/dist/pi-embedded-CFP2IrYS.js +0 -3796
  1456. package/dist/pi-embedded-D8caT0Nm.js +0 -4
  1457. package/dist/pi-embedded.runtime-eBik36nq.js +0 -4
  1458. package/dist/pi-tools-DOiFN8QJ.js +0 -2413
  1459. package/dist/plan-Cq2-YWkv.js +0 -112
  1460. package/dist/plan-DZacZ3Zv.js +0 -81
  1461. package/dist/plugin-BcNkVMQf.d.ts +0 -17
  1462. package/dist/plugin-app-cache-key-CBK84hKp.js +0 -46
  1463. package/dist/plugin-enabled-CMfz3hfi.js +0 -233
  1464. package/dist/plugin-entry-BS5QKDoz.d.ts +0 -47
  1465. package/dist/plugin-k9ChkvvX.js +0 -12396
  1466. package/dist/plugin-registration-DzPoDboh.js +0 -88
  1467. package/dist/plugin-runtime-BNGhLQ-_.d.ts +0 -117
  1468. package/dist/plugin-service-BynKHNHj.d.ts +0 -24
  1469. package/dist/plugin-service-Ckp9CgP5.js +0 -1229
  1470. package/dist/policy-CBa8yH5k.js +0 -680
  1471. package/dist/policy-Dlam-IbU.js +0 -138
  1472. package/dist/prepare.runtime-B8h04--2.js +0 -732
  1473. package/dist/preview-warnings-DPDK9HPk.js +0 -392
  1474. package/dist/probe-Bts3wK7l.js +0 -682
  1475. package/dist/probe-ByHrOECy.js +0 -47
  1476. package/dist/probe-CXqCx5yV.js +0 -2204
  1477. package/dist/probe-fhhJ0LMx.js +0 -2
  1478. package/dist/program-DfNLP_PI.js +0 -131
  1479. package/dist/prompt-overlay-qKGGXVs-.d.ts +0 -23
  1480. package/dist/provider-CeG5mirD.js +0 -8735
  1481. package/dist/provider-D_TXf9b1.js +0 -152
  1482. package/dist/provider-Fb0fhEC5.js +0 -32
  1483. package/dist/provider-api-key-auth-BIph5btg.d.ts +0 -27
  1484. package/dist/provider-auth-result-BFvMZrH6.d.ts +0 -21
  1485. package/dist/provider-catalog-runtime-Du74RUel.d.ts +0 -23
  1486. package/dist/provider-catalog-shared-B3nN3sf2.d.ts +0 -62
  1487. package/dist/provider-dispatcher-DQ0FP7Oj.js +0 -22
  1488. package/dist/provider-hook-runtime-CRpS8VJ_.d.ts +0 -61
  1489. package/dist/provider-model-shared-GrPEK3SY.d.ts +0 -143
  1490. package/dist/provider-models-iUJVn9QI.d.ts +0 -12
  1491. package/dist/provider-policy-DliVEM__.d.ts +0 -30
  1492. package/dist/provider-registration-BxzmE1yB.d.ts +0 -6
  1493. package/dist/provider-registry-B4AQXjYK.d.ts +0 -8
  1494. package/dist/provider-registry-BHyB46kI.d.ts +0 -30
  1495. package/dist/provider-registry-CnfpUSqh.d.ts +0 -8
  1496. package/dist/provider-runtime-D3j0VBbF.d.ts +0 -359
  1497. package/dist/provider-self-hosted-setup-_11XAmRH.d.ts +0 -74
  1498. package/dist/provider-session.runtime-CIMJ-7ay.js +0 -9
  1499. package/dist/provider-stream-mWxYXsAm.d.ts +0 -140
  1500. package/dist/provider-stream-shared-QayId-fm.d.ts +0 -128
  1501. package/dist/provider-xNaUQ5Lv.js +0 -32
  1502. package/dist/provider.runtime-CGsYbZGk.js +0 -2
  1503. package/dist/providers.runtime-fmZQlSRt.d.ts +0 -25
  1504. package/dist/public-surface-loader-CuVkM64A.js +0 -114
  1505. package/dist/pw-ai-BDGftH9e.js +0 -3029
  1506. package/dist/pw-role-snapshot-C_P091Iv.js +0 -333
  1507. package/dist/reaction-level-DKxiNfWB.js +0 -19
  1508. package/dist/reaction-runtime-api-TY4aPHui.js +0 -116
  1509. package/dist/realtime-transcription-CmRx7wX7.d.ts +0 -43
  1510. package/dist/realtime-transcription-provider-BNca2pAl.js +0 -205
  1511. package/dist/realtime-transcription-provider-Csl2NRiB.d.ts +0 -5
  1512. package/dist/realtime-transcription-provider-CtUTdTS4.d.ts +0 -37
  1513. package/dist/realtime-transcription-provider-DKd69ns6.d.ts +0 -28
  1514. package/dist/realtime-transcription-provider-DPj1VZIg.d.ts +0 -32
  1515. package/dist/realtime-voice-CVgV9cqF.d.ts +0 -333
  1516. package/dist/realtime-voice-provider-CmtxwZon.d.ts +0 -5
  1517. package/dist/register-DLjqO2vR.js +0 -2178
  1518. package/dist/register.agent-FV7a6yzo.js +0 -156
  1519. package/dist/register.configure-DrkSyKW3.js +0 -16
  1520. package/dist/register.crestodian-CQGAa8z2.js +0 -24
  1521. package/dist/register.maintenance-tocHfiS3.js +0 -83
  1522. package/dist/register.onboard-BomHnBGE.js +0 -113
  1523. package/dist/register.runtime-6AmV3Vgs.js +0 -54
  1524. package/dist/register.runtime-CSz0gVBB.d.ts +0 -6
  1525. package/dist/register.setup-ENYtNAA5.js +0 -40
  1526. package/dist/register.subclis-BC6TefAM.js +0 -31
  1527. package/dist/register.subclis-DZdEZgSS.js +0 -3
  1528. package/dist/register.subclis-core-C-EfowrU.js +0 -273
  1529. package/dist/registry-VitXYFE8.d.ts +0 -91
  1530. package/dist/registry-types-C4eAzEgQ.d.ts +0 -392
  1531. package/dist/repair-sequencing-l8dFaytn.js +0 -640
  1532. package/dist/reply-delivery-DdeUWVuk.js +0 -196
  1533. package/dist/reply-runtime-Bd91JEZL.js +0 -11
  1534. package/dist/reply.runtime-l7NTyCh5.js +0 -2
  1535. package/dist/request-BY_4UukN.js +0 -54
  1536. package/dist/resolve-allowlist-C4lmxl4V.js +0 -220
  1537. package/dist/result-fallback-classifier-XORMMp30.js +0 -79
  1538. package/dist/root-help-CTW0Wyrf.js +0 -43
  1539. package/dist/route-dOf1WMkJ.js +0 -469
  1540. package/dist/route-resolution-BddNYZEI.js +0 -274
  1541. package/dist/routes-D0xw72Lf.js +0 -3602
  1542. package/dist/routes-TXSPQFWS.js +0 -2
  1543. package/dist/run-DpvUuaWB.js +0 -1162
  1544. package/dist/run-attempt-Bet0PiSc.js +0 -7704
  1545. package/dist/run-command-C5vMVqMt.js +0 -23
  1546. package/dist/run-command-pNDd7NqP.js +0 -2
  1547. package/dist/run-embedded.runtime-CBZV6YWj.js +0 -4
  1548. package/dist/run-execution-cli.runtime-DTQLV8tA.js +0 -4
  1549. package/dist/run-subagent-registry.runtime-DJCvSdhY.js +0 -2
  1550. package/dist/runtime-CNXeG8vX.js +0 -1287
  1551. package/dist/runtime-DEOSWxv9.js +0 -438
  1552. package/dist/runtime-DbTiSX85.d.ts +0 -17
  1553. package/dist/runtime-api-BCM7T4WV.js +0 -17
  1554. package/dist/runtime-api-BTnMvj8L.js +0 -13
  1555. package/dist/runtime-api-By6LEySM.js +0 -3
  1556. package/dist/runtime-api-Cd0b5LPQ.js +0 -4
  1557. package/dist/runtime-api-CtuDiikz.js +0 -21
  1558. package/dist/runtime-api-DjySILXC.js +0 -13
  1559. package/dist/runtime-api-XJTq_pyQ.js +0 -24
  1560. package/dist/runtime-api-k3v6Q0lb2.d.ts +0 -3151
  1561. package/dist/runtime-api.actions-BmsSg8Ai.js +0 -3
  1562. package/dist/runtime-api.actions-C2-n4QQ5.d.ts +0 -23
  1563. package/dist/runtime-api.monitor-DSk7Pd5H.js +0 -6
  1564. package/dist/runtime-api.send-D3sPncy9.js +0 -4
  1565. package/dist/runtime-api.send-t0FX9tXf.d.ts +0 -38
  1566. package/dist/runtime-api.threads-BK9cB4L1.js +0 -2
  1567. package/dist/runtime-channel--Wjr2ePx.js +0 -150
  1568. package/dist/runtime-channel-WdTa9hHZ.js +0 -2
  1569. package/dist/runtime-embedded-pi.runtime-BNYBvaxo.js +0 -2
  1570. package/dist/runtime-r3jS5wSq.js +0 -6179
  1571. package/dist/runtime-taskflow-DMBY6o56.d.ts +0 -435
  1572. package/dist/sanitize-outbound-D6IBCCpn.js +0 -127
  1573. package/dist/sdk-setup-tools-DcDrd8tW.js +0 -8
  1574. package/dist/secrets-OV1uTwRt.js +0 -113
  1575. package/dist/secrets-cli-llC7t41S.js +0 -149
  1576. package/dist/security-audit-BM_fypcl.js +0 -118
  1577. package/dist/security-audit-CQ2yKgF8.js +0 -122
  1578. package/dist/security-audit.runtime-CRgJUegH.js +0 -2
  1579. package/dist/selection-DkJ7MaPC.js +0 -16157
  1580. package/dist/selection-LeUiOSn0.js +0 -3
  1581. package/dist/send-B5TXXeBz.d.ts +0 -231
  1582. package/dist/send-C0ZHzB6o.js +0 -1631
  1583. package/dist/send-CXL3cM-w.js +0 -192
  1584. package/dist/send-CuDA29HM.js +0 -2
  1585. package/dist/send-D7qhwK7Z.js +0 -143
  1586. package/dist/send-DEMaBWpw.d.ts +0 -105
  1587. package/dist/send.components-BNeg1zrc.js +0 -2
  1588. package/dist/send.components-DwRyC_Hc.js +0 -500
  1589. package/dist/send.runtime-DBIUdxpO.js +0 -2
  1590. package/dist/send.types-DywwIqYK.d.ts +0 -160
  1591. package/dist/server-DGcm6Swr.js +0 -24
  1592. package/dist/server-DPvleC-x.js +0 -73
  1593. package/dist/server-context-BWBM4f-_.js +0 -955
  1594. package/dist/server-context-CFgwcLlu.js +0 -2
  1595. package/dist/server-cron-C1kChsjw.js +0 -2989
  1596. package/dist/server-cron-CS1EP5Li.js +0 -2
  1597. package/dist/server-methods-BcIlC8iD.js +0 -16494
  1598. package/dist/server-node-events-BAZCvZOy.js +0 -596
  1599. package/dist/server-plugin-bootstrap-cQUi21Uu.js +0 -70
  1600. package/dist/server-plugins-BRFre223.js +0 -432
  1601. package/dist/server-reload-handlers-DfcsAX-5.js +0 -714
  1602. package/dist/server-restart-sentinel-CFX5zQkM.js +0 -747
  1603. package/dist/server-restart-sentinel-DUvs77Q0.js +0 -2
  1604. package/dist/server-runtime-services-0vm5XmvV.js +0 -2
  1605. package/dist/server-runtime-services-CLz_vkLy.js +0 -267
  1606. package/dist/server-startup-plugins-CPXqqIRV.js +0 -113
  1607. package/dist/server-startup-post-attach-BkNe1Z6g.js +0 -716
  1608. package/dist/server-ws-runtime-rcJeRHFO.js +0 -349
  1609. package/dist/server.impl-a6knQ-N8.js +0 -2586
  1610. package/dist/service-H-BcELwS.js +0 -1446
  1611. package/dist/session-binding-BQliaqL7.js +0 -2
  1612. package/dist/session-binding-DPvZil_F.js +0 -219
  1613. package/dist/session-kill-http-DJMipluP.js +0 -121
  1614. package/dist/session-reset-service-Dn9FU5wA.js +0 -625
  1615. package/dist/session-route-JLWNmJxD.js +0 -93
  1616. package/dist/session-status.runtime-D0OptHcW.js +0 -2
  1617. package/dist/session-subagent-reactivation.runtime-BUmf1vNS.js +0 -2
  1618. package/dist/session-tab-registry-CoBvJVRj.js +0 -521
  1619. package/dist/sessions-history-http-B8CkLDAn.js +0 -430
  1620. package/dist/sessions.runtime-DbNqS_Gy.js +0 -2
  1621. package/dist/setup-CTZUUn1s.js +0 -586
  1622. package/dist/setup-D6fXOEjD.js +0 -2
  1623. package/dist/setup-api-DLPEXHCv.js +0 -29
  1624. package/dist/setup-core-DLXb29jm.js +0 -174
  1625. package/dist/setup-onboard-configure-help-fast-path-CrcZmKPI.js +0 -64
  1626. package/dist/setup-surface--Cct-rCt.js +0 -288
  1627. package/dist/setup-surface-CW8YN207.js +0 -320
  1628. package/dist/setup-surface-DIxcfqD0.js +0 -221
  1629. package/dist/setup-surface-IJ6kmKgi.js +0 -405
  1630. package/dist/setup.finalize-gWpWnCCk.js +0 -582
  1631. package/dist/setup.gateway-config-D_DaSfpW.js +0 -281
  1632. package/dist/setup.migration-import-CYZjCkle.js +0 -2
  1633. package/dist/setup.migration-import-CZJU4scH.js +0 -200
  1634. package/dist/shared-Bp_Fgv6B.js +0 -121
  1635. package/dist/shared-CLqPY0yv.d.ts +0 -115
  1636. package/dist/shared-client-OQdg8NGC.js +0 -629
  1637. package/dist/shared-client-dk1ICVBm.js +0 -2
  1638. package/dist/side-question-CbhRW3UI.js +0 -683
  1639. package/dist/simple-completion-runtime-XIF65b47.d.ts +0 -73
  1640. package/dist/skill-tool-dispatch.runtime-EcycYnWE.js +0 -143
  1641. package/dist/slash-state-BoX6WwB5.js +0 -2166
  1642. package/dist/speech-CvkJG5Mt.d.ts +0 -47
  1643. package/dist/speech-core-MG83lB3i.d.ts +0 -36
  1644. package/dist/speech-provider-1EN9hT-3.d.ts +0 -8
  1645. package/dist/speech-provider-67ebyEcs.js +0 -184
  1646. package/dist/speech-provider-B6tb45De.d.ts +0 -5
  1647. package/dist/speech-provider-C74wAyBX.d.ts +0 -5
  1648. package/dist/speech-provider-CYJoZZpj.d.ts +0 -8
  1649. package/dist/speech-provider-DavEMdKC.d.ts +0 -34
  1650. package/dist/speech-provider-DvFtveg6.d.ts +0 -5
  1651. package/dist/src-CbfOifft.js +0 -4256
  1652. package/dist/startup-context-YF24NARp.js +0 -313
  1653. package/dist/status-message-CcrZdfCO.js +0 -484
  1654. package/dist/status-message.runtime-Cptt1EPV.js +0 -6
  1655. package/dist/status-subagents.runtime-v2eijc4R.js +0 -18
  1656. package/dist/status-text-BWwar3Yc.js +0 -296
  1657. package/dist/status-tn3uQDY7.js +0 -73
  1658. package/dist/status.runtime-BFjTHLiQ.js +0 -2
  1659. package/dist/sticker-cache-Cs7LV_3a.js +0 -206
  1660. package/dist/sticker-vision.runtime-CyPMpoCs.js +0 -17
  1661. package/dist/stream-1rWKMSqV.d.ts +0 -16
  1662. package/dist/stream-Bk9TnoRV.d.ts +0 -10
  1663. package/dist/stream-DZeY9rhs.d.ts +0 -120
  1664. package/dist/stream-DgCoKjcL.d.ts +0 -19
  1665. package/dist/stream-exnufPSG.d.ts +0 -5
  1666. package/dist/stream-wrappers-D2EuY1tP.d.ts +0 -21
  1667. package/dist/subagent-announce-CRjGGxSB.js +0 -354
  1668. package/dist/subagent-announce-delivery-CbfRRdwt.js +0 -958
  1669. package/dist/subagent-control-VTsWynTB.js +0 -508
  1670. package/dist/subagent-hooks-BB__aHul.js +0 -2
  1671. package/dist/subagent-hooks-Cb5fJ2H0.js +0 -146
  1672. package/dist/subagent-hooks-CwVBMhp_.js +0 -2
  1673. package/dist/subagent-hooks-Cx9_GAMF.js +0 -116
  1674. package/dist/subagent-hooks-DOJhvTDx.js +0 -230
  1675. package/dist/subagent-hooks-DUMqhB3r.js +0 -2
  1676. package/dist/subagent-hooks-api-BDGmCxB2.js +0 -22
  1677. package/dist/subagent-hooks-api-CcTdPqP1.js +0 -23
  1678. package/dist/subagent-hooks-api-D18tQta6.js +0 -23
  1679. package/dist/subagent-orphan-recovery-6bNIX25Q.js +0 -352
  1680. package/dist/subagent-registry-DokIxoQ6.js +0 -2351
  1681. package/dist/subagent-registry-tlyJE0hN.js +0 -3
  1682. package/dist/subagent-session-cleanup-BWHQ6rcm.js +0 -525
  1683. package/dist/subagent-spawn-BUdUAwoc.js +0 -1164
  1684. package/dist/target-id-CI1U3MSO.js +0 -107
  1685. package/dist/targets-CbBORUXB.d.ts +0 -10
  1686. package/dist/targets-CgmlXrhv.js +0 -44
  1687. package/dist/targets-D-jSrLUN.js +0 -19
  1688. package/dist/targets-DPDu8x6v.js +0 -19
  1689. package/dist/targets-D_fXvxrg.d.ts +0 -10
  1690. package/dist/testing-D-48HuIK.js +0 -267
  1691. package/dist/thinking-policy-CY16OlCs.d.ts +0 -5
  1692. package/dist/thread-bindings-B9J0nGG7.js +0 -232
  1693. package/dist/thread-bindings-BByWvFZq.js +0 -8
  1694. package/dist/thread-bindings-Cxjm2mLg.js +0 -571
  1695. package/dist/thread-bindings-DQWmglaO.js +0 -228
  1696. package/dist/thread-bindings.discord-api-DWWDvMgL.js +0 -187
  1697. package/dist/thread-bindings.manager-CQW6bNs5.js +0 -2
  1698. package/dist/thread-bindings.manager-DpBYBs9s.js +0 -536
  1699. package/dist/thread-lifecycle-PpB8gTx1.js +0 -1614
  1700. package/dist/token-CBy6YYM_.js +0 -134
  1701. package/dist/tool-BCHcwX9p.js +0 -139
  1702. package/dist/tool-actions.runtime-Cwxr2NmB.js +0 -534
  1703. package/dist/tool-plugin-DHZYdwyJ.d.ts +0 -77
  1704. package/dist/tool-resolution-DQpf531V.js +0 -149
  1705. package/dist/tool-split-ClZW5eN5.d.ts +0 -19
  1706. package/dist/tools-effective-inventory-BHxeIAri.js +0 -204
  1707. package/dist/tools-invoke-http-Bv2LES5Q.js +0 -67
  1708. package/dist/tools-invoke-shared-Cf_ifab9.js +0 -200
  1709. package/dist/transport-stream-D_pZ9Qwv.d.ts +0 -42
  1710. package/dist/tts-CjTcF0YS.js +0 -66
  1711. package/dist/tui-D3_WpyGV.js +0 -2
  1712. package/dist/tui-Y8IezK6P.js +0 -4709
  1713. package/dist/tui-backend-BIJbrfDK.js +0 -256
  1714. package/dist/tui-cli-YVLQJGLU.js +0 -37
  1715. package/dist/types-CnKegQ41.d.ts +0 -786
  1716. package/dist/types-Dyry5PA_2.d.ts +0 -3650
  1717. package/dist/types.public-AUFnQi6j.d.ts +0 -70
  1718. package/dist/update-cli-B7MOXy4Y.js +0 -3664
  1719. package/dist/video-generation-runtime-Cc8klYNS.d.ts +0 -21
  1720. package/dist/video-model-catalog-XG42YlJS.d.ts +0 -16
  1721. package/dist/vision-tools-kEwnV2UO.js +0 -1409
  1722. package/dist/web-search-DH1W_lfx.js +0 -62
  1723. package/dist/web-search-provider.runtime-BX9TezsY.js +0 -328
  1724. package/dist/web-search-provider.runtime-BhRjYeyp.js +0 -2
  1725. package/dist/webhook-targets--wGRjxMd.d.ts +0 -99
  1726. package/dist/xai-oauth-BZQ--94U.js +0 -479
  1727. package/dist/xai-user-agent-SpZaKTGR.js +0 -32
  1728. package/dist/zod-schema.core-BhLPa6BF.d.ts +0 -166
  1729. /package/dist/{accounts-CqgATPC-2.d.ts → accounts-CqgATPC-.d.ts} +0 -0
  1730. /package/dist/{acp-runtime-backend-DU5R8SXu.js → acp-runtime-backend-DHyoMnZY.js} +0 -0
  1731. /package/dist/{channel-actions-Ce2Sna1a.js → channel-actions-B5OPAiNK.js} +0 -0
  1732. /package/dist/{command-status-runtime-Cj5vB8lc.js → command-status-runtime-BqQvv1BR.js} +0 -0
  1733. /package/dist/{delegate-BeKeQwNR.js → delegate-B1QIF1j8.js} +0 -0
  1734. /package/dist/{dispatch-acp-DXlzEM_A.js → dispatch-acp-Ch9ZmM4b.js} +0 -0
  1735. /package/dist/{heartbeat-runner-Dncw_0KS.js → heartbeat-runner-BkgH94IS.js} +0 -0
  1736. /package/dist/{library-6cU4n1-c.js → library-DP1oARlw.js} +0 -0
  1737. /package/dist/{run-executor.runtime-DjwaphFT.js → run-executor.runtime-Czk4Lxkj.js} +0 -0
  1738. /package/dist/{video-generation-core-BVVgDSdq.d.ts → server-plugins-BVVgDSdq.d.ts} +0 -0
  1739. /package/dist/{shared-BE5PSFeb.js → shared-SiM6kZAE.js} +0 -0
  1740. /package/dist/{model-ref-mtPT-mlX.d.ts → video-generation-core-mtPT-mlX.d.ts} +0 -0
@@ -1,3650 +0,0 @@
1
- import { On as CliBackendConfig, r as DaoCoreConfig } from "./types.daocore-kp8IyikH.js";
2
- import { l as SecretInput } from "./types.secrets-tbFW-hY6.js";
3
- import { l as ModelProviderAuthMode, o as ModelCompatConfig, u as ModelProviderConfig } from "./types.models-BXrRAuSB.js";
4
- import { x as ToolLoopDetectionConfig } from "./types.tools-nWzVz5Fw.js";
5
- import { t as ModelProviderRequestTransportOverrides$1 } from "./provider-request-config-CDUAk6nN.js";
6
- import { r as EmbeddingProviderAdapter } from "./embedding-providers-Dwb106JS.js";
7
- import { n as PluginConfigUiHint } from "./manifest-types-DYm6ZA7y.js";
8
- import { t as JsonSchemaObject } from "./json-schema.types-fpZiub1R.js";
9
- import { d as PluginKind, f as UnifiedModelCatalogEntry, p as UnifiedModelCatalogKind } from "./manifest-registry-BytIqZ_A.js";
10
- import { n as ReasoningLevel, r as ThinkLevel } from "./thinking.shared-DZFlsfdo.js";
11
- import { a as SourceReplyDeliveryMode, n as GetReplyOptions, s as ReplyPayload } from "./get-reply-options.types-BXrapyJ-.js";
12
- import { S as HeartbeatToolResponse, _ as AgentRunTimeoutPhase, a as BlockReplyChunking, b as AcceptedSessionSpawn, d as ExecElevatedDefaults, g as EmbeddedRunLivenessState, i as PromptMode, p as EmbeddedPiCompactResult, r as RunEmbeddedPiAgentParams, v as MessagingToolSend, y as MessagingToolSourceReplyPayload } from "./params-CZRWWXHe.js";
13
- import { t as CommandQueueEnqueueFn } from "./command-queue.types-CfUiTJN8.js";
14
- import { s as SandboxFsBridge } from "./backend-handle.types-D7afWmft.js";
15
- import { t as ChannelId } from "./channel-id.types-ClK6B_QE.js";
16
- import { t as DeliveryContext } from "./delivery-context.types-DsJXWtUi.js";
17
- import { c as SessionSystemPromptReport, o as SessionEntry } from "./types-BdMfZf_9.js";
18
- import { t as DiagnosticTraceContext } from "./diagnostic-trace-context-DcbwO2-o.js";
19
- import { n as FailoverReason } from "./types-DKoVBm0H.js";
20
- import { n as SkillSnapshot } from "./skills-BRkHvK1T.js";
21
- import { t as ModelCatalogEntry } from "./model-catalog.types-BnioQy7H.js";
22
- import { E as DaoCorePluginHookOptions, L as WebFetchProviderPlugin, O as DaoCorePluginToolFactory, U as WebSearchProviderPlugin, k as DaoCorePluginToolOptions } from "./types-core-C88zUmhD.js";
23
- import { c as OAuthCredential, i as AuthProfileCredential, s as AuthProfileStore, t as ApiKeyCredential } from "./types-dSHooml1.js";
24
- import { f as MediaUnderstandingProvider } from "./types-CVxsggkU.js";
25
- import { l as ImageGenerationProvider } from "./types-p_hnmhVO.js";
26
- import { s as VideoGenerationProvider } from "./types-DRM6itxh.js";
27
- import { c as MusicGenerationProvider } from "./types-BQssD600.js";
28
- import { n as RuntimeEnv } from "./runtime-Bxifh4bY.js";
29
- import { i as WizardPrompter } from "./prompts-DgKIGa-v.js";
30
- import { t as SecretInputMode } from "./provider-auth-types-C72FsWut.js";
31
- import { r as AnyAgentTool } from "./common-BDN0bXby.js";
32
- import { A as SpeechSynthesisRequest, C as SpeechProviderId, D as SpeechProviderResolveConfigContext, E as SpeechProviderPreparedSynthesis, F as SpeechTelephonySynthesisRequest, I as SpeechTelephonySynthesisResult, L as SpeechVoiceOption, M as SpeechSynthesisStreamRequest, N as SpeechSynthesisStreamResult, O as SpeechProviderResolveTalkConfigContext, S as SpeechProviderConfiguredContext, T as SpeechProviderPrepareSynthesisContext, _ as SpeechDirectiveTokenParseContext, j as SpeechSynthesisResult, k as SpeechProviderResolveTalkOverridesContext, v as SpeechDirectiveTokenParseResult, x as SpeechProviderConfig, y as SpeechListVoicesRequest } from "./tts-runtime.types-CiR5E2bC.js";
33
- import { n as DetachedTaskLifecycleRuntime } from "./detached-task-runtime-contract-CcoNvwR2.js";
34
- import { _ as ContextEngineRuntimeContext, g as ContextEnginePromptCacheInfo, l as ContextEngine, t as ContextEngineFactory, u as ContextEngineHostCapability } from "./registry-CAN_dW8W.js";
35
- import { f as MemoryPluginRuntime, o as MemoryFlushPlanResolver, p as MemoryPromptSectionBuilder, r as MemoryCorpusSupplement, s as MemoryPluginCapability } from "./memory-state-ChnNLcbq.js";
36
- import { Ft as PluginNextTurnInjection, It as PluginNextTurnInjectionEnqueueResult, Jt as PluginConversationBindingRequestResult, Kt as PluginConversationBinding, Rt as PluginJsonValue, Xt as PluginConversationBindingResolvedEvent, et as PluginHookName, nn as PluginHookBeforeAgentStartResult, q as PluginHookHandlerMap, qt as PluginConversationBindingRequestParams, vt as PluginHookToolInputKind, yt as PluginHookToolKind } from "./hook-types-DPDFYFH1.js";
37
- import { Ao as PluginRuntimeLifecycleRegistration, Bo as PluginSessionTurnScheduleParams, Do as PluginControlUiDescriptor, Eo as PluginAgentEventSubscriptionRegistration, Fo as PluginSessionAttachmentResult, Go as OperatorScope, Ho as PluginSessionTurnUnscheduleByTagResult, Lo as PluginSessionExtensionRegistration, Mo as PluginSessionActionRegistration, Oo as PluginRunContextGetParams, Po as PluginSessionAttachmentParams, Ro as PluginSessionSchedulerJobHandle, To as PluginAgentEventEmitResult, Uo as PluginToolMetadataRegistration, Vo as PluginSessionTurnUnscheduleByTagParams, Wo as PluginTrustedToolPolicyRegistration, ko as PluginRunContextPatch, wo as PluginAgentEventEmitParams, zo as PluginSessionSchedulerJobRegistration } from "./index-CKAHTIU4.js";
38
- import { n as ChannelPlugin } from "./types.public-AUFnQi6j.js";
39
- import { n as GatewayRequestHandler } from "./types-CnKegQ41.js";
40
- import { r as InternalHookHandler } from "./internal-hook-types-BwvTZGLB.js";
41
- import { a as DiagnosticEventPayload, i as DiagnosticEventMetadata, jt as TalkTransport, r as DiagnosticEventInput } from "./diagnostic-events-DTdUTmJ8.js";
42
- import { t as ProviderUsageSnapshot } from "./provider-usage.types-BGbkzahX.js";
43
- import { n as PluginRuntime } from "./types-CqkHo5uy.js";
44
- import { Duplex } from "node:stream";
45
- import { TSchema } from "typebox";
46
- import { AuthStorage, ModelRegistry } from "@earendil-works/pi-coding-agent";
47
- import { Api, AssistantMessage, Model } from "@earendil-works/pi-ai";
48
- import { IncomingMessage, ServerResponse } from "node:http";
49
- import { Command } from "commander";
50
- import { AgentMessage, AgentTool, AgentToolResult, StreamFn } from "@earendil-works/pi-agent-core";
51
-
52
- //#region src/plugins/compaction-provider.d.ts
53
- /**
54
- * Compaction provider registry — process-global singleton.
55
- *
56
- * Plugins implement the CompactionProvider interface and register via
57
- * `registerCompactionProvider()`. The compaction safeguard checks this
58
- * registry before falling back to the built-in `summarizeInStages()`.
59
- */
60
- /**
61
- * A pluggable compaction provider that can replace the built-in
62
- * summarizeInStages pipeline.
63
- */
64
- type CompactionProviderSummarizationInstructions = {
65
- identifierPolicy?: "strict" | "off" | "custom";
66
- identifierInstructions?: string;
67
- };
68
- interface CompactionProvider {
69
- id: string;
70
- label: string;
71
- summarize(params: {
72
- messages: unknown[];
73
- signal?: AbortSignal;
74
- compressionRatio?: number;
75
- customInstructions?: string;
76
- summarizationInstructions?: CompactionProviderSummarizationInstructions; /** Summary from a prior compaction round, if re-compacting. */
77
- previousSummary?: string;
78
- }): Promise<string>;
79
- }
80
- //#endregion
81
- //#region src/memory-host-sdk/host/embedding-inputs.d.ts
82
- type EmbeddingInputTextPart = {
83
- type: "text";
84
- text: string;
85
- };
86
- type EmbeddingInputInlineDataPart = {
87
- type: "inline-data";
88
- mimeType: string;
89
- data: string;
90
- };
91
- type EmbeddingInputPart = EmbeddingInputTextPart | EmbeddingInputInlineDataPart;
92
- type EmbeddingInput = {
93
- text: string;
94
- parts?: EmbeddingInputPart[];
95
- };
96
- //#endregion
97
- //#region src/plugins/memory-embedding-providers.d.ts
98
- type MemoryEmbeddingBatchChunk = {
99
- text: string;
100
- embeddingInput?: EmbeddingInput;
101
- };
102
- type MemoryEmbeddingBatchOptions = {
103
- agentId: string;
104
- chunks: MemoryEmbeddingBatchChunk[];
105
- wait: boolean;
106
- concurrency: number;
107
- pollIntervalMs: number;
108
- timeoutMs: number;
109
- debug: (message: string, data?: Record<string, unknown>) => void;
110
- };
111
- type MemoryEmbeddingProviderCallOptions = {
112
- signal?: AbortSignal;
113
- };
114
- type MemoryEmbeddingProviderRuntime = {
115
- id: string;
116
- cacheKeyData?: Record<string, unknown>;
117
- inlineQueryTimeoutMs?: number;
118
- inlineBatchTimeoutMs?: number;
119
- batchEmbed?: (options: MemoryEmbeddingBatchOptions) => Promise<number[][] | null>;
120
- };
121
- type MemoryEmbeddingProvider = {
122
- id: string;
123
- model: string;
124
- maxInputTokens?: number;
125
- embedQuery: (text: string, options?: MemoryEmbeddingProviderCallOptions) => Promise<number[]>;
126
- embedBatch: (texts: string[], options?: MemoryEmbeddingProviderCallOptions) => Promise<number[][]>;
127
- embedBatchInputs?: (inputs: EmbeddingInput[], options?: MemoryEmbeddingProviderCallOptions) => Promise<number[][]>;
128
- close?: () => Promise<void> | void;
129
- };
130
- type MemoryEmbeddingProviderCreateOptions = {
131
- config: DaoCoreConfig;
132
- agentDir?: string;
133
- provider?: string;
134
- fallback?: string;
135
- remote?: {
136
- baseUrl?: string;
137
- apiKey?: SecretInput;
138
- headers?: Record<string, string>;
139
- };
140
- model: string;
141
- inputType?: string;
142
- queryInputType?: string;
143
- documentInputType?: string;
144
- local?: {
145
- modelPath?: string;
146
- modelCacheDir?: string;
147
- };
148
- outputDimensionality?: number;
149
- taskType?: "RETRIEVAL_QUERY" | "RETRIEVAL_DOCUMENT" | "SEMANTIC_SIMILARITY" | "CLASSIFICATION" | "CLUSTERING" | "QUESTION_ANSWERING" | "FACT_VERIFICATION";
150
- };
151
- type MemoryEmbeddingProviderCreateResult = {
152
- provider: MemoryEmbeddingProvider | null;
153
- runtime?: MemoryEmbeddingProviderRuntime;
154
- };
155
- type MemoryEmbeddingProviderAdapter = {
156
- id: string;
157
- defaultModel?: string;
158
- transport?: "local" | "remote";
159
- authProviderId?: string;
160
- autoSelectPriority?: number;
161
- allowExplicitWhenConfiguredAuto?: boolean;
162
- supportsMultimodalEmbeddings?: (params: {
163
- model: string;
164
- }) => boolean;
165
- create: (options: MemoryEmbeddingProviderCreateOptions) => Promise<MemoryEmbeddingProviderCreateResult>;
166
- formatSetupError?: (err: unknown) => string;
167
- shouldContinueAutoSelection?: (err: unknown) => boolean;
168
- };
169
- type RegisteredMemoryEmbeddingProvider = {
170
- adapter: MemoryEmbeddingProviderAdapter;
171
- ownerPluginId?: string;
172
- };
173
- declare function registerMemoryEmbeddingProvider(adapter: MemoryEmbeddingProviderAdapter, options?: {
174
- ownerPluginId?: string;
175
- }): void;
176
- declare function listRegisteredMemoryEmbeddingProviders(): RegisteredMemoryEmbeddingProvider[];
177
- declare function clearMemoryEmbeddingProviders(): void;
178
- //#endregion
179
- //#region src/agents/pi-embedded-runner/runtime.d.ts
180
- type EmbeddedAgentRuntime = "pi" | "auto" | (string & {});
181
- declare function resolveEmbeddedAgentRuntime(env?: NodeJS.ProcessEnv): EmbeddedAgentRuntime;
182
- //#endregion
183
- //#region src/tasks/agent-harness-task-runtime-scope.d.ts
184
- type AgentHarnessTaskRuntimeScope = {
185
- readonly requesterSessionKey: string;
186
- readonly requesterOrigin?: DeliveryContext;
187
- };
188
- //#endregion
189
- //#region src/agents/pi-tools.before-tool-call.d.ts
190
- type ToolOutcomeObservation = {
191
- toolName: string;
192
- argsHash: string;
193
- resultHash: string;
194
- };
195
- type ToolOutcomeObserver = (observation: ToolOutcomeObservation) => void;
196
- type HookContext = {
197
- agentId?: string;
198
- config?: DaoCoreConfig; /** Tool execution cwd for host-derived path facts. */
199
- cwd?: string;
200
- sessionKey?: string; /** Ephemeral session UUID — regenerated on /new and /reset. */
201
- sessionId?: string;
202
- runId?: string;
203
- trace?: DiagnosticTraceContext;
204
- channelId?: string;
205
- loopDetection?: ToolLoopDetectionConfig;
206
- onToolOutcome?: ToolOutcomeObserver;
207
- sandbox?: {
208
- root: string;
209
- bridge: SandboxFsBridge;
210
- };
211
- };
212
- type HookBlockedKind = "veto" | "failure";
213
- type HookBlockedReason = "plugin-before-tool-call" | "plugin-approval" | "tool-loop";
214
- type HookOutcome = {
215
- blocked: true;
216
- kind?: HookBlockedKind;
217
- deniedReason?: HookBlockedReason;
218
- reason: string;
219
- params?: unknown;
220
- } | {
221
- blocked: false;
222
- params: unknown;
223
- };
224
- declare function hasBeforeToolCallPolicy(): boolean;
225
- declare function runBeforeToolCallHook(args: {
226
- toolName: string;
227
- params: unknown;
228
- toolKind?: PluginHookToolKind;
229
- toolInputKind?: PluginHookToolInputKind;
230
- toolCallId?: string;
231
- ctx?: HookContext;
232
- signal?: AbortSignal;
233
- approvalMode?: "request" | "report";
234
- }): Promise<HookOutcome>;
235
- declare function wrapToolWithBeforeToolCallHook(tool: AnyAgentTool, ctx?: HookContext, options?: {
236
- emitDiagnostics?: boolean;
237
- }): AnyAgentTool;
238
- declare function isToolWrappedWithBeforeToolCallHook(tool: AnyAgentTool): boolean;
239
- declare function setBeforeToolCallDiagnosticsEnabled(tool: AnyAgentTool, enabled: boolean): void;
240
- //#endregion
241
- //#region src/agents/runtime-plan/types.d.ts
242
- type AgentRuntimeTransport = "sse" | "websocket" | "auto";
243
- type AgentRuntimeThinkLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max";
244
- type AgentRuntimePromptMode = "full" | "minimal" | "none";
245
- type AgentRuntimePromptTrigger = "cron" | "heartbeat" | "manual" | "memory" | "overflow" | "user";
246
- type AgentRuntimeFailoverReason = "auth" | "auth_permanent" | "format" | "rate_limit" | "overloaded" | "billing" | "server_error" | "timeout" | "model_not_found" | "session_expired" | "empty_response" | "no_error_details" | "unclassified" | "unknown";
247
- type AgentRuntimeConfig = unknown;
248
- type AgentRuntimeModel = {
249
- id?: string;
250
- name?: string;
251
- api?: string;
252
- provider?: string;
253
- baseUrl?: string;
254
- reasoning?: boolean;
255
- input?: readonly string[];
256
- cost?: {
257
- input: number;
258
- output: number;
259
- cacheRead: number;
260
- cacheWrite: number;
261
- };
262
- contextWindow?: number;
263
- maxTokens?: number;
264
- contextTokens?: number;
265
- compat?: unknown;
266
- };
267
- type AgentRuntimeTextReplacement = {
268
- from: string | RegExp;
269
- to: string;
270
- };
271
- type AgentRuntimeTextTransforms = {
272
- input?: AgentRuntimeTextReplacement[];
273
- output?: AgentRuntimeTextReplacement[];
274
- };
275
- type AgentRuntimeProviderHandle = {
276
- provider: string;
277
- config?: AgentRuntimeConfig;
278
- workspaceDir?: string;
279
- env?: NodeJS.ProcessEnv;
280
- applyAutoEnable?: boolean;
281
- bundledProviderAllowlistCompat?: boolean;
282
- bundledProviderVitestCompat?: boolean;
283
- };
284
- type AgentRuntimeInteractiveButtonStyle = "primary" | "secondary" | "success" | "danger";
285
- /** Portable action control exposed to agent runtime reply payloads. */
286
- type AgentRuntimeMessagePresentationButton = {
287
- /** User-visible button label. */label: string; /** Callback command or opaque value sent when pressed. */
288
- value?: string; /** External URL opened by the button. */
289
- url?: string; /** Channel-native web app URL for renderers that support embedded web apps. */
290
- webApp?: {
291
- url: string;
292
- }; /** Higher values are kept first when channel action limits require dropping controls. */
293
- priority?: number; /** Disabled action hint; channels without disabled-state support render fallback text. */
294
- disabled?: boolean; /** Optional visual style hint for renderers that support styled actions. */
295
- style?: AgentRuntimeInteractiveButtonStyle;
296
- };
297
- /** Portable select/menu option exposed to agent runtime reply payloads. */
298
- type AgentRuntimeMessagePresentationOption = {
299
- /** User-visible option label. */label: string; /** Callback command or opaque value sent when selected. */
300
- value: string;
301
- };
302
- /**
303
- * @deprecated Use AgentRuntimeMessagePresentationButton.
304
- */
305
- type AgentRuntimeInteractiveReplyButton = AgentRuntimeMessagePresentationButton;
306
- /**
307
- * @deprecated Use AgentRuntimeMessagePresentationOption.
308
- */
309
- type AgentRuntimeInteractiveReplyOption = AgentRuntimeMessagePresentationOption;
310
- /**
311
- * @deprecated Use AgentRuntimeMessagePresentationBlock.
312
- */
313
- type AgentRuntimeInteractiveReplyBlock = {
314
- type: "text";
315
- text: string;
316
- } | {
317
- type: "buttons";
318
- buttons: AgentRuntimeInteractiveReplyButton[];
319
- } | {
320
- type: "select";
321
- placeholder?: string;
322
- options: AgentRuntimeInteractiveReplyOption[];
323
- };
324
- /**
325
- * @deprecated Use AgentRuntimeMessagePresentation.
326
- */
327
- type AgentRuntimeInteractiveReply = {
328
- blocks: AgentRuntimeInteractiveReplyBlock[];
329
- };
330
- type AgentRuntimeMessagePresentationTone = "info" | "success" | "warning" | "danger" | "neutral";
331
- type AgentRuntimeMessagePresentationBlock = {
332
- type: "text";
333
- text: string;
334
- } | {
335
- type: "context";
336
- text: string;
337
- } | {
338
- type: "divider";
339
- } | {
340
- type: "buttons";
341
- buttons: AgentRuntimeMessagePresentationButton[];
342
- } | {
343
- type: "select";
344
- placeholder?: string;
345
- options: AgentRuntimeMessagePresentationOption[];
346
- };
347
- type AgentRuntimeMessagePresentation = {
348
- /** Optional short heading rendered before blocks when supported. */title?: string; /** Optional severity/status tone for renderers that support toned presentations. */
349
- tone?: AgentRuntimeMessagePresentationTone; /** Ordered portable blocks rendered or downgraded by channel adapters. */
350
- blocks: AgentRuntimeMessagePresentationBlock[];
351
- };
352
- type AgentRuntimeReplyPayloadDeliveryPin = {
353
- enabled: boolean;
354
- notify?: boolean;
355
- required?: boolean;
356
- };
357
- type AgentRuntimeReplyPayloadDelivery = {
358
- pin?: boolean | AgentRuntimeReplyPayloadDeliveryPin;
359
- };
360
- type AgentRuntimeReplyPayload = {
361
- text?: string;
362
- mediaUrl?: string;
363
- mediaUrls?: string[];
364
- trustedLocalMedia?: boolean;
365
- sensitiveMedia?: boolean;
366
- presentation?: AgentRuntimeMessagePresentation;
367
- delivery?: AgentRuntimeReplyPayloadDelivery;
368
- /**
369
- * @deprecated Use presentation.
370
- */
371
- interactive?: AgentRuntimeInteractiveReply;
372
- btw?: {
373
- question: string;
374
- };
375
- replyToId?: string;
376
- replyToTag?: boolean;
377
- replyToCurrent?: boolean;
378
- audioAsVoice?: boolean;
379
- spokenText?: string;
380
- ttsSupplement?: {
381
- spokenText: string;
382
- visibleTextAlreadyDelivered?: boolean;
383
- };
384
- isError?: boolean;
385
- isReasoning?: boolean;
386
- isCompactionNotice?: boolean;
387
- isFallbackNotice?: boolean;
388
- isStatusNotice?: boolean;
389
- channelData?: Record<string, unknown>;
390
- };
391
- type AgentRuntimeSystemPromptSectionId = "interaction_style" | "tool_call_style" | "execution_bias";
392
- type AgentRuntimeSystemPromptContribution = {
393
- stablePrefix?: string;
394
- dynamicSuffix?: string;
395
- sectionOverrides?: Partial<Record<AgentRuntimeSystemPromptSectionId, string>>;
396
- };
397
- type AgentRuntimeSystemPromptContributionContext = {
398
- config?: AgentRuntimeConfig;
399
- agentDir?: string;
400
- workspaceDir?: string;
401
- provider: string;
402
- modelId: string;
403
- promptMode: AgentRuntimePromptMode;
404
- runtimeChannel?: string;
405
- runtimeCapabilities?: string[];
406
- agentId?: string;
407
- trigger?: AgentRuntimePromptTrigger;
408
- };
409
- type AgentRuntimeFollowupFallbackRouteResult = {
410
- route?: "origin" | "dispatcher" | "drop";
411
- reason?: string;
412
- };
413
- type AgentRuntimeToolCallIdMode = "strict" | "strict9";
414
- type AgentRuntimeTranscriptPolicy = {
415
- sanitizeMode: "full" | "images-only";
416
- sanitizeToolCallIds: boolean;
417
- toolCallIdMode?: AgentRuntimeToolCallIdMode;
418
- preserveNativeAnthropicToolUseIds: boolean;
419
- repairToolUseResultPairing: boolean;
420
- preserveSignatures: boolean;
421
- sanitizeThoughtSignatures?: {
422
- allowBase64Only?: boolean;
423
- includeCamelCase?: boolean;
424
- };
425
- sanitizeThinkingSignatures: boolean;
426
- dropThinkingBlocks: boolean;
427
- dropReasoningFromHistory?: boolean;
428
- applyGoogleTurnOrdering: boolean;
429
- validateGeminiTurns: boolean;
430
- validateAnthropicTurns: boolean;
431
- allowSyntheticToolResults: boolean;
432
- };
433
- type AgentRuntimeOutcomeClassification = {
434
- message: string;
435
- reason?: AgentRuntimeFailoverReason;
436
- status?: number;
437
- code?: string;
438
- rawError?: string;
439
- } | {
440
- error: unknown;
441
- } | null | undefined;
442
- type AgentRuntimeOutcomeClassifier = (params: {
443
- provider: string;
444
- model: string;
445
- result: unknown;
446
- hasDirectlySentBlockReply?: boolean;
447
- hasBlockReplyPipelineOutput?: boolean;
448
- }) => AgentRuntimeOutcomeClassification;
449
- type AgentRuntimeResolvedRef = {
450
- provider: string;
451
- modelId: string;
452
- modelApi?: string;
453
- harnessId?: string;
454
- transport?: AgentRuntimeTransport;
455
- };
456
- type AgentRuntimeAuthPlan = {
457
- providerForAuth: string;
458
- authProfileProviderForAuth: string;
459
- harnessAuthProvider?: string;
460
- forwardedAuthProfileId?: string;
461
- forwardedAuthProfileCandidateIds?: string[];
462
- };
463
- type AgentRuntimePromptPlan = {
464
- provider: string;
465
- modelId: string;
466
- textTransforms?: AgentRuntimeTextTransforms;
467
- resolveSystemPromptContribution(context: AgentRuntimeSystemPromptContributionContext): AgentRuntimeSystemPromptContribution | undefined;
468
- transformSystemPrompt(context: AgentRuntimeSystemPromptContributionContext & {
469
- systemPrompt: string;
470
- }): string;
471
- };
472
- type AgentRuntimePreparedMetadataSnapshot = object;
473
- type PreparedDaoCoreToolPlanning = {
474
- metadataSnapshot?: AgentRuntimePreparedMetadataSnapshot;
475
- loadMetadataSnapshot?: () => AgentRuntimePreparedMetadataSnapshot;
476
- };
477
- type AgentRuntimeToolPlan = {
478
- preparedPlanning?: PreparedDaoCoreToolPlanning;
479
- normalize<TSchemaType extends TSchema = TSchema, TResult = unknown>(tools: AgentTool<TSchemaType, TResult>[], params?: {
480
- workspaceDir?: string;
481
- modelApi?: string;
482
- model?: AgentRuntimeModel;
483
- }): AgentTool<TSchemaType, TResult>[];
484
- logDiagnostics(tools: AgentTool[], params?: {
485
- workspaceDir?: string;
486
- modelApi?: string;
487
- model?: AgentRuntimeModel;
488
- }): void;
489
- };
490
- type AgentRuntimeDeliveryPlan = {
491
- isSilentPayload(payload: Pick<AgentRuntimeReplyPayload, "text" | "mediaUrl" | "mediaUrls" | "presentation" | "interactive" | "channelData">): boolean;
492
- resolveFollowupRoute(params: {
493
- payload: AgentRuntimeReplyPayload;
494
- originatingChannel?: string;
495
- originatingTo?: string;
496
- originRoutable: boolean;
497
- dispatcherAvailable: boolean;
498
- }): AgentRuntimeFollowupFallbackRouteResult | undefined;
499
- };
500
- type AgentRuntimeOutcomePlan = {
501
- classifyRunResult: AgentRuntimeOutcomeClassifier;
502
- };
503
- type AgentRuntimeTransportPlan = {
504
- extraParams: Record<string, unknown>;
505
- resolveExtraParams(params?: {
506
- extraParamsOverride?: Record<string, unknown>;
507
- thinkingLevel?: AgentRuntimeThinkLevel;
508
- agentId?: string;
509
- workspaceDir?: string;
510
- model?: AgentRuntimeModel;
511
- resolvedTransport?: AgentRuntimeTransport;
512
- }): Record<string, unknown>;
513
- };
514
- type AgentRuntimePlan = {
515
- resolvedRef: AgentRuntimeResolvedRef;
516
- providerRuntimeHandle?: AgentRuntimeProviderHandle;
517
- auth: AgentRuntimeAuthPlan;
518
- prompt: AgentRuntimePromptPlan;
519
- tools: AgentRuntimeToolPlan;
520
- transcript: {
521
- policy: AgentRuntimeTranscriptPolicy;
522
- resolvePolicy(params?: {
523
- workspaceDir?: string;
524
- modelApi?: string;
525
- model?: AgentRuntimeModel;
526
- }): AgentRuntimeTranscriptPolicy;
527
- };
528
- delivery: AgentRuntimeDeliveryPlan;
529
- outcome: AgentRuntimeOutcomePlan;
530
- transport: AgentRuntimeTransportPlan;
531
- observability: {
532
- resolvedRef: string;
533
- provider: string;
534
- modelId: string;
535
- modelApi?: string;
536
- harnessId?: string;
537
- authProfileId?: string;
538
- transport?: AgentRuntimeTransport;
539
- };
540
- };
541
- type BuildAgentRuntimePlanParams = {
542
- config?: AgentRuntimeConfig;
543
- workspaceDir?: string;
544
- agentDir?: string;
545
- provider: string;
546
- modelId: string;
547
- model?: AgentRuntimeModel;
548
- modelApi?: string | null;
549
- harnessId?: string;
550
- harnessRuntime?: string;
551
- allowHarnessAuthProfileForwarding?: boolean;
552
- authProfileProvider?: string;
553
- authProfileMode?: string;
554
- sessionAuthProfileId?: string;
555
- sessionAuthProfileCandidateIds?: string[];
556
- agentId?: string;
557
- thinkingLevel?: AgentRuntimeThinkLevel;
558
- extraParamsOverride?: Record<string, unknown>;
559
- resolvedTransport?: AgentRuntimeTransport;
560
- providerRuntimeHandle?: AgentRuntimeProviderHandle;
561
- };
562
- //#endregion
563
- //#region src/agents/tool-mutation.d.ts
564
- type FileTarget = {
565
- path?: string;
566
- oldpath?: string;
567
- };
568
- //#endregion
569
- //#region src/agents/tool-error-summary.d.ts
570
- type ToolErrorSummary = {
571
- toolName: string;
572
- meta?: string;
573
- errorCode?: string;
574
- error?: string;
575
- timedOut?: boolean;
576
- middlewareError?: boolean;
577
- mutatingAction?: boolean;
578
- actionFingerprint?: string;
579
- fileTarget?: FileTarget;
580
- };
581
- //#endregion
582
- //#region src/agents/usage.d.ts
583
- type UsageLike = {
584
- input?: number;
585
- output?: number;
586
- cacheRead?: number;
587
- cacheWrite?: number;
588
- total?: number;
589
- inputTokens?: number;
590
- outputTokens?: number;
591
- promptTokens?: number;
592
- completionTokens?: number;
593
- input_tokens?: number;
594
- output_tokens?: number;
595
- prompt_tokens?: number;
596
- completion_tokens?: number;
597
- cache_read_input_tokens?: number;
598
- cache_creation_input_tokens?: number;
599
- reasoningTokens?: number;
600
- reasoning_tokens?: number;
601
- completion_tokens_details?: {
602
- reasoning_tokens?: number;
603
- };
604
- output_tokens_details?: {
605
- reasoning_tokens?: number;
606
- };
607
- cached_tokens?: number;
608
- input_tokens_details?: {
609
- cached_tokens?: number;
610
- };
611
- prompt_tokens_details?: {
612
- cached_tokens?: number;
613
- };
614
- totalTokens?: number;
615
- total_tokens?: number;
616
- cache_read?: number;
617
- cache_write?: number;
618
- prompt_n?: number;
619
- predicted_n?: number;
620
- timings?: {
621
- prompt_n?: number;
622
- predicted_n?: number;
623
- };
624
- };
625
- type NormalizedUsage = {
626
- input?: number;
627
- output?: number;
628
- cacheRead?: number;
629
- cacheWrite?: number;
630
- reasoningTokens?: number;
631
- total?: number;
632
- };
633
- declare function normalizeUsage(raw?: UsageLike | null): NormalizedUsage | undefined;
634
- //#endregion
635
- //#region src/agents/pi-embedded-runner/replay-state.d.ts
636
- type EmbeddedRunReplayState = {
637
- replayInvalid: boolean;
638
- hadPotentialSideEffects: boolean;
639
- };
640
- type EmbeddedRunReplayMetadata = {
641
- hadPotentialSideEffects: boolean;
642
- replaySafe: boolean;
643
- };
644
- //#endregion
645
- //#region src/agents/pi-embedded-runner/run/preemptive-compaction.types.d.ts
646
- type PreemptiveCompactionRoute = "fits" | "compact_only" | "truncate_tool_results_only" | "compact_then_truncate";
647
- //#endregion
648
- //#region src/agents/pi-embedded-runner/run/types.d.ts
649
- type EmbeddedRunAttemptBase = Omit<RunEmbeddedPiAgentParams, "provider" | "model" | "authProfileId" | "authProfileIdSource" | "thinkLevel" | "lane" | "enqueue">;
650
- type EmbeddedRunContextWindowInfo = {
651
- tokens: number;
652
- referenceTokens?: number;
653
- source: "model" | "modelsConfig" | "agentContextTokens" | "default";
654
- };
655
- type EmbeddedRunAttemptParams = EmbeddedRunAttemptBase & {
656
- initialReplayState?: EmbeddedRunReplayState; /** Pluggable context engine for ingest/assemble/compact lifecycle. */
657
- contextEngine?: ContextEngine; /** Resolved model context window in tokens for assemble/compact budgeting. */
658
- contextTokenBudget?: number; /** Source metadata for the resolved model context budget. */
659
- contextWindowInfo?: EmbeddedRunContextWindowInfo; /** Resolved API key for this run when runtime auth did not replace it. */
660
- resolvedApiKey?: string; /** Auth profile resolved for this attempt's provider/model call. */
661
- authProfileId?: string; /** Source for the resolved auth profile (user-locked or automatic). */
662
- authProfileIdSource?: "auto" | "user";
663
- provider: string;
664
- modelId: string; /** Session-pinned embedded harness id. Prevents runtime hot-switching. */
665
- agentHarnessId?: string; /** DaoCore-owned runtime policy prepared by the orchestrator for this attempt. */
666
- runtimePlan?: AgentRuntimePlan; /** Host-issued scope for harnesses that mirror native child runs into task state. */
667
- agentHarnessTaskRuntimeScope?: AgentHarnessTaskRuntimeScope; /** Live observer called after wrapped tool outcomes are recorded. */
668
- onToolOutcome?: ToolOutcomeObserver;
669
- model: Model<Api>;
670
- authStorage: AuthStorage; /** Auth profile store already resolved during startup for this attempt. */
671
- authProfileStore: AuthProfileStore;
672
- /**
673
- * Full auth profile store for DaoCore tool availability.
674
- * Plugin-owned harnesses may scope `authProfileStore` to model transport credentials.
675
- */
676
- toolAuthProfileStore?: AuthProfileStore;
677
- modelRegistry: ModelRegistry;
678
- thinkLevel: ThinkLevel;
679
- legacyBeforeAgentStartResult?: PluginHookBeforeAgentStartResult;
680
- };
681
- type EmbeddedRunAttemptResult = {
682
- aborted: boolean; /** True when the abort originated from the caller-provided abortSignal. */
683
- externalAbort: boolean;
684
- timedOut: boolean; /** True when the no-response LLM idle watchdog caused the timeout. */
685
- idleTimedOut: boolean; /** True if the timeout occurred while compaction was in progress or pending. */
686
- timedOutDuringCompaction: boolean; /** Optional because this type is re-exported as `AgentHarnessAttemptResult`. */
687
- timedOutDuringToolExecution?: boolean;
688
- promptError: unknown;
689
- /**
690
- * Identifies which phase produced the promptError.
691
- * - "prompt": the LLM call itself failed and may be eligible for retry/fallback.
692
- * - "compaction": the prompt succeeded, but waiting for compaction/retry teardown was aborted;
693
- * this must not be retried as a fresh prompt or the same tool turn can replay.
694
- * - "precheck": pre-prompt overflow recovery intentionally short-circuited the prompt so the
695
- * outer run loop can recover via compaction/truncation before any model call is made.
696
- * - "hook:before_agent_run": a lifecycle hook blocked the run before the prompt was sent.
697
- * - null: no promptError.
698
- */
699
- promptErrorSource: "prompt" | "compaction" | "precheck" | "hook:before_agent_run" | null;
700
- preflightRecovery?: {
701
- route: Exclude<PreemptiveCompactionRoute, "fits">;
702
- source?: "mid-turn";
703
- handled: true;
704
- truncatedCount?: number;
705
- } | {
706
- route: Exclude<PreemptiveCompactionRoute, "fits">;
707
- source?: "mid-turn";
708
- handled?: false;
709
- };
710
- sessionIdUsed: string;
711
- sessionFileUsed?: string;
712
- diagnosticTrace?: DiagnosticTraceContext;
713
- agentHarnessId?: string;
714
- agentHarnessResultClassification?: "empty" | "reasoning-only" | "planning-only";
715
- promptTimeoutOutcome?: {
716
- message?: string;
717
- replayInvalid?: boolean;
718
- livenessState?: EmbeddedRunLivenessState;
719
- timeoutPhase?: AgentRunTimeoutPhase;
720
- providerStarted?: boolean;
721
- };
722
- codexAppServerFailure?: {
723
- kind: "client_closed_before_turn_completed" | "turn_completion_idle_timeout";
724
- transport: "stdio" | "websocket";
725
- threadId?: string;
726
- turnId?: string;
727
- replaySafe: boolean;
728
- replayBlockedReason?: "assistant_output" | "tool_activity" | "potential_side_effect" | "active_item";
729
- };
730
- bootstrapPromptWarningSignaturesSeen?: string[];
731
- bootstrapPromptWarningSignature?: string;
732
- systemPromptReport?: SessionSystemPromptReport;
733
- finalPromptText?: string;
734
- messagesSnapshot: AgentMessage[];
735
- assistantTexts: string[];
736
- toolMetas: Array<{
737
- toolName: string;
738
- meta?: string;
739
- }>;
740
- acceptedSessionSpawns?: AcceptedSessionSpawn[];
741
- lastAssistant: AssistantMessage | undefined;
742
- currentAttemptAssistant?: AssistantMessage | undefined;
743
- lastToolError?: ToolErrorSummary;
744
- didSendViaMessagingTool: boolean;
745
- didSendDeterministicApprovalPrompt?: boolean;
746
- messagingToolSentTexts: string[];
747
- messagingToolSentMediaUrls: string[];
748
- messagingToolSentTargets: MessagingToolSend[];
749
- messagingToolSourceReplyPayloads?: MessagingToolSourceReplyPayload[];
750
- heartbeatToolResponse?: HeartbeatToolResponse;
751
- toolMediaUrls?: string[];
752
- toolAudioAsVoice?: boolean;
753
- toolTrustedLocalMedia?: boolean;
754
- successfulCronAdds?: number;
755
- cloudCodeAssistFormatError: boolean;
756
- attemptUsage?: NormalizedUsage;
757
- promptCache?: ContextEnginePromptCacheInfo;
758
- compactionCount?: number;
759
- compactionTokensAfter?: number;
760
- /**
761
- * Client tool calls detected during this attempt (OpenResponses hosted
762
- * tools), in the order the underlying LLM emitted them. Field is
763
- * `undefined` when no client tools were called so existing truthiness
764
- * checks across the runner pipeline (`attempt.clientToolCalls ? ...`)
765
- * keep their meaning. When set, the array always has at least one entry.
766
- */
767
- clientToolCalls?: Array<{
768
- name: string;
769
- params: Record<string, unknown>;
770
- }>; /** True when sessions_yield tool was called during this attempt. */
771
- yieldDetected?: boolean;
772
- replayMetadata: EmbeddedRunReplayMetadata;
773
- itemLifecycle: {
774
- startedCount: number;
775
- completedCount: number;
776
- activeCount: number;
777
- };
778
- setTerminalLifecycleMeta?: (meta: {
779
- replayInvalid?: boolean;
780
- livenessState?: EmbeddedRunLivenessState;
781
- stopReason?: string;
782
- yielded?: boolean;
783
- timeoutPhase?: AgentRunTimeoutPhase;
784
- providerStarted?: boolean;
785
- }) => void;
786
- };
787
- //#endregion
788
- //#region src/agents/pi-embedded-runner/compact.types.d.ts
789
- type CompactEmbeddedPiSessionParams = {
790
- sessionId: string;
791
- runId?: string;
792
- sessionKey?: string; /** Session key used only for runtime policy/sandbox resolution. Defaults to sessionKey. */
793
- sandboxSessionKey?: string;
794
- messageChannel?: string;
795
- messageProvider?: string;
796
- agentAccountId?: string;
797
- currentChannelId?: string;
798
- currentThreadTs?: string;
799
- currentMessageId?: string | number; /** Trusted sender id from inbound context for scoped message-tool discovery. */
800
- senderId?: string;
801
- senderName?: string;
802
- senderUsername?: string;
803
- senderE164?: string;
804
- authProfileId?: string; /** Group id for channel-level tool policy resolution. */
805
- groupId?: string | null; /** Group channel label (e.g. #general) for channel-level tool policy resolution. */
806
- groupChannel?: string | null; /** Group space label (e.g. guild/team id) for channel-level tool policy resolution. */
807
- groupSpace?: string | null; /** Parent session key for subagent policy inheritance. */
808
- spawnedBy?: string | null;
809
- sessionFile: string; /** Optional caller-observed live prompt tokens used for compaction diagnostics. */
810
- currentTokenCount?: number;
811
- workspaceDir: string;
812
- agentDir?: string;
813
- config?: DaoCoreConfig;
814
- skillsSnapshot?: SkillSnapshot;
815
- senderIsOwner?: boolean;
816
- provider?: string;
817
- model?: string; /** Effective model fallback chain for this session attempt. Undefined uses config defaults. */
818
- modelFallbacksOverride?: string[]; /** Optional caller-resolved context engine for harness-owned compaction. */
819
- contextEngine?: ContextEngine; /** Optional caller-resolved token budget for harness-owned compaction. */
820
- contextTokenBudget?: number; /** Optional caller-resolved runtime context for harness-owned context-engine compaction. */
821
- contextEngineRuntimeContext?: ContextEngineRuntimeContext; /** Session-pinned embedded harness id. Prevents compaction hot-switching. */
822
- agentHarnessId?: string; /** DaoCore-owned runtime policy prepared for this compaction path. */
823
- runtimePlan?: AgentRuntimePlan;
824
- thinkLevel?: ThinkLevel;
825
- reasoningLevel?: ReasoningLevel;
826
- bashElevated?: ExecElevatedDefaults;
827
- customInstructions?: string;
828
- tokenBudget?: number;
829
- force?: boolean;
830
- trigger?: "budget" | "overflow" | "manual";
831
- diagId?: string;
832
- attempt?: number;
833
- maxAttempts?: number;
834
- lane?: string;
835
- enqueue?: CommandQueueEnqueueFn;
836
- extraSystemPrompt?: string;
837
- sourceReplyDeliveryMode?: SourceReplyDeliveryMode;
838
- ownerNumbers?: string[];
839
- abortSignal?: AbortSignal;
840
- onCompactionHookMessages?: (payload: {
841
- phase: "before" | "after";
842
- messages: string[];
843
- sessionId: string;
844
- sessionKey: string;
845
- }) => void | Promise<void>; /** Allow runtime plugins for this compaction to late-bind the gateway subagent. */
846
- allowGatewaySubagentBinding?: boolean;
847
- };
848
- //#endregion
849
- //#region src/agents/harness/types.d.ts
850
- type AgentHarnessSupportContext = {
851
- provider: string;
852
- modelId?: string;
853
- requestedRuntime: EmbeddedAgentRuntime;
854
- };
855
- type AgentHarnessSupport = {
856
- supported: true;
857
- priority?: number;
858
- reason?: string;
859
- } | {
860
- supported: false;
861
- reason?: string;
862
- };
863
- type AgentHarnessAttemptParams = EmbeddedRunAttemptParams;
864
- type AgentHarnessAttemptResult = EmbeddedRunAttemptResult;
865
- type AgentHarnessSideQuestionParams = {
866
- cfg: DaoCoreConfig;
867
- agentDir: string;
868
- provider: string;
869
- model: string;
870
- runtimeModel?: import("@earendil-works/pi-ai").Model<import("@earendil-works/pi-ai").Api>;
871
- question: string;
872
- sessionEntry: SessionEntry;
873
- sessionStore?: Record<string, SessionEntry>;
874
- sessionKey?: string;
875
- storePath?: string;
876
- resolvedThinkLevel?: ThinkLevel;
877
- resolvedReasoningLevel: ReasoningLevel;
878
- blockReplyChunking?: BlockReplyChunking;
879
- resolvedBlockStreamingBreak?: "text_end" | "message_end";
880
- opts?: GetReplyOptions;
881
- isNewSession: boolean;
882
- sessionId: string;
883
- sessionFile: string;
884
- agentId?: string;
885
- workspaceDir?: string;
886
- messageChannel?: string;
887
- messageProvider?: string;
888
- currentChannelId?: string;
889
- authProfileId?: string;
890
- authProfileIdSource?: "auto" | "user";
891
- };
892
- type AgentHarnessSideQuestionResult = {
893
- text: string;
894
- };
895
- type AgentHarnessCompactParams = CompactEmbeddedPiSessionParams;
896
- type AgentHarnessCompactResult = EmbeddedPiCompactResult;
897
- type AgentHarnessResetParams = {
898
- sessionId?: string;
899
- sessionKey?: string;
900
- sessionFile?: string;
901
- reason?: "new" | "reset" | "idle" | "daily" | "compaction" | "deleted" | "unknown";
902
- };
903
- type AgentHarnessResultClassification = "ok" | NonNullable<AgentHarnessAttemptResult["agentHarnessResultClassification"]>;
904
- type AgentHarnessDeliveryDefaults = {
905
- /**
906
- * @deprecated Prefer `messages.visibleReplies` / `messages.groupChat.visibleReplies`
907
- * config. Kept for existing harness plugins.
908
- */
909
- sourceVisibleReplies?: "automatic" | "message_tool";
910
- };
911
- type AgentHarness = {
912
- id: string;
913
- label: string;
914
- pluginId?: string;
915
- /**
916
- * Context-engine host capabilities provided by this harness during agent
917
- * runs. Harnesses that omit this are unsupported for engines that declare
918
- * host requirements.
919
- */
920
- contextEngineHostCapabilities?: readonly ContextEngineHostCapability[];
921
- deliveryDefaults?: AgentHarnessDeliveryDefaults;
922
- supports(ctx: AgentHarnessSupportContext): AgentHarnessSupport;
923
- runAttempt(params: AgentHarnessAttemptParams): Promise<AgentHarnessAttemptResult>;
924
- runSideQuestion?(params: AgentHarnessSideQuestionParams): Promise<AgentHarnessSideQuestionResult>;
925
- classify?(result: AgentHarnessAttemptResult, ctx: AgentHarnessAttemptParams): AgentHarnessResultClassification | undefined;
926
- compact?(params: AgentHarnessCompactParams): Promise<AgentHarnessCompactResult | undefined>;
927
- reset?(params: AgentHarnessResetParams): Promise<void> | void;
928
- dispose?(): Promise<void> | void;
929
- };
930
- //#endregion
931
- //#region src/agents/system-prompt-contribution.d.ts
932
- type ProviderSystemPromptSectionId = "interaction_style" | "tool_call_style" | "execution_bias";
933
- type ProviderSystemPromptContribution = {
934
- /**
935
- * Cache-stable provider guidance inserted above the system-prompt cache boundary.
936
- *
937
- * Use this for static provider/model-family instructions that should preserve
938
- * KV cache reuse across turns.
939
- */
940
- stablePrefix?: string;
941
- /**
942
- * Provider guidance inserted below the cache boundary.
943
- *
944
- * Use this only for genuinely dynamic text that is expected to vary across
945
- * runs or sessions.
946
- */
947
- dynamicSuffix?: string;
948
- /**
949
- * Whole-section replacements for selected core prompt sections.
950
- *
951
- * Values should contain the complete rendered section, including any desired
952
- * heading such as `## Tool Call Style`.
953
- */
954
- sectionOverrides?: Partial<Record<ProviderSystemPromptSectionId, string>>;
955
- };
956
- //#endregion
957
- //#region src/realtime-transcription/provider-types.d.ts
958
- type RealtimeTranscriptionProviderId = string;
959
- type RealtimeTranscriptionProviderConfig = Record<string, unknown>;
960
- type RealtimeTranscriptionProviderResolveConfigContext = {
961
- cfg: DaoCoreConfig;
962
- rawConfig: RealtimeTranscriptionProviderConfig;
963
- };
964
- type RealtimeTranscriptionProviderConfiguredContext = {
965
- cfg?: DaoCoreConfig;
966
- providerConfig: RealtimeTranscriptionProviderConfig;
967
- };
968
- type RealtimeTranscriptionSessionCallbacks = {
969
- onPartial?: (partial: string) => void;
970
- onTranscript?: (transcript: string) => void;
971
- onSpeechStart?: () => void;
972
- onError?: (error: Error) => void;
973
- };
974
- type RealtimeTranscriptionSessionCreateRequest = RealtimeTranscriptionSessionCallbacks & {
975
- cfg?: DaoCoreConfig;
976
- providerConfig: RealtimeTranscriptionProviderConfig;
977
- };
978
- type RealtimeTranscriptionSession = {
979
- connect(): Promise<void>;
980
- sendAudio(audio: Buffer): void;
981
- close(): void;
982
- isConnected(): boolean;
983
- };
984
- //#endregion
985
- //#region src/security/audit.types.d.ts
986
- type SecurityAuditSeverity = "info" | "warn" | "critical";
987
- type SecurityAuditFinding = {
988
- checkId: string;
989
- severity: SecurityAuditSeverity;
990
- title: string;
991
- detail: string;
992
- remediation?: string;
993
- };
994
- //#endregion
995
- //#region src/talk/provider-types.d.ts
996
- type RealtimeVoiceProviderId = string;
997
- type RealtimeVoiceRole = "user" | "assistant";
998
- type RealtimeVoiceCloseReason = "completed" | "error";
999
- type RealtimeVoiceAudioFormat = {
1000
- encoding: "g711_ulaw";
1001
- sampleRateHz: 8000;
1002
- channels: 1;
1003
- } | {
1004
- encoding: "pcm16";
1005
- sampleRateHz: 24000;
1006
- channels: 1;
1007
- };
1008
- declare const REALTIME_VOICE_AUDIO_FORMAT_G711_ULAW_8KHZ: RealtimeVoiceAudioFormat;
1009
- declare const REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ: RealtimeVoiceAudioFormat;
1010
- type RealtimeVoiceTool = {
1011
- type: "function";
1012
- name: string;
1013
- description: string;
1014
- parameters: {
1015
- type: "object";
1016
- properties: Record<string, unknown>;
1017
- required?: string[];
1018
- };
1019
- };
1020
- type RealtimeVoiceToolCallEvent = {
1021
- itemId: string;
1022
- callId: string;
1023
- name: string;
1024
- args: unknown;
1025
- };
1026
- type RealtimeVoiceToolResultOptions = {
1027
- /**
1028
- * Submit the tool result without prompting the realtime provider to generate a new assistant
1029
- * response. Use when another channel has already delivered the user-visible answer.
1030
- */
1031
- suppressResponse?: boolean;
1032
- willContinue?: boolean;
1033
- };
1034
- type RealtimeVoiceBridgeEvent = {
1035
- direction: "client" | "server";
1036
- type: string;
1037
- detail?: string;
1038
- };
1039
- type RealtimeVoiceBridgeCallbacks = {
1040
- onAudio: (audio: Buffer) => void;
1041
- onClearAudio: () => void;
1042
- onMark?: (markName: string) => void;
1043
- onTranscript?: (role: RealtimeVoiceRole, text: string, isFinal: boolean) => void;
1044
- onEvent?: (event: RealtimeVoiceBridgeEvent) => void;
1045
- onToolCall?: (event: RealtimeVoiceToolCallEvent) => void;
1046
- onReady?: () => void;
1047
- onError?: (error: Error) => void;
1048
- onClose?: (reason: RealtimeVoiceCloseReason) => void;
1049
- };
1050
- type RealtimeVoiceProviderConfig = Record<string, unknown>;
1051
- type RealtimeVoiceProviderCapabilities = {
1052
- transports: TalkTransport[];
1053
- inputAudioFormats: RealtimeVoiceAudioFormat[];
1054
- outputAudioFormats: RealtimeVoiceAudioFormat[];
1055
- supportsBrowserSession?: boolean;
1056
- supportsBargeIn?: boolean;
1057
- supportsToolCalls?: boolean;
1058
- supportsVideoFrames?: boolean;
1059
- supportsSessionResumption?: boolean;
1060
- };
1061
- type RealtimeVoiceProviderResolveConfigContext = {
1062
- cfg: DaoCoreConfig;
1063
- rawConfig: RealtimeVoiceProviderConfig;
1064
- };
1065
- type RealtimeVoiceProviderConfiguredContext = {
1066
- cfg?: DaoCoreConfig;
1067
- providerConfig: RealtimeVoiceProviderConfig;
1068
- };
1069
- type RealtimeVoiceBridgeCreateRequest = RealtimeVoiceBridgeCallbacks & {
1070
- cfg?: DaoCoreConfig;
1071
- providerConfig: RealtimeVoiceProviderConfig;
1072
- audioFormat?: RealtimeVoiceAudioFormat;
1073
- instructions?: string;
1074
- autoRespondToAudio?: boolean;
1075
- interruptResponseOnInputAudio?: boolean;
1076
- tools?: RealtimeVoiceTool[];
1077
- };
1078
- type RealtimeVoiceBrowserSessionCreateRequest = {
1079
- cfg?: DaoCoreConfig;
1080
- providerConfig: RealtimeVoiceProviderConfig;
1081
- instructions?: string;
1082
- tools?: RealtimeVoiceTool[];
1083
- model?: string;
1084
- voice?: string;
1085
- vadThreshold?: number;
1086
- silenceDurationMs?: number;
1087
- prefixPaddingMs?: number;
1088
- reasoningEffort?: string;
1089
- };
1090
- type RealtimeVoiceBrowserAudioContract = {
1091
- inputEncoding: "pcm16" | "g711_ulaw";
1092
- inputSampleRateHz: number;
1093
- outputEncoding: "pcm16" | "g711_ulaw";
1094
- outputSampleRateHz: number;
1095
- };
1096
- type RealtimeVoiceBrowserWebRtcSdpSession = {
1097
- provider: RealtimeVoiceProviderId;
1098
- transport: "webrtc";
1099
- clientSecret: string;
1100
- offerUrl?: string;
1101
- offerHeaders?: Record<string, string>;
1102
- model?: string;
1103
- voice?: string;
1104
- expiresAt?: number;
1105
- };
1106
- type RealtimeVoiceBrowserJsonPcmWebSocketSession = {
1107
- provider: RealtimeVoiceProviderId;
1108
- transport: "provider-websocket";
1109
- protocol: string;
1110
- clientSecret: string;
1111
- websocketUrl: string;
1112
- audio: RealtimeVoiceBrowserAudioContract;
1113
- initialMessage?: unknown;
1114
- model?: string;
1115
- voice?: string;
1116
- expiresAt?: number;
1117
- };
1118
- type RealtimeVoiceBrowserGatewayRelaySession = {
1119
- provider: RealtimeVoiceProviderId;
1120
- transport: "gateway-relay";
1121
- relaySessionId: string;
1122
- audio: RealtimeVoiceBrowserAudioContract;
1123
- model?: string;
1124
- voice?: string;
1125
- expiresAt?: number;
1126
- };
1127
- type RealtimeVoiceBrowserManagedRoomSession = {
1128
- provider: RealtimeVoiceProviderId;
1129
- transport: "managed-room";
1130
- roomUrl: string;
1131
- token?: string;
1132
- model?: string;
1133
- voice?: string;
1134
- expiresAt?: number;
1135
- };
1136
- type RealtimeVoiceBrowserSession = RealtimeVoiceBrowserWebRtcSdpSession | RealtimeVoiceBrowserJsonPcmWebSocketSession | RealtimeVoiceBrowserGatewayRelaySession | RealtimeVoiceBrowserManagedRoomSession;
1137
- type RealtimeVoiceBridge = {
1138
- supportsToolResultContinuation?: boolean;
1139
- connect(): Promise<void>;
1140
- sendAudio(audio: Buffer): void;
1141
- setMediaTimestamp(ts: number): void;
1142
- sendUserMessage?(text: string): void;
1143
- triggerGreeting?(instructions?: string): void;
1144
- handleBargeIn?(options?: RealtimeVoiceBargeInOptions): void;
1145
- submitToolResult(callId: string, result: unknown, options?: RealtimeVoiceToolResultOptions): void;
1146
- acknowledgeMark(): void;
1147
- close(): void;
1148
- isConnected(): boolean;
1149
- };
1150
- type RealtimeVoiceBargeInOptions = {
1151
- /**
1152
- * The caller has already confirmed assistant audio is still playing in its output sink.
1153
- * This lets providers interrupt output even when the sink cannot provide real playback marks.
1154
- */
1155
- audioPlaybackActive?: boolean; /** Interrupt even when normal barge-in audio-duration guards would treat the event as echo. */
1156
- force?: boolean;
1157
- };
1158
- //#endregion
1159
- //#region src/plugins/agent-tool-result-middleware-types.d.ts
1160
- type DaoCoreAgentToolResult<TResult = unknown> = AgentToolResult<TResult>;
1161
- type AgentToolResultMiddlewareRuntime = "pi" | "codex";
1162
- /** @deprecated Use AgentToolResultMiddlewareRuntime. */
1163
- type AgentToolResultMiddlewareHarness = AgentToolResultMiddlewareRuntime | "codex-app-server";
1164
- type AgentToolResultMiddlewareEvent = {
1165
- threadId?: string;
1166
- turnId?: string;
1167
- toolCallId: string;
1168
- toolName: string;
1169
- args: Record<string, unknown>;
1170
- cwd?: string;
1171
- isError?: boolean;
1172
- result: DaoCoreAgentToolResult;
1173
- };
1174
- type AgentToolResultMiddlewareContext = {
1175
- runtime: AgentToolResultMiddlewareRuntime; /** @deprecated Use runtime. */
1176
- harness?: AgentToolResultMiddlewareRuntime;
1177
- agentId?: string;
1178
- sessionId?: string;
1179
- sessionKey?: string;
1180
- runId?: string;
1181
- };
1182
- type AgentToolResultMiddlewareResult = {
1183
- result: DaoCoreAgentToolResult;
1184
- };
1185
- type AgentToolResultMiddleware = (event: AgentToolResultMiddlewareEvent, ctx: AgentToolResultMiddlewareContext) => Promise<AgentToolResultMiddlewareResult | void> | AgentToolResultMiddlewareResult | void;
1186
- type AgentToolResultMiddlewareOptions = {
1187
- runtimes?: AgentToolResultMiddlewareRuntime[]; /** @deprecated Use runtimes. */
1188
- harnesses?: AgentToolResultMiddlewareHarness[];
1189
- };
1190
- //#endregion
1191
- //#region src/plugins/cli-backend.types.d.ts
1192
- type PluginTextReplacement = {
1193
- from: string | RegExp;
1194
- to: string;
1195
- };
1196
- type PluginTextTransforms = {
1197
- /** Rewrites applied to outbound prompt text before provider/CLI transport. */input?: PluginTextReplacement[]; /** Rewrites applied to inbound assistant text before DaoCore consumes it. */
1198
- output?: PluginTextReplacement[];
1199
- };
1200
- type CliBundleMcpMode = "claude-config-file" | "codex-config-overrides" | "gemini-system-settings";
1201
- type CliBackendPrepareExecutionContext = {
1202
- config?: DaoCoreConfig;
1203
- workspaceDir: string;
1204
- agentDir?: string;
1205
- provider: string;
1206
- modelId: string;
1207
- authProfileId?: string;
1208
- };
1209
- type CliBackendPreparedExecution = {
1210
- env?: Record<string, string>;
1211
- clearEnv?: string[];
1212
- cleanup?: () => Promise<void>;
1213
- };
1214
- type CliBackendThinkingLevel = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max";
1215
- type CliBackendResolveExecutionArgsContext = {
1216
- config?: DaoCoreConfig;
1217
- workspaceDir: string;
1218
- provider: string;
1219
- modelId: string;
1220
- authProfileId?: string;
1221
- thinkingLevel?: CliBackendThinkingLevel;
1222
- useResume: boolean;
1223
- baseArgs: readonly string[];
1224
- };
1225
- type CliBackendResolveExecutionArgs = (ctx: CliBackendResolveExecutionArgsContext) => readonly string[] | null | undefined;
1226
- type CliBackendAuthEpochMode = "combined" | "profile-only";
1227
- type CliBackendNativeToolMode = "none" | "always-on";
1228
- type CliBackendNormalizeConfigContext = {
1229
- config?: DaoCoreConfig;
1230
- backendId: string;
1231
- agentId?: string;
1232
- };
1233
- /** Plugin-owned CLI backend defaults used by the text-only CLI runner. */
1234
- type CliBackendPlugin = {
1235
- /** Provider id used in model refs, for example `claude-cli/opus`. */id: string; /** Default backend config before user overrides from `agents.defaults.cliBackends`. */
1236
- config: CliBackendConfig;
1237
- /**
1238
- * Context-engine host capabilities provided by this backend when it is
1239
- * driven through the generic CLI runner.
1240
- */
1241
- contextEngineHostCapabilities?: readonly ContextEngineHostCapability[];
1242
- /**
1243
- * Optional live-smoke metadata owned by the backend plugin.
1244
- *
1245
- * Keep provider-specific test wiring here instead of scattering it across
1246
- * Docker wrappers, docs, and gateway live tests.
1247
- */
1248
- liveTest?: {
1249
- defaultModelRef?: string;
1250
- defaultImageProbe?: boolean;
1251
- defaultMcpProbe?: boolean;
1252
- docker?: {
1253
- npmPackage?: string;
1254
- binaryName?: string;
1255
- };
1256
- };
1257
- /**
1258
- * Whether DaoCore should inject bundle MCP config for this backend.
1259
- *
1260
- * Keep this opt-in. Only backends that explicitly consume DaoCore's bundle
1261
- * MCP bridge should enable it.
1262
- */
1263
- bundleMcp?: boolean;
1264
- /**
1265
- * Provider-owned bundle MCP integration strategy.
1266
- *
1267
- * Different CLIs wire MCP through different surfaces:
1268
- * - Claude: `--strict-mcp-config --mcp-config`
1269
- * - Codex: `-c mcp_servers=...`
1270
- * - Gemini: system-level `settings.json`
1271
- */
1272
- bundleMcpMode?: CliBundleMcpMode;
1273
- /**
1274
- * Optional config normalizer applied after user overrides merge.
1275
- *
1276
- * Use this for backend-specific compatibility rewrites when old config
1277
- * shapes need to stay working.
1278
- */
1279
- normalizeConfig?: (config: CliBackendConfig, context?: CliBackendNormalizeConfigContext) => CliBackendConfig;
1280
- /**
1281
- * Backend-owned final system-prompt transform.
1282
- *
1283
- * Use this for tiny CLI-specific compatibility rewrites without replacing
1284
- * the generic CLI runner or prompt builder.
1285
- */
1286
- transformSystemPrompt?: (ctx: {
1287
- config?: DaoCoreConfig;
1288
- workspaceDir?: string;
1289
- provider: string;
1290
- modelId: string;
1291
- modelDisplay: string;
1292
- agentId?: string;
1293
- systemPrompt: string;
1294
- }) => string | null | undefined;
1295
- /**
1296
- * Backend-owned bidirectional text replacements.
1297
- *
1298
- * `input` applies to the system prompt and user prompt passed to the CLI.
1299
- * `output` applies to parsed/streamed assistant text from the CLI.
1300
- */
1301
- textTransforms?: PluginTextTransforms;
1302
- /**
1303
- * Preferred auth-profile id when the caller did not explicitly lock one.
1304
- *
1305
- * Use this when the backend should consume a canonical DaoCore auth profile
1306
- * rather than ambient host auth by default.
1307
- */
1308
- defaultAuthProfileId?: string;
1309
- /**
1310
- * Session/auth epoch source policy.
1311
- *
1312
- * `combined` keeps the legacy "host credential + auth profile" fingerprint.
1313
- * `profile-only` treats the selected DaoCore auth profile as the sole auth
1314
- * owner for session invalidation when one is present.
1315
- */
1316
- authEpochMode?: CliBackendAuthEpochMode;
1317
- /**
1318
- * Backend-owned execution bridge.
1319
- *
1320
- * Use this on async run paths when the backend needs a generated auth/config
1321
- * bridge (for example a private CLI home directory) without teaching the core
1322
- * runner about provider-specific file formats.
1323
- */
1324
- prepareExecution?: (ctx: CliBackendPrepareExecutionContext) => Promise<CliBackendPreparedExecution | null | undefined> | CliBackendPreparedExecution | null | undefined;
1325
- /**
1326
- * Backend-owned per-run argv rewrite.
1327
- *
1328
- * Use this for request-scoped CLI dialect flags that should not be modeled
1329
- * as static config, such as mapping DaoCore thinking levels to a backend's
1330
- * native effort flag.
1331
- */
1332
- resolveExecutionArgs?: CliBackendResolveExecutionArgs;
1333
- /**
1334
- * Whether this CLI backend can expose native tools outside DaoCore's tool
1335
- * catalog. Backends that cannot provide a true no-tools mode must mark
1336
- * themselves as `always-on` so callers that require disabled tools fail
1337
- * closed instead of launching a native harness.
1338
- */
1339
- nativeToolMode?: CliBackendNativeToolMode;
1340
- };
1341
- //#endregion
1342
- //#region src/plugins/codex-app-server-extension-types.d.ts
1343
- type CodexAppServerToolResultEvent = {
1344
- threadId: string;
1345
- turnId: string;
1346
- toolCallId: string;
1347
- toolName: string;
1348
- args: Record<string, unknown>;
1349
- result: AgentToolResult<unknown>;
1350
- };
1351
- type CodexAppServerExtensionContext = {
1352
- agentId?: string;
1353
- sessionId?: string;
1354
- sessionKey?: string;
1355
- runId?: string;
1356
- };
1357
- type CodexAppServerToolResultHandlerResult = {
1358
- result: AgentToolResult<unknown>;
1359
- };
1360
- type CodexAppServerExtensionRuntime = {
1361
- on: (event: "tool_result", handler: (event: CodexAppServerToolResultEvent, ctx: CodexAppServerExtensionContext) => Promise<CodexAppServerToolResultHandlerResult | void> | CodexAppServerToolResultHandlerResult | void) => void;
1362
- };
1363
- type CodexAppServerExtensionFactory = (runtime: CodexAppServerExtensionRuntime) => Promise<void> | void;
1364
- //#endregion
1365
- //#region src/plugins/provider-config-context.types.d.ts
1366
- /**
1367
- * Provider-owned config normalization for `models.providers.<id>` entries.
1368
- *
1369
- * Use this for provider-specific config cleanup that should stay with the
1370
- * plugin rather than in core config-policy tables.
1371
- */
1372
- type ProviderNormalizeConfigContext = {
1373
- provider: string;
1374
- providerConfig: ModelProviderConfig;
1375
- };
1376
- /**
1377
- * Provider-owned env/config auth marker resolution for `models.providers`.
1378
- *
1379
- * Use this when a provider resolves auth from env vars that do not follow the
1380
- * generic API-key conventions.
1381
- */
1382
- type ProviderResolveConfigApiKeyContext = {
1383
- provider: string;
1384
- env: NodeJS.ProcessEnv;
1385
- };
1386
- /**
1387
- * Provider-owned config-default application input.
1388
- *
1389
- * Use this when a provider needs to add global config defaults that depend on
1390
- * provider auth mode or provider-specific model families.
1391
- */
1392
- type ProviderApplyConfigDefaultsContext = {
1393
- provider: string;
1394
- config: DaoCoreConfig;
1395
- env: NodeJS.ProcessEnv;
1396
- };
1397
- //#endregion
1398
- //#region src/plugins/provider-external-auth.types.d.ts
1399
- type ProviderResolveSyntheticAuthContext = {
1400
- config?: DaoCoreConfig;
1401
- provider: string;
1402
- providerConfig?: ModelProviderConfig;
1403
- };
1404
- type ProviderSyntheticAuthResult = {
1405
- apiKey: string;
1406
- source: string;
1407
- mode: Exclude<ModelProviderAuthMode, "aws-sdk">;
1408
- expiresAt?: number;
1409
- };
1410
- type ProviderResolveExternalOAuthProfilesContext = {
1411
- config?: DaoCoreConfig;
1412
- agentDir?: string;
1413
- workspaceDir?: string;
1414
- env: NodeJS.ProcessEnv;
1415
- store: AuthProfileStore;
1416
- };
1417
- type ProviderResolveExternalAuthProfilesContext = ProviderResolveExternalOAuthProfilesContext;
1418
- type ProviderExternalOAuthProfile = {
1419
- profileId: string;
1420
- credential: OAuthCredential;
1421
- persistence?: "runtime-only" | "persisted";
1422
- };
1423
- type ProviderExternalAuthProfile = ProviderExternalOAuthProfile;
1424
- //#endregion
1425
- //#region src/plugins/provider-oauth-flow.d.ts
1426
- type OAuthPrompt = {
1427
- message: string;
1428
- placeholder?: string;
1429
- };
1430
- declare function createVpsAwareOAuthHandlers(params: {
1431
- isRemote: boolean;
1432
- prompter: WizardPrompter;
1433
- runtime: RuntimeEnv;
1434
- spin: ReturnType<WizardPrompter["progress"]>;
1435
- openUrl: (url: string) => Promise<unknown>;
1436
- localBrowserMessage: string;
1437
- manualPromptMessage?: string;
1438
- }): {
1439
- onAuth: (event: {
1440
- url: string;
1441
- }) => Promise<void>;
1442
- onPrompt: (prompt: OAuthPrompt) => Promise<string>;
1443
- };
1444
- //#endregion
1445
- //#region src/plugins/provider-runtime-model.types.d.ts
1446
- /**
1447
- * Fully-resolved runtime model shape used after provider/plugin-owned
1448
- * discovery, overrides, and compat normalization.
1449
- */
1450
- type ProviderRuntimeModel = Omit<Model<Api>, "compat"> & {
1451
- compat?: ModelCompatConfig;
1452
- contextTokens?: number;
1453
- params?: Record<string, unknown>;
1454
- requestTimeoutMs?: number;
1455
- };
1456
- //#endregion
1457
- //#region src/plugins/provider-thinking.types.d.ts
1458
- /**
1459
- * Provider-owned thinking policy input.
1460
- *
1461
- * Used by shared `/think`, ACP controls, and directive parsing to ask a
1462
- * provider whether a model supports special reasoning UX such as adaptive,
1463
- * xhigh, max, or a binary on/off toggle.
1464
- */
1465
- type ProviderThinkingPolicyContext = {
1466
- provider: string;
1467
- modelId: string;
1468
- };
1469
- /**
1470
- * Provider-owned default thinking policy input.
1471
- *
1472
- * `reasoning` is the merged catalog hint for the selected model when one is
1473
- * available. Providers can use it to keep "reasoning model => low" behavior
1474
- * without re-reading the catalog themselves.
1475
- */
1476
- type ProviderDefaultThinkingPolicyContext = ProviderThinkingPolicyContext & {
1477
- reasoning?: boolean;
1478
- };
1479
- type ProviderThinkingLevelId = "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | "max";
1480
- type ProviderThinkingLevel = {
1481
- id: ProviderThinkingLevelId;
1482
- /**
1483
- * Optional display label. Use this when the stored value differs from the
1484
- * provider-facing UX, for example binary providers storing `low` but showing
1485
- * `on`.
1486
- */
1487
- label?: string;
1488
- /**
1489
- * Relative strength used when downgrading a stored level that the selected
1490
- * model no longer supports.
1491
- */
1492
- rank?: number;
1493
- };
1494
- type ProviderThinkingProfile = {
1495
- levels: ProviderThinkingLevel[] | ReadonlyArray<ProviderThinkingLevel>;
1496
- defaultLevel?: ProviderThinkingLevelId | null;
1497
- /**
1498
- * Some bundled providers have model-specific thinking contracts that are more
1499
- * current than cached generic catalog metadata. Keep this opt-in so
1500
- * `reasoning: false` remains authoritative for ordinary catalog entries.
1501
- */
1502
- preserveWhenCatalogReasoningFalse?: boolean;
1503
- };
1504
- //#endregion
1505
- //#region src/plugins/types.d.ts
1506
- type ModelProviderRequestTransportOverrides = ModelProviderRequestTransportOverrides$1;
1507
- type ProviderAuthOptionBag = {
1508
- token?: string;
1509
- tokenProvider?: string;
1510
- secretInputMode?: SecretInputMode;
1511
- [key: string]: unknown;
1512
- };
1513
- /** Logger passed into plugin registration, services, and CLI surfaces. */
1514
- type PluginLogger = {
1515
- debug?: (message: string) => void;
1516
- info: (message: string) => void;
1517
- warn: (message: string) => void;
1518
- error: (message: string) => void;
1519
- };
1520
- type PluginConfigValidation = {
1521
- ok: true;
1522
- value?: unknown;
1523
- } | {
1524
- ok: false;
1525
- errors: string[];
1526
- };
1527
- /**
1528
- * Config schema contract accepted by plugin manifests and runtime registration.
1529
- *
1530
- * Plugins can provide a Zod-like parser, a lightweight `validate(...)`
1531
- * function, or both. `uiHints` and `jsonSchema` are optional extras for docs,
1532
- * forms, and config UIs.
1533
- */
1534
- type DaoCorePluginConfigSchema = {
1535
- safeParse?: (value: unknown) => {
1536
- success: boolean;
1537
- data?: unknown;
1538
- error?: {
1539
- issues?: Array<{
1540
- path: Array<string | number>;
1541
- message: string;
1542
- }>;
1543
- };
1544
- };
1545
- parse?: (value: unknown) => unknown;
1546
- validate?: (value: unknown) => PluginConfigValidation;
1547
- uiHints?: Record<string, PluginConfigUiHint>;
1548
- jsonSchema?: JsonSchemaObject;
1549
- };
1550
- type ProviderAuthKind = "oauth" | "api_key" | "token" | "device_code" | "custom";
1551
- /** Standard result payload returned by provider auth methods. */
1552
- type ProviderAuthResult = {
1553
- profiles: Array<{
1554
- profileId: string;
1555
- credential: AuthProfileCredential;
1556
- }>;
1557
- /**
1558
- * Optional config patch to merge after credentials are written.
1559
- *
1560
- * Use this for provider-owned onboarding defaults such as
1561
- * `models.providers.<id>` entries, default aliases, or agent model helpers.
1562
- * The caller still persists auth-profile bindings separately.
1563
- */
1564
- configPatch?: Partial<DaoCoreConfig>;
1565
- defaultModel?: string;
1566
- notes?: string[];
1567
- /**
1568
- * Opt in to replace `agents.defaults.models` wholesale with the patch map.
1569
- * Default behavior merges the map so other providers' entries survive.
1570
- * Set only from migrations that intentionally rename/remove model keys.
1571
- */
1572
- replaceDefaultModels?: boolean;
1573
- };
1574
- /** Interactive auth context passed to provider login/setup methods. */
1575
- type ProviderAuthContext = {
1576
- config: DaoCoreConfig;
1577
- env?: NodeJS.ProcessEnv;
1578
- agentDir?: string;
1579
- workspaceDir?: string;
1580
- prompter: WizardPrompter;
1581
- runtime: RuntimeEnv;
1582
- /**
1583
- * Optional onboarding CLI options that triggered this auth flow.
1584
- *
1585
- * Present for setup/configure/auth-choice flows so provider methods can
1586
- * honor preseeded flags like `--openai-api-key` or generic
1587
- * `--token/--token-provider` pairs. Direct `models auth login` usually
1588
- * leaves this undefined.
1589
- */
1590
- opts?: ProviderAuthOptionBag;
1591
- /**
1592
- * Onboarding secret persistence preference.
1593
- *
1594
- * Interactive wizard flows set this when the caller explicitly requested
1595
- * plaintext or env/file/exec ref storage. Ad-hoc `models auth login` flows
1596
- * usually leave it undefined.
1597
- */
1598
- secretInputMode?: SecretInputMode;
1599
- /**
1600
- * Whether the provider auth flow should offer the onboarding secret-storage
1601
- * mode picker when `secretInputMode` is unset.
1602
- *
1603
- * This is true for onboarding/configure flows and false for direct
1604
- * `models auth` commands, which should keep a tighter, provider-owned prompt
1605
- * surface.
1606
- */
1607
- allowSecretRefPrompt?: boolean;
1608
- isRemote: boolean;
1609
- openUrl: (url: string) => Promise<void>;
1610
- oauth: {
1611
- createVpsAwareHandlers: typeof createVpsAwareOAuthHandlers;
1612
- };
1613
- };
1614
- type ProviderNonInteractiveApiKeyResult = {
1615
- key: string;
1616
- source: "profile" | "env" | "flag";
1617
- envVarName?: string;
1618
- };
1619
- type ProviderResolveNonInteractiveApiKeyParams = {
1620
- provider: string;
1621
- flagValue?: string;
1622
- flagName: `--${string}`;
1623
- envVar: string;
1624
- envVarName?: string;
1625
- allowProfile?: boolean;
1626
- required?: boolean;
1627
- };
1628
- type ProviderNonInteractiveApiKeyCredentialParams = {
1629
- provider: string;
1630
- resolved: ProviderNonInteractiveApiKeyResult;
1631
- email?: string;
1632
- metadata?: Record<string, string>;
1633
- };
1634
- type ProviderAuthMethodNonInteractiveContext = {
1635
- authChoice: string;
1636
- config: DaoCoreConfig;
1637
- baseConfig: DaoCoreConfig;
1638
- opts: ProviderAuthOptionBag;
1639
- runtime: RuntimeEnv;
1640
- agentDir?: string;
1641
- workspaceDir?: string;
1642
- resolveApiKey: (params: ProviderResolveNonInteractiveApiKeyParams) => Promise<ProviderNonInteractiveApiKeyResult | null>;
1643
- toApiKeyCredential: (params: ProviderNonInteractiveApiKeyCredentialParams) => ApiKeyCredential | null;
1644
- };
1645
- type ProviderAuthMethod = {
1646
- id: string;
1647
- label: string;
1648
- hint?: string;
1649
- kind: ProviderAuthKind;
1650
- /**
1651
- * Optional wizard/onboarding metadata for this specific auth method.
1652
- *
1653
- * Use this when one provider exposes multiple setup entries (for example API
1654
- * key + OAuth, or region-specific login flows). DaoCore uses this to expose
1655
- * method-specific auth choices while keeping the provider id stable.
1656
- */
1657
- wizard?: ProviderPluginWizardSetup;
1658
- run: (ctx: ProviderAuthContext) => Promise<ProviderAuthResult>;
1659
- runNonInteractive?: (ctx: ProviderAuthMethodNonInteractiveContext) => Promise<DaoCoreConfig | null>;
1660
- };
1661
- type ProviderCatalogOrder = "simple" | "profile" | "paired" | "late";
1662
- type ProviderCatalogContext = {
1663
- config: DaoCoreConfig;
1664
- agentDir?: string;
1665
- workspaceDir?: string;
1666
- env: NodeJS.ProcessEnv;
1667
- resolveProviderApiKey: (providerId?: string) => {
1668
- apiKey: string | undefined;
1669
- discoveryApiKey?: string;
1670
- };
1671
- resolveProviderAuth: (providerId?: string, options?: {
1672
- oauthMarker?: string;
1673
- }) => {
1674
- apiKey: string | undefined;
1675
- discoveryApiKey?: string;
1676
- mode: "api_key" | "aws-sdk" | "oauth" | "token" | "none";
1677
- source: "env" | "profile" | "none";
1678
- profileId?: string;
1679
- };
1680
- };
1681
- type ProviderCatalogResult = {
1682
- provider: ModelProviderConfig;
1683
- } | {
1684
- providers: Record<string, ModelProviderConfig>;
1685
- } | null | undefined;
1686
- type ProviderPluginCatalog = {
1687
- order?: ProviderCatalogOrder;
1688
- run: (ctx: ProviderCatalogContext) => Promise<ProviderCatalogResult>;
1689
- };
1690
- type UnifiedModelCatalogProviderContext = ProviderCatalogContext & {
1691
- signal?: AbortSignal;
1692
- includeLive?: boolean;
1693
- timeoutMs?: number;
1694
- };
1695
- type UnifiedModelCatalogProviderPlugin = {
1696
- provider: string;
1697
- kinds: readonly UnifiedModelCatalogKind[];
1698
- staticCatalog?: (ctx: UnifiedModelCatalogProviderContext) => readonly UnifiedModelCatalogEntry[] | Promise<readonly UnifiedModelCatalogEntry[] | null | undefined> | null | undefined;
1699
- liveCatalog?: (ctx: UnifiedModelCatalogProviderContext) => readonly UnifiedModelCatalogEntry[] | Promise<readonly UnifiedModelCatalogEntry[] | null | undefined> | null | undefined;
1700
- };
1701
- type ProviderRuntimeProviderConfig = {
1702
- baseUrl?: string;
1703
- api?: ModelProviderConfig["api"];
1704
- models?: ModelProviderConfig["models"];
1705
- headers?: unknown;
1706
- };
1707
- /**
1708
- * Sync hook for provider-owned model ids that are not present in the local
1709
- * registry/catalog yet.
1710
- *
1711
- * Use this for pass-through providers or provider-specific forward-compat
1712
- * behavior. The hook should be cheap and side-effect free; async refreshes
1713
- * belong in `prepareDynamicModel`.
1714
- */
1715
- type ProviderResolveDynamicModelContext = {
1716
- config?: DaoCoreConfig;
1717
- agentDir?: string;
1718
- workspaceDir?: string;
1719
- provider: string;
1720
- modelId: string;
1721
- modelRegistry: ModelRegistry;
1722
- providerConfig?: ProviderRuntimeProviderConfig;
1723
- };
1724
- /**
1725
- * Optional async warm-up for dynamic model resolution.
1726
- *
1727
- * Called only from async model resolution paths, before retrying
1728
- * `resolveDynamicModel`. This is the place to refresh caches or fetch provider
1729
- * metadata over the network.
1730
- */
1731
- type ProviderPrepareDynamicModelContext = ProviderResolveDynamicModelContext;
1732
- type ProviderPreferRuntimeResolvedModelContext = {
1733
- config?: DaoCoreConfig;
1734
- agentDir?: string;
1735
- workspaceDir?: string;
1736
- provider: string;
1737
- modelId: string;
1738
- };
1739
- /**
1740
- * Last-chance rewrite hook for provider-owned transport normalization.
1741
- *
1742
- * Runs after DaoCore resolves an explicit/discovered/dynamic model and before
1743
- * the embedded runner uses it. Typical uses: swap API ids, fix base URLs, or
1744
- * patch provider-specific compat bits.
1745
- */
1746
- type ProviderNormalizeResolvedModelContext = {
1747
- config?: DaoCoreConfig;
1748
- agentDir?: string;
1749
- workspaceDir?: string;
1750
- provider: string;
1751
- modelId: string;
1752
- model: ProviderRuntimeModel;
1753
- };
1754
- /**
1755
- * Provider-owned model-id normalization before config/runtime lookup.
1756
- *
1757
- * Use this for provider-specific alias cleanup that should stay with the
1758
- * plugin rather than in core string tables.
1759
- */
1760
- type ProviderNormalizeModelIdContext = {
1761
- provider: string;
1762
- modelId: string;
1763
- };
1764
- /**
1765
- * Provider-owned transport normalization for arbitrary provider/model config.
1766
- *
1767
- * Use this when transport cleanup depends on API/baseUrl rather than the
1768
- * owning provider id, for example custom providers that still target a
1769
- * plugin-owned transport family.
1770
- */
1771
- type ProviderNormalizeTransportContext = {
1772
- config?: DaoCoreConfig;
1773
- workspaceDir?: string;
1774
- provider: string;
1775
- api?: string | null;
1776
- baseUrl?: string;
1777
- };
1778
- /**
1779
- * Runtime auth input for providers that need an extra exchange step before
1780
- * inference. The incoming `apiKey` is the raw credential resolved from auth
1781
- * profiles/env/config. The returned value should be the actual token/key to use
1782
- * for the request.
1783
- */
1784
- type ProviderPrepareRuntimeAuthContext = {
1785
- config?: DaoCoreConfig;
1786
- agentDir?: string;
1787
- workspaceDir?: string;
1788
- env: NodeJS.ProcessEnv;
1789
- provider: string;
1790
- modelId: string;
1791
- model: ProviderRuntimeModel;
1792
- apiKey: string;
1793
- authMode: string;
1794
- profileId?: string;
1795
- };
1796
- /**
1797
- * Result of `prepareRuntimeAuth`.
1798
- *
1799
- * `apiKey` is required and becomes the runtime credential stored in auth
1800
- * storage. `baseUrl` is optional and lets providers like GitHub Copilot swap to
1801
- * an entitlement-specific endpoint at request time. `expiresAt` enables generic
1802
- * background refresh in long-running turns.
1803
- */
1804
- type ProviderPreparedRuntimeAuth = {
1805
- apiKey: string;
1806
- baseUrl?: string;
1807
- request?: ModelProviderRequestTransportOverrides;
1808
- expiresAt?: number;
1809
- };
1810
- /**
1811
- * Usage/billing auth input for providers that expose quota/usage endpoints.
1812
- *
1813
- * This hook is intentionally separate from `prepareRuntimeAuth`: usage
1814
- * snapshots often need a different credential source than live inference
1815
- * requests, and they run outside the embedded runner.
1816
- *
1817
- * The helper methods cover the common DaoCore auth resolution paths:
1818
- *
1819
- * - `resolveApiKeyFromConfigAndStore`: env/config/plain token/api_key profiles
1820
- * - `resolveOAuthToken`: oauth/token profiles resolved through the auth store,
1821
- * optionally for an explicit provider override
1822
- *
1823
- * Plugins can still do extra provider-specific work on top (for example parse a
1824
- * token blob, read a legacy credential file, or pick between aliases).
1825
- */
1826
- type ProviderResolveUsageAuthContext = {
1827
- config: DaoCoreConfig;
1828
- agentDir?: string;
1829
- workspaceDir?: string;
1830
- env: NodeJS.ProcessEnv;
1831
- provider: string;
1832
- resolveApiKeyFromConfigAndStore: (params?: {
1833
- providerIds?: string[];
1834
- envDirect?: Array<string | undefined>;
1835
- }) => string | undefined;
1836
- resolveOAuthToken: (params?: {
1837
- provider?: string;
1838
- }) => Promise<ProviderResolvedUsageAuth | null>;
1839
- };
1840
- /**
1841
- * Result of `resolveUsageAuth`.
1842
- *
1843
- * `token` is the credential used for provider usage/billing endpoints.
1844
- * `accountId` is optional provider-specific metadata used by some usage APIs.
1845
- */
1846
- type ProviderResolvedUsageAuth = {
1847
- token: string;
1848
- accountId?: string;
1849
- };
1850
- /**
1851
- * Usage/quota snapshot input for providers that own their usage endpoint
1852
- * fetch/parsing behavior.
1853
- *
1854
- * This hook runs after `resolveUsageAuth` succeeds. Core still owns summary
1855
- * fan-out, timeout wrapping, filtering, and formatting; the provider plugin
1856
- * owns the provider-specific HTTP request + response normalization.
1857
- */
1858
- type ProviderFetchUsageSnapshotContext = {
1859
- config: DaoCoreConfig;
1860
- agentDir?: string;
1861
- workspaceDir?: string;
1862
- env: NodeJS.ProcessEnv;
1863
- provider: string;
1864
- token: string;
1865
- accountId?: string;
1866
- timeoutMs: number;
1867
- fetchFn: typeof fetch;
1868
- };
1869
- /**
1870
- * Provider-owned auth-doctor hint input.
1871
- *
1872
- * Called when OAuth refresh fails and DaoCore wants a provider-specific repair
1873
- * hint to append to the generic re-auth message. Use this for legacy profile-id
1874
- * migrations or other provider-owned auth-store cleanup guidance.
1875
- */
1876
- type ProviderAuthDoctorHintContext = {
1877
- config?: DaoCoreConfig;
1878
- store: AuthProfileStore;
1879
- provider: string;
1880
- profileId?: string;
1881
- };
1882
- /**
1883
- * Provider-owned extra-param normalization before DaoCore builds its generic
1884
- * stream option wrapper.
1885
- *
1886
- * Use this to set provider defaults or rewrite provider-specific config keys
1887
- * into the merged `extraParams` object. Return the full next extraParams object.
1888
- */
1889
- type ProviderPrepareExtraParamsContext = {
1890
- config?: DaoCoreConfig;
1891
- agentDir?: string;
1892
- workspaceDir?: string;
1893
- provider: string;
1894
- modelId: string;
1895
- extraParams?: Record<string, unknown>;
1896
- thinkingLevel?: ThinkLevel;
1897
- };
1898
- type ProviderExtraParamsForTransportContext = Omit<ProviderPrepareExtraParamsContext, "extraParams"> & {
1899
- model?: ProviderRuntimeModel;
1900
- transport?: "sse" | "websocket" | "auto";
1901
- extraParams: Record<string, unknown>;
1902
- };
1903
- type ProviderExtraParamsForTransportResult = {
1904
- patch?: Record<string, unknown> | null;
1905
- };
1906
- type ProviderResolvePromptOverlayContext = ProviderSystemPromptContributionContext & {
1907
- baseOverlay?: ProviderSystemPromptContribution;
1908
- };
1909
- type ProviderFollowupFallbackRouteContext = {
1910
- config?: DaoCoreConfig;
1911
- agentDir?: string;
1912
- workspaceDir?: string;
1913
- provider: string;
1914
- modelId: string;
1915
- payload: ReplyPayload;
1916
- originatingChannel?: string;
1917
- originatingTo?: string;
1918
- originRoutable: boolean;
1919
- dispatcherAvailable: boolean;
1920
- };
1921
- type ProviderFollowupFallbackRouteResult = {
1922
- route?: "origin" | "dispatcher" | "drop";
1923
- reason?: string;
1924
- };
1925
- type ProviderResolveAuthProfileIdContext = {
1926
- config?: DaoCoreConfig;
1927
- agentDir?: string;
1928
- workspaceDir?: string;
1929
- provider: string;
1930
- modelId: string;
1931
- preferredProfileId?: string;
1932
- lockedProfileId?: string;
1933
- profileOrder: string[];
1934
- authStore: AuthProfileStore;
1935
- };
1936
- type ProviderReplaySanitizeMode = "full" | "images-only";
1937
- type ProviderReplayToolCallIdMode = "strict" | "strict9";
1938
- type ProviderReasoningOutputMode = "native" | "tagged";
1939
- /**
1940
- * @deprecated Legacy static provider capability bag.
1941
- *
1942
- * Core replay/runtime ownership now lives on explicit provider hooks such as
1943
- * `buildReplayPolicy`, `normalizeToolSchemas`, and `wrapStreamFn`. DaoCore no
1944
- * longer reads this bag at runtime, but the field remains typed so existing
1945
- * third-party plugins do not fail to compile immediately.
1946
- */
1947
- type ProviderCapabilities = Record<string, unknown>;
1948
- /**
1949
- * Provider-owned replay/compaction transcript policy.
1950
- *
1951
- * These values are consumed by shared history replay and compaction logic.
1952
- * Return only the fields the provider wants to override; core fills the rest
1953
- * with its default policy.
1954
- */
1955
- type ProviderReplayPolicy = {
1956
- sanitizeMode?: ProviderReplaySanitizeMode;
1957
- sanitizeToolCallIds?: boolean;
1958
- toolCallIdMode?: ProviderReplayToolCallIdMode;
1959
- preserveNativeAnthropicToolUseIds?: boolean;
1960
- preserveSignatures?: boolean;
1961
- sanitizeThoughtSignatures?: {
1962
- allowBase64Only?: boolean;
1963
- includeCamelCase?: boolean;
1964
- };
1965
- dropThinkingBlocks?: boolean;
1966
- dropReasoningFromHistory?: boolean;
1967
- repairToolUseResultPairing?: boolean;
1968
- applyAssistantFirstOrderingFix?: boolean;
1969
- validateGeminiTurns?: boolean;
1970
- validateAnthropicTurns?: boolean;
1971
- allowSyntheticToolResults?: boolean;
1972
- };
1973
- /**
1974
- * Provider-owned replay/compaction policy input.
1975
- *
1976
- * Use this when transcript replay rules depend on provider/model transport
1977
- * behavior and should stay with the provider plugin instead of core tables.
1978
- */
1979
- type ProviderReplayPolicyContext = {
1980
- config?: DaoCoreConfig;
1981
- agentDir?: string;
1982
- workspaceDir?: string;
1983
- env?: NodeJS.ProcessEnv;
1984
- provider: string;
1985
- modelId?: string;
1986
- modelApi?: string | null;
1987
- model?: ProviderRuntimeModel;
1988
- };
1989
- type ProviderReplaySessionEntry = {
1990
- customType: string;
1991
- data?: unknown;
1992
- };
1993
- type ProviderReplaySessionState = {
1994
- getCustomEntries(): ProviderReplaySessionEntry[];
1995
- appendCustomEntry(customType: string, data: unknown): void;
1996
- };
1997
- /**
1998
- * Provider-owned replay-history sanitization input.
1999
- *
2000
- * Runs after core applies generic transcript cleanup so plugins can make
2001
- * provider-specific replay rewrites without owning the whole compaction flow.
2002
- */
2003
- type ProviderSanitizeReplayHistoryContext = ProviderReplayPolicyContext & {
2004
- sessionId: string;
2005
- messages: AgentMessage[];
2006
- allowedToolNames?: Iterable<string>;
2007
- sessionState?: ProviderReplaySessionState;
2008
- };
2009
- /**
2010
- * Provider-owned final replay-turn validation input.
2011
- *
2012
- * Use this for providers that require strict turn ordering or additional
2013
- * replay-time transcript validation beyond generic sanitation.
2014
- */
2015
- type ProviderValidateReplayTurnsContext = ProviderReplayPolicyContext & {
2016
- sessionId?: string;
2017
- messages: AgentMessage[];
2018
- sessionState?: ProviderReplaySessionState;
2019
- };
2020
- /**
2021
- * Provider-owned tool-schema normalization input.
2022
- *
2023
- * Runs before tool registration for replay/compaction/inference so providers
2024
- * can rewrite schema keywords that their transport family does not support.
2025
- */
2026
- type ProviderNormalizeToolSchemasContext = ProviderReplayPolicyContext & {
2027
- tools: AnyAgentTool[];
2028
- };
2029
- type ProviderToolSchemaDiagnostic = {
2030
- toolName: string;
2031
- toolIndex?: number;
2032
- violations: string[];
2033
- };
2034
- /**
2035
- * Provider-owned reasoning output mode input.
2036
- *
2037
- * Use this when a provider requires a specific reasoning-output contract, such
2038
- * as text tags instead of native structured reasoning fields.
2039
- */
2040
- type ProviderReasoningOutputModeContext = ProviderReplayPolicyContext;
2041
- /**
2042
- * Provider-owned transport creation.
2043
- *
2044
- * Use this when the provider needs to replace pi-ai's default transport with a
2045
- * custom StreamFn (for example a native API transport that cannot be expressed
2046
- * as a wrapper around `streamSimple`).
2047
- */
2048
- type ProviderCreateStreamFnContext = {
2049
- config?: DaoCoreConfig;
2050
- agentDir?: string;
2051
- workspaceDir?: string;
2052
- provider: string;
2053
- modelId: string;
2054
- model: ProviderRuntimeModel;
2055
- };
2056
- /**
2057
- * Provider-owned stream wrapper hook after DaoCore applies its generic
2058
- * transport-independent wrappers.
2059
- *
2060
- * Use this for provider-specific payload/header/model mutations that still run
2061
- * through the normal `pi-ai` stream path.
2062
- */
2063
- type ProviderWrapStreamFnContext = ProviderPrepareExtraParamsContext & {
2064
- model?: ProviderRuntimeModel;
2065
- streamFn?: StreamFn;
2066
- };
2067
- /**
2068
- * Provider-owned transport turn state.
2069
- *
2070
- * Use this for provider-native request headers or metadata that should stay
2071
- * stable across retries while still being attached by generic core transports.
2072
- */
2073
- type ProviderTransportTurnState = {
2074
- headers?: Record<string, string>;
2075
- metadata?: Record<string, string>;
2076
- };
2077
- /**
2078
- * Provider-owned request identity for transport turns.
2079
- *
2080
- * Use this when the provider exposes native request/session metadata that must
2081
- * be attached by both HTTP and WebSocket transports.
2082
- */
2083
- type ProviderResolveTransportTurnStateContext = {
2084
- provider: string;
2085
- modelId: string;
2086
- model?: ProviderRuntimeModel;
2087
- sessionId?: string;
2088
- turnId: string;
2089
- attempt: number;
2090
- transport: "stream" | "websocket";
2091
- };
2092
- /**
2093
- * Provider-owned WebSocket session policy.
2094
- *
2095
- * Use this for session-scoped headers or cool-down behavior that should apply
2096
- * before a generic WebSocket transport decides to retry or fall back.
2097
- */
2098
- type ProviderWebSocketSessionPolicy = {
2099
- headers?: Record<string, string>;
2100
- degradeCooldownMs?: number;
2101
- };
2102
- /**
2103
- * Provider-owned WebSocket session policy input.
2104
- *
2105
- * Use this when the provider wants to control native session handshake headers
2106
- * or the post-failure cool-down window for a generic WebSocket transport.
2107
- */
2108
- type ProviderResolveWebSocketSessionPolicyContext = {
2109
- provider: string;
2110
- modelId: string;
2111
- model?: ProviderRuntimeModel;
2112
- sessionId?: string;
2113
- };
2114
- /**
2115
- * Provider-owned failover error classification input.
2116
- *
2117
- * Use this when provider-specific transport or API errors need classification
2118
- * hints that generic string matching cannot express safely.
2119
- */
2120
- type ProviderFailoverErrorContext = {
2121
- provider?: string;
2122
- modelId?: string;
2123
- errorMessage: string;
2124
- };
2125
- /**
2126
- * Generic embedding provider shape returned by provider plugins.
2127
- *
2128
- * Keep this aligned with the memory embedding contract without forcing the
2129
- * plugin system to import memory internals directly.
2130
- */
2131
- type PluginEmbeddingProvider = {
2132
- id: string;
2133
- model: string;
2134
- maxInputTokens?: number;
2135
- embedQuery: (text: string, options?: {
2136
- signal?: AbortSignal;
2137
- }) => Promise<number[]>;
2138
- embedBatch: (texts: string[], options?: {
2139
- signal?: AbortSignal;
2140
- }) => Promise<number[][]>;
2141
- embedBatchInputs?: (inputs: unknown[], options?: {
2142
- signal?: AbortSignal;
2143
- }) => Promise<number[][]>;
2144
- client?: unknown;
2145
- };
2146
- /**
2147
- * Provider-owned embedding transport creation.
2148
- *
2149
- * Use this when a provider wants memory embeddings to live with the provider
2150
- * plugin instead of the core memory switchboard.
2151
- */
2152
- type ProviderCreateEmbeddingProviderContext = {
2153
- config: DaoCoreConfig;
2154
- agentDir?: string;
2155
- workspaceDir?: string;
2156
- provider: string;
2157
- model: string;
2158
- remote?: {
2159
- baseUrl?: string;
2160
- apiKey?: unknown;
2161
- headers?: Record<string, string>;
2162
- };
2163
- providerApiKey?: string;
2164
- inputType?: string;
2165
- queryInputType?: string;
2166
- documentInputType?: string;
2167
- outputDimensionality?: number;
2168
- taskType?: string;
2169
- };
2170
- /**
2171
- * Provider-owned prompt-cache eligibility.
2172
- *
2173
- * Return `true` or `false` to override DaoCore's built-in provider cache TTL
2174
- * detection for this provider. Return `undefined` to fall back to core rules.
2175
- */
2176
- type ProviderCacheTtlEligibilityContext = {
2177
- provider: string;
2178
- modelId: string;
2179
- modelApi?: string;
2180
- };
2181
- /**
2182
- * Provider-owned missing-auth message override.
2183
- *
2184
- * Runs only after DaoCore exhausts normal env/profile/config auth resolution
2185
- * for the requested provider. Return a custom message to replace the generic
2186
- * "No API key found" error.
2187
- */
2188
- type ProviderBuildMissingAuthMessageContext = {
2189
- config?: DaoCoreConfig;
2190
- agentDir?: string;
2191
- workspaceDir?: string;
2192
- env: NodeJS.ProcessEnv;
2193
- provider: string;
2194
- listProfileIds: (providerId: string) => string[];
2195
- };
2196
- /**
2197
- * Provider-owned unknown-model hint override.
2198
- *
2199
- * Runs after catalog/runtime lookup misses for the requested provider. Return a
2200
- * hint suffix that DaoCore should append to the generic `Unknown model`
2201
- * error.
2202
- */
2203
- type ProviderBuildUnknownModelHintContext = {
2204
- config?: DaoCoreConfig;
2205
- agentDir?: string;
2206
- workspaceDir?: string;
2207
- env: NodeJS.ProcessEnv;
2208
- provider: string;
2209
- modelId: string;
2210
- baseUrl?: string;
2211
- };
2212
- /**
2213
- * Built-in model suppression hook context.
2214
- *
2215
- * @deprecated Use manifest `modelCatalog.suppressions`. Runtime suppression
2216
- * hooks are no longer called by model resolution.
2217
- */
2218
- type ProviderBuiltInModelSuppressionContext = {
2219
- config?: DaoCoreConfig;
2220
- agentDir?: string;
2221
- workspaceDir?: string;
2222
- env: NodeJS.ProcessEnv;
2223
- provider: string;
2224
- modelId: string;
2225
- baseUrl?: string;
2226
- };
2227
- type ProviderBuiltInModelSuppressionResult = {
2228
- suppress: boolean;
2229
- errorMessage?: string;
2230
- };
2231
- /**
2232
- * Provider-owned "modern model" policy input.
2233
- *
2234
- * Live smoke/model-profile selection uses this to keep provider-specific
2235
- * inclusion/exclusion rules out of core.
2236
- */
2237
- type ProviderModernModelPolicyContext = {
2238
- provider: string;
2239
- modelId: string;
2240
- };
2241
- /**
2242
- * Final catalog augmentation hook.
2243
- *
2244
- * Runs after DaoCore loads the discovered model catalog and merges configured
2245
- * opt-in providers. Use this for forward-compat rows or vendor-owned synthetic
2246
- * entries that should appear in `models list` and model pickers even when the
2247
- * upstream registry has not caught up yet.
2248
- */
2249
- type ProviderAugmentModelCatalogContext = {
2250
- config?: DaoCoreConfig;
2251
- agentDir?: string;
2252
- workspaceDir?: string;
2253
- env: NodeJS.ProcessEnv;
2254
- entries: ModelCatalogEntry[];
2255
- };
2256
- /**
2257
- * @deprecated Use ProviderCatalogOrder.
2258
- */
2259
- type ProviderDiscoveryOrder = ProviderCatalogOrder;
2260
- /**
2261
- * @deprecated Use ProviderCatalogContext.
2262
- */
2263
- type ProviderDiscoveryContext = ProviderCatalogContext;
2264
- /**
2265
- * @deprecated Use ProviderCatalogResult.
2266
- */
2267
- type ProviderDiscoveryResult = ProviderCatalogResult;
2268
- /**
2269
- * @deprecated Use ProviderPluginCatalog.
2270
- */
2271
- type ProviderPluginDiscovery = ProviderPluginCatalog;
2272
- type ProviderPluginWizardSetup = {
2273
- choiceId?: string;
2274
- choiceLabel?: string;
2275
- choiceHint?: string;
2276
- assistantPriority?: number;
2277
- assistantVisibility?: "visible" | "manual-only";
2278
- onboardingFeatured?: boolean;
2279
- groupId?: string;
2280
- groupLabel?: string;
2281
- groupHint?: string;
2282
- methodId?: string;
2283
- /**
2284
- * Interactive onboarding surfaces where this auth choice should appear.
2285
- * Defaults to `["text-inference"]` when omitted.
2286
- */
2287
- onboardingScopes?: Array<"text-inference" | "image-generation" | "music-generation">;
2288
- /**
2289
- * Optional model-allowlist prompt policy applied after this auth choice is
2290
- * selected in configure/onboarding flows.
2291
- *
2292
- * Keep this UI-facing and static. Provider logic that needs runtime state
2293
- * should stay in `run`/`runNonInteractive`.
2294
- */
2295
- modelAllowlist?: {
2296
- allowedKeys?: string[];
2297
- initialSelections?: string[];
2298
- loadCatalog?: boolean;
2299
- message?: string;
2300
- };
2301
- /**
2302
- * Optional default-model prompt policy for this auth/setup choice.
2303
- *
2304
- * Use this when selecting the auth choice should still force a model picker
2305
- * even if the choice was preseeded via CLI/configure, or when "keep current"
2306
- * would skip required provider-owned post-selection work.
2307
- */
2308
- modelSelection?: {
2309
- promptWhenAuthChoiceProvided?: boolean;
2310
- allowKeepCurrent?: boolean;
2311
- };
2312
- };
2313
- /** Optional model-picker metadata shown in interactive provider selection flows. */
2314
- type ProviderPluginWizardModelPicker = {
2315
- label?: string;
2316
- hint?: string;
2317
- methodId?: string;
2318
- };
2319
- /** UI metadata that lets provider plugins appear in onboarding and configure flows. */
2320
- type ProviderPluginWizard = {
2321
- setup?: ProviderPluginWizardSetup;
2322
- modelPicker?: ProviderPluginWizardModelPicker;
2323
- };
2324
- type ProviderOAuthProfileIdRepair = {
2325
- /**
2326
- * Legacy OAuth profile id to migrate away from.
2327
- *
2328
- * When omitted, DaoCore falls back to `<provider>:default`.
2329
- */
2330
- legacyProfileId?: string;
2331
- /**
2332
- * Optional custom doctor prompt label.
2333
- *
2334
- * Defaults to the provider label when omitted.
2335
- */
2336
- promptLabel?: string;
2337
- };
2338
- type ProviderModelSelectedContext = {
2339
- config: DaoCoreConfig;
2340
- model: string;
2341
- prompter: WizardPrompter;
2342
- agentDir?: string;
2343
- workspaceDir?: string;
2344
- };
2345
- type ProviderDeferSyntheticProfileAuthContext = {
2346
- config?: DaoCoreConfig;
2347
- provider: string;
2348
- providerConfig?: ModelProviderConfig;
2349
- resolvedApiKey?: string;
2350
- };
2351
- type ProviderSystemPromptContributionContext = {
2352
- config?: DaoCoreConfig;
2353
- agentDir?: string;
2354
- workspaceDir?: string;
2355
- provider: string;
2356
- modelId: string;
2357
- promptMode: PromptMode;
2358
- runtimeChannel?: string;
2359
- runtimeCapabilities?: string[];
2360
- agentId?: string;
2361
- trigger?: "cron" | "heartbeat" | "manual" | "memory" | "overflow" | "user";
2362
- };
2363
- type ProviderTransformSystemPromptContext = ProviderSystemPromptContributionContext & {
2364
- systemPrompt: string;
2365
- };
2366
- type PluginTextTransformRegistration = PluginTextTransforms;
2367
- /** Text-inference provider capability registered by a plugin. */
2368
- type ProviderPlugin = {
2369
- id: string;
2370
- pluginId?: string;
2371
- label: string;
2372
- docsPath?: string;
2373
- aliases?: string[];
2374
- /**
2375
- * Internal-only aliases used for runtime/config hook lookup.
2376
- *
2377
- * Unlike `aliases`, these values are not treated as user-facing provider ids
2378
- * for auth/setup surfaces. Use them for legacy config keys or compat-only
2379
- * hook routing.
2380
- */
2381
- hookAliases?: string[];
2382
- /**
2383
- * Provider-related env vars shown in setup/search/help surfaces.
2384
- *
2385
- * Keep entries in preferred display order. This can include direct auth env
2386
- * vars or setup inputs such as OAuth client id/secret vars.
2387
- */
2388
- envVars?: string[];
2389
- auth: ProviderAuthMethod[];
2390
- /**
2391
- * Legacy text-provider catalog hook.
2392
- *
2393
- * @deprecated New catalog/control-plane surfaces should use
2394
- * `api.registerModelCatalogProvider`. This hook remains the text runtime
2395
- * source until the unified loader fully replaces it.
2396
- * Returns provider config/model definitions that merge into models.providers.
2397
- */
2398
- catalog?: ProviderPluginCatalog;
2399
- /**
2400
- * Legacy offline text-provider catalog hook for display-only surfaces.
2401
- *
2402
- * @deprecated New static rows should be registered with
2403
- * `api.registerModelCatalogProvider`.
2404
- *
2405
- * Unlike `catalog`, this hook must not perform network I/O or require real
2406
- * credentials. Use it for bundled/static rows that can be shown before auth is
2407
- * configured.
2408
- */
2409
- staticCatalog?: ProviderPluginCatalog;
2410
- /**
2411
- * Show catalog row labels as the literal `<provider>/<entry.id>`
2412
- * composition instead of the canonical (deduped) key.
2413
- *
2414
- * `modelKey` strips a duplicate `<provider>/` prefix so storage and
2415
- * lookups stay stable. This flag only changes the picker label — the
2416
- * option value and persisted config remain canonical.
2417
- *
2418
- * Set when the leading `<provider>/` segment in the native model id is
2419
- * a meaningful vendor namespace (e.g. NVIDIA's `nvidia/nemotron-...`
2420
- * alongside `moonshotai/kimi-k2.5`).
2421
- */
2422
- preserveLiteralProviderPrefix?: boolean;
2423
- /**
2424
- * @deprecated Use catalog.
2425
- *
2426
- * Legacy alias for catalog.
2427
- * Kept for compatibility with existing provider plugins.
2428
- */
2429
- discovery?: ProviderPluginDiscovery;
2430
- /**
2431
- * Sync runtime fallback for model ids not present in the local catalog.
2432
- *
2433
- * Hook order:
2434
- * 1. discovered/static model lookup
2435
- * 2. plugin `resolveDynamicModel`
2436
- * 3. core fallback heuristics
2437
- * 4. generic provider-config fallback
2438
- *
2439
- * Keep this hook cheap and deterministic. If you need network I/O first, use
2440
- * `prepareDynamicModel` to prime state for the async retry path.
2441
- */
2442
- resolveDynamicModel?: (ctx: ProviderResolveDynamicModelContext) => ProviderRuntimeModel | null | undefined;
2443
- /**
2444
- * Optional async prefetch for dynamic model resolution.
2445
- *
2446
- * DaoCore calls this only from async model resolution paths. After it
2447
- * completes, `resolveDynamicModel` is called again.
2448
- */
2449
- prepareDynamicModel?: (ctx: ProviderPrepareDynamicModelContext) => Promise<void>;
2450
- /**
2451
- * Lets a provider plugin opt exact configured models into a runtime
2452
- * metadata comparison pass before the embedded runner returns the explicit
2453
- * entry unchanged.
2454
- */
2455
- preferRuntimeResolvedModel?: (ctx: ProviderPreferRuntimeResolvedModelContext) => boolean;
2456
- /**
2457
- * Provider-owned transport normalization.
2458
- *
2459
- * Use this to rewrite a resolved model without forking the generic runner:
2460
- * swap API ids, update base URLs, or adjust compat flags for a provider's
2461
- * transport quirks.
2462
- */
2463
- normalizeResolvedModel?: (ctx: ProviderNormalizeResolvedModelContext) => ProviderRuntimeModel | null | undefined;
2464
- /**
2465
- * Provider-owned compat contribution for resolved models outside direct
2466
- * provider ownership.
2467
- *
2468
- * Use this when a plugin can recognize its vendor's models behind another
2469
- * OpenAI-compatible transport (for example OpenRouter or a custom base URL)
2470
- * and needs to contribute compat flags without taking over the provider.
2471
- */
2472
- contributeResolvedModelCompat?: (ctx: ProviderNormalizeResolvedModelContext) => Partial<ModelCompatConfig> | null | undefined;
2473
- /**
2474
- * Provider-owned model-id normalization.
2475
- *
2476
- * Runs before model lookup/canonicalization. Use this for alias cleanup such
2477
- * as provider-owned preview/legacy model ids.
2478
- */
2479
- normalizeModelId?: (ctx: ProviderNormalizeModelIdContext) => string | null | undefined;
2480
- /**
2481
- * Provider-owned transport-family normalization before generic model
2482
- * assembly.
2483
- *
2484
- * Use this for API/baseUrl cleanup that may apply to custom provider ids
2485
- * which still target the provider's transport family.
2486
- */
2487
- normalizeTransport?: (ctx: ProviderNormalizeTransportContext) => {
2488
- api?: string | null;
2489
- baseUrl?: string;
2490
- } | null | undefined;
2491
- /**
2492
- * Provider-owned config normalization for `models.providers.<id>`.
2493
- *
2494
- * Use this for provider-specific baseUrl/model-id cleanup that should stay
2495
- * with the plugin rather than in core config-policy tables.
2496
- */
2497
- normalizeConfig?: (ctx: ProviderNormalizeConfigContext) => ModelProviderConfig | null | undefined;
2498
- /**
2499
- * Provider-owned final native-streaming compat pass for config providers.
2500
- *
2501
- * Use this when a provider opts specific native base URLs into
2502
- * `supportsUsageInStreaming` or similar transport compatibility flags.
2503
- */
2504
- applyNativeStreamingUsageCompat?: (ctx: ProviderNormalizeConfigContext) => ModelProviderConfig | null | undefined;
2505
- /**
2506
- * Provider-owned config apiKey/env marker resolution.
2507
- *
2508
- * Use this when a provider resolves auth from env vars such as AWS/GCP
2509
- * markers rather than a normal API-key env var.
2510
- */
2511
- resolveConfigApiKey?: (ctx: ProviderResolveConfigApiKeyContext) => string | null | undefined;
2512
- /**
2513
- * @deprecated Legacy static capability bag kept only for compatibility.
2514
- *
2515
- * New provider behavior should use explicit hooks instead. Core replay and
2516
- * stream/runtime logic no longer consumes this field.
2517
- */
2518
- capabilities?: ProviderCapabilities;
2519
- /**
2520
- * Provider-owned replay/compaction policy override.
2521
- *
2522
- * Use this when transcript replay or compaction should follow provider-owned
2523
- * rules that are more expressive than the static `capabilities` bag.
2524
- */
2525
- buildReplayPolicy?: (ctx: ProviderReplayPolicyContext) => ProviderReplayPolicy | null | undefined;
2526
- /**
2527
- * Provider-owned replay-history sanitization.
2528
- *
2529
- * Runs after DaoCore performs generic transcript cleanup. Use this for
2530
- * provider-specific replay rewrites that should stay with the provider
2531
- * plugin rather than in shared core compaction helpers.
2532
- */
2533
- sanitizeReplayHistory?: (ctx: ProviderSanitizeReplayHistoryContext) => Promise<AgentMessage[] | null | undefined> | AgentMessage[] | null | undefined;
2534
- /**
2535
- * Provider-owned final replay-turn validation.
2536
- *
2537
- * Use this when provider transports need stricter replay-time validation or
2538
- * turn reshaping after generic sanitation. Returning a non-null value
2539
- * replaces the built-in replay validators rather than composing with them.
2540
- */
2541
- validateReplayTurns?: (ctx: ProviderValidateReplayTurnsContext) => Promise<AgentMessage[] | null | undefined> | AgentMessage[] | null | undefined;
2542
- /**
2543
- * Provider-owned tool-schema normalization.
2544
- *
2545
- * Use this for transport-family schema cleanup before DaoCore registers
2546
- * tools with the embedded runner.
2547
- */
2548
- normalizeToolSchemas?: (ctx: ProviderNormalizeToolSchemasContext) => AnyAgentTool[] | null | undefined;
2549
- /**
2550
- * Provider-owned tool-schema diagnostics after normalization.
2551
- *
2552
- * Use this when a provider wants to surface transport-specific schema
2553
- * warnings without teaching core about provider-specific keyword rules.
2554
- */
2555
- inspectToolSchemas?: (ctx: ProviderNormalizeToolSchemasContext) => ProviderToolSchemaDiagnostic[] | null | undefined;
2556
- /**
2557
- * Provider-owned reasoning output mode.
2558
- *
2559
- * Use this when a provider requires tagged reasoning/final output instead of
2560
- * native structured reasoning fields.
2561
- */
2562
- resolveReasoningOutputMode?: (ctx: ProviderReasoningOutputModeContext) => ProviderReasoningOutputMode | null | undefined;
2563
- /**
2564
- * Provider-owned extra-param normalization before generic stream option
2565
- * wrapping.
2566
- *
2567
- * Typical uses: set provider-default `transport`, map provider-specific
2568
- * config aliases, or inject extra request metadata sourced from
2569
- * `agents.defaults.models.<provider>/<model>.params`.
2570
- */
2571
- prepareExtraParams?: (ctx: ProviderPrepareExtraParamsContext) => Record<string, unknown> | null | undefined;
2572
- /**
2573
- * Provider-owned request params after transport/model resolution.
2574
- *
2575
- * Use this for transport-family request knobs that should be keyed by the
2576
- * resolved model API/transport rather than a hardcoded core allowlist.
2577
- */
2578
- extraParamsForTransport?: (ctx: ProviderExtraParamsForTransportContext) => ProviderExtraParamsForTransportResult | null | undefined;
2579
- /**
2580
- * Provider-owned transport factory.
2581
- *
2582
- * Use this when the provider needs a fully custom StreamFn instead of a
2583
- * wrapper around the normal `streamSimple` path.
2584
- */
2585
- createStreamFn?: (ctx: ProviderCreateStreamFnContext) => StreamFn | null | undefined;
2586
- /**
2587
- * Provider-owned stream wrapper applied after generic DaoCore wrappers.
2588
- *
2589
- * Typical uses: provider attribution headers, request-body rewrites, or
2590
- * provider-specific compat payload patches that do not justify a separate
2591
- * transport implementation.
2592
- */
2593
- wrapStreamFn?: (ctx: ProviderWrapStreamFnContext) => StreamFn | null | undefined;
2594
- /**
2595
- * Provider-owned native transport turn identity.
2596
- *
2597
- * Use this when a provider wants generic transports to attach provider-native
2598
- * request headers or metadata on each turn without hardcoding vendor logic in
2599
- * core.
2600
- */
2601
- resolveTransportTurnState?: (ctx: ProviderResolveTransportTurnStateContext) => ProviderTransportTurnState | null | undefined;
2602
- /**
2603
- * Provider-owned WebSocket session policy.
2604
- *
2605
- * Use this when a provider wants generic WebSocket transports to attach
2606
- * native session headers or tune the session-scoped cool-down before HTTP
2607
- * fallback.
2608
- */
2609
- resolveWebSocketSessionPolicy?: (ctx: ProviderResolveWebSocketSessionPolicyContext) => ProviderWebSocketSessionPolicy | null | undefined;
2610
- /**
2611
- * Provider-owned embedding provider factory.
2612
- *
2613
- * Use this when memory embedding behavior belongs with the provider plugin
2614
- * rather than the core embedding switchboard.
2615
- */
2616
- createEmbeddingProvider?: (ctx: ProviderCreateEmbeddingProviderContext) => Promise<PluginEmbeddingProvider | null | undefined> | PluginEmbeddingProvider | null | undefined;
2617
- /**
2618
- * Runtime auth exchange hook.
2619
- *
2620
- * Called after DaoCore resolves the raw configured credential but before the
2621
- * runner stores it in runtime auth storage. This lets plugins exchange a
2622
- * source credential (for example a GitHub token) into a short-lived runtime
2623
- * token plus optional base URL override.
2624
- */
2625
- prepareRuntimeAuth?: (ctx: ProviderPrepareRuntimeAuthContext) => Promise<ProviderPreparedRuntimeAuth | null | undefined>;
2626
- /**
2627
- * Usage/billing auth resolution hook.
2628
- *
2629
- * Called by provider-usage surfaces (`/usage`, status snapshots, reporting).
2630
- * Use this when a provider's usage endpoint needs provider-owned token
2631
- * extraction, blob parsing, or alias handling.
2632
- */
2633
- resolveUsageAuth?: (ctx: ProviderResolveUsageAuthContext) => Promise<ProviderResolvedUsageAuth | null | undefined> | ProviderResolvedUsageAuth | null | undefined;
2634
- /**
2635
- * Usage/quota snapshot fetch hook.
2636
- *
2637
- * Called after `resolveUsageAuth` by `/usage` and related reporting surfaces.
2638
- * Use this when the provider's usage endpoint or payload shape is
2639
- * provider-specific and you want that logic to live with the provider plugin
2640
- * instead of the core switchboard.
2641
- */
2642
- fetchUsageSnapshot?: (ctx: ProviderFetchUsageSnapshotContext) => Promise<ProviderUsageSnapshot | null | undefined> | ProviderUsageSnapshot | null | undefined;
2643
- /**
2644
- * Provider-owned failover context-overflow matcher.
2645
- *
2646
- * Return true when the provider recognizes the raw error as a context-window
2647
- * overflow shape that generic heuristics would miss.
2648
- */
2649
- matchesContextOverflowError?: (ctx: ProviderFailoverErrorContext) => boolean | undefined;
2650
- /**
2651
- * Provider-owned failover error classification.
2652
- *
2653
- * Return a failover reason when the provider recognizes a provider-specific
2654
- * raw error shape. Return undefined to fall back to generic classification.
2655
- */
2656
- classifyFailoverReason?: (ctx: ProviderFailoverErrorContext) => FailoverReason | null | undefined;
2657
- /**
2658
- * Provider-owned cache TTL eligibility.
2659
- *
2660
- * Use this when a proxy provider supports Anthropic-style prompt caching for
2661
- * only a subset of upstream models.
2662
- */
2663
- isCacheTtlEligible?: (ctx: ProviderCacheTtlEligibilityContext) => boolean | undefined;
2664
- /**
2665
- * Provider-owned missing-auth message override.
2666
- *
2667
- * Return a custom message when the provider wants a more specific recovery
2668
- * hint than DaoCore's generic auth-store guidance.
2669
- */
2670
- buildMissingAuthMessage?: (ctx: ProviderBuildMissingAuthMessageContext) => string | null | undefined;
2671
- /**
2672
- * Provider-owned unknown-model hint override.
2673
- *
2674
- * Return a suffix when the provider wants a more specific recovery hint than
2675
- * DaoCore's generic `Unknown model` error after catalog/runtime lookup
2676
- * fails.
2677
- */
2678
- buildUnknownModelHint?: (ctx: ProviderBuildUnknownModelHintContext) => string | null | undefined;
2679
- /**
2680
- * Provider-owned built-in model suppression.
2681
- *
2682
- * Return `{ suppress: true }` to hide a stale upstream row. Include
2683
- * `errorMessage` when DaoCore should surface a provider-specific hint for
2684
- * direct model resolution failures.
2685
- *
2686
- * @deprecated Use manifest `modelCatalog.suppressions`. Runtime suppression
2687
- * hooks are no longer called by model resolution.
2688
- */
2689
- suppressBuiltInModel?: (ctx: ProviderBuiltInModelSuppressionContext) => ProviderBuiltInModelSuppressionResult | null | undefined;
2690
- /**
2691
- * Provider-owned final catalog augmentation.
2692
- *
2693
- * @deprecated Use `api.registerModelCatalogProvider` for supplemental catalog
2694
- * rows. This hook is kept only for existing text-provider runtime
2695
- * compatibility during the migration window.
2696
- *
2697
- * Return extra rows to append to the final catalog after discovery/config
2698
- * merging. DaoCore deduplicates by `provider/id`, so plugins only need to
2699
- * describe the desired supplemental rows.
2700
- */
2701
- augmentModelCatalog?: (ctx: ProviderAugmentModelCatalogContext) => Array<ModelCatalogEntry> | ReadonlyArray<ModelCatalogEntry> | Promise<Array<ModelCatalogEntry> | ReadonlyArray<ModelCatalogEntry> | null | undefined> | null | undefined;
2702
- /**
2703
- * Provider-owned binary thinking toggle.
2704
- *
2705
- * Return true when the provider exposes a coarse on/off reasoning control
2706
- * instead of the normal multi-level ladder shown by `/think`.
2707
- *
2708
- * @deprecated Prefer `resolveThinkingProfile`.
2709
- */
2710
- isBinaryThinking?: (ctx: ProviderThinkingPolicyContext) => boolean | undefined;
2711
- /**
2712
- * Provider-owned xhigh reasoning support.
2713
- *
2714
- * Return true only for models that should expose the `xhigh` thinking level.
2715
- *
2716
- * @deprecated Prefer `resolveThinkingProfile`.
2717
- */
2718
- supportsXHighThinking?: (ctx: ProviderThinkingPolicyContext) => boolean | undefined;
2719
- /**
2720
- * Provider-owned thinking level profile.
2721
- *
2722
- * Prefer this over the individual thinking capability hooks when a provider
2723
- * or model exposes a custom set of thinking levels. DaoCore stores the
2724
- * canonical `id`, shows `label` when provided, and downgrades stale stored
2725
- * values by profile rank.
2726
- */
2727
- resolveThinkingProfile?: (ctx: ProviderDefaultThinkingPolicyContext) => ProviderThinkingProfile | null | undefined;
2728
- /**
2729
- * Provider-owned default thinking level.
2730
- *
2731
- * Use this to keep model-family defaults (for example Claude 4.6 =>
2732
- * adaptive) out of core command logic.
2733
- *
2734
- * @deprecated Prefer `resolveThinkingProfile`.
2735
- */
2736
- resolveDefaultThinkingLevel?: (ctx: ProviderDefaultThinkingPolicyContext) => "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "adaptive" | null | undefined;
2737
- /**
2738
- * Provider-owned system-prompt contribution.
2739
- *
2740
- * Use this when a provider/model family needs cache-aware prompt tuning
2741
- * without replacing the full DaoCore-owned system prompt.
2742
- */
2743
- resolveSystemPromptContribution?: (ctx: ProviderSystemPromptContributionContext) => ProviderSystemPromptContribution | null | undefined;
2744
- /**
2745
- * Provider-owned GPT/model prompt overlay seam.
2746
- *
2747
- * Runs after DaoCore's built-in overlay is resolved and before the
2748
- * provider's regular system-prompt contribution is merged.
2749
- */
2750
- resolvePromptOverlay?: (ctx: ProviderResolvePromptOverlayContext) => ProviderSystemPromptContribution | null | undefined;
2751
- /**
2752
- * Provider-owned fallback route override for model/profile failure handling.
2753
- *
2754
- * Return undefined/null to keep DaoCore's default fallback policy.
2755
- */
2756
- followupFallbackRoute?: (ctx: ProviderFollowupFallbackRouteContext) => ProviderFollowupFallbackRouteResult | null | undefined;
2757
- /**
2758
- * Provider-owned auth profile resolver.
2759
- *
2760
- * Return a profile id from the supplied order to prefer it for this attempt;
2761
- * invalid or missing ids are ignored by core.
2762
- */
2763
- resolveAuthProfileId?: (ctx: ProviderResolveAuthProfileIdContext) => string | null | undefined;
2764
- /**
2765
- * Provider-owned final system-prompt transform.
2766
- *
2767
- * Use this sparingly when a provider transport needs small compatibility
2768
- * rewrites after DaoCore has assembled the complete prompt. Return
2769
- * `undefined`/`null` to leave the prompt unchanged.
2770
- */
2771
- transformSystemPrompt?: (ctx: ProviderTransformSystemPromptContext) => string | null | undefined;
2772
- /**
2773
- * Provider-owned bidirectional text replacements.
2774
- *
2775
- * `input` applies to system prompts and text message content before transport.
2776
- * `output` applies to assistant text deltas/final text before DaoCore handles
2777
- * its own control markers or channel delivery.
2778
- */
2779
- textTransforms?: PluginTextTransforms;
2780
- /**
2781
- * Provider-owned global config defaults.
2782
- *
2783
- * Use this when config materialization needs provider-specific defaults that
2784
- * depend on auth mode, env, or provider model-family semantics.
2785
- */
2786
- applyConfigDefaults?: (ctx: ProviderApplyConfigDefaultsContext) => DaoCoreConfig | null | undefined;
2787
- /**
2788
- * Provider-owned "modern model" matcher used by live profile/smoke filters.
2789
- *
2790
- * Return true when the given provider/model ref should be treated as a
2791
- * preferred modern model candidate.
2792
- */
2793
- isModernModelRef?: (ctx: ProviderModernModelPolicyContext) => boolean | undefined;
2794
- wizard?: ProviderPluginWizard;
2795
- /**
2796
- * Provider-owned auth-profile API-key formatter.
2797
- *
2798
- * DaoCore uses this when a stored auth profile is already valid and needs to
2799
- * be converted into the runtime `apiKey` string expected by the provider. Use
2800
- * this for providers whose auth profile stores extra metadata alongside the
2801
- * bearer token (for example Gemini CLI's `{ token, projectId }` payload).
2802
- */
2803
- formatApiKey?: (cred: AuthProfileCredential) => string;
2804
- /**
2805
- * Legacy auth-profile ids that should be retired by `daocore doctor`.
2806
- *
2807
- * Use this when a provider plugin replaces an older core-managed profile id
2808
- * and wants cleanup/migration messaging to live with the provider instead of
2809
- * in hardcoded doctor tables.
2810
- */
2811
- deprecatedProfileIds?: string[];
2812
- /**
2813
- * Legacy OAuth profile-id migrations that `daocore doctor` should offer.
2814
- *
2815
- * Use this when a provider moved from a legacy default OAuth profile id to a
2816
- * newer identity-based id and wants doctor to own the config rewrite without
2817
- * another core-specific migration branch.
2818
- */
2819
- oauthProfileIdRepairs?: ProviderOAuthProfileIdRepair[];
2820
- /**
2821
- * Provider-owned OAuth refresh.
2822
- *
2823
- * DaoCore calls this before falling back to the shared `pi-ai` OAuth
2824
- * refreshers. Use it when the provider has a custom refresh endpoint, or when
2825
- * the provider needs custom refresh-failure behavior that should stay out of
2826
- * core auth-profile code.
2827
- */
2828
- refreshOAuth?: (cred: OAuthCredential) => Promise<OAuthCredential>;
2829
- /**
2830
- * Provider-owned auth-doctor hint.
2831
- *
2832
- * Return a multiline repair hint when OAuth refresh fails and the provider
2833
- * wants to steer users toward a specific auth-profile migration or recovery
2834
- * path. Return nothing to keep DaoCore's generic error text.
2835
- */
2836
- buildAuthDoctorHint?: (ctx: ProviderAuthDoctorHintContext) => string | Promise<string | null | undefined> | null | undefined;
2837
- /**
2838
- * Provider-owned config-backed auth resolution.
2839
- *
2840
- * Providers own any provider-specific fallback secret rules here so core
2841
- * auth/discovery code can stay generic and avoid parsing provider-private
2842
- * config layouts.
2843
- *
2844
- * The returned `apiKey` may be:
2845
- * - a real credential from the active runtime snapshot, suitable for runtime use
2846
- * - a non-secret marker (for example a managed SecretRef marker), suitable only
2847
- * for discovery/bootstrap callers
2848
- *
2849
- * Runtime callers must not treat non-secret markers as runnable credentials;
2850
- * they should retry against the active runtime snapshot when available.
2851
- *
2852
- * This hook is the canonical seam for provider-specific fallback auth
2853
- * derived from plugin/private config. It may return:
2854
- * - a runnable literal credential for runtime callers
2855
- * - a non-secret marker for managed-secret source config, which is still useful
2856
- * for discovery/bootstrap callers
2857
- *
2858
- * Runtime callers must not treat non-secret markers as runnable credentials;
2859
- * they should retry against the active runtime snapshot when available.
2860
- *
2861
- * Use this when the provider can operate without a real secret for certain
2862
- * configured local/self-hosted cases and wants auth resolution to treat that
2863
- * config as available.
2864
- */
2865
- resolveSyntheticAuth?: (ctx: ProviderResolveSyntheticAuthContext) => ProviderSyntheticAuthResult | null | undefined;
2866
- /**
2867
- * Provider-owned external auth profile discovery.
2868
- *
2869
- * Use this when credentials are managed by an external tool and should be visible
2870
- * to runtime auth resolution without being written back into `auth-profiles.json`
2871
- * by core.
2872
- */
2873
- resolveExternalAuthProfiles?: (ctx: ProviderResolveExternalAuthProfilesContext) => Array<ProviderExternalAuthProfile> | ReadonlyArray<ProviderExternalAuthProfile> | null | undefined;
2874
- /**
2875
- * @deprecated Declare `contracts.externalAuthProviders` in the plugin manifest
2876
- * and implement `resolveExternalAuthProfiles` instead. This compatibility hook
2877
- * is loaded through a slower fallback path and will be removed in a future release.
2878
- */
2879
- resolveExternalOAuthProfiles?: (ctx: ProviderResolveExternalOAuthProfilesContext) => Array<ProviderExternalOAuthProfile> | ReadonlyArray<ProviderExternalOAuthProfile> | null | undefined;
2880
- /**
2881
- * Provider-owned precedence rule for stored synthetic auth profiles.
2882
- *
2883
- * Return true when a stored profile API key is only a provider-owned
2884
- * synthetic placeholder and should yield to env/config-backed auth before
2885
- * DaoCore falls back to that stored profile.
2886
- */
2887
- shouldDeferSyntheticProfileAuth?: (ctx: ProviderDeferSyntheticProfileAuthContext) => boolean | undefined;
2888
- onModelSelected?: (ctx: ProviderModelSelectedContext) => Promise<void>;
2889
- };
2890
- /** Speech capability registered by a plugin. */
2891
- type SpeechProviderPlugin = {
2892
- id: SpeechProviderId;
2893
- label: string;
2894
- aliases?: string[];
2895
- autoSelectOrder?: number; /** Default provider operation timeout in milliseconds when caller/config omit timeoutMs. */
2896
- defaultTimeoutMs?: number;
2897
- models?: readonly string[];
2898
- voices?: readonly string[];
2899
- resolveConfig?: (ctx: SpeechProviderResolveConfigContext) => SpeechProviderConfig;
2900
- parseDirectiveToken?: (ctx: SpeechDirectiveTokenParseContext) => SpeechDirectiveTokenParseResult;
2901
- resolveTalkConfig?: (ctx: SpeechProviderResolveTalkConfigContext) => SpeechProviderConfig;
2902
- resolveTalkOverrides?: (ctx: SpeechProviderResolveTalkOverridesContext) => SpeechProviderConfig | undefined;
2903
- prepareSynthesis?: (ctx: SpeechProviderPrepareSynthesisContext) => SpeechProviderPreparedSynthesis | undefined | Promise<SpeechProviderPreparedSynthesis | undefined>;
2904
- isConfigured: (ctx: SpeechProviderConfiguredContext) => boolean;
2905
- synthesize: (req: SpeechSynthesisRequest) => Promise<SpeechSynthesisResult>;
2906
- streamSynthesize?: (req: SpeechSynthesisStreamRequest) => Promise<SpeechSynthesisStreamResult>;
2907
- synthesizeTelephony?: (req: SpeechTelephonySynthesisRequest) => Promise<SpeechTelephonySynthesisResult>;
2908
- listVoices?: (req: SpeechListVoicesRequest) => Promise<SpeechVoiceOption[]>;
2909
- };
2910
- type PluginSpeechProviderEntry = SpeechProviderPlugin & {
2911
- pluginId: string;
2912
- };
2913
- /** Realtime transcription capability registered by a plugin. */
2914
- type RealtimeTranscriptionProviderPlugin = {
2915
- id: RealtimeTranscriptionProviderId;
2916
- label: string;
2917
- aliases?: string[];
2918
- defaultModel?: string;
2919
- autoSelectOrder?: number;
2920
- resolveConfig?: (ctx: RealtimeTranscriptionProviderResolveConfigContext) => RealtimeTranscriptionProviderConfig;
2921
- isConfigured: (ctx: RealtimeTranscriptionProviderConfiguredContext) => boolean;
2922
- createSession: (req: RealtimeTranscriptionSessionCreateRequest) => RealtimeTranscriptionSession;
2923
- };
2924
- type PluginRealtimeTranscriptionProviderEntry = RealtimeTranscriptionProviderPlugin & {
2925
- pluginId: string;
2926
- };
2927
- /** Realtime voice capability registered by a plugin. */
2928
- type RealtimeVoiceProviderPlugin = {
2929
- id: RealtimeVoiceProviderId;
2930
- label: string;
2931
- aliases?: string[];
2932
- defaultModel?: string;
2933
- autoSelectOrder?: number;
2934
- capabilities?: RealtimeVoiceProviderCapabilities;
2935
- resolveConfig?: (ctx: RealtimeVoiceProviderResolveConfigContext) => RealtimeVoiceProviderConfig;
2936
- isConfigured: (ctx: RealtimeVoiceProviderConfiguredContext) => boolean;
2937
- createBridge: (req: RealtimeVoiceBridgeCreateRequest) => RealtimeVoiceBridge;
2938
- createBrowserSession?: (req: RealtimeVoiceBrowserSessionCreateRequest) => Promise<RealtimeVoiceBrowserSession>;
2939
- };
2940
- type PluginRealtimeVoiceProviderEntry = RealtimeVoiceProviderPlugin & {
2941
- pluginId: string;
2942
- };
2943
- type MediaUnderstandingProviderPlugin = MediaUnderstandingProvider;
2944
- type ImageGenerationProviderPlugin = ImageGenerationProvider;
2945
- type VideoGenerationProviderPlugin = VideoGenerationProvider;
2946
- type MusicGenerationProviderPlugin = MusicGenerationProvider;
2947
- type DaoCorePluginGatewayMethod = {
2948
- method: string;
2949
- handler: GatewayRequestHandler;
2950
- };
2951
- type PluginCommandDiagnosticsSession = {
2952
- /** Stable host session key when available. */sessionKey?: string; /** Ephemeral DaoCore session id when available. */
2953
- sessionId?: string; /** Transcript file for this DaoCore session when available. */
2954
- sessionFile?: string; /** Embedded agent harness selected for this session. */
2955
- agentHarnessId?: string; /** Channel/provider for this session when available. */
2956
- channel?: string; /** Provider channel id when available. */
2957
- channelId?: ChannelId; /** Account id for multi-account channels when available. */
2958
- accountId?: string; /** Thread/topic id when available. */
2959
- messageThreadId?: string | number; /** Parent conversation id for thread-capable channels when available. */
2960
- threadParentId?: string;
2961
- };
2962
- /**
2963
- * Context passed to plugin command handlers.
2964
- */
2965
- type PluginCommandContext = {
2966
- /** The sender's identifier (for example a channel-scoped user ID) */senderId?: string; /** The channel/surface (for example "chat" or "team-chat") */
2967
- channel: string; /** Provider channel id */
2968
- channelId?: ChannelId; /** Whether the sender is on the allowlist */
2969
- isAuthorizedSender: boolean; /** Whether the sender is an owner for owner-only command surfaces. */
2970
- senderIsOwner?: boolean; /** Gateway client scopes for internal control-plane callers */
2971
- gatewayClientScopes?: string[]; /** Stable host session key for the active conversation when available. */
2972
- sessionKey?: string; /** Ephemeral host session id for the active conversation when available. */
2973
- sessionId?: string; /** Transcript file for the active DaoCore session when available. */
2974
- sessionFile?: string; /** Raw command arguments after the command name */
2975
- args?: string; /** The full normalized command body */
2976
- commandBody: string; /** Current DaoCore configuration */
2977
- config: DaoCoreConfig; /** Raw "From" value (channel-scoped id) */
2978
- from?: string; /** Raw "To" value (channel-scoped id) */
2979
- to?: string; /** Account id for multi-account channels */
2980
- accountId?: string; /** Thread/topic id if available */
2981
- messageThreadId?: string | number; /** Parent conversation id for thread-capable channels */
2982
- threadParentId?: string; /** Sensitive diagnostics-only session inventory for owner-gated commands. */
2983
- diagnosticsSessions?: PluginCommandDiagnosticsSession[]; /** Internal diagnostics-only marker that exec approval already authorized upload. */
2984
- diagnosticsUploadApproved?: boolean; /** Internal diagnostics-only marker to preview upload effects without exposing ids. */
2985
- diagnosticsPreviewOnly?: boolean; /** Internal diagnostics-only marker for owner-private routed confirmations. */
2986
- diagnosticsPrivateRouted?: boolean;
2987
- requestConversationBinding: (params?: PluginConversationBindingRequestParams) => Promise<PluginConversationBindingRequestResult>;
2988
- detachConversationBinding: () => Promise<{
2989
- removed: boolean;
2990
- }>;
2991
- getCurrentConversationBinding: () => Promise<PluginConversationBinding | null>;
2992
- };
2993
- /**
2994
- * Result returned by a plugin command handler.
2995
- */
2996
- type PluginCommandResult = ReplyPayload & {
2997
- continueAgent?: boolean;
2998
- };
2999
- /**
3000
- * Handler function for plugin commands.
3001
- */
3002
- type PluginCommandHandler = (ctx: PluginCommandContext) => PluginCommandResult | Promise<PluginCommandResult>;
3003
- /**
3004
- * Definition for a plugin-registered command.
3005
- */
3006
- declare const AGENT_PROMPT_SURFACE_KINDS: readonly ["pi_main", "codex_app_server", "cli_backend", "acp_backend", "subagent"];
3007
- type AgentPromptSurfaceKind = (typeof AGENT_PROMPT_SURFACE_KINDS)[number];
3008
- type AgentPromptGuidanceEntry = {
3009
- text: string;
3010
- surfaces?: readonly AgentPromptSurfaceKind[];
3011
- };
3012
- type AgentPromptGuidance = string | AgentPromptGuidanceEntry;
3013
- type DaoCorePluginCommandDefinition = {
3014
- /** Command name without leading slash (e.g., "tts") */name: string;
3015
- /**
3016
- * Optional native-command aliases for slash/menu surfaces.
3017
- * `default` applies to all native providers unless a provider-specific
3018
- * override exists (for example `{ default: "talkvoice", teamChat: "voice2" }`).
3019
- */
3020
- nativeNames?: Partial<Record<string, string>> & {
3021
- default?: string;
3022
- };
3023
- /**
3024
- * Optional native progress placeholder text for native command surfaces.
3025
- * `default` applies to all native providers unless a provider-specific
3026
- * override exists.
3027
- */
3028
- nativeProgressMessages?: Partial<Record<string, string>> & {
3029
- default?: string;
3030
- }; /** Description shown in /help and command menus */
3031
- description: string; /** Localized descriptions for native command surfaces that support them. */
3032
- descriptionLocalizations?: Record<string, string>;
3033
- /**
3034
- * Optional channel ids this command belongs to.
3035
- * Omit to keep the command available on every channel surface.
3036
- */
3037
- channels?: readonly string[]; /** Optional system-prompt guidance for agents when this command is registered. */
3038
- agentPromptGuidance?: readonly AgentPromptGuidance[]; /** Whether this command accepts arguments */
3039
- acceptsArgs?: boolean; /** Whether only authorized senders can use this command (default: true) */
3040
- requireAuth?: boolean; /** Operator scopes required by gateway clients; command owners may satisfy this on chat surfaces. */
3041
- requiredScopes?: OperatorScope[];
3042
- /**
3043
- * Allows a bundled plugin to claim a command name that is otherwise reserved
3044
- * by core. External plugins cannot use this field.
3045
- */
3046
- ownership?: "plugin" | "reserved"; /** The handler function */
3047
- handler: PluginCommandHandler;
3048
- };
3049
- type PluginInteractiveHandlerResult = {
3050
- handled?: boolean;
3051
- } | void;
3052
- type PluginInteractiveRegistration<TContext = unknown, TChannel extends string = string, TResult = PluginInteractiveHandlerResult> = {
3053
- channel: TChannel;
3054
- namespace: string;
3055
- handler: (ctx: TContext) => Promise<TResult> | TResult;
3056
- };
3057
- type PluginInteractiveHandlerRegistration = PluginInteractiveRegistration;
3058
- type DaoCorePluginHttpRouteAuth = "gateway" | "plugin";
3059
- type DaoCorePluginHttpRouteMatch = "exact" | "prefix";
3060
- type DaoCorePluginGatewayRuntimeScopeSurface = "write-default" | "trusted-operator";
3061
- type DaoCorePluginHttpRouteHandler = (req: IncomingMessage, res: ServerResponse) => Promise<boolean | void> | boolean | void;
3062
- type DaoCorePluginHttpRouteUpgradeHandler = (req: IncomingMessage, socket: Duplex, head: Buffer) => Promise<boolean | void> | boolean | void;
3063
- type DaoCorePluginHttpRouteParams = {
3064
- path: string;
3065
- handler: DaoCorePluginHttpRouteHandler;
3066
- handleUpgrade?: DaoCorePluginHttpRouteUpgradeHandler;
3067
- auth: DaoCorePluginHttpRouteAuth;
3068
- match?: DaoCorePluginHttpRouteMatch;
3069
- gatewayRuntimeScopeSurface?: DaoCorePluginGatewayRuntimeScopeSurface;
3070
- nodeCapability?: {
3071
- surface: string;
3072
- ttlMs?: number;
3073
- };
3074
- replaceExisting?: boolean;
3075
- };
3076
- type DaoCorePluginHostedMediaResolver = (mediaUrl: string) => string | null | undefined | Promise<string | null | undefined>;
3077
- type DaoCorePluginCliContext = {
3078
- /**
3079
- * Command object where this plugin should register its commands.
3080
- *
3081
- * For root CLI registrations this is the root `daocore` program. For nested
3082
- * registrations it is the resolved parent command from `parentPath`.
3083
- */
3084
- program: Command;
3085
- parentPath: readonly string[];
3086
- config: DaoCoreConfig;
3087
- workspaceDir?: string;
3088
- logger: PluginLogger;
3089
- };
3090
- type DaoCorePluginCliRegistrar = (ctx: DaoCorePluginCliContext) => void | Promise<void>;
3091
- /**
3092
- * Top-level CLI metadata for plugin-owned commands.
3093
- *
3094
- * Descriptors are the parse-time contract for lazy plugin CLI registration.
3095
- * If you want DaoCore to keep a plugin command lazy-loaded while still
3096
- * advertising it at the root CLI level, provide descriptors that cover every
3097
- * top-level command root registered by that plugin CLI surface.
3098
- */
3099
- type DaoCorePluginCliCommandDescriptor = {
3100
- name: string;
3101
- description: string;
3102
- hasSubcommands: boolean;
3103
- };
3104
- type DaoCorePluginNodeCliFeatureOptions = {
3105
- /** Explicit node feature command names owned under `daocore nodes`. */commands?: string[];
3106
- /**
3107
- * Parse-time command descriptors for lazy node feature CLI registration.
3108
- *
3109
- * Descriptors are registered under `daocore nodes`, so a descriptor named
3110
- * `"camera"` exposes `daocore nodes camera`.
3111
- */
3112
- descriptors?: DaoCorePluginCliCommandDescriptor[];
3113
- };
3114
- type DaoCorePluginReloadRegistration = {
3115
- restartPrefixes?: string[];
3116
- hotPrefixes?: string[];
3117
- noopPrefixes?: string[];
3118
- };
3119
- type DaoCorePluginNodeHostCommand = {
3120
- command: string;
3121
- cap?: string;
3122
- dangerous?: boolean;
3123
- handle: (paramsJSON?: string | null) => Promise<string>;
3124
- };
3125
- type DaoCorePluginNodeInvokeTransportResult = {
3126
- ok: true;
3127
- payload?: unknown;
3128
- payloadJSON?: string | null;
3129
- } | {
3130
- ok: false;
3131
- code?: string;
3132
- message: string;
3133
- details?: Record<string, unknown>;
3134
- };
3135
- type DaoCorePluginNodeInvokeApprovalDecision = "allow-once" | "allow-always" | "deny";
3136
- type DaoCorePluginNodeInvokePolicyApprovalRuntime = {
3137
- request: (input: {
3138
- title: string;
3139
- description: string;
3140
- severity?: "info" | "warning" | "critical";
3141
- toolName?: string;
3142
- toolCallId?: string;
3143
- agentId?: string;
3144
- sessionKey?: string;
3145
- timeoutMs?: number;
3146
- }) => Promise<{
3147
- id?: string;
3148
- decision?: DaoCorePluginNodeInvokeApprovalDecision | null;
3149
- }>;
3150
- };
3151
- type DaoCorePluginNodeInvokePolicyContext = {
3152
- nodeId: string;
3153
- command: string;
3154
- params: unknown;
3155
- timeoutMs?: number;
3156
- idempotencyKey?: string;
3157
- config: DaoCoreConfig;
3158
- pluginConfig?: Record<string, unknown>;
3159
- node?: {
3160
- nodeId: string;
3161
- displayName?: string;
3162
- platform?: string;
3163
- deviceFamily?: string;
3164
- commands?: string[];
3165
- };
3166
- client?: {
3167
- connId?: string;
3168
- scopes?: string[];
3169
- } | null;
3170
- approvals?: DaoCorePluginNodeInvokePolicyApprovalRuntime;
3171
- invokeNode: (input?: {
3172
- params?: unknown;
3173
- timeoutMs?: number;
3174
- idempotencyKey?: string;
3175
- }) => Promise<DaoCorePluginNodeInvokeTransportResult>;
3176
- };
3177
- type DaoCorePluginNodeInvokePolicyResult = {
3178
- ok: true;
3179
- payload?: unknown;
3180
- payloadJSON?: string | null;
3181
- } | {
3182
- ok: false;
3183
- message: string;
3184
- code?: string;
3185
- details?: Record<string, unknown>;
3186
- unavailable?: boolean;
3187
- };
3188
- type DaoCorePluginNodeInvokePolicy = {
3189
- commands: string[];
3190
- /**
3191
- * Platforms where these node-handled commands should be allowlisted by default.
3192
- * Omit for commands that require explicit `gateway.nodes.allowCommands`.
3193
- */
3194
- defaultPlatforms?: Array<"ios" | "android" | "macos" | "windows" | "linux" | "unknown">;
3195
- /**
3196
- * Dangerous policy commands are filtered out of default allowlists unless
3197
- * explicitly allowed by config.
3198
- */
3199
- dangerous?: boolean;
3200
- /**
3201
- * iOS foreground-restricted commands should be queued for foreground delivery
3202
- * when an iOS node reports BACKGROUND_UNAVAILABLE.
3203
- */
3204
- foregroundRestrictedOnIos?: boolean;
3205
- handle: (ctx: DaoCorePluginNodeInvokePolicyContext) => Promise<DaoCorePluginNodeInvokePolicyResult> | DaoCorePluginNodeInvokePolicyResult;
3206
- };
3207
- type DaoCorePluginSecurityAuditContext = {
3208
- config: DaoCoreConfig;
3209
- sourceConfig: DaoCoreConfig;
3210
- env: NodeJS.ProcessEnv;
3211
- stateDir: string;
3212
- configPath: string;
3213
- };
3214
- type DaoCorePluginSecurityAuditCollector = (ctx: DaoCorePluginSecurityAuditContext) => SecurityAuditFinding[] | Promise<SecurityAuditFinding[]>;
3215
- type DaoCoreGatewayDiscoveryAdvertiseContext = {
3216
- machineDisplayName: string;
3217
- gatewayPort: number;
3218
- gatewayTlsEnabled: boolean;
3219
- gatewayTlsFingerprintSha256?: string;
3220
- gatewayDirectReachable: boolean;
3221
- canvasPort?: number;
3222
- tailnetDns?: string;
3223
- sshPort?: number;
3224
- cliPath?: string;
3225
- minimal: boolean;
3226
- };
3227
- type DaoCoreGatewayDiscoveryService = {
3228
- id: string;
3229
- advertise: (ctx: DaoCoreGatewayDiscoveryAdvertiseContext) => void | Promise<void | {
3230
- stop?: () => void | Promise<void>;
3231
- }>;
3232
- };
3233
- /** Context passed to long-lived plugin services. */
3234
- type DaoCorePluginServiceContext = {
3235
- config: DaoCoreConfig;
3236
- workspaceDir?: string;
3237
- stateDir: string;
3238
- logger: PluginLogger;
3239
- startupTrace?: {
3240
- detail?: (name: string, metrics: ReadonlyArray<readonly [string, number | string]>) => void;
3241
- measure: <T>(name: string, run: () => T | Promise<T>) => Promise<T>;
3242
- };
3243
- internalDiagnostics?: {
3244
- emit: (event: DiagnosticEventInput) => void;
3245
- onEvent: (listener: (event: DiagnosticEventPayload, metadata: DiagnosticEventMetadata) => void) => () => void;
3246
- };
3247
- };
3248
- /** Background service registered by a plugin during `register(api)`. */
3249
- type DaoCorePluginService = {
3250
- id: string;
3251
- start: (ctx: DaoCorePluginServiceContext) => void | Promise<void>;
3252
- stop?: (ctx: DaoCorePluginServiceContext) => void | Promise<void>;
3253
- };
3254
- type DaoCorePluginChannelRegistration = {
3255
- plugin: ChannelPlugin;
3256
- };
3257
- /** Module-level plugin definition loaded from a native plugin entry file. */
3258
- type DaoCorePluginDefinition = {
3259
- id?: string;
3260
- name?: string;
3261
- description?: string;
3262
- version?: string;
3263
- /**
3264
- * @deprecated Declare exclusive plugin kind in `daocore.plugin.json` via
3265
- * manifest `kind`. Runtime-exported `kind` is kept as a compatibility
3266
- * fallback for older plugins and may require loading plugin runtime on
3267
- * metadata-only command paths.
3268
- */
3269
- kind?: PluginKind | PluginKind[];
3270
- configSchema?: DaoCorePluginConfigSchema;
3271
- reload?: DaoCorePluginReloadRegistration;
3272
- nodeHostCommands?: DaoCorePluginNodeHostCommand[];
3273
- securityAuditCollectors?: DaoCorePluginSecurityAuditCollector[];
3274
- register?: (api: DaoCorePluginApi) => void;
3275
- activate?: (api: DaoCorePluginApi) => void;
3276
- };
3277
- type DaoCorePluginModule = DaoCorePluginDefinition | ((api: DaoCorePluginApi) => void);
3278
- /**
3279
- * Public label exposed to plugin `register(api)` calls.
3280
- *
3281
- * Keep this as a compatibility signal for plugin authors. Loader internals
3282
- * should derive explicit capability booleans from the mode instead of branching
3283
- * on raw strings throughout the code path.
3284
- *
3285
- * - `full`: live runtime activation; long-lived side effects may start.
3286
- * - `discovery`: read-only capability discovery; skip sockets/workers/clients.
3287
- * - `tool-discovery`: capability discovery for executable tools; skip channel runtime hydration.
3288
- * - `setup-only`: lightweight channel setup entry only.
3289
- * - `setup-runtime`: setup flow that also needs the runtime channel entry.
3290
- * - `cli-metadata`: CLI command metadata collection.
3291
- */
3292
- type PluginRegistrationMode = "full" | "discovery" | "tool-discovery" | "setup-only" | "setup-runtime" | "cli-metadata";
3293
- type PluginConfigMigration = (config: DaoCoreConfig) => {
3294
- config: DaoCoreConfig;
3295
- changes: string[];
3296
- } | null | undefined;
3297
- type MigrationItemStatus = "planned" | "migrated" | "skipped" | "warning" | "conflict" | "error";
3298
- type MigrationItemKind = "config" | "secret" | "memory" | "skill" | "workspace" | "session" | "file" | "archive" | "manual";
3299
- type MigrationItemAction = "copy" | "create" | "update" | "merge" | "append" | "archive" | "skip" | "manual";
3300
- type MigrationItem = {
3301
- id: string;
3302
- kind: MigrationItemKind | (string & {});
3303
- action: MigrationItemAction | (string & {});
3304
- status: MigrationItemStatus;
3305
- source?: string;
3306
- target?: string;
3307
- message?: string;
3308
- reason?: string;
3309
- sensitive?: boolean;
3310
- details?: Record<string, unknown>;
3311
- };
3312
- type MigrationSummary = {
3313
- total: number;
3314
- planned: number;
3315
- migrated: number;
3316
- skipped: number;
3317
- conflicts: number;
3318
- errors: number;
3319
- sensitive: number;
3320
- };
3321
- type MigrationDetection = {
3322
- found: boolean;
3323
- source?: string;
3324
- label?: string;
3325
- confidence?: "low" | "medium" | "high";
3326
- message?: string;
3327
- };
3328
- type MigrationPlan = {
3329
- providerId: string;
3330
- source: string;
3331
- target?: string;
3332
- summary: MigrationSummary;
3333
- items: MigrationItem[];
3334
- warnings?: string[];
3335
- nextSteps?: string[];
3336
- metadata?: Record<string, unknown>;
3337
- };
3338
- type MigrationApplyResult = MigrationPlan & {
3339
- backupPath?: string;
3340
- reportDir?: string;
3341
- };
3342
- type MigrationProviderPreparation = {
3343
- dispose?: () => void | Promise<void>;
3344
- };
3345
- type MigrationProviderContext = {
3346
- config: DaoCoreConfig;
3347
- runtime?: PluginRuntime;
3348
- logger: PluginLogger;
3349
- stateDir: string;
3350
- source?: string;
3351
- includeSecrets?: boolean;
3352
- overwrite?: boolean;
3353
- providerOptions?: Record<string, unknown>;
3354
- backupPath?: string;
3355
- reportDir?: string;
3356
- signal?: AbortSignal;
3357
- };
3358
- /** Migration source implemented by a plugin and orchestrated by `daocore migrate`. */
3359
- type MigrationProviderPlugin = {
3360
- id: string;
3361
- label: string;
3362
- description?: string;
3363
- detect?: (ctx: MigrationProviderContext) => MigrationDetection | Promise<MigrationDetection>;
3364
- prepareApply?: (ctx: MigrationProviderContext) => MigrationProviderPreparation | Promise<MigrationProviderPreparation | undefined> | undefined;
3365
- plan: (ctx: MigrationProviderContext) => MigrationPlan | Promise<MigrationPlan>;
3366
- apply: (ctx: MigrationProviderContext, plan?: MigrationPlan) => MigrationApplyResult | Promise<MigrationApplyResult>;
3367
- };
3368
- type PluginSetupAutoEnableContext = {
3369
- config: DaoCoreConfig;
3370
- env: NodeJS.ProcessEnv;
3371
- };
3372
- type PluginSetupAutoEnableProbe = (ctx: PluginSetupAutoEnableContext) => string | string[] | null | undefined;
3373
- type DaoCorePluginSessionStateApi = {
3374
- /** Register plugin-owned session state projected into Gateway session rows. */registerSessionExtension: (extension: PluginSessionExtensionRegistration) => void;
3375
- };
3376
- type DaoCorePluginSessionWorkflowApi = {
3377
- /** Queue one plugin-owned context injection for the next agent turn in a session. */enqueueNextTurnInjection: (injection: PluginNextTurnInjection) => Promise<PluginNextTurnInjectionEnqueueResult>;
3378
- /**
3379
- * Register cleanup metadata for a plugin-owned session scheduler job.
3380
- * This does not schedule work or create task records; it only lets the host
3381
- * clean external scheduler state during reset/delete/disable.
3382
- */
3383
- registerSessionSchedulerJob: (job: PluginSessionSchedulerJobRegistration) => PluginSessionSchedulerJobHandle | undefined; /** Send host-validated files to the active direct-outbound route for a session. */
3384
- sendSessionAttachment: (params: PluginSessionAttachmentParams) => Promise<PluginSessionAttachmentResult>;
3385
- /**
3386
- * Schedule a future agent turn in a session through Cron.
3387
- * Cron owns timing and creates the task ledger entry when the turn runs.
3388
- */
3389
- scheduleSessionTurn: (params: PluginSessionTurnScheduleParams) => Promise<PluginSessionSchedulerJobHandle | undefined>; /** Remove Cron-backed scheduled session turns that share a plugin-owned tag. */
3390
- unscheduleSessionTurnsByTag: (params: PluginSessionTurnUnscheduleByTagParams) => Promise<PluginSessionTurnUnscheduleByTagResult>;
3391
- };
3392
- type DaoCorePluginSessionControlsApi = {
3393
- /** Register a typed session action that clients can dispatch through the Gateway. */registerSessionAction: (action: PluginSessionActionRegistration) => void; /** Register a generic Control UI contribution descriptor. */
3394
- registerControlUiDescriptor: (descriptor: PluginControlUiDescriptor) => void;
3395
- };
3396
- type DaoCorePluginSessionApi = {
3397
- state: DaoCorePluginSessionStateApi;
3398
- workflow: DaoCorePluginSessionWorkflowApi;
3399
- controls: DaoCorePluginSessionControlsApi;
3400
- };
3401
- type DaoCorePluginAgentEventsApi = {
3402
- /** Subscribe to sanitized agent events through the host-owned plugin lifecycle. */registerAgentEventSubscription: (subscription: PluginAgentEventSubscriptionRegistration) => void; /** Emit a host-routed, plugin-attributed event for workflow/UI subscribers. */
3403
- emitAgentEvent: (params: PluginAgentEventEmitParams) => PluginAgentEventEmitResult;
3404
- };
3405
- type DaoCorePluginAgentApi = {
3406
- events: DaoCorePluginAgentEventsApi;
3407
- };
3408
- type DaoCorePluginRunContextApi = {
3409
- /** Store namespaced, JSON-compatible data for the active run. Cleared on run end/error. */setRunContext: (patch: PluginRunContextPatch) => boolean; /** Read namespaced plugin data for a run. */
3410
- getRunContext: (params: PluginRunContextGetParams) => PluginJsonValue | undefined; /** Clear one namespace or all namespaces this plugin owns for a run. */
3411
- clearRunContext: (params: {
3412
- runId: string;
3413
- namespace?: string;
3414
- }) => void;
3415
- };
3416
- type DaoCorePluginLifecycleApi = {
3417
- /** Register cleanup hooks for plugin-owned host state and background work. */registerRuntimeLifecycle: (lifecycle: PluginRuntimeLifecycleRegistration) => void;
3418
- };
3419
- /** Main registration API injected into native plugin entry files. */
3420
- type DaoCorePluginApi = {
3421
- id: string;
3422
- name: string;
3423
- version?: string;
3424
- description?: string;
3425
- source: string;
3426
- rootDir?: string;
3427
- registrationMode: PluginRegistrationMode;
3428
- config: DaoCoreConfig;
3429
- pluginConfig?: Record<string, unknown>;
3430
- /**
3431
- * In-process runtime helpers for trusted native plugins.
3432
- *
3433
- * This surface is broader than hooks. Prefer hooks for third-party
3434
- * automation/integration unless you need native registry integration.
3435
- */
3436
- runtime: PluginRuntime;
3437
- logger: PluginLogger;
3438
- /**
3439
- * Grouped facade over the existing flat session-related plugin API.
3440
- * Flat methods remain supported for compatibility.
3441
- */
3442
- session: DaoCorePluginSessionApi; /** Grouped facade for agent-event workflow seams. */
3443
- agent: DaoCorePluginAgentApi; /** Grouped facade for run-scoped plugin scratch state. */
3444
- runContext: DaoCorePluginRunContextApi; /** Grouped facade for plugin-owned lifecycle cleanup hooks. */
3445
- lifecycle: DaoCorePluginLifecycleApi;
3446
- registerTool: (tool: AnyAgentTool | DaoCorePluginToolFactory, opts?: DaoCorePluginToolOptions) => void;
3447
- registerHook: (events: string | string[], handler: InternalHookHandler, opts?: DaoCorePluginHookOptions) => void;
3448
- registerHttpRoute: (params: DaoCorePluginHttpRouteParams) => void; /** Register a plugin-owned resolver for browser-style hosted media URLs. */
3449
- registerHostedMediaResolver: (resolver: DaoCorePluginHostedMediaResolver) => void; /** Register a native messaging channel plugin (channel capability). */
3450
- registerChannel: (registration: DaoCorePluginChannelRegistration | ChannelPlugin) => void;
3451
- /**
3452
- * Register a gateway RPC method for this plugin.
3453
- *
3454
- * Reserved core admin namespaces (`config.*`, `exec.approvals.*`,
3455
- * `wizard.*`, `update.*`) always normalize to `operator.admin` even if a
3456
- * narrower scope is requested.
3457
- */
3458
- registerGatewayMethod: (method: string, handler: GatewayRequestHandler, opts?: {
3459
- scope?: OperatorScope;
3460
- }) => void;
3461
- registerCli: (registrar: DaoCorePluginCliRegistrar, opts?: {
3462
- /** Parent command path for nested command groups, for example `["nodes"]`. */parentPath?: string[]; /** Explicit command names owned by this registrar at `parentPath`. */
3463
- commands?: string[];
3464
- /**
3465
- * Parse-time command descriptors for lazy CLI registration.
3466
- *
3467
- * When descriptors cover every command exposed at `parentPath`, DaoCore
3468
- * can keep the plugin registrar lazy. Command-only registrations stay on
3469
- * the eager compatibility path.
3470
- */
3471
- descriptors?: DaoCorePluginCliCommandDescriptor[];
3472
- }) => void;
3473
- /**
3474
- * Register a plugin-owned node feature command group under `daocore nodes`.
3475
- *
3476
- * This is equivalent to `registerCli(registrar, { parentPath: ["nodes"], ... })`
3477
- * and is intended for paired-node capabilities such as camera, screen, or Canvas.
3478
- */
3479
- registerNodeCliFeature: (registrar: DaoCorePluginCliRegistrar, opts?: DaoCorePluginNodeCliFeatureOptions) => void;
3480
- registerReload: (registration: DaoCorePluginReloadRegistration) => void;
3481
- registerNodeHostCommand: (command: DaoCorePluginNodeHostCommand) => void;
3482
- registerNodeInvokePolicy: (policy: DaoCorePluginNodeInvokePolicy) => void;
3483
- registerSecurityAuditCollector: (collector: DaoCorePluginSecurityAuditCollector) => void;
3484
- registerService: (service: DaoCorePluginService) => void; /** Register a local gateway discovery advertiser such as mDNS/Bonjour. */
3485
- registerGatewayDiscoveryService: (service: DaoCoreGatewayDiscoveryService) => void; /** Register a text-only CLI backend used by the local CLI runner. */
3486
- registerCliBackend: (backend: CliBackendPlugin) => void; /** Register plugin-owned prompt/message compatibility text transforms. */
3487
- registerTextTransforms: (transforms: PluginTextTransformRegistration) => void; /** Register a lightweight config migration that can run before plugin runtime loads. */
3488
- registerConfigMigration: (migrate: PluginConfigMigration) => void; /** Register an importer for `daocore migrate` (migration capability). */
3489
- registerMigrationProvider: (provider: MigrationProviderPlugin) => void; /** Register a lightweight config probe that can auto-enable this plugin generically. */
3490
- registerAutoEnableProbe: (probe: PluginSetupAutoEnableProbe) => void; /** Register a native model/provider plugin (text inference capability). */
3491
- registerProvider: (provider: ProviderPlugin) => void; /** Register provider-owned model catalog rows for text and media generation. */
3492
- registerModelCatalogProvider: (provider: UnifiedModelCatalogProviderPlugin) => void; /** Register a general embedding provider (embedding capability). */
3493
- registerEmbeddingProvider: (adapter: EmbeddingProviderAdapter) => void; /** Register a speech synthesis provider (speech capability). */
3494
- registerSpeechProvider: (provider: SpeechProviderPlugin) => void; /** Register a realtime transcription provider (streaming STT capability). */
3495
- registerRealtimeTranscriptionProvider: (provider: RealtimeTranscriptionProviderPlugin) => void; /** Register a realtime voice provider (duplex voice capability). */
3496
- registerRealtimeVoiceProvider: (provider: RealtimeVoiceProviderPlugin) => void; /** Register a media understanding provider (media understanding capability). */
3497
- registerMediaUnderstandingProvider: (provider: MediaUnderstandingProviderPlugin) => void; /** Register an image generation provider (image generation capability). */
3498
- registerImageGenerationProvider: (provider: ImageGenerationProviderPlugin) => void; /** Register a video generation provider (video generation capability). */
3499
- registerVideoGenerationProvider: (provider: VideoGenerationProviderPlugin) => void; /** Register a music generation provider (music generation capability). */
3500
- registerMusicGenerationProvider: (provider: MusicGenerationProviderPlugin) => void; /** Register a web fetch provider (web fetch capability). */
3501
- registerWebFetchProvider: (provider: WebFetchProviderPlugin) => void; /** Register a web search provider (web search capability). */
3502
- registerWebSearchProvider: (provider: WebSearchProviderPlugin) => void;
3503
- registerInteractiveHandler: (registration: PluginInteractiveHandlerRegistration) => void;
3504
- onConversationBindingResolved: (handler: (event: PluginConversationBindingResolvedEvent) => void | Promise<void>) => void;
3505
- /**
3506
- * Register a custom command that bypasses the LLM agent.
3507
- * Plugin commands are processed before built-in commands and before agent invocation.
3508
- * Use this for simple state-toggling or status commands that don't need AI reasoning.
3509
- */
3510
- registerCommand: (command: DaoCorePluginCommandDefinition) => void; /** Register a context engine implementation (exclusive slot - only one active at a time). */
3511
- registerContextEngine: (id: string, factory: ContextEngineFactory) => void; /** Register a compaction provider (pluggable summarization backend). */
3512
- registerCompactionProvider: (provider: CompactionProvider) => void; /** Register an agent harness implementation. */
3513
- registerAgentHarness: (harness: AgentHarness) => void;
3514
- /**
3515
- * Register a Codex app-server extension factory for Codex harness tool-result
3516
- * middleware. Only bundled plugins may use this seam, and
3517
- * `contracts.embeddedExtensionFactories` must include `"codex-app-server"`.
3518
- */
3519
- registerCodexAppServerExtensionFactory: (factory: CodexAppServerExtensionFactory) => void;
3520
- /**
3521
- * Register runtime-neutral tool-result middleware. Declare
3522
- * `contracts.agentToolResultMiddleware` for every targeted runtime.
3523
- */
3524
- registerAgentToolResultMiddleware: (handler: AgentToolResultMiddleware, options?: AgentToolResultMiddlewareOptions) => void;
3525
- /**
3526
- * Register plugin-owned session state that can be projected into Gateway session rows.
3527
- * @deprecated Use `api.session.state.registerSessionExtension(...)`.
3528
- */
3529
- registerSessionExtension: (extension: PluginSessionExtensionRegistration) => void;
3530
- /**
3531
- * Queue one plugin-owned context injection for the next agent turn in a session.
3532
- * @deprecated Use `api.session.workflow.enqueueNextTurnInjection(...)`.
3533
- */
3534
- enqueueNextTurnInjection: (injection: PluginNextTurnInjection) => Promise<PluginNextTurnInjectionEnqueueResult>;
3535
- /**
3536
- * Register a trusted pre-tool policy. Only bundled plugins may use this
3537
- * before-tool-call policy tier.
3538
- */
3539
- registerTrustedToolPolicy: (policy: PluginTrustedToolPolicyRegistration) => void;
3540
- /**
3541
- * Register display/policy metadata for a plugin-owned tool. Metadata is
3542
- * scoped to the (pluginId, toolName) pair at projection time, so plugins
3543
- * cannot decorate other plugins' tools or core tools through this surface.
3544
- */
3545
- registerToolMetadata: (metadata: PluginToolMetadataRegistration) => void;
3546
- /**
3547
- * Register a generic Control UI contribution descriptor.
3548
- * @deprecated Use `api.session.controls.registerControlUiDescriptor(...)`.
3549
- */
3550
- registerControlUiDescriptor: (descriptor: PluginControlUiDescriptor) => void;
3551
- /**
3552
- * Register cleanup hooks for plugin-owned host state and background work.
3553
- * @deprecated Use `api.lifecycle.registerRuntimeLifecycle(...)`.
3554
- */
3555
- registerRuntimeLifecycle: (lifecycle: PluginRuntimeLifecycleRegistration) => void;
3556
- /**
3557
- * Subscribe to sanitized agent events through the host-owned plugin lifecycle.
3558
- * @deprecated Use `api.agent.events.registerAgentEventSubscription(...)`.
3559
- */
3560
- registerAgentEventSubscription: (subscription: PluginAgentEventSubscriptionRegistration) => void;
3561
- /**
3562
- * Emit a host-routed, plugin-attributed agent event for workflow/UI subscribers.
3563
- * @deprecated Use `api.agent.events.emitAgentEvent(...)`.
3564
- */
3565
- emitAgentEvent: (params: PluginAgentEventEmitParams) => PluginAgentEventEmitResult;
3566
- /**
3567
- * Store namespaced, JSON-compatible data for the active run. Cleared on run end/error.
3568
- * @deprecated Use `api.runContext.setRunContext(...)`.
3569
- */
3570
- setRunContext: (patch: PluginRunContextPatch) => boolean;
3571
- /**
3572
- * Read namespaced plugin data for a run.
3573
- * @deprecated Use `api.runContext.getRunContext(...)`.
3574
- */
3575
- getRunContext: (params: PluginRunContextGetParams) => PluginJsonValue | undefined;
3576
- /**
3577
- * Clear one namespace or all namespaces this plugin owns for a run.
3578
- * @deprecated Use `api.runContext.clearRunContext(...)`.
3579
- */
3580
- clearRunContext: (params: {
3581
- runId: string;
3582
- namespace?: string;
3583
- }) => void;
3584
- /**
3585
- * Register cleanup metadata for a plugin-owned session scheduler job.
3586
- * This does not schedule work or create task records; it only lets the host
3587
- * clean external scheduler state during reset/delete/disable.
3588
- *
3589
- * @deprecated Use `api.session.workflow.registerSessionSchedulerJob(...)`.
3590
- */
3591
- registerSessionSchedulerJob: (job: PluginSessionSchedulerJobRegistration) => PluginSessionSchedulerJobHandle | undefined;
3592
- /**
3593
- * Register a typed session action that clients can dispatch through the Gateway.
3594
- * @deprecated Use `api.session.controls.registerSessionAction(...)`.
3595
- */
3596
- registerSessionAction: (action: PluginSessionActionRegistration) => void;
3597
- /**
3598
- * Send one or more host-validated files to the active direct-outbound channel for a session.
3599
- *
3600
- * This API is intended for bundled plugins running with the host channel/session
3601
- * integration available. Calls may resolve to `{ ok: false }` instead of attaching
3602
- * files when global side effects are disabled or when the required plugin/channel
3603
- * runtime is not loaded, so callers must handle rejection via the returned result.
3604
- *
3605
- * @deprecated Use `api.session.workflow.sendSessionAttachment(...)`.
3606
- */
3607
- sendSessionAttachment: (params: PluginSessionAttachmentParams) => Promise<PluginSessionAttachmentResult>;
3608
- /**
3609
- * Schedule a future agent turn in a session through Cron.
3610
- * Cron owns timing and creates the task ledger entry when the turn runs.
3611
- * Bundled plugins only; workspace plugins receive undefined.
3612
- *
3613
- * @deprecated Use `api.session.workflow.scheduleSessionTurn(...)`.
3614
- */
3615
- scheduleSessionTurn: (params: PluginSessionTurnScheduleParams) => Promise<PluginSessionSchedulerJobHandle | undefined>;
3616
- /**
3617
- * Remove Cron-backed scheduled session turns that share the same plugin-owned tag.
3618
- * Bundled plugins only; workspace plugins receive a zero-count result.
3619
- *
3620
- * @deprecated Use `api.session.workflow.unscheduleSessionTurnsByTag(...)`.
3621
- */
3622
- unscheduleSessionTurnsByTag: (params: PluginSessionTurnUnscheduleByTagParams) => Promise<PluginSessionTurnUnscheduleByTagResult>; /** Register the active detached task runtime for this plugin (exclusive slot). */
3623
- registerDetachedTaskRuntime: (runtime: DetachedTaskLifecycleRuntime) => void; /** Register the active memory capability for this memory plugin (exclusive slot). */
3624
- registerMemoryCapability: (capability: MemoryPluginCapability) => void;
3625
- /**
3626
- * Register the system prompt section builder for this memory plugin (exclusive slot).
3627
- * @deprecated Use registerMemoryCapability({ promptBuilder }) instead.
3628
- */
3629
- registerMemoryPromptSection: (builder: MemoryPromptSectionBuilder) => void; /** Register an additive memory-adjacent prompt section (non-exclusive). */
3630
- registerMemoryPromptSupplement: (builder: MemoryPromptSectionBuilder) => void; /** Register an additive memory-adjacent search/read corpus supplement (non-exclusive). */
3631
- registerMemoryCorpusSupplement: (supplement: MemoryCorpusSupplement) => void;
3632
- /**
3633
- * Register the pre-compaction flush plan resolver for this memory plugin (exclusive slot).
3634
- * @deprecated Use registerMemoryCapability({ flushPlanResolver }) instead.
3635
- */
3636
- registerMemoryFlushPlan: (resolver: MemoryFlushPlanResolver) => void;
3637
- /**
3638
- * Register the active memory runtime adapter for this memory plugin (exclusive slot).
3639
- * @deprecated Use registerMemoryCapability({ runtime }) instead.
3640
- */
3641
- registerMemoryRuntime: (runtime: MemoryPluginRuntime) => void; /** Register a memory embedding provider adapter. Multiple adapters may coexist. */
3642
- registerMemoryEmbeddingProvider: (adapter: MemoryEmbeddingProviderAdapter) => void;
3643
- resolvePath: (input: string) => string; /** Register a lifecycle hook handler */
3644
- on: <K extends PluginHookName>(hookName: K, handler: PluginHookHandlerMap[K], opts?: {
3645
- priority?: number;
3646
- timeoutMs?: number;
3647
- }) => void;
3648
- };
3649
- //#endregion
3650
- export { MigrationPlan as $, ProviderExternalAuthProfile as $n, RealtimeTranscriptionProviderConfig as $r, ProviderModernModelPolicyContext as $t, DaoCorePluginNodeInvokePolicy as A, isToolWrappedWithBeforeToolCallHook as Ai, ProviderResolveTransportTurnStateContext as An, AgentToolResultMiddlewareResult as Ar, ProviderAuthResult as At, DaoCorePluginServiceContext as B, MemoryEmbeddingProviderCallOptions as Bi, ProviderValidateReplayTurnsContext as Bn, RealtimeVoiceBridgeEvent as Br, ProviderCreateEmbeddingProviderContext as Bt, DaoCorePluginHttpRouteParams as C, NormalizedUsage as Ci, ProviderReplaySessionEntry as Cn, PluginTextReplacement as Cr, ProviderAugmentModelCatalogContext as Ct, DaoCorePluginNodeCliFeatureOptions as D, HookContext as Di, ProviderResolveDynamicModelContext as Dn, AgentToolResultMiddlewareEvent as Dr, ProviderAuthMethod as Dt, DaoCorePluginModule as E, BuildAgentRuntimePlanParams as Ei, ProviderResolveAuthProfileIdContext as En, AgentToolResultMiddlewareContext as Er, ProviderAuthKind as Et, DaoCorePluginReloadRegistration as F, resolveEmbeddedAgentRuntime as Fi, ProviderSanitizeReplayHistoryContext as Fn, RealtimeVoiceAudioFormat as Fr, ProviderCacheTtlEligibilityContext as Ft, ImageGenerationProviderPlugin as G, listRegisteredMemoryEmbeddingProviders as Gi, SpeechProviderPlugin as Gn, RealtimeVoiceProviderConfig as Gr, ProviderDiscoveryResult as Gt, DaoCorePluginSessionControlsApi as H, MemoryEmbeddingProviderCreateResult as Hi, ProviderWrapStreamFnContext as Hn, RealtimeVoiceBrowserSessionCreateRequest as Hr, ProviderDeferSyntheticProfileAuthContext as Ht, DaoCorePluginRunContextApi as I, MemoryEmbeddingBatchChunk as Ii, ProviderSystemPromptContributionContext as In, RealtimeVoiceBargeInOptions as Ir, ProviderCapabilities as It, MigrationDetection as J, VideoGenerationProviderPlugin as Jn, RealtimeVoiceProviderResolveConfigContext as Jr, ProviderFailoverErrorContext as Jt, MediaUnderstandingProviderPlugin as K, registerMemoryEmbeddingProvider as Ki, UnifiedModelCatalogProviderContext as Kn, RealtimeVoiceProviderConfiguredContext as Kr, ProviderExtraParamsForTransportContext as Kt, DaoCorePluginSecurityAuditCollector as L, MemoryEmbeddingBatchOptions as Li, ProviderToolSchemaDiagnostic as Ln, RealtimeVoiceBridge as Lr, ProviderCatalogContext as Lt, DaoCorePluginNodeInvokePolicyContext as M, setBeforeToolCallDiagnosticsEnabled as Mi, ProviderResolveWebSocketSessionPolicyContext as Mn, DaoCoreAgentToolResult as Mr, ProviderBuildUnknownModelHintContext as Mt, DaoCorePluginNodeInvokePolicyResult as N, wrapToolWithBeforeToolCallHook as Ni, ProviderResolvedUsageAuth as Nn, REALTIME_VOICE_AUDIO_FORMAT_G711_ULAW_8KHZ as Nr, ProviderBuiltInModelSuppressionContext as Nt, DaoCorePluginNodeHostCommand as O, ToolOutcomeObserver as Oi, ProviderResolveNonInteractiveApiKeyParams as On, AgentToolResultMiddlewareHarness as Or, ProviderAuthMethodNonInteractiveContext as Ot, DaoCorePluginNodeInvokeTransportResult as P, AgentHarnessTaskRuntimeScope as Pi, ProviderRuntimeProviderConfig as Pn, REALTIME_VOICE_AUDIO_FORMAT_PCM16_24KHZ as Pr, ProviderBuiltInModelSuppressionResult as Pt, MigrationItemStatus as Q, ProviderRuntimeModel as Qn, RealtimeVoiceToolResultOptions as Qr, ProviderModelSelectedContext as Qt, DaoCorePluginSecurityAuditContext as R, MemoryEmbeddingProvider as Ri, ProviderTransformSystemPromptContext as Rn, RealtimeVoiceBridgeCallbacks as Rr, ProviderCatalogOrder as Rt, DaoCorePluginHttpRouteMatch as S, PreemptiveCompactionRoute as Si, ProviderReplaySanitizeMode as Sn, CliBundleMcpMode as Sr, PluginTextTransformRegistration as St, DaoCorePluginLifecycleApi as T, AgentRuntimePlan as Ti, ProviderReplayToolCallIdMode as Tn, AgentToolResultMiddleware as Tr, ProviderAuthDoctorHintContext as Tt, DaoCorePluginSessionStateApi as U, MemoryEmbeddingProviderRuntime as Ui, RealtimeTranscriptionProviderPlugin as Un, RealtimeVoiceCloseReason as Ur, ProviderDiscoveryContext as Ut, DaoCorePluginSessionApi as V, MemoryEmbeddingProviderCreateOptions as Vi, ProviderWebSocketSessionPolicy as Vn, RealtimeVoiceBrowserSession as Vr, ProviderCreateStreamFnContext as Vt, DaoCorePluginSessionWorkflowApi as W, clearMemoryEmbeddingProviders as Wi, RealtimeVoiceProviderPlugin as Wn, RealtimeVoiceProviderCapabilities as Wr, ProviderDiscoveryOrder as Wt, MigrationItemAction as X, ProviderThinkingPolicyContext as Xn, RealtimeVoiceTool as Xr, ProviderFollowupFallbackRouteContext as Xt, MigrationItem as Y, ProviderDefaultThinkingPolicyContext as Yn, RealtimeVoiceRole as Yr, ProviderFetchUsageSnapshotContext as Yt, MigrationItemKind as Z, ProviderThinkingProfile as Zn, RealtimeVoiceToolCallEvent as Zr, ProviderFollowupFallbackRouteResult as Zt, DaoCorePluginGatewayMethod as _, AgentHarnessSupport as _i, ProviderPreparedRuntimeAuth as _n, CliBackendPrepareExecutionContext as _r, PluginRealtimeVoiceProviderEntry as _t, DaoCoreGatewayDiscoveryAdvertiseContext as a, RealtimeTranscriptionSessionCreateRequest as ai, ProviderNormalizeTransportContext as an, ProviderApplyConfigDefaultsContext as ar, PluginCommandContext as at, DaoCorePluginHttpRouteAuth as b, EmbeddedRunAttemptParams as bi, ProviderReplayPolicy as bn, CliBackendResolveExecutionArgsContext as br, PluginSetupAutoEnableProbe as bt, DaoCorePluginAgentEventsApi as c, AgentHarnessAttemptParams as ci, ProviderPluginCatalog as cn, CodexAppServerExtensionContext as cr, PluginCommandResult as ct, DaoCorePluginCliCommandDescriptor as d, AgentHarnessCompactResult as di, ProviderPluginWizardModelPicker as dn, CodexAppServerToolResultEvent as dr, PluginEmbeddingProvider as dt, RealtimeTranscriptionProviderConfiguredContext as ei, ProviderNonInteractiveApiKeyCredentialParams as en, ProviderExternalOAuthProfile as er, MigrationProviderContext as et, DaoCorePluginCliContext as f, AgentHarnessDeliveryDefaults as fi, ProviderPluginWizardSetup as fn, CodexAppServerToolResultHandlerResult as fr, PluginInteractiveHandlerRegistration as ft, DaoCorePluginDefinition as g, AgentHarnessSideQuestionResult as gi, ProviderPrepareRuntimeAuthContext as gn, CliBackendPlugin as gr, PluginRealtimeTranscriptionProviderEntry as gt, DaoCorePluginConfigSchema as h, AgentHarnessSideQuestionParams as hi, ProviderPrepareExtraParamsContext as hn, CliBackendNormalizeConfigContext as hr, PluginLogger as ht, AgentPromptSurfaceKind as i, RealtimeTranscriptionSessionCallbacks as ii, ProviderNormalizeToolSchemasContext as in, ProviderSyntheticAuthResult as ir, MusicGenerationProviderPlugin as it, DaoCorePluginNodeInvokePolicyApprovalRuntime as j, runBeforeToolCallHook as ji, ProviderResolveUsageAuthContext as jn, AgentToolResultMiddlewareRuntime as jr, ProviderBuildMissingAuthMessageContext as jt, DaoCorePluginNodeInvokeApprovalDecision as k, hasBeforeToolCallPolicy as ki, ProviderResolvePromptOverlayContext as kn, AgentToolResultMiddlewareOptions as kr, ProviderAuthOptionBag as kt, DaoCorePluginApi as l, AgentHarnessAttemptResult as li, ProviderPluginDiscovery as ln, CodexAppServerExtensionFactory as lr, PluginConfigMigration as lt, DaoCorePluginCommandDefinition as m, AgentHarnessResultClassification as mi, ProviderPrepareDynamicModelContext as mn, CliBackendNativeToolMode as mr, PluginInteractiveRegistration as mt, AgentPromptGuidance as n, RealtimeTranscriptionProviderResolveConfigContext as ni, ProviderNormalizeModelIdContext as nn, ProviderResolveExternalOAuthProfilesContext as nr, MigrationProviderPreparation as nt, DaoCoreGatewayDiscoveryService as o, ProviderSystemPromptContribution as oi, ProviderOAuthProfileIdRepair as on, ProviderNormalizeConfigContext as or, PluginCommandDiagnosticsSession as ot, DaoCorePluginCliRegistrar as p, AgentHarnessResetParams as pi, ProviderPreferRuntimeResolvedModelContext as pn, CliBackendAuthEpochMode as pr, PluginInteractiveHandlerResult as pt, MigrationApplyResult as q, UnifiedModelCatalogProviderPlugin as qn, RealtimeVoiceProviderId as qr, ProviderExtraParamsForTransportResult as qt, AgentPromptGuidanceEntry as r, RealtimeTranscriptionSession as ri, ProviderNormalizeResolvedModelContext as rn, ProviderResolveSyntheticAuthContext as rr, MigrationSummary as rt, DaoCorePluginAgentApi as s, AgentHarness as si, ProviderPlugin as sn, ProviderResolveConfigApiKeyContext as sr, PluginCommandHandler as st, AGENT_PROMPT_SURFACE_KINDS as t, RealtimeTranscriptionProviderId as ti, ProviderNonInteractiveApiKeyResult as tn, ProviderResolveExternalAuthProfilesContext as tr, MigrationProviderPlugin as tt, DaoCorePluginChannelRegistration as u, AgentHarnessCompactParams as ui, ProviderPluginWizard as un, CodexAppServerExtensionRuntime as ur, PluginConfigValidation as ut, DaoCorePluginGatewayRuntimeScopeSurface as v, AgentHarnessSupportContext as vi, ProviderReasoningOutputMode as vn, CliBackendPreparedExecution as vr, PluginRegistrationMode as vt, DaoCorePluginHttpRouteUpgradeHandler as w, normalizeUsage as wi, ProviderReplaySessionState as wn, PluginTextTransforms as wr, ProviderAuthContext as wt, DaoCorePluginHttpRouteHandler as x, EmbeddedRunAttemptResult as xi, ProviderReplayPolicyContext as xn, CliBackendThinkingLevel as xr, PluginSpeechProviderEntry as xt, DaoCorePluginHostedMediaResolver as y, CompactEmbeddedPiSessionParams as yi, ProviderReasoningOutputModeContext as yn, CliBackendResolveExecutionArgs as yr, PluginSetupAutoEnableContext as yt, DaoCorePluginService as z, MemoryEmbeddingProviderAdapter as zi, ProviderTransportTurnState as zn, RealtimeVoiceBridgeCreateRequest as zr, ProviderCatalogResult as zt };