@copilotkit/runtime 2.0.0-rc.5 → 2.0.0-rc.51

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 +27 -27
  63. package/dist/index.d.cts +15 -15
  64. package/dist/index.d.mts +15 -15
  65. package/dist/index.mjs +9 -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 +3 -2
  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 +24 -13
  93. package/dist/runtime/core/fetch-handler.cjs.map +1 -1
  94. package/dist/runtime/core/fetch-handler.d.cts +35 -14
  95. package/dist/runtime/core/fetch-handler.d.cts.map +1 -1
  96. package/dist/runtime/core/fetch-handler.d.mts +35 -14
  97. package/dist/runtime/core/fetch-handler.d.mts.map +1 -1
  98. package/dist/runtime/core/fetch-handler.mjs +16 -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 +29 -46
  139. package/dist/runtime/core/runtime.cjs.map +1 -1
  140. package/dist/runtime/core/runtime.d.cts +157 -91
  141. package/dist/runtime/core/runtime.d.cts.map +1 -1
  142. package/dist/runtime/core/runtime.d.mts +157 -91
  143. package/dist/runtime/core/runtime.d.mts.map +1 -1
  144. package/dist/runtime/core/runtime.mjs +27 -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 +11 -7
  151. package/dist/runtime/endpoints/node-fetch-handler.cjs.map +1 -1
  152. package/dist/runtime/endpoints/node-fetch-handler.d.cts +9 -5
  153. package/dist/runtime/endpoints/node-fetch-handler.d.cts.map +1 -1
  154. package/dist/runtime/endpoints/node-fetch-handler.d.mts +9 -5
  155. package/dist/runtime/endpoints/node-fetch-handler.d.mts.map +1 -1
  156. package/dist/runtime/endpoints/node-fetch-handler.mjs +10 -5
  157. package/dist/runtime/endpoints/node-fetch-handler.mjs.map +1 -1
  158. package/dist/runtime/endpoints/node.cjs +14 -4
  159. package/dist/runtime/endpoints/node.cjs.map +1 -1
  160. package/dist/runtime/endpoints/node.d.cts +39 -16
  161. package/dist/runtime/endpoints/node.d.cts.map +1 -1
  162. package/dist/runtime/endpoints/node.d.mts +39 -16
  163. package/dist/runtime/endpoints/node.d.mts.map +1 -1
  164. package/dist/runtime/endpoints/node.mjs +16 -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.cjs +29 -0
  308. package/dist/runtime/index.cjs.map +1 -0
  309. package/dist/runtime/index.d.cts +61 -15
  310. package/dist/runtime/index.d.cts.map +1 -1
  311. package/dist/runtime/index.d.mts +61 -15
  312. package/dist/runtime/index.d.mts.map +1 -1
  313. package/dist/runtime/index.mjs +27 -0
  314. package/dist/runtime/index.mjs.map +1 -0
  315. package/dist/runtime/intelligence-platform/analytics-context.cjs +84 -0
  316. package/dist/runtime/intelligence-platform/analytics-context.cjs.map +1 -0
  317. package/dist/runtime/intelligence-platform/analytics-context.mjs +83 -0
  318. package/dist/runtime/intelligence-platform/analytics-context.mjs.map +1 -0
  319. package/dist/runtime/intelligence-platform/client.cjs +30 -4
  320. package/dist/runtime/intelligence-platform/client.cjs.map +1 -1
  321. package/dist/runtime/intelligence-platform/client.d.cts +25 -2
  322. package/dist/runtime/intelligence-platform/client.d.cts.map +1 -1
  323. package/dist/runtime/intelligence-platform/client.d.mts +25 -2
  324. package/dist/runtime/intelligence-platform/client.d.mts.map +1 -1
  325. package/dist/runtime/intelligence-platform/client.mjs +30 -3
  326. package/dist/runtime/intelligence-platform/client.mjs.map +1 -1
  327. package/dist/runtime/intelligence-platform/learning-management.cjs +7 -8
  328. package/dist/runtime/intelligence-platform/learning-management.cjs.map +1 -1
  329. package/dist/runtime/intelligence-platform/learning-management.mjs +7 -7
  330. package/dist/runtime/intelligence-platform/learning-management.mjs.map +1 -1
  331. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs +104 -110
  332. package/dist/runtime/intelligence-platform/skill-registry/archive.cjs.map +1 -1
  333. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts +8 -2
  334. package/dist/runtime/intelligence-platform/skill-registry/archive.d.cts.map +1 -1
  335. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts +8 -2
  336. package/dist/runtime/intelligence-platform/skill-registry/archive.d.mts.map +1 -1
  337. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs +104 -109
  338. package/dist/runtime/intelligence-platform/skill-registry/archive.mjs.map +1 -1
  339. package/dist/runtime/intelligence-platform/skill-registry/config.cjs +0 -1
  340. package/dist/runtime/intelligence-platform/skill-registry/config.cjs.map +1 -1
  341. package/dist/runtime/intelligence-platform/skill-registry/index.d.cts +1 -1
  342. package/dist/runtime/intelligence-platform/skill-registry/index.d.mts +1 -1
  343. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs +22 -19
  344. package/dist/runtime/intelligence-platform/skill-registry/registry.cjs.map +1 -1
  345. package/dist/runtime/intelligence-platform/skill-registry/registry.d.cts.map +1 -1
  346. package/dist/runtime/intelligence-platform/skill-registry/registry.d.mts.map +1 -1
  347. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs +22 -19
  348. package/dist/runtime/intelligence-platform/skill-registry/registry.mjs.map +1 -1
  349. package/dist/runtime/intelligence-platform/stop-run.cjs +50 -0
  350. package/dist/runtime/intelligence-platform/stop-run.cjs.map +1 -0
  351. package/dist/runtime/intelligence-platform/stop-run.mjs +50 -0
  352. package/dist/runtime/intelligence-platform/stop-run.mjs.map +1 -0
  353. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs +3 -3
  354. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.cjs.map +1 -1
  355. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs +2 -1
  356. package/dist/runtime/intelligence-platform/thread-lock-heartbeat.mjs.map +1 -1
  357. package/dist/runtime/intelligence-platform/trajectories.cjs +2 -3
  358. package/dist/runtime/intelligence-platform/trajectories.cjs.map +1 -1
  359. package/dist/runtime/intelligence-platform/trajectories.mjs +2 -2
  360. package/dist/runtime/intelligence-platform/trajectories.mjs.map +1 -1
  361. package/dist/runtime/node.d.cts +2 -2
  362. package/dist/runtime/node.d.mts +2 -2
  363. package/dist/runtime/runner/agent-runner.cjs +0 -1
  364. package/dist/runtime/runner/agent-runner.cjs.map +1 -1
  365. package/dist/runtime/runner/agent-runner.d.cts +9 -0
  366. package/dist/runtime/runner/agent-runner.d.cts.map +1 -1
  367. package/dist/runtime/runner/agent-runner.d.mts +9 -0
  368. package/dist/runtime/runner/agent-runner.d.mts.map +1 -1
  369. package/dist/runtime/runner/agent-runner.mjs.map +1 -1
  370. package/dist/runtime/runner/in-memory.cjs +0 -1
  371. package/dist/runtime/runner/in-memory.cjs.map +1 -1
  372. package/dist/runtime/runner/index.d.cts +1 -1
  373. package/dist/runtime/runner/index.d.mts +1 -1
  374. package/dist/runtime/runner/index.mjs +1 -1
  375. package/dist/runtime/runner/intelligence.cjs +55 -9
  376. package/dist/runtime/runner/intelligence.cjs.map +1 -1
  377. package/dist/runtime/runner/intelligence.d.cts +12 -1
  378. package/dist/runtime/runner/intelligence.d.cts.map +1 -1
  379. package/dist/runtime/runner/intelligence.d.mts +12 -1
  380. package/dist/runtime/runner/intelligence.d.mts.map +1 -1
  381. package/dist/runtime/runner/intelligence.mjs +56 -10
  382. package/dist/runtime/runner/intelligence.mjs.map +1 -1
  383. package/dist/runtime/telemetry/disclosure.cjs +2 -3
  384. package/dist/runtime/telemetry/disclosure.cjs.map +1 -1
  385. package/dist/runtime/telemetry/disclosure.mjs +3 -3
  386. package/dist/runtime/telemetry/disclosure.mjs.map +1 -1
  387. package/dist/runtime/telemetry/events.d.cts +1 -1
  388. package/dist/runtime/telemetry/events.d.mts +1 -1
  389. package/dist/runtime/telemetry/instance-created.cjs +33 -12
  390. package/dist/runtime/telemetry/instance-created.cjs.map +1 -1
  391. package/dist/runtime/telemetry/instance-created.mjs +33 -12
  392. package/dist/runtime/telemetry/instance-created.mjs.map +1 -1
  393. package/dist/runtime/telemetry/telemetry-client.cjs +0 -5
  394. package/dist/runtime/telemetry/telemetry-client.cjs.map +1 -1
  395. package/dist/runtime/telemetry/telemetry-client.mjs +0 -4
  396. package/dist/runtime/telemetry/telemetry-client.mjs.map +1 -1
  397. package/dist/runtime/telemetry/telemetry-identity.cjs +0 -1
  398. package/dist/runtime/telemetry/telemetry-identity.cjs.map +1 -1
  399. package/package.json +54 -29
  400. package/dist/_virtual/_rolldown/runtime.cjs +0 -29
  401. package/dist/agent/converters/index.d.mts +0 -2
  402. package/dist/agent/index.cjs +0 -1328
  403. package/dist/agent/index.cjs.map +0 -1
  404. package/dist/agent/index.d.cts +0 -467
  405. package/dist/agent/index.d.cts.map +0 -1
  406. package/dist/agent/index.d.mts +0 -468
  407. package/dist/agent/index.d.mts.map +0 -1
  408. package/dist/agent/index.mjs +0 -1318
  409. package/dist/agent/index.mjs.map +0 -1
  410. package/dist/agent/mcp-tool-names.cjs +0 -82
  411. package/dist/agent/mcp-tool-names.cjs.map +0 -1
  412. package/dist/agent/mcp-tool-names.mjs +0 -80
  413. package/dist/agent/mcp-tool-names.mjs.map +0 -1
  414. package/dist/agent/url-download.cjs.map +0 -1
  415. package/dist/agent/url-download.d.cts.map +0 -1
  416. package/dist/agent/url-download.d.mts.map +0 -1
  417. package/dist/agent/url-download.mjs.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,98 @@ 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>;
