@copilotkit/runtime 0.0.0-main-20260220223427 → 0.0.0-main-20260402184302

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 (402) hide show
  1. package/CHANGELOG.md +462 -70
  2. package/dist/_virtual/_rolldown/runtime.mjs +25 -1
  3. package/dist/agent/index.cjs +654 -0
  4. package/dist/agent/index.cjs.map +1 -0
  5. package/dist/agent/index.d.cts +263 -0
  6. package/dist/agent/index.d.cts.map +1 -0
  7. package/dist/agent/index.d.mts +263 -0
  8. package/dist/agent/index.d.mts.map +1 -0
  9. package/dist/agent/index.mjs +646 -0
  10. package/dist/agent/index.mjs.map +1 -0
  11. package/dist/graphql/message-conversion/agui-to-gql.cjs +6 -2
  12. package/dist/graphql/message-conversion/agui-to-gql.cjs.map +1 -1
  13. package/dist/graphql/message-conversion/agui-to-gql.mjs +6 -2
  14. package/dist/graphql/message-conversion/agui-to-gql.mjs.map +1 -1
  15. package/dist/index.cjs +2 -0
  16. package/dist/index.d.cts +2 -1
  17. package/dist/index.d.mts +2 -1
  18. package/dist/index.mjs +2 -1
  19. package/dist/lib/integrations/nextjs/app-router.cjs +2 -2
  20. package/dist/lib/integrations/nextjs/app-router.cjs.map +1 -1
  21. package/dist/lib/integrations/nextjs/app-router.mjs +1 -1
  22. package/dist/lib/integrations/nextjs/app-router.mjs.map +1 -1
  23. package/dist/lib/integrations/node-http/index.cjs +2 -3
  24. package/dist/lib/integrations/node-http/index.cjs.map +1 -1
  25. package/dist/lib/integrations/node-http/index.mjs +1 -1
  26. package/dist/lib/integrations/node-http/index.mjs.map +1 -1
  27. package/dist/lib/integrations/shared.cjs +1 -1
  28. package/dist/lib/integrations/shared.cjs.map +1 -1
  29. package/dist/lib/integrations/shared.mjs +1 -1
  30. package/dist/lib/integrations/shared.mjs.map +1 -1
  31. package/dist/lib/runtime/agent-integrations/langgraph/agent.cjs +5 -2
  32. package/dist/lib/runtime/agent-integrations/langgraph/agent.cjs.map +1 -1
  33. package/dist/lib/runtime/agent-integrations/langgraph/agent.d.cts +36 -25
  34. package/dist/lib/runtime/agent-integrations/langgraph/agent.d.cts.map +1 -1
  35. package/dist/lib/runtime/agent-integrations/langgraph/agent.d.mts +37 -26
  36. package/dist/lib/runtime/agent-integrations/langgraph/agent.d.mts.map +1 -1
  37. package/dist/lib/runtime/agent-integrations/langgraph/agent.mjs +5 -2
  38. package/dist/lib/runtime/agent-integrations/langgraph/agent.mjs.map +1 -1
  39. package/dist/lib/runtime/copilot-runtime.cjs +13 -6
  40. package/dist/lib/runtime/copilot-runtime.cjs.map +1 -1
  41. package/dist/lib/runtime/copilot-runtime.d.cts +14 -8
  42. package/dist/lib/runtime/copilot-runtime.d.cts.map +1 -1
  43. package/dist/lib/runtime/copilot-runtime.d.mts +14 -8
  44. package/dist/lib/runtime/copilot-runtime.d.mts.map +1 -1
  45. package/dist/lib/runtime/copilot-runtime.mjs +14 -7
  46. package/dist/lib/runtime/copilot-runtime.mjs.map +1 -1
  47. package/dist/lib/runtime/telemetry-agent-runner.cjs +2 -2
  48. package/dist/lib/runtime/telemetry-agent-runner.cjs.map +1 -1
  49. package/dist/lib/runtime/telemetry-agent-runner.d.cts +2 -1
  50. package/dist/lib/runtime/telemetry-agent-runner.d.cts.map +1 -1
  51. package/dist/lib/runtime/telemetry-agent-runner.d.mts +2 -1
  52. package/dist/lib/runtime/telemetry-agent-runner.d.mts.map +1 -1
  53. package/dist/lib/runtime/telemetry-agent-runner.mjs +1 -1
  54. package/dist/lib/runtime/telemetry-agent-runner.mjs.map +1 -1
  55. package/dist/lib/telemetry-client.cjs +1 -1
  56. package/dist/lib/telemetry-client.mjs +1 -1
  57. package/dist/package.cjs +58 -42
  58. package/dist/package.mjs +58 -42
  59. package/dist/service-adapters/anthropic/anthropic-adapter.cjs +12 -0
  60. package/dist/service-adapters/anthropic/anthropic-adapter.cjs.map +1 -1
  61. package/dist/service-adapters/anthropic/anthropic-adapter.d.cts +2 -0
  62. package/dist/service-adapters/anthropic/anthropic-adapter.d.cts.map +1 -1
  63. package/dist/service-adapters/anthropic/anthropic-adapter.d.mts +2 -0
  64. package/dist/service-adapters/anthropic/anthropic-adapter.d.mts.map +1 -1
  65. package/dist/service-adapters/anthropic/anthropic-adapter.mjs +12 -0
  66. package/dist/service-adapters/anthropic/anthropic-adapter.mjs.map +1 -1
  67. package/dist/service-adapters/groq/groq-adapter.cjs +13 -0
  68. package/dist/service-adapters/groq/groq-adapter.cjs.map +1 -1
  69. package/dist/service-adapters/groq/groq-adapter.d.cts +2 -0
  70. package/dist/service-adapters/groq/groq-adapter.d.cts.map +1 -1
  71. package/dist/service-adapters/groq/groq-adapter.d.mts +2 -0
  72. package/dist/service-adapters/groq/groq-adapter.d.mts.map +1 -1
  73. package/dist/service-adapters/groq/groq-adapter.mjs +13 -0
  74. package/dist/service-adapters/groq/groq-adapter.mjs.map +1 -1
  75. package/dist/service-adapters/index.d.cts +1 -0
  76. package/dist/service-adapters/index.d.mts +1 -0
  77. package/dist/service-adapters/openai/openai-adapter.cjs +17 -4
  78. package/dist/service-adapters/openai/openai-adapter.cjs.map +1 -1
  79. package/dist/service-adapters/openai/openai-adapter.d.cts +2 -0
  80. package/dist/service-adapters/openai/openai-adapter.d.cts.map +1 -1
  81. package/dist/service-adapters/openai/openai-adapter.d.mts +5 -3
  82. package/dist/service-adapters/openai/openai-adapter.d.mts.map +1 -1
  83. package/dist/service-adapters/openai/openai-adapter.mjs +16 -5
  84. package/dist/service-adapters/openai/openai-adapter.mjs.map +1 -1
  85. package/dist/service-adapters/openai/openai-assistant-adapter.d.mts +2 -2
  86. package/dist/service-adapters/service-adapter.d.cts +8 -0
  87. package/dist/service-adapters/service-adapter.d.cts.map +1 -1
  88. package/dist/service-adapters/service-adapter.d.mts +8 -0
  89. package/dist/service-adapters/service-adapter.d.mts.map +1 -1
  90. package/dist/service-adapters/shared/index.d.mts +2 -1
  91. package/dist/service-adapters/shared/sdk-client-utils.cjs +17 -0
  92. package/dist/service-adapters/shared/sdk-client-utils.cjs.map +1 -0
  93. package/dist/service-adapters/shared/sdk-client-utils.d.cts +14 -0
  94. package/dist/service-adapters/shared/sdk-client-utils.d.cts.map +1 -0
  95. package/dist/service-adapters/shared/sdk-client-utils.d.mts +14 -0
  96. package/dist/service-adapters/shared/sdk-client-utils.d.mts.map +1 -0
  97. package/dist/service-adapters/shared/sdk-client-utils.mjs +16 -0
  98. package/dist/service-adapters/shared/sdk-client-utils.mjs.map +1 -0
  99. package/dist/v2/index.cjs +41 -15
  100. package/dist/v2/index.d.cts +14 -2
  101. package/dist/v2/index.d.mts +14 -2
  102. package/dist/v2/index.mjs +13 -4
  103. package/dist/v2/runtime/endpoints/express-single.cjs +190 -0
  104. package/dist/v2/runtime/endpoints/express-single.cjs.map +1 -0
  105. package/dist/v2/runtime/endpoints/express-single.d.cts +16 -0
  106. package/dist/v2/runtime/endpoints/express-single.d.cts.map +1 -0
  107. package/dist/v2/runtime/endpoints/express-single.d.mts +16 -0
  108. package/dist/v2/runtime/endpoints/express-single.d.mts.map +1 -0
  109. package/dist/v2/runtime/endpoints/express-single.mjs +187 -0
  110. package/dist/v2/runtime/endpoints/express-single.mjs.map +1 -0
  111. package/dist/v2/runtime/endpoints/express-utils.cjs +119 -0
  112. package/dist/v2/runtime/endpoints/express-utils.cjs.map +1 -0
  113. package/dist/v2/runtime/endpoints/express-utils.mjs +117 -0
  114. package/dist/v2/runtime/endpoints/express-utils.mjs.map +1 -0
  115. package/dist/v2/runtime/endpoints/express.cjs +217 -0
  116. package/dist/v2/runtime/endpoints/express.cjs.map +1 -0
  117. package/dist/v2/runtime/endpoints/express.d.cts +16 -0
  118. package/dist/v2/runtime/endpoints/express.d.cts.map +1 -0
  119. package/dist/v2/runtime/endpoints/express.d.mts +16 -0
  120. package/dist/v2/runtime/endpoints/express.d.mts.map +1 -0
  121. package/dist/v2/runtime/endpoints/express.mjs +214 -0
  122. package/dist/v2/runtime/endpoints/express.mjs.map +1 -0
  123. package/dist/v2/runtime/endpoints/hono-single.cjs +141 -0
  124. package/dist/v2/runtime/endpoints/hono-single.cjs.map +1 -0
  125. package/dist/v2/runtime/endpoints/hono-single.d.cts +41 -0
  126. package/dist/v2/runtime/endpoints/hono-single.d.cts.map +1 -0
  127. package/dist/v2/runtime/endpoints/hono-single.d.mts +41 -0
  128. package/dist/v2/runtime/endpoints/hono-single.d.mts.map +1 -0
  129. package/dist/v2/runtime/endpoints/hono-single.mjs +140 -0
  130. package/dist/v2/runtime/endpoints/hono-single.mjs.map +1 -0
  131. package/dist/v2/runtime/endpoints/hono.cjs +248 -0
  132. package/dist/v2/runtime/endpoints/hono.cjs.map +1 -0
  133. package/dist/v2/runtime/endpoints/hono.d.cts +164 -0
  134. package/dist/v2/runtime/endpoints/hono.d.cts.map +1 -0
  135. package/dist/v2/runtime/endpoints/hono.d.mts +164 -0
  136. package/dist/v2/runtime/endpoints/hono.d.mts.map +1 -0
  137. package/dist/v2/runtime/endpoints/hono.mjs +247 -0
  138. package/dist/v2/runtime/endpoints/hono.mjs.map +1 -0
  139. package/dist/v2/runtime/endpoints/index.d.cts +5 -0
  140. package/dist/v2/runtime/endpoints/index.d.mts +5 -0
  141. package/dist/v2/runtime/endpoints/single-route-helpers.cjs +68 -0
  142. package/dist/v2/runtime/endpoints/single-route-helpers.cjs.map +1 -0
  143. package/dist/v2/runtime/endpoints/single-route-helpers.mjs +65 -0
  144. package/dist/v2/runtime/endpoints/single-route-helpers.mjs.map +1 -0
  145. package/dist/v2/runtime/handlers/get-runtime-info.cjs +51 -0
  146. package/dist/v2/runtime/handlers/get-runtime-info.cjs.map +1 -0
  147. package/dist/v2/runtime/handlers/get-runtime-info.mjs +51 -0
  148. package/dist/v2/runtime/handlers/get-runtime-info.mjs.map +1 -0
  149. package/dist/v2/runtime/handlers/handle-connect.cjs +49 -0
  150. package/dist/v2/runtime/handlers/handle-connect.cjs.map +1 -0
  151. package/dist/v2/runtime/handlers/handle-connect.mjs +49 -0
  152. package/dist/v2/runtime/handlers/handle-connect.mjs.map +1 -0
  153. package/dist/v2/runtime/handlers/handle-run.cjs +61 -0
  154. package/dist/v2/runtime/handlers/handle-run.cjs.map +1 -0
  155. package/dist/v2/runtime/handlers/handle-run.mjs +61 -0
  156. package/dist/v2/runtime/handlers/handle-run.mjs.map +1 -0
  157. package/dist/v2/runtime/handlers/handle-stop.cjs +47 -0
  158. package/dist/v2/runtime/handlers/handle-stop.cjs.map +1 -0
  159. package/dist/v2/runtime/handlers/handle-stop.mjs +46 -0
  160. package/dist/v2/runtime/handlers/handle-stop.mjs.map +1 -0
  161. package/dist/v2/runtime/handlers/handle-transcribe.cjs +112 -0
  162. package/dist/v2/runtime/handlers/handle-transcribe.cjs.map +1 -0
  163. package/dist/v2/runtime/handlers/handle-transcribe.mjs +111 -0
  164. package/dist/v2/runtime/handlers/handle-transcribe.mjs.map +1 -0
  165. package/dist/v2/runtime/handlers/header-utils.cjs +26 -0
  166. package/dist/v2/runtime/handlers/header-utils.cjs.map +1 -0
  167. package/dist/v2/runtime/handlers/header-utils.mjs +25 -0
  168. package/dist/v2/runtime/handlers/header-utils.mjs.map +1 -0
  169. package/dist/v2/runtime/handlers/intelligence/connect.cjs +37 -0
  170. package/dist/v2/runtime/handlers/intelligence/connect.cjs.map +1 -0
  171. package/dist/v2/runtime/handlers/intelligence/connect.mjs +37 -0
  172. package/dist/v2/runtime/handlers/intelligence/connect.mjs.map +1 -0
  173. package/dist/v2/runtime/handlers/intelligence/run.cjs +89 -0
  174. package/dist/v2/runtime/handlers/intelligence/run.cjs.map +1 -0
  175. package/dist/v2/runtime/handlers/intelligence/run.mjs +88 -0
  176. package/dist/v2/runtime/handlers/intelligence/run.mjs.map +1 -0
  177. package/dist/v2/runtime/handlers/intelligence/thread-names.cjs +146 -0
  178. package/dist/v2/runtime/handlers/intelligence/thread-names.cjs.map +1 -0
  179. package/dist/v2/runtime/handlers/intelligence/thread-names.mjs +145 -0
  180. package/dist/v2/runtime/handlers/intelligence/thread-names.mjs.map +1 -0
  181. package/dist/v2/runtime/handlers/intelligence/threads.cjs +159 -0
  182. package/dist/v2/runtime/handlers/intelligence/threads.cjs.map +1 -0
  183. package/dist/v2/runtime/handlers/intelligence/threads.mjs +154 -0
  184. package/dist/v2/runtime/handlers/intelligence/threads.mjs.map +1 -0
  185. package/dist/v2/runtime/handlers/shared/agent-utils.cjs +74 -0
  186. package/dist/v2/runtime/handlers/shared/agent-utils.cjs.map +1 -0
  187. package/dist/v2/runtime/handlers/shared/agent-utils.mjs +70 -0
  188. package/dist/v2/runtime/handlers/shared/agent-utils.mjs.map +1 -0
  189. package/dist/v2/runtime/handlers/shared/intelligence-utils.cjs +21 -0
  190. package/dist/v2/runtime/handlers/shared/intelligence-utils.cjs.map +1 -0
  191. package/dist/v2/runtime/handlers/shared/intelligence-utils.mjs +20 -0
  192. package/dist/v2/runtime/handlers/shared/intelligence-utils.mjs.map +1 -0
  193. package/dist/v2/runtime/handlers/shared/json-response.cjs +12 -0
  194. package/dist/v2/runtime/handlers/shared/json-response.cjs.map +1 -0
  195. package/dist/v2/runtime/handlers/shared/json-response.mjs +10 -0
  196. package/dist/v2/runtime/handlers/shared/json-response.mjs.map +1 -0
  197. package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.cjs +20 -0
  198. package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.cjs.map +1 -0
  199. package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.mjs +20 -0
  200. package/dist/v2/runtime/handlers/shared/resolve-intelligence-user.mjs.map +1 -0
  201. package/dist/v2/runtime/handlers/shared/sse-response.cjs +69 -0
  202. package/dist/v2/runtime/handlers/shared/sse-response.cjs.map +1 -0
  203. package/dist/v2/runtime/handlers/shared/sse-response.mjs +68 -0
  204. package/dist/v2/runtime/handlers/shared/sse-response.mjs.map +1 -0
  205. package/dist/v2/runtime/handlers/sse/connect.cjs +18 -0
  206. package/dist/v2/runtime/handlers/sse/connect.cjs.map +1 -0
  207. package/dist/v2/runtime/handlers/sse/connect.mjs +18 -0
  208. package/dist/v2/runtime/handlers/sse/connect.mjs.map +1 -0
  209. package/dist/v2/runtime/handlers/sse/run.cjs +18 -0
  210. package/dist/v2/runtime/handlers/sse/run.cjs.map +1 -0
  211. package/dist/v2/runtime/handlers/sse/run.mjs +18 -0
  212. package/dist/v2/runtime/handlers/sse/run.mjs.map +1 -0
  213. package/dist/v2/runtime/index.d.cts +13 -0
  214. package/dist/v2/runtime/index.d.mts +14 -0
  215. package/dist/v2/runtime/intelligence-platform/client.cjs +333 -0
  216. package/dist/v2/runtime/intelligence-platform/client.cjs.map +1 -0
  217. package/dist/v2/runtime/intelligence-platform/client.d.cts +336 -0
  218. package/dist/v2/runtime/intelligence-platform/client.d.cts.map +1 -0
  219. package/dist/v2/runtime/intelligence-platform/client.d.mts +336 -0
  220. package/dist/v2/runtime/intelligence-platform/client.d.mts.map +1 -0
  221. package/dist/v2/runtime/intelligence-platform/client.mjs +331 -0
  222. package/dist/v2/runtime/intelligence-platform/client.mjs.map +1 -0
  223. package/dist/v2/runtime/intelligence-platform/index.d.mts +2 -0
  224. package/dist/v2/runtime/middleware-sse-parser.cjs +138 -0
  225. package/dist/v2/runtime/middleware-sse-parser.cjs.map +1 -0
  226. package/dist/v2/runtime/middleware-sse-parser.d.cts +22 -0
  227. package/dist/v2/runtime/middleware-sse-parser.d.cts.map +1 -0
  228. package/dist/v2/runtime/middleware-sse-parser.d.mts +22 -0
  229. package/dist/v2/runtime/middleware-sse-parser.d.mts.map +1 -0
  230. package/dist/v2/runtime/middleware-sse-parser.mjs +137 -0
  231. package/dist/v2/runtime/middleware-sse-parser.mjs.map +1 -0
  232. package/dist/v2/runtime/middleware.cjs +35 -0
  233. package/dist/v2/runtime/middleware.cjs.map +1 -0
  234. package/dist/v2/runtime/middleware.d.cts +32 -0
  235. package/dist/v2/runtime/middleware.d.cts.map +1 -0
  236. package/dist/v2/runtime/middleware.d.mts +32 -0
  237. package/dist/v2/runtime/middleware.d.mts.map +1 -0
  238. package/dist/v2/runtime/middleware.mjs +33 -0
  239. package/dist/v2/runtime/middleware.mjs.map +1 -0
  240. package/dist/v2/runtime/runner/agent-runner.cjs +8 -0
  241. package/dist/v2/runtime/runner/agent-runner.cjs.map +1 -0
  242. package/dist/v2/runtime/runner/agent-runner.d.cts +32 -0
  243. package/dist/v2/runtime/runner/agent-runner.d.cts.map +1 -0
  244. package/dist/v2/runtime/runner/agent-runner.d.mts +32 -0
  245. package/dist/v2/runtime/runner/agent-runner.d.mts.map +1 -0
  246. package/dist/v2/runtime/runner/agent-runner.mjs +7 -0
  247. package/dist/v2/runtime/runner/agent-runner.mjs.map +1 -0
  248. package/dist/v2/runtime/runner/in-memory.cjs +223 -0
  249. package/dist/v2/runtime/runner/in-memory.cjs.map +1 -0
  250. package/dist/v2/runtime/runner/in-memory.d.cts +15 -0
  251. package/dist/v2/runtime/runner/in-memory.d.cts.map +1 -0
  252. package/dist/v2/runtime/runner/in-memory.d.mts +15 -0
  253. package/dist/v2/runtime/runner/in-memory.d.mts.map +1 -0
  254. package/dist/v2/runtime/runner/in-memory.mjs +222 -0
  255. package/dist/v2/runtime/runner/in-memory.mjs.map +1 -0
  256. package/dist/v2/runtime/runner/index.d.cts +6 -0
  257. package/dist/v2/runtime/runner/index.d.mts +6 -0
  258. package/dist/v2/runtime/runner/index.mjs +7 -0
  259. package/dist/v2/runtime/runner/intelligence.cjs +246 -0
  260. package/dist/v2/runtime/runner/intelligence.cjs.map +1 -0
  261. package/dist/v2/runtime/runner/intelligence.d.cts +57 -0
  262. package/dist/v2/runtime/runner/intelligence.d.cts.map +1 -0
  263. package/dist/v2/runtime/runner/intelligence.d.mts +57 -0
  264. package/dist/v2/runtime/runner/intelligence.d.mts.map +1 -0
  265. package/dist/v2/runtime/runner/intelligence.mjs +245 -0
  266. package/dist/v2/runtime/runner/intelligence.mjs.map +1 -0
  267. package/dist/v2/runtime/runtime.cjs +101 -0
  268. package/dist/v2/runtime/runtime.cjs.map +1 -0
  269. package/dist/v2/runtime/runtime.d.cts +132 -0
  270. package/dist/v2/runtime/runtime.d.cts.map +1 -0
  271. package/dist/v2/runtime/runtime.d.mts +133 -0
  272. package/dist/v2/runtime/runtime.d.mts.map +1 -0
  273. package/dist/v2/runtime/runtime.mjs +97 -0
  274. package/dist/v2/runtime/runtime.mjs.map +1 -0
  275. package/dist/v2/runtime/telemetry/scarf-client.cjs +32 -0
  276. package/dist/v2/runtime/telemetry/scarf-client.cjs.map +1 -0
  277. package/dist/v2/runtime/telemetry/scarf-client.mjs +32 -0
  278. package/dist/v2/runtime/telemetry/scarf-client.mjs.map +1 -0
  279. package/dist/v2/runtime/telemetry/telemetry-client.cjs +35 -0
  280. package/dist/v2/runtime/telemetry/telemetry-client.cjs.map +1 -0
  281. package/dist/v2/runtime/telemetry/telemetry-client.mjs +35 -0
  282. package/dist/v2/runtime/telemetry/telemetry-client.mjs.map +1 -0
  283. package/dist/v2/runtime/transcription-service/transcription-service.cjs +8 -0
  284. package/dist/v2/runtime/transcription-service/transcription-service.cjs.map +1 -0
  285. package/dist/v2/runtime/transcription-service/transcription-service.d.cts +15 -0
  286. package/dist/v2/runtime/transcription-service/transcription-service.d.cts.map +1 -0
  287. package/dist/v2/runtime/transcription-service/transcription-service.d.mts +15 -0
  288. package/dist/v2/runtime/transcription-service/transcription-service.d.mts.map +1 -0
  289. package/dist/v2/runtime/transcription-service/transcription-service.mjs +7 -0
  290. package/dist/v2/runtime/transcription-service/transcription-service.mjs.map +1 -0
  291. package/package.json +69 -44
  292. package/src/agent/__tests__/ai-sdk-v6-compat.test.ts +116 -0
  293. package/src/agent/__tests__/basic-agent.test.ts +1698 -0
  294. package/src/agent/__tests__/config-tools-execution.test.ts +516 -0
  295. package/src/agent/__tests__/mcp-clients.test.ts +260 -0
  296. package/src/agent/__tests__/property-overrides.test.ts +598 -0
  297. package/src/agent/__tests__/standard-schema-tools.test.ts +313 -0
  298. package/src/agent/__tests__/standard-schema-types.test.ts +158 -0
  299. package/src/agent/__tests__/state-tools.test.ts +436 -0
  300. package/src/agent/__tests__/test-helpers.ts +193 -0
  301. package/src/agent/__tests__/utils.test.ts +536 -0
  302. package/src/agent/__tests__/zod-regression.test.ts +350 -0
  303. package/src/agent/index.ts +1329 -0
  304. package/src/graphql/message-conversion/agui-to-gql.test.ts +20 -1
  305. package/src/graphql/message-conversion/agui-to-gql.ts +15 -5
  306. package/src/graphql/message-conversion/gql-to-agui.ts +1 -1
  307. package/src/graphql/message-conversion/roundtrip-conversion.test.ts +1 -1
  308. package/src/lib/integrations/nextjs/app-router.ts +2 -2
  309. package/src/lib/integrations/node-http/index.ts +2 -2
  310. package/src/lib/integrations/shared.ts +1 -1
  311. package/src/lib/runtime/agent-integrations/langgraph/__tests__/dispatch-event-filtering.test.ts +155 -0
  312. package/src/lib/runtime/agent-integrations/langgraph/agent.ts +5 -0
  313. package/src/lib/runtime/copilot-runtime.ts +21 -10
  314. package/src/lib/runtime/telemetry-agent-runner.ts +1 -1
  315. package/src/service-adapters/anthropic/anthropic-adapter.ts +15 -1
  316. package/src/service-adapters/conversion.test.ts +56 -0
  317. package/src/service-adapters/conversion.ts +2 -2
  318. package/src/service-adapters/groq/groq-adapter.ts +16 -1
  319. package/src/service-adapters/openai/openai-adapter.ts +19 -4
  320. package/src/service-adapters/service-adapter.ts +9 -0
  321. package/src/service-adapters/shared/index.ts +1 -0
  322. package/src/service-adapters/shared/sdk-client-utils.ts +19 -0
  323. package/src/v2/index.ts +5 -2
  324. package/src/v2/runtime/__tests__/cors-credentials.test.ts +320 -0
  325. package/src/v2/runtime/__tests__/express-abort-signal.test.ts +25 -0
  326. package/src/v2/runtime/__tests__/express-body-order.test.ts +76 -0
  327. package/src/v2/runtime/__tests__/express-single-sse.test.ts +122 -0
  328. package/src/v2/runtime/__tests__/get-runtime-info.test.ts +141 -0
  329. package/src/v2/runtime/__tests__/handle-connect.test.ts +423 -0
  330. package/src/v2/runtime/__tests__/handle-run.test.ts +910 -0
  331. package/src/v2/runtime/__tests__/handle-threads.test.ts +388 -0
  332. package/src/v2/runtime/__tests__/handle-transcribe.test.ts +301 -0
  333. package/src/v2/runtime/__tests__/header-utils.test.ts +88 -0
  334. package/src/v2/runtime/__tests__/in-process-agent-runner-messages.test.ts +230 -0
  335. package/src/v2/runtime/__tests__/in-process-agent-runner.test.ts +1030 -0
  336. package/src/v2/runtime/__tests__/middleware-express.test.ts +208 -0
  337. package/src/v2/runtime/__tests__/middleware-single-express.test.ts +213 -0
  338. package/src/v2/runtime/__tests__/middleware-single.test.ts +225 -0
  339. package/src/v2/runtime/__tests__/middleware-sse-parser.test.ts +187 -0
  340. package/src/v2/runtime/__tests__/middleware.test.ts +251 -0
  341. package/src/v2/runtime/__tests__/routing-express.test.ts +174 -0
  342. package/src/v2/runtime/__tests__/routing-single-express.test.ts +168 -0
  343. package/src/v2/runtime/__tests__/routing-single.test.ts +193 -0
  344. package/src/v2/runtime/__tests__/routing.test.ts +257 -0
  345. package/src/v2/runtime/__tests__/runtime.test.ts +123 -0
  346. package/src/v2/runtime/__tests__/telemetry.test.ts +167 -0
  347. package/src/v2/runtime/__tests__/thread-names.test.ts +188 -0
  348. package/src/v2/runtime/endpoints/express-single.ts +231 -0
  349. package/src/v2/runtime/endpoints/express-utils.ts +182 -0
  350. package/src/v2/runtime/endpoints/express.ts +275 -0
  351. package/src/v2/runtime/endpoints/hono-single.ts +212 -0
  352. package/src/v2/runtime/endpoints/hono.ts +314 -0
  353. package/src/v2/runtime/endpoints/index.ts +4 -0
  354. package/src/v2/runtime/endpoints/single-route-helpers.ts +125 -0
  355. package/src/v2/runtime/express.ts +2 -0
  356. package/src/v2/runtime/handler.ts +3 -0
  357. package/src/v2/runtime/handlers/get-runtime-info.ts +79 -0
  358. package/src/v2/runtime/handlers/handle-connect.ts +76 -0
  359. package/src/v2/runtime/handlers/handle-run.ts +89 -0
  360. package/src/v2/runtime/handlers/handle-stop.ts +76 -0
  361. package/src/v2/runtime/handlers/handle-threads.ts +7 -0
  362. package/src/v2/runtime/handlers/handle-transcribe.ts +256 -0
  363. package/src/v2/runtime/handlers/header-utils.ts +24 -0
  364. package/src/v2/runtime/handlers/intelligence/connect.ts +65 -0
  365. package/src/v2/runtime/handlers/intelligence/run.ts +152 -0
  366. package/src/v2/runtime/handlers/intelligence/thread-names.ts +246 -0
  367. package/src/v2/runtime/handlers/intelligence/threads.ts +233 -0
  368. package/src/v2/runtime/handlers/shared/agent-utils.ts +136 -0
  369. package/src/v2/runtime/handlers/shared/intelligence-utils.ts +21 -0
  370. package/src/v2/runtime/handlers/shared/json-response.ts +6 -0
  371. package/src/v2/runtime/handlers/shared/resolve-intelligence-user.ts +25 -0
  372. package/src/v2/runtime/handlers/shared/sse-response.ts +100 -0
  373. package/src/v2/runtime/handlers/sse/connect.ts +24 -0
  374. package/src/v2/runtime/handlers/sse/run.ts +27 -0
  375. package/src/v2/runtime/index.ts +20 -0
  376. package/src/v2/runtime/intelligence-platform/__tests__/client.test.ts +605 -0
  377. package/src/v2/runtime/intelligence-platform/client.ts +659 -0
  378. package/src/v2/runtime/intelligence-platform/index.ts +10 -0
  379. package/src/v2/runtime/middleware-sse-parser.ts +200 -0
  380. package/src/v2/runtime/middleware.ts +115 -0
  381. package/src/v2/runtime/runner/__tests__/finalize-events.test.ts +109 -0
  382. package/src/v2/runtime/runner/__tests__/in-memory-runner.e2e.test.ts +775 -0
  383. package/src/v2/runtime/runner/__tests__/in-memory-runner.test.ts +363 -0
  384. package/src/v2/runtime/runner/__tests__/intelligence-runner.test.ts +981 -0
  385. package/src/v2/runtime/runner/agent-runner.ts +36 -0
  386. package/src/v2/runtime/runner/in-memory.ts +381 -0
  387. package/src/v2/runtime/runner/index.ts +4 -0
  388. package/src/v2/runtime/runner/intelligence.ts +429 -0
  389. package/src/v2/runtime/runtime.ts +260 -0
  390. package/src/v2/runtime/telemetry/events.ts +35 -0
  391. package/src/v2/runtime/telemetry/index.ts +7 -0
  392. package/src/v2/runtime/telemetry/scarf-client.ts +39 -0
  393. package/src/v2/runtime/telemetry/telemetry-client.ts +70 -0
  394. package/src/v2/runtime/transcription-service/transcription-service.ts +11 -0
  395. package/tests/service-adapters/anthropic/anthropic-adapter-language-model.test.ts +101 -0
  396. package/tests/service-adapters/groq/groq-adapter-language-model.test.ts +102 -0
  397. package/tests/service-adapters/openai/openai-adapter-language-model.test.ts +122 -0
  398. package/tests/service-adapters/shared/sdk-client-utils.test.ts +36 -0
  399. package/tsconfig.json +9 -2
  400. package/tsdown.config.ts +1 -0
  401. package/vitest.config.mjs +1 -4
  402. package/.eslintrc.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,38 +1,412 @@
