@copilotkit/shared 2.0.0-next.1 → 2.0.0-rc.0

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 (592) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -12
  3. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  4. package/dist/a2ui-envelope.cjs +154 -0
  5. package/dist/a2ui-envelope.cjs.map +1 -0
  6. package/dist/a2ui-envelope.d.cts +101 -0
  7. package/dist/a2ui-envelope.d.cts.map +1 -0
  8. package/dist/a2ui-envelope.d.mts +101 -0
  9. package/dist/a2ui-envelope.d.mts.map +1 -0
  10. package/dist/a2ui-envelope.mjs +151 -0
  11. package/dist/a2ui-envelope.mjs.map +1 -0
  12. package/dist/a2ui-prompts.cjs +259 -0
  13. package/dist/a2ui-prompts.cjs.map +1 -0
  14. package/dist/a2ui-prompts.d.cts +79 -0
  15. package/dist/a2ui-prompts.d.cts.map +1 -0
  16. package/dist/a2ui-prompts.d.mts +79 -0
  17. package/dist/a2ui-prompts.d.mts.map +1 -0
  18. package/dist/a2ui-prompts.mjs +251 -0
  19. package/dist/a2ui-prompts.mjs.map +1 -0
  20. package/dist/attachments/content.cjs +17 -0
  21. package/dist/attachments/content.cjs.map +1 -0
  22. package/dist/attachments/content.d.cts +9 -0
  23. package/dist/attachments/content.d.cts.map +1 -0
  24. package/dist/attachments/content.d.mts +9 -0
  25. package/dist/attachments/content.d.mts.map +1 -0
  26. package/dist/attachments/content.mjs +16 -0
  27. package/dist/attachments/content.mjs.map +1 -0
  28. package/dist/attachments/types.d.cts +64 -0
  29. package/dist/attachments/types.d.cts.map +1 -0
  30. package/dist/attachments/types.d.mts +64 -0
  31. package/dist/attachments/types.d.mts.map +1 -0
  32. package/dist/attachments/utils.cjs +137 -0
  33. package/dist/attachments/utils.cjs.map +1 -0
  34. package/dist/attachments/utils.d.cts +44 -0
  35. package/dist/attachments/utils.d.cts.map +1 -0
  36. package/dist/attachments/utils.d.mts +44 -0
  37. package/dist/attachments/utils.d.mts.map +1 -0
  38. package/dist/attachments/utils.mjs +129 -0
  39. package/dist/attachments/utils.mjs.map +1 -0
  40. package/dist/constants/index.cjs +25 -0
  41. package/dist/constants/index.cjs.map +1 -0
  42. package/dist/constants/index.d.cts +17 -0
  43. package/dist/constants/index.d.cts.map +1 -0
  44. package/dist/constants/index.d.mts +17 -0
  45. package/dist/constants/index.d.mts.map +1 -0
  46. package/dist/constants/index.mjs +17 -12
  47. package/dist/constants/index.mjs.map +1 -1
  48. package/dist/debug-event-envelope.d.cts +13 -0
  49. package/dist/debug-event-envelope.d.cts.map +1 -0
  50. package/dist/debug-event-envelope.d.mts +13 -0
  51. package/dist/debug-event-envelope.d.mts.map +1 -0
  52. package/dist/debug.cjs +38 -0
  53. package/dist/debug.cjs.map +1 -0
  54. package/dist/debug.d.cts +29 -0
  55. package/dist/debug.d.cts.map +1 -0
  56. package/dist/debug.d.mts +29 -0
  57. package/dist/debug.d.mts.map +1 -0
  58. package/dist/debug.mjs +37 -0
  59. package/dist/debug.mjs.map +1 -0
  60. package/dist/event-transforms/index.cjs +15 -0
  61. package/dist/event-transforms/index.d.cts +4 -0
  62. package/dist/event-transforms/index.d.mts +4 -0
  63. package/dist/event-transforms/index.mjs +5 -0
  64. package/dist/event-transforms/open-generative-ui-middleware.cjs +286 -0
  65. package/dist/event-transforms/open-generative-ui-middleware.cjs.map +1 -0
  66. package/dist/event-transforms/open-generative-ui-middleware.d.cts +60 -0
  67. package/dist/event-transforms/open-generative-ui-middleware.d.cts.map +1 -0
  68. package/dist/event-transforms/open-generative-ui-middleware.d.mts +60 -0
  69. package/dist/event-transforms/open-generative-ui-middleware.d.mts.map +1 -0
  70. package/dist/event-transforms/open-generative-ui-middleware.mjs +283 -0
  71. package/dist/event-transforms/open-generative-ui-middleware.mjs.map +1 -0
  72. package/dist/event-transforms/recorded-events.cjs +59 -0
  73. package/dist/event-transforms/recorded-events.cjs.map +1 -0
  74. package/dist/event-transforms/recorded-events.d.cts +23 -0
  75. package/dist/event-transforms/recorded-events.d.cts.map +1 -0
  76. package/dist/event-transforms/recorded-events.d.mts +23 -0
  77. package/dist/event-transforms/recorded-events.d.mts.map +1 -0
  78. package/dist/event-transforms/recorded-events.mjs +58 -0
  79. package/dist/event-transforms/recorded-events.mjs.map +1 -0
  80. package/dist/finalize-events.cjs +186 -0
  81. package/dist/finalize-events.cjs.map +1 -0
  82. package/dist/finalize-events.d.cts +40 -0
  83. package/dist/finalize-events.d.cts.map +1 -0
  84. package/dist/finalize-events.d.mts +40 -0
  85. package/dist/finalize-events.d.mts.map +1 -0
  86. package/dist/finalize-events.mjs +184 -0
  87. package/dist/finalize-events.mjs.map +1 -0
  88. package/dist/generative-ui/basic-functions.cjs +177 -0
  89. package/dist/generative-ui/basic-functions.cjs.map +1 -0
  90. package/dist/generative-ui/basic-functions.d.cts +108 -0
  91. package/dist/generative-ui/basic-functions.d.cts.map +1 -0
  92. package/dist/generative-ui/basic-functions.d.mts +108 -0
  93. package/dist/generative-ui/basic-functions.d.mts.map +1 -0
  94. package/dist/generative-ui/basic-functions.mjs +167 -0
  95. package/dist/generative-ui/basic-functions.mjs.map +1 -0
  96. package/dist/generative-ui/child-refs.cjs +161 -0
  97. package/dist/generative-ui/child-refs.cjs.map +1 -0
  98. package/dist/generative-ui/child-refs.d.cts +68 -0
  99. package/dist/generative-ui/child-refs.d.cts.map +1 -0
  100. package/dist/generative-ui/child-refs.d.mts +68 -0
  101. package/dist/generative-ui/child-refs.d.mts.map +1 -0
  102. package/dist/generative-ui/child-refs.mjs +152 -0
  103. package/dist/generative-ui/child-refs.mjs.map +1 -0
  104. package/dist/generative-ui/is-record.cjs +10 -0
  105. package/dist/generative-ui/is-record.cjs.map +1 -0
  106. package/dist/generative-ui/is-record.mjs +9 -0
  107. package/dist/generative-ui/is-record.mjs.map +1 -0
  108. package/dist/generative-ui/prompt.cjs +91 -0
  109. package/dist/generative-ui/prompt.cjs.map +1 -0
  110. package/dist/generative-ui/prompt.d.cts +13 -0
  111. package/dist/generative-ui/prompt.d.cts.map +1 -0
  112. package/dist/generative-ui/prompt.d.mts +13 -0
  113. package/dist/generative-ui/prompt.d.mts.map +1 -0
  114. package/dist/generative-ui/prompt.mjs +90 -0
  115. package/dist/generative-ui/prompt.mjs.map +1 -0
  116. package/dist/generative-ui/render-ui-args.cjs +160 -0
  117. package/dist/generative-ui/render-ui-args.cjs.map +1 -0
  118. package/dist/generative-ui/render-ui-args.d.cts +40 -0
  119. package/dist/generative-ui/render-ui-args.d.cts.map +1 -0
  120. package/dist/generative-ui/render-ui-args.d.mts +40 -0
  121. package/dist/generative-ui/render-ui-args.d.mts.map +1 -0
  122. package/dist/generative-ui/render-ui-args.mjs +159 -0
  123. package/dist/generative-ui/render-ui-args.mjs.map +1 -0
  124. package/dist/generative-ui/types.cjs +101 -0
  125. package/dist/generative-ui/types.cjs.map +1 -0
  126. package/dist/generative-ui/types.d.cts +270 -0
  127. package/dist/generative-ui/types.d.cts.map +1 -0
  128. package/dist/generative-ui/types.d.mts +270 -0
  129. package/dist/generative-ui/types.d.mts.map +1 -0
  130. package/dist/generative-ui/types.mjs +86 -0
  131. package/dist/generative-ui/types.mjs.map +1 -0
  132. package/dist/generative-ui/validate-operation.cjs +405 -0
  133. package/dist/generative-ui/validate-operation.cjs.map +1 -0
  134. package/dist/generative-ui/validate-operation.d.cts +86 -0
  135. package/dist/generative-ui/validate-operation.d.cts.map +1 -0
  136. package/dist/generative-ui/validate-operation.d.mts +86 -0
  137. package/dist/generative-ui/validate-operation.d.mts.map +1 -0
  138. package/dist/generative-ui/validate-operation.mjs +399 -0
  139. package/dist/generative-ui/validate-operation.mjs.map +1 -0
  140. package/dist/index.cjs +233 -0
  141. package/dist/index.cjs.map +1 -0
  142. package/dist/index.d.cts +80 -0
  143. package/dist/index.d.cts.map +1 -0
  144. package/dist/index.d.mts +80 -0
  145. package/dist/index.d.mts.map +1 -0
  146. package/dist/index.mjs +78 -123
  147. package/dist/index.mjs.map +1 -1
  148. package/dist/index.umd.js +3979 -0
  149. package/dist/index.umd.js.map +1 -0
  150. package/dist/intelligence-routing-fields.cjs +35 -0
  151. package/dist/intelligence-routing-fields.cjs.map +1 -0
  152. package/dist/intelligence-routing-fields.d.cts +18 -0
  153. package/dist/intelligence-routing-fields.d.cts.map +1 -0
  154. package/dist/intelligence-routing-fields.d.mts +18 -0
  155. package/dist/intelligence-routing-fields.d.mts.map +1 -0
  156. package/dist/intelligence-routing-fields.mjs +34 -0
  157. package/dist/intelligence-routing-fields.mjs.map +1 -0
  158. package/dist/logger.cjs +7 -0
  159. package/dist/logger.cjs.map +1 -0
  160. package/dist/logger.d.cts +5 -0
  161. package/dist/logger.d.cts.map +1 -0
  162. package/dist/logger.d.mts +5 -0
  163. package/dist/logger.d.mts.map +1 -0
  164. package/dist/logger.mjs +6 -0
  165. package/dist/logger.mjs.map +1 -0
  166. package/dist/open-generative-ui-prompts.cjs +8 -0
  167. package/dist/open-generative-ui-prompts.cjs.map +1 -0
  168. package/dist/open-generative-ui-prompts.d.cts +6 -0
  169. package/dist/open-generative-ui-prompts.d.cts.map +1 -0
  170. package/dist/open-generative-ui-prompts.d.mts +6 -0
  171. package/dist/open-generative-ui-prompts.d.mts.map +1 -0
  172. package/dist/open-generative-ui-prompts.mjs +7 -0
  173. package/dist/open-generative-ui-prompts.mjs.map +1 -0
  174. package/dist/package.cjs +12 -0
  175. package/dist/package.cjs.map +1 -0
  176. package/dist/package.mjs +6 -0
  177. package/dist/package.mjs.map +1 -0
  178. package/dist/standard-schema.cjs +31 -0
  179. package/dist/standard-schema.cjs.map +1 -0
  180. package/dist/standard-schema.d.cts +33 -0
  181. package/dist/standard-schema.d.cts.map +1 -0
  182. package/dist/standard-schema.d.mts +33 -0
  183. package/dist/standard-schema.d.mts.map +1 -0
  184. package/dist/standard-schema.mjs +30 -0
  185. package/dist/standard-schema.mjs.map +1 -0
  186. package/dist/telemetry/events.d.cts +72 -0
  187. package/dist/telemetry/events.d.cts.map +1 -0
  188. package/dist/telemetry/events.d.mts +72 -0
  189. package/dist/telemetry/events.d.mts.map +1 -0
  190. package/dist/telemetry/index.cjs +18 -0
  191. package/dist/telemetry/index.d.cts +5 -0
  192. package/dist/telemetry/index.d.mts +5 -0
  193. package/dist/telemetry/index.mjs +6 -12
  194. package/dist/telemetry/lambda-client.cjs +91 -0
  195. package/dist/telemetry/lambda-client.cjs.map +1 -0
  196. package/dist/telemetry/lambda-client.d.cts +31 -0
  197. package/dist/telemetry/lambda-client.d.cts.map +1 -0
  198. package/dist/telemetry/lambda-client.d.mts +31 -0
  199. package/dist/telemetry/lambda-client.d.mts.map +1 -0
  200. package/dist/telemetry/lambda-client.mjs +87 -0
  201. package/dist/telemetry/lambda-client.mjs.map +1 -0
  202. package/dist/telemetry/model-host.cjs +104 -0
  203. package/dist/telemetry/model-host.cjs.map +1 -0
  204. package/dist/telemetry/model-host.d.cts +26 -0
  205. package/dist/telemetry/model-host.d.cts.map +1 -0
  206. package/dist/telemetry/model-host.d.mts +26 -0
  207. package/dist/telemetry/model-host.d.mts.map +1 -0
  208. package/dist/telemetry/model-host.mjs +102 -0
  209. package/dist/telemetry/model-host.mjs.map +1 -0
  210. package/dist/telemetry/sampling.cjs +50 -0
  211. package/dist/telemetry/sampling.cjs.map +1 -0
  212. package/dist/telemetry/sampling.d.cts +57 -0
  213. package/dist/telemetry/sampling.d.cts.map +1 -0
  214. package/dist/telemetry/sampling.d.mts +57 -0
  215. package/dist/telemetry/sampling.d.mts.map +1 -0
  216. package/dist/telemetry/sampling.mjs +44 -0
  217. package/dist/telemetry/sampling.mjs.map +1 -0
  218. package/dist/telemetry/telemetry-client.cjs +165 -0
  219. package/dist/telemetry/telemetry-client.cjs.map +1 -0
  220. package/dist/telemetry/telemetry-client.d.cts +87 -0
  221. package/dist/telemetry/telemetry-client.d.cts.map +1 -0
  222. package/dist/telemetry/telemetry-client.d.mts +87 -0
  223. package/dist/telemetry/telemetry-client.d.mts.map +1 -0
  224. package/dist/telemetry/telemetry-client.mjs +162 -9
  225. package/dist/telemetry/telemetry-client.mjs.map +1 -1
  226. package/dist/telemetry/telemetry-disabled.cjs +20 -0
  227. package/dist/telemetry/telemetry-disabled.cjs.map +1 -0
  228. package/dist/telemetry/telemetry-disabled.d.cts +16 -0
  229. package/dist/telemetry/telemetry-disabled.d.cts.map +1 -0
  230. package/dist/telemetry/telemetry-disabled.d.mts +16 -0
  231. package/dist/telemetry/telemetry-disabled.d.mts.map +1 -0
  232. package/dist/telemetry/telemetry-disabled.mjs +19 -0
  233. package/dist/telemetry/telemetry-disabled.mjs.map +1 -0
  234. package/dist/telemetry/utils.cjs +14 -0
  235. package/dist/telemetry/utils.cjs.map +1 -0
  236. package/dist/telemetry/utils.mjs +12 -8
  237. package/dist/telemetry/utils.mjs.map +1 -1
  238. package/dist/transcription-errors.cjs +84 -0
  239. package/dist/transcription-errors.cjs.map +1 -0
  240. package/dist/transcription-errors.d.cts +52 -0
  241. package/dist/transcription-errors.d.cts.map +1 -0
  242. package/dist/transcription-errors.d.mts +52 -0
  243. package/dist/transcription-errors.d.mts.map +1 -0
  244. package/dist/transcription-errors.mjs +82 -0
  245. package/dist/transcription-errors.mjs.map +1 -0
  246. package/dist/types/{action.d.ts → action.d.cts} +32 -32
  247. package/dist/types/action.d.cts.map +1 -0
  248. package/dist/types/action.d.mts +59 -0
  249. package/dist/types/action.d.mts.map +1 -0
  250. package/dist/types/copilot-cloud-config.d.cts +15 -0
  251. package/dist/types/copilot-cloud-config.d.cts.map +1 -0
  252. package/dist/types/copilot-cloud-config.d.mts +15 -0
  253. package/dist/types/copilot-cloud-config.d.mts.map +1 -0
  254. package/dist/types/error.d.cts +57 -0
  255. package/dist/types/error.d.cts.map +1 -0
  256. package/dist/types/error.d.mts +57 -0
  257. package/dist/types/error.d.mts.map +1 -0
  258. package/dist/types/message.d.cts +42 -0
  259. package/dist/types/message.d.cts.map +1 -0
  260. package/dist/types/message.d.mts +42 -0
  261. package/dist/types/message.d.mts.map +1 -0
  262. package/dist/types/openai-assistant.d.cts +55 -0
  263. package/dist/types/openai-assistant.d.cts.map +1 -0
  264. package/dist/types/openai-assistant.d.mts +55 -0
  265. package/dist/types/openai-assistant.d.mts.map +1 -0
  266. package/dist/types/utility.d.cts +6 -0
  267. package/dist/types/utility.d.cts.map +1 -0
  268. package/dist/types/utility.d.mts +6 -0
  269. package/dist/types/utility.d.mts.map +1 -0
  270. package/dist/utils/clipboard.cjs +28 -0
  271. package/dist/utils/clipboard.cjs.map +1 -0
  272. package/dist/utils/clipboard.d.cts +14 -0
  273. package/dist/utils/clipboard.d.cts.map +1 -0
  274. package/dist/utils/clipboard.d.mts +14 -0
  275. package/dist/utils/clipboard.d.mts.map +1 -0
  276. package/dist/utils/clipboard.mjs +27 -0
  277. package/dist/utils/clipboard.mjs.map +1 -0
  278. package/dist/utils/conditions.cjs +32 -0
  279. package/dist/utils/conditions.cjs.map +1 -0
  280. package/dist/utils/{conditions.d.ts → conditions.d.cts} +16 -11
  281. package/dist/utils/conditions.d.cts.map +1 -0
  282. package/dist/utils/conditions.d.mts +31 -0
  283. package/dist/utils/conditions.d.mts.map +1 -0
  284. package/dist/utils/conditions.mjs +30 -6
  285. package/dist/utils/conditions.mjs.map +1 -1
  286. package/dist/utils/console-styling.cjs +91 -0
  287. package/dist/utils/console-styling.cjs.map +1 -0
  288. package/dist/utils/console-styling.d.cts +65 -0
  289. package/dist/utils/console-styling.d.cts.map +1 -0
  290. package/dist/utils/console-styling.d.mts +65 -0
  291. package/dist/utils/console-styling.d.mts.map +1 -0
  292. package/dist/utils/console-styling.mjs +83 -15
  293. package/dist/utils/console-styling.mjs.map +1 -1
  294. package/dist/utils/dashboard-url.cjs +19 -0
  295. package/dist/utils/dashboard-url.cjs.map +1 -0
  296. package/dist/utils/dashboard-url.mjs +18 -0
  297. package/dist/utils/dashboard-url.mjs.map +1 -0
  298. package/dist/utils/errors.cjs +439 -0
  299. package/dist/utils/errors.cjs.map +1 -0
  300. package/dist/utils/{errors.d.ts → errors.d.cts} +188 -156
  301. package/dist/utils/errors.d.cts.map +1 -0
  302. package/dist/utils/errors.d.mts +312 -0
  303. package/dist/utils/errors.d.mts.map +1 -0
  304. package/dist/utils/errors.mjs +416 -63
  305. package/dist/utils/errors.mjs.map +1 -1
  306. package/dist/utils/index.cjs +105 -0
  307. package/dist/utils/index.cjs.map +1 -0
  308. package/dist/utils/index.d.cts +58 -0
  309. package/dist/utils/index.d.cts.map +1 -0
  310. package/dist/utils/index.d.mts +58 -0
  311. package/dist/utils/index.d.mts.map +1 -0
  312. package/dist/utils/index.mjs +97 -107
  313. package/dist/utils/index.mjs.map +1 -1
  314. package/dist/utils/inspector-learning.cjs +217 -0
  315. package/dist/utils/inspector-learning.cjs.map +1 -0
  316. package/dist/utils/inspector-learning.d.cts +104 -0
  317. package/dist/utils/inspector-learning.d.cts.map +1 -0
  318. package/dist/utils/inspector-learning.d.mts +104 -0
  319. package/dist/utils/inspector-learning.d.mts.map +1 -0
  320. package/dist/utils/inspector-learning.mjs +215 -0
  321. package/dist/utils/inspector-learning.mjs.map +1 -0
  322. package/dist/utils/inspector-metadata.cjs +146 -0
  323. package/dist/utils/inspector-metadata.cjs.map +1 -0
  324. package/dist/utils/inspector-metadata.d.cts +55 -0
  325. package/dist/utils/inspector-metadata.d.cts.map +1 -0
  326. package/dist/utils/inspector-metadata.d.mts +55 -0
  327. package/dist/utils/inspector-metadata.d.mts.map +1 -0
  328. package/dist/utils/inspector-metadata.mjs +146 -0
  329. package/dist/utils/inspector-metadata.mjs.map +1 -0
  330. package/dist/utils/inspector-visibility.cjs +13 -0
  331. package/dist/utils/inspector-visibility.cjs.map +1 -0
  332. package/dist/utils/inspector-visibility.d.cts +18 -0
  333. package/dist/utils/inspector-visibility.d.cts.map +1 -0
  334. package/dist/utils/inspector-visibility.d.mts +18 -0
  335. package/dist/utils/inspector-visibility.d.mts.map +1 -0
  336. package/dist/utils/inspector-visibility.mjs +12 -0
  337. package/dist/utils/inspector-visibility.mjs.map +1 -0
  338. package/dist/utils/json-schema.cjs +215 -0
  339. package/dist/utils/json-schema.cjs.map +1 -0
  340. package/dist/utils/{json-schema.d.ts → json-schema.d.cts} +20 -18
  341. package/dist/utils/json-schema.d.cts.map +1 -0
  342. package/dist/utils/json-schema.d.mts +36 -0
  343. package/dist/utils/json-schema.d.mts.map +1 -0
  344. package/dist/utils/json-schema.mjs +210 -12
  345. package/dist/utils/json-schema.mjs.map +1 -1
  346. package/dist/utils/random-id.cjs +38 -0
  347. package/dist/utils/random-id.cjs.map +1 -0
  348. package/dist/utils/{random-id.d.ts → random-id.d.cts} +3 -1
  349. package/dist/utils/random-id.d.cts.map +1 -0
  350. package/dist/utils/random-id.d.mts +8 -0
  351. package/dist/utils/random-id.d.mts.map +1 -0
  352. package/dist/utils/random-id.mjs +33 -12
  353. package/dist/utils/random-id.mjs.map +1 -1
  354. package/dist/utils/requests.cjs +58 -0
  355. package/dist/utils/requests.cjs.map +1 -0
  356. package/dist/utils/{requests.d.ts → requests.d.cts} +3 -1
  357. package/dist/utils/requests.d.cts.map +1 -0
  358. package/dist/utils/requests.d.mts +12 -0
  359. package/dist/utils/requests.d.mts.map +1 -0
  360. package/dist/utils/requests.mjs +56 -6
  361. package/dist/utils/requests.mjs.map +1 -1
  362. package/dist/utils/row-render-keys.cjs +206 -0
  363. package/dist/utils/row-render-keys.cjs.map +1 -0
  364. package/dist/utils/row-render-keys.d.cts +65 -0
  365. package/dist/utils/row-render-keys.d.cts.map +1 -0
  366. package/dist/utils/row-render-keys.d.mts +65 -0
  367. package/dist/utils/row-render-keys.d.mts.map +1 -0
  368. package/dist/utils/row-render-keys.mjs +201 -0
  369. package/dist/utils/row-render-keys.mjs.map +1 -0
  370. package/dist/utils/types.cjs +9 -0
  371. package/dist/utils/types.cjs.map +1 -0
  372. package/dist/utils/types.d.cts +122 -0
  373. package/dist/utils/types.d.cts.map +1 -0
  374. package/dist/utils/types.d.mts +122 -0
  375. package/dist/utils/types.d.mts.map +1 -0
  376. package/dist/utils/types.mjs +6 -1
  377. package/dist/utils/types.mjs.map +1 -1
  378. package/package.json +74 -40
  379. package/scripts/verify-cjs-exports.cjs +16 -0
  380. package/src/__tests__/a2ui-envelope.test.ts +434 -0
  381. package/src/__tests__/a2ui-prompts.test.ts +362 -0
  382. package/src/__tests__/debug.test.ts +116 -0
  383. package/src/__tests__/license-context.test.ts +253 -0
  384. package/src/__tests__/root-entry-browser-safety.test.ts +91 -0
  385. package/src/__tests__/standard-schema-types.test.ts +144 -0
  386. package/src/__tests__/standard-schema.test.ts +359 -0
  387. package/src/__tests__/zod-regression.test.ts +319 -0
  388. package/src/a2ui-envelope.ts +309 -0
  389. package/src/a2ui-prompts.ts +322 -0
  390. package/src/attachments/__tests__/utils.test.ts +214 -0
  391. package/src/attachments/content.test.ts +48 -0
  392. package/src/attachments/content.ts +16 -0
  393. package/src/attachments/index.ts +21 -0
  394. package/src/attachments/types.ts +77 -0
  395. package/src/attachments/utils.ts +169 -0
  396. package/src/constants/index.ts +14 -1
  397. package/src/debug-event-envelope.ts +9 -0
  398. package/src/debug.ts +55 -0
  399. package/src/event-transforms/index.ts +5 -0
  400. package/src/event-transforms/open-generative-ui-middleware.ts +392 -0
  401. package/src/event-transforms/recorded-events.test.ts +166 -0
  402. package/src/event-transforms/recorded-events.ts +74 -0
  403. package/src/finalize-events.test.ts +284 -0
  404. package/src/finalize-events.ts +260 -0
  405. package/src/generative-ui/__tests__/render-ui-args.test.ts +175 -0
  406. package/src/generative-ui/__tests__/validate-operation.test.ts +977 -0
  407. package/src/generative-ui/basic-functions.ts +282 -0
  408. package/src/generative-ui/child-refs.ts +210 -0
  409. package/src/generative-ui/index.ts +6 -0
  410. package/src/generative-ui/is-record.ts +4 -0
  411. package/src/generative-ui/prompt.ts +174 -0
  412. package/src/generative-ui/render-ui-args.ts +199 -0
  413. package/src/generative-ui/types.ts +314 -0
  414. package/src/generative-ui/validate-operation.ts +723 -0
  415. package/src/index.ts +190 -1
  416. package/src/intelligence-routing-fields.test.ts +51 -0
  417. package/src/intelligence-routing-fields.ts +40 -0
  418. package/src/logger.ts +1 -0
  419. package/src/open-generative-ui-prompts.ts +20 -0
  420. package/src/standard-schema.ts +82 -0
  421. package/src/telemetry/events.ts +37 -10
  422. package/src/telemetry/index.ts +8 -0
  423. package/src/telemetry/lambda-client.test.ts +446 -0
  424. package/src/telemetry/lambda-client.ts +194 -0
  425. package/src/telemetry/model-host.test.ts +145 -0
  426. package/src/telemetry/model-host.ts +156 -0
  427. package/src/telemetry/sampling.test.ts +65 -0
  428. package/src/telemetry/sampling.ts +103 -0
  429. package/src/telemetry/telemetry-blank-license-identity.test.ts +128 -0
  430. package/src/telemetry/telemetry-client.test.ts +798 -0
  431. package/src/telemetry/telemetry-client.ts +223 -37
  432. package/src/telemetry/telemetry-disabled.ts +22 -0
  433. package/src/telemetry/utils.ts +0 -24
  434. package/src/transcription-errors.ts +99 -0
  435. package/src/types/__tests__/message.test.ts +62 -0
  436. package/src/types/action.ts +9 -5
  437. package/src/types/error.ts +11 -2
  438. package/src/types/message.ts +33 -5
  439. package/src/types/openai-assistant.ts +6 -2
  440. package/src/utils/__tests__/clipboard.test.ts +87 -0
  441. package/src/utils/__tests__/conditions.test.ts +161 -0
  442. package/src/utils/__tests__/json-schema.test.ts +812 -0
  443. package/src/utils/__tests__/row-render-keys.test.ts +388 -0
  444. package/src/utils/clipboard.ts +23 -0
  445. package/src/utils/conditions.ts +27 -9
  446. package/src/utils/console-styling.ts +10 -8
  447. package/src/utils/dashboard-url.ts +17 -0
  448. package/src/utils/errors.ts +55 -22
  449. package/src/utils/index.ts +70 -1
  450. package/src/utils/inspector-learning.test.ts +423 -0
  451. package/src/utils/inspector-learning.ts +523 -0
  452. package/src/utils/inspector-metadata.test.ts +743 -0
  453. package/src/utils/inspector-metadata.ts +263 -0
  454. package/src/utils/inspector-visibility.test.ts +43 -0
  455. package/src/utils/inspector-visibility.ts +17 -0
  456. package/src/utils/json-schema.ts +156 -12
  457. package/src/utils/random-id.ts +5 -2
  458. package/src/utils/requests.ts +3 -1
  459. package/src/utils/row-render-keys.ts +263 -0
  460. package/src/utils/types.ts +128 -1
  461. package/src/utils.test.ts +137 -0
  462. package/tsconfig.json +10 -2
  463. package/tsdown.config.ts +49 -0
  464. package/vitest.config.mjs +11 -0
  465. package/CHANGELOG.md +0 -1817
  466. package/dist/chunk-2OJ5OJ2D.mjs +0 -1
  467. package/dist/chunk-2OJ5OJ2D.mjs.map +0 -1
  468. package/dist/chunk-64DYJ27R.mjs +0 -201
  469. package/dist/chunk-64DYJ27R.mjs.map +0 -1
  470. package/dist/chunk-6QGXWNS5.mjs +0 -34
  471. package/dist/chunk-6QGXWNS5.mjs.map +0 -1
  472. package/dist/chunk-6W2UEO2M.mjs +0 -94
  473. package/dist/chunk-6W2UEO2M.mjs.map +0 -1
  474. package/dist/chunk-7DJDTRNX.mjs +0 -426
  475. package/dist/chunk-7DJDTRNX.mjs.map +0 -1
  476. package/dist/chunk-A66772CV.mjs +0 -107
  477. package/dist/chunk-A66772CV.mjs.map +0 -1
  478. package/dist/chunk-BOKE4OKY.mjs +0 -41
  479. package/dist/chunk-BOKE4OKY.mjs.map +0 -1
  480. package/dist/chunk-FCCOSO5L.mjs +0 -1
  481. package/dist/chunk-FCCOSO5L.mjs.map +0 -1
  482. package/dist/chunk-GYZIHHE6.mjs +0 -13
  483. package/dist/chunk-GYZIHHE6.mjs.map +0 -1
  484. package/dist/chunk-IAFBVORQ.mjs +0 -1
  485. package/dist/chunk-IAFBVORQ.mjs.map +0 -1
  486. package/dist/chunk-JAAUCDUR.mjs +0 -38
  487. package/dist/chunk-JAAUCDUR.mjs.map +0 -1
  488. package/dist/chunk-MSUB6DGR.mjs +0 -1
  489. package/dist/chunk-MSUB6DGR.mjs.map +0 -1
  490. package/dist/chunk-N5EP5OD5.mjs +0 -1
  491. package/dist/chunk-N5EP5OD5.mjs.map +0 -1
  492. package/dist/chunk-NAFEBKSO.mjs +0 -1
  493. package/dist/chunk-NAFEBKSO.mjs.map +0 -1
  494. package/dist/chunk-P7STFMPO.mjs +0 -1
  495. package/dist/chunk-P7STFMPO.mjs.map +0 -1
  496. package/dist/chunk-PL5WNHFZ.mjs +0 -50
  497. package/dist/chunk-PL5WNHFZ.mjs.map +0 -1
  498. package/dist/chunk-UYARLQNA.mjs +0 -1
  499. package/dist/chunk-UYARLQNA.mjs.map +0 -1
  500. package/dist/chunk-XEMZTHQZ.mjs +0 -67
  501. package/dist/chunk-XEMZTHQZ.mjs.map +0 -1
  502. package/dist/chunk-XTHC46M2.mjs +0 -1
  503. package/dist/chunk-XTHC46M2.mjs.map +0 -1
  504. package/dist/constants/index.d.ts +0 -6
  505. package/dist/constants/index.js +0 -40
  506. package/dist/constants/index.js.map +0 -1
  507. package/dist/index.d.ts +0 -25
  508. package/dist/index.js +0 -1098
  509. package/dist/index.js.map +0 -1
  510. package/dist/telemetry/events.d.ts +0 -45
  511. package/dist/telemetry/events.js +0 -19
  512. package/dist/telemetry/events.js.map +0 -1
  513. package/dist/telemetry/events.mjs +0 -1
  514. package/dist/telemetry/events.mjs.map +0 -1
  515. package/dist/telemetry/index.d.ts +0 -3
  516. package/dist/telemetry/index.js +0 -188
  517. package/dist/telemetry/index.js.map +0 -1
  518. package/dist/telemetry/index.mjs.map +0 -1
  519. package/dist/telemetry/scarf-client.d.ts +0 -7
  520. package/dist/telemetry/scarf-client.js +0 -59
  521. package/dist/telemetry/scarf-client.js.map +0 -1
  522. package/dist/telemetry/scarf-client.mjs +0 -7
  523. package/dist/telemetry/scarf-client.mjs.map +0 -1
  524. package/dist/telemetry/security-check.d.ts +0 -2
  525. package/dist/telemetry/security-check.js +0 -2
  526. package/dist/telemetry/security-check.js.map +0 -1
  527. package/dist/telemetry/security-check.mjs +0 -1
  528. package/dist/telemetry/security-check.mjs.map +0 -1
  529. package/dist/telemetry/telemetry-client.d.ts +0 -40
  530. package/dist/telemetry/telemetry-client.js +0 -186
  531. package/dist/telemetry/telemetry-client.js.map +0 -1
  532. package/dist/telemetry/utils.d.ts +0 -8
  533. package/dist/telemetry/utils.js +0 -69
  534. package/dist/telemetry/utils.js.map +0 -1
  535. package/dist/types/action.js +0 -19
  536. package/dist/types/action.js.map +0 -1
  537. package/dist/types/action.mjs +0 -2
  538. package/dist/types/action.mjs.map +0 -1
  539. package/dist/types/copilot-cloud-config.d.ts +0 -13
  540. package/dist/types/copilot-cloud-config.js +0 -19
  541. package/dist/types/copilot-cloud-config.js.map +0 -1
  542. package/dist/types/copilot-cloud-config.mjs +0 -2
  543. package/dist/types/copilot-cloud-config.mjs.map +0 -1
  544. package/dist/types/error.d.ts +0 -55
  545. package/dist/types/error.js +0 -19
  546. package/dist/types/error.js.map +0 -1
  547. package/dist/types/error.mjs +0 -2
  548. package/dist/types/error.mjs.map +0 -1
  549. package/dist/types/index.d.ts +0 -7
  550. package/dist/types/index.js +0 -19
  551. package/dist/types/index.js.map +0 -1
  552. package/dist/types/index.mjs +0 -8
  553. package/dist/types/index.mjs.map +0 -1
  554. package/dist/types/message.d.ts +0 -26
  555. package/dist/types/message.js +0 -19
  556. package/dist/types/message.js.map +0 -1
  557. package/dist/types/message.mjs +0 -2
  558. package/dist/types/message.mjs.map +0 -1
  559. package/dist/types/openai-assistant.d.ts +0 -53
  560. package/dist/types/openai-assistant.js +0 -19
  561. package/dist/types/openai-assistant.js.map +0 -1
  562. package/dist/types/openai-assistant.mjs +0 -2
  563. package/dist/types/openai-assistant.mjs.map +0 -1
  564. package/dist/types/utility.d.ts +0 -6
  565. package/dist/types/utility.js +0 -19
  566. package/dist/types/utility.js.map +0 -1
  567. package/dist/types/utility.mjs +0 -2
  568. package/dist/types/utility.mjs.map +0 -1
  569. package/dist/utils/conditions.js +0 -74
  570. package/dist/utils/conditions.js.map +0 -1
  571. package/dist/utils/console-styling.d.ts +0 -84
  572. package/dist/utils/console-styling.js +0 -123
  573. package/dist/utils/console-styling.js.map +0 -1
  574. package/dist/utils/errors.js +0 -443
  575. package/dist/utils/errors.js.map +0 -1
  576. package/dist/utils/index.d.ts +0 -32
  577. package/dist/utils/index.js +0 -927
  578. package/dist/utils/index.js.map +0 -1
  579. package/dist/utils/json-schema.js +0 -228
  580. package/dist/utils/json-schema.js.map +0 -1
  581. package/dist/utils/random-id.js +0 -68
  582. package/dist/utils/random-id.js.map +0 -1
  583. package/dist/utils/requests.js +0 -91
  584. package/dist/utils/requests.js.map +0 -1
  585. package/dist/utils/types.d.ts +0 -20
  586. package/dist/utils/types.js +0 -19
  587. package/dist/utils/types.js.map +0 -1
  588. package/jest.config.js +0 -5
  589. package/src/telemetry/scarf-client.ts +0 -39
  590. package/src/telemetry/security-check.ts +0 -0
  591. package/src/utils/json-schema.test.ts +0 -383
  592. package/tsup.config.ts +0 -11