71
+ /**
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.
75
+ */
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"];
37
82
  /**
38
- * Auto-apply A2UIMiddleware to agents at run time.
39
- * Pass an object to enable and customise behaviour, or omit to disable.
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.
40
87
  */
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
- };
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;
67
128
  }
68
129
  /**
69
130
  * Context passed to agent factory functions for per-request agent resolution.
@@ -141,6 +202,17 @@ interface BaseCopilotRuntimeOptions extends CopilotRuntimeMiddlewares {
141
202
  ɵtelemetry?: TelemetryCapture;
142
203
  /** Enable debug logging for the event pipeline. */
143
204
  debug?: DebugConfig;
205
+ /**
206
+ * Where the runtime writes its logs. Pass pino, `console`, or any object
207
+ * with pino-style `debug`, `info`, `warn` and `error` methods
208
+ * (`(message)` or `(fields, message)`). When `debug` is on, debug output
209
+ * goes to `logger.child({ component: "copilotkit-debug" })`, or to the
210
+ * logger itself when it has no `child`.
211
+ *
212
+ * Without it, the runtime writes to the console, and debug output is JSON
213
+ * lines on stdout.
214
+ */
215
+ logger?: CopilotKitRuntimeLogger;
144
216
  /**
145
217
  * Policy controlling which inbound HTTP headers are forwarded onto the
146
218
  * outgoing agent call. By default a built-in denylist strips known
@@ -193,22 +265,22 @@ interface BaseCopilotRuntimeOptions extends CopilotRuntimeMiddlewares {
193
265
  */