1
1
  # @copilotkit/runtime
2
2
 
3
- ## 0.0.0-main-20260220223427
3
+ ## 0.0.0-main-20260402184302
4
+
5
+ ### Minor Changes
6
+
7
+ - 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
8
+
9
+ ### Patch Changes
10
+
11
+ - 1ceb963: Add vertex AI
12
+ - 8aafcbe: fix(agent): harden BuiltInAgent reasoning lifecycle
13
+
14
+ - Skip empty reasoning deltas (violates @ag-ui/core schema)
15
+ - Auto-close reasoning lifecycle when SDK omits reasoning-end (on consecutive-start, phase transitions, abort, error, and fallback paths)
16
+ - Make reasoning-end idempotent to prevent duplicate close events when auto-close already fired
17
+ - Regenerate reasoningMessageId for consecutive reasoning blocks when SDK provides no id
18
+ - Close reasoning in outer catch block so exceptions mid-reasoning emit proper lifecycle events
19
+
20
+ - 1ceb963: feat: re export state streaming langgraph middleware
21
+ - 1ceb963: custom mcpClients configuration
22
+ - Updated dependencies [1ceb963]
23
+ - @copilotkit/shared@0.0.0-main-20260402184302
24
+
25
+ ## 1.55.0-next.8
26
+
27
+ ### Patch Changes
28
+
29
+ - 8aafcbe: fix(agent): harden BuiltInAgent reasoning lifecycle
30
+ - Skip empty reasoning deltas (violates @ag-ui/core schema)
31
+ - Auto-close reasoning lifecycle when SDK omits reasoning-end (on consecutive-start, phase transitions, abort, error, and fallback paths)
32
+ - Make reasoning-end idempotent to prevent duplicate close events when auto-close already fired
33
+ - Regenerate reasoningMessageId for consecutive reasoning blocks when SDK provides no id
34
+ - Close reasoning in outer catch block so exceptions mid-reasoning emit proper lifecycle events
35
+ - @copilotkit/shared@1.55.0-next.8
36
+
37
+ ## 1.55.0-next.7
38
+
39
+ ### Minor Changes
40
+
41
+ - 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [1ceb963]
46
+ - @copilotkit/shared@1.55.0-next.7
47
+
48
+ ## 1.54.1-next.6
49
+
50
+ ### Patch Changes
51
+
52
+ - @copilotkit/shared@1.54.1-next.6
53
+ - @copilotkitnext/agent@1.54.1-next.6
54
+ - @copilotkitnext/runtime@1.54.1-next.6
55
+
56
+ ## 1.54.1-next.5
57
+
58
+ ### Patch Changes
59
+
60
+ - c62c5c8: custom mcpClients configuration
61
+ - @copilotkit/shared@1.54.1-next.5
62
+ - @copilotkitnext/agent@1.54.1-next.5
63
+ - @copilotkitnext/runtime@1.54.1-next.5
64
+
65
+ ## 1.54.1-next.4
66
+
67
+ ### Patch Changes
68
+
69
+ - @copilotkit/shared@1.54.1-next.4
70
+ - @copilotkitnext/agent@1.54.1-next.4
71
+ - @copilotkitnext/runtime@1.54.1-next.4
72
+
73
+ ## 1.54.1-next.3
74
+
75
+ ### Patch Changes
76
+
77
+ - @copilotkit/shared@1.54.1-next.3
78
+ - @copilotkitnext/agent@1.54.1-next.3
79
+ - @copilotkitnext/runtime@1.54.1-next.3
80
+
81
+ ## 1.54.1-next.2
82
+
83
+ ### Patch Changes
84
+
85
+ - a0a1cf4: feat: re export state streaming langgraph middleware
86
+ - @copilotkit/shared@1.54.1-next.2
87
+ - @copilotkitnext/agent@1.54.1-next.2
88
+ - @copilotkitnext/runtime@1.54.1-next.2
89
+
90
+ ## 1.54.1-next.1
91
+
92
+ ### Patch Changes
93
+
94
+ - @copilotkit/shared@1.54.1-next.1
95
+ - @copilotkitnext/agent@1.54.1-next.1
96
+ - @copilotkitnext/runtime@1.54.1-next.1
97
+
98
+ ## 1.54.1-next.0
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [da558d3]
103
+ - @copilotkitnext/agent@1.54.1-next.0
104
+ - @copilotkit/shared@1.54.1-next.0
105
+ - @copilotkitnext/runtime@1.54.1-next.0
106
+
107
+ ## 1.54.0
108
+
109
+ ### Minor Changes
110
+
111
+ - fa0d1cd: Add support for Standard Schema (instead of just Zod)
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [3780c6a]
116
+ - Updated dependencies [fa0d1cd]
117
+ - @copilotkitnext/agent@1.54.0
118
+ - @copilotkitnext/runtime@1.54.0
119
+ - @copilotkit/shared@1.54.0
120
+
121
+ ## 1.54.0-next.9
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [3780c6a]
126
+ - @copilotkitnext/agent@1.54.0-next.9
127
+ - @copilotkitnext/runtime@1.54.0-next.9
128
+ - @copilotkit/shared@1.54.0-next.9
129
+
130
+ ## 1.54.0-next.8
131
+
132
+ ### Patch Changes
133
+
134
+ - @copilotkit/shared@1.54.0-next.8
135
+ - @copilotkitnext/agent@1.54.0-next.8
136
+ - @copilotkitnext/runtime@1.54.0-next.8
137
+
138
+ ## 1.54.0-next.7
139
+
140
+ ### Patch Changes
141
+
142
+ - @copilotkit/shared@1.54.0-next.7
143
+ - @copilotkitnext/agent@1.54.0-next.7
144
+ - @copilotkitnext/runtime@1.54.0-next.7
145
+
146
+ ## 1.54.0-next.6
147
+
148
+ ### Patch Changes
149
+
150
+ - @copilotkit/shared@1.54.0-next.6
151
+ - @copilotkitnext/agent@1.54.0-next.6
152
+ - @copilotkitnext/runtime@1.54.0-next.6
153
+
154
+ ## 1.54.0-next.5
155
+
156
+ ### Patch Changes
157
+
158
+ - @copilotkit/shared@1.54.0-next.5
159
+ - @copilotkitnext/agent@1.54.0-next.5
160
+ - @copilotkitnext/runtime@1.54.0-next.5
161
+
162
+ ## 1.54.0-next.4
163
+
164
+ ### Patch Changes
165
+
166
+ - @copilotkit/shared@1.54.0-next.4
167
+ - @copilotkitnext/agent@1.54.0-next.4
168
+ - @copilotkitnext/runtime@1.54.0-next.4
169
+
170
+ ## 1.54.0-next.3
171
+
172
+ ### Minor Changes
173
+
174
+ - fa0d1cd: Add support for Standard Schema (instead of just Zod)
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [fa0d1cd]
179
+ - @copilotkitnext/agent@1.54.0-next.3
180
+ - @copilotkit/shared@1.54.0-next.3
181
+ - @copilotkitnext/runtime@1.54.0-next.3
182
+
183
+ ## 1.53.1-next.2
184
+
185
+ ### Patch Changes
186
+
187
+ - @copilotkit/shared@1.53.1-next.2
188
+ - @copilotkit/agent@1.53.1-next.2
189
+ - @copilotkit/runtime@1.53.1-next.2
190
+
191
+ ## 1.53.1-next.1
192
+
193
+ ### Patch Changes
194
+
195
+ - @copilotkit/shared@1.53.1-next.1
196
+ - @copilotkit/agent@1.53.1-next.1
197
+ - @copilotkit/runtime@1.53.1-next.1
198
+
199
+ ## 1.53.1-next.0
200
+
201
+ ### Patch Changes
202
+
203
+ - @copilotkit/shared@1.53.1-next.0
204
+ - @copilotkit/agent@1.53.1-next.0
205
+ - @copilotkit/runtime@1.53.1-next.0
206
+
207
+ ## 1.53.0
208
+
209
+ ### Minor Changes
210
+
211
+ - f822c05: Updating the path and devex for mcp apps
212
+
213
+ ### Patch Changes
214
+
215
+ - d1f7aba: feat(runtime): expose messages in afterRequestMiddleware
216
+ - 1510f64: feat: enable mcp and a2ui middleware directly from copilotkit runtime
217
+ - 8e0f94f: Bump AI SDK from v5 to v6
218
+ - 501e8d7: surpress sse warning in middleware callback
219
+ - Updated dependencies [1510f64]
220
+ - Updated dependencies [bf1fc6f]
221
+ - @copilotkit/shared@1.53.0
222
+ - @copilotkit/agent@1.53.0
223
+ - @copilotkit/runtime@1.53.0
224
+
225
+ ## 1.53.0-next.6
226
+
227
+ ### Patch Changes
228
+
229
+ - 501e8d7: surpress sse warning in middleware callback
230
+ - @copilotkit/shared@1.53.0-next.6
231
+ - @copilotkit/agent@1.53.0-next.6
232
+ - @copilotkit/runtime@1.53.0-next.6
233
+
234
+ ## 1.53.0-next.5
235
+
236
+ ### Minor Changes
237
+
238
+ - f822c05: Updating the path and devex for mcp apps
239
+
240
+ ### Patch Changes
241
+
242
+ - @copilotkit/shared@1.53.0-next.5
243
+ - @copilotkit/agent@1.53.0-next.5
244
+ - @copilotkit/runtime@1.53.0-next.5
245
+
246
+ ## 1.52.2-next.4
247
+
248
+ ### Patch Changes
249
+
250
+ - @copilotkit/shared@1.52.2-next.4
251
+ - @copilotkit/agent@1.52.2-next.4
252
+ - @copilotkit/runtime@1.52.2-next.4
253
+
254
+ ## 1.52.2-next.3
255
+
256
+ ### Patch Changes
257
+
258
+ - 1510f64: feat: enable mcp and a2ui middleware directly from copilotkit runtime
259
+ - Updated dependencies [1510f64]
260
+ - @copilotkit/shared@1.52.2-next.3
261
+ - @copilotkit/agent@1.52.2-next.3
262
+ - @copilotkit/runtime@1.52.2-next.3
263
+
264
+ ## 1.52.2-next.2
265
+
266
+ ### Patch Changes
267
+
268
+ - 8e0f94f: Bump AI SDK from v5 to v6
269
+ - @copilotkit/shared@1.52.2-next.2
270
+ - @copilotkit/agent@1.52.2-next.2
271
+ - @copilotkit/runtime@1.52.2-next.2
272
+
273
+ ## 1.52.2-next.1
274
+
275
+ ### Patch Changes
276
+
277
+ - d1f7aba: feat(runtime): expose messages in afterRequestMiddleware
278
+ - Updated dependencies [bf1fc6f]
279
+ - @copilotkit/shared@1.52.2-next.1
280
+ - @copilotkit/agent@1.52.2-next.1
281
+ - @copilotkit/runtime@1.52.2-next.1
282
+
283
+ ## 1.52.2-next.0
284
+
285
+ ### Patch Changes
286
+
287
+ - @copilotkit/shared@1.52.2-next.0
288
+ - @copilotkit/agent@1.52.2-next.0
289
+ - @copilotkit/runtime@1.52.2-next.0
290
+
291
+ ## 1.52.1
292
+
293
+ ### Patch Changes
294
+
295
+ - @copilotkit/shared@1.52.1
296
+ - @copilotkit/agent@1.52.1
297
+ - @copilotkit/runtime@1.52.1
298
+
299
+ ## 1.52.1-next.1
300
+
301
+ ### Patch Changes
302
+
303
+ - @copilotkit/shared@1.52.1-next.1
304
+ - @copilotkit/agent@1.52.1-next.1
305
+ - @copilotkit/runtime@1.52.1-next.1
306
+
307
+ ## 1.52.1-next.0
308
+
309
+ ### Patch Changes
310
+
311
+ - @copilotkit/shared@1.52.1-next.0
312
+ - @copilotkit/agent@1.52.1-next.0
313
+ - @copilotkit/runtime@1.52.1-next.0
314
+
315
+ ## 1.52.0
316
+
317
+ ### Minor Changes
318
+
319
+ - 6dd6c84: Adding new v2 features:
320
+
321
+ - useComponent
322
+ - useRenderTool
323
+ - useDefaultRenderTool
324
+
325
+ Also, fixing issues with styles not being
326
+ properly scoped for tailwind.
4
327
 
