@copilotkit/react-core 0.0.0-main-20250416144141 → 0.0.0-main-20260126221712

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 (435) hide show
  1. package/CHANGELOG.md +1566 -14
  2. package/LICENSE +21 -0
  3. package/README.md +123 -30
  4. package/dist/chunk-2IDV5OHF.mjs +11 -0
  5. package/dist/chunk-2IDV5OHF.mjs.map +1 -0
  6. package/dist/chunk-36KQV2NA.mjs +1 -0
  7. package/dist/chunk-37JRY3TC.mjs +349 -0
  8. package/dist/chunk-37JRY3TC.mjs.map +1 -0
  9. package/dist/chunk-3X3I7OJV.mjs +172 -0
  10. package/dist/chunk-3X3I7OJV.mjs.map +1 -0
  11. package/dist/chunk-4RRMC7L2.mjs +32 -0
  12. package/dist/chunk-4RRMC7L2.mjs.map +1 -0
  13. package/dist/chunk-6ESSSQ7Q.mjs +134 -0
  14. package/dist/chunk-6ESSSQ7Q.mjs.map +1 -0
  15. package/dist/chunk-6ZLPNY7X.mjs +225 -0
  16. package/dist/chunk-6ZLPNY7X.mjs.map +1 -0
  17. package/dist/chunk-7DTB7S5V.mjs +83 -0
  18. package/dist/chunk-7DTB7S5V.mjs.map +1 -0
  19. package/dist/{chunk-KF5SB2VB.mjs → chunk-7IBF6RBW.mjs} +3 -3
  20. package/dist/{chunk-KF5SB2VB.mjs.map → chunk-7IBF6RBW.mjs.map} +1 -1
  21. package/dist/chunk-A6NKSGH3.mjs +1 -0
  22. package/dist/{chunk-7VCWAAWC.mjs → chunk-ABWT4DRT.mjs} +2 -2
  23. package/dist/{chunk-UDUFMGWQ.mjs → chunk-AFNWX62Q.mjs} +25 -10
  24. package/dist/chunk-AFNWX62Q.mjs.map +1 -0
  25. package/dist/chunk-AR533FGY.mjs +86 -0
  26. package/dist/chunk-AR533FGY.mjs.map +1 -0
  27. package/dist/chunk-BUSWSDYO.mjs +17 -0
  28. package/dist/chunk-BUSWSDYO.mjs.map +1 -0
  29. package/dist/chunk-BVBFFI7K.mjs +102 -0
  30. package/dist/chunk-BVBFFI7K.mjs.map +1 -0
  31. package/dist/chunk-CDUIA2WM.mjs +60 -0
  32. package/dist/chunk-CDUIA2WM.mjs.map +1 -0
  33. package/dist/chunk-CYDWEPFL.mjs +1 -0
  34. package/dist/{chunk-DCTJZ742.mjs → chunk-DMLQZG75.mjs} +5 -2
  35. package/dist/chunk-DMLQZG75.mjs.map +1 -0
  36. package/dist/{chunk-FRRPZKXW.mjs → chunk-E7SE25ZU.mjs} +3 -3
  37. package/dist/chunk-EFL5OBKN.mjs +310 -0
  38. package/dist/chunk-EFL5OBKN.mjs.map +1 -0
  39. package/dist/chunk-FD6FGKYY.mjs +1 -0
  40. package/dist/chunk-FDOMAPJY.mjs +59 -0
  41. package/dist/chunk-FDOMAPJY.mjs.map +1 -0
  42. package/dist/{chunk-534J55RX.mjs → chunk-FJEI7IBX.mjs} +10 -13
  43. package/dist/chunk-FJEI7IBX.mjs.map +1 -0
  44. package/dist/chunk-GPEJNVE5.mjs +80 -0
  45. package/dist/chunk-GPEJNVE5.mjs.map +1 -0
  46. package/dist/chunk-HE22TZMF.mjs +186 -0
  47. package/dist/chunk-HE22TZMF.mjs.map +1 -0
  48. package/dist/chunk-I76HKHPJ.mjs +32 -0
  49. package/dist/chunk-I76HKHPJ.mjs.map +1 -0
  50. package/dist/chunk-ICIK2BSB.mjs +17 -0
  51. package/dist/chunk-ICIK2BSB.mjs.map +1 -0
  52. package/dist/chunk-JD7BAH7U.mjs +1 -0
  53. package/dist/{chunk-TWWQG3EF.mjs → chunk-K2GJI3PT.mjs} +7 -7
  54. package/dist/chunk-K2GJI3PT.mjs.map +1 -0
  55. package/dist/chunk-LMHB2D4J.mjs +33 -0
  56. package/dist/chunk-LMHB2D4J.mjs.map +1 -0
  57. package/dist/chunk-LWJIFZWN.mjs +36 -0
  58. package/dist/chunk-LWJIFZWN.mjs.map +1 -0
  59. package/dist/chunk-NB2FKV2V.mjs +1 -0
  60. package/dist/chunk-NB2FKV2V.mjs.map +1 -0
  61. package/dist/chunk-NBK4KBLX.mjs +54 -0
  62. package/dist/chunk-NBK4KBLX.mjs.map +1 -0
  63. package/dist/chunk-PIF5KJYI.mjs +103 -0
  64. package/dist/chunk-PIF5KJYI.mjs.map +1 -0
  65. package/dist/{chunk-6U3UH3KO.mjs → chunk-RKTVJRK7.mjs} +5 -2
  66. package/dist/chunk-RKTVJRK7.mjs.map +1 -0
  67. package/dist/chunk-SPCZTZCY.mjs +1 -0
  68. package/dist/chunk-SPCZTZCY.mjs.map +1 -0
  69. package/dist/chunk-THCOOWDH.mjs +551 -0
  70. package/dist/chunk-THCOOWDH.mjs.map +1 -0
  71. package/dist/chunk-VV56AVPB.mjs +125 -0
  72. package/dist/chunk-VV56AVPB.mjs.map +1 -0
  73. package/dist/chunk-WF65O6HX.mjs +66 -0
  74. package/dist/chunk-WF65O6HX.mjs.map +1 -0
  75. package/dist/chunk-XDFVCQD3.mjs +27 -0
  76. package/dist/chunk-XDFVCQD3.mjs.map +1 -0
  77. package/dist/chunk-YCG6SNAU.mjs +759 -0
  78. package/dist/chunk-YCG6SNAU.mjs.map +1 -0
  79. package/dist/{chunk-5TVV6FJD.mjs → chunk-YTQHRJUA.mjs} +17 -15
  80. package/dist/chunk-YTQHRJUA.mjs.map +1 -0
  81. package/dist/{chunk-5FHSUKQL.mjs → chunk-YYN33GSG.mjs} +5 -2
  82. package/dist/chunk-YYN33GSG.mjs.map +1 -0
  83. package/dist/chunk-Z6JV2LRY.mjs +37 -0
  84. package/dist/chunk-Z6JV2LRY.mjs.map +1 -0
  85. package/dist/chunk-ZVF5Q6IH.mjs +29 -0
  86. package/dist/chunk-ZVF5Q6IH.mjs.map +1 -0
  87. package/dist/chunk-ZYTXB6HH.mjs +151 -0
  88. package/dist/chunk-ZYTXB6HH.mjs.map +1 -0
  89. package/dist/components/CopilotListeners.d.ts +3 -0
  90. package/dist/components/CopilotListeners.js +101 -0
  91. package/dist/components/CopilotListeners.js.map +1 -0
  92. package/dist/components/CopilotListeners.mjs +9 -0
  93. package/dist/components/CopilotListeners.mjs.map +1 -0
  94. package/dist/components/copilot-provider/copilot-messages.d.ts +17 -1
  95. package/dist/components/copilot-provider/copilot-messages.js +196 -50
  96. package/dist/components/copilot-provider/copilot-messages.js.map +1 -1
  97. package/dist/components/copilot-provider/copilot-messages.mjs +11 -5
  98. package/dist/components/copilot-provider/copilotkit-props.d.ts +71 -19
  99. package/dist/components/copilot-provider/copilotkit-props.js.map +1 -1
  100. package/dist/components/copilot-provider/copilotkit.d.ts +2 -1
  101. package/dist/components/copilot-provider/copilotkit.js +1240 -676
  102. package/dist/components/copilot-provider/copilotkit.js.map +1 -1
  103. package/dist/components/copilot-provider/copilotkit.mjs +18 -11
  104. package/dist/components/copilot-provider/index.d.ts +2 -1
  105. package/dist/components/copilot-provider/index.js +1240 -676
  106. package/dist/components/copilot-provider/index.js.map +1 -1
  107. package/dist/components/copilot-provider/index.mjs +19 -11
  108. package/dist/components/dev-console/console-trigger.d.ts +8 -0
  109. package/dist/components/dev-console/console-trigger.js +1202 -0
  110. package/dist/components/dev-console/console-trigger.js.map +1 -0
  111. package/dist/components/dev-console/console-trigger.mjs +233 -0
  112. package/dist/components/dev-console/console-trigger.mjs.map +1 -0
  113. package/dist/components/dev-console/developer-console-modal.d.ts +10 -0
  114. package/dist/components/dev-console/developer-console-modal.js +987 -0
  115. package/dist/components/dev-console/developer-console-modal.js.map +1 -0
  116. package/dist/components/dev-console/developer-console-modal.mjs +12 -0
  117. package/dist/components/dev-console/developer-console-modal.mjs.map +1 -0
  118. package/dist/components/dev-console/icons.d.ts +9 -0
  119. package/dist/components/dev-console/icons.js +131 -0
  120. package/dist/components/dev-console/icons.js.map +1 -0
  121. package/dist/components/dev-console/icons.mjs +16 -0
  122. package/dist/components/dev-console/icons.mjs.map +1 -0
  123. package/dist/components/error-boundary/error-boundary.d.ts +7 -7
  124. package/dist/components/error-boundary/error-boundary.js +197 -194
  125. package/dist/components/error-boundary/error-boundary.js.map +1 -1
  126. package/dist/components/error-boundary/error-boundary.mjs +4 -3
  127. package/dist/components/error-boundary/error-utils.d.ts +1 -1
  128. package/dist/components/error-boundary/error-utils.js +7 -16
  129. package/dist/components/error-boundary/error-utils.js.map +1 -1
  130. package/dist/components/error-boundary/error-utils.mjs +2 -1
  131. package/dist/components/index.d.ts +2 -1
  132. package/dist/components/index.js +1240 -676
  133. package/dist/components/index.js.map +1 -1
  134. package/dist/components/index.mjs +20 -11
  135. package/dist/components/toast/exclamation-mark-icon.d.ts +2 -2
  136. package/dist/components/toast/toast-provider.d.ts +11 -14
  137. package/dist/components/toast/toast-provider.js +251 -191
  138. package/dist/components/toast/toast-provider.js.map +1 -1
  139. package/dist/components/toast/toast-provider.mjs +1 -2
  140. package/dist/components/usage-banner.d.ts +12 -5
  141. package/dist/components/usage-banner.js +199 -178
  142. package/dist/components/usage-banner.js.map +1 -1
  143. package/dist/components/usage-banner.mjs +3 -1
  144. package/dist/context/coagent-state-renders-context.d.ts +24 -0
  145. package/dist/context/coagent-state-renders-context.js +91 -0
  146. package/dist/context/coagent-state-renders-context.js.map +1 -0
  147. package/dist/context/coagent-state-renders-context.mjs +12 -0
  148. package/dist/context/coagent-state-renders-context.mjs.map +1 -0
  149. package/dist/context/copilot-context.d.ts +1 -1
  150. package/dist/context/copilot-context.js +24 -9
  151. package/dist/context/copilot-context.js.map +1 -1
  152. package/dist/context/copilot-context.mjs +1 -1
  153. package/dist/context/copilot-messages-context.d.ts +6 -3
  154. package/dist/context/copilot-messages-context.js +4 -1
  155. package/dist/context/copilot-messages-context.js.map +1 -1
  156. package/dist/context/copilot-messages-context.mjs +1 -1
  157. package/dist/context/index.d.ts +5 -1
  158. package/dist/context/index.js +128 -12
  159. package/dist/context/index.js.map +1 -1
  160. package/dist/context/index.mjs +20 -4
  161. package/dist/context/threads-context.d.ts +16 -0
  162. package/dist/context/threads-context.js +59 -0
  163. package/dist/context/threads-context.js.map +1 -0
  164. package/dist/context/threads-context.mjs +12 -0
  165. package/dist/context/threads-context.mjs.map +1 -0
  166. package/dist/{copilot-context-0e923eb1.d.ts → copilot-context-ec77e921.d.ts} +50 -35
  167. package/dist/hooks/index.d.ts +16 -7
  168. package/dist/hooks/index.js +1263 -1159
  169. package/dist/hooks/index.js.map +1 -1
  170. package/dist/hooks/index.mjs +61 -40
  171. package/dist/hooks/use-agent-nodename.d.ts +3 -0
  172. package/dist/hooks/use-agent-nodename.js +56 -0
  173. package/dist/hooks/use-agent-nodename.js.map +1 -0
  174. package/dist/hooks/use-agent-nodename.mjs +8 -0
  175. package/dist/hooks/use-agent-nodename.mjs.map +1 -0
  176. package/dist/hooks/use-coagent-state-render-bridge.d.ts +100 -0
  177. package/dist/hooks/use-coagent-state-render-bridge.js +220 -0
  178. package/dist/hooks/use-coagent-state-render-bridge.js.map +1 -0
  179. package/dist/hooks/use-coagent-state-render-bridge.mjs +15 -0
  180. package/dist/hooks/use-coagent-state-render-bridge.mjs.map +1 -0
  181. package/dist/hooks/use-coagent-state-render.js +53 -24
  182. package/dist/hooks/use-coagent-state-render.js.map +1 -1
  183. package/dist/hooks/use-coagent-state-render.mjs +4 -4
  184. package/dist/hooks/use-coagent.d.ts +18 -37
  185. package/dist/hooks/use-coagent.js +142 -1193
  186. package/dist/hooks/use-coagent.js.map +1 -1
  187. package/dist/hooks/use-coagent.mjs +2 -24
  188. package/dist/hooks/use-configure-chat-suggestions.d.ts +36 -0
  189. package/dist/hooks/use-configure-chat-suggestions.js +79 -0
  190. package/dist/hooks/use-configure-chat-suggestions.js.map +1 -0
  191. package/dist/hooks/use-configure-chat-suggestions.mjs +47 -0
  192. package/dist/hooks/use-configure-chat-suggestions.mjs.map +1 -0
  193. package/dist/hooks/use-copilot-action.d.ts +8 -45
  194. package/dist/hooks/use-copilot-action.js +219 -316
  195. package/dist/hooks/use-copilot-action.js.map +1 -1
  196. package/dist/hooks/use-copilot-action.mjs +4 -4
  197. package/dist/hooks/use-copilot-additional-instructions.js +24 -9
  198. package/dist/hooks/use-copilot-additional-instructions.js.map +1 -1
  199. package/dist/hooks/use-copilot-additional-instructions.mjs +2 -2
  200. package/dist/hooks/use-copilot-authenticated-action.js +251 -230
  201. package/dist/hooks/use-copilot-authenticated-action.js.map +1 -1
  202. package/dist/hooks/use-copilot-authenticated-action.mjs +6 -5
  203. package/dist/hooks/use-copilot-chat-headless_c.d.ts +25 -0
  204. package/dist/hooks/use-copilot-chat-headless_c.js +1050 -0
  205. package/dist/hooks/use-copilot-chat-headless_c.js.map +1 -0
  206. package/dist/hooks/use-copilot-chat-headless_c.mjs +24 -0
  207. package/dist/hooks/use-copilot-chat-headless_c.mjs.map +1 -0
  208. package/dist/hooks/use-copilot-chat-suggestions.d.ts +35 -0
  209. package/dist/hooks/use-copilot-chat-suggestions.js +60 -0
  210. package/dist/hooks/use-copilot-chat-suggestions.js.map +1 -0
  211. package/dist/hooks/use-copilot-chat-suggestions.mjs +8 -0
  212. package/dist/hooks/use-copilot-chat-suggestions.mjs.map +1 -0
  213. package/dist/hooks/use-copilot-chat.d.ts +89 -45
  214. package/dist/hooks/use-copilot-chat.js +654 -779
  215. package/dist/hooks/use-copilot-chat.js.map +1 -1
  216. package/dist/hooks/use-copilot-chat.mjs +13 -18
  217. package/dist/hooks/use-copilot-chat_internal.d.ts +244 -0
  218. package/dist/hooks/use-copilot-chat_internal.js +982 -0
  219. package/dist/hooks/use-copilot-chat_internal.js.map +1 -0
  220. package/dist/hooks/use-copilot-chat_internal.mjs +22 -0
  221. package/dist/hooks/use-copilot-chat_internal.mjs.map +1 -0
  222. package/dist/hooks/use-copilot-readable.d.ts +1 -1
  223. package/dist/hooks/use-copilot-readable.js +25 -139
  224. package/dist/hooks/use-copilot-readable.js.map +1 -1
  225. package/dist/hooks/use-copilot-readable.mjs +1 -2
  226. package/dist/hooks/use-copilot-runtime-client.d.ts +7 -2
  227. package/dist/hooks/use-copilot-runtime-client.js +132 -128
  228. package/dist/hooks/use-copilot-runtime-client.js.map +1 -1
  229. package/dist/hooks/use-copilot-runtime-client.mjs +2 -3
  230. package/dist/hooks/use-default-tool.d.ts +8 -0
  231. package/dist/hooks/use-default-tool.js +302 -0
  232. package/dist/hooks/use-default-tool.js.map +1 -0
  233. package/dist/hooks/use-default-tool.mjs +12 -0
  234. package/dist/hooks/use-default-tool.mjs.map +1 -0
  235. package/dist/hooks/use-flat-category-store.js +4 -1
  236. package/dist/hooks/use-flat-category-store.js.map +1 -1
  237. package/dist/hooks/use-flat-category-store.mjs +1 -1
  238. package/dist/hooks/use-frontend-tool.d.ts +11 -0
  239. package/dist/hooks/use-frontend-tool.js +104 -0
  240. package/dist/hooks/use-frontend-tool.js.map +1 -0
  241. package/dist/hooks/use-frontend-tool.mjs +8 -0
  242. package/dist/hooks/use-frontend-tool.mjs.map +1 -0
  243. package/dist/hooks/use-human-in-the-loop.d.ts +13 -0
  244. package/dist/hooks/use-human-in-the-loop.js +122 -0
  245. package/dist/hooks/use-human-in-the-loop.js.map +1 -0
  246. package/dist/hooks/use-human-in-the-loop.mjs +8 -0
  247. package/dist/hooks/use-human-in-the-loop.mjs.map +1 -0
  248. package/dist/hooks/use-langgraph-interrupt-render.d.ts +3 -2
  249. package/dist/hooks/use-langgraph-interrupt-render.js +171 -38
  250. package/dist/hooks/use-langgraph-interrupt-render.js.map +1 -1
  251. package/dist/hooks/use-langgraph-interrupt-render.mjs +7 -4
  252. package/dist/hooks/use-langgraph-interrupt.d.ts +1 -1
  253. package/dist/hooks/use-langgraph-interrupt.js +37 -990
  254. package/dist/hooks/use-langgraph-interrupt.js.map +1 -1
  255. package/dist/hooks/use-langgraph-interrupt.mjs +3 -18
  256. package/dist/hooks/use-lazy-tool-renderer.d.ts +6 -0
  257. package/dist/hooks/use-lazy-tool-renderer.js +53 -0
  258. package/dist/hooks/use-lazy-tool-renderer.js.map +1 -0
  259. package/dist/hooks/use-lazy-tool-renderer.mjs +8 -0
  260. package/dist/hooks/use-lazy-tool-renderer.mjs.map +1 -0
  261. package/dist/hooks/use-make-copilot-document-readable.js +25 -10
  262. package/dist/hooks/use-make-copilot-document-readable.js.map +1 -1
  263. package/dist/hooks/use-make-copilot-document-readable.mjs +2 -2
  264. package/dist/hooks/use-render-tool-call.d.ts +12 -0
  265. package/dist/hooks/use-render-tool-call.js +90 -0
  266. package/dist/hooks/use-render-tool-call.js.map +1 -0
  267. package/dist/hooks/use-render-tool-call.mjs +8 -0
  268. package/dist/hooks/use-render-tool-call.mjs.map +1 -0
  269. package/dist/hooks/use-tree.d.ts +1 -0
  270. package/dist/hooks/use-tree.js +4 -1
  271. package/dist/hooks/use-tree.js.map +1 -1
  272. package/dist/hooks/use-tree.mjs +1 -1
  273. package/dist/index.d.ts +18 -6
  274. package/dist/index.js +2456 -1909
  275. package/dist/index.js.map +1 -1
  276. package/dist/index.mjs +97 -46
  277. package/dist/lib/copilot-task.d.ts +2 -2
  278. package/dist/lib/copilot-task.js +4 -5
  279. package/dist/lib/copilot-task.js.map +1 -1
  280. package/dist/lib/copilot-task.mjs +22 -13
  281. package/dist/lib/index.d.ts +1 -1
  282. package/dist/lib/index.js +4 -5
  283. package/dist/lib/index.js.map +1 -1
  284. package/dist/lib/index.mjs +22 -13
  285. package/dist/setupTests.d.ts +2 -0
  286. package/dist/setupTests.js +28 -0
  287. package/dist/setupTests.js.map +1 -0
  288. package/dist/setupTests.mjs +26 -0
  289. package/dist/setupTests.mjs.map +1 -0
  290. package/dist/types/coagent-state.d.ts +4 -1
  291. package/dist/types/coagent-state.js.map +1 -1
  292. package/dist/types/frontend-action.d.ts +5 -5
  293. package/dist/types/index.d.ts +4 -0
  294. package/dist/types/index.js.map +1 -1
  295. package/dist/types/index.mjs +2 -1
  296. package/dist/types/interrupt-action.d.ts +1 -1
  297. package/dist/types/interrupt-action.js.map +1 -1
  298. package/dist/types/interrupt-action.mjs +1 -0
  299. package/dist/utils/dev-console.d.ts +1 -1
  300. package/dist/utils/dev-console.js +7 -8
  301. package/dist/utils/dev-console.js.map +1 -1
  302. package/dist/utils/dev-console.mjs +1 -1
  303. package/dist/utils/index.d.ts +1 -12
  304. package/dist/utils/index.js +15 -189
  305. package/dist/utils/index.js.map +1 -1
  306. package/dist/utils/index.mjs +5 -15
  307. package/dist/utils/suggestions-constants.d.ts +9 -0
  308. package/dist/utils/suggestions-constants.js +35 -0
  309. package/dist/utils/suggestions-constants.js.map +1 -0
  310. package/dist/utils/suggestions-constants.mjs +8 -0
  311. package/dist/utils/suggestions-constants.mjs.map +1 -0
  312. package/dist/utils/utils.js.map +1 -1
  313. package/dist/v2/index.css +4 -0
  314. package/dist/v2/index.css.map +1 -0
  315. package/dist/v2/index.d.ts +2 -0
  316. package/dist/v2/index.js +27 -0
  317. package/dist/v2/index.js.map +1 -0
  318. package/dist/v2/index.mjs +6 -0
  319. package/dist/v2/index.mjs.map +1 -0
  320. package/jest.config.js +23 -3
  321. package/package.json +30 -12
  322. package/src/components/CopilotListeners.tsx +81 -0
  323. package/src/components/copilot-provider/__tests__/copilotkit-error.test.tsx +75 -0
  324. package/src/components/copilot-provider/copilot-messages.tsx +245 -31
  325. package/src/components/copilot-provider/copilotkit-props.tsx +72 -15
  326. package/src/components/copilot-provider/copilotkit.tsx +330 -148
  327. package/src/components/dev-console/console-trigger.tsx +254 -0
  328. package/src/components/dev-console/developer-console-modal.tsx +866 -0
  329. package/src/components/dev-console/icons.tsx +101 -0
  330. package/src/components/error-boundary/error-boundary.tsx +4 -13
  331. package/src/components/error-boundary/error-utils.tsx +6 -6
  332. package/src/components/toast/toast-provider.tsx +284 -94
  333. package/src/components/usage-banner.tsx +222 -168
  334. package/src/context/__tests__/threads-context.test.tsx +28 -0
  335. package/src/context/coagent-state-renders-context.tsx +76 -0
  336. package/src/context/copilot-context.tsx +56 -26
  337. package/src/context/copilot-messages-context.tsx +7 -1
  338. package/src/context/index.ts +8 -0
  339. package/src/context/threads-context.tsx +41 -0
  340. package/src/hooks/__tests__/use-coagent-config.test.ts +351 -0
  341. package/src/hooks/__tests__/use-coagent-state-render.e2e.test.tsx +229 -0
  342. package/src/hooks/index.ts +23 -4
  343. package/src/hooks/use-agent-nodename.ts +30 -0
  344. package/src/hooks/use-coagent-state-render-bridge.tsx +303 -0
  345. package/src/hooks/use-coagent-state-render.ts +13 -10
  346. package/src/hooks/use-coagent.ts +151 -212
  347. package/src/hooks/use-configure-chat-suggestions.tsx +86 -0
  348. package/src/hooks/use-copilot-action.ts +90 -159
  349. package/src/hooks/use-copilot-chat-headless_c.ts +258 -0
  350. package/src/hooks/use-copilot-chat-suggestions.tsx +124 -0
  351. package/src/hooks/use-copilot-chat.ts +108 -296
  352. package/src/hooks/use-copilot-chat_internal.ts +696 -0
  353. package/src/hooks/use-copilot-readable.ts +23 -25
  354. package/src/hooks/use-copilot-runtime-client.ts +143 -12
  355. package/src/hooks/use-default-tool.ts +7 -0
  356. package/src/hooks/use-flat-category-store.ts +4 -3
  357. package/src/hooks/use-frontend-tool.ts +96 -0
  358. package/src/hooks/use-human-in-the-loop.ts +122 -0
  359. package/src/hooks/use-langgraph-interrupt-render.ts +109 -40
  360. package/src/hooks/use-langgraph-interrupt.ts +17 -42
  361. package/src/hooks/use-lazy-tool-renderer.tsx +30 -0
  362. package/src/hooks/use-make-copilot-document-readable.ts +1 -1
  363. package/src/hooks/use-render-tool-call.ts +80 -0
  364. package/src/hooks/use-tree.ts +6 -1
  365. package/src/lib/copilot-task.ts +2 -2
  366. package/src/setupTests.ts +28 -0
  367. package/src/types/coagent-state.ts +4 -1
  368. package/src/types/index.ts +1 -0
  369. package/src/types/interrupt-action.ts +7 -3
  370. package/src/utils/dev-console.ts +13 -12
  371. package/src/utils/index.ts +1 -1
  372. package/src/utils/suggestions-constants.ts +8 -0
  373. package/src/utils/utils.ts +7 -0
  374. package/src/v2/index.css +1 -0
  375. package/src/v2/index.ts +4 -0
  376. package/tsconfig.json +5 -9
  377. package/tsup.config.ts +7 -7
  378. package/dist/chunk-22ENANUU.mjs +0 -250
  379. package/dist/chunk-22ENANUU.mjs.map +0 -1
  380. package/dist/chunk-534J55RX.mjs.map +0 -1
  381. package/dist/chunk-5FHSUKQL.mjs.map +0 -1
  382. package/dist/chunk-5TVV6FJD.mjs.map +0 -1
  383. package/dist/chunk-6OMSQLHC.mjs +0 -560
  384. package/dist/chunk-6OMSQLHC.mjs.map +0 -1
  385. package/dist/chunk-6U3UH3KO.mjs.map +0 -1
  386. package/dist/chunk-BKTARDXX.mjs +0 -40
  387. package/dist/chunk-BKTARDXX.mjs.map +0 -1
  388. package/dist/chunk-CMEX33KD.mjs +0 -544
  389. package/dist/chunk-CMEX33KD.mjs.map +0 -1
  390. package/dist/chunk-CQPYJIBH.mjs +0 -1
  391. package/dist/chunk-D34OH4VN.mjs +0 -201
  392. package/dist/chunk-D34OH4VN.mjs.map +0 -1
  393. package/dist/chunk-DCTJZ742.mjs.map +0 -1
  394. package/dist/chunk-DMQB35FC.mjs +0 -47
  395. package/dist/chunk-DMQB35FC.mjs.map +0 -1
  396. package/dist/chunk-GOK4PDQO.mjs +0 -37
  397. package/dist/chunk-GOK4PDQO.mjs.map +0 -1
  398. package/dist/chunk-HGZXDC4Y.mjs +0 -63
  399. package/dist/chunk-HGZXDC4Y.mjs.map +0 -1
  400. package/dist/chunk-IRC2ZBQ4.mjs +0 -65
  401. package/dist/chunk-IRC2ZBQ4.mjs.map +0 -1
  402. package/dist/chunk-JWE4IXSG.mjs +0 -121
  403. package/dist/chunk-JWE4IXSG.mjs.map +0 -1
  404. package/dist/chunk-MLAS4QUR.mjs +0 -18
  405. package/dist/chunk-MLAS4QUR.mjs.map +0 -1
  406. package/dist/chunk-TDQC6FJW.mjs +0 -228
  407. package/dist/chunk-TDQC6FJW.mjs.map +0 -1
  408. package/dist/chunk-TWWQG3EF.mjs.map +0 -1
  409. package/dist/chunk-UDUFMGWQ.mjs.map +0 -1
  410. package/dist/chunk-V46EGT4W.mjs +0 -202
  411. package/dist/chunk-V46EGT4W.mjs.map +0 -1
  412. package/dist/chunk-YPBKY4KY.mjs +0 -1
  413. package/dist/chunk-YPSGKPDA.mjs +0 -1
  414. package/dist/hooks/use-chat.d.ts +0 -140
  415. package/dist/hooks/use-chat.js +0 -778
  416. package/dist/hooks/use-chat.js.map +0 -1
  417. package/dist/hooks/use-chat.mjs +0 -12
  418. package/dist/utils/extract.d.ts +0 -43
  419. package/dist/utils/extract.js +0 -208
  420. package/dist/utils/extract.js.map +0 -1
  421. package/dist/utils/extract.mjs +0 -20
  422. package/dist/utils/utils.test.d.ts +0 -2
  423. package/dist/utils/utils.test.js +0 -9
  424. package/dist/utils/utils.test.js.map +0 -1
  425. package/dist/utils/utils.test.mjs +0 -7
  426. package/dist/utils/utils.test.mjs.map +0 -1
  427. package/src/hooks/use-chat.ts +0 -873
  428. package/src/utils/extract.ts +0 -215
  429. /package/dist/{chunk-CQPYJIBH.mjs.map → chunk-36KQV2NA.mjs.map} +0 -0
  430. /package/dist/{chunk-YPBKY4KY.mjs.map → chunk-A6NKSGH3.mjs.map} +0 -0
  431. /package/dist/{chunk-7VCWAAWC.mjs.map → chunk-ABWT4DRT.mjs.map} +0 -0
  432. /package/dist/{chunk-YPSGKPDA.mjs.map → chunk-CYDWEPFL.mjs.map} +0 -0
  433. /package/dist/{chunk-FRRPZKXW.mjs.map → chunk-E7SE25ZU.mjs.map} +0 -0
  434. /package/dist/{hooks/use-chat.mjs.map → chunk-FD6FGKYY.mjs.map} +0 -0
  435. /package/dist/{utils/extract.mjs.map → chunk-JD7BAH7U.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,14 +1,1577 @@
1
1
  # ui
2
2
 
3
- ## 0.0.0-main-20250416144141
3
+ ## 0.0.0-main-20260126221712
4
+
5
+ ### Patch Changes
6
+
7
+ - d655e75: fix: update ag-ui dependencies
8
+ - Updated dependencies [d655e75]
9
+ - @copilotkit/shared@0.0.0-main-20260126221712
10
+ - @copilotkit/runtime-client-gql@0.0.0-main-20260126221712
11
+ - @copilotkitnext/core@0.0.0-main-20260126221712
12
+ - @copilotkitnext/react@0.0.0-main-20260126221712
13
+
14
+ ## 1.51.3-next.3
15
+
16
+ ### Patch Changes
17
+
18
+ - d655e75: fix: update ag-ui dependencies
19
+ - Updated dependencies [d655e75]
20
+ - @copilotkit/shared@1.51.3-next.3
21
+ - @copilotkit/runtime-client-gql@1.51.3-next.3
22
+ - @copilotkitnext/core@1.51.3-next.3
23
+ - @copilotkitnext/react@1.51.3-next.3
24
+
25
+ ## 1.51.3-next.2
26
+
27
+ ### Patch Changes
28
+
29
+ - @copilotkit/runtime-client-gql@1.51.3-next.2
30
+ - @copilotkit/shared@1.51.3-next.2
31
+ - @copilotkitnext/core@1.51.3-next.2
32
+ - @copilotkitnext/react@1.51.3-next.2
33
+
34
+ ## 1.51.3-next.1
35
+
36
+ ### Patch Changes
37
+
38
+ - @copilotkit/runtime-client-gql@1.51.3-next.1
39
+ - @copilotkit/shared@1.51.3-next.1
40
+ - @copilotkitnext/core@1.51.3-next.1
41
+ - @copilotkitnext/react@1.51.3-next.1
42
+
43
+ ## 1.51.3-next.0
44
+
45
+ ### Patch Changes
46
+
47
+ - @copilotkit/runtime-client-gql@1.51.3-next.0
48
+ - @copilotkit/shared@1.51.3-next.0
49
+ - @copilotkitnext/core@1.51.3-next.0
50
+ - @copilotkitnext/react@1.51.3-next.0
51
+
52
+ ## 1.51.2
53
+
54
+ ### Patch Changes
55
+
56
+ - e59d23f: Use deps instead of peerdeps
57
+ - e59d23f: Move in-repo deps from peerdeps to actual deps
58
+ - Updated dependencies [e59d23f]
59
+ - Updated dependencies [e59d23f]
60
+ - @copilotkit/runtime-client-gql@1.51.2
61
+ - @copilotkitnext/react@1.51.2
62
+ - @copilotkitnext/core@1.51.2
63
+ - @copilotkit/shared@1.51.2
64
+
65
+ ## 1.51.2-next.1
66
+
67
+ ### Patch Changes
68
+
69
+ - e59d23f: Use deps instead of peerdeps
70
+ - e59d23f: Move in-repo deps from peerdeps to actual deps
71
+ - Updated dependencies [e59d23f]
72
+ - Updated dependencies [e59d23f]
73
+ - @copilotkit/runtime-client-gql@1.51.2-next.1
74
+ - @copilotkitnext/react@1.51.2-next.1
75
+ - @copilotkitnext/core@1.51.2-next.1
76
+ - @copilotkit/shared@1.51.2-next.1
77
+
78
+ ## 1.51.2-next.0
79
+
80
+ ### Patch Changes
81
+
82
+ - @copilotkit/runtime-client-gql@1.51.2-next.0
83
+ - @copilotkit/shared@1.51.2-next.0
84
+ - @copilotkitnext/core@1.51.2-next.0
85
+ - @copilotkitnext/react@1.51.2-next.0
86
+
87
+ ## 1.51.1
88
+
89
+ ### Patch Changes
90
+
91
+ - 329653b: Add support for MCP Apps Middleware
92
+ - Updated dependencies [329653b]
93
+ - @copilotkitnext/react@1.51.1
94
+ - @copilotkit/runtime-client-gql@1.51.1
95
+ - @copilotkit/shared@1.51.1
96
+ - @copilotkitnext/core@1.51.1
97
+
98
+ ## 1.51.0
99
+
100
+ ### Patch Changes
101
+
102
+ - 2839a15: Update versioning strategy
103
+ - Updated dependencies [2839a15]
104
+ - Updated dependencies [2afd4e3]
105
+ - @copilotkit/runtime-client-gql@1.51.0
106
+ - @copilotkit/shared@1.51.0
107
+ - @copilotkitnext/react@1.51.0
108
+ - @copilotkitnext/core@1.51.0
109
+
110
+ ## 1.51.0-next.4
111
+
112
+ ### Patch Changes
113
+
114
+ - @copilotkit/runtime-client-gql@1.51.0-next.4
115
+ - @copilotkit/shared@1.51.0-next.4
116
+ - @copilotkitnext/core@1.51.0-next.4
117
+ - @copilotkitnext/react@1.51.0-next.4
118
+
119
+ ## 1.51.0-next.3
120
+
121
+ ### Patch Changes
122
+
123
+ - @copilotkit/runtime-client-gql@1.51.0-next.3
124
+ - @copilotkit/shared@1.51.0-next.3
125
+ - @copilotkitnext/core@1.51.0-next.3
126
+ - @copilotkitnext/react@1.51.0-next.3
127
+
128
+ ## 1.51.0-next.2
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [2afd4e3]
133
+ - @copilotkit/shared@1.51.0-next.2
134
+ - @copilotkit/runtime-client-gql@1.51.0-next.2
135
+ - @copilotkitnext/core@1.51.0-next.2
136
+ - @copilotkitnext/react@1.51.0-next.2
137
+
138
+ ## 1.51.0-next.1
139
+
140
+ ### Patch Changes
141
+
142
+ - @copilotkit/runtime-client-gql@1.51.0-next.1
143
+ - @copilotkit/shared@1.51.0-next.1
144
+ - @copilotkitnext/core@1.51.0-next.1
145
+ - @copilotkitnext/react@1.51.0-next.1
146
+
147
+ ## 1.50.2-next.0
148
+
149
+ ### Patch Changes
150
+
151
+ - @copilotkit/runtime-client-gql@1.50.2-next.0
152
+ - @copilotkit/shared@1.50.2-next.0
153
+
154
+ ## 1.50.1
155
+
156
+ ### Patch Changes
157
+
158
+ - bdc7a8f: - fix: restore message callbacks
159
+ - 80dffec: Updated the default model and API version for the Google GenAI adapter
160
+ - cfa4185: - fix: fix stale state in handler
161
+ - eac8b20: - fix: use latest vnext
162
+ - Updated dependencies [80dffec]
163
+ - @copilotkit/runtime-client-gql@1.50.1
164
+ - @copilotkit/shared@1.50.1
165
+
166
+ ## 1.50.1-next.3
167
+
168
+ ### Patch Changes
169
+
170
+ - eac8b20: - fix: use latest vnext
171
+ - @copilotkit/runtime-client-gql@1.50.1-next.3
172
+ - @copilotkit/shared@1.50.1-next.3
173
+
174
+ ## 1.50.1-next.2
175
+
176
+ ### Patch Changes
177
+
178
+ - bdc7a8f: - fix: restore message callbacks
179
+ - @copilotkit/runtime-client-gql@1.50.1-next.2
180
+ - @copilotkit/shared@1.50.1-next.2
181
+
182
+ ## 1.50.1-next.1
183
+
184
+ ### Patch Changes
185
+
186
+ - cfa4185: - fix: fix stale state in handler
187
+ - @copilotkit/runtime-client-gql@1.50.1-next.1
188
+ - @copilotkit/shared@1.50.1-next.1
189
+
190
+ ## 1.50.1-next.0
191
+
192
+ ### Patch Changes
193
+
194
+ - Updated the default model and API version for the Google GenAI adapter
195
+ - Updated dependencies
196
+ - @copilotkit/runtime-client-gql@1.50.1-next.0
197
+ - @copilotkit/shared@1.50.1-next.0
198
+
199
+ ## 1.50.0
200
+
201
+ ### Minor Changes
202
+
203
+ - 0fc76d7: add new runner with telemetry baked in
204
+ - c942f9c: Minor fixes and stability improvements
205
+ - bad5f06: - feat: port old endpoint creators to 2.0
206
+ - 33f47e3: - fix: fix predictive state update
207
+ - fix: fix state setters
208
+ - eed6021: Updating to the latest version of vnext
209
+ - 3b7367e: Improving general stability around LangChain
210
+ - 7ff9ca7: Minor fixes and improvements
211
+ - 974875e: Lint and format code to resolve Prettier errors
212
+ - 3bd484f: Minor fixes and stability improvements
213
+ - 5a534bf: fix telemetry in v1.50 runtime
214
+ - 907ae5d: - feat: route CPK implementation to 2.0 copilotkitnext
215
+ - 769a06c: Refactor suggestions to not always run
216
+ - 788292b: Improving langchain dependency resolution
217
+ - eab69a2: Enabling the new inspector
218
+ - 0a7bfe0: Updating dependency versions across all packages
219
+
220
+ ### Patch Changes
221
+
222
+ - 8ce60af: - feat: enable coagent state renders
223
+ - 04057d5: - fix: refrain from adding placeholder message
224
+ - 6ce0edc: - fix: refrain from re-setting context infinitely if it hasnt changed
225
+ - fix: pass only strings to context value
226
+ - fix: allow custom convert and availability setup
227
+ - 2c93ff1: - fix: re-enable repeatable interrupt renders
228
+ - b0e3652: - chore: Update to latest of vnext
229
+ - 7643e71: - fix: make suggestions available
230
+ - d55a8bd: - feat(runtime): export v2 of the runtime as a subpackage
231
+ - fix(runtime): update method for merging tools in assignToolsToAgent
232
+ - fix: remove redundant agent instantiation code
233
+ - c38da1c: - feat: add suggestions support to 1.5
234
+ - 3c60073: - fix: better sync back-and-forth state, including initial state
235
+ - 962546c: - fix: resolve agent name directly from provider props
236
+ - ca8eb39: - fix: fix result arguments passed to tool calls
237
+ - c3d55e5: - fix: refactor interrupts mechanism to use a queue
238
+ - 5840bab: - fix: adjust dependencies
239
+ - 7808fac: - feat: add spinner indicator to show chat readiness for conversation
240
+ - c70210e: - feat: use copilotnext's single endpoint
241
+ - d2c57a1: - fix: export v2 styles
242
+ - Updated dependencies [0fc76d7]
243
+ - Updated dependencies [c942f9c]
244
+ - Updated dependencies [b0e3652]
245
+ - Updated dependencies [eed6021]
246
+ - Updated dependencies [3b7367e]
247
+ - Updated dependencies [7ff9ca7]
248
+ - Updated dependencies [974875e]
249
+ - Updated dependencies [4942f62]
250
+ - Updated dependencies [3bd484f]
251
+ - Updated dependencies [5a534bf]
252
+ - Updated dependencies [769a06c]
253
+ - Updated dependencies [788292b]
254
+ - Updated dependencies [eab69a2]
255
+ - Updated dependencies [0a7bfe0]
256
+ - @copilotkit/runtime-client-gql@1.50.0
257
+ - @copilotkit/shared@1.50.0
258
+
259
+ ## 1.50.0-beta.19
260
+
261
+ ### Minor Changes
262
+
263
+ - Improving langchain dependency resolution
264
+
265
+ ### Patch Changes
266
+
267
+ - Updated dependencies
268
+ - @copilotkit/runtime-client-gql@1.50.0-beta.19
269
+ - @copilotkit/shared@1.50.0-beta.19
270
+
271
+ ## 1.50.0-beta.18
272
+
273
+ ### Minor Changes
274
+
275
+ - Improving general stability around LangChain
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies
280
+ - @copilotkit/runtime-client-gql@1.50.0-beta.18
281
+ - @copilotkit/shared@1.50.0-beta.18
282
+
283
+ ## 1.50.0-beta.17
284
+
285
+ ### Minor Changes
286
+
287
+ - Minor fixes and improvements
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies
292
+ - @copilotkit/runtime-client-gql@1.50.0-beta.17
293
+ - @copilotkit/shared@1.50.0-beta.17
294
+
295
+ ## 1.50.0-beta.16
296
+
297
+ ### Minor Changes
298
+
299
+ - Minor fixes and stability improvements
300
+
301
+ ### Patch Changes
302
+
303
+ - Updated dependencies
304
+ - @copilotkit/runtime-client-gql@1.50.0-beta.16
305
+ - @copilotkit/shared@1.50.0-beta.16
306
+
307
+ ## 1.50.0-beta.15
308
+
309
+ ### Minor Changes
310
+
311
+ - Lint and format code to resolve Prettier errors
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies
316
+ - @copilotkit/runtime-client-gql@1.50.0-beta.15
317
+ - @copilotkit/shared@1.50.0-beta.15
318
+
319
+ ## 1.50.0-beta.14
320
+
321
+ ### Minor Changes
322
+
323
+ - Minor fixes and stability improvements
324
+
325
+ ### Patch Changes
326
+
327
+ - Updated dependencies
328
+ - @copilotkit/runtime-client-gql@1.50.0-beta.14
329
+ - @copilotkit/shared@1.50.0-beta.14
330
+
331
+ ## 1.50.0-beta.13
332
+
333
+ ### Minor Changes
334
+
335
+ - Updating to the latest version of vnext
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies
340
+ - @copilotkit/runtime-client-gql@1.50.0-beta.13
341
+ - @copilotkit/shared@1.50.0-beta.13
342
+
343
+ ## 1.50.0-beta.12
344
+
345
+ ### Minor Changes
346
+
347
+ - eab69a2: Enabling the new inspector
348
+
349
+ ### Patch Changes
350
+
351
+ - Updated dependencies [eab69a2]
352
+ - @copilotkit/runtime-client-gql@1.50.0-beta.12
353
+ - @copilotkit/shared@1.50.0-beta.12
354
+
355
+ ## 1.50.0-beta.11
356
+
357
+ ### Minor Changes
358
+
359
+ - fix telemetry in v1.50 runtime
360
+
361
+ ### Patch Changes
362
+
363
+ - Updated dependencies
364
+ - @copilotkit/runtime-client-gql@1.50.0-beta.11
365
+ - @copilotkit/shared@1.50.0-beta.11
366
+
367
+ ## 1.50.0-beta.10
368
+
369
+ ### Minor Changes
370
+
371
+ - add new runner with telemetry baked in
372
+
373
+ ### Patch Changes
374
+
375
+ - Updated dependencies
376
+ - @copilotkit/runtime-client-gql@1.50.0-beta.10
377
+ - @copilotkit/shared@1.50.0-beta.10
378
+
379
+ ## 1.50.0-beta.9
380
+
381
+ ### Minor Changes
382
+
383
+ - Refactor suggestions to not always run
384
+
385
+ ### Patch Changes
386
+
387
+ - Updated dependencies
388
+ - @copilotkit/runtime-client-gql@1.50.0-beta.9
389
+ - @copilotkit/shared@1.50.0-beta.9
390
+
391
+ ## 1.50.0-beta.8
392
+
393
+ ### Patch Changes
394
+
395
+ - @copilotkit/runtime-client-gql@1.50.0-beta.8
396
+ - @copilotkit/shared@1.50.0-beta.8
397
+
398
+ ## 1.50.0-beta.7
399
+
400
+ ### Patch Changes
401
+
402
+ - 6ce0edc: - fix: refrain from re-setting context infinitely if it hasnt changed
403
+ - fix: pass only strings to context value
404
+ - fix: allow custom convert and availability setup
405
+ - @copilotkit/runtime-client-gql@1.50.0-beta.7
406
+ - @copilotkit/shared@1.50.0-beta.7
407
+
408
+ ## 1.50.0-beta.6
409
+
410
+ ### Minor Changes
411
+
412
+ - Updating dependency versions across all packages
413
+
414
+ ### Patch Changes
415
+
416
+ - Updated dependencies
417
+ - @copilotkit/runtime-client-gql@1.50.0-beta.6
418
+ - @copilotkit/shared@1.50.0-beta.6
419
+
420
+ ## 1.50.0-beta.4
421
+
422
+ ### Minor Changes
423
+
424
+ - bad5f06: - feat: port old endpoint creators to 2.0
425
+ - 33f47e3: - fix: fix predictive state update
426
+ - fix: fix state setters
427
+ - 907ae5d: - feat: route CPK implementation to 2.0 copilotkitnext
428
+
429
+ ### Patch Changes
430
+
431
+ - 8ce60af: - feat: enable coagent state renders
432
+ - 04057d5: - fix: refrain from adding placeholder message
433
+ - 2c93ff1: - fix: re-enable repeatable interrupt renders
434
+ - b0e3652: - chore: Update to latest of vnext
435
+ - 7643e71: - fix: make suggestions available
436
+ - d55a8bd: - feat(runtime): export v2 of the runtime as a subpackage
437
+ - fix(runtime): update method for merging tools in assignToolsToAgent
438
+ - fix: remove redundant agent instantiation code
439
+ - c38da1c: - feat: add suggestions support to 1.5
440
+ - 3c60073: - fix: better sync back-and-forth state, including initial state
441
+ - 962546c: - fix: resolve agent name directly from provider props
442
+ - ca8eb39: - fix: fix result arguments passed to tool calls
443
+ - c3d55e5: - fix: refactor interrupts mechanism to use a queue
444
+ - 5840bab: - fix: adjust dependencies
445
+ - 7808fac: - feat: add spinner indicator to show chat readiness for conversation
446
+ - c70210e: - feat: use copilotnext's single endpoint
447
+ - d2c57a1: - fix: export v2 styles
448
+ - Updated dependencies [b0e3652]
449
+ - Updated dependencies [4942f62]
450
+ - @copilotkit/runtime-client-gql@1.50.0-beta.4
451
+ - @copilotkit/shared@1.50.0-beta.4
452
+
453
+ ## 1.10.7-next.0
454
+
455
+ ### Patch Changes
456
+
457
+ - @copilotkit/runtime-client-gql@1.10.7-next.0
458
+ - @copilotkit/shared@1.10.7-next.0
459
+
460
+ ## 1.10.6
461
+
462
+ ### Patch Changes
463
+
464
+ - 3ac64bf: - fix: allow disabling actions in the new action hooks
465
+ - c9e499f: - feat: create targeted convenience wrappers around copilot action
466
+ - 8626c5a: - fix: surface errors also in production
467
+ - Updated dependencies [8626c5a]
468
+ - Updated dependencies [e0dd5d5]
469
+ - @copilotkit/runtime-client-gql@1.10.6
470
+ - @copilotkit/shared@1.10.6
471
+
472
+ ## 1.10.6-next.6
473
+
474
+ ### Patch Changes
475
+
476
+ - @copilotkit/runtime-client-gql@1.10.6-next.6
477
+ - @copilotkit/shared@1.10.6-next.6
478
+
479
+ ## 1.10.6-next.5
480
+
481
+ ### Patch Changes
482
+
483
+ - Updated dependencies [e0dd5d5]
484
+ - @copilotkit/shared@1.10.6-next.5
485
+ - @copilotkit/runtime-client-gql@1.10.6-next.5
486
+
487
+ ## 1.10.6-next.4
488
+
489
+ ### Patch Changes
490
+
491
+ - 8626c5a: - fix: surface errors also in production
492
+ - Updated dependencies [8626c5a]
493
+ - @copilotkit/runtime-client-gql@1.10.6-next.4
494
+ - @copilotkit/shared@1.10.6-next.4
495
+
496
+ ## 1.10.6-next.3
497
+
498
+ ### Patch Changes
499
+
500
+ - @copilotkit/runtime-client-gql@1.10.6-next.3
501
+ - @copilotkit/shared@1.10.6-next.3
502
+
503
+ ## 1.10.6-next.2
504
+
505
+ ### Patch Changes
506
+
507
+ - 3ac64bf: - fix: allow disabling actions in the new action hooks
508
+ - @copilotkit/runtime-client-gql@1.10.6-next.2
509
+ - @copilotkit/shared@1.10.6-next.2
510
+
511
+ ## 1.10.6-next.1
512
+
513
+ ### Patch Changes
514
+
515
+ - c9e499f: - feat: create targeted convenience wrappers around copilot action
516
+ - @copilotkit/runtime-client-gql@1.10.6-next.1
517
+ - @copilotkit/shared@1.10.6-next.1
518
+
519
+ ## 1.10.6-next.0
520
+
521
+ ### Patch Changes
522
+
523
+ - @copilotkit/runtime-client-gql@1.10.6-next.0
524
+ - @copilotkit/shared@1.10.6-next.0
525
+
526
+ ## 1.10.5
527
+
528
+ ### Patch Changes
529
+
530
+ - b7bc3a0: - feat: pass copilot readable context to agui agents
531
+ - f3fdd7a: - fix: stop chat from contacting agent that has errored
532
+ - 32c163e: - inspector visibility toggle in ConsoleTrigger component
533
+ - 6112a67: - fix: consider edge cases when regenerate button is used
534
+ - @copilotkit/runtime-client-gql@1.10.5
535
+ - @copilotkit/shared@1.10.5
536
+
537
+ ## 1.10.5-next.10
538
+
539
+ ### Patch Changes
540
+
541
+ - b79ed5c: - fix: prevent double action calls on none render copilot actions
542
+ - @copilotkit/runtime-client-gql@1.10.5-next.10
543
+ - @copilotkit/shared@1.10.5-next.10
544
+
545
+ ## 1.10.5-next.9
546
+
547
+ ### Patch Changes
548
+
549
+ - @copilotkit/runtime-client-gql@1.10.5-next.9
550
+ - @copilotkit/shared@1.10.5-next.9
551
+
552
+ ## 1.10.5-next.8
553
+
554
+ ### Patch Changes
555
+
556
+ - @copilotkit/runtime-client-gql@1.10.5-next.8
557
+ - @copilotkit/shared@1.10.5-next.8
558
+
559
+ ## 1.10.5-next.7
560
+
561
+ ### Patch Changes
562
+
563
+ - @copilotkit/runtime-client-gql@1.10.5-next.7
564
+ - @copilotkit/shared@1.10.5-next.7
565
+
566
+ ## 1.10.5-next.6
567
+
568
+ ### Patch Changes
569
+
570
+ - f3fdd7a: - fix: stop chat from contacting agent that has errored
571
+ - @copilotkit/runtime-client-gql@1.10.5-next.6
572
+ - @copilotkit/shared@1.10.5-next.6
573
+
574
+ ## 1.10.5-next.5
575
+
576
+ ### Patch Changes
577
+
578
+ - 6112a67: - fix: consider edge cases when regenerate button is used
579
+ - @copilotkit/runtime-client-gql@1.10.5-next.5
580
+ - @copilotkit/shared@1.10.5-next.5
581
+
582
+ ## 1.10.5-next.4
583
+
584
+ ### Patch Changes
585
+
586
+ - @copilotkit/runtime-client-gql@1.10.5-next.4
587
+ - @copilotkit/shared@1.10.5-next.4
588
+
589
+ ## 1.10.5-next.3
590
+
591
+ ### Patch Changes
592
+
593
+ - @copilotkit/runtime-client-gql@1.10.5-next.3
594
+ - @copilotkit/shared@1.10.5-next.3
595
+
596
+ ## 1.10.5-next.2
597
+
598
+ ### Patch Changes
599
+
600
+ - @copilotkit/runtime-client-gql@1.10.5-next.2
601
+ - @copilotkit/shared@1.10.5-next.2
602
+
603
+ ## 1.10.5-next.1
604
+
605
+ ### Patch Changes
606
+
607
+ - b7bc3a0: - feat: pass copilot readable context to agui agents
608
+ - @copilotkit/runtime-client-gql@1.10.5-next.1
609
+ - @copilotkit/shared@1.10.5-next.1
610
+
611
+ ## 1.10.5-next.0
612
+
613
+ ### Patch Changes
614
+
615
+ - 32c163e: - inspector visibility toggle in ConsoleTrigger component
616
+ - @copilotkit/runtime-client-gql@1.10.5-next.0
617
+ - @copilotkit/shared@1.10.5-next.0
618
+
619
+ ## 1.10.4
620
+
621
+ ### Patch Changes
622
+
623
+ - ef98963: - feat: add platform-wide error surfacing for custom error rendering
624
+ - feat: add error as a message option and a component level onError
625
+ - 052d54d: - fix: enable erasing chat state on new thread creation
626
+ - Updated dependencies [a640d8e]
627
+ - @copilotkit/shared@1.10.4
628
+ - @copilotkit/runtime-client-gql@1.10.4
629
+
630
+ ## 1.10.4-next.3
631
+
632
+ ### Patch Changes
633
+
634
+ - @copilotkit/runtime-client-gql@1.10.4-next.3
635
+ - @copilotkit/shared@1.10.4-next.3
636
+
637
+ ## 1.10.4-next.2
638
+
639
+ ### Patch Changes
640
+
641
+ - ef98963: - feat: add platform-wide error surfacing for custom error rendering
642
+ - feat: add error as a message option and a component level onError
643
+ - @copilotkit/runtime-client-gql@1.10.4-next.2
644
+ - @copilotkit/shared@1.10.4-next.2
645
+
646
+ ## 1.10.4-next.1
647
+
648
+ ### Patch Changes
649
+
650
+ - Updated dependencies [a640d8e]
651
+ - @copilotkit/shared@1.10.4-next.1
652
+ - @copilotkit/runtime-client-gql@1.10.4-next.1
653
+
654
+ ## 1.10.4-next.0
655
+
656
+ ### Patch Changes
657
+
658
+ - 052d54d: - fix: enable erasing chat state on new thread creation
659
+ - @copilotkit/runtime-client-gql@1.10.4-next.0
660
+ - @copilotkit/shared@1.10.4-next.0
661
+
662
+ ## 1.10.3
663
+
664
+ ### Patch Changes
665
+
666
+ - Updated dependencies [ea74047]
667
+ - @copilotkit/shared@1.10.3
668
+ - @copilotkit/runtime-client-gql@1.10.3
669
+
670
+ ## 1.10.3-next.3
671
+
672
+ ### Patch Changes
673
+
674
+ - @copilotkit/runtime-client-gql@1.10.3-next.3
675
+ - @copilotkit/shared@1.10.3-next.3
676
+
677
+ ## 1.10.3-next.2
678
+
679
+ ### Patch Changes
680
+
681
+ - @copilotkit/runtime-client-gql@1.10.3-next.2
682
+ - @copilotkit/shared@1.10.3-next.2
683
+
684
+ ## 1.10.3-next.1
685
+
686
+ ### Patch Changes
687
+
688
+ - @copilotkit/runtime-client-gql@1.10.3-next.1
689
+ - @copilotkit/shared@1.10.3-next.1
690
+
691
+ ## 1.10.3-next.0
692
+
693
+ ### Patch Changes
694
+
695
+ - Updated dependencies [ea74047]
696
+ - @copilotkit/shared@1.10.3-next.0
697
+ - @copilotkit/runtime-client-gql@1.10.3-next.0
698
+
699
+ ## 1.10.2
700
+
701
+ ### Patch Changes
702
+
703
+ - db5bbda: - fix: allow disabling of default cpk system message
704
+ - chore: set up direct fastapi usage on coagents starter poetry demo
705
+ - @copilotkit/runtime-client-gql@1.10.2
706
+ - @copilotkit/shared@1.10.2
707
+
708
+ ## 1.10.2-next.0
709
+
710
+ ### Patch Changes
711
+
712
+ - db5bbda: - fix: allow disabling of default cpk system message
713
+ - chore: set up direct fastapi usage on coagents starter poetry demo
714
+ - @copilotkit/runtime-client-gql@1.10.2-next.0
715
+ - @copilotkit/shared@1.10.2-next.0
716
+
717
+ ## 1.10.1
718
+
719
+ ### Patch Changes
720
+
721
+ - Updated dependencies [76e2603]
722
+ - Updated dependencies [7bf9dfa]
723
+ - @copilotkit/runtime-client-gql@1.10.1
724
+ - @copilotkit/shared@1.10.1
725
+
726
+ ## 1.10.1-next.2
727
+
728
+ ### Patch Changes
729
+
730
+ - @copilotkit/runtime-client-gql@1.10.1-next.2
731
+ - @copilotkit/shared@1.10.1-next.2
732
+
733
+ ## 1.10.1-next.1
734
+
735
+ ### Patch Changes
736
+
737
+ - Updated dependencies [76e2603]
738
+ - @copilotkit/runtime-client-gql@1.10.1-next.1
739
+ - @copilotkit/shared@1.10.1-next.1
740
+
741
+ ## 1.10.1-next.0
742
+
743
+ ### Patch Changes
744
+
745
+ - Updated dependencies [7bf9dfa]
746
+ - @copilotkit/runtime-client-gql@1.10.1-next.0
747
+ - @copilotkit/shared@1.10.1-next.0
748
+
749
+ ## 1.10.0
750
+
751
+ ### Minor Changes
752
+
753
+ - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
754
+
755
+ Headless UI has been in a bad state for a bit now. When we added support for different
756
+ agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
757
+
758
+ As such, the following features have been updated to be completely functional with Headless UI.
759
+ - Generative UI
760
+ - Suggestions
761
+ - Agentic Generative UI
762
+ - Interrupts
763
+
764
+ In addition, a variety of QOL changes have been made.
765
+ - New AG-UI based message types
766
+ - Inline code rendering is fixed
767
+
768
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
769
+
770
+ ### Patch Changes
771
+
772
+ - 967d0ab: - refactor(chat): separate useCopilotChat into internal implementation and public API
773
+ - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
774
+
775
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
776
+ - fix: more fixes addressing breaking changes in new Headless UI
777
+
778
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
779
+ - chore: address linting issues
780
+
781
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
782
+ - chore: fixing branding and docs
783
+
784
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
785
+ - chore: more docs fixing
786
+
787
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
788
+
789
+ - 6de24ce: - fix rerender issues by moving suggestions to the messages context
790
+ - b64555d: - feat: adds dev console
791
+ - Updated dependencies [a8c0263]
792
+ - Updated dependencies [8674da1]
793
+ - Updated dependencies [6d1de58]
794
+ - @copilotkit/shared@1.10.0
795
+ - @copilotkit/runtime-client-gql@1.10.0
796
+
797
+ ## 1.10.0-next.13
798
+
799
+ ### Patch Changes
800
+
801
+ - @copilotkit/runtime-client-gql@1.10.0-next.13
802
+ - @copilotkit/shared@1.10.0-next.13
803
+
804
+ ## 1.10.0-next.12
805
+
806
+ ### Patch Changes
807
+
808
+ - b64555d: - feat: adds dev console
809
+ - @copilotkit/runtime-client-gql@1.10.0-next.12
810
+ - @copilotkit/shared@1.10.0-next.12
811
+
812
+ ## 1.10.0-next.11
813
+
814
+ ### Patch Changes
815
+
816
+ - @copilotkit/runtime-client-gql@1.10.0-next.11
817
+ - @copilotkit/shared@1.10.0-next.11
818
+
819
+ ## 1.10.0-next.10
820
+
821
+ ### Patch Changes
822
+
823
+ - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
824
+
825
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
826
+ - fix: more fixes addressing breaking changes in new Headless UI
827
+
828
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
829
+ - chore: address linting issues
830
+
831
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
832
+ - chore: fixing branding and docs
833
+
834
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
835
+ - chore: more docs fixing
836
+
837
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
838
+
839
+ - Updated dependencies [6d1de58]
840
+ - @copilotkit/shared@1.10.0-next.10
841
+ - @copilotkit/runtime-client-gql@1.10.0-next.10
842
+
843
+ ## 1.10.0-next.9
844
+
845
+ ### Patch Changes
846
+
847
+ - @copilotkit/runtime-client-gql@1.10.0-next.9
848
+ - @copilotkit/shared@1.10.0-next.9
849
+
850
+ ## 1.10.0-next.8
851
+
852
+ ### Patch Changes
853
+
854
+ - 6de24ce: - fix rerender issues by moving suggestions to the messages context
855
+ - @copilotkit/runtime-client-gql@1.10.0-next.8
856
+ - @copilotkit/shared@1.10.0-next.8
857
+
858
+ ## 1.10.0-next.7
859
+
860
+ ### Patch Changes
861
+
862
+ - @copilotkit/runtime-client-gql@1.10.0-next.7
863
+ - @copilotkit/shared@1.10.0-next.7
864
+
865
+ ## 1.10.0-next.6
866
+
867
+ ### Patch Changes
868
+
869
+ - @copilotkit/runtime-client-gql@1.10.0-next.6
870
+ - @copilotkit/shared@1.10.0-next.6
871
+
872
+ ## 1.10.0-next.5
873
+
874
+ ### Patch Changes
875
+
876
+ - Updated dependencies [a8c0263]
877
+ - @copilotkit/shared@1.10.0-next.5
878
+ - @copilotkit/runtime-client-gql@1.10.0-next.5
879
+
880
+ ## 1.10.0-next.4
881
+
882
+ ### Patch Changes
883
+
884
+ - 967d0ab: - refactor(chat): separate useCopilotChat into internal implementation and public API
885
+ - @copilotkit/runtime-client-gql@1.10.0-next.4
886
+ - @copilotkit/shared@1.10.0-next.4
887
+
888
+ ## 1.10.0-next.3
889
+
890
+ ### Patch Changes
891
+
892
+ - @copilotkit/runtime-client-gql@1.10.0-next.3
893
+ - @copilotkit/shared@1.10.0-next.3
894
+
895
+ ## 1.10.0-next.2
896
+
897
+ ### Patch Changes
898
+
899
+ - @copilotkit/runtime-client-gql@1.10.0-next.2
900
+ - @copilotkit/shared@1.10.0-next.2
901
+
902
+ ## 1.10.0-next.1
903
+
904
+ ### Patch Changes
905
+
906
+ - @copilotkit/runtime-client-gql@1.10.0-next.1
907
+ - @copilotkit/shared@1.10.0-next.1
908
+
909
+ ## 1.10.0-next.0
910
+
911
+ ### Minor Changes
912
+
913
+ - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
914
+
915
+ Headless UI has been in a bad state for a bit now. When we added support for different
916
+ agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
917
+
918
+ As such, the following features have been updated to be completely functional with Headless UI.
919
+ - Generative UI
920
+ - Suggestions
921
+ - Agentic Generative UI
922
+ - Interrupts
923
+
924
+ In addition, a variety of QOL changes have been made.
925
+ - New AG-UI based message types
926
+ - Inline code rendering is fixed
927
+
928
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
929
+
930
+ ### Patch Changes
931
+
932
+ - Updated dependencies [8674da1]
933
+ - @copilotkit/shared@1.10.0-next.0
934
+ - @copilotkit/runtime-client-gql@1.10.0-next.0
935
+
936
+ ## 1.9.3
937
+
938
+ ### Patch Changes
939
+
940
+ - f83bda0: Fix: remote actions should never be executed to avoid duplicate result messages
941
+ - Updated dependencies [1bda332]
942
+ - @copilotkit/shared@1.9.3
943
+ - @copilotkit/runtime-client-gql@1.9.3
944
+
945
+ ## 1.9.3-next.4
946
+
947
+ ### Patch Changes
948
+
949
+ - f83bda0: Fix: remote actions should never be executed to avoid duplicate result messages
950
+ - @copilotkit/runtime-client-gql@1.9.3-next.4
951
+ - @copilotkit/shared@1.9.3-next.4
952
+
953
+ ## 1.9.3-next.3
954
+
955
+ ### Patch Changes
956
+
957
+ - Updated dependencies [1bda332]
958
+ - @copilotkit/shared@1.9.3-next.3
959
+ - @copilotkit/runtime-client-gql@1.9.3-next.3
960
+
961
+ ## 1.9.3-next.2
962
+
963
+ ### Patch Changes
964
+
965
+ - @copilotkit/runtime-client-gql@1.9.3-next.2
966
+ - @copilotkit/shared@1.9.3-next.2
967
+
968
+ ## 1.9.3-next.1
969
+
970
+ ### Patch Changes
971
+
972
+ - @copilotkit/runtime-client-gql@1.9.3-next.1
973
+ - @copilotkit/shared@1.9.3-next.1
974
+
975
+ ## 1.9.3-next.0
976
+
977
+ ### Patch Changes
978
+
979
+ - @copilotkit/runtime-client-gql@1.9.3-next.0
980
+ - @copilotkit/shared@1.9.3-next.0
981
+
982
+ ## 1.9.2
983
+
984
+ ### Patch Changes
985
+
986
+ - cbeccb5: - fix: refrain repeated api calls by memoizing state
987
+ - 3f8c575: - fix: use time travel for regeneration of messages
988
+ - fix: use a better cutoff for regeneration request
989
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
990
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
991
+
992
+ - e1de032: - fix: synchronously execute renderAndWaitForResponse
993
+
994
+ Previously, it was impossible to execute multiple human-in-the-loop (renderAndWaitForResponse)
995
+ calls in a row. Ultimately this was due to an issue with how CopilotKit was rendering the updates
996
+ when multiple renderAndWaitForResponse actions appeared on screen due to a reference based approach.
997
+
998
+ With this change, actions will be executed in a synchronous way appearing almost queue like. This
999
+ works with any combination of action given much more freedom when asking for user input.
1000
+
1001
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1002
+
1003
+ - 92e8d1c: - fix infinite loop
1004
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
1005
+ - c75a04f: - Fix dynamic runtime configuration updates in useCoAgent
1006
+ - In use-chat.ts, agent state updates from AgentStateMessage now preserve existing config property
1007
+ - c75a04f: - Fix dynamic runtime configuration updates in useCoAgent
1008
+ - fe9009c: - feat(langgraph): new thread metadata
1009
+ - 1d1c51d: - feat: surface all errors in structured format
1010
+ - 10345a5: - feat: structured error visibility system for streaming errors
1011
+ - 9169ad7: - feat: add onTrace handler for comprehensive debugging and observability - Add CopilotTraceEvent interfaces with rich debugging context, implement runtime-side tracing with publicApiKey gating, add UI-side error tracing, include comprehensive test coverage, and fix tsup build config to exclude test files
1012
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
1013
+ - 35537f1: - fix: memoize nested components to not rerender when content changes
1014
+ - Updated dependencies [fac89c2]
1015
+ - Updated dependencies [9169ad7]
1016
+ - Updated dependencies [1d1c51d]
1017
+ - Updated dependencies [10345a5]
1018
+ - Updated dependencies [9169ad7]
1019
+ - @copilotkit/shared@1.9.2
1020
+ - @copilotkit/runtime-client-gql@1.9.2
1021
+
1022
+ ## 1.9.2-next.26
1023
+
1024
+ ### Patch Changes
1025
+
1026
+ - @copilotkit/runtime-client-gql@1.9.2-next.26
1027
+ - @copilotkit/shared@1.9.2-next.26
1028
+
1029
+ ## 1.9.2-next.25
1030
+
1031
+ ### Patch Changes
1032
+
1033
+ - @copilotkit/runtime-client-gql@1.9.2-next.25
1034
+ - @copilotkit/shared@1.9.2-next.25
1035
+
1036
+ ## 1.9.2-next.24
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - @copilotkit/runtime-client-gql@1.9.2-next.24
1041
+ - @copilotkit/shared@1.9.2-next.24
1042
+
1043
+ ## 1.9.2-next.23
1044
+
1045
+ ### Patch Changes
1046
+
1047
+ - @copilotkit/runtime-client-gql@1.9.2-next.23
1048
+ - @copilotkit/shared@1.9.2-next.23
1049
+
1050
+ ## 1.9.2-next.22
1051
+
1052
+ ### Patch Changes
1053
+
1054
+ - c75a04f: - Fix dynamic runtime configuration updates in useCoAgent
1055
+ - In use-chat.ts, agent state updates from AgentStateMessage now preserve existing config property
1056
+ - c75a04f: - Fix dynamic runtime configuration updates in useCoAgent
1057
+ - @copilotkit/runtime-client-gql@1.9.2-next.22
1058
+ - @copilotkit/shared@1.9.2-next.22
1059
+
1060
+ ## 1.9.2-next.21
1061
+
1062
+ ### Patch Changes
1063
+
1064
+ - 92e8d1c: - fix infinite loop
1065
+ - @copilotkit/runtime-client-gql@1.9.2-next.21
1066
+ - @copilotkit/shared@1.9.2-next.21
1067
+
1068
+ ## 1.9.2-next.20
1069
+
1070
+ ### Patch Changes
1071
+
1072
+ - e1de032: - fix: synchronously execute renderAndWaitForResponse
1073
+
1074
+ Previously, it was impossible to execute multiple human-in-the-loop (renderAndWaitForResponse)
1075
+ calls in a row. Ultimately this was due to an issue with how CopilotKit was rendering the updates
1076
+ when multiple renderAndWaitForResponse actions appeared on screen due to a reference based approach.
1077
+
1078
+ With this change, actions will be executed in a synchronous way appearing almost queue like. This
1079
+ works with any combination of action given much more freedom when asking for user input.
1080
+
1081
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
1082
+ - @copilotkit/runtime-client-gql@1.9.2-next.20
1083
+ - @copilotkit/shared@1.9.2-next.20
1084
+
1085
+ ## 1.9.2-next.19
1086
+
1087
+ ### Patch Changes
1088
+
1089
+ - @copilotkit/runtime-client-gql@1.9.2-next.19
1090
+ - @copilotkit/shared@1.9.2-next.19
1091
+
1092
+ ## 1.9.2-next.18
1093
+
1094
+ ### Patch Changes
1095
+
1096
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
1097
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
1098
+
1099
+ - Updated dependencies [fac89c2]
1100
+ - @copilotkit/shared@1.9.2-next.18
1101
+ - @copilotkit/runtime-client-gql@1.9.2-next.18
1102
+
1103
+ ## 1.9.2-next.17
1104
+
1105
+ ### Patch Changes
1106
+
1107
+ - @copilotkit/runtime-client-gql@1.9.2-next.17
1108
+ - @copilotkit/shared@1.9.2-next.17
1109
+
1110
+ ## 1.9.2-next.16
1111
+
1112
+ ### Patch Changes
1113
+
1114
+ - fe9009c: - feat(langgraph): new thread metadata
1115
+ - @copilotkit/runtime-client-gql@1.9.2-next.16
1116
+ - @copilotkit/shared@1.9.2-next.16
1117
+
1118
+ ## 1.9.2-next.15
1119
+
1120
+ ### Patch Changes
1121
+
1122
+ - cbeccb5: - fix: refrain repeated api calls by memoizing state
1123
+ - @copilotkit/runtime-client-gql@1.9.2-next.15
1124
+ - @copilotkit/shared@1.9.2-next.15
1125
+
1126
+ ## 1.9.2-next.14
1127
+
1128
+ ### Patch Changes
1129
+
1130
+ - @copilotkit/runtime-client-gql@1.9.2-next.14
1131
+ - @copilotkit/shared@1.9.2-next.14
1132
+
1133
+ ## 1.9.2-next.13
1134
+
1135
+ ### Patch Changes
1136
+
1137
+ - @copilotkit/runtime-client-gql@1.9.2-next.13
1138
+ - @copilotkit/shared@1.9.2-next.13
1139
+
1140
+ ## 1.9.2-next.12
1141
+
1142
+ ### Patch Changes
1143
+
1144
+ - 3f8c575: - fix: use time travel for regeneration of messages
1145
+ - fix: use a better cutoff for regeneration request
1146
+ - @copilotkit/runtime-client-gql@1.9.2-next.12
1147
+ - @copilotkit/shared@1.9.2-next.12
1148
+
1149
+ ## 1.9.2-next.11
1150
+
1151
+ ### Patch Changes
1152
+
1153
+ - @copilotkit/runtime-client-gql@1.9.2-next.11
1154
+ - @copilotkit/shared@1.9.2-next.11
1155
+
1156
+ ## 1.9.2-next.10
1157
+
1158
+ ### Patch Changes
1159
+
1160
+ - @copilotkit/runtime-client-gql@1.9.2-next.10
1161
+ - @copilotkit/shared@1.9.2-next.10
1162
+
1163
+ ## 1.9.2-next.9
1164
+
1165
+ ### Patch Changes
1166
+
1167
+ - 1d1c51d: - feat: surface all errors in structured format
1168
+ - Updated dependencies [1d1c51d]
1169
+ - @copilotkit/runtime-client-gql@1.9.2-next.9
1170
+ - @copilotkit/shared@1.9.2-next.9
1171
+
1172
+ ## 1.9.2-next.8
1173
+
1174
+ ### Patch Changes
1175
+
1176
+ - @copilotkit/runtime-client-gql@1.9.2-next.8
1177
+ - @copilotkit/shared@1.9.2-next.8
1178
+
1179
+ ## 1.9.2-next.7
1180
+
1181
+ ### Patch Changes
1182
+
1183
+ - @copilotkit/runtime-client-gql@1.9.2-next.7
1184
+ - @copilotkit/shared@1.9.2-next.7
1185
+
1186
+ ## 1.9.2-next.6
1187
+
1188
+ ### Patch Changes
1189
+
1190
+ - @copilotkit/runtime-client-gql@1.9.2-next.6
1191
+ - @copilotkit/shared@1.9.2-next.6
1192
+
1193
+ ## 1.9.2-next.5
1194
+
1195
+ ### Patch Changes
1196
+
1197
+ - @copilotkit/runtime-client-gql@1.9.2-next.5
1198
+ - @copilotkit/shared@1.9.2-next.5
1199
+
1200
+ ## 1.9.2-next.4
1201
+
1202
+ ### Patch Changes
1203
+
1204
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
1205
+ - 9169ad7: - feat: add onTrace handler for comprehensive debugging and observability - Add CopilotTraceEvent interfaces with rich debugging context, implement runtime-side tracing with publicApiKey gating, add UI-side error tracing, include comprehensive test coverage, and fix tsup build config to exclude test files
1206
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
1207
+ - Updated dependencies [9169ad7]
1208
+ - Updated dependencies [9169ad7]
1209
+ - @copilotkit/shared@1.9.2-next.4
1210
+ - @copilotkit/runtime-client-gql@1.9.2-next.4
1211
+
1212
+ ## 1.9.2-next.3
1213
+
1214
+ ### Patch Changes
1215
+
1216
+ - 35537f1: - fix: memoize nested components to not rerender when content changes
1217
+ - @copilotkit/runtime-client-gql@1.9.2-next.3
1218
+ - @copilotkit/shared@1.9.2-next.3
1219
+
1220
+ ## 1.9.2-next.2
1221
+
1222
+ ### Patch Changes
1223
+
1224
+ - @copilotkit/runtime-client-gql@1.9.2-next.2
1225
+ - @copilotkit/shared@1.9.2-next.2
1226
+
1227
+ ## 1.9.2-next.1
1228
+
1229
+ ### Patch Changes
1230
+
1231
+ - @copilotkit/runtime-client-gql@1.9.2-next.1
1232
+ - @copilotkit/shared@1.9.2-next.1
1233
+
1234
+ ## 1.9.2-next.0
1235
+
1236
+ ### Patch Changes
1237
+
1238
+ - 10345a5: - feat: structured error visibility system for streaming errors
1239
+ - Updated dependencies [10345a5]
1240
+ - @copilotkit/runtime-client-gql@1.9.2-next.0
1241
+ - @copilotkit/shared@1.9.2-next.0
1242
+
1243
+ ## 1.9.1
1244
+
1245
+ ### Patch Changes
1246
+
1247
+ - Updated dependencies [deaeca0]
1248
+ - @copilotkit/shared@1.9.1
1249
+ - @copilotkit/runtime-client-gql@1.9.1
1250
+
1251
+ ## 1.9.1-next.0
1252
+
1253
+ ### Patch Changes
1254
+
1255
+ - Updated dependencies [deaeca0]
1256
+ - @copilotkit/shared@1.9.1-next.0
1257
+ - @copilotkit/runtime-client-gql@1.9.1-next.0
1258
+
1259
+ ## 1.9.0
1260
+
1261
+ ### Patch Changes
1262
+
1263
+ - 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default
1264
+ - fix: move react-dom to peerDependencies in @copilotkit/react-textarea
1265
+ - feat: add amazon bedrock adapter support
1266
+ - @copilotkit/runtime-client-gql@1.9.0
1267
+ - @copilotkit/shared@1.9.0
1268
+
1269
+ ## 1.9.0-next.2
1270
+
1271
+ ### Patch Changes
1272
+
1273
+ - @copilotkit/runtime-client-gql@1.9.0-next.2
1274
+ - @copilotkit/shared@1.9.0-next.2
1275
+
1276
+ ## 1.8.15-next.1
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default
1281
+ - fix: move react-dom to peerDependencies in @copilotkit/react-textarea
1282
+ - feat: add amazon bedrock adapter support
1283
+ - @copilotkit/runtime-client-gql@1.8.15-next.1
1284
+ - @copilotkit/shared@1.8.15-next.1
1285
+
1286
+ ## 1.8.15-next.0
1287
+
1288
+ ### Patch Changes
1289
+
1290
+ - @copilotkit/runtime-client-gql@1.8.15-next.0
1291
+ - @copilotkit/shared@1.8.15-next.0
1292
+
1293
+ ## 1.8.14
1294
+
1295
+ ### Patch Changes
1296
+
1297
+ - 9cf1fda: - fix append follow-up when actions disable followUp
1298
+ - Create stupid-nails-travel.md
1299
+ - fixup
1300
+ - 9cf1fda: - fix append follow-up when actions disable followUp
1301
+ - Updated dependencies [34a78d8]
1302
+ - @copilotkit/shared@1.8.14
1303
+ - @copilotkit/runtime-client-gql@1.8.14
1304
+
1305
+ ## 1.8.14-next.5
1306
+
1307
+ ### Patch Changes
1308
+
1309
+ - @copilotkit/runtime-client-gql@1.8.14-next.5
1310
+ - @copilotkit/shared@1.8.14-next.5
1311
+
1312
+ ## 1.8.14-next.4
1313
+
1314
+ ### Patch Changes
1315
+
1316
+ - @copilotkit/runtime-client-gql@1.8.14-next.4
1317
+ - @copilotkit/shared@1.8.14-next.4
1318
+
1319
+ ## 1.8.14-next.3
1320
+
1321
+ ### Patch Changes
1322
+
1323
+ - @copilotkit/runtime-client-gql@1.8.14-next.3
1324
+ - @copilotkit/shared@1.8.14-next.3
1325
+
1326
+ ## 1.8.14-next.2
1327
+
1328
+ ### Patch Changes
1329
+
1330
+ - @copilotkit/runtime-client-gql@1.8.14-next.2
1331
+ - @copilotkit/shared@1.8.14-next.2
1332
+
1333
+ ## 1.8.14-next.1
1334
+
1335
+ ### Patch Changes
1336
+
1337
+ - Updated dependencies [34a78d8]
1338
+ - @copilotkit/shared@1.8.14-next.1
1339
+ - @copilotkit/runtime-client-gql@1.8.14-next.1
1340
+
1341
+ ## 1.8.14-next.0
1342
+
1343
+ ### Patch Changes
1344
+
1345
+ - 9cf1fda: - fix append follow-up when actions disable followUp
1346
+ - Create stupid-nails-travel.md
1347
+ - fixup
1348
+ - 9cf1fda: - fix append follow-up when actions disable followUp
1349
+ - @copilotkit/runtime-client-gql@1.8.14-next.0
1350
+ - @copilotkit/shared@1.8.14-next.0
1351
+
1352
+ ## 1.8.13
1353
+
1354
+ ### Patch Changes
1355
+
1356
+ - 7fcf5c4: - fix followUp check
1357
+ - @copilotkit/runtime-client-gql@1.8.13
1358
+ - @copilotkit/shared@1.8.13
1359
+
1360
+ ## 1.8.13-next.3
1361
+
1362
+ ### Patch Changes
1363
+
1364
+ - @copilotkit/runtime-client-gql@1.8.13-next.3
1365
+ - @copilotkit/shared@1.8.13-next.3
1366
+
1367
+ ## 1.8.13-next.2
1368
+
1369
+ ### Patch Changes
1370
+
1371
+ - @copilotkit/runtime-client-gql@1.8.13-next.2
1372
+ - @copilotkit/shared@1.8.13-next.2
1373
+
1374
+ ## 1.8.13-next.1
1375
+
1376
+ ### Patch Changes
1377
+
1378
+ - 7fcf5c4: - fix followUp check
1379
+ - @copilotkit/runtime-client-gql@1.8.13-next.1
1380
+ - @copilotkit/shared@1.8.13-next.1
1381
+
1382
+ ## 1.8.13-next.0
1383
+
1384
+ ### Patch Changes
1385
+
1386
+ - @copilotkit/runtime-client-gql@1.8.13-next.0
1387
+ - @copilotkit/shared@1.8.13-next.0
1388
+
1389
+ ## 1.8.12
1390
+
1391
+ ### Patch Changes
1392
+
1393
+ - 3e09584: - fix: stop passing config if not exists
1394
+ - 33ba021: - partial revert of potentially breaking check
1395
+ - wip
1396
+ - @copilotkit/runtime-client-gql@1.8.12
1397
+ - @copilotkit/shared@1.8.12
1398
+
1399
+ ## 1.8.12-next.6
1400
+
1401
+ ### Patch Changes
1402
+
1403
+ - 3e09584: - fix: stop passing config if not exists
1404
+ - @copilotkit/runtime-client-gql@1.8.12-next.6
1405
+ - @copilotkit/shared@1.8.12-next.6
1406
+
1407
+ ## 1.8.12-next.5
1408
+
1409
+ ### Patch Changes
1410
+
1411
+ - @copilotkit/runtime-client-gql@1.8.12-next.5
1412
+ - @copilotkit/shared@1.8.12-next.5
1413
+
1414
+ ## 1.8.12-next.4
1415
+
1416
+ ### Patch Changes
1417
+
1418
+ - @copilotkit/runtime-client-gql@1.8.12-next.4
1419
+ - @copilotkit/shared@1.8.12-next.4
1420
+
1421
+ ## 1.8.12-next.3
1422
+
1423
+ ### Patch Changes
1424
+
1425
+ - @copilotkit/runtime-client-gql@1.8.12-next.3
1426
+ - @copilotkit/shared@1.8.12-next.3
1427
+
1428
+ ## 1.8.12-next.2
1429
+
1430
+ ### Patch Changes
1431
+
1432
+ - 33ba021: - partial revert of potentially breaking check
1433
+ - wip
1434
+ - @copilotkit/runtime-client-gql@1.8.12-next.2
1435
+ - @copilotkit/shared@1.8.12-next.2
1436
+
1437
+ ## 1.8.12-next.1
1438
+
1439
+ ### Patch Changes
1440
+
1441
+ - @copilotkit/runtime-client-gql@1.8.12-next.1
1442
+ - @copilotkit/shared@1.8.12-next.1
1443
+
1444
+ ## 1.8.12-next.0
1445
+
1446
+ ### Patch Changes
1447
+
1448
+ - @copilotkit/runtime-client-gql@1.8.12-next.0
1449
+ - @copilotkit/shared@1.8.12-next.0
1450
+
1451
+ ## 1.8.11
1452
+
1453
+ ### Patch Changes
1454
+
1455
+ - @copilotkit/runtime-client-gql@1.8.11
1456
+ - @copilotkit/shared@1.8.11
1457
+
1458
+ ## 1.8.11-next.1
1459
+
1460
+ ### Patch Changes
1461
+
1462
+ - @copilotkit/runtime-client-gql@1.8.11-next.1
1463
+ - @copilotkit/shared@1.8.11-next.1
1464
+
1465
+ ## 1.8.11-next.0
1466
+
1467
+ ### Patch Changes
1468
+
1469
+ - @copilotkit/runtime-client-gql@1.8.11-next.0
1470
+ - @copilotkit/shared@1.8.11-next.0
1471
+
1472
+ ## 1.8.10
1473
+
1474
+ ### Patch Changes
1475
+
1476
+ - 742efbb: - feat: enable setting langgraph config from ui
1477
+ - chore: document usage of new config
1478
+ - @copilotkit/runtime-client-gql@1.8.10
1479
+ - @copilotkit/shared@1.8.10
1480
+
1481
+ ## 1.8.10-next.3
1482
+
1483
+ ### Patch Changes
1484
+
1485
+ - @copilotkit/runtime-client-gql@1.8.10-next.3
1486
+ - @copilotkit/shared@1.8.10-next.3
1487
+
1488
+ ## 1.8.10-next.2
1489
+
1490
+ ### Patch Changes
1491
+
1492
+ - @copilotkit/runtime-client-gql@1.8.10-next.2
1493
+ - @copilotkit/shared@1.8.10-next.2
1494
+
1495
+ ## 1.8.10-next.1
1496
+
1497
+ ### Patch Changes
1498
+
1499
+ - @copilotkit/runtime-client-gql@1.8.10-next.1
1500
+ - @copilotkit/shared@1.8.10-next.1
1501
+
1502
+ ## 1.8.10-next.0
1503
+
1504
+ ### Patch Changes
1505
+
1506
+ - 742efbb: - feat: enable setting langgraph config from ui
1507
+ - chore: document usage of new config
1508
+ - @copilotkit/runtime-client-gql@1.8.10-next.0
1509
+ - @copilotkit/shared@1.8.10-next.0
1510
+
1511
+ ## 1.8.9
1512
+
1513
+ ### Patch Changes
1514
+
1515
+ - @copilotkit/runtime-client-gql@1.8.9
1516
+ - @copilotkit/shared@1.8.9
1517
+
1518
+ ## 1.8.9-next.0
1519
+
1520
+ ### Patch Changes
1521
+
1522
+ - @copilotkit/runtime-client-gql@1.8.9-next.0
1523
+ - @copilotkit/shared@1.8.9-next.0
1524
+
1525
+ ## 1.8.8
1526
+
1527
+ ### Patch Changes
1528
+
1529
+ - dfb67c3: - refactor: rename mcpEndpoints to mcpServers for naming consistency
1530
+ - doc changes
1531
+ - @copilotkit/runtime-client-gql@1.8.8
1532
+ - @copilotkit/shared@1.8.8
1533
+
1534
+ ## 1.8.8-next.1
1535
+
1536
+ ### Patch Changes
1537
+
1538
+ - @copilotkit/runtime-client-gql@1.8.8-next.1
1539
+ - @copilotkit/shared@1.8.8-next.1
1540
+
1541
+ ## 1.8.8-next.0
1542
+
1543
+ ### Patch Changes
1544
+
1545
+ - dfb67c3: - refactor: rename mcpEndpoints to mcpServers for naming consistency
1546
+ - doc changes
1547
+ - @copilotkit/runtime-client-gql@1.8.8-next.0
1548
+ - @copilotkit/shared@1.8.8-next.0
1549
+
1550
+ ## 1.8.7
1551
+
1552
+ ### Patch Changes
1553
+
1554
+ - Updated dependencies [8b8474f]
1555
+ - @copilotkit/runtime-client-gql@1.8.7
1556
+ - @copilotkit/shared@1.8.7
1557
+
1558
+ ## 1.8.7-next.0
1559
+
1560
+ ### Patch Changes
1561
+
1562
+ - Updated dependencies [8b8474f]
1563
+ - @copilotkit/runtime-client-gql@1.8.7-next.0
1564
+ - @copilotkit/shared@1.8.7-next.0
1565
+
1566
+ ## 1.8.6
4
1567
 
5
1568
  ### Patch Changes
6
1569
 
7
1570
  - 7a04bd1: - fix: fix how results are communicated back on interrupt
8
1571
  - fix: do not allow followup for interrupt actions
9
1572
  - chore: improve TS docs for interrupt
10
- - @copilotkit/runtime-client-gql@0.0.0-main-20250416144141
11
- - @copilotkit/shared@0.0.0-main-20250416144141
1573
+ - @copilotkit/runtime-client-gql@1.8.6
1574
+ - @copilotkit/shared@1.8.6
12
1575
 
13
1576
  ## 1.8.6-next.0
14
1577
 
@@ -27,11 +1590,9 @@
27
1590
  - c0d3261: - full AWP support
28
1591
 
29
1592
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
30
-
31
1593
  - refactor: address linter issues with the new pages
32
1594
 
33
1595
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
34
-
35
1596
  - Merge branch 'mme/acp' into mme/mastra
36
1597
  - add sse example
37
1598
  - Create small-turkeys-agree.md
@@ -57,11 +1618,9 @@
57
1618
  - c0d3261: - full AWP support
58
1619
 
59
1620
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
60
-
61
1621
  - refactor: address linter issues with the new pages
62
1622
 
63
1623
  Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
64
-
65
1624
  - Merge branch 'mme/acp' into mme/mastra
66
1625
  - add sse example
67
1626
  - Create small-turkeys-agree.md
@@ -1176,7 +2735,6 @@
1176
2735
  - e16d95e: New prerelease
1177
2736
  - 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
1178
2737
  - CopilotKit Core:
1179
-
1180
2738
  - Improved error messages and overall logs
1181
2739
  - `useCopilotAction.renderAndAwait` renamed to `.renderAndAwaitForResponse` (backwards compatible, will be deprecated in the future)
1182
2740
  - Improved scrolling behavior. It is now possible to scroll up during LLM response generation
@@ -1184,7 +2742,6 @@
1184
2742
  - Updated interfaces for better developer ergonomics
1185
2743
 
1186
2744
  CoAgents:
1187
-
1188
2745
  - Renamed `remoteActions` to `remoteEndpoints` (backwards compatible, will be deprecated in the future)
1189
2746
  - Support for LangGraph Platform in Remote Endpoints
1190
2747
  - LangGraph JS Support for CoAgents (locally via `langgraph dev`, `langgraph up` or deployed to LangGraph Platform)
@@ -1192,7 +2749,6 @@
1192
2749
  - Enhanced state management and message handling
1193
2750
 
1194
2751
  CopilotKid Back-end SDK:
1195
-
1196
2752
  - Released a whole-new `@copilotkit/sdk-js` for building agents with LangGraph JS Support
1197
2753
 
1198
2754
  - 8d0144f: bump
@@ -1567,7 +3123,6 @@ CopilotKid Back-end SDK:
1567
3123
  ### Patch Changes
1568
3124
 
1569
3125
  - inject minified css in bundle
1570
-
1571
3126
  - removes the need to import `styles.css` manually
1572
3127
  - empty `styles.css` included in the build for backwards compatibility
1573
3128
  - uses tsup's `injectStyles` with `postcss` to bundle and minify the CSS, then inject it as a style tag
@@ -1718,7 +3273,6 @@ CopilotKid Back-end SDK:
1718
3273
  ### Major Changes
1719
3274
 
1720
3275
  - b6a4b6eb: V1.0 Release Candidate
1721
-
1722
3276
  - A robust new protocol between the frontend and the Copilot Runtime
1723
3277
  - Support for Copilot Cloud
1724
3278
  - Generative UI
@@ -1726,7 +3280,6 @@ CopilotKid Back-end SDK:
1726
3280
  - OpenAI assistant API streaming
1727
3281
 
1728
3282
  - V1.0 Release
1729
-
1730
3283
  - A robust new protocol between the frontend and the Copilot Runtime
1731
3284
  - Support for Copilot Cloud
1732
3285
  - Generative UI
@@ -1767,7 +3320,6 @@ CopilotKid Back-end SDK:
1767
3320
  ### Major Changes
1768
3321
 
1769
3322
  - V1.0 Release Candidate
1770
-
1771
3323
  - A robust new protocol between the frontend and the Copilot Runtime
1772
3324
  - Support for Copilot Cloud
1773
3325
  - Generative UI