@copilotkit/runtime 2.0.0-rc.6 → 2.0.0-rc.60

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 (417) hide show
  1. package/README.md +29 -4
  2. package/dist/agent/{url-download.cjs → ai-sdk/url-download.cjs} +19 -76
  3. package/dist/agent/ai-sdk/url-download.cjs.map +1 -0
  4. package/dist/agent/{url-download.d.cts → ai-sdk/url-download.d.cts} +11 -8
  5. package/dist/agent/ai-sdk/url-download.d.cts.map +1 -0
  6. package/dist/agent/{url-download.d.mts → ai-sdk/url-download.d.mts} +11 -8
  7. package/dist/agent/ai-sdk/url-download.d.mts.map +1 -0
  8. package/dist/agent/{url-download.mjs → ai-sdk/url-download.mjs} +20 -74
  9. package/dist/agent/ai-sdk/url-download.mjs.map +1 -0
  10. package/dist/agent/ai-sdk.cjs +425 -0
  11. package/dist/agent/ai-sdk.cjs.map +1 -0
  12. package/dist/agent/ai-sdk.d.cts +119 -0
  13. package/dist/agent/ai-sdk.d.cts.map +1 -0
  14. package/dist/agent/ai-sdk.d.mts +119 -0
  15. package/dist/agent/ai-sdk.d.mts.map +1 -0
  16. package/dist/agent/ai-sdk.mjs +419 -0
  17. package/dist/agent/ai-sdk.mjs.map +1 -0
  18. package/dist/agent/classic-tools.cjs +185 -0
  19. package/dist/agent/classic-tools.cjs.map +1 -0
  20. package/dist/agent/classic-tools.mjs +183 -0
  21. package/dist/agent/classic-tools.mjs.map +1 -0
  22. package/dist/agent/converters/aisdk.cjs +17 -4
  23. package/dist/agent/converters/aisdk.cjs.map +1 -1
  24. package/dist/agent/converters/aisdk.d.cts.map +1 -1
  25. package/dist/agent/converters/aisdk.d.mts.map +1 -1
  26. package/dist/agent/converters/aisdk.mjs +18 -2
  27. package/dist/agent/converters/aisdk.mjs.map +1 -1
  28. package/dist/agent/converters/tanstack.cjs +202 -30
  29. package/dist/agent/converters/tanstack.cjs.map +1 -1
  30. package/dist/agent/converters/tanstack.d.cts +90 -6
  31. package/dist/agent/converters/tanstack.d.cts.map +1 -1
  32. package/dist/agent/converters/tanstack.d.mts +90 -6
  33. package/dist/agent/converters/tanstack.d.mts.map +1 -1
  34. package/dist/agent/converters/tanstack.mjs +202 -29
  35. package/dist/agent/converters/tanstack.mjs.map +1 -1
  36. package/dist/agent/learned-skills.cjs +15 -17
  37. package/dist/agent/learned-skills.cjs.map +1 -1
  38. package/dist/agent/learned-skills.d.cts +9 -3
  39. package/dist/agent/learned-skills.d.cts.map +1 -1
  40. package/dist/agent/learned-skills.d.mts +9 -3
  41. package/dist/agent/learned-skills.d.mts.map +1 -1
  42. package/dist/agent/learned-skills.mjs +15 -16
  43. package/dist/agent/learned-skills.mjs.map +1 -1
  44. package/dist/agent/model.cjs +42 -0
  45. package/dist/agent/model.cjs.map +1 -0
  46. package/dist/agent/model.d.cts +19 -0
  47. package/dist/agent/model.d.cts.map +1 -0
  48. package/dist/agent/model.d.mts +19 -0
  49. package/dist/agent/model.d.mts.map +1 -0
  50. package/dist/agent/model.mjs +41 -0
  51. package/dist/agent/model.mjs.map +1 -0
  52. package/dist/agent/state-delta.cjs +0 -1
  53. package/dist/agent/state-delta.cjs.map +1 -1
  54. package/dist/agent.cjs +558 -0
  55. package/dist/agent.cjs.map +1 -0
  56. package/dist/agent.d.cts +455 -0
  57. package/dist/agent.d.cts.map +1 -0
  58. package/dist/agent.d.mts +455 -0
  59. package/dist/agent.d.mts.map +1 -0
  60. package/dist/agent.mjs +551 -0
  61. package/dist/agent.mjs.map +1 -0
  62. package/dist/index.cjs +23 -28
  63. package/dist/index.d.cts +14 -14
  64. package/dist/index.d.mts +14 -14
  65. package/dist/index.mjs +8 -8
  66. package/dist/internal/learned-skills.d.cts +1 -1
  67. package/dist/internal/learned-skills.d.mts +1 -1
  68. package/dist/node.cjs +2 -3
  69. package/dist/node.d.cts +3 -3
  70. package/dist/node.d.mts +3 -3
  71. package/dist/node.mjs +3 -3
  72. package/dist/runtime/core/channel-manager.cjs +10 -2
  73. package/dist/runtime/core/channel-manager.cjs.map +1 -1
  74. package/dist/runtime/core/channel-manager.d.cts +1 -1
  75. package/dist/runtime/core/channel-manager.d.mts +1 -1
  76. package/dist/runtime/core/channel-manager.mjs +10 -1
  77. package/dist/runtime/core/channel-manager.mjs.map +1 -1
  78. package/dist/runtime/core/debug-event-bus.cjs +4 -3
  79. package/dist/runtime/core/debug-event-bus.cjs.map +1 -1
  80. package/dist/runtime/core/debug-event-bus.d.cts +5 -1
  81. package/dist/runtime/core/debug-event-bus.d.cts.map +1 -1
  82. package/dist/runtime/core/debug-event-bus.d.mts +4 -0
  83. package/dist/runtime/core/debug-event-bus.d.mts.map +1 -1
  84. package/dist/runtime/core/debug-event-bus.mjs +5 -3
  85. package/dist/runtime/core/debug-event-bus.mjs.map +1 -1
  86. package/dist/runtime/core/fetch-cors.cjs.map +1 -1
  87. package/dist/runtime/core/fetch-cors.d.cts +2 -2
  88. package/dist/runtime/core/fetch-cors.d.cts.map +1 -1
  89. package/dist/runtime/core/fetch-cors.d.mts +2 -2
  90. package/dist/runtime/core/fetch-cors.d.mts.map +1 -1
  91. package/dist/runtime/core/fetch-cors.mjs.map +1 -1
  92. package/dist/runtime/core/fetch-handler.cjs +17 -14
  93. package/dist/runtime/core/fetch-handler.cjs.map +1 -1
  94. package/dist/runtime/core/fetch-handler.d.cts +22 -14
  95. package/dist/runtime/core/fetch-handler.d.cts.map +1 -1
  96. package/dist/runtime/core/fetch-handler.d.mts +22 -14
  97. package/dist/runtime/core/fetch-handler.d.mts.map +1 -1
  98. package/dist/runtime/core/fetch-handler.mjs +9 -5
  99. package/dist/runtime/core/fetch-handler.mjs.map +1 -1
  100. package/dist/runtime/core/hooks.cjs.map +1 -1
  101. package/dist/runtime/core/hooks.d.cts +5 -5
  102. package/dist/runtime/core/hooks.d.cts.map +1 -1
  103. package/dist/runtime/core/hooks.d.mts +5 -5
  104. package/dist/runtime/core/hooks.d.mts.map +1 -1
  105. package/dist/runtime/core/hooks.mjs.map +1 -1
  106. package/dist/runtime/core/learning.cjs.map +1 -1
  107. package/dist/runtime/core/learning.d.cts +9 -9
  108. package/dist/runtime/core/learning.d.cts.map +1 -1
  109. package/dist/runtime/core/learning.d.mts +8 -8
  110. package/dist/runtime/core/learning.d.mts.map +1 -1
  111. package/dist/runtime/core/learning.mjs.map +1 -1
  112. package/dist/runtime/core/logger.cjs +105 -14
  113. package/dist/runtime/core/logger.cjs.map +1 -1
  114. package/dist/runtime/core/logger.d.cts +26 -9
  115. package/dist/runtime/core/logger.d.cts.map +1 -1
  116. package/dist/runtime/core/logger.d.mts +26 -9
  117. package/dist/runtime/core/logger.d.mts.map +1 -1
  118. package/dist/runtime/core/logger.mjs +105 -12
  119. package/dist/runtime/core/logger.mjs.map +1 -1
  120. package/dist/runtime/core/middleware-sse-parser.cjs +3 -4
  121. package/dist/runtime/core/middleware-sse-parser.cjs.map +1 -1
  122. package/dist/runtime/core/middleware-sse-parser.d.cts.map +1 -1
  123. package/dist/runtime/core/middleware-sse-parser.d.mts.map +1 -1
  124. package/dist/runtime/core/middleware-sse-parser.mjs +2 -2
  125. package/dist/runtime/core/middleware-sse-parser.mjs.map +1 -1
  126. package/dist/runtime/core/middleware.cjs +5 -5
  127. package/dist/runtime/core/middleware.cjs.map +1 -1
  128. package/dist/runtime/core/middleware.d.cts +3 -3
  129. package/dist/runtime/core/middleware.d.cts.map +1 -1
  130. package/dist/runtime/core/middleware.d.mts +3 -3
  131. package/dist/runtime/core/middleware.d.mts.map +1 -1
  132. package/dist/runtime/core/middleware.mjs +4 -3
  133. package/dist/runtime/core/middleware.mjs.map +1 -1
  134. package/dist/runtime/core/package-info.cjs +1 -1
  135. package/dist/runtime/core/package-info.mjs +1 -1
  136. package/dist/runtime/core/runtime-error-reporter.cjs.map +1 -1
  137. package/dist/runtime/core/runtime-error-reporter.mjs.map +1 -1
  138. package/dist/runtime/core/runtime.cjs +44 -46
  139. package/dist/runtime/core/runtime.cjs.map +1 -1
  140. package/dist/runtime/core/runtime.d.cts +178 -91
  141. package/dist/runtime/core/runtime.d.cts.map +1 -1
  142. package/dist/runtime/core/runtime.d.mts +178 -91
  143. package/dist/runtime/core/runtime.d.mts.map +1 -1
  144. package/dist/runtime/core/runtime.mjs +42 -42
  145. package/dist/runtime/core/runtime.mjs.map +1 -1
  146. package/dist/runtime/endpoints/auto-start-channels.cjs +3 -4
  147. package/dist/runtime/endpoints/auto-start-channels.cjs.map +1 -1
  148. package/dist/runtime/endpoints/auto-start-channels.mjs +2 -2
  149. package/dist/runtime/endpoints/auto-start-channels.mjs.map +1 -1
  150. package/dist/runtime/endpoints/node-fetch-handler.cjs +4 -8
  151. package/dist/runtime/endpoints/node-fetch-handler.cjs.map +1 -1
  152. package/dist/runtime/endpoints/node-fetch-handler.d.cts +4 -5
  153. package/dist/runtime/endpoints/node-fetch-handler.d.cts.map +1 -1
  154. package/dist/runtime/endpoints/node-fetch-handler.d.mts +4 -5
  155. package/dist/runtime/endpoints/node-fetch-handler.d.mts.map +1 -1
  156. package/dist/runtime/endpoints/node-fetch-handler.mjs +3 -5
  157. package/dist/runtime/endpoints/node-fetch-handler.mjs.map +1 -1
  158. package/dist/runtime/endpoints/node.cjs +7 -5
  159. package/dist/runtime/endpoints/node.cjs.map +1 -1
  160. package/dist/runtime/endpoints/node.d.cts +16 -16
  161. package/dist/runtime/endpoints/node.d.cts.map +1 -1
  162. package/dist/runtime/endpoints/node.d.mts +16 -16
  163. package/dist/runtime/endpoints/node.d.mts.map +1 -1
  164. package/dist/runtime/endpoints/node.mjs +9 -7
  165. package/dist/runtime/endpoints/node.mjs.map +1 -1
  166. package/dist/runtime/event-transforms/index.d.cts +4 -0
  167. package/dist/runtime/event-transforms/index.d.mts +4 -0
  168. package/dist/runtime/event-transforms/index.mjs +5 -0
  169. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs +277 -0
  170. package/dist/runtime/event-transforms/open-generative-ui-middleware.cjs.map +1 -0
  171. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.cts +61 -0
  172. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.cts.map +1 -0
  173. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.mts +61 -0
  174. package/dist/runtime/event-transforms/open-generative-ui-middleware.d.mts.map +1 -0
  175. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs +276 -0
  176. package/dist/runtime/event-transforms/open-generative-ui-middleware.mjs.map +1 -0
  177. package/dist/runtime/event-transforms/recorded-events.cjs +68 -0
  178. package/dist/runtime/event-transforms/recorded-events.cjs.map +1 -0
  179. package/dist/runtime/event-transforms/recorded-events.d.cts +27 -0
  180. package/dist/runtime/event-transforms/recorded-events.d.cts.map +1 -0
  181. package/dist/runtime/event-transforms/recorded-events.d.mts +27 -0
  182. package/dist/runtime/event-transforms/recorded-events.d.mts.map +1 -0
  183. package/dist/runtime/event-transforms/recorded-events.mjs +68 -0
  184. package/dist/runtime/event-transforms/recorded-events.mjs.map +1 -0
  185. package/dist/runtime/event-transforms/streaming-json-scanner.cjs +289 -0
  186. package/dist/runtime/event-transforms/streaming-json-scanner.cjs.map +1 -0
  187. package/dist/runtime/event-transforms/streaming-json-scanner.mjs +288 -0
  188. package/dist/runtime/event-transforms/streaming-json-scanner.mjs.map +1 -0
  189. package/dist/runtime/generative-ui/a2ui-v09-actions.cjs +106 -0
  190. package/dist/runtime/generative-ui/a2ui-v09-actions.cjs.map +1 -0
  191. package/dist/runtime/generative-ui/a2ui-v09-actions.mjs +106 -0
  192. package/dist/runtime/generative-ui/a2ui-v09-actions.mjs.map +1 -0
  193. package/dist/runtime/generative-ui/a2ui-v09-catalog.cjs +422 -0
  194. package/dist/runtime/generative-ui/a2ui-v09-catalog.cjs.map +1 -0
  195. package/dist/runtime/generative-ui/a2ui-v09-catalog.mjs +422 -0
  196. package/dist/runtime/generative-ui/a2ui-v09-catalog.mjs.map +1 -0
  197. package/dist/runtime/generative-ui/a2ui-v09-middleware.cjs +84 -0
  198. package/dist/runtime/generative-ui/a2ui-v09-middleware.cjs.map +1 -0
  199. package/dist/runtime/generative-ui/a2ui-v09-middleware.d.cts +41 -0
  200. package/dist/runtime/generative-ui/a2ui-v09-middleware.d.cts.map +1 -0
  201. package/dist/runtime/generative-ui/a2ui-v09-middleware.d.mts +41 -0
  202. package/dist/runtime/generative-ui/a2ui-v09-middleware.d.mts.map +1 -0
  203. package/dist/runtime/generative-ui/a2ui-v09-middleware.mjs +83 -0
  204. package/dist/runtime/generative-ui/a2ui-v09-middleware.mjs.map +1 -0
  205. package/dist/runtime/generative-ui/a2ui-v09-operations.cjs +694 -0
  206. package/dist/runtime/generative-ui/a2ui-v09-operations.cjs.map +1 -0
  207. package/dist/runtime/generative-ui/a2ui-v09-operations.mjs +694 -0
  208. package/dist/runtime/generative-ui/a2ui-v09-operations.mjs.map +1 -0
  209. package/dist/runtime/generative-ui/generative-ui-middleware.cjs +0 -1
  210. package/dist/runtime/generative-ui/generative-ui-middleware.cjs.map +1 -1
  211. package/dist/runtime/generative-ui/index.d.cts +1 -0
  212. package/dist/runtime/generative-ui/index.d.mts +1 -0
  213. package/dist/runtime/generative-ui/surface-writer.cjs +4 -5
  214. package/dist/runtime/generative-ui/surface-writer.cjs.map +1 -1
  215. package/dist/runtime/generative-ui/surface-writer.d.cts +1 -1
  216. package/dist/runtime/generative-ui/surface-writer.d.cts.map +1 -1
  217. package/dist/runtime/generative-ui/surface-writer.d.mts.map +1 -1
  218. package/dist/runtime/generative-ui/surface-writer.mjs +5 -5
  219. package/dist/runtime/generative-ui/surface-writer.mjs.map +1 -1
  220. package/dist/runtime/handlers/get-runtime-info.cjs +24 -6
  221. package/dist/runtime/handlers/get-runtime-info.cjs.map +1 -1
  222. package/dist/runtime/handlers/get-runtime-info.mjs +25 -7
  223. package/dist/runtime/handlers/get-runtime-info.mjs.map +1 -1
  224. package/dist/runtime/handlers/handle-connect.cjs +3 -8
  225. package/dist/runtime/handlers/handle-connect.cjs.map +1 -1
  226. package/dist/runtime/handlers/handle-connect.mjs +3 -8
  227. package/dist/runtime/handlers/handle-connect.mjs.map +1 -1
  228. package/dist/runtime/handlers/handle-debug-events.cjs.map +1 -1
  229. package/dist/runtime/handlers/handle-debug-events.mjs.map +1 -1
  230. package/dist/runtime/handlers/handle-inspector-learning.cjs +2 -3
  231. package/dist/runtime/handlers/handle-inspector-learning.cjs.map +1 -1
  232. package/dist/runtime/handlers/handle-inspector-learning.mjs.map +1 -1
  233. package/dist/runtime/handlers/handle-inspector-metadata.cjs +2 -3
  234. package/dist/runtime/handlers/handle-inspector-metadata.cjs.map +1 -1
  235. package/dist/runtime/handlers/handle-inspector-metadata.mjs.map +1 -1
  236. package/dist/runtime/handlers/handle-run.cjs +11 -16
  237. package/dist/runtime/handlers/handle-run.cjs.map +1 -1
  238. package/dist/runtime/handlers/handle-run.mjs +8 -12
  239. package/dist/runtime/handlers/handle-run.mjs.map +1 -1
  240. package/dist/runtime/handlers/handle-stop.cjs +5 -5
  241. package/dist/runtime/handlers/handle-stop.cjs.map +1 -1
  242. package/dist/runtime/handlers/handle-stop.mjs +2 -1
  243. package/dist/runtime/handlers/handle-stop.mjs.map +1 -1
  244. package/dist/runtime/handlers/handle-suggest.cjs +6 -3
  245. package/dist/runtime/handlers/handle-suggest.cjs.map +1 -1
  246. package/dist/runtime/handlers/handle-suggest.mjs +6 -2
  247. package/dist/runtime/handlers/handle-suggest.mjs.map +1 -1
  248. package/dist/runtime/handlers/handle-trajectory-connect.cjs.map +1 -1
  249. package/dist/runtime/handlers/handle-trajectory-connect.mjs.map +1 -1
  250. package/dist/runtime/handlers/handle-transcribe.cjs +0 -1
  251. package/dist/runtime/handlers/handle-transcribe.cjs.map +1 -1
  252. package/dist/runtime/handlers/handle-transcribe.mjs.map +1 -1
  253. package/dist/runtime/handlers/intelligence/annotate.cjs +8 -8
  254. package/dist/runtime/handlers/intelligence/annotate.cjs.map +1 -1
  255. package/dist/runtime/handlers/intelligence/annotate.mjs +5 -4
  256. package/dist/runtime/handlers/intelligence/annotate.mjs.map +1 -1
  257. package/dist/runtime/handlers/intelligence/connect.cjs +6 -2
  258. package/dist/runtime/handlers/intelligence/connect.cjs.map +1 -1
  259. package/dist/runtime/handlers/intelligence/connect.mjs +6 -2
  260. package/dist/runtime/handlers/intelligence/connect.mjs.map +1 -1
  261. package/dist/runtime/handlers/intelligence/memories.cjs +28 -23
  262. package/dist/runtime/handlers/intelligence/memories.cjs.map +1 -1
  263. package/dist/runtime/handlers/intelligence/memories.mjs +12 -6
  264. package/dist/runtime/handlers/intelligence/memories.mjs.map +1 -1
  265. package/dist/runtime/handlers/intelligence/run.cjs +38 -30
  266. package/dist/runtime/handlers/intelligence/run.cjs.map +1 -1
  267. package/dist/runtime/handlers/intelligence/run.mjs +37 -28
  268. package/dist/runtime/handlers/intelligence/run.mjs.map +1 -1
  269. package/dist/runtime/handlers/intelligence/thread-names.cjs +6 -5
  270. package/dist/runtime/handlers/intelligence/thread-names.cjs.map +1 -1
  271. package/dist/runtime/handlers/intelligence/thread-names.mjs +3 -1
  272. package/dist/runtime/handlers/intelligence/thread-names.mjs.map +1 -1
  273. package/dist/runtime/handlers/intelligence/threads.cjs +40 -31
  274. package/dist/runtime/handlers/intelligence/threads.cjs.map +1 -1
  275. package/dist/runtime/handlers/intelligence/threads.mjs +18 -8
  276. package/dist/runtime/handlers/intelligence/threads.mjs.map +1 -1
  277. package/dist/runtime/handlers/shared/agent-utils.cjs +50 -46
  278. package/dist/runtime/handlers/shared/agent-utils.cjs.map +1 -1
  279. package/dist/runtime/handlers/shared/agent-utils.mjs +47 -42
  280. package/dist/runtime/handlers/shared/agent-utils.mjs.map +1 -1
  281. package/dist/runtime/handlers/shared/cloud-telemetry.cjs +0 -1
  282. package/dist/runtime/handlers/shared/cloud-telemetry.cjs.map +1 -1
  283. package/dist/runtime/handlers/shared/memory-policy.cjs.map +1 -1
  284. package/dist/runtime/handlers/shared/memory-policy.mjs.map +1 -1
  285. package/dist/runtime/handlers/shared/resolve-intelligence-user.cjs +4 -3
  286. package/dist/runtime/handlers/shared/resolve-intelligence-user.cjs.map +1 -1
  287. package/dist/runtime/handlers/shared/resolve-intelligence-user.mjs +4 -3
  288. package/dist/runtime/handlers/shared/resolve-intelligence-user.mjs.map +1 -1
  289. package/dist/runtime/handlers/shared/sse-response.cjs +77 -78
  290. package/dist/runtime/handlers/shared/sse-response.cjs.map +1 -1
  291. package/dist/runtime/handlers/shared/sse-response.mjs +77 -77
  292. package/dist/runtime/handlers/shared/sse-response.mjs.map +1 -1
  293. package/dist/runtime/handlers/shared/thread-access.cjs +4 -3
  294. package/dist/runtime/handlers/shared/thread-access.cjs.map +1 -1
  295. package/dist/runtime/handlers/shared/thread-access.d.cts.map +1 -1
  296. package/dist/runtime/handlers/shared/thread-access.d.mts.map +1 -1
  297. package/dist/runtime/handlers/shared/thread-access.mjs +4 -3
  298. package/dist/runtime/handlers/shared/thread-access.mjs.map +1 -1
  299. package/dist/runtime/handlers/sse/connect.cjs +2 -0
  300. package/dist/runtime/handlers/sse/connect.cjs.map +1 -1
  301. package/dist/runtime/handlers/sse/connect.mjs +2 -0
  302. package/dist/runtime/handlers/sse/connect.mjs.map +1 -1
  303. package/dist/runtime/handlers/sse/run.cjs +5 -2
  304. package/dist/runtime/handlers/sse/run.cjs.map +1 -1
  305. package/dist/runtime/handlers/sse/run.mjs +5 -2
  306. package/dist/runtime/handlers/sse/run.mjs.map +1 -1
  307. package/dist/runtime/index.d.cts +13 -18
  308. package/dist/runtime/index.d.mts +13 -18
  309. package/dist/runtime/intelligence-platform/analytics-context.cjs +84 -0
  310. package/dist/runtime/intelligence-platform/analytics-context.cjs.map +1 -0
  311. package/dist/runtime/intelligence-platform/analytics-context.mjs +83 -0
  312. package/dist/runtime/intelligence-platform/analytics-context.mjs.map +1 -0
  313. package/dist/runtime/intelligence-platform/client.cjs +30 -4
  314. package/dist/runtime/intelligence-platform/client.cjs.map +1 -1
  315. package/dist/runtime/intelligence-platform/client.d.cts +25 -2
  316. package/dist/runtime/intelligence-platform/client.d.cts.map +1 -1
  317. package/dist/runtime/intelligence-platform/client.d.mts +25 -2
  318. package/dist/runtime/intelligence-platform/client.d.mts.map +1 -1
  319. package/dist/runtime/intelligence-platform/client.mjs +30 -3
  320. package/dist/runtime/intelligence-platform/client.mjs.map +1 -1
  321. package/dist/runtime/intelligence-platform/learning-management.cjs +7 -8
  322. package/dist/runtime/intelligence-platform/learning-management.cjs.map +1 -1
  323. package/dist/runtime/intelligence-platform/learning-management.mjs +7 -7
  324. package/dist/runtime/intelligence-platform/learning-management.mjs.map +1 -1
  325. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs +104 -110
  326. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs.map +1 -1
  327. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts +8 -2
  328. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts.map +1 -1
  329. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts +8 -2
  330. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts.map +1 -1
  331. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs +104 -109
  332. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs.map +1 -1
  333. package/dist/runtime/intelligence-platform/skill-registry/config.cjs +0 -1
  334. package/dist/runtime/intelligence-platform/skill-registry/config.cjs.map +1 -1
  335. package/dist/runtime/intelligence-platform/skill-registry/index.d.cts +1 -1
  336. package/dist/runtime/intelligence-platform/skill-registry/index.d.mts +1 -1
  337. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs +22 -19
  338. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs.map +1 -1
  339. package/dist/runtime/intelligence-platform/skill-registry/registry.d.cts.map +1 -1
  340. package/dist/runtime/intelligence-platform/skill-registry/registry.d.mts.map +1 -1
  341. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs +22 -19
  342. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs.map +1 -1
  343. package/dist/runtime/intelligence-platform/stop-run.cjs +50 -0
  344. package/dist/runtime/intelligence-platform/stop-run.cjs.map +1 -0
  345. package/dist/runtime/intelligence-platform/stop-run.mjs +50 -0
  346. package/dist/runtime/intelligence-platform/stop-run.mjs.map +1 -0
  347. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs +3 -3
  348. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs.map +1 -1
  349. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs +2 -1
  350. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs.map +1 -1
  351. package/dist/runtime/intelligence-platform/trajectories.cjs +2 -3
  352. package/dist/runtime/intelligence-platform/trajectories.cjs.map +1 -1
  353. package/dist/runtime/intelligence-platform/trajectories.mjs +2 -2
  354. package/dist/runtime/intelligence-platform/trajectories.mjs.map +1 -1
  355. package/dist/runtime/node.d.cts +2 -2
  356. package/dist/runtime/node.d.mts +2 -2
  357. package/dist/runtime/runner/agent-runner.cjs +0 -1
  358. package/dist/runtime/runner/agent-runner.cjs.map +1 -1
  359. package/dist/runtime/runner/agent-runner.d.cts +9 -0
  360. package/dist/runtime/runner/agent-runner.d.cts.map +1 -1
  361. package/dist/runtime/runner/agent-runner.d.mts +9 -0
  362. package/dist/runtime/runner/agent-runner.d.mts.map +1 -1
  363. package/dist/runtime/runner/agent-runner.mjs.map +1 -1
  364. package/dist/runtime/runner/in-memory.cjs +0 -1
  365. package/dist/runtime/runner/in-memory.cjs.map +1 -1
  366. package/dist/runtime/runner/index.d.cts +1 -1
  367. package/dist/runtime/runner/index.d.mts +1 -1
  368. package/dist/runtime/runner/index.mjs +1 -1
  369. package/dist/runtime/runner/intelligence.cjs +55 -9
  370. package/dist/runtime/runner/intelligence.cjs.map +1 -1
  371. package/dist/runtime/runner/intelligence.d.cts +12 -1
  372. package/dist/runtime/runner/intelligence.d.cts.map +1 -1
  373. package/dist/runtime/runner/intelligence.d.mts +12 -1
  374. package/dist/runtime/runner/intelligence.d.mts.map +1 -1
  375. package/dist/runtime/runner/intelligence.mjs +56 -10
  376. package/dist/runtime/runner/intelligence.mjs.map +1 -1
  377. package/dist/runtime/telemetry/disclosure.cjs +2 -3
  378. package/dist/runtime/telemetry/disclosure.cjs.map +1 -1
  379. package/dist/runtime/telemetry/disclosure.mjs +3 -3
  380. package/dist/runtime/telemetry/disclosure.mjs.map +1 -1
  381. package/dist/runtime/telemetry/events.d.cts +1 -1
  382. package/dist/runtime/telemetry/events.d.mts +1 -1
  383. package/dist/runtime/telemetry/instance-created.cjs +33 -12
  384. package/dist/runtime/telemetry/instance-created.cjs.map +1 -1
  385. package/dist/runtime/telemetry/instance-created.mjs +33 -12
  386. package/dist/runtime/telemetry/instance-created.mjs.map +1 -1
  387. package/dist/runtime/telemetry/telemetry-client.cjs +0 -5
  388. package/dist/runtime/telemetry/telemetry-client.cjs.map +1 -1
  389. package/dist/runtime/telemetry/telemetry-client.mjs +0 -4
  390. package/dist/runtime/telemetry/telemetry-client.mjs.map +1 -1
  391. package/dist/runtime/telemetry/telemetry-identity.cjs +0 -1
  392. package/dist/runtime/telemetry/telemetry-identity.cjs.map +1 -1
  393. package/dist/v2/index.d.cts +242 -0
  394. package/dist/v2/index.d.mts +242 -0
  395. package/dist/v2/node.d.cts +18 -0
  396. package/dist/v2/node.d.mts +18 -0
  397. package/package.json +84 -29
  398. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  399. package/dist/agent/converters/index.d.mts +0 -2
  400. package/dist/agent/index.cjs +0 -1328
  401. package/dist/agent/index.cjs.map +0 -1
  402. package/dist/agent/index.d.cts +0 -467
  403. package/dist/agent/index.d.cts.map +0 -1
  404. package/dist/agent/index.d.mts +0 -468
  405. package/dist/agent/index.d.mts.map +0 -1
  406. package/dist/agent/index.mjs +0 -1318
  407. package/dist/agent/index.mjs.map +0 -1
  408. package/dist/agent/mcp-tool-names.cjs +0 -82
  409. package/dist/agent/mcp-tool-names.cjs.map +0 -1
  410. package/dist/agent/mcp-tool-names.mjs +0 -80
  411. package/dist/agent/mcp-tool-names.mjs.map +0 -1
  412. package/dist/agent/url-download.cjs.map +0 -1
  413. package/dist/agent/url-download.d.cts.map +0 -1
  414. package/dist/agent/url-download.d.mts.map +0 -1
  415. package/dist/agent/url-download.mjs.map +0 -1
  416. package/dist/runtime/index.d.cts.map +0 -1
  417. package/dist/runtime/index.d.mts.map +0 -1