5
328
  ### Patch Changes
6
329
 
7
330
  - ef0f539: Add reasoning support and default components for reasoning messages
8
331
  - Updated dependencies [ef0f539]
9
- - @copilotkitnext/runtime@0.0.0-main-20260220223427
10
- - @copilotkit/shared@0.0.0-main-20260220223427
11
- - @copilotkitnext/agent@0.0.0-main-20260220223427
332
+ - @copilotkit/runtime@1.52.0
333
+ - @copilotkit/shared@1.52.0
334
+ - @copilotkit/agent@1.52.0
335
+
336
+ ## 1.52.0-next.8
337
+
338
+ ### Patch Changes
339
+
340
+ - @copilotkit/shared@1.52.0-next.8
341
+ - @copilotkit/agent@1.52.0-next.8
342
+ - @copilotkit/runtime@1.52.0-next.8
343
+
344
+ ## 1.52.0-next.7
345
+
346
+ ### Patch Changes
347
+
348
+ - @copilotkit/shared@1.52.0-next.7
349
+ - @copilotkit/agent@1.52.0-next.7
350
+ - @copilotkit/runtime@1.52.0-next.7
351
+
352
+ ## 1.52.0-next.6
353
+
354
+ ### Patch Changes
355
+
356
+ - @copilotkit/shared@1.52.0-next.6
357
+ - @copilotkit/agent@1.52.0-next.6
358
+ - @copilotkit/runtime@1.52.0-next.6
359
+
360
+ ## 1.52.0-next.5
361
+
362
+ ### Minor Changes
363
+
364
+ - 6dd6c84: Adding new v2 features:
365
+
366
+ - useComponent
367
+ - useRenderTool
368
+ - useDefaultRenderTool
369
+
370
+ Also, fixing issues with styles not being
371
+ properly scoped for tailwind.
372
+
373
+ ### Patch Changes
374
+
375
+ - @copilotkit/shared@1.52.0-next.5
376
+ - @copilotkit/agent@1.52.0-next.5
377
+ - @copilotkit/runtime@1.52.0-next.5
378
+
379
+ ## 1.51.5-next.4
380
+
381
+ ### Patch Changes
382
+
383
+ - @copilotkit/shared@1.51.5-next.4
384
+ - @copilotkit/agent@1.51.5-next.4
385
+ - @copilotkit/runtime@1.51.5-next.4
12
386
 