194
266
  threads?: ThreadsConfig;
195
267
  }
196
- type IdentifyUserCallback = (request: Request) => MaybePromise<CopilotRuntimeUser>;
268
+ type IdentifyUserCallback = (request: Request) => MaybePromise<CopilotKitRuntimeUser>;
197
269
  type MemoryAccess = "none" | "read" | "read-write";
198
270
  interface MemoryGrant {
199
271
  readonly user: MemoryAccess;
200
272
  readonly project: MemoryAccess;
201
273
  }
202
274
  type MemoryConsumer = "agent" | "client";
203
- interface CopilotRuntimeMemoryConfig {
275
+ interface CopilotKitRuntimeMemoryConfig {
204
276
  /** Resolves immutable Memory access for one authenticated web request. */
205
277
  access(input: {
206
278
  readonly request: Request;
207
- readonly user: CopilotRuntimeUser;
279
+ readonly user: CopilotKitRuntimeUser;
208
280
  readonly consumer: MemoryConsumer;
209
281
  }): MaybePromise<MemoryGrant | null>;
210
282
  }
211
- interface CopilotSseRuntimeOptions extends BaseCopilotRuntimeOptions {
283
+ interface CopilotKitSseRuntimeOptions extends BaseCopilotRuntimeOptions {
212
284
  /** The runner to use for running agents in SSE mode. */
213
285
  runner?: AgentRunner;
214
286
  /**
@@ -237,7 +309,7 @@ interface CopilotIntelligenceRuntimeBaseOptions extends BaseCopilotRuntimeOption
237
309
  * Chooses one stable Learning Container ID for each web or Channel run.
238
310
  * @deprecated Configure `getLearningContainerId` on `CopilotKitIntelligence`.
239
311
  */
240
- ɵlearning?: CopilotRuntimeLearningConfig;
312
+ ɵlearning?: CopilotKitRuntimeLearningConfig;
241
313
  /** Auto-generate short names for newly created threads. */
242
314
  generateThreadNames?: boolean;
243
315
  /** Max delay (ms) for WebSocket reconnect backoff. @default 10_000 */
@@ -259,26 +331,25 @@ interface CopilotIntelligenceRuntimeBaseOptions extends BaseCopilotRuntimeOption
259
331
  }
260
332
  type NonEmptyChannels = readonly [Channel, ...Channel[]];
261
333
  /** Intelligence runtime options with web identity, Channels, or both. */
262
- type CopilotIntelligenceRuntimeOptions = CopilotIntelligenceRuntimeBaseOptions & ({
334
+ type CopilotKitIntelligenceRuntimeOptions = CopilotIntelligenceRuntimeBaseOptions & ({
263
335
  /** Resolves the authenticated user for web requests. */identifyUser: IdentifyUserCallback; /** Enables agent and browser Memory under one request policy. */
264
- memory?: CopilotRuntimeMemoryConfig;
336
+ memory?: CopilotKitRuntimeMemoryConfig;
265
337
  channels?: readonly Channel[];
266
338
  } | {
267
339
  /** Channels-only runtimes expose no functional web surface. */identifyUser?: undefined;
268
340
  memory?: undefined;
269
341
  channels: NonEmptyChannels;
270
342
  });
271
- type CopilotRuntimeOptions = CopilotSseRuntimeOptions | CopilotIntelligenceRuntimeOptions;
272
- interface CopilotRuntimeLike {
273
- agents: CopilotRuntimeOptions["agents"];
274
- transcriptionService: CopilotRuntimeOptions["transcriptionService"];
275
- beforeRequestMiddleware: CopilotRuntimeOptions["beforeRequestMiddleware"];
276
- afterRequestMiddleware: CopilotRuntimeOptions["afterRequestMiddleware"];
343
+ type CopilotKitRuntimeOptions = CopilotKitSseRuntimeOptions | CopilotKitIntelligenceRuntimeOptions;
344
+ interface CopilotKitRuntimeLike {
345
+ agents: CopilotKitRuntimeOptions["agents"];
346
+ transcriptionService: CopilotKitRuntimeOptions["transcriptionService"];
347
+ beforeRequestMiddleware: CopilotKitRuntimeOptions["beforeRequestMiddleware"];
348
+ afterRequestMiddleware: CopilotKitRuntimeOptions["afterRequestMiddleware"];
277
349
  runner: AgentRunner;
278
- a2ui: CopilotRuntimeOptions["a2ui"];
279
- mcpApps: CopilotRuntimeOptions["mcpApps"];
280
- openGenerativeUI: CopilotRuntimeOptions["openGenerativeUI"];
281
- generativeUI?: CopilotRuntimeOptions["generativeUI"];
350
+ mcpApps: CopilotKitRuntimeOptions["mcpApps"];
351
+ openGenerativeUI: CopilotKitRuntimeOptions["openGenerativeUI"];
352
+ generativeUI?: CopilotKitRuntimeOptions["generativeUI"];
282
353
  intelligence?: CopilotKitIntelligence;
283
354
  identifyUser?: IdentifyUserCallback;
284
355
  mode: RuntimeMode;
@@ -291,7 +362,13 @@ interface CopilotRuntimeLike {
291
362
  getLicenseChecker?(): Promise<LicenseChecker | undefined>;
292
363
  debugEventBus?: DebugEventBus;
293
364
  debug: ResolvedDebugConfig;
294
- debugLogger?: CopilotRuntimeLogger;
365
+ debugLogger?: CopilotKitRuntimeLogger;
366
+ /**
367
+ * The logger the runtime writes to. Optional so external implementations of
368
+ * this published interface remain source-compatible; a missing value means
369
+ * the console.
370
+ */
371
+ logger?: CopilotKitRuntimeLogger;
295
372
  /**
296
373
  * Runtime-bound telemetry capture. Optional so external implementations of
297
374
  * this published interface remain source-compatible.
@@ -299,7 +376,7 @@ interface CopilotRuntimeLike {
299
376
  telemetry?: TelemetryCapture;
300
377
  /**
301
378
  * Resolved inbound-header forwarding policy read by the /run and /connect call
302
- * sites. Optional on the published interface so an external `CopilotRuntimeLike`
379
+ * sites. Optional on the published interface so an external `CopilotKitRuntimeLike`
303
380
  * implementor predating this field stays source-compatible (non-breaking minor
304
381
  * release). Concrete runtimes (`BaseCopilotRuntime`) always resolve and set it;
305
382
  * the call sites coalesce a missing value to the default resolved policy
@@ -314,7 +391,7 @@ interface CopilotRuntimeLike {
314
391
  sseKeepAliveIntervalSeconds?: number;
315
392
  /**
316
393
  * Resolved opt-in flag for the client-facing memory proxy routes. Optional on
317
- * the published interface so an external `CopilotRuntimeLike` implementor
394
+ * the published interface so an external `CopilotKitRuntimeLike` implementor
318
395
  * predating this field stays source-compatible; the dispatcher coalesces a
319
396
  * missing value to `false` (secure default — routes hidden). Concrete runtimes
320
397
  * (`BaseCopilotRuntime`) always resolve and set it.
@@ -326,14 +403,14 @@ interface CopilotRuntimeLike {
326
403
  * the default (`DEFAULT_THREAD_ACCESS`).
327
404
  */
328
405
  threadAccess?: ThreadAccessMode;
329
- memory?: CopilotRuntimeMemoryConfig;
330
- learning?: CopilotRuntimeLearningConfig;
406
+ memory?: CopilotKitRuntimeMemoryConfig;
407
+ learning?: CopilotKitRuntimeLearningConfig;
331
408
  }
332
- interface CopilotSseRuntimeLike extends CopilotRuntimeLike {
409
+ interface CopilotKitSseRuntimeLike extends CopilotKitRuntimeLike {
333
410
  intelligence?: undefined;
334
411
  mode: typeof RUNTIME_MODE_SSE;
335
412
  }
336
- interface CopilotIntelligenceRuntimeLike extends CopilotRuntimeLike {
413
+ interface CopilotKitIntelligenceRuntimeLike extends CopilotKitRuntimeLike {
337
414
  intelligence: CopilotKitIntelligence;
338
415
  identifyUser?: IdentifyUserCallback;
339
416
  generateThreadNames: boolean;
@@ -341,32 +418,32 @@ interface CopilotIntelligenceRuntimeLike extends CopilotRuntimeLike {
341
418
  lockKeyPrefix?: string;
342
419
  lockHeartbeatIntervalSeconds: number;
343
420
  channels: Channel[];
344
- learning?: CopilotRuntimeLearningConfig;
421
+ learning?: CopilotKitRuntimeLearningConfig;
345
422
  mode: typeof RUNTIME_MODE_INTELLIGENCE;
346
423
  }
347
- declare abstract class BaseCopilotRuntime implements CopilotRuntimeLike {
348
- agents: CopilotRuntimeOptions["agents"];
349
- transcriptionService: CopilotRuntimeOptions["transcriptionService"];
350
- beforeRequestMiddleware: CopilotRuntimeOptions["beforeRequestMiddleware"];
351
- afterRequestMiddleware: CopilotRuntimeOptions["afterRequestMiddleware"];
424
+ declare abstract class BaseCopilotRuntime implements CopilotKitRuntimeLike {
425
+ agents: CopilotKitRuntimeOptions["agents"];
426
+ transcriptionService: CopilotKitRuntimeOptions["transcriptionService"];
427
+ beforeRequestMiddleware: CopilotKitRuntimeOptions["beforeRequestMiddleware"];
428
+ afterRequestMiddleware: CopilotKitRuntimeOptions["afterRequestMiddleware"];
352
429
  runner: AgentRunner;
353
- a2ui: CopilotRuntimeOptions["a2ui"];
354
- mcpApps: CopilotRuntimeOptions["mcpApps"];
355
- openGenerativeUI: CopilotRuntimeOptions["openGenerativeUI"];
356
- generativeUI: CopilotRuntimeOptions["generativeUI"];
430
+ mcpApps: CopilotKitRuntimeOptions["mcpApps"];
431
+ openGenerativeUI: CopilotKitRuntimeOptions["openGenerativeUI"];
432
+ generativeUI: CopilotKitRuntimeOptions["generativeUI"];
357
433
  readonly debugEventBus?: DebugEventBus;
358
434
  debug: ResolvedDebugConfig;
359
- debugLogger?: CopilotRuntimeLogger;
435
+ debugLogger?: CopilotKitRuntimeLogger;
436
+ readonly logger: CopilotKitRuntimeLogger;
360
437
  readonly telemetry: TelemetryCapture;
361
438
  readonly forwardHeadersPolicy: ResolvedForwardHeadersPolicy;
362
439
  readonly sseKeepAliveIntervalSeconds: number;
363
440
  readonly exposeMemoryRoutes: boolean;
364
441
  readonly threadAccess: ThreadAccessMode;
365
- readonly memory?: CopilotRuntimeMemoryConfig;
442
+ readonly memory?: CopilotKitRuntimeMemoryConfig;
366
443
  /**
367
444
  * License token resolved once with the env fallback, so telemetry
368
445
  * attribution (below) and subclass feature gating
369
- * (CopilotIntelligenceRuntime's getLicenseChecker) read the exact same value
446
+ * (CopilotKitIntelligenceRuntime's getLicenseChecker) read the exact same value
370
447
  * instead of each re-applying `?? COPILOTKIT_LICENSE_TOKEN`.
371
448
  */
372
449
  protected readonly resolvedLicenseToken?: string;
@@ -376,13 +453,13 @@ declare abstract class BaseCopilotRuntime implements CopilotRuntimeLike {
376
453
  getLicenseChecker(): Promise<LicenseChecker | undefined>;
377
454
  constructor(options: BaseCopilotRuntimeOptions, runner: AgentRunner);
378
455
  }
379
- declare class CopilotSseRuntime extends BaseCopilotRuntime implements CopilotSseRuntimeLike {
456
+ declare class CopilotKitSseRuntime extends BaseCopilotRuntime implements CopilotKitSseRuntimeLike {
380
457
  readonly intelligence: any;
381
458
  readonly mode: "sse";
382
459
  readonly identifyUser?: IdentifyUserCallback;
383
- constructor(options: CopilotSseRuntimeOptions);
460
+ constructor(options: CopilotKitSseRuntimeOptions);
384
461
  }
385
- declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements CopilotIntelligenceRuntimeLike {
462
+ declare class CopilotKitIntelligenceRuntime extends BaseCopilotRuntime implements CopilotKitIntelligenceRuntimeLike {
386
463
  readonly intelligence: CopilotKitIntelligence;
387
464
  readonly identifyUser?: IdentifyUserCallback;
388
465
  readonly generateThreadNames: boolean;
@@ -390,14 +467,14 @@ declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements C
390
467
  readonly lockKeyPrefix?: string;
391
468
  readonly lockHeartbeatIntervalSeconds: number;
392
469
  readonly channels: Channel[];
393
- readonly learning?: CopilotRuntimeLearningConfig;
470
+ readonly learning?: CopilotKitRuntimeLearningConfig;
394
471
  readonly mode: "intelligence";
395
472
  private licenseCheckerPromise?;
396
473
  /** Maximum allowed lock TTL in seconds (1 hour). */
397
474
  static readonly MAX_LOCK_TTL_SECONDS = 3600;
398
475
  /** Maximum allowed heartbeat interval in seconds (50 minutes). */
399
476
  static readonly MAX_HEARTBEAT_INTERVAL_SECONDS = 3000;
400
- constructor(options: CopilotIntelligenceRuntimeOptions);
477
+ constructor(options: CopilotKitIntelligenceRuntimeOptions);
401
478
  /**
402
479
  * Verify the license token on first use, then reuse the result. Not done in
403
480
  * the constructor: edge-safe (Web Crypto) verification is async, and
@@ -407,23 +484,12 @@ declare class CopilotIntelligenceRuntime extends BaseCopilotRuntime implements C
407
484
  */
408
485
  getLicenseChecker(): Promise<LicenseChecker>;
409
486
  }
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"]>;
487
+ declare function isIntelligenceRuntime(runtime: CopilotKitRuntimeLike): runtime is CopilotKitIntelligenceRuntimeLike;
422
488
  /**
423
- * Compile-time phantom brand marking a {@link CopilotRuntime} that was
489
+ * Compile-time phantom brand marking a {@link CopilotKitRuntime} that was
424
490
  * constructed with at least one declared Intelligence Channel. It has no runtime
425
491
  * representation — the shim never sets this property; it exists purely so
426
- * `createCopilotRuntimeHandler` can tell, at the type level, that the resulting
492
+ * `createCopilotKitRuntimeHandler` can tell, at the type level, that the resulting
427
493
  * handler will carry a non-optional `.channels` control surface.
428
494
  */
429
495
  interface RuntimeWithDeclaredChannels {
@@ -433,12 +499,12 @@ interface RuntimeWithDeclaredChannels {
433
499
  readonly __copilotkitChannelsDeclared: true;
434
500
  }
435
501
  /**
436
- * Instance shape of the {@link CopilotRuntime} compatibility shim. Extends
437
- * {@link CopilotRuntimeLike} with the Intelligence-only accessors the shim
502
+ * Instance shape of the {@link CopilotKitRuntime} compatibility shim. Extends
503
+ * {@link CopilotKitRuntimeLike} with the Intelligence-only accessors the shim
438
504
  * surfaces (all `undefined` in SSE mode). Declared explicitly so the exported
439
- * `CopilotRuntime` name resolves as a type as well as a value.
505
+ * `CopilotKitRuntime` name resolves as a type as well as a value.
440
506
  */
441
- interface CopilotRuntime extends CopilotRuntimeLike {
507
+ interface CopilotKitRuntime extends CopilotKitRuntimeLike {
442
508
  /** Telemetry capture bound to this runtime's construction-time identity. */
443
509
  telemetry: TelemetryCapture;
444
510
  /** Auto-generate short thread names; `undefined` in SSE mode. */
@@ -452,14 +518,14 @@ interface CopilotRuntime extends CopilotRuntimeLike {
452
518
  /** Declared Intelligence Channels; `undefined` in SSE mode. */
453
519
  channels?: Channel[];
454
520
  /** Learning Container selector; `undefined` in SSE mode. */
455
- learning?: CopilotRuntimeLearningConfig;
521
+ learning?: CopilotKitRuntimeLearningConfig;
456
522
  }
457
523
  /**
458
- * Constructor type for the {@link CopilotRuntime} compatibility shim.
524
+ * Constructor type for the {@link CopilotKitRuntime} compatibility shim.
459
525
  *
460
526
  * The first overload fires when the caller passes `intelligence` together with a
461
527
  * non-empty `channels` tuple: it returns a {@link RuntimeWithDeclaredChannels}-
462
- * branded runtime, which `createCopilotRuntimeHandler` maps to a handler whose
528
+ * branded runtime, which `createCopilotKitRuntimeHandler` maps to a handler whose
463
529
  * `.channels` is non-optional. Every other configuration (SSE, or Intelligence
464
530
  * without channels, or an empty `channels: []`) falls through to the second
465
531
  * overload and stays unbranded, so its handler keeps `.channels` optional.
@@ -468,30 +534,30 @@ interface CopilotRuntime extends CopilotRuntimeLike {
468
534
  * to the instance type), so the branding lives on this construct-signature
469
535
  * interface instead of on the class itself.
470
536
  */
471
- interface CopilotRuntimeConstructor {
537
+ interface CopilotKitRuntimeConstructor {
472
538
  new (options: CopilotIntelligenceRuntimeBaseOptions & ({
473
539
  identifyUser: IdentifyUserCallback;
474
- memory?: CopilotRuntimeMemoryConfig;
540
+ memory?: CopilotKitRuntimeMemoryConfig;
475
541
  channels: NonEmptyChannels;
476
542
  } | {
477
543
  identifyUser?: undefined;
478
544
  memory?: undefined;
479
545
  channels: NonEmptyChannels;
480
- })): CopilotRuntime & RuntimeWithDeclaredChannels;
481
- new (options: CopilotRuntimeOptions): CopilotRuntime;
546
+ })): CopilotKitRuntime & RuntimeWithDeclaredChannels;
547
+ new (options: CopilotKitRuntimeOptions): CopilotKitRuntime;
482
548
  }
483
549
  /**
484
- * The public `CopilotRuntime` constructor. Backed by {@link CopilotRuntimeShim}
485
- * but typed as {@link CopilotRuntimeConstructor} so that constructing with a
550
+ * The public `CopilotKitRuntime` constructor. Backed by {@link CopilotRuntimeShim}
551
+ * but typed as {@link CopilotKitRuntimeConstructor} so that constructing with a
486
552
  * non-empty `channels` array yields a {@link RuntimeWithDeclaredChannels}-branded
487
553
  * runtime type.
488
554
  *
489
555
  * The `as unknown as` cast is required (not dishonest widening): the brand is a
490
556
  * phantom, compile-time-only marker with no runtime representation, so the shim
491
557
  * instances legitimately do not carry the brand property. Behavior is identical
492
- * to the former `class CopilotRuntime` — this only refines the static type.
558
+ * to the former `class CopilotKitRuntime` — this only refines the static type.
493
559
  */
494
- declare const CopilotRuntime: CopilotRuntimeConstructor;
560
+ declare const CopilotKitRuntime: CopilotKitRuntimeConstructor;
495
561
  //#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 };
562
+ 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
563
  //# 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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