@@ -1,17 +1,17 @@
1
1
  import { AgentRunner } from "../runner/agent-runner.cjs";
2
2
  import { ThreadAccessMode, ThreadsConfig } from "../handlers/shared/thread-access.cjs";
3
3
  import { ForwardHeadersConfig, ResolvedForwardHeadersPolicy } from "../handlers/header-utils.cjs";
4
+ import { CopilotKitRuntimeLogger } from "./logger.cjs";
4
5
  import { AfterRequestMiddleware, BeforeRequestMiddleware } from "./middleware.cjs";
5
- import { CopilotRuntimeLogger } from "./logger.cjs";
6
6
  import { TranscriptionService } from "../transcription-service/transcription-service.cjs";
7
7
  import { DebugEventBus } from "./debug-event-bus.cjs";
8
- import { CopilotRuntimeLearningConfig, CopilotRuntimeLearningContext, CopilotRuntimeUser, GetLearningContainerId, GetTrajectoryLearningContainerIds, LearningContainerSelectorInput, TrajectoryLearningContainerSelectorInput } from "./learning.cjs";
9
- import { CopilotKitIntelligence } from "../intelligence-platform/client.cjs";
10
8
  import "../intelligence-platform/index.cjs";
11
9
  import { TelemetryCapture } from "../telemetry/telemetry-client.cjs";