13
387
  ## 1.51.5-next.3
14
388
 
15
389
  ### Patch Changes
16
390
 
17
391
  - @copilotkit/shared@1.51.5-next.3
18
- - @copilotkitnext/agent@1.51.5-next.3
19
- - @copilotkitnext/runtime@1.51.5-next.3
392
+ - @copilotkit/agent@1.51.5-next.3
393
+ - @copilotkit/runtime@1.51.5-next.3
20
394
 
21
395
  ## 1.51.5-next.2
22
396
 
23
397
  ### Patch Changes
24
398
 
25
399
  - @copilotkit/shared@1.51.5-next.2
26
- - @copilotkitnext/agent@1.51.5-next.2
27
- - @copilotkitnext/runtime@1.51.5-next.2
400
+ - @copilotkit/agent@1.51.5-next.2
401
+ - @copilotkit/runtime@1.51.5-next.2
28
402
 
29
403
  ## 1.51.5-next.1
30
404
 
31
405
  ### Patch Changes
32
406
 
33
407
  - @copilotkit/shared@1.51.5-next.1
34
- - @copilotkitnext/agent@1.51.5-next.1
35
- - @copilotkitnext/runtime@1.51.5-next.1
408
+ - @copilotkit/agent@1.51.5-next.1
409
+ - @copilotkit/runtime@1.51.5-next.1
36
410
 
