@copilotkit/runtime 2.0.0-next.1 → 2.0.0-rc.1

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 (623) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +135 -1
  3. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  4. package/dist/_virtual/_rolldown/runtime.mjs +18 -0
  5. package/dist/agent/converters/aisdk.cjs +355 -0
  6. package/dist/agent/converters/aisdk.cjs.map +1 -0
  7. package/dist/agent/converters/aisdk.d.cts +22 -0
  8. package/dist/agent/converters/aisdk.d.cts.map +1 -0
  9. package/dist/agent/converters/aisdk.d.mts +22 -0
  10. package/dist/agent/converters/aisdk.d.mts.map +1 -0
  11. package/dist/agent/converters/aisdk.mjs +351 -0
  12. package/dist/agent/converters/aisdk.mjs.map +1 -0
  13. package/dist/agent/converters/index.d.mts +2 -0
  14. package/dist/agent/converters/tanstack.cjs +374 -0
  15. package/dist/agent/converters/tanstack.cjs.map +1 -0
  16. package/dist/agent/converters/tanstack.d.cts +83 -0
  17. package/dist/agent/converters/tanstack.d.cts.map +1 -0
  18. package/dist/agent/converters/tanstack.d.mts +83 -0
  19. package/dist/agent/converters/tanstack.d.mts.map +1 -0
  20. package/dist/agent/converters/tanstack.mjs +372 -0
  21. package/dist/agent/converters/tanstack.mjs.map +1 -0
  22. package/dist/agent/converters/usage.cjs +68 -0
  23. package/dist/agent/converters/usage.cjs.map +1 -0
  24. package/dist/agent/converters/usage.d.cts +19 -0
  25. package/dist/agent/converters/usage.d.cts.map +1 -0
  26. package/dist/agent/converters/usage.d.mts +19 -0
  27. package/dist/agent/converters/usage.d.mts.map +1 -0
  28. package/dist/agent/converters/usage.mjs +62 -0
  29. package/dist/agent/converters/usage.mjs.map +1 -0
  30. package/dist/agent/index.cjs +1328 -0
  31. package/dist/agent/index.cjs.map +1 -0
  32. package/dist/agent/index.d.cts +467 -0
  33. package/dist/agent/index.d.cts.map +1 -0
  34. package/dist/agent/index.d.mts +468 -0
  35. package/dist/agent/index.d.mts.map +1 -0
  36. package/dist/agent/index.mjs +1318 -0
  37. package/dist/agent/index.mjs.map +1 -0
  38. package/dist/agent/learned-skills.cjs +76 -0
  39. package/dist/agent/learned-skills.cjs.map +1 -0
  40. package/dist/agent/learned-skills.d.cts +15 -0
  41. package/dist/agent/learned-skills.d.cts.map +1 -0
  42. package/dist/agent/learned-skills.d.mts +15 -0
  43. package/dist/agent/learned-skills.d.mts.map +1 -0
  44. package/dist/agent/learned-skills.mjs +74 -0
  45. package/dist/agent/learned-skills.mjs.map +1 -0
  46. package/dist/agent/mcp-tool-names.cjs +82 -0
  47. package/dist/agent/mcp-tool-names.cjs.map +1 -0
  48. package/dist/agent/mcp-tool-names.mjs +80 -0
  49. package/dist/agent/mcp-tool-names.mjs.map +1 -0
  50. package/dist/agent/state-delta.cjs +321 -0
  51. package/dist/agent/state-delta.cjs.map +1 -0
  52. package/dist/agent/state-delta.mjs +320 -0
  53. package/dist/agent/state-delta.mjs.map +1 -0
  54. package/dist/agent/url-download.cjs +503 -0
  55. package/dist/agent/url-download.cjs.map +1 -0
  56. package/dist/agent/url-download.d.cts +79 -0
  57. package/dist/agent/url-download.d.cts.map +1 -0
  58. package/dist/agent/url-download.d.mts +79 -0
  59. package/dist/agent/url-download.d.mts.map +1 -0
  60. package/dist/agent/url-download.mjs +500 -0
  61. package/dist/agent/url-download.mjs.map +1 -0
  62. package/dist/index.cjs +75 -0
  63. package/dist/index.d.cts +24 -0
  64. package/dist/index.d.mts +24 -0
  65. package/dist/index.mjs +17 -5598
  66. package/dist/internal/learned-skills.cjs +21 -0
  67. package/dist/internal/learned-skills.d.cts +9 -0
  68. package/dist/internal/learned-skills.d.mts +9 -0
  69. package/dist/internal/learned-skills.mjs +9 -0
  70. package/dist/node.cjs +7 -0
  71. package/dist/node.d.cts +4 -0
  72. package/dist/node.d.mts +4 -0
  73. package/dist/node.mjs +4 -0
  74. package/dist/runtime/core/channel-activation-config.cjs +87 -0
  75. package/dist/runtime/core/channel-activation-config.cjs.map +1 -0
  76. package/dist/runtime/core/channel-activation-config.d.cts +39 -0
  77. package/dist/runtime/core/channel-activation-config.d.cts.map +1 -0
  78. package/dist/runtime/core/channel-activation-config.d.mts +39 -0
  79. package/dist/runtime/core/channel-activation-config.d.mts.map +1 -0
  80. package/dist/runtime/core/channel-activation-config.mjs +85 -0
  81. package/dist/runtime/core/channel-activation-config.mjs.map +1 -0
  82. package/dist/runtime/core/channel-manager.cjs +973 -0
  83. package/dist/runtime/core/channel-manager.cjs.map +1 -0
  84. package/dist/runtime/core/channel-manager.d.cts +166 -0
  85. package/dist/runtime/core/channel-manager.d.cts.map +1 -0
  86. package/dist/runtime/core/channel-manager.d.mts +167 -0
  87. package/dist/runtime/core/channel-manager.d.mts.map +1 -0
  88. package/dist/runtime/core/channel-manager.mjs +972 -0
  89. package/dist/runtime/core/channel-manager.mjs.map +1 -0
  90. package/dist/runtime/core/debug-event-bus.cjs +57 -0
  91. package/dist/runtime/core/debug-event-bus.cjs.map +1 -0
  92. package/dist/runtime/core/debug-event-bus.d.cts +18 -0
  93. package/dist/runtime/core/debug-event-bus.d.cts.map +1 -0
  94. package/dist/runtime/core/debug-event-bus.d.mts +18 -0
  95. package/dist/runtime/core/debug-event-bus.d.mts.map +1 -0
  96. package/dist/runtime/core/debug-event-bus.mjs +55 -0
  97. package/dist/runtime/core/debug-event-bus.mjs.map +1 -0
  98. package/dist/runtime/core/fetch-cors.cjs +71 -0
  99. package/dist/runtime/core/fetch-cors.cjs.map +1 -0
  100. package/dist/runtime/core/fetch-cors.d.cts +19 -0
  101. package/dist/runtime/core/fetch-cors.d.cts.map +1 -0
  102. package/dist/runtime/core/fetch-cors.d.mts +19 -0
  103. package/dist/runtime/core/fetch-cors.d.mts.map +1 -0
  104. package/dist/runtime/core/fetch-cors.mjs +69 -0
  105. package/dist/runtime/core/fetch-cors.mjs.map +1 -0
  106. package/dist/runtime/core/fetch-handler.cjs +539 -0
  107. package/dist/runtime/core/fetch-handler.cjs.map +1 -0
  108. package/dist/runtime/core/fetch-handler.d.cts +99 -0
  109. package/dist/runtime/core/fetch-handler.d.cts.map +1 -0
  110. package/dist/runtime/core/fetch-handler.d.mts +99 -0
  111. package/dist/runtime/core/fetch-handler.d.mts.map +1 -0
  112. package/dist/runtime/core/fetch-handler.mjs +538 -0
  113. package/dist/runtime/core/fetch-handler.mjs.map +1 -0
  114. package/dist/runtime/core/fetch-router.cjs +141 -0
  115. package/dist/runtime/core/fetch-router.cjs.map +1 -0
  116. package/dist/runtime/core/fetch-router.mjs +140 -0
  117. package/dist/runtime/core/fetch-router.mjs.map +1 -0
  118. package/dist/runtime/core/hooks.cjs +28 -0
  119. package/dist/runtime/core/hooks.cjs.map +1 -0
  120. package/dist/runtime/core/hooks.d.cts +121 -0
  121. package/dist/runtime/core/hooks.d.cts.map +1 -0
  122. package/dist/runtime/core/hooks.d.mts +121 -0
  123. package/dist/runtime/core/hooks.d.mts.map +1 -0
  124. package/dist/runtime/core/hooks.mjs +24 -0
  125. package/dist/runtime/core/hooks.mjs.map +1 -0
  126. package/dist/runtime/core/learning.cjs +61 -0
  127. package/dist/runtime/core/learning.cjs.map +1 -0
  128. package/dist/runtime/core/learning.d.cts +61 -0
  129. package/dist/runtime/core/learning.d.cts.map +1 -0
  130. package/dist/runtime/core/learning.d.mts +61 -0
  131. package/dist/runtime/core/learning.d.mts.map +1 -0
  132. package/dist/runtime/core/learning.mjs +56 -0
  133. package/dist/runtime/core/learning.mjs.map +1 -0
  134. package/dist/runtime/core/logger.cjs +21 -0
  135. package/dist/runtime/core/logger.cjs.map +1 -0
  136. package/dist/runtime/core/logger.d.cts +12 -0
  137. package/dist/runtime/core/logger.d.cts.map +1 -0
  138. package/dist/runtime/core/logger.d.mts +12 -0
  139. package/dist/runtime/core/logger.d.mts.map +1 -0
  140. package/dist/runtime/core/logger.mjs +18 -0
  141. package/dist/runtime/core/logger.mjs.map +1 -0
  142. package/dist/runtime/core/middleware-sse-parser.cjs +149 -0
  143. package/dist/runtime/core/middleware-sse-parser.cjs.map +1 -0
  144. package/dist/runtime/core/middleware-sse-parser.d.cts +21 -0
  145. package/dist/runtime/core/middleware-sse-parser.d.cts.map +1 -0
  146. package/dist/runtime/core/middleware-sse-parser.d.mts +21 -0
  147. package/dist/runtime/core/middleware-sse-parser.d.mts.map +1 -0
  148. package/dist/runtime/core/middleware-sse-parser.mjs +148 -0
  149. package/dist/runtime/core/middleware-sse-parser.mjs.map +1 -0
  150. package/dist/runtime/core/middleware.cjs +34 -0
  151. package/dist/runtime/core/middleware.cjs.map +1 -0
  152. package/dist/runtime/core/middleware.d.cts +31 -0
  153. package/dist/runtime/core/middleware.d.cts.map +1 -0
  154. package/dist/runtime/core/middleware.d.mts +31 -0
  155. package/dist/runtime/core/middleware.d.mts.map +1 -0
  156. package/dist/runtime/core/middleware.mjs +32 -0
  157. package/dist/runtime/core/middleware.mjs.map +1 -0
  158. package/dist/runtime/core/package-info.cjs +9 -0
  159. package/dist/runtime/core/package-info.cjs.map +1 -0
  160. package/dist/runtime/core/package-info.mjs +7 -0
  161. package/dist/runtime/core/package-info.mjs.map +1 -0
  162. package/dist/runtime/core/runtime-error-reporter.cjs +21 -0
  163. package/dist/runtime/core/runtime-error-reporter.cjs.map +1 -0
  164. package/dist/runtime/core/runtime-error-reporter.mjs +18 -0
  165. package/dist/runtime/core/runtime-error-reporter.mjs.map +1 -0
  166. package/dist/runtime/core/runtime.cjs +256 -0
  167. package/dist/runtime/core/runtime.cjs.map +1 -0
  168. package/dist/runtime/core/runtime.d.cts +481 -0
  169. package/dist/runtime/core/runtime.d.cts.map +1 -0
  170. package/dist/runtime/core/runtime.d.mts +481 -0
  171. package/dist/runtime/core/runtime.d.mts.map +1 -0
  172. package/dist/runtime/core/runtime.mjs +249 -0
  173. package/dist/runtime/core/runtime.mjs.map +1 -0
  174. package/dist/runtime/endpoints/auto-start-channels.cjs +46 -0
  175. package/dist/runtime/endpoints/auto-start-channels.cjs.map +1 -0
  176. package/dist/runtime/endpoints/auto-start-channels.mjs +45 -0
  177. package/dist/runtime/endpoints/auto-start-channels.mjs.map +1 -0
  178. package/dist/runtime/endpoints/node-fetch-handler.cjs +75 -0
  179. package/dist/runtime/endpoints/node-fetch-handler.cjs.map +1 -0
  180. package/dist/runtime/endpoints/node-fetch-handler.d.cts +11 -0
  181. package/dist/runtime/endpoints/node-fetch-handler.d.cts.map +1 -0
  182. package/dist/runtime/endpoints/node-fetch-handler.d.mts +11 -0
  183. package/dist/runtime/endpoints/node-fetch-handler.d.mts.map +1 -0
  184. package/dist/runtime/endpoints/node-fetch-handler.mjs +73 -0
  185. package/dist/runtime/endpoints/node-fetch-handler.mjs.map +1 -0
  186. package/dist/runtime/endpoints/node.cjs +16 -0
  187. package/dist/runtime/endpoints/node.cjs.map +1 -0
  188. package/dist/runtime/endpoints/node.d.cts +104 -0
  189. package/dist/runtime/endpoints/node.d.cts.map +1 -0
  190. package/dist/runtime/endpoints/node.d.mts +104 -0
  191. package/dist/runtime/endpoints/node.d.mts.map +1 -0
  192. package/dist/runtime/endpoints/node.mjs +16 -0
  193. package/dist/runtime/endpoints/node.mjs.map +1 -0
  194. package/dist/runtime/endpoints/single-route-helpers.cjs +130 -0
  195. package/dist/runtime/endpoints/single-route-helpers.cjs.map +1 -0
  196. package/dist/runtime/endpoints/single-route-helpers.mjs +125 -0
  197. package/dist/runtime/endpoints/single-route-helpers.mjs.map +1 -0
  198. package/dist/runtime/generative-ui/generative-ui-middleware.cjs +393 -0
  199. package/dist/runtime/generative-ui/generative-ui-middleware.cjs.map +1 -0
  200. package/dist/runtime/generative-ui/generative-ui-middleware.d.cts +20 -0
  201. package/dist/runtime/generative-ui/generative-ui-middleware.d.cts.map +1 -0
  202. package/dist/runtime/generative-ui/generative-ui-middleware.d.mts +20 -0
  203. package/dist/runtime/generative-ui/generative-ui-middleware.d.mts.map +1 -0
  204. package/dist/runtime/generative-ui/generative-ui-middleware.mjs +392 -0
  205. package/dist/runtime/generative-ui/generative-ui-middleware.mjs.map +1 -0
  206. package/dist/runtime/generative-ui/index.d.cts +2 -0
  207. package/dist/runtime/generative-ui/index.d.mts +2 -0
  208. package/dist/runtime/generative-ui/surface-writer.cjs +85 -0
  209. package/dist/runtime/generative-ui/surface-writer.cjs.map +1 -0
  210. package/dist/runtime/generative-ui/surface-writer.d.cts +32 -0
  211. package/dist/runtime/generative-ui/surface-writer.d.cts.map +1 -0
  212. package/dist/runtime/generative-ui/surface-writer.d.mts +32 -0
  213. package/dist/runtime/generative-ui/surface-writer.d.mts.map +1 -0
  214. package/dist/runtime/generative-ui/surface-writer.mjs +84 -0
  215. package/dist/runtime/generative-ui/surface-writer.mjs.map +1 -0
  216. package/dist/runtime/handlers/get-runtime-info.cjs +140 -0
  217. package/dist/runtime/handlers/get-runtime-info.cjs.map +1 -0
  218. package/dist/runtime/handlers/get-runtime-info.mjs +140 -0
  219. package/dist/runtime/handlers/get-runtime-info.mjs.map +1 -0
  220. package/dist/runtime/handlers/handle-connect.cjs +62 -0
  221. package/dist/runtime/handlers/handle-connect.cjs.map +1 -0
  222. package/dist/runtime/handlers/handle-connect.mjs +62 -0
  223. package/dist/runtime/handlers/handle-connect.mjs.map +1 -0
  224. package/dist/runtime/handlers/handle-debug-events.cjs +33 -0
  225. package/dist/runtime/handlers/handle-debug-events.cjs.map +1 -0
  226. package/dist/runtime/handlers/handle-debug-events.mjs +33 -0
  227. package/dist/runtime/handlers/handle-debug-events.mjs.map +1 -0
  228. package/dist/runtime/handlers/handle-inspector-learning.cjs +56 -0
  229. package/dist/runtime/handlers/handle-inspector-learning.cjs.map +1 -0
  230. package/dist/runtime/handlers/handle-inspector-learning.mjs +55 -0
  231. package/dist/runtime/handlers/handle-inspector-learning.mjs.map +1 -0
  232. package/dist/runtime/handlers/handle-inspector-metadata.cjs +36 -0
  233. package/dist/runtime/handlers/handle-inspector-metadata.cjs.map +1 -0
  234. package/dist/runtime/handlers/handle-inspector-metadata.mjs +35 -0
  235. package/dist/runtime/handlers/handle-inspector-metadata.mjs.map +1 -0
  236. package/dist/runtime/handlers/handle-run.cjs +111 -0
  237. package/dist/runtime/handlers/handle-run.cjs.map +1 -0
  238. package/dist/runtime/handlers/handle-run.mjs +110 -0
  239. package/dist/runtime/handlers/handle-run.mjs.map +1 -0
  240. package/dist/runtime/handlers/handle-stop.cjs +102 -0
  241. package/dist/runtime/handlers/handle-stop.cjs.map +1 -0
  242. package/dist/runtime/handlers/handle-stop.mjs +101 -0
  243. package/dist/runtime/handlers/handle-stop.mjs.map +1 -0
  244. package/dist/runtime/handlers/handle-suggest.cjs +83 -0
  245. package/dist/runtime/handlers/handle-suggest.cjs.map +1 -0
  246. package/dist/runtime/handlers/handle-suggest.mjs +82 -0
  247. package/dist/runtime/handlers/handle-suggest.mjs.map +1 -0
  248. package/dist/runtime/handlers/handle-trajectory-connect.cjs +40 -0
  249. package/dist/runtime/handlers/handle-trajectory-connect.cjs.map +1 -0
  250. package/dist/runtime/handlers/handle-trajectory-connect.mjs +39 -0
  251. package/dist/runtime/handlers/handle-trajectory-connect.mjs.map +1 -0
  252. package/dist/runtime/handlers/handle-transcribe.cjs +112 -0
  253. package/dist/runtime/handlers/handle-transcribe.cjs.map +1 -0
  254. package/dist/runtime/handlers/handle-transcribe.mjs +111 -0
  255. package/dist/runtime/handlers/handle-transcribe.mjs.map +1 -0
  256. package/dist/runtime/handlers/header-utils.cjs +185 -0
  257. package/dist/runtime/handlers/header-utils.cjs.map +1 -0
  258. package/dist/runtime/handlers/header-utils.d.cts +53 -0
  259. package/dist/runtime/handlers/header-utils.d.cts.map +1 -0
  260. package/dist/runtime/handlers/header-utils.d.mts +53 -0
  261. package/dist/runtime/handlers/header-utils.d.mts.map +1 -0
  262. package/dist/runtime/handlers/header-utils.mjs +183 -0
  263. package/dist/runtime/handlers/header-utils.mjs.map +1 -0
  264. package/dist/runtime/handlers/intelligence/annotate.cjs +83 -0
  265. package/dist/runtime/handlers/intelligence/annotate.cjs.map +1 -0
  266. package/dist/runtime/handlers/intelligence/annotate.mjs +82 -0
  267. package/dist/runtime/handlers/intelligence/annotate.mjs.map +1 -0
  268. package/dist/runtime/handlers/intelligence/connect.cjs +68 -0
  269. package/dist/runtime/handlers/intelligence/connect.cjs.map +1 -0
  270. package/dist/runtime/handlers/intelligence/connect.mjs +68 -0
  271. package/dist/runtime/handlers/intelligence/connect.mjs.map +1 -0
  272. package/dist/runtime/handlers/intelligence/memories.cjs +260 -0
  273. package/dist/runtime/handlers/intelligence/memories.cjs.map +1 -0
  274. package/dist/runtime/handlers/intelligence/memories.mjs +254 -0
  275. package/dist/runtime/handlers/intelligence/memories.mjs.map +1 -0
  276. package/dist/runtime/handlers/intelligence/run.cjs +283 -0
  277. package/dist/runtime/handlers/intelligence/run.cjs.map +1 -0
  278. package/dist/runtime/handlers/intelligence/run.mjs +282 -0
  279. package/dist/runtime/handlers/intelligence/run.mjs.map +1 -0
  280. package/dist/runtime/handlers/intelligence/thread-names.cjs +172 -0
  281. package/dist/runtime/handlers/intelligence/thread-names.cjs.map +1 -0
  282. package/dist/runtime/handlers/intelligence/thread-names.mjs +171 -0
  283. package/dist/runtime/handlers/intelligence/thread-names.mjs.map +1 -0
  284. package/dist/runtime/handlers/intelligence/threads.cjs +399 -0
  285. package/dist/runtime/handlers/intelligence/threads.cjs.map +1 -0
  286. package/dist/runtime/handlers/intelligence/threads.mjs +390 -0
  287. package/dist/runtime/handlers/intelligence/threads.mjs.map +1 -0
  288. package/dist/runtime/handlers/shared/agent-utils.cjs +267 -0
  289. package/dist/runtime/handlers/shared/agent-utils.cjs.map +1 -0
  290. package/dist/runtime/handlers/shared/agent-utils.mjs +262 -0
  291. package/dist/runtime/handlers/shared/agent-utils.mjs.map +1 -0
  292. package/dist/runtime/handlers/shared/cloud-telemetry.cjs +30 -0
  293. package/dist/runtime/handlers/shared/cloud-telemetry.cjs.map +1 -0
  294. package/dist/runtime/handlers/shared/cloud-telemetry.mjs +29 -0
  295. package/dist/runtime/handlers/shared/cloud-telemetry.mjs.map +1 -0
  296. package/dist/runtime/handlers/shared/describe-endpoint.cjs +25 -0
  297. package/dist/runtime/handlers/shared/describe-endpoint.cjs.map +1 -0
  298. package/dist/runtime/handlers/shared/describe-endpoint.mjs +24 -0
  299. package/dist/runtime/handlers/shared/describe-endpoint.mjs.map +1 -0
  300. package/dist/runtime/handlers/shared/intelligence-utils.cjs +24 -0
  301. package/dist/runtime/handlers/shared/intelligence-utils.cjs.map +1 -0
  302. package/dist/runtime/handlers/shared/intelligence-utils.mjs +23 -0
  303. package/dist/runtime/handlers/shared/intelligence-utils.mjs.map +1 -0
  304. package/dist/runtime/handlers/shared/json-response.cjs +14 -0
  305. package/dist/runtime/handlers/shared/json-response.cjs.map +1 -0
  306. package/dist/runtime/handlers/shared/json-response.mjs +12 -0
  307. package/dist/runtime/handlers/shared/json-response.mjs.map +1 -0
  308. package/dist/runtime/handlers/shared/mcp-apps-servers.cjs +22 -0
  309. package/dist/runtime/handlers/shared/mcp-apps-servers.cjs.map +1 -0
  310. package/dist/runtime/handlers/shared/mcp-apps-servers.mjs +22 -0
  311. package/dist/runtime/handlers/shared/mcp-apps-servers.mjs.map +1 -0
  312. package/dist/runtime/handlers/shared/memory-policy.cjs +78 -0
  313. package/dist/runtime/handlers/shared/memory-policy.cjs.map +1 -0
  314. package/dist/runtime/handlers/shared/memory-policy.mjs +77 -0
  315. package/dist/runtime/handlers/shared/memory-policy.mjs.map +1 -0
  316. package/dist/runtime/handlers/shared/platform-error.cjs +39 -0
  317. package/dist/runtime/handlers/shared/platform-error.cjs.map +1 -0
  318. package/dist/runtime/handlers/shared/platform-error.mjs +39 -0
  319. package/dist/runtime/handlers/shared/platform-error.mjs.map +1 -0
  320. package/dist/runtime/handlers/shared/resolve-intelligence-user.cjs +50 -0
  321. package/dist/runtime/handlers/shared/resolve-intelligence-user.cjs.map +1 -0
  322. package/dist/runtime/handlers/shared/resolve-intelligence-user.mjs +49 -0
  323. package/dist/runtime/handlers/shared/resolve-intelligence-user.mjs.map +1 -0
  324. package/dist/runtime/handlers/shared/sse-keep-alive.cjs +68 -0
  325. package/dist/runtime/handlers/shared/sse-keep-alive.cjs.map +1 -0
  326. package/dist/runtime/handlers/shared/sse-keep-alive.mjs +66 -0
  327. package/dist/runtime/handlers/shared/sse-keep-alive.mjs.map +1 -0
  328. package/dist/runtime/handlers/shared/sse-response.cjs +237 -0
  329. package/dist/runtime/handlers/shared/sse-response.cjs.map +1 -0
  330. package/dist/runtime/handlers/shared/sse-response.mjs +236 -0
  331. package/dist/runtime/handlers/shared/sse-response.mjs.map +1 -0
  332. package/dist/runtime/handlers/shared/thread-access.cjs +137 -0
  333. package/dist/runtime/handlers/shared/thread-access.cjs.map +1 -0
  334. package/dist/runtime/handlers/shared/thread-access.d.cts +28 -0
  335. package/dist/runtime/handlers/shared/thread-access.d.cts.map +1 -0
  336. package/dist/runtime/handlers/shared/thread-access.d.mts +28 -0
  337. package/dist/runtime/handlers/shared/thread-access.d.mts.map +1 -0
  338. package/dist/runtime/handlers/shared/thread-access.mjs +132 -0
  339. package/dist/runtime/handlers/shared/thread-access.mjs.map +1 -0
  340. package/dist/runtime/handlers/sse/connect.cjs +23 -0
  341. package/dist/runtime/handlers/sse/connect.cjs.map +1 -0
  342. package/dist/runtime/handlers/sse/connect.mjs +23 -0
  343. package/dist/runtime/handlers/sse/connect.mjs.map +1 -0
  344. package/dist/runtime/handlers/sse/run.cjs +44 -0
  345. package/dist/runtime/handlers/sse/run.cjs.map +1 -0
  346. package/dist/runtime/handlers/sse/run.mjs +44 -0
  347. package/dist/runtime/handlers/sse/run.mjs.map +1 -0
  348. package/dist/runtime/index.d.cts +29 -0
  349. package/dist/runtime/index.d.cts.map +1 -0
  350. package/dist/runtime/index.d.mts +29 -0
  351. package/dist/runtime/index.d.mts.map +1 -0
  352. package/dist/runtime/intelligence-platform/client.cjs +1338 -0
  353. package/dist/runtime/intelligence-platform/client.cjs.map +1 -0
  354. package/dist/runtime/intelligence-platform/client.d.cts +824 -0
  355. package/dist/runtime/intelligence-platform/client.d.cts.map +1 -0
  356. package/dist/runtime/intelligence-platform/client.d.mts +824 -0
  357. package/dist/runtime/intelligence-platform/client.d.mts.map +1 -0
  358. package/dist/runtime/intelligence-platform/client.mjs +1334 -0
  359. package/dist/runtime/intelligence-platform/client.mjs.map +1 -0
  360. package/dist/runtime/intelligence-platform/experimental.d.cts +26 -0
  361. package/dist/runtime/intelligence-platform/experimental.d.cts.map +1 -0
  362. package/dist/runtime/intelligence-platform/experimental.d.mts +26 -0
  363. package/dist/runtime/intelligence-platform/experimental.d.mts.map +1 -0
  364. package/dist/runtime/intelligence-platform/index.d.cts +3 -0
  365. package/dist/runtime/intelligence-platform/index.d.mts +3 -0
  366. package/dist/runtime/intelligence-platform/learned-skills.cjs +95 -0
  367. package/dist/runtime/intelligence-platform/learned-skills.cjs.map +1 -0
  368. package/dist/runtime/intelligence-platform/learned-skills.d.cts +43 -0
  369. package/dist/runtime/intelligence-platform/learned-skills.d.cts.map +1 -0
  370. package/dist/runtime/intelligence-platform/learned-skills.d.mts +43 -0
  371. package/dist/runtime/intelligence-platform/learned-skills.d.mts.map +1 -0
  372. package/dist/runtime/intelligence-platform/learned-skills.mjs +92 -0
  373. package/dist/runtime/intelligence-platform/learned-skills.mjs.map +1 -0
  374. package/dist/runtime/intelligence-platform/learning-management.cjs +203 -0
  375. package/dist/runtime/intelligence-platform/learning-management.cjs.map +1 -0
  376. package/dist/runtime/intelligence-platform/learning-management.d.cts +111 -0
  377. package/dist/runtime/intelligence-platform/learning-management.d.cts.map +1 -0
  378. package/dist/runtime/intelligence-platform/learning-management.d.mts +111 -0
  379. package/dist/runtime/intelligence-platform/learning-management.d.mts.map +1 -0
  380. package/dist/runtime/intelligence-platform/learning-management.mjs +193 -0
  381. package/dist/runtime/intelligence-platform/learning-management.mjs.map +1 -0
  382. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs +131 -0
  383. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs.map +1 -0
  384. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts +10 -0
  385. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts.map +1 -0
  386. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts +10 -0
  387. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts.map +1 -0
  388. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs +127 -0
  389. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs.map +1 -0
  390. package/dist/runtime/intelligence-platform/skill-registry/config.cjs +65 -0
  391. package/dist/runtime/intelligence-platform/skill-registry/config.cjs.map +1 -0
  392. package/dist/runtime/intelligence-platform/skill-registry/config.d.cts +47 -0
  393. package/dist/runtime/intelligence-platform/skill-registry/config.d.cts.map +1 -0
  394. package/dist/runtime/intelligence-platform/skill-registry/config.d.mts +47 -0
  395. package/dist/runtime/intelligence-platform/skill-registry/config.d.mts.map +1 -0
  396. package/dist/runtime/intelligence-platform/skill-registry/config.mjs +65 -0
  397. package/dist/runtime/intelligence-platform/skill-registry/config.mjs.map +1 -0
  398. package/dist/runtime/intelligence-platform/skill-registry/errors.cjs +10 -0
  399. package/dist/runtime/intelligence-platform/skill-registry/errors.cjs.map +1 -0
  400. package/dist/runtime/intelligence-platform/skill-registry/errors.d.cts +7 -0
  401. package/dist/runtime/intelligence-platform/skill-registry/errors.d.cts.map +1 -0
  402. package/dist/runtime/intelligence-platform/skill-registry/errors.d.mts +7 -0
  403. package/dist/runtime/intelligence-platform/skill-registry/errors.d.mts.map +1 -0
  404. package/dist/runtime/intelligence-platform/skill-registry/errors.mjs +10 -0
  405. package/dist/runtime/intelligence-platform/skill-registry/errors.mjs.map +1 -0
  406. package/dist/runtime/intelligence-platform/skill-registry/index.d.cts +7 -0
  407. package/dist/runtime/intelligence-platform/skill-registry/index.d.mts +7 -0
  408. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs +247 -0
  409. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs.map +1 -0
  410. package/dist/runtime/intelligence-platform/skill-registry/registry.d.cts +36 -0
  411. package/dist/runtime/intelligence-platform/skill-registry/registry.d.cts.map +1 -0
  412. package/dist/runtime/intelligence-platform/skill-registry/registry.d.mts +36 -0
  413. package/dist/runtime/intelligence-platform/skill-registry/registry.d.mts.map +1 -0
  414. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs +246 -0
  415. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs.map +1 -0
  416. package/dist/runtime/intelligence-platform/skill-registry/skill-content.cjs +41 -0
  417. package/dist/runtime/intelligence-platform/skill-registry/skill-content.cjs.map +1 -0
  418. package/dist/runtime/intelligence-platform/skill-registry/skill-content.d.cts +12 -0
  419. package/dist/runtime/intelligence-platform/skill-registry/skill-content.d.cts.map +1 -0
  420. package/dist/runtime/intelligence-platform/skill-registry/skill-content.d.mts +12 -0
  421. package/dist/runtime/intelligence-platform/skill-registry/skill-content.d.mts.map +1 -0
  422. package/dist/runtime/intelligence-platform/skill-registry/skill-content.mjs +38 -0
  423. package/dist/runtime/intelligence-platform/skill-registry/skill-content.mjs.map +1 -0
  424. package/dist/runtime/intelligence-platform/skill-registry/snapshot.cjs +92 -0
  425. package/dist/runtime/intelligence-platform/skill-registry/snapshot.cjs.map +1 -0
  426. package/dist/runtime/intelligence-platform/skill-registry/snapshot.d.cts +27 -0
  427. package/dist/runtime/intelligence-platform/skill-registry/snapshot.d.cts.map +1 -0
  428. package/dist/runtime/intelligence-platform/skill-registry/snapshot.d.mts +27 -0
  429. package/dist/runtime/intelligence-platform/skill-registry/snapshot.d.mts.map +1 -0
  430. package/dist/runtime/intelligence-platform/skill-registry/snapshot.mjs +91 -0
  431. package/dist/runtime/intelligence-platform/skill-registry/snapshot.mjs.map +1 -0
  432. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs +142 -0
  433. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs.map +1 -0
  434. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs +141 -0
  435. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs.map +1 -0
  436. package/dist/runtime/intelligence-platform/trajectories.cjs +95 -0
  437. package/dist/runtime/intelligence-platform/trajectories.cjs.map +1 -0
  438. package/dist/runtime/intelligence-platform/trajectories.d.cts +11 -0
  439. package/dist/runtime/intelligence-platform/trajectories.d.cts.map +1 -0
  440. package/dist/runtime/intelligence-platform/trajectories.d.mts +11 -0
  441. package/dist/runtime/intelligence-platform/trajectories.d.mts.map +1 -0
  442. package/dist/runtime/intelligence-platform/trajectories.mjs +91 -0
  443. package/dist/runtime/intelligence-platform/trajectories.mjs.map +1 -0
  444. package/dist/runtime/node.d.cts +2 -0
  445. package/dist/runtime/node.d.mts +2 -0
  446. package/dist/runtime/runner/agent-runner.cjs +82 -0
  447. package/dist/runtime/runner/agent-runner.cjs.map +1 -0
  448. package/dist/runtime/runner/agent-runner.d.cts +151 -0
  449. package/dist/runtime/runner/agent-runner.d.cts.map +1 -0
  450. package/dist/runtime/runner/agent-runner.d.mts +151 -0
  451. package/dist/runtime/runner/agent-runner.d.mts.map +1 -0
  452. package/dist/runtime/runner/agent-runner.mjs +73 -0
  453. package/dist/runtime/runner/agent-runner.mjs.map +1 -0
  454. package/dist/runtime/runner/in-memory.cjs +741 -0
  455. package/dist/runtime/runner/in-memory.cjs.map +1 -0
  456. package/dist/runtime/runner/in-memory.d.cts +427 -0
  457. package/dist/runtime/runner/in-memory.d.cts.map +1 -0
  458. package/dist/runtime/runner/in-memory.d.mts +427 -0
  459. package/dist/runtime/runner/in-memory.d.mts.map +1 -0
  460. package/dist/runtime/runner/in-memory.mjs +734 -0
  461. package/dist/runtime/runner/in-memory.mjs.map +1 -0
  462. package/dist/runtime/runner/index.d.cts +5 -0
  463. package/dist/runtime/runner/index.d.mts +5 -0
  464. package/dist/runtime/runner/index.mjs +6 -0
  465. package/dist/runtime/runner/intelligence.cjs +617 -0
  466. package/dist/runtime/runner/intelligence.cjs.map +1 -0
  467. package/dist/runtime/runner/intelligence.d.cts +104 -0
  468. package/dist/runtime/runner/intelligence.d.cts.map +1 -0
  469. package/dist/runtime/runner/intelligence.d.mts +104 -0
  470. package/dist/runtime/runner/intelligence.d.mts.map +1 -0
  471. package/dist/runtime/runner/intelligence.mjs +616 -0
  472. package/dist/runtime/runner/intelligence.mjs.map +1 -0
  473. package/dist/runtime/telemetry/disclosure.cjs +25 -0
  474. package/dist/runtime/telemetry/disclosure.cjs.map +1 -0
  475. package/dist/runtime/telemetry/disclosure.mjs +24 -0
  476. package/dist/runtime/telemetry/disclosure.mjs.map +1 -0
  477. package/dist/runtime/telemetry/events.d.cts +66 -0
  478. package/dist/runtime/telemetry/events.d.cts.map +1 -0
  479. package/dist/runtime/telemetry/events.d.mts +66 -0
  480. package/dist/runtime/telemetry/events.d.mts.map +1 -0
  481. package/dist/runtime/telemetry/instance-created.cjs +34 -0
  482. package/dist/runtime/telemetry/instance-created.cjs.map +1 -0
  483. package/dist/runtime/telemetry/instance-created.mjs +34 -0
  484. package/dist/runtime/telemetry/instance-created.mjs.map +1 -0
  485. package/dist/runtime/telemetry/telemetry-client.cjs +108 -0
  486. package/dist/runtime/telemetry/telemetry-client.cjs.map +1 -0
  487. package/dist/runtime/telemetry/telemetry-client.d.cts +10 -0
  488. package/dist/runtime/telemetry/telemetry-client.d.cts.map +1 -0
  489. package/dist/runtime/telemetry/telemetry-client.d.mts +10 -0
  490. package/dist/runtime/telemetry/telemetry-client.d.mts.map +1 -0
  491. package/dist/runtime/telemetry/telemetry-client.mjs +107 -0
  492. package/dist/runtime/telemetry/telemetry-client.mjs.map +1 -0
  493. package/dist/runtime/telemetry/telemetry-identity.cjs +12 -0
  494. package/dist/runtime/telemetry/telemetry-identity.cjs.map +1 -0
  495. package/dist/runtime/telemetry/telemetry-identity.mjs +11 -0
  496. package/dist/runtime/telemetry/telemetry-identity.mjs.map +1 -0
  497. package/dist/runtime/transcription-service/transcription-service.cjs +7 -0
  498. package/dist/runtime/transcription-service/transcription-service.cjs.map +1 -0
  499. package/dist/runtime/transcription-service/transcription-service.d.cts +14 -0
  500. package/dist/runtime/transcription-service/transcription-service.d.cts.map +1 -0
  501. package/dist/runtime/transcription-service/transcription-service.d.mts +14 -0
  502. package/dist/runtime/transcription-service/transcription-service.d.mts.map +1 -0
  503. package/dist/runtime/transcription-service/transcription-service.mjs +6 -0
  504. package/dist/runtime/transcription-service/transcription-service.mjs.map +1 -0
  505. package/package.json +104 -105
  506. package/.eslintrc.js +0 -7
  507. package/CHANGELOG.md +0 -2920
  508. package/__snapshots__/schema/schema.graphql +0 -371
  509. package/dist/index.d.ts +0 -1494
  510. package/dist/index.js +0 -5641
  511. package/dist/index.js.map +0 -1
  512. package/dist/index.mjs.map +0 -1
  513. package/dist/langgraph.d.ts +0 -284
  514. package/dist/langgraph.js +0 -211
  515. package/dist/langgraph.js.map +0 -1
  516. package/dist/langgraph.mjs +0 -206
  517. package/dist/langgraph.mjs.map +0 -1
  518. package/dist/v2/index.d.ts +0 -2
  519. package/dist/v2/index.js +0 -22
  520. package/dist/v2/index.js.map +0 -1
  521. package/dist/v2/index.mjs +0 -5
  522. package/dist/v2/index.mjs.map +0 -1
  523. package/jest.config.js +0 -10
  524. package/scripts/generate-gql-schema.ts +0 -13
  525. package/src/agents/langgraph/event-source.ts +0 -329
  526. package/src/agents/langgraph/events.ts +0 -377
  527. package/src/graphql/inputs/action.input.ts +0 -16
  528. package/src/graphql/inputs/agent-session.input.ts +0 -13
  529. package/src/graphql/inputs/agent-state.input.ts +0 -13
  530. package/src/graphql/inputs/cloud-guardrails.input.ts +0 -16
  531. package/src/graphql/inputs/cloud.input.ts +0 -8
  532. package/src/graphql/inputs/context-property.input.ts +0 -10
  533. package/src/graphql/inputs/copilot-context.input.ts +0 -10
  534. package/src/graphql/inputs/custom-property.input.ts +0 -15
  535. package/src/graphql/inputs/extensions.input.ts +0 -21
  536. package/src/graphql/inputs/forwarded-parameters.input.ts +0 -22
  537. package/src/graphql/inputs/frontend.input.ts +0 -14
  538. package/src/graphql/inputs/generate-copilot-response.input.ts +0 -59
  539. package/src/graphql/inputs/load-agent-state.input.ts +0 -10
  540. package/src/graphql/inputs/message.input.ts +0 -110
  541. package/src/graphql/inputs/meta-event.input.ts +0 -18
  542. package/src/graphql/message-conversion/agui-to-gql.test.ts +0 -1263
  543. package/src/graphql/message-conversion/agui-to-gql.ts +0 -333
  544. package/src/graphql/message-conversion/gql-to-agui.test.ts +0 -1580
  545. package/src/graphql/message-conversion/gql-to-agui.ts +0 -278
  546. package/src/graphql/message-conversion/index.ts +0 -2
  547. package/src/graphql/message-conversion/roundtrip-conversion.test.ts +0 -526
  548. package/src/graphql/resolvers/copilot.resolver.ts +0 -708
  549. package/src/graphql/resolvers/state.resolver.ts +0 -27
  550. package/src/graphql/types/agents-response.type.ts +0 -19
  551. package/src/graphql/types/base/index.ts +0 -10
  552. package/src/graphql/types/converted/index.ts +0 -176
  553. package/src/graphql/types/copilot-response.type.ts +0 -138
  554. package/src/graphql/types/enums.ts +0 -38
  555. package/src/graphql/types/extensions-response.type.ts +0 -23
  556. package/src/graphql/types/guardrails-result.type.ts +0 -20
  557. package/src/graphql/types/load-agent-state-response.type.ts +0 -17
  558. package/src/graphql/types/message-status.type.ts +0 -42
  559. package/src/graphql/types/meta-events.type.ts +0 -71
  560. package/src/graphql/types/response-status.type.ts +0 -66
  561. package/src/index.ts +0 -4
  562. package/src/langgraph.ts +0 -1
  563. package/src/lib/cloud/index.ts +0 -4
  564. package/src/lib/error-messages.ts +0 -200
  565. package/src/lib/index.ts +0 -52
  566. package/src/lib/integrations/index.ts +0 -6
  567. package/src/lib/integrations/nest/index.ts +0 -14
  568. package/src/lib/integrations/nextjs/app-router.ts +0 -38
  569. package/src/lib/integrations/nextjs/pages-router.ts +0 -39
  570. package/src/lib/integrations/node-express/index.ts +0 -14
  571. package/src/lib/integrations/node-http/index.ts +0 -143
  572. package/src/lib/integrations/node-http/request-handler.ts +0 -111
  573. package/src/lib/integrations/shared.ts +0 -161
  574. package/src/lib/logger.ts +0 -28
  575. package/src/lib/observability.ts +0 -160
  576. package/src/lib/runtime/__tests__/copilot-runtime-error.test.ts +0 -169
  577. package/src/lib/runtime/__tests__/mcp-tools-utils.test.ts +0 -464
  578. package/src/lib/runtime/agent-integrations/langgraph/agent.ts +0 -209
  579. package/src/lib/runtime/agent-integrations/langgraph/consts.ts +0 -34
  580. package/src/lib/runtime/agent-integrations/langgraph/index.ts +0 -2
  581. package/src/lib/runtime/copilot-runtime.ts +0 -710
  582. package/src/lib/runtime/mcp-tools-utils.ts +0 -254
  583. package/src/lib/runtime/retry-utils.ts +0 -96
  584. package/src/lib/runtime/telemetry-agent-runner.ts +0 -139
  585. package/src/lib/runtime/types.ts +0 -49
  586. package/src/lib/runtime/utils.ts +0 -87
  587. package/src/lib/streaming.ts +0 -202
  588. package/src/lib/telemetry-client.ts +0 -64
  589. package/src/service-adapters/anthropic/anthropic-adapter.ts +0 -452
  590. package/src/service-adapters/anthropic/utils.ts +0 -152
  591. package/src/service-adapters/bedrock/bedrock-adapter.ts +0 -73
  592. package/src/service-adapters/conversion.ts +0 -67
  593. package/src/service-adapters/empty/empty-adapter.ts +0 -38
  594. package/src/service-adapters/events.ts +0 -294
  595. package/src/service-adapters/experimental/ollama/ollama-adapter.ts +0 -84
  596. package/src/service-adapters/google/google-genai-adapter.test.ts +0 -104
  597. package/src/service-adapters/google/google-genai-adapter.ts +0 -88
  598. package/src/service-adapters/groq/groq-adapter.ts +0 -203
  599. package/src/service-adapters/index.ts +0 -18
  600. package/src/service-adapters/langchain/langchain-adapter.ts +0 -111
  601. package/src/service-adapters/langchain/langserve.ts +0 -88
  602. package/src/service-adapters/langchain/types.ts +0 -14
  603. package/src/service-adapters/langchain/utils.ts +0 -313
  604. package/src/service-adapters/openai/openai-adapter.ts +0 -283
  605. package/src/service-adapters/openai/openai-assistant-adapter.ts +0 -344
  606. package/src/service-adapters/openai/utils.ts +0 -199
  607. package/src/service-adapters/service-adapter.ts +0 -41
  608. package/src/service-adapters/shared/error-utils.ts +0 -61
  609. package/src/service-adapters/shared/index.ts +0 -1
  610. package/src/service-adapters/unify/unify-adapter.ts +0 -151
  611. package/src/utils/failed-response-status-reasons.ts +0 -70
  612. package/src/utils/index.ts +0 -1
  613. package/src/v2/index.ts +0 -3
  614. package/tests/global.d.ts +0 -13
  615. package/tests/service-adapters/anthropic/allowlist-approach.test.ts +0 -226
  616. package/tests/service-adapters/anthropic/anthropic-adapter.test.ts +0 -389
  617. package/tests/service-adapters/openai/allowlist-approach.test.ts +0 -238
  618. package/tests/service-adapters/openai/openai-adapter.test.ts +0 -301
  619. package/tests/setup.jest.ts +0 -21
  620. package/tests/tsconfig.json +0 -10
  621. package/tsconfig.json +0 -13
  622. package/tsup.config.ts +0 -20
  623. package/typedoc.json +0 -4