10
+ import { CopilotKitRuntimeLearningConfig, CopilotKitRuntimeLearningContext, CopilotKitRuntimeUser, GetLearningContainerId, GetTrajectoryLearningContainerIds, LearningContainerSelectorInput, TrajectoryLearningContainerSelectorInput } from "./learning.cjs";
11
+ import { CopilotKitIntelligence } from "../intelligence-platform/client.cjs";
12
+ import { AbstractAgent } from "@ag-ui/client";
12
13
  import { DebugConfig, MaybePromise, NonEmptyRecord, RUNTIME_MODE_INTELLIGENCE, RUNTIME_MODE_SSE, ResolvedDebugConfig, RuntimeMode } from "@copilotkit/shared";
13
14
  import { LicenseChecker } from "@copilotkit/license-verifier";
14
- import { AbstractAgent } from "@ag-ui/client";
15
15
  import { MCPClientConfig } from "@ag-ui/mcp-apps-middleware";
16
16
  import { A2UIMiddlewareConfig } from "@ag-ui/a2ui-middleware";
17
17
  import { Channel } from "@copilotkit/channels-core";
@@ -33,37 +33,113 @@ interface McpAppsConfig {
33
33
  }
34
34
  interface OpenGenerativeUIOptions extends BaseCopilotRuntimeMiddlewareOptions {}