37
411
  ## 1.51.5-next.0
38
412
 
@@ -40,9 +414,9 @@
40
414
 
41
415
  - ef0f539: Add reasoning support and default components for reasoning messages
42
416
  - Updated dependencies [ef0f539]
43
- - @copilotkitnext/runtime@1.51.5-next.0
417
+ - @copilotkit/runtime@1.51.5-next.0
44
418
  - @copilotkit/shared@1.51.5-next.0
45
- - @copilotkitnext/agent@1.51.5-next.0
419
+ - @copilotkit/agent@1.51.5-next.0
46
420
 
47
421
  ## 1.51.4
48
422
 
@@ -51,32 +425,32 @@
51
425
  - 8d67519: fix: propagate agent error messages into RUN_ERROR events
52
426
  - 4886f18: fix: use langgraph clone fix on latest agui
53
427
  - @copilotkit/shared@1.51.4
54
- - @copilotkitnext/agent@1.51.4
55
- - @copilotkitnext/runtime@1.51.4
428
+ - @copilotkit/agent@1.51.4
429
+ - @copilotkit/runtime@1.51.4
56
430
 
57
431
  ## 1.51.4-next.8
58
432
 
59
433
  ### Patch Changes
60
434
 
61
435
  - @copilotkit/shared@1.51.4-next.8