@@ -0,0 +1,467 @@
1
+ import { CreateSafeUrlDownloadOptions, SafeUrlDownloadOptions, createSafeUrlDownload } from "./url-download.cjs";
2
+ import { BuiltInAgentLearnedSkills, BuiltInAgentLearnedSkillsOptions } from "./learned-skills.cjs";
3
+ import { convertAISDKStream } from "./converters/aisdk.cjs";
4
+ import { TanStackChatMessage, TanStackInputResult, convertInputToTanStackAI, convertTanStackStream } from "./converters/tanstack.cjs";
5
+ import { InferSchemaOutput, ModelHostClass, StandardSchemaV1 } from "@copilotkit/shared";
6
+ import { AbstractAgent, BaseEvent, Interrupt, Message, ResumeEntry, RunAgentInput } from "@ag-ui/client";
7
+ import { Observable } from "rxjs";
8
+ import { z } from "zod";
9
+ import { AgentCapabilities } from "@ag-ui/core";
10
+ import { Experimental_DownloadFunction, LanguageModel, ModelMessage, ToolChoice, ToolSet } from "ai";
11
+ import { StreamableHTTPClientTransportOptions } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
12
+
13
+ //#region src/agent/index.d.ts
14
+ /**
15
+ * Properties that can be overridden by forwardedProps
16
+ * These match the exact parameter names in streamText
17
+ */
18
+ type OverridableProperty = "model" | "toolChoice" | "maxOutputTokens" | "temperature" | "topP" | "topK" | "presencePenalty" | "frequencyPenalty" | "stopSequences" | "seed" | "maxRetries" | "prompt" | "providerOptions";
19
+ /**
20
+ * Model identifiers for BuiltInAgent. The named entries are editor
21
+ * suggestions, not an allowlist: any provider model id is sent through
22
+ * unchanged.
23
+ */
24
+ type BuiltInAgentModel = "openai/gpt-5.5" | "openai/gpt-5.4" | "openai/gpt-5.4-mini" | "openai/gpt-5" | "openai/gpt-5-mini" | "openai/gpt-4.1" | "openai/gpt-4.1-mini" | "openai/gpt-4.1-nano" | "openai/gpt-4o" | "openai/gpt-4o-mini" | "openai/o3" | "openai/o3-mini" | "openai/o4-mini" | "anthropic/claude-sonnet-4-6" | "anthropic/claude-sonnet-4-5" | "anthropic/claude-opus-4-8" | "anthropic/claude-haiku-4-5" | "google/gemini-3.8-flash" | "google/gemini-3.5-flash" | "google/gemini-3.5-flash-lite" | "minimax/MiniMax-M3" | "minimax/MiniMax-M2.7" | (string & {});
25
+ /**
26
+ * Model specifier - can be a string like "openai/gpt-4o" or a LanguageModel instance
27
+ */
28
+ type ModelSpecifier = string | LanguageModel;
29
+ /**
30
+ * MCP Client configuration for HTTP transport
31
+ */
32
+ interface MCPClientConfigHTTP {
33
+ /** Type of MCP client */
34
+ type: "http";
35
+ /**
36
+ * Optional name for this server. When a tool name collides with another
37
+ * MCP server's tool or with an app tool, the MCP tool is exposed as
38
+ * `<name>_<tool>`. Without a name, the prefix is `mcp<N>`, where N is the
39
+ * server's position among `mcpClients` and then `mcpServers`, from 1.
40
+ * Give each server a different name: if a prefixed name is already in use,
41
+ * a number is added (`<name>_<tool>_2`).
42
+ */
43
+ name?: string;
44
+ /** URL of the MCP server */
45
+ url: string;
46
+ /**
47
+ * Optional transport options for the underlying
48
+ * `StreamableHTTPClientTransport`. The SDK's documented extension point
49
+ * for per-request customization is `options.fetch` — pass a wrapped fetch
50
+ * here if you need static + dynamic headers on outbound MCP requests.
51
+ */
52
+ options?: StreamableHTTPClientTransportOptions;
53
+ }
54
+ /**
55
+ * MCP Client configuration for SSE transport
56
+ */
57
+ interface MCPClientConfigSSE {
58
+ /** Type of MCP client */
59
+ type: "sse";
60
+ /**
61
+ * Optional name for this server. When a tool name collides with another
62
+ * MCP server's tool or with an app tool, the MCP tool is exposed as
63
+ * `<name>_<tool>`. Without a name, the prefix is `mcp<N>`, where N is the
64
+ * server's position among `mcpClients` and then `mcpServers`, from 1.
65
+ * Give each server a different name: if a prefixed name is already in use,
66
+ * a number is added (`<name>_<tool>_2`).
67
+ */
68
+ name?: string;
69
+ /** URL of the MCP server */
70
+ url: string;
71
+ /** Optional HTTP headers (e.g., for authentication) */
72
+ headers?: Record<string, string>;
73
+ }
74
+ /**
75
+ * MCP Client configuration
76
+ */
77
+ type MCPClientConfig = MCPClientConfigHTTP | MCPClientConfigSSE;
78
+ /**
79
+ * A user-managed MCP client that provides tools to the agent.
80
+ * The user is responsible for creating, configuring, and closing the client.
81
+ * Compatible with the return type of @ai-sdk/mcp's createMCPClient().
82
+ *
83
+ * Unlike mcpServers, the agent does NOT create or close these clients.
84
+ * This allows persistent connections, custom auth, and tool caching.
85
+ */
86
+ interface MCPClientProvider {
87
+ /** Return tools to be merged into the agent's tool set. */
88
+ tools(): Promise<ToolSet>;
89
+ }
90
+ declare function resolveModel(spec: ModelSpecifier, apiKey?: string): LanguageModel;
91
+ /**
92
+ * Which vendor a model specifier will actually reach, as a closed vocabulary.
93
+ *
94
+ * `resolveModel` above is the only place this runtime builds a provider, so it
95
+ * is the only place that knows the endpoint. Once built, the endpoint is gone:
96
+ * an AI SDK model's `provider` names only the wire API (`"openai.responses"`
97
+ * on OpenAI and Azure, `"openai.chat"` on any other host), so it cannot tell
98
+ * OpenRouter from a laptop, and its base URL survives
99
+ * only inside a closure that the public `LanguageModelV3` type does not
100
+ * expose. Azure's own migration guide tells customers to use that same OpenAI
101
+ * client, so the case we are blindest to is the common one.
102
+ *
103
+ * A caller who hands us an already-built LanguageModel gets `unknown`. Nobody
104
+ * can recover the host from it, and saying so is more useful than guessing
105
+ * `openai` from a provider label that means only "speaks the OpenAI wire".
106
+ *
107
+ * The branches below mirror `resolveModel`'s switch and must change with it.
108
+ * `model-host-class.test.ts` walks every provider that switch accepts and
109
+ * fails if one lands here as `unknown`.
110
+ */
111
+ declare function classifyModelSpec(spec: ModelSpecifier): ModelHostClass;
112
+ /**
113
+ * Thrown by `AgentFactoryContext.interrupt()` on a fresh (non-resume) run to
114
+ * pause the factory. Caught in `runFactory` and translated into a RUN_FINISHED
115
+ * event carrying `outcome:{type:"interrupt",interrupts}`. Not a real error.
116
+ */
117
+ declare class InterruptSignal extends Error {
118
+ readonly interrupts: Interrupt[];
119
+ constructor(interrupts: Interrupt[]);
120
+ }
121
+ /**
122
+ * Tool definition for BuiltInAgent
123
+ */
124
+ interface ToolDefinition<TParameters extends StandardSchemaV1 = StandardSchemaV1> {
125
+ name: string;
126
+ description: string;
127
+ parameters: TParameters;
128
+ /**
129
+ * Server-side executor. Optional ONLY for interrupt tools (`interrupt:true`),
130
+ * which pause the run instead of executing.
131
+ */
132
+ execute?: (args: InferSchemaOutput<TParameters>) => Promise<unknown>;
133
+ /**
134
+ * When true, calling this tool pauses the run and emits a standard AG-UI
135
+ * interrupt (RUN_FINISHED outcome:interrupt) keyed by the tool call's id.
136
+ * The human response (resume payload) is injected as this tool call's result
137
+ * on the resume run. Interrupt tools must NOT define `execute`. The AI SDK
138
+ * pauses when a tool call has no result, even with a multi-step limit.
139
+ */
140
+ interrupt?: boolean;
141
+ /** Optional categorical reason surfaced on the Interrupt (default: "tool_call"). */
142
+ interruptReason?: string;
143
+ /** Optional human-readable prompt surfaced on the Interrupt. */
144
+ interruptMessage?: string;
145
+ }
146
+ /**
147
+ * Define a tool for use with BuiltInAgent
148
+ * @param name - The name of the tool
149
+ * @param description - Description of what the tool does
150
+ * @param parameters - Schema for the tool's input parameters (any Standard Schema V1 compatible library: Zod, Valibot, ArkType, etc.)
151
+ * @param execute - Function to execute the tool server-side
152
+ * @returns Tool definition
153
+ */
154
+ declare function defineTool<TParameters extends StandardSchemaV1>(config: {
155
+ name: string;
156
+ description: string;
157
+ parameters: TParameters;
158
+ execute?: (args: InferSchemaOutput<TParameters>) => Promise<unknown>;
159
+ interrupt?: boolean;
160
+ interruptReason?: string;
161
+ interruptMessage?: string;
162
+ }): ToolDefinition<TParameters>;
163
+ /**
164
+ * Options for converting AG-UI messages to Vercel AI SDK format
165
+ */
166
+ interface MessageConversionOptions {
167
+ forwardSystemMessages?: boolean;
168
+ forwardDeveloperMessages?: boolean;
169
+ }
170
+ /**
171
+ * Converts AG-UI messages to Vercel AI SDK ModelMessage format
172
+ */
173
+ declare function convertMessagesToVercelAISDKMessages(messages: Message[], options?: MessageConversionOptions): ModelMessage[];
174
+ /**
175
+ * JSON Schema type definition
176
+ */
177
+ interface JsonSchema {
178
+ type?: "object" | "string" | "number" | "integer" | "boolean" | "array" | "null";
179
+ description?: string;
180
+ properties?: Record<string, JsonSchema>;
181
+ required?: string[];
182
+ items?: JsonSchema;
183
+ enum?: string[];
184
+ anyOf?: JsonSchema[];
185
+ oneOf?: JsonSchema[];
186
+ }
187
+ /**
188
+ * Converts JSON Schema to Zod schema
189
+ */
190
+ declare function convertJsonSchemaToZodSchema(jsonSchema: JsonSchema, required: boolean): z.ZodSchema;
191
+ /** Preserve AG-UI tool schemas when passing them to the model provider. */
192
+ declare function convertToolsToVercelAITools(tools: RunAgentInput["tools"]): ToolSet;
193
+ /**
194
+ * Converts ToolDefinition array to Vercel AI SDK ToolSet.
195
+ *
196
+ * For Zod schemas, passes them directly to the AI SDK (Zod satisfies FlexibleSchema).
197
+ * For non-Zod schemas, converts to JSON Schema via schemaToJsonSchema() and wraps
198
+ * with the AI SDK's jsonSchema() helper.
199
+ */
200
+ declare function convertToolDefinitionsToVercelAITools(tools: ToolDefinition[]): ToolSet;
201
+ /**
202
+ * Context passed to the user-supplied factory function in factory mode.
203
+ */
204
+ interface AgentFactoryContext {
205
+ /** Verified catalog and AI SDK tools for this run; empty when disabled or no skills exist. */
206
+ learnedSkills: BuiltInAgentLearnedSkills;
207
+ input: RunAgentInput;
208
+ /**
209
+ * Prefer `abortSignal` for most use cases (AI SDK, fetch, custom backends).
210
+ * Provided for backends like TanStack AI that require the full AbortController.
211
+ * Do NOT call `.abort()` on this controller — use `abortRun()` on the agent instead.
212
+ */
213
+ abortController: AbortController;
214
+ abortSignal: AbortSignal;
215
+ /**
216
+ * Pause the run for human input (AG-UI standard interrupt). On a fresh run
217
+ * this throws an InterruptSignal (caught by the runtime) and the run finishes
218
+ * with `outcome:{type:"interrupt",interrupts}`. On the resume run (when
219
+ * `input.resume` covers these interrupts) it returns the matching ResumeEntry
220
+ * responses so the factory can continue. Each `interrupts[i].id` is matched to
221
+ * `input.resume[].interruptId`.
222
+ */
223
+ interrupt: (interrupts: Interrupt[]) => Promise<ResumeEntry[]>;
224
+ }
225
+ /** Public name that avoids the runtime's request-scoped AgentFactoryContext. */
226
+ type BuiltInAgentFactoryContext = AgentFactoryContext;
227
+ /**
228
+ * Factory config for AI SDK backend.
229
+ * The factory must return an object with a `fullStream` async iterable
230
+ * (compatible with the result of `streamText()` — only `fullStream` is consumed).
231
+ *
232
+ * You own the `streamText()` call, so you also own its URL downloads. Pass
233
+ * `experimental_download: createSafeUrlDownload({ signal: ctx.abortSignal })`
234
+ * (imported from `@copilotkit/runtime`) to keep the server from fetching
235
+ * internal addresses named in request attachments, and to stop the downloads
236
+ * when the run is aborted. BuiltInAgent's `urlDownload` setting does not apply
237
+ * here: setting it in factory mode throws when the agent is constructed.
238
+ */
239
+ interface BuiltInAgentAISDKFactoryConfig {
240
+ /** Opt in to automatic snapshot acquisition before each run, including resumes. */
241
+ learnedSkills?: BuiltInAgentLearnedSkillsOptions;
242
+ type: "aisdk";
243
+ factory: (ctx: AgentFactoryContext) => {
244
+ fullStream: AsyncIterable<unknown>;
245
+ } | Promise<{
246
+ fullStream: AsyncIterable<unknown>;
247
+ }>;
248
+ }
249
+ /**
250
+ * Factory config for TanStack AI backend.
251
+ * The factory must return an async iterable of TanStack AI stream chunks.
252
+ */
253
+ interface BuiltInAgentTanStackFactoryConfig {
254
+ /** Opt in to automatic snapshot acquisition before each run, including resumes. */
255
+ learnedSkills?: BuiltInAgentLearnedSkillsOptions;
256
+ type: "tanstack";
257
+ factory: (ctx: AgentFactoryContext) => AsyncIterable<unknown> | Promise<AsyncIterable<unknown>>;
258
+ }
259
+ /**
260
+ * Factory config for a custom backend that directly yields AG-UI events.
261
+ */
262
+ interface BuiltInAgentCustomFactoryConfig {
263
+ /** Opt in to automatic snapshot acquisition before each run, including resumes. */
264
+ learnedSkills?: BuiltInAgentLearnedSkillsOptions;
265
+ type: "custom";
266
+ factory: (ctx: AgentFactoryContext) => AsyncIterable<BaseEvent> | Promise<AsyncIterable<BaseEvent>>;
267
+ }
268
+ /**
269
+ * Union of all factory-mode configurations.
270
+ */
271
+ type BuiltInAgentFactoryConfig = BuiltInAgentAISDKFactoryConfig | BuiltInAgentTanStackFactoryConfig | BuiltInAgentCustomFactoryConfig;
272
+ /**
273
+ * Classic config — BuiltInAgent handles streamText, tools, MCP, state tools, prompt building.
274
+ */
275
+ interface BuiltInAgentClassicConfig {
276
+ /** Opt in to automatic snapshot acquisition before each run, including resumes. */
277
+ learnedSkills?: BuiltInAgentLearnedSkillsOptions;
278
+ /**
279
+ * The model to use
280
+ */
281
+ model: BuiltInAgentModel | LanguageModel;
282
+ /**
283
+ * API key for the model provider (OpenAI, Anthropic, Google)
284
+ * If not provided, falls back to environment variables:
285
+ * - OPENAI_API_KEY for OpenAI models
286
+ * - ANTHROPIC_API_KEY for Anthropic models
287
+ * - GOOGLE_API_KEY for Google models
288
+ * - MINIMAX_API_KEY for MiniMax models
289
+ */
290
+ apiKey?: string;
291
+ /**
292
+ * Maximum number of steps/iterations for tool calling (default: 1, or 10 when learned skills are available)
293
+ */
294
+ maxSteps?: number;
295
+ /**
296
+ * Tool choice setting - how tools are selected for execution (default: "auto")
297
+ */
298
+ toolChoice?: ToolChoice<Record<string, unknown>>;
299
+ /**
300
+ * Maximum number of tokens to generate
301
+ */
302
+ maxOutputTokens?: number;
303
+ /**
304
+ * Temperature setting (range depends on provider)
305
+ */
306
+ temperature?: number;
307
+ /**
308
+ * Nucleus sampling (topP)
309
+ */
310
+ topP?: number;
311
+ /**
312
+ * Top K sampling
313
+ */
314
+ topK?: number;
315
+ /**
316
+ * Presence penalty
317
+ */
318
+ presencePenalty?: number;
319
+ /**
320
+ * Frequency penalty
321
+ */
322
+ frequencyPenalty?: number;
323
+ /**
324
+ * Sequences that will stop the generation
325
+ */
326
+ stopSequences?: string[];
327
+ /**
328
+ * Seed for deterministic results
329
+ */
330
+ seed?: number;
331
+ /**
332
+ * Maximum number of retries
333
+ */
334
+ maxRetries?: number;
335
+ /**
336
+ * Prompt for the agent
337
+ */
338
+ prompt?: string;
339
+ /**
340
+ * List of properties that can be overridden by forwardedProps.
341
+ */
342
+ overridableProperties?: OverridableProperty[];
343
+ /**
344
+ * Optional list of MCP server configurations
345
+ */
346
+ mcpServers?: MCPClientConfig[];
347
+ /**
348
+ * Optional list of user-managed MCP clients.
349
+ * Unlike mcpServers, the agent does NOT create or close these clients.
350
+ * The user controls the lifecycle, persistence, auth, and caching.
351
+ *
352
+ * Compatible with @ai-sdk/mcp's createMCPClient() return type:
353
+ * ```typescript
354
+ * const client = await createMCPClient({ transport });
355
+ * const agent = new BuiltInAgent({ model: "...", mcpClients: [client] });
356
+ * ```
357
+ */
358
+ mcpClients?: MCPClientProvider[];
359
+ /**
360
+ * Optional tools available to the agent
361
+ */
362
+ tools?: ToolDefinition[];
363
+ /**
364
+ * Forward system-role messages from input to the LLM.
365
+ * Default: false
366
+ */
367
+ forwardSystemMessages?: boolean;
368
+ /**
369
+ * Forward developer-role messages from input to the LLM (as system messages).
370
+ * Default: false
371
+ */
372
+ forwardDeveloperMessages?: boolean;
373
+ /**
374
+ * Provider-specific options passed to the model (e.g., OpenAI reasoningEffort).
375
+ * Example: `{ openai: { reasoningEffort: "high" } }`
376
+ */
377
+ providerOptions?: Record<string, any>;
378
+ /**
379
+ * How the server downloads URL attachments (image and file parts) that the
380
+ * model cannot take as a URL. The URL comes from the request, so the server
381
+ * must not fetch it blindly.
382
+ *
383
+ * - Not set or an options object (default): download only from public
384
+ * internet addresses. The hostname is resolved and every address must be
385
+ * public; the connection uses only the checked addresses; each redirect is
386
+ * checked again, and a redirect from https to http is refused; the size
387
+ * (default 20 MiB) and the time (default 30 s) of each download, and the
388
+ * number of distinct URLs (20) and total size (50 MiB) of the downloads
389
+ * for one model call are limited. The AI SDK downloads the attachments
390
+ * again for each step of a multi-step run. `allowedHosts` limits
391
+ * downloads to the hostnames you list: `cdn.example.com` matches exactly,
392
+ * `*.example.com` matches subdomains only. Invalid options, including an
393
+ * unknown option name, throw when the agent is constructed.
394
+ * - `"disabled"`: never download from the network. Any attachment URL other
395
+ * than `data:` that the model cannot take directly fails the run.
396
+ * - A function: your own AI SDK download function. You are responsible for
397
+ * what it fetches.
398
+ *
399
+ * URLs that the model takes directly are sent to the provider unchanged and
400
+ * are not downloaded by the server. `data:` URLs are decoded locally by the
401
+ * AI SDK in every mode. Classic config only: in factory mode, see
402
+ * {@link BuiltInAgentAISDKFactoryConfig}.
403
+ */
404
+ urlDownload?: "disabled" | SafeUrlDownloadOptions | Experimental_DownloadFunction;
405
+ /**
406
+ * Explicit agent capabilities. **Shallow-merged** at the category level on
407
+ * top of auto-inferred defaults — providing a category (e.g. `tools`)
408
+ * replaces that entire category, not individual fields within it.
409
+ *
410
+ * For example, `{ tools: { supported: true } }` will drop the inferred
411
+ * `clientProvided` value. Include all fields for any category you override.
412
+ */
413
+ capabilities?: Partial<AgentCapabilities>;
414
+ }
415
+ /**
416
+ * Configuration for BuiltInAgent.
417
+ *
418
+ * Two modes:
419
+ * - **Classic** (model + params): BuiltInAgent handles everything — streamText, tools, MCP, state tools.
420
+ * - **Factory** (type + factory): You own the LLM call. BuiltInAgent handles lifecycle only.
421
+ */
422
+ type BuiltInAgentConfiguration = BuiltInAgentClassicConfig | BuiltInAgentFactoryConfig;
423
+ declare class BuiltInAgent extends AbstractAgent {
424
+ private config;
425
+ private abortController?;
426
+ private skillRegistry?;
427
+ /**
428
+ * Which vendor this agent's configured model reaches. Read by the SSE layer
429
+ * onto `agent_execution_stream_*` telemetry.
430
+ *
431
+ * Computed once, from the configured model, because that is what holds for
432
+ * the agent's lifetime. A per-request `forwardedProps.model` override
433
+ * (handled further down in `run`) can point somewhere else for one run and
434
+ * is not reflected here — overrides are rare and the field describes the
435
+ * agent, not the call.
436
+ *
437
+ * Factory-mode configs own their own LLM call, so there is no model for us
438
+ * to classify.
439
+ */
440
+ readonly modelHostClass: ModelHostClass;
441
+ /**
442
+ * Gives the download function for URL attachments for one run (classic
443
+ * config only). Resolved in the constructor so a bad setting fails fast.
444
+ */
445
+ private readonly urlDownload?;
446
+ constructor(config: BuiltInAgentConfiguration);
447
+ /**
448
+ * Check if a property can be overridden by forwardedProps
449
+ */
450
+ canOverride(property: OverridableProperty): boolean;
451
+ getCapabilities(): Promise<AgentCapabilities>;
452
+ run(input: RunAgentInput): Observable<BaseEvent>;
453
+ private runFactory;
454
+ clone(): BuiltInAgent;
455
+ abortRun(): void;
456
+ }
457
+ /**
458
+ * @deprecated Use BuiltInAgent instead
459
+ */
460
+ declare class BasicAgent extends BuiltInAgent {
461
+ constructor(config: BuiltInAgentConfiguration);
462
+ }
463
+ /** @deprecated Use BuiltInAgentClassicConfig instead */
464
+ type BasicAgentConfiguration = BuiltInAgentClassicConfig;
465
+ //#endregion
466
+ export { BasicAgent, BasicAgentConfiguration, BuiltInAgent, BuiltInAgentAISDKFactoryConfig, BuiltInAgentClassicConfig, BuiltInAgentConfiguration, BuiltInAgentCustomFactoryConfig, BuiltInAgentFactoryConfig, BuiltInAgentFactoryContext, BuiltInAgentModel, BuiltInAgentTanStackFactoryConfig, InterruptSignal, MCPClientConfig, MCPClientConfigHTTP, MCPClientConfigSSE, MCPClientProvider, MessageConversionOptions, ModelSpecifier, OverridableProperty, ToolDefinition, classifyModelSpec, convertJsonSchemaToZodSchema, convertMessagesToVercelAISDKMessages, convertToolDefinitionsToVercelAITools, convertToolsToVercelAITools, defineTool, resolveModel };
467
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../../src/agent/index.ts"],"mappings":"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"}