35
35
  type OpenGenerativeUIConfig = boolean | OpenGenerativeUIOptions;
36
- interface CopilotRuntimeMiddlewares {
36
+ /** An A2UI protocol version that an agent speaks. */
37
+ type A2UIVersion = "0.9" | "1.0";
38
+ /**
39
+ * Options of {@link CopilotRuntimeMiddlewares.generativeUI}.
40
+ *
41
+ * The client renders A2UI 1.0 only. An agent that speaks A2UI v0.9 is set
42
+ * to `"0.9"` with `a2uiVersion`: the runtime then gives it the v0.9 tool and
43
+ * catalog, and converts its surfaces to 1.0 for the client and the clicks
44
+ * on them back to v0.9 for the agent.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * new CopilotKitRuntime({
49
+ * agents: { legacy: legacyAgent, current: currentAgent },
50
+ * generativeUI: { a2uiVersion: { legacy: "0.9" } },
51
+ * });
52
+ * ```
53
+ */
54
+ interface GenerativeUIOptions extends BaseCopilotRuntimeMiddlewareOptions {
55
+ /**
56
+ * The A2UI version that the agents speak. Default: `"1.0"`.
57
+ *
58
+ * - `"1.0"`: the agent gets the `render_ui` tool and the generative UI
59
+ * guide.
60
+ * - `"0.9"`: the agent gets the `render_a2ui` tool of
61
+ * `@ag-ui/a2ui-middleware`, its guide, and the v0.9 component schema of
62
+ * the client's catalog. It does not get `render_ui`.
63
+ * - A record of agent id to version: one version for each agent. An agent
64
+ * that is not in the record speaks `"1.0"`.
65
+ *
66
+ * For both versions, the runtime converts the v0.9 surfaces that a run
67
+ * emits (for example, from a tool result) to 1.0, and turns a click on a
68
+ * converted surface back into a v0.9 action.
69
+ */
70
+ a2uiVersion?: A2UIVersion | Record<string, A2UIVersion>;
37
71
  /**
38
- * Auto-apply A2UIMiddleware to agents at run time.
39
- * Pass an object to enable and customise behaviour, or omit to disable.
72
+ * v0.9 agents only. The component schema for `A2UIMiddleware` to add to
73
+ * the agent's context. It replaces the schema that the runtime makes from
74
+ * the client's catalog.
40
75
  */
41
- a2ui?: BaseCopilotRuntimeMiddlewareOptions & A2UIMiddlewareConfig & {
42
- /**
43
- * Explicit on/off switch. Omit (or set `true`) to enable; set `false`
44
- * to disable A2UI for this runtime while keeping the rest of the config
45
- * (e.g. a `schema`/`catalog`) in place. A bare `a2ui: {}` stays enabled
46
- * for backwards compatibility.
47
- */
48
- enabled?: boolean;
49
- };
76
+ schema?: A2UIMiddlewareConfig["schema"];
77
+ /**
78
+ * v0.9 agents only. The generation lifecycle options of `A2UIMiddleware`:
79
+ * `debugExposure`, `showProgressTokens` and `maxAttempts`.
80
+ */
81
+ recovery?: A2UIMiddlewareConfig["recovery"];
82
+ /**
83
+ * v0.9 agents only. Adds the A2UI render tool to the agent's tools: `true`
84
+ * adds `render_a2ui`, a string adds it with that name, and `false` adds no
85
+ * tool. Default: `true` when the client sends a generative UI catalog
86
+ * with the "tool" transport.
87
+ */
88
+ injectA2UITool?: A2UIMiddlewareConfig["injectA2UITool"];
89
+ /**
90
+ * v0.9 agents only. The tool names that `A2UIMiddleware` streams into
91
+ * surfaces. Default: `["render_a2ui"]`.
92
+ */
93
+ a2uiToolNames?: A2UIMiddlewareConfig["a2uiToolNames"];
94
+ /**
95
+ * v0.9 agents only. The tool names that `A2UIMiddleware` treats as
96
+ * generation wrappers: a render call inside one of them belongs to it.
97
+ * Left out, every tool can wrap a render call. Use `[]` when there are no
98
+ * generation wrappers.
99
+ */
100
+ a2uiGenerationToolNames?: A2UIMiddlewareConfig["a2uiGenerationToolNames"];
101
+ /**
102
+ * v0.9 agents only. The catalog id of the surfaces that `A2UIMiddleware`
103
+ * creates from a streamed render tool call. Default: the catalog id of the
104
+ * component schema in the agent's context.
105
+ */
106
+ defaultCatalogId?: A2UIMiddlewareConfig["defaultCatalogId"];
107
+ }
108
+ interface CopilotRuntimeMiddlewares {
50
109
  /** Auto-apply MCPAppsMiddleware to agents at run time. */
51
110
  mcpApps?: McpAppsConfig;
52
111
  /** Auto-apply OpenGenerativeUIMiddleware to agents at run time. */
53
112
  openGenerativeUI?: OpenGenerativeUIConfig;
54
113
  /**
55
- * Experimental: CopilotKit generative UI surfaces (`render_ui`).
114
+ * CopilotKit generative UI surfaces (A2UI 1.0).
56
115
  *
57
116
  * - Omitted: applied to a run when the React provider sends a
58
117
  * tool-transport envelope (`forwardedProps.copilotkit.ui`).
59
118
  * - `true`: applied to every run.
60
- * - `{ agents }`: applied to every run of the named agents.
119
+ * - An object: applied to every run of `agents` (all agents when
120
+ * omitted). See {@link GenerativeUIOptions}, which also sets the A2UI
121
+ * version of each agent with `a2uiVersion`.
61
122
  * - `false`: never applied.
62
123
  *
63
124
  * A run with a markdown-transport envelope never gets it: the model writes
64
125
  * the UI in a2ui code fences, and the client renders them.
65
126
  */
66
- generativeUI?: boolean | BaseCopilotRuntimeMiddlewareOptions;
127
+ generativeUI?: boolean | GenerativeUIOptions;
128
+ /**
129
+ * @deprecated Use `generativeUI`. The runtime passes `a2ui` on to
130
+ * `generativeUI` with `a2uiVersion: "0.9"`, which keeps the v0.9 behavior
131
+ * for the agents: `a2ui: { agents, injectA2UITool }` works as
132
+ * `generativeUI: { a2uiVersion: "0.9", agents, injectA2UITool }`. When
133
+ * `generativeUI` is set too, the runtime uses `generativeUI` and ignores
134
+ * `a2ui`. See https://docs.copilotkit.ai/generative-ui/components/from-a2ui
135
+ */
136
+ a2ui?: Omit<GenerativeUIOptions, "a2uiVersion"> & {
137
+ /**
138
+ * `false` turns A2UI off and keeps the other options in place. Omitted
139
+ * or `true`: on.
140
+ */
141
+ enabled?: boolean;
142
+ };
67
143
  }
68
144
  /**
69
145
  * Context passed to agent factory functions for per-request agent resolution.
@@ -141,6 +217,17 @@ interface BaseCopilotRuntimeOptions extends CopilotRuntimeMiddlewares {
141
217
  ɵtelemetry?: TelemetryCapture;
142
218
  /** Enable debug logging for the event pipeline. */
143
219
  debug?: DebugConfig;
220
+ /**
221
+ * Where the runtime writes its logs. Pass pino, `console`, or any object
222
+ * with pino-style `debug`, `info`, `warn` and `error` methods
223
+ * (`(message)` or `(fields, message)`). When `debug` is on, debug output
224
+ * goes to `logger.child({ component: "copilotkit-debug" })`, or to the
225
+ * logger itself when it has no `child`.
226
+ *
227
+ * Without it, the runtime writes to the console, and debug output is JSON
228
+ * lines on stdout.
229
+ */
230
+ logger?: CopilotKitRuntimeLogger;
144
231
  /**
145
232
  * Policy controlling which inbound HTTP headers are forwarded onto the
146
233
  * outgoing agent call. By default a built-in denylist strips known
@@ -193,22 +280,22 @@ interface BaseCopilotRuntimeOptions extends CopilotRuntimeMiddlewares {
193
280
  */
194
281
  threads?: ThreadsConfig;
195
282
  }