62
- - @copilotkitnext/agent@1.51.4-next.8
63
- - @copilotkitnext/runtime@1.51.4-next.8
436
+ - @copilotkit/agent@1.51.4-next.8
437
+ - @copilotkit/runtime@1.51.4-next.8
64
438
 
65
439
  ## 1.51.4-next.7
66
440
 
67
441
  ### Patch Changes
68
442
 
69
443
  - @copilotkit/shared@1.51.4-next.7
70
- - @copilotkitnext/agent@1.51.4-next.7
71
- - @copilotkitnext/runtime@1.51.4-next.7
444
+ - @copilotkit/agent@1.51.4-next.7
445
+ - @copilotkit/runtime@1.51.4-next.7
72
446
 
73
447
  ## 1.51.4-next.6
74
448
 
75
449
  ### Patch Changes
76
450
 
77
451
  - @copilotkit/shared@1.51.4-next.6
78
- - @copilotkitnext/agent@1.51.4-next.6
79
- - @copilotkitnext/runtime@1.51.4-next.6
452
+ - @copilotkit/agent@1.51.4-next.6
453
+ - @copilotkit/runtime@1.51.4-next.6
80
454
 
81
455
  ## 1.51.4-next.5
82
456
 
@@ -84,40 +458,40 @@
84
458
 
85
459
  - 8d67519: fix: propagate agent error messages into RUN_ERROR events
86
460
  - @copilotkit/shared@1.51.4-next.5
87
- - @copilotkitnext/agent@1.51.4-next.5
88
- - @copilotkitnext/runtime@1.51.4-next.5
461
+ - @copilotkit/agent@1.51.4-next.5
462
+ - @copilotkit/runtime@1.51.4-next.5
89
463
 