package/CHANGELOG.md DELETED
@@ -1,1817 +0,0 @@
1
- # @copilotkit/shared
2
-
3
- ## 2.0.0-next.1
4
-
5
- ## 1.50.2-next.0
6
-
7
- ## 1.50.1
8
-
9
- ### Patch Changes
10
-
11
- - 80dffec: Updated the default model and API version for the Google GenAI adapter
12
-
13
- ## 1.50.1-next.3
14
-
15
- ## 1.50.1-next.2
16
-
17
- ## 1.50.1-next.1
18
-
19
- ## 1.50.1-next.0
20
-
21
- ### Patch Changes
22
-
23
- - Updated the default model and API version for the Google GenAI adapter
24
-
25
- ## 1.50.0
26
-
27
- ### Minor Changes
28
-
29
- - 0fc76d7: add new runner with telemetry baked in
30
- - c942f9c: Minor fixes and stability improvements
31
- - eed6021: Updating to the latest version of vnext
32
- - 3b7367e: Improving general stability around LangChain
33
- - 7ff9ca7: Minor fixes and improvements
34
- - 974875e: Lint and format code to resolve Prettier errors
35
- - 4942f62: - feat: create rerouting CopilotRuntime
36
- - 3bd484f: Minor fixes and stability improvements
37
- - 5a534bf: fix telemetry in v1.50 runtime
38
- - 769a06c: Refactor suggestions to not always run
39
- - 788292b: Improving langchain dependency resolution
40
- - eab69a2: Enabling the new inspector
41
- - 0a7bfe0: Updating dependency versions across all packages
42
-
43
- ### Patch Changes
44
-
45
- - b0e3652: - chore: Update to latest of vnext
46
-
47
- ## 1.50.0-beta.19
48
-
49
- ### Minor Changes
50
-
51
- - Improving langchain dependency resolution
52
-
53
- ## 1.50.0-beta.18
54
-
55
- ### Minor Changes
56
-
57
- - Improving general stability around LangChain
58
-
59
- ## 1.50.0-beta.17
60
-
61
- ### Minor Changes
62
-
63
- - Minor fixes and improvements
64
-
65
- ## 1.50.0-beta.16
66
-
67
- ### Minor Changes
68
-
69
- - Minor fixes and stability improvements
70
-
71
- ## 1.50.0-beta.15
72
-
73
- ### Minor Changes
74
-
75
- - Lint and format code to resolve Prettier errors
76
-
77
- ## 1.50.0-beta.14
78
-
79
- ### Minor Changes
80
-
81
- - Minor fixes and stability improvements
82
-
83
- ## 1.50.0-beta.13
84
-
85
- ### Minor Changes
86
-
87
- - Updating to the latest version of vnext
88
-
89
- ## 1.50.0-beta.12
90
-
91
- ### Minor Changes
92
-
93
- - eab69a2: Enabling the new inspector
94
-
95
- ## 1.50.0-beta.11
96
-
97
- ### Minor Changes
98
-
99
- - fix telemetry in v1.50 runtime
100
-
101
- ## 1.50.0-beta.10
102
-
103
- ### Minor Changes
104
-
105
- - add new runner with telemetry baked in
106
-
107
- ## 1.50.0-beta.9
108
-
109
- ### Minor Changes
110
-
111
- - Refactor suggestions to not always run
112
-
113
- ## 1.50.0-beta.8
114
-
115
- ## 1.50.0-beta.7
116
-
117
- ## 1.50.0-beta.6
118
-
119
- ### Minor Changes
120
-
121
- - Updating dependency versions across all packages
122
-
123
- ## 1.50.0-beta.4
124
-
125
- ### Minor Changes
126
-
127
- - 4942f62: - feat: create rerouting CopilotRuntime
128
-
129
- ### Patch Changes
130
-
131
- - b0e3652: - chore: Update to latest of vnext
132
-
133
- ## 1.10.7-next.0
134
-
135
- ## 1.10.6
136
-
137
- ### Patch Changes
138
-
139
- - e0dd5d5: - feat: allow additional config in direct to llm actions
140
-
141
- ## 1.10.6-next.6
142
-
143
- ## 1.10.6-next.5
144
-
145
- ### Patch Changes
146
-
147
- - e0dd5d5: - feat: allow additional config in direct to llm actions
148
-
149
- ## 1.10.6-next.4
150
-
151
- ## 1.10.6-next.3
152
-
153
- ## 1.10.6-next.2
154
-
155
- ## 1.10.6-next.1
156
-
157
- ## 1.10.6-next.0
158
-
159
- ## 1.10.5
160
-
161
- ## 1.10.5-next.10
162
-
163
- ## 1.10.5-next.9
164
-
165
- ## 1.10.5-next.8
166
-
167
- ## 1.10.5-next.7
168
-
169
- ## 1.10.5-next.6
170
-
171
- ## 1.10.5-next.5
172
-
173
- ## 1.10.5-next.4
174
-
175
- ## 1.10.5-next.3
176
-
177
- ## 1.10.5-next.2
178
-
179
- ## 1.10.5-next.1
180
-
181
- ## 1.10.5-next.0
182
-
183
- ## 1.10.4
184
-
185
- ### Patch Changes
186
-
187
- - a640d8e: - feat: update latest agui langgraph for subgraphs support
188
- - feat: update latest agui core packages
189
-
190
- ## 1.10.4-next.3
191
-
192
- ## 1.10.4-next.2
193
-
194
- ## 1.10.4-next.1
195
-
196
- ### Patch Changes
197
-
198
- - a640d8e: - feat: update latest agui langgraph for subgraphs support
199
- - feat: update latest agui core packages
200
-
201
- ## 1.10.4-next.0
202
-
203
- ## 1.10.3
204
-
205
- ### Patch Changes
206
-
207
- - ea74047: - fix: surface run errors from agui
208
-
209
- ## 1.10.3-next.3
210
-
211
- ## 1.10.3-next.2
212
-
213
- ## 1.10.3-next.1
214
-
215
- ## 1.10.3-next.0
216
-
217
- ### Patch Changes
218
-
219
- - ea74047: - fix: surface run errors from agui
220
-
221
- ## 1.10.2
222
-
223
- ## 1.10.2-next.0
224
-
225
- ## 1.10.1
226
-
227
- ## 1.10.1-next.2
228
-
229
- ## 1.10.1-next.1
230
-
231
- ## 1.10.1-next.0
232
-
233
- ## 1.10.0
234
-
235
- ### Minor Changes
236
-
237
- - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
238
-
239
- Headless UI has been in a bad state for a bit now. When we added support for different
240
- agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
241
-
242
- As such, the following features have been updated to be completely functional with Headless UI.
243
-
244
- - Generative UI
245
- - Suggestions
246
- - Agentic Generative UI
247
- - Interrupts
248
-
249
- In addition, a variety of QOL changes have been made.
250
-
251
- - New AG-UI based message types
252
- - Inline code rendering is fixed
253
-
254
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
255
-
256
- ### Patch Changes
257
-
258
- - a8c0263: - feat: add event hooks system for chat components
259
- - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
260
-
261
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
262
-
263
- - fix: more fixes addressing breaking changes in new Headless UI
264
-
265
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
266
-
267
- - chore: address linting issues
268
-
269
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
270
-
271
- - chore: fixing branding and docs
272
-
273
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
274
-
275
- - chore: more docs fixing
276
-
277
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
278
-
279
- ## 1.10.0-next.13
280
-
281
- ## 1.10.0-next.12
282
-
283
- ## 1.10.0-next.11
284
-
285
- ## 1.10.0-next.10
286
-
287
- ### Patch Changes
288
-
289
- - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
290
-
291
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
292
-
293
- - fix: more fixes addressing breaking changes in new Headless UI
294
-
295
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
296
-
297
- - chore: address linting issues
298
-
299
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
300
-
301
- - chore: fixing branding and docs
302
-
303
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
304
-
305
- - chore: more docs fixing
306
-
307
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
308
-
309
- ## 1.10.0-next.9
310
-
311
- ## 1.10.0-next.8
312
-
313
- ## 1.10.0-next.7
314
-
315
- ## 1.10.0-next.6
316
-
317
- ## 1.10.0-next.5
318
-
319
- ### Patch Changes
320
-
321
- - a8c0263: - feat: add event hooks system for chat components
322
-
323
- ## 1.10.0-next.4
324
-
325
- ## 1.10.0-next.3
326
-
327
- ## 1.10.0-next.2
328
-
329
- ## 1.10.0-next.1
330
-
331
- ## 1.10.0-next.0
332
-
333
- ### Minor Changes
334
-
335
- - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
336
-
337
- Headless UI has been in a bad state for a bit now. When we added support for different
338
- agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
339
-
340
- As such, the following features have been updated to be completely functional with Headless UI.
341
-
342
- - Generative UI
343
- - Suggestions
344
- - Agentic Generative UI
345
- - Interrupts
346
-
347
- In addition, a variety of QOL changes have been made.
348
-
349
- - New AG-UI based message types
350
- - Inline code rendering is fixed
351
-
352
- Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
353
-
354
- ## 1.9.3
355
-
356
- ### Patch Changes
357
-
358
- - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
359
-
360
- ## 1.9.3-next.4
361
-
362
- ## 1.9.3-next.3
363
-
364
- ### Patch Changes
365
-
366
- - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
367
-
368
- ## 1.9.3-next.2
369
-
370
- ## 1.9.3-next.1
371
-
372
- ## 1.9.3-next.0
373
-
374
- ## 1.9.2
375
-
376
- ### Patch Changes
377
-
378
- - fac89c2: - refactor: rename onTrace to onError throughout codebase
379
-
380
- - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
381
-
382
- - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
383
- - 1d1c51d: - feat: surface all errors in structured format
384
- - 10345a5: - feat: structured error visibility system for streaming errors
385
- - 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
386
- - fix: extract publicApiKey for all requests + trace GraphQL errors
387
-
388
- ## 1.9.2-next.26
389
-
390
- ## 1.9.2-next.25
391
-
392
- ## 1.9.2-next.24
393
-
394
- ## 1.9.2-next.23
395
-
396
- ## 1.9.2-next.22
397
-
398
- ## 1.9.2-next.21
399
-
400
- ## 1.9.2-next.20
401
-
402
- ## 1.9.2-next.19
403
-
404
- ## 1.9.2-next.18
405
-
406
- ### Patch Changes
407
-
408
- - fac89c2: - refactor: rename onTrace to onError throughout codebase
409
-
410
- - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
411
-
412
- ## 1.9.2-next.17
413
-
414
- ## 1.9.2-next.16
415
-
416
- ## 1.9.2-next.15
417
-
418
- ## 1.9.2-next.14
419
-
420
- ## 1.9.2-next.13
421
-
422
- ## 1.9.2-next.12
423
-
424
- ## 1.9.2-next.11
425
-
426
- ## 1.9.2-next.10
427
-
428
- ## 1.9.2-next.9
429
-
430
- ### Patch Changes
431
-
432
- - 1d1c51d: - feat: surface all errors in structured format
433
-
434
- ## 1.9.2-next.8
435
-
436
- ## 1.9.2-next.7
437
-
438
- ## 1.9.2-next.6
439
-
440
- ## 1.9.2-next.5
441
-
442
- ## 1.9.2-next.4
443
-
444
- ### Patch Changes
445
-
446
- - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
447
- - 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
448
- - fix: extract publicApiKey for all requests + trace GraphQL errors
449
-
450
- ## 1.9.2-next.3
451
-
452
- ## 1.9.2-next.2
453
-
454
- ## 1.9.2-next.1
455
-
456
- ## 1.9.2-next.0
457
-
458
- ### Patch Changes
459
-
460
- - 10345a5: - feat: structured error visibility system for streaming errors
461
-
462
- ## 1.9.1
463
-
464
- ### Patch Changes
465
-
466
- - deaeca0: - feat: Add public key
467
-
468
- Signed-off-by: Luis Valdes <luis@copilotkit.ai>
469
-
470
- ## 1.9.1-next.0
471
-
472
- ### Patch Changes
473
-
474
- - deaeca0: - feat: Add public key
475
-
476
- Signed-off-by: Luis Valdes <luis@copilotkit.ai>
477
-
478
- ## 1.9.0
479
-
480
- ## 1.9.0-next.2
481
-
482
- ## 1.8.15-next.1
483
-
484
- ## 1.8.15-next.0
485
-
486
- ## 1.8.14
487
-
488
- ### Patch Changes
489
-
490
- - 34a78d8: - jsonSchemaToActionParameters implementation
491
-
492
- ## 1.8.14-next.5
493
-
494
- ## 1.8.14-next.4
495
-
496
- ## 1.8.14-next.3
497
-
498
- ## 1.8.14-next.2
499
-
500
- ## 1.8.14-next.1
501
-
502
- ### Patch Changes
503
-
504
- - 34a78d8: - jsonSchemaToActionParameters implementation
505
-
506
- ## 1.8.14-next.0
507
-
508
- ## 1.8.13
509
-
510
- ## 1.8.13-next.3
511
-
512
- ## 1.8.13-next.2
513
-
514
- ## 1.8.13-next.1
515
-
516
- ## 1.8.13-next.0
517
-
518
- ## 1.8.12
519
-
520
- ## 1.8.12-next.6
521
-
522
- ## 1.8.12-next.5
523
-
524
- ## 1.8.12-next.4
525
-
526
- ## 1.8.12-next.3
527
-
528
- ## 1.8.12-next.2
529
-
530
- ## 1.8.12-next.1
531
-
532
- ## 1.8.12-next.0
533
-
534
- ## 1.8.11
535
-
536
- ## 1.8.11-next.1
537
-
538
- ## 1.8.11-next.0
539
-
540
- ## 1.8.10
541
-
542
- ## 1.8.10-next.3
543
-
544
- ## 1.8.10-next.2
545
-
546
- ## 1.8.10-next.1
547
-
548
- ## 1.8.10-next.0
549
-
550
- ## 1.8.9
551
-
552
- ## 1.8.9-next.0
553
-
554
- ## 1.8.8
555
-
556
- ## 1.8.8-next.1
557
-
558
- ## 1.8.8-next.0
559
-
560
- ## 1.8.7
561
-
562
- ## 1.8.7-next.0
563
-
564
- ## 1.8.6
565
-
566
- ## 1.8.6-next.0
567
-
568
- ## 1.8.5
569
-
570
- ## 1.8.5-next.5
571
-
572
- ## 1.8.5-next.4
573
-
574
- ## 1.8.5-next.3
575
-
576
- ## 1.8.5-next.2
577
-
578
- ## 1.8.5-next.1
579
-
580
- ## 1.8.5-next.0
581
-
582
- ## 1.8.4
583
-
584
- ### Patch Changes
585
-
586
- - f363760: - fix: when unable to find specified agent, show what's available
587
-
588
- ## 1.8.4-next.4
589
-
590
- ## 1.8.4-next.3
591
-
592
- ## 1.8.4-next.2
593
-
594
- ## 1.8.4-next.1
595
-
596
- ### Patch Changes
597
-
598
- - f363760: - fix: when unable to find specified agent, show what's available
599
-
600
- ## 1.8.4-next.0
601
-
602
- ## 1.8.3
603
-
604
- ## 1.8.3-next.0
605
-
606
- ## 1.8.2-next.3
607
-
608
- ## 1.8.2-next.2
609
-
610
- ## 1.8.2-next.1
611
-
612
- ## 1.8.2-next.0
613
-
614
- ## 1.8.1
615
-
616
- ## 1.8.1-next.1
617
-
618
- ## 1.8.1-next.0
619
-
620
- ## 1.8.0
621
-
622
- ## 1.8.0-next.8
623
-
624
- ## 1.8.0-next.7
625
-
626
- ## 1.8.0-next.6
627
-
628
- ## 1.8.0-next.5
629
-
630
- ## 1.8.0-next.4
631
-
632
- ## 1.8.0-next.3
633
-
634
- ## 1.7.2-next.2
635
-
636
- ## 1.7.2-next.1
637
-
638
- ## 1.7.2-next.0
639
-
640
- ## 1.7.1
641
-
642
- ## 1.7.1-next.0
643
-
644
- ## 1.7.0
645
-
646
- ## 1.7.0-next.1
647
-
648
- ## 1.7.0-next.0
649
-
650
- ## 1.6.0
651
-
652
- ### Patch Changes
653
-
654
- - 090203d: - fix: use tryMap method to filter out possibly invalid items
655
-
656
- ## 1.6.0-next.12
657
-
658
- ## 1.6.0-next.11
659
-
660
- ## 1.6.0-next.10
661
-
662
- ## 1.6.0-next.9
663
-
664
- ## 1.6.0-next.8
665
-
666
- ## 1.6.0-next.7
667
-
668
- ## 1.6.0-next.6
669
-
670
- ## 1.6.0-next.5
671
-
672
- ### Patch Changes
673
-
674
- - 090203d: - fix: use tryMap method to filter out possibly invalid items
675
-
676
- ## 1.6.0-next.4
677
-
678
- ## 1.6.0-next.3
679
-
680
- ## 1.6.0-next.2
681
-
682
- ## 1.6.0-next.1
683
-
684
- ## 1.6.0-next.0
685
-
686
- ## 1.5.20
687
-
688
- ### Patch Changes
689
-
690
- - 51f0d66: - fix(errors): fix internal usage of error resolver
691
-
692
- ## 1.5.20-next.0
693
-
694
- ### Patch Changes
695
-
696
- - 51f0d66: - fix(errors): fix internal usage of error resolver
697
-
698
- ## 1.5.19
699
-
700
- ### Patch Changes
701
-
702
- - 0dd1ab9: - fix(errors): allow non copilotkit errors to pass to consumer app error boundary
703
-
704
- ## 1.5.19-next.1
705
-
706
- ### Patch Changes
707
-
708
- - 0dd1ab9: - fix(errors): allow non copilotkit errors to pass to consumer app error boundary
709
-
710
- ## 1.5.19-next.0
711
-
712
- ## 1.5.18
713
-
714
- ### Patch Changes
715
-
716
- - d47cd26: - fix: detect and alert on version mismatch
717
- - f77a7b9: - fix: use warning when version mismatch is not expected to error out
718
- - 38d3ac2: - fix: add additional info the our error messages
719
-
720
- ## 1.5.18-next.3
721
-
722
- ### Patch Changes
723
-
724
- - f77a7b9: - fix: use warning when version mismatch is not expected to error out
725
-
726
- ## 1.5.18-next.2
727
-
728
- ### Patch Changes
729
-
730
- - 38d3ac2: - fix: add additional info the our error messages
731
-
732
- ## 1.5.18-next.1
733
-
734
- ## 1.5.18-next.0
735
-
736
- ### Patch Changes
737
-
738
- - d47cd26: - fix: detect and alert on version mismatch
739
-
740
- ## 1.5.17
741
-
742
- ### Patch Changes
743
-
744
- - 1fc3902: - Revert "fix: detect and alert on version mismatch (#1333)"
745
-
746
- This reverts commit 48b7c7b1bd48ced82ffb9a00d6eddc1f7581e0c1.
747
-
748
- ## 1.5.17-next.0
749
-
750
- ### Patch Changes
751
-
752
- - 1fc3902: - Revert "fix: detect and alert on version mismatch (#1333)"
753
-
754
- This reverts commit 48b7c7b1bd48ced82ffb9a00d6eddc1f7581e0c1.
755
-
756
- ## 1.5.16
757
-
758
- ### Patch Changes
759
-
760
- - 48b7c7b: - fix: detect and alert on version mismatch
761
-
762
- ## 1.5.16-next.2
763
-
764
- ## 1.5.16-next.1
765
-
766
- ### Patch Changes
767
-
768
- - 48b7c7b: - fix: detect and alert on version mismatch
769
-
770
- ## 1.5.16-next.0
771
-
772
- ## 1.5.15
773
-
774
- ### Patch Changes
775
-
776
- - 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
777
- - chore(interrupt): add e2e test to interrupt functionality
778
- - feat(interrupt): add support for multiple interrupts and conditions
779
-
780
- ## 1.5.15-next.8
781
-
782
- ## 1.5.15-next.7
783
-
784
- ## 1.5.15-next.6
785
-
786
- ## 1.5.15-next.5
787
-
788
- ## 1.5.15-next.4
789
-
790
- ### Patch Changes
791
-
792
- - 7b3141d: - feat(interrupt): support LG interrupt with useLangGraphInterrupt hook
793
- - chore(interrupt): add e2e test to interrupt functionality
794
- - feat(interrupt): add support for multiple interrupts and conditions
795
-
796
- ## 1.5.15-next.3
797
-
798
- ## 1.5.15-next.2
799
-
800
- ## 1.5.15-next.1
801
-
802
- ## 1.5.15-next.0
803
-
804
- ## 1.5.14
805
-
806
- ### Patch Changes
807
-
808
- - 0061f65: - feat: allows dev mode for cloud onboarding flow
809
-
810
- ## 1.5.14-next.0
811
-
812
- ### Patch Changes
813
-
814
- - 0061f65: - feat: allows dev mode for cloud onboarding flow
815
-
816
- ## 1.5.13
817
-
818
- ## 1.5.13-next.0
819
-
820
- ## 1.5.12
821
-
822
- ### Patch Changes
823
-
824
- - 6136a57: - fix(errors): add custom error classes to better describe library errors
825
- - fix(errors): use new errors in error handling
826
- - chore: add documentation and links to respective errors
827
-
828
- ## 1.5.12-next.7
829
-
830
- ## 1.5.12-next.6
831
-
832
- ### Patch Changes
833
-
834
- - 6136a57: - fix(errors): add custom error classes to better describe library errors
835
- - fix(errors): use new errors in error handling
836
- - chore: add documentation and links to respective errors
837
-
838
- ## 1.5.12-next.5
839
-
840
- ## 1.5.12-next.4
841
-
842
- ## 1.5.12-next.3
843
-
844
- ## 1.5.12-next.2
845
-
846
- ## 1.5.12-next.1
847
-
848
- ## 1.5.12-next.0
849
-
850
- ## 1.5.11
851
-
852
- ## 1.5.11-next.0
853
-
854
- ## 1.5.10
855
-
856
- ## 1.5.10-next.0
857
-
858
- ## 1.5.9
859
-
860
- ## 1.5.8
861
-
862
- ## 1.5.6-next.0
863
-
864
- ## 1.5.5-next.5
865
-
866
- ## 1.5.5-next.3
867
-
868
- ## 1.5.5-next.2
869
-
870
- ## 1.5.4
871
-
872
- ## 1.5.3
873
-
874
- ## 1.5.2
875
-
876
- ## 1.5.1
877
-
878
- ### Patch Changes
879
-
880
- - 5c01e9e: test prerelease #4
881
- - da280ed: Test prerelease script
882
- - 27e42d7: testing a prerelease
883
- - 05240a9: test pre #2
884
- - 33218fe: test prerelease #3
885
- - 03f3d6f: Test next prerelease
886
-
887
- ## 1.5.1-next.3
888
-
889
- ### Patch Changes
890
-
891
- - 33218fe: test prerelease #3
892
-
893
- ## 1.5.1-next.2
894
-
895
- ### Patch Changes
896
-
897
- - da280ed: Test prerelease script
898
-
899
- ## 1.5.1-next.1
900
-
901
- ### Patch Changes
902
-
903
- - 03f3d6f: Test next prerelease
904
-
905
- ## 1.5.1-next.0
906
-
907
- ### Patch Changes
908
-
909
- - 27e42d7: testing a prerelease
910
-
911
- ## 1.5.0
912
-
913
- ### Minor Changes
914
-
915
- - 1b47092: Synchronize LangGraph messages with CopilotKit
916
-
917
- ### Patch Changes
918
-
919
- - 1b47092: CoAgents v0.3 prerelease
920
-
921
- ## 1.5.0-coagents-v0-3.0
922
-
923
- ### Minor Changes
924
-
925
- - Synchronize LangGraph messages with CopilotKit
926
-
927
- ### Patch Changes
928
-
929
- - e66bce4: CoAgents v0.3 prerelease
930
-
931
- ## 1.4.8
932
-
933
- ### Patch Changes
934
-
935
- - - Better error handling
936
- - Introduce new "EmptyLLMAdapter" for when using CoAgents
937
- - Improve dev console help options
938
- - Allow CopilotKit remote endpoint without agents
939
-
940
- ## 1.4.8-next.0
941
-
942
- ## 1.4.7
943
-
944
- ### Patch Changes
945
-
946
- - Fix broken build script before release
947
-
948
- ## 1.4.6
949
-
950
- ### Patch Changes
951
-
952
- - .
953
-
954
- ## 1.4.5
955
-
956
- ### Patch Changes
957
-
958
- - testing release workflow
959
-
960
- ## 1.4.5-next.0
961
-
962
- ### Patch Changes
963
-
964
- - testing release workflow
965
-
966
- ## 1.4.4
967
-
968
- ## 1.4.4-next.4
969
-
970
- ## 1.4.4-next.3
971
-
972
- ## 1.4.4-next.2
973
-
974
- ## 1.4.4-next.1
975
-
976
- ## 1.4.4-next.0
977
-
978
- ## 1.4.3
979
-
980
- ### Patch Changes
981
-
982
- - c296282: - Better error surfacing when using LangGraph Platform streaming
983
- - Ensure state is immediately set without using flushSync
984
- - - Better error surfacing when using LangGraph Platform streaming
985
- - Ensure state is immediately set without using flushSync
986
-
987
- ## 1.4.3-pre.0
988
-
989
- ### Patch Changes
990
-
991
- - - Better error surfacing when using LangGraph Platform streaming
992
- - Ensure state is immediately set without using flushSync
993
-
994
- ## 1.4.2
995
-
996
- ### Patch Changes
997
-
998
- - - Make sure agent state is set immediately (#1077)
999
- - Support running an agent without messages (#1075)
1000
-
1001
- ## 1.4.1
1002
-
1003
- ### Patch Changes
1004
-
1005
- - 1721cbd: lower case copilotkit property
1006
- - 1721cbd: add zod conversion
1007
- - 8d0144f: bump
1008
- - 8d0144f: bump
1009
- - 8d0144f: bump
1010
- - e16d95e: New prerelease
1011
- - 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
1012
- - CopilotKit Core:
1013
-
1014
- - Improved error messages and overall logs
1015
- - `useCopilotAction.renderAndAwait` renamed to `.renderAndAwaitForResponse` (backwards compatible, will be deprecated in the future)
1016
- - Improved scrolling behavior. It is now possible to scroll up during LLM response generation
1017
- - Added Azure OpenAI integration
1018
- - Updated interfaces for better developer ergonomics
1019
-
1020
- CoAgents:
1021
-
1022
- - Renamed `remoteActions` to `remoteEndpoints` (backwards compatible, will be deprecated in the future)
1023
- - Support for LangGraph Platform in Remote Endpoints
1024
- - LangGraph JS Support for CoAgents (locally via `langgraph dev`, `langgraph up` or deployed to LangGraph Platform)
1025
- - Improved LangSmith integration - requests made through CoAgents will now surface in LangSmith
1026
- - Enhanced state management and message handling
1027
-
1028
- CopilotKid Back-end SDK:
1029
-
1030
- - Released a whole-new `@copilotkit/sdk-js` for building agents with LangGraph JS Support
1031
-
1032
- - 8d0144f: bump
1033
- - 8d0144f: bump
1034
- - fef1b74: fix assistant message CSS and propagate actions to LG JS
1035
-
1036
- ## 1.4.1-pre.6
1037
-
1038
- ### Patch Changes
1039
-
1040
- - 1721cbd: lower case copilotkit property
1041
- - 1721cbd: add zod conversion
1042
- - 1721cbd: Add convertActionsToDynamicStructuredTools to sdk-js
1043
- - fix assistant message CSS and propagate actions to LG JS
1044
-
1045
- ## 1.4.1-pre.5
1046
-
1047
- ### Patch Changes
1048
-
1049
- - bump
1050
-
1051
- ## 1.4.1-pre.4
1052
-
1053
- ### Patch Changes
1054
-
1055
- - bump
1056
-
1057
- ## 1.4.1-pre.3
1058
-
1059
- ### Patch Changes
1060
-
1061
- - bump
1062
-
1063
- ## 1.4.1-pre.2
1064
-
1065
- ### Patch Changes
1066
-
1067
- - bump
1068
-
1069
- ## 1.4.1-pre.1
1070
-
1071
- ### Patch Changes
1072
-
1073
- - bump
1074
-
1075
- ## 1.4.1-pre.0
1076
-
1077
- ### Patch Changes
1078
-
1079
- - New prerelease
1080
-
1081
- ## 1.4.0
1082
-
1083
- ### Minor Changes
1084
-
1085
- CopilotKit Core:
1086
-
1087
- - Improved error messages and overall logs
1088
- - `useCopilotAction.renderAndAwait` renamed to `.renderAndAwaitForResponse` (backwards compatible, will be deprecated in the future)
1089
- - Improved scrolling behavior. It is now possible to scroll up during LLM response generation
1090
- - Added Azure OpenAI integration
1091
- - Updated interfaces for better developer ergonomics
1092
-
1093
- CoAgents:
1094
-
1095
- - Renamed `remoteActions` to `remoteEndpoints` (backwards compatible, will be deprecated in the future)
1096
- - Support for LangGraph Platform in Remote Endpoints
1097
- - LangGraph JS Support for CoAgents (locally via `langgraph dev`, `langgraph up` or deployed to LangGraph Platform)
1098
- - Improved LangSmith integration - requests made through CoAgents will now surface in LangSmith
1099
- - Enhanced state management and message handling
1100
-
1101
- CopilotKid Back-end SDK:
1102
-
1103
- - Released a whole-new `@copilotkit/sdk-js` for building agents with LangGraph JS Support
1104
-
1105
- ### Patch Changes
1106
-
1107
- - f6fab28: update tsup config
1108
- - f6fab28: update entry
1109
- - f6fab28: export langchain module
1110
- - 8a77944: Improve LangSmith support
1111
- - f6fab28: Ensure intermediate state config is sent as snake case
1112
- - f6fab28: update entry in tsup config
1113
- - 8a77944: Ensure the last message is sent to LangSmith
1114
- - a5efccd: Revert rxjs changes
1115
- - f6fab28: update entry
1116
- - f6fab28: Update exports
1117
- - f6fab28: Update exports
1118
- - 332d744: Add support for Azure OpenAI
1119
- - f6fab28: Export LangGraph functions
1120
- - f6fab28: Update lockfile
1121
-
1122
- ## 1.3.16-mme-revert-rxjs-changes.10
1123
-
1124
- ### Patch Changes
1125
-
1126
- - f6fab28: update tsup config
1127
- - f6fab28: update entry
1128
- - f6fab28: export langchain module
1129
- - 8a77944: Improve LangSmith support
1130
- - f6fab28: Ensure intermediate state config is sent as snake case
1131
- - f6fab28: update entry in tsup config
1132
- - 8a77944: Ensure the last message is sent to LangSmith
1133
- - Revert rxjs changes
1134
- - f6fab28: update entry
1135
- - f6fab28: Update exports
1136
- - f6fab28: Update exports
1137
- - 332d744: Add support for Azure OpenAI
1138
- - f6fab28: Export LangGraph functions
1139
- - f6fab28: Update lockfile
1140
-
1141
- ## 1.3.15
1142
-
1143
- ### Patch Changes
1144
-
1145
- - pass description for array and object action parameters in langchain adapter
1146
-
1147
- ## 1.3.14
1148
-
1149
- ### Patch Changes
1150
-
1151
- - Add data-test-id to some elements for testing
1152
-
1153
- ## 1.3.13
1154
-
1155
- ### Patch Changes
1156
-
1157
- - fix usage of one-at-a-time tool when called multiple times
1158
-
1159
- ## 1.3.12
1160
-
1161
- ### Patch Changes
1162
-
1163
- - - enable dynamic parameters in langchain adapter tool call
1164
- - fix unparsable action arguments causing tool call crashes
1165
-
1166
- ## 1.3.11
1167
-
1168
- ### Patch Changes
1169
-
1170
- - 08e8956: Fix duplicate messages
1171
- - Fix duplicate messages
1172
-
1173
- ## 1.3.11-mme-fix-duplicate-messages.0
1174
-
1175
- ### Patch Changes
1176
-
1177
- - Fix duplicate messages
1178
-
1179
- ## 1.3.10
1180
-
1181
- ### Patch Changes
1182
-
1183
- - change how message chunk type is resolved (fixed langchain adapters)
1184
-
1185
- ## 1.3.9
1186
-
1187
- ### Patch Changes
1188
-
1189
- - Fix message id issues
1190
-
1191
- ## 1.3.8
1192
-
1193
- ### Patch Changes
1194
-
1195
- - fix textarea on multiple llm providers and memoize react ui context
1196
-
1197
- ## 1.3.7
1198
-
1199
- ### Patch Changes
1200
-
1201
- - Fix libraries for React 19 and Next.js 15 support
1202
-
1203
- ## 1.3.6
1204
-
1205
- ### Patch Changes
1206
-
1207
- - 1. Removes the usage of the `crypto` Node pacakge, instaed uses `uuid`. This ensures that non-Next.js React apps can use CopilotKit.
1208
- 2. Fixes Nest.js runtime docs
1209
-
1210
- ## 1.3.5
1211
-
1212
- ### Patch Changes
1213
-
1214
- - Improve CoAgent state render
1215
-
1216
- ## 1.3.4
1217
-
1218
- ### Patch Changes
1219
-
1220
- - Add followUp property to useCopilotAction
1221
-
1222
- ## 1.3.3
1223
-
1224
- ### Patch Changes
1225
-
1226
- - Impvovements to error handling and CoAgent protocol
1227
-
1228
- ## 1.3.2
1229
-
1230
- ### Patch Changes
1231
-
1232
- - Features and bug fixes
1233
- - 30232c0: Ensure actions can be discovered on state change
1234
-
1235
- ## 1.3.2-mme-discover-actions.0
1236
-
1237
- ### Patch Changes
1238
-
1239
- - Ensure actions can be discovered on state change
1240
-
1241
- ## 1.3.1
1242
-
1243
- ### Patch Changes
1244
-
1245
- - Revert CSS injection
1246
-
1247
- ## 1.3.0
1248
-
1249
- ### Minor Changes
1250
-
1251
- - CoAgents and remote actions
1252
-
1253
- ### Patch Changes
1254
-
1255
- - 5b63f55: stream intermediate state
1256
- - b6fd3d8: Better message grouping
1257
- - 89420c6: Rename hooks and bugfixes
1258
- - b6e8824: useCoAgent/useCoAgentAction
1259
- - 91c35b9: useAgentState
1260
- - 00be203: Remote actions preview
1261
- - fb15f72: Reduce request size by skipping intermediate state
1262
- - 8ecc3e4: Fix useCoAgent start/stop bug
1263
-
1264
- ## 1.2.1
1265
-
1266
- ### Patch Changes
1267
-
1268
- - inject minified css in bundle
1269
-
1270
- - removes the need to import `styles.css` manually
1271
- - empty `styles.css` included in the build for backwards compatibility
1272
- - uses tsup's `injectStyles` with `postcss` to bundle and minify the CSS, then inject it as a style tag
1273
- - currently uses my fork of `tsup` where I added support for async function in `injectStyles` (must-have for postcss), a PR from my fork to the main library will follow shortly
1274
- - remove material-ui, and use `react-icons` for icons (same icons as before)
1275
- - remove unused `IncludedFilesPreview` component
1276
- - updated docs
1277
-
1278
- ## 1.2.0
1279
-
1280
- ### Minor Changes
1281
-
1282
- - Fix errors related to crypto not being found, and other bug fixes
1283
-
1284
- ### Patch Changes
1285
-
1286
- - 638d51d: appendMessage fix 1
1287
- - faccbe1: state-abuse resistance for useCopilotChat
1288
- - b0cf700: remove unnecessary logging
1289
-
1290
- ## 1.1.2
1291
-
1292
- ### Patch Changes
1293
-
1294
- - Pin headless-ui/react version to v2.1.1
1295
-
1296
- ## 1.1.1
1297
-
1298
- ### Patch Changes
1299
-
1300
- - - improved documentation
1301
- - center textarea popup
1302
- - show/hide dev console
1303
- - forward maxTokens, stop and force function calling
1304
-
1305
- ## 1.1.0
1306
-
1307
- ### Minor Changes
1308
-
1309
- - Official support for Groq (`GroqAdapter`)
1310
-
1311
- ## 1.0.9
1312
-
1313
- ### Patch Changes
1314
-
1315
- - Dev console, bugfixes
1316
-
1317
- ## 1.0.8
1318
-
1319
- ### Patch Changes
1320
-
1321
- - Remove redundant console logs
1322
-
1323
- ## 1.0.7
1324
-
1325
- ### Patch Changes
1326
-
1327
- - Add \_copilotkit internal properties to runtime
1328
-
1329
- ## 1.0.6
1330
-
1331
- ### Patch Changes
1332
-
1333
- - - Proactively prevent race conditions
1334
- - Improve token counting performance
1335
-
1336
- ## 1.0.5
1337
-
1338
- ### Patch Changes
1339
-
1340
- - Include @copilotkit/runtime-client-gql NPM package version in request to Runtime
1341
-
1342
- ## 1.0.4
1343
-
1344
- ### Patch Changes
1345
-
1346
- - Remove nanoid
1347
-
1348
- ## 1.0.3
1349
-
1350
- ### Patch Changes
1351
-
1352
- - Add README.md to published packages and add keywords to package.json
1353
-
1354
- ## 1.0.2
1355
-
1356
- ### Patch Changes
1357
-
1358
- - Add README.md and homepage/url to published packages
1359
-
1360
- ## 1.0.1
1361
-
1362
- ### Patch Changes
1363
-
1364
- - Remove PostHog, use Segment Anonymous Telemetry instead
1365
-
1366
- ## 1.0.0
1367
-
1368
- ### Major Changes
1369
-
1370
- - b6a4b6eb: V1.0 Release Candidate
1371
-
1372
- - A robust new protocol between the frontend and the Copilot Runtime
1373
- - Support for Copilot Cloud
1374
- - Generative UI
1375
- - Support for LangChain universal tool calling
1376
- - OpenAI assistant API streaming
1377
-
1378
- - V1.0 Release
1379
-
1380
- - A robust new protocol between the frontend and the Copilot Runtime
1381
- - Support for Copilot Cloud
1382
- - Generative UI
1383
- - Support for LangChain universal tool calling
1384
- - OpenAI assistant API streaming
1385
-
1386
- ### Patch Changes
1387
-
1388
- - b6a4b6eb: Introduce anonymous telemetry
1389
- - b6a4b6eb: Set default Copilot Cloud runtime URL to versioned URL (v1)
1390
-
1391
- ## 1.0.0-beta.2
1392
-
1393
- ### Patch Changes
1394
-
1395
- - Set default Copilot Cloud runtime URL to versioned URL (v1)
1396
-
1397
- ## 1.0.0-beta.1
1398
-
1399
- ### Patch Changes
1400
-
1401
- - Introduce anonymous telemetry
1402
-
1403
- ## 1.0.0-beta.0
1404
-
1405
- ### Major Changes
1406
-
1407
- - V1.0 Release Candidate
1408
-
1409
- - A robust new protocol between the frontend and the Copilot Runtime
1410
- - Support for Copilot Cloud
1411
- - Generative UI
1412
- - Support for LangChain universal tool calling
1413
- - OpenAI assistant API streaming
1414
-
1415
- ## 0.37.0
1416
-
1417
- ### Minor Changes
1418
-
1419
- - f771353: Fix: Stale CopilotReadable
1420
- - 9df8d43: Remove unneeded tailwind components
1421
- - CSS improvements, useCopilotChat, invisible messages
1422
-
1423
- ## 0.37.0-mme-fix-textarea-css.1
1424
-
1425
- ### Minor Changes
1426
-
1427
- - Remove unneeded tailwind components
1428
-
1429
- ## 0.37.0-mme-fix-feedback-readable.0
1430
-
1431
- ### Minor Changes
1432
-
1433
- - Fix: Stale CopilotReadable
1434
-
1435
- ## 0.36.0
1436
-
1437
- ### Minor Changes
1438
-
1439
- - 8baa862: Add push to talk prototype
1440
- - chat suggestions, standalone chat component, gemini adapter, push to talk
1441
-
1442
- ## 0.36.0-mme-push-to-talk.0
1443
-
1444
- ### Minor Changes
1445
-
1446
- - Add push to talk prototype
1447
-
1448
- ## 0.9.0
1449
-
1450
- ### Minor Changes
1451
-
1452
- - 718520b: gpt-4-turbo-april-2024 function calling fixes
1453
- - 95bcbd8: streamline cloud configuration
1454
- - 95bcbd8: Rename
1455
- - 95bcbd8: Upgrade langchain
1456
- - 95bcbd8: Support input guardrails (cloud)
1457
- - 95bcbd8: Unify api key handling
1458
- - CopilotCloud V1, useCopilotReadable and more...
1459
- - 95bcbd8: Get api key from headers dict
1460
- - 95bcbd8: Update comments
1461
- - 95bcbd8: Include reason in guardrails response
1462
- - 718520b: gpt-4-turbo-april-2024
1463
- - 95bcbd8: Update comments
1464
- - 5f6f57a: fix backend function calling return values
1465
- - 95bcbd8: Retrieve public API key
1466
-
1467
- ## 0.9.0-mme-cloud.7
1468
-
1469
- ### Minor Changes
1470
-
1471
- - Get api key from headers dict
1472
-
1473
- ## 0.9.0-mme-cloud.6
1474
-
1475
- ### Minor Changes
1476
-
1477
- - Upgrade langchain
1478
-
1479
- ## 0.9.0-mme-cloud.5
1480
-
1481
- ### Minor Changes
1482
-
1483
- - Update comments
1484
-
1485
- ## 0.9.0-mme-cloud.4
1486
-
1487
- ### Minor Changes
1488
-
1489
- - Update comments
1490
-
1491
- ## 0.9.0-mme-cloud.3
1492
-
1493
- ### Minor Changes
1494
-
1495
- - 85c029b: streamline cloud configuration
1496
- - Rename
1497
- - a5ade3b: Support input guardrails (cloud)
1498
- - 12ff590: Unify api key handling
1499
- - f0c4745: Include reason in guardrails response
1500
- - 17f4b1b: Retrieve public API key
1501
-
1502
- ## 0.9.0-function-calling-fixes.2
1503
-
1504
- ### Minor Changes
1505
-
1506
- - fix backend function calling return values
1507
-
1508
- ## 0.9.0-function-calling-fixes.1
1509
-
1510
- ### Minor Changes
1511
-
1512
- - gpt-4-turbo-april-2024 function calling fixes
1513
-
1514
- ## 0.9.0-alpha.0
1515
-
1516
- ### Minor Changes
1517
-
1518
- - gpt-4-turbo-april-2024
1519
-
1520
- ## 0.8.0
1521
-
1522
- ### Minor Changes
1523
-
1524
- - 1f06d29: declare esm/cjs/types in export
1525
- - fix esm error
1526
- - 5a0b2cf: Inline codeblock style to avoid ESM error
1527
- - e12b921: ESM by default
1528
-
1529
- ## 0.8.0-mme-esm-error.2
1530
-
1531
- ### Minor Changes
1532
-
1533
- - Inline codeblock style to avoid ESM error
1534
-
1535
- ## 0.8.0-mme-esm-error.1
1536
-
1537
- ### Minor Changes
1538
-
1539
- - declare esm/cjs/types in export
1540
-
1541
- ## 0.8.0-mme-esm-error.0
1542
-
1543
- ### Minor Changes
1544
-
1545
- - ESM by default
1546
-
1547
- ## 0.7.0
1548
-
1549
- ### Minor Changes
1550
-
1551
- - 899aa6e: Backend improvements for running on GCP
1552
- - Improve streamHttpServerResponse for express and firebase apps
1553
-
1554
- ## 0.7.0-mme-firebase-fixes.0
1555
-
1556
- ### Minor Changes
1557
-
1558
- - Backend improvements for running on GCP
1559
-
1560
- ## 0.6.0
1561
-
1562
- ### Minor Changes
1563
-
1564
- - Improve Next.js support and action rendering
1565
-
1566
- ## 0.5.0
1567
-
1568
- ### Minor Changes
1569
-
1570
- - c4010e7: Pre Release
1571
- - be00d61: Alpha
1572
- - ec8481c: Alpha
1573
- - 3fbee5d: OpenAIAdapter-getter
1574
- - e09dc44: Test backward compatibility of AnnotatedFunction on the backend
1575
- - 3f5ad60: OpenAIAdapter: make openai instance gettable
1576
- - 0dd6180: QA
1577
- - 225812d: QA new action type
1578
- - New actions: custom chat components, and typed arguments
1579
-
1580
- ## 0.5.0-mme-deprecate-annotated-function.4
1581
-
1582
- ### Minor Changes
1583
-
1584
- - Test backward compatibility of AnnotatedFunction on the backend
1585
-
1586
- ## 0.5.0-mme-pre-release.3
1587
-
1588
- ### Minor Changes
1589
-
1590
- - Pre Release
1591
- - 3fbee5d: OpenAIAdapter-getter
1592
- - 3f5ad60: OpenAIAdapter: make openai instance gettable
1593
-
1594
- ## 0.5.0-mme-function-call-labels.2
1595
-
1596
- ### Minor Changes
1597
-
1598
- - be00d61: Alpha
1599
- - QA
1600
-
1601
- ## 0.5.0-mme-experimental-actions.1
1602
-
1603
- ### Minor Changes
1604
-
1605
- - Alpha
1606
-
1607
- ## 0.5.0-mme-experimental-actions.0
1608
-
1609
- ### Minor Changes
1610
-
1611
- - QA new action type
1612
-
1613
- ## 0.4.1
1614
-
1615
- ### Patch Changes
1616
-
1617
- - 5ec8ad4: fix- bring back removeBackendOnlyProps
1618
- - 5a154d0: fix: bring back removeBackendOnlyProps
1619
- - fix: bring back removeBackendOnlyProps
1620
-
1621
- ## 0.4.1-atai-0223-fix-backendOnlyProps.1
1622
-
1623
- ### Patch Changes
1624
-
1625
- - fix- bring back removeBackendOnlyProps
1626
-
1627
- ## 0.4.1-atai-0223-fix-backendOnlyProps.0
1628
-
1629
- ### Patch Changes
1630
-
1631
- - fix: bring back removeBackendOnlyProps
1632
-
1633
- ## 0.4.0
1634
-
1635
- ### Minor Changes
1636
-
1637
- - CopilotTask, function return values, LangChain support, LangServe support
1638
- - 401e474: Test the tools API
1639
- - 2f3296e: Test automation
1640
-
1641
- ## 0.4.0-beta-automation.1
1642
-
1643
- ### Minor Changes
1644
-
1645
- - Test automation
1646
-
1647
- ## 0.4.0-tools.0
1648
-
1649
- ### Minor Changes
1650
-
1651
- - Test the tools API
1652
-
1653
- ## 0.3.0
1654
-
1655
- ### Minor Changes
1656
-
1657
- - node CopilotBackend support
1658
- - 58a8524: clean node example impl
1659
- - a34a226: node-native backend support
1660
-
1661
- ## 0.3.0-alpha.1
1662
-
1663
- ### Minor Changes
1664
-
1665
- - clean node example impl
1666
-
1667
- ## 0.3.0-alpha.0
1668
-
1669
- ### Minor Changes
1670
-
1671
- - node-native backend support
1672
-
1673
- ## 0.2.0
1674
-
1675
- ### Minor Changes
1676
-
1677
- - eba87c7: .4
1678
- - 61168c7: no treeshake
1679
- - fb32fe3: .2
1680
- - eba87c7: .3
1681
- - new chatbot ui, new component names, new build system, new docs
1682
- - 61168c7: no treeshake take 2
1683
- - 61168c7: remove treeshake in build
1684
- - fb32fe3: build naming refactor
1685
- - eba87c7: .5
1686
- - 61168c7: cache clean
1687
- - fb32fe3: .3
1688
-
1689
- ## 0.2.0-alpha.8
1690
-
1691
- ### Minor Changes
1692
-
1693
- - cache clean
1694
-
1695
- ## 0.2.0-alpha.7
1696
-
1697
- ### Minor Changes
1698
-
1699
- - no treeshake
1700
-
1701
- ## 0.2.0-alpha.6
1702
-
1703
- ### Minor Changes
1704
-
1705
- - no treeshake take 2
1706
-
1707
- ## 0.2.0-alpha.5
1708
-
1709
- ### Minor Changes
1710
-
1711
- - remove treeshake in build
1712
-
1713
- ## 0.2.0-alpha.4
1714
-
1715
- ### Minor Changes
1716
-
1717
- - .5
1718
-
1719
- ## 0.2.0-alpha.3
1720
-
1721
- ### Minor Changes
1722
-
1723
- - .4
1724
-
1725
- ## 0.2.0-alpha.2
1726
-
1727
- ### Minor Changes
1728
-
1729
- - .3
1730
-
1731
- ## 0.2.0-alpha.1
1732
-
1733
- ### Minor Changes
1734
-
1735
- - .2
1736
- - .3
1737
-
1738
- ## 0.2.0-alpha.0
1739
-
1740
- ### Minor Changes
1741
-
1742
- - build naming refactor
1743
-
1744
- ## 0.1.1
1745
-
1746
- ### Patch Changes
1747
-
1748
- - stop generating button working
1749
- - aa6bc5a: fix stop generate
1750
- - cf0bde6: change order of operations on stop cleanup
1751
-
1752
- ## 0.1.1-alpha.1
1753
-
1754
- ### Patch Changes
1755
-
1756
- - change order of operations on stop cleanup
1757
-
1758
- ## 0.1.1-alpha.0
1759
-
1760
- ### Patch Changes
1761
-
1762
- - fix stop generate
1763
-
1764
- ## 0.1.0
1765
-
1766
- ### Minor Changes
1767
-
1768
- - 8a5cecd: only forward functions if non-empty
1769
- - 87f1fa0: rebase
1770
- - 15d4afc: debugging
1771
- - c40a0d1: Filter out empty function descriptions
1772
- - prep for chat protocol v2
1773
- - bbd152e: backend sdks prep
1774
- - 8517bb1: trying again
1775
- - 478840a: carry function propagation fix to chat v2
1776
-
1777
- ## 0.1.0-alpha.6
1778
-
1779
- ### Minor Changes
1780
-
1781
- - rebase
1782
-
1783
- ## 0.1.0-alpha.5
1784
-
1785
- ### Minor Changes
1786
-
1787
- - carry function propagation fix to chat v2
1788
-
1789
- ## 0.1.0-alpha.4
1790
-
1791
- ### Minor Changes
1792
-
1793
- - only forward functions if non-empty
1794
-
1795
- ## 0.1.0-alpha.3
1796
-
1797
- ### Minor Changes
1798
-
1799
- - debugging
1800
-
1801
- ## 0.1.0-alpha.2
1802
-
1803
- ### Minor Changes
1804
-
1805
- - trying again
1806
-
1807
- ## 0.1.0-alpha.1
1808
-
1809
- ### Minor Changes
1810
-
1811
- - Filter out empty function descriptions
1812
-
1813
- ## 0.1.0-alpha.0
1814
-
1815
- ### Minor Changes
1816
-
1817
- - backend sdks prep