196
- type IdentifyUserCallback = (request: Request) => MaybePromise<CopilotRuntimeUser>;
283
+ type IdentifyUserCallback = (request: Request) => MaybePromise<CopilotKitRuntimeUser>;
197
284
  type MemoryAccess = "none" | "read" | "read-write";
198
285
  interface MemoryGrant {
199
286
  readonly user: MemoryAccess;
200
287
  readonly project: MemoryAccess;
201
288
  }
202
289
  type MemoryConsumer = "agent" | "client";
203
- interface CopilotRuntimeMemoryConfig {
290
+ interface CopilotKitRuntimeMemoryConfig {
204
291
  /** Resolves immutable Memory access for one authenticated web request. */
205
292
  access(input: {
206
293
  readonly request: Request;
207
- readonly user: CopilotRuntimeUser;
294
+ readonly user: CopilotKitRuntimeUser;
208
295
  readonly consumer: MemoryConsumer;
209
296
  }): MaybePromise<MemoryGrant | null>;
210
297
  }
211
- interface CopilotSseRuntimeOptions extends BaseCopilotRuntimeOptions {
298
+ interface CopilotKitSseRuntimeOptions extends BaseCopilotRuntimeOptions {
212
299
  /** The runner to use for running agents in SSE mode. */
213
300
  runner?: AgentRunner;
214
301
  /**
@@ -218,6 +305,12 @@ interface CopilotSseRuntimeOptions extends BaseCopilotRuntimeOptions {
218
305
  * (InMemoryAgentRunner and SqliteAgentRunner do); with a runner that does
219
306
  * not, those requests are refused. See `threads`.
220
307
  *
308
+ * Listing, reading and clearing Threads over HTTP need a runner that serves
309
+ * the local Thread endpoints (InMemoryAgentRunner does). SqliteAgentRunner
310
+ * does not serve them: with it, list and read requests fail and a clear
311
+ * request does nothing. Its Threads can still be continued, replayed by
312
+ * connecting, and stopped by their owner.
313
+ *
221
314
  * Threads that SqliteAgentRunner stored before it recorded owners belong to
222
315
  * nobody: as before the upgrade, whoever holds such a Thread's id can reach
223
316
  * it, and continuing it does not claim it. The runner logs how many it holds
@@ -237,7 +330,7 @@ interface CopilotIntelligenceRuntimeBaseOptions extends BaseCopilotRuntimeOption
237
330
  * Chooses one stable Learning Container ID for each web or Channel run.
238
331
  * @deprecated Configure `getLearningContainerId` on `CopilotKitIntelligence`.
239
332
  */
240
- ɵlearning?: CopilotRuntimeLearningConfig;
333
+ ɵlearning?: CopilotKitRuntimeLearningConfig;
241
334
  /** Auto-generate short names for newly created threads. */
242
335
  generateThreadNames?: boolean;
243
336
  /** Max delay (ms) for WebSocket reconnect backoff. @default 10_000 */
@@ -259,26 +352,25 @@ interface CopilotIntelligenceRuntimeBaseOptions extends BaseCopilotRuntimeOption
259
352
  }
260
353
  type NonEmptyChannels = readonly [Channel, ...Channel[]];
261
354
  /** Intelligence runtime options with web identity, Channels, or both. */
262
- type CopilotIntelligenceRuntimeOptions = CopilotIntelligenceRuntimeBaseOptions & ({
355
+ type CopilotKitIntelligenceRuntimeOptions = CopilotIntelligenceRuntimeBaseOptions & ({
263
356
  /** Resolves the authenticated user for web requests. */identifyUser: IdentifyUserCallback; /** Enables agent and browser Memory under one request policy. */
264
- memory?: CopilotRuntimeMemoryConfig;
357
+ memory?: CopilotKitRuntimeMemoryConfig;
265
358
  channels?: readonly Channel[];
266
359
  } | {
267
360
  /** Channels-only runtimes expose no functional web surface. */identifyUser?: undefined;
268
361
  memory?: undefined;
269
362
  channels: NonEmptyChannels;
270
363
  });
271
- type CopilotRuntimeOptions = CopilotSseRuntimeOptions | CopilotIntelligenceRuntimeOptions;
272
- interface CopilotRuntimeLike {
273
- agents: CopilotRuntimeOptions["agents"];
274
- transcriptionService: CopilotRuntimeOptions["transcriptionService"];
275
- beforeRequestMiddleware: CopilotRuntimeOptions["beforeRequestMiddleware"];
276
- afterRequestMiddleware: CopilotRuntimeOptions["afterRequestMiddleware"];
364
+ type CopilotKitRuntimeOptions = CopilotKitSseRuntimeOptions | CopilotKitIntelligenceRuntimeOptions;
365
+ interface CopilotKitRuntimeLike {
366
+ agents: CopilotKitRuntimeOptions["agents"];
367
+ transcriptionService: CopilotKitRuntimeOptions["transcriptionService"];
368
+ beforeRequestMiddleware: CopilotKitRuntimeOptions["beforeRequestMiddleware"];
369
+ afterRequestMiddleware: CopilotKitRuntimeOptions["afterRequestMiddleware"];
277
370
  runner: AgentRunner;
278
- a2ui: CopilotRuntimeOptions["a2ui"];
279
- mcpApps: CopilotRuntimeOptions["mcpApps"];
280
- openGenerativeUI: CopilotRuntimeOptions["openGenerativeUI"];
281
- generativeUI?: CopilotRuntimeOptions["generativeUI"];
371
+ mcpApps: CopilotKitRuntimeOptions["mcpApps"];
372
+ openGenerativeUI: CopilotKitRuntimeOptions["openGenerativeUI"];
373
+ generativeUI?: CopilotKitRuntimeOptions["generativeUI"];
282
374
  intelligence?: CopilotKitIntelligence;
283
375
  identifyUser?: IdentifyUserCallback;
284
376
  mode: RuntimeMode;
@@ -291,7 +383,13 @@ interface CopilotRuntimeLike {
291
383
  getLicenseChecker?(): Promise<LicenseChecker | undefined>;
292
384
  debugEventBus?: DebugEventBus;
293
385
  debug: ResolvedDebugConfig;
294
- debugLogger?: CopilotRuntimeLogger;
386
+ debugLogger?: CopilotKitRuntimeLogger;
387
+ /**
388
+ * The logger the runtime writes to. Optional so external implementations of
389
+ * this published interface remain source-compatible; a missing value means
390
+ * the console.
391
+ */
392
+ logger?: CopilotKitRuntimeLogger;
295
393
  /**
296
394
  * Runtime-bound telemetry capture. Optional so external implementations of
297
395
  * this published interface remain source-compatible.
@@ -299,7 +397,7 @@ interface CopilotRuntimeLike {
299
397
  telemetry?: TelemetryCapture;
300
398
  /**
301
399
  * Resolved inbound-header forwarding policy read by the /run and /connect call
302
- * sites. Optional on the published interface so an external `CopilotRuntimeLike`
400
+ * sites. Optional on the published interface so an external `CopilotKitRuntimeLike`
303
401
  * implementor predating this field stays source-compatible (non-breaking minor
304
402
  * release). Concrete runtimes (`BaseCopilotRuntime`) always resolve and set it;
305
403
  * the call sites coalesce a missing value to the default resolved policy
@@ -314,7 +412,7 @@ interface CopilotRuntimeLike {
314
412
  sseKeepAliveIntervalSeconds?: number;
315
413
  /**
316
414
  * Resolved opt-in flag for the client-facing memory proxy routes. Optional on
317
- * the published interface so an external `CopilotRuntimeLike` implementor
415
+ * the published interface so an external `CopilotKitRuntimeLike` implementor
318
416
  * predating this field stays source-compatible; the dispatcher coalesces a
319
417
  * missing value to `false` (secure default — routes hidden). Concrete runtimes
320
418
  * (`BaseCopilotRuntime`) always resolve and set it.
@@ -326,14 +424,14 @@ interface CopilotRuntimeLike {
326
424
  * the default (`DEFAULT_THREAD_ACCESS`).
327
425
  */
328
426
  threadAccess?: ThreadAccessMode;
329
- memory?: CopilotRuntimeMemoryConfig;
330
- learning?: CopilotRuntimeLearningConfig;
427
+ memory?: CopilotKitRuntimeMemoryConfig;
428
+ learning?: CopilotKitRuntimeLearningConfig;
331
429
  }
332
- interface CopilotSseRuntimeLike extends CopilotRuntimeLike {
430
+ interface CopilotKitSseRuntimeLike extends CopilotKitRuntimeLike {
333
431
  intelligence?: undefined;
334
432
  mode: typeof RUNTIME_MODE_SSE;
335
433
  }
336
- interface CopilotIntelligenceRuntimeLike extends CopilotRuntimeLike {
434
+ interface CopilotKitIntelligenceRuntimeLike extends CopilotKitRuntimeLike {
337
435
  intelligence: CopilotKitIntelligence;
338
436
  identifyUser?: IdentifyUserCallback;
339
437
  generateThreadNames: boolean;
@@ -341,32 +439,32 @@ interface CopilotIntelligenceRuntimeLike extends CopilotRuntimeLike {
341
439
  lockKeyPrefix?: string;
342
440
  lockHeartbeatIntervalSeconds: number;
343
441
  channels: Channel[];
344
- learning?: CopilotRuntimeLearningConfig;
442
+ learning?: CopilotKitRuntimeLearningConfig;
345
443
  mode: typeof RUNTIME_MODE_INTELLIGENCE;
346
444
  }
347
- declare abstract class BaseCopilotRuntime implements CopilotRuntimeLike {
348
- agents: CopilotRuntimeOptions["agents"];
349
- transcriptionService: CopilotRuntimeOptions["transcriptionService"];
350
- beforeRequestMiddleware: CopilotRuntimeOptions["beforeRequestMiddleware"];
351
- afterRequestMiddleware: CopilotRuntimeOptions["afterRequestMiddleware"];
445
+ declare abstract class BaseCopilotRuntime implements CopilotKitRuntimeLike {
446
+ agents: CopilotKitRuntimeOptions["agents"];
447
+ transcriptionService: CopilotKitRuntimeOptions["transcriptionService"];
448
+ beforeRequestMiddleware: CopilotKitRuntimeOptions["beforeRequestMiddleware"];
449
+ afterRequestMiddleware: CopilotKitRuntimeOptions["afterRequestMiddleware"];
352
450
  runner: AgentRunner;
353
- a2ui: CopilotRuntimeOptions["a2ui"];
354
- mcpApps: CopilotRuntimeOptions["mcpApps"];
355
- openGenerativeUI: CopilotRuntimeOptions["openGenerativeUI"];
356
- generativeUI: CopilotRuntimeOptions["generativeUI"];
451
+ mcpApps: CopilotKitRuntimeOptions["mcpApps"];
452
+ openGenerativeUI: CopilotKitRuntimeOptions["openGenerativeUI"];
453
+ generativeUI: CopilotKitRuntimeOptions["generativeUI"];
357
454
  readonly debugEventBus?: DebugEventBus;
358
455
  debug: ResolvedDebugConfig;
359
- debugLogger?: CopilotRuntimeLogger;
456
+ debugLogger?: CopilotKitRuntimeLogger;
457
+ readonly logger: CopilotKitRuntimeLogger;
360
458
  readonly telemetry: TelemetryCapture;
361
459
  readonly forwardHeadersPolicy: ResolvedForwardHeadersPolicy;
362
460
  readonly sseKeepAliveIntervalSeconds: number;
363
461
  readonly exposeMemoryRoutes: boolean;
364
462
  readonly threadAccess: ThreadAccessMode;
365
- readonly memory?: CopilotRuntimeMemoryConfig;
463
+ readonly memory?: CopilotKitRuntimeMemoryConfig;
366
464
  /**
367
465
  * License token resolved once with the env fallback, so telemetry
368
466
  * attribution (below) and subclass feature gating
369
- * (CopilotIntelligenceRuntime's getLicenseChecker) read the exact same value
467
+ * (CopilotKitIntelligenceRuntime's getLicenseChecker) read the exact same value
370
468
  * instead of each re-applying `?? COPILOTKIT_LICENSE_TOKEN`.
371
469
  */
372
470
  protected readonly resolvedLicenseToken?: string;
@@ -376,13 +474,13 @@ declare abstract class BaseCopilotRuntime implements CopilotRuntimeLike {
376
474
  getLicenseChecker(): Promise<LicenseChecker | undefined>;
377
475
  constructor(options: BaseCopilotRuntimeOptions, runner: AgentRunner);
378
476
  }
379
- declare class CopilotSseRuntime extends BaseCopilotRuntime implements CopilotSseRuntimeLike {
477
+ declare class CopilotKitSseRuntime extends BaseCopilotRuntime implements CopilotKitSseRuntimeLike {
380
478
  readonly intelligence: any;
381
479
  readonly mode: "sse";
382
480
  readonly identifyUser?: IdentifyUserCallback;
383
- constructor(options: CopilotSseRuntimeOptions);
481
+ constructor(options: CopilotKitSseRuntimeOptions);
384
482
  }
385
- declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements CopilotIntelligenceRuntimeLike {
483
+ declare class CopilotKitIntelligenceRuntime extends BaseCopilotRuntime implements CopilotKitIntelligenceRuntimeLike {
386
484
  readonly intelligence: CopilotKitIntelligence;
387
485
  readonly identifyUser?: IdentifyUserCallback;
388
486
  readonly generateThreadNames: boolean;
@@ -390,14 +488,14 @@ declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements C
390
488
  readonly lockKeyPrefix?: string;
391
489
  readonly lockHeartbeatIntervalSeconds: number;
392
490
  readonly channels: Channel[];
393
- readonly learning?: CopilotRuntimeLearningConfig;
491
+ readonly learning?: CopilotKitRuntimeLearningConfig;
394
492
  readonly mode: "intelligence";
395
493
  private licenseCheckerPromise?;
396
494
  /** Maximum allowed lock TTL in seconds (1 hour). */
397
495
  static readonly MAX_LOCK_TTL_SECONDS = 3600;
398
496
  /** Maximum allowed heartbeat interval in seconds (50 minutes). */
399
497
  static readonly MAX_HEARTBEAT_INTERVAL_SECONDS = 3000;
400
- constructor(options: CopilotIntelligenceRuntimeOptions);
498
+ constructor(options: CopilotKitIntelligenceRuntimeOptions);
401
499
  /**
402
500
  * Verify the license token on first use, then reuse the result. Not done in
403
501
  * the constructor: edge-safe (Web Crypto) verification is async, and
@@ -407,23 +505,12 @@ declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements C
407
505
  */
408
506
  getLicenseChecker(): Promise<LicenseChecker>;
409
507
  }
410
- declare function isIntelligenceRuntime(runtime: CopilotRuntimeLike): runtime is CopilotIntelligenceRuntimeLike;
411
- /**
412
- * Single source of truth for "is A2UI on for this runtime?". Both the run path
413
- * (which applies `A2UIMiddleware`) and the `/info` response (which tells the
414
- * client whether to mount the A2UI renderer + catalog context) MUST go through
415
- * this, so they can never disagree — the divergence between them was the root
416
- * of CopilotKit/CopilotKit#5369.
417
- *
418
- * Backwards compatible: any config object is enabled (matching the historical
419
- * `!!runtime.a2ui`); only an explicit `enabled: false` turns it off.
420
- */
421
- declare function isA2UIEnabled(a2ui: CopilotRuntimeOptions["a2ui"]): a2ui is NonNullable<CopilotRuntimeOptions["a2ui"]>;
508
+ declare function isIntelligenceRuntime(runtime: CopilotKitRuntimeLike): runtime is CopilotKitIntelligenceRuntimeLike;
422
509
  /**
423
- * Compile-time phantom brand marking a {@link CopilotRuntime} that was
510
+ * Compile-time phantom brand marking a {@link CopilotKitRuntime} that was
424
511
  * constructed with at least one declared Intelligence Channel. It has no runtime
425
512
  * representation — the shim never sets this property; it exists purely so
426
- * `createCopilotRuntimeHandler` can tell, at the type level, that the resulting
513
+ * `createCopilotKitRuntimeHandler` can tell, at the type level, that the resulting
427
514
  * handler will carry a non-optional `.channels` control surface.
428
515
  */
429
516
  interface RuntimeWithDeclaredChannels {
@@ -433,12 +520,12 @@ interface RuntimeWithDeclaredChannels {
433
520
  readonly __copilotkitChannelsDeclared: true;
434
521
  }
435
522
  /**
436
- * Instance shape of the {@link CopilotRuntime} compatibility shim. Extends
437
- * {@link CopilotRuntimeLike} with the Intelligence-only accessors the shim
523
+ * Instance shape of the {@link CopilotKitRuntime} compatibility shim. Extends
524
+ * {@link CopilotKitRuntimeLike} with the Intelligence-only accessors the shim
438
525
  * surfaces (all `undefined` in SSE mode). Declared explicitly so the exported
439
- * `CopilotRuntime` name resolves as a type as well as a value.
526
+ * `CopilotKitRuntime` name resolves as a type as well as a value.
440
527
  */
441
- interface CopilotRuntime extends CopilotRuntimeLike {
528
+ interface CopilotKitRuntime extends CopilotKitRuntimeLike {
442
529
  /** Telemetry capture bound to this runtime's construction-time identity. */
443
530
  telemetry: TelemetryCapture;
444
531
  /** Auto-generate short thread names; `undefined` in SSE mode. */
@@ -452,14 +539,14 @@ interface CopilotRuntime extends CopilotRuntimeLike {
452
539
  /** Declared Intelligence Channels; `undefined` in SSE mode. */
453
540
  channels?: Channel[];
454
541
  /** Learning Container selector; `undefined` in SSE mode. */
455
- learning?: CopilotRuntimeLearningConfig;
542
+ learning?: CopilotKitRuntimeLearningConfig;
456
543
  }
457
544
  /**
458
- * Constructor type for the {@link CopilotRuntime} compatibility shim.
545
+ * Constructor type for the {@link CopilotKitRuntime} compatibility shim.
459
546
  *
460
547
  * The first overload fires when the caller passes `intelligence` together with a
461
548
  * non-empty `channels` tuple: it returns a {@link RuntimeWithDeclaredChannels}-
462
- * branded runtime, which `createCopilotRuntimeHandler` maps to a handler whose
549
+ * branded runtime, which `createCopilotKitRuntimeHandler` maps to a handler whose
463
550
  * `.channels` is non-optional. Every other configuration (SSE, or Intelligence
464
551
  * without channels, or an empty `channels: []`) falls through to the second
465
552
  * overload and stays unbranded, so its handler keeps `.channels` optional.
@@ -468,30 +555,30 @@ interface CopilotRuntime extends CopilotRuntimeLike {
468
555
  * to the instance type), so the branding lives on this construct-signature
469
556
  * interface instead of on the class itself.
470
557
  */
471
- interface CopilotRuntimeConstructor {
558
+ interface CopilotKitRuntimeConstructor {
472
559
  new (options: CopilotIntelligenceRuntimeBaseOptions & ({
473
560
  identifyUser: IdentifyUserCallback;
474
- memory?: CopilotRuntimeMemoryConfig;
561
+ memory?: CopilotKitRuntimeMemoryConfig;
475
562
  channels: NonEmptyChannels;
476
563
  } | {
477
564
  identifyUser?: undefined;
478
565
  memory?: undefined;
479
566
  channels: NonEmptyChannels;
480
- })): CopilotRuntime & RuntimeWithDeclaredChannels;
481
- new (options: CopilotRuntimeOptions): CopilotRuntime;
567
+ })): CopilotKitRuntime & RuntimeWithDeclaredChannels;
568
+ new (options: CopilotKitRuntimeOptions): CopilotKitRuntime;
482
569
  }
483
570
  /**
484
- * The public `CopilotRuntime` constructor. Backed by {@link CopilotRuntimeShim}
485
- * but typed as {@link CopilotRuntimeConstructor} so that constructing with a
571
+ * The public `CopilotKitRuntime` constructor. Backed by {@link CopilotRuntimeShim}
572
+ * but typed as {@link CopilotKitRuntimeConstructor} so that constructing with a
486
573
  * non-empty `channels` array yields a {@link RuntimeWithDeclaredChannels}-branded
487
574
  * runtime type.
488
575
  *
489
576
  * The `as unknown as` cast is required (not dishonest widening): the brand is a
490
577
  * phantom, compile-time-only marker with no runtime representation, so the shim
491
578
  * instances legitimately do not carry the brand property. Behavior is identical
492
- * to the former `class CopilotRuntime` — this only refines the static type.
579
+ * to the former `class CopilotKitRuntime` — this only refines the static type.
493
580
  */
494
- declare const CopilotRuntime: CopilotRuntimeConstructor;
581
+ declare const CopilotKitRuntime: CopilotKitRuntimeConstructor;
495
582
  //#endregion
496
- export { AgentFactoryContext, AgentsConfig, AgentsFactory, CopilotIntelligenceRuntime, CopilotIntelligenceRuntimeLike, CopilotIntelligenceRuntimeOptions, CopilotRuntime, CopilotRuntimeConstructor, CopilotRuntimeLike, CopilotRuntimeMemoryConfig, CopilotRuntimeOptions, CopilotSseRuntime, CopilotSseRuntimeLike, CopilotSseRuntimeOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, OpenGenerativeUIConfig, OpenGenerativeUIOptions, RuntimeWithDeclaredChannels, VERSION, isA2UIEnabled, isIntelligenceRuntime, resolveAgents };
583
+ export { A2UIVersion, AgentFactoryContext, AgentsConfig, AgentsFactory, CopilotKitIntelligenceRuntime, CopilotKitIntelligenceRuntimeLike, CopilotKitIntelligenceRuntimeOptions, CopilotKitRuntime, CopilotKitRuntimeConstructor, CopilotKitRuntimeLike, CopilotKitRuntimeMemoryConfig, CopilotKitRuntimeOptions, CopilotKitSseRuntime, CopilotKitSseRuntimeLike, CopilotKitSseRuntimeOptions, GenerativeUIOptions, IdentifyUserCallback, McpAppsConfig, McpAppsServerConfig, MemoryAccess, MemoryConsumer, MemoryGrant, OpenGenerativeUIConfig, OpenGenerativeUIOptions, RuntimeWithDeclaredChannels, VERSION, isIntelligenceRuntime, resolveAgents };
497
584
  //# sourceMappingURL=runtime.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.cts","names":[],"sources":["../../../src/runtime/core/runtime.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAkFa,OAAA;AAAA,UAEH,mCAAA;EAFoC;EAI5C,MAAA;AAAA;;KAIU,mBAAA,GAAsB,eAAA;EAJhC,6FAMA,OAAA,GAAU,MAAA,kBAFA;EAIV,OAAA;AAAA;AAAA,UAGe,aAAA;EAPiB;EAShC,OAAA,EAAS,mBAAA;AAAA;AAAA,UAGM,uBAAA,SAAgC,mCAAA;AAAA,KAErC,sBAAA,aAAmC,uBAAA;AAAA,UAErC,yBAAA;EAToB;;;;EAc5B,IAAA,GAAO,mCAAA,GACL,oBAAA;IAVqC;;;;AAEzC;;IAeM,OAAA;EAAA;EAfgE;EAkBpE,OAAA,GAAU,aAAA;EAhBuB;EAkBjC,gBAAA,GAAmB,sBAAA;EAbZ;;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