90
464
  ## 1.51.4-next.4
91
465
 
92
466
  ### Patch Changes
93
467
 
94
468
  - @copilotkit/shared@1.51.4-next.4
95
- - @copilotkitnext/agent@1.51.4-next.4
96
- - @copilotkitnext/runtime@1.51.4-next.4
469
+ - @copilotkit/agent@1.51.4-next.4
470
+ - @copilotkit/runtime@1.51.4-next.4
97
471
 
98
472
  ## 1.51.4-next.3
99
473
 
100
474
  ### Patch Changes
101
475
 
102
476
  - @copilotkit/shared@1.51.4-next.3
103
- - @copilotkitnext/agent@1.51.4-next.3
104
- - @copilotkitnext/runtime@1.51.4-next.3
477
+ - @copilotkit/agent@1.51.4-next.3
478
+ - @copilotkit/runtime@1.51.4-next.3
105
479
 
106
480
  ## 1.51.4-next.2
107
481
 
108
482
  ### Patch Changes
109
483
 
110
484
  - @copilotkit/shared@1.51.4-next.2
111
- - @copilotkitnext/agent@1.51.4-next.2
112
- - @copilotkitnext/runtime@1.51.4-next.2
485
+ - @copilotkit/agent@1.51.4-next.2
486
+ - @copilotkit/runtime@1.51.4-next.2
113
487
 
114
488
  ## 1.51.4-next.1
115
489
 
116
490
  ### Patch Changes
117
491
 
118
492
  - @copilotkit/shared@1.51.4-next.1
119
- - @copilotkitnext/agent@1.51.4-next.1
120
- - @copilotkitnext/runtime@1.51.4-next.1
493
+ - @copilotkit/agent@1.51.4-next.1
494
+ - @copilotkit/runtime@1.51.4-next.1
121
495
 
122
496
  ## 1.51.4-next.0
123
497
 
@@ -125,8 +499,8 @@
125
499
 
126
500
  - 4886f18: fix: use langgraph clone fix on latest agui
127
501
  - @copilotkit/shared@1.51.4-next.0
128
- - @copilotkitnext/agent@1.51.4-next.0
129
- - @copilotkitnext/runtime@1.51.4-next.0
502
+ - @copilotkit/agent@1.51.4-next.0
503
+ - @copilotkit/runtime@1.51.4-next.0
130
504
 
131
505
  ## 1.51.3
132
506
 
@@ -142,8 +516,8 @@
142
516
  - Updated dependencies [d36fc1e]
143
517
  - Updated dependencies [29d70a5]
144
518
  - @copilotkit/shared@1.51.3
145
- - @copilotkitnext/agent@1.51.3
146
- - @copilotkitnext/runtime@1.51.3
519
+ - @copilotkit/agent@1.51.3
520
+ - @copilotkit/runtime@1.51.3
147
521
 
148
522
  ## 1.51.3-next.8
149
523
 
@@ -151,17 +525,17 @@
151
525
 
152
526
  - d36fc1e: Add UMD export
153
527
  - Updated dependencies [d36fc1e]
154
- - @copilotkitnext/runtime@1.51.3-next.8
528
+ - @copilotkit/runtime@1.51.3-next.8
155
529
  - @copilotkit/shared@1.51.3-next.8
156
- - @copilotkitnext/agent@1.51.3-next.8
530
+ - @copilotkit/agent@1.51.3-next.8
157
531
 
158
532
  ## 1.51.3-next.7
159
533
 
160
534
  ### Patch Changes
161
535
 
162
536
  - @copilotkit/shared@1.51.3-next.7
163
- - @copilotkitnext/agent@1.51.3-next.7
164
- - @copilotkitnext/runtime@1.51.3-next.7
537
+ - @copilotkit/agent@1.51.3-next.7
538
+ - @copilotkit/runtime@1.51.3-next.7
165
539
 
166
540
  ## 1.51.3-next.6
167
541
 
@@ -169,16 +543,16 @@
169
543
 
170
544
  - 3a0822d: fix: do not run middleware for internal get requests
171
545
  - @copilotkit/shared@1.51.3-next.6
172
- - @copilotkitnext/agent@1.51.3-next.6
173
- - @copilotkitnext/runtime@1.51.3-next.6
546
+ - @copilotkit/agent@1.51.3-next.6
547
+ - @copilotkit/runtime@1.51.3-next.6
174
548
 
175
549
  ## 1.51.3-next.5
176
550
 
177
551
  ### Patch Changes
178
552
 
179
553
  - @copilotkit/shared@1.51.3-next.5
180
- - @copilotkitnext/agent@1.51.3-next.5
181
- - @copilotkitnext/runtime@1.51.3-next.5
554
+ - @copilotkit/agent@1.51.3-next.5
555
+ - @copilotkit/runtime@1.51.3-next.5
182
556
 
183
557
  ## 1.51.3-next.4
184
558
 
@@ -186,8 +560,8 @@
186
560
 
187
561
  - b49277b: fix: update all agui langgraph dependencies
188
562
  - @copilotkit/shared@1.51.3-next.4
189
- - @copilotkitnext/agent@1.51.3-next.4
190
- - @copilotkitnext/runtime@1.51.3-next.4
563
+ - @copilotkit/agent@1.51.3-next.4
564
+ - @copilotkit/runtime@1.51.3-next.4
191
565
 
192
566
  ## 1.51.3-next.3
193
567
 
@@ -196,25 +570,25 @@
196
570
  - d655e75: fix: update ag-ui dependencies
197
571
  - Updated dependencies [d655e75]
198
572
  - @copilotkit/shared@1.51.3-next.3
199
- - @copilotkitnext/agent@1.51.3-next.3
200
- - @copilotkitnext/runtime@1.51.3-next.3
573
+ - @copilotkit/agent@1.51.3-next.3
574
+ - @copilotkit/runtime@1.51.3-next.3
201
575
 
202
576
  ## 1.51.3-next.2
203
577
 
204
578
  ### Patch Changes
205
579
 
206
580
  - @copilotkit/shared@1.51.3-next.2
207
- - @copilotkitnext/agent@1.51.3-next.2
208
- - @copilotkitnext/runtime@1.51.3-next.2
581
+ - @copilotkit/agent@1.51.3-next.2
582
+ - @copilotkit/runtime@1.51.3-next.2
209
583
 
210
584
  ## 1.51.3-next.1
211
585
 
212
586
  ### Patch Changes
213
587
 
214
588
  - Updated dependencies [29d70a5]
215
- - @copilotkitnext/agent@1.51.3-next.1
589
+ - @copilotkit/agent@1.51.3-next.1
216
590
  - @copilotkit/shared@1.51.3-next.1
217
- - @copilotkitnext/runtime@1.51.3-next.1
591
+ - @copilotkit/runtime@1.51.3-next.1
218
592
 
219
593
  ## 1.51.3-next.0
220
594
 
@@ -222,9 +596,9 @@
222
596
 
223
597
  - d268c49: fix: add apiKey parameter to BuiltInAgentConfiguration
224
598
  - Updated dependencies [d268c49]
225
- - @copilotkitnext/agent@1.51.3-next.0
599
+ - @copilotkit/agent@1.51.3-next.0
226
600
  - @copilotkit/shared@1.51.3-next.0
227
- - @copilotkitnext/runtime@1.51.3-next.0
601
+ - @copilotkit/runtime@1.51.3-next.0
228
602
 
229
603
  ## 1.51.2
230
604
 
@@ -234,8 +608,8 @@
234
608
  - e59d23f: Move in-repo deps from peerdeps to actual deps
235
609
  - Updated dependencies [e59d23f]
236
610
  - Updated dependencies [f36b6b1]
237
- - @copilotkitnext/runtime@1.51.2
238
- - @copilotkitnext/agent@1.51.2
611
+ - @copilotkit/runtime@1.51.2
612
+ - @copilotkit/agent@1.51.2
239
613
  - @copilotkit/shared@1.51.2
240
614
 
241
615
  ## 1.51.2-next.1
@@ -245,8 +619,8 @@
245
619
  - e59d23f: Use deps instead of peerdeps
246
620
  - e59d23f: Move in-repo deps from peerdeps to actual deps
247
621
  - Updated dependencies [e59d23f]
248
- - @copilotkitnext/runtime@1.51.2-next.1
249
- - @copilotkitnext/agent@1.51.2-next.1
622
+ - @copilotkit/runtime@1.51.2-next.1
623
+ - @copilotkit/agent@1.51.2-next.1
250
624
  - @copilotkit/shared@1.51.2-next.1
251
625
 
252
626
  ## 1.51.2-next.0
@@ -254,18 +628,18 @@
254
628
  ### Patch Changes
255
629
 
256
630
  - Updated dependencies [f36b6b1]
257
- - @copilotkitnext/agent@1.51.2-next.0
631
+ - @copilotkit/agent@1.51.2-next.0
258
632
  - @copilotkit/shared@1.51.2-next.0
259
- - @copilotkitnext/runtime@1.51.2-next.0
633
+ - @copilotkit/runtime@1.51.2-next.0
260
634
 
261
635
  ## 1.51.1
262
636
 
263
637
  ### Patch Changes
264
638
 
265
639
  - Updated dependencies [329653b]
266
- - @copilotkitnext/agent@1.51.1
640
+ - @copilotkit/agent@1.51.1
267
641
  - @copilotkit/shared@1.51.1
268
- - @copilotkitnext/runtime@1.51.1
642
+ - @copilotkit/runtime@1.51.1
269
643
 
270
644
  ## 1.51.0
271
645
 
@@ -279,27 +653,27 @@
279
653
  - Updated dependencies [73f196f]
280
654
  - Updated dependencies [2839a15]
281
655
  - Updated dependencies [2afd4e3]
282
- - @copilotkitnext/runtime@1.51.0
656
+ - @copilotkit/runtime@1.51.0
283
657
  - @copilotkit/shared@1.51.0
284
- - @copilotkitnext/agent@1.51.0
658
+ - @copilotkit/agent@1.51.0
285
659
 
286
660
  ## 1.51.0-next.4
287
661
 
288
662
  ### Patch Changes
289
663
 
290
664
  - Updated dependencies [2793a11]
291
- - @copilotkitnext/runtime@1.51.0-next.4
665
+ - @copilotkit/runtime@1.51.0-next.4
292
666
  - @copilotkit/shared@1.51.0-next.4
293
- - @copilotkitnext/agent@1.51.0-next.4
667
+ - @copilotkit/agent@1.51.0-next.4
294
668
 
295
669
  ## 1.51.0-next.3
296
670
 
297
671
  ### Patch Changes
298
672
 
299
673
  - Updated dependencies [73f196f]
300
- - @copilotkitnext/runtime@1.51.0-next.3
674
+ - @copilotkit/runtime@1.51.0-next.3
301
675
  - @copilotkit/shared@1.51.0-next.3
302
- - @copilotkitnext/agent@1.51.0-next.3
676
+ - @copilotkit/agent@1.51.0-next.3
303
677
 
304
678
  ## 1.51.0-next.2
305
679
 
@@ -308,16 +682,16 @@
308
682
  - 4addb72: Fix ci again but really for real this time
309
683
  - Updated dependencies [2afd4e3]
310
684
  - @copilotkit/shared@1.51.0-next.2
311
- - @copilotkitnext/agent@1.51.0-next.2
312
- - @copilotkitnext/runtime@1.51.0-next.2
685
+ - @copilotkit/agent@1.51.0-next.2
686
+ - @copilotkit/runtime@1.51.0-next.2
313
687
 
314
688
  ## 1.51.0-next.1
315
689
 
316
690
  ### Patch Changes
317
691
 
318
692
  - @copilotkit/shared@1.51.0-next.1
319
- - @copilotkitnext/agent@1.51.0-next.1
320
- - @copilotkitnext/runtime@1.51.0-next.1
693
+ - @copilotkit/agent@1.51.0-next.1
694
+ - @copilotkit/runtime@1.51.0-next.1
321
695
 
322
696
  ## 1.50.2-next.0
323
697
 
@@ -842,6 +1216,7 @@
842
1216
  ### Patch Changes
843
1217
 
844
1218
  - 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties
1219
+
845
1220
  - Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
846
1221
  - Modified setupRemoteActions to include graphqlContext in the parameters.
847
1222
 
@@ -1010,6 +1385,7 @@
1010
1385
  - remove request logging
1011
1386
  - 3a7f45f: - fix: resolve agui agents only after all other endpoints
1012
1387
  - fac89c2: - refactor: rename onTrace to onError throughout codebase
1388
+
1013
1389
  - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
1014
1390
 
1015
1391
  - 7ca7023: - feat: send node name to agui agent
@@ -1110,6 +1486,7 @@
1110
1486
  ### Patch Changes
1111
1487
 
1112
1488
  - fac89c2: - refactor: rename onTrace to onError throughout codebase
1489
+
1113
1490
  - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
1114
1491
 
1115
1492
  - Updated dependencies [fac89c2]
@@ -1591,9 +1968,11 @@
1591
1968
  - c0d3261: - full AWP support
1592
1969
 
1593
1970
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1971
+
1594
1972
  - refactor: address linter issues with the new pages
1595
1973
 
1596
1974
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1975
+
1597
1976
  - Merge branch 'mme/acp' into mme/mastra
1598
1977
  - add sse example
1599
1978
  - Create small-turkeys-agree.md
@@ -1610,14 +1989,17 @@
1610
1989
  - 77a7457: - feat: Add Model Context Protocol (MCP) support
1611
1990
  - 76d9ef9: - fix: handle langgraph client specific errors when running lgc stream
1612
1991
  - c0d3261: - add AWP support
1992
+
1613
1993
  - make it work
1614
1994
  - update docs
1615
1995
  - refactor: move UI files to be normal NextJS pages and update generation
1616
1996
 
1617
1997
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1998
+
1618
1999
  - refactor: address linter issues with the new pages
1619
2000
 
1620
2001
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2002
+
1621
2003
  - Merge branch 'mme/acp' into mme/mastra
1622
2004
  - add sse example
1623
2005
 
@@ -1631,9 +2013,11 @@
1631
2013
  - c0d3261: - full AWP support
1632
2014
 
1633
2015
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2016
+
1634
2017
  - refactor: address linter issues with the new pages
1635
2018
 
1636
2019
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2020
+
1637
2021
  - Merge branch 'mme/acp' into mme/mastra
1638
2022
  - add sse example
1639
2023
  - Create small-turkeys-agree.md
@@ -1648,14 +2032,17 @@
1648
2032
  - fix missing tool call ids
1649
2033
 
1650
2034
  - c0d3261: - add AWP support
2035
+
1651
2036
  - make it work
1652
2037
  - update docs
1653
2038
  - refactor: move UI files to be normal NextJS pages and update generation
1654
2039
 
1655
2040
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2041
+
1656
2042
  - refactor: address linter issues with the new pages
1657
2043
 
1658
2044
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
2045
+
1659
2046
  - Merge branch 'mme/acp' into mme/mastra
1660
2047
  - add sse example
1661
2048
  - @copilotkit/shared@1.8.5-next.5
@@ -2660,6 +3047,7 @@
2660
3047
  - e16d95e: New prerelease
2661
3048
  - 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
2662
3049
  - CopilotKit Core:
3050
+
2663
3051
  - Improved error messages and overall logs
2664
3052
  - `useCopilotAction.renderAndAwait` renamed to `.renderAndAwaitForResponse` (backwards compatible, will be deprecated in the future)
2665
3053
  - Improved scrolling behavior. It is now possible to scroll up during LLM response generation
@@ -2667,6 +3055,7 @@
2667
3055
  - Updated interfaces for better developer ergonomics
2668
3056
 
2669
3057
  CoAgents:
3058
+
2670
3059
  - Renamed `remoteActions` to `remoteEndpoints` (backwards compatible, will be deprecated in the future)
2671
3060
  - Support for LangGraph Platform in Remote Endpoints
2672
3061
  - LangGraph JS Support for CoAgents (locally via `langgraph dev`, `langgraph up` or deployed to LangGraph Platform)
@@ -2674,6 +3063,7 @@
2674
3063
  - Enhanced state management and message handling
2675
3064
 
2676
3065
  CopilotKid Back-end SDK:
3066
+
2677
3067
  - Released a whole-new `@copilotkit/sdk-js` for building agents with LangGraph JS Support
2678
3068
 
2679
3069
  - 8d0144f: bump
@@ -3020,6 +3410,7 @@ CopilotKid Back-end SDK:
3020
3410
  ### Patch Changes
3021
3411
 
3022
3412
  - inject minified css in bundle
3413
+
3023
3414
  - removes the need to import `styles.css` manually
3024
3415
  - empty `styles.css` included in the build for backwards compatibility
3025
3416
  - uses tsup's `injectStyles` with `postcss` to bundle and minify the CSS, then inject it as a style tag
@@ -3156,6 +3547,7 @@ CopilotKid Back-end SDK:
3156
3547
  ### Major Changes
3157
3548
 
3158
3549
  - b6a4b6eb: V1.0 Release Candidate
3550
+
3159
3551
  - A robust new protocol between the frontend and the Copilot Runtime
3160
3552
  - Support for Copilot Cloud
3161
3553
  - Generative UI