@copilotkit/runtime 0.0.0-main-20250416144141 → 0.0.0-main-20250908181442

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 (127) hide show
  1. package/CHANGELOG.md +845 -2
  2. package/README.md +55 -100
  3. package/__snapshots__/schema/schema.graphql +19 -1
  4. package/dist/chunk-AMUJQ6IR.mjs +50 -0
  5. package/dist/chunk-AMUJQ6IR.mjs.map +1 -0
  6. package/dist/{chunk-DNI7KA7Y.mjs → chunk-F7IANE7Z.mjs} +485 -242
  7. package/dist/chunk-F7IANE7Z.mjs.map +1 -0
  8. package/dist/{chunk-H2VC34X7.mjs → chunk-LA4M6IEB.mjs} +2639 -1586
  9. package/dist/chunk-LA4M6IEB.mjs.map +1 -0
  10. package/dist/{chunk-3KFMOJC6.mjs → chunk-NJ4T42LA.mjs} +3 -3
  11. package/dist/chunk-NJ4T42LA.mjs.map +1 -0
  12. package/dist/{chunk-NKMMHPPX.mjs → chunk-P4D63NB5.mjs} +3 -3
  13. package/dist/chunk-P4D63NB5.mjs.map +1 -0
  14. package/dist/{chunk-RTFJTJMA.mjs → chunk-SHBDMA63.mjs} +14 -2
  15. package/dist/chunk-SHBDMA63.mjs.map +1 -0
  16. package/dist/{chunk-5BIEM2UU.mjs → chunk-XWBDEXDA.mjs} +4 -3
  17. package/dist/{chunk-5BIEM2UU.mjs.map → chunk-XWBDEXDA.mjs.map} +1 -1
  18. package/dist/chunk-ZCAQXBIN.mjs +161 -0
  19. package/dist/chunk-ZCAQXBIN.mjs.map +1 -0
  20. package/dist/{chunk-D4R6RNSD.mjs → chunk-ZLQ3IL65.mjs} +4 -4
  21. package/dist/chunk-ZLQ3IL65.mjs.map +1 -0
  22. package/dist/graphql/types/converted/index.d.ts +1 -1
  23. package/dist/graphql/types/converted/index.js +13 -0
  24. package/dist/graphql/types/converted/index.js.map +1 -1
  25. package/dist/graphql/types/converted/index.mjs +3 -1
  26. package/dist/{groq-adapter-fb9aa3ab.d.ts → groq-adapter-4ba7b2f0.d.ts} +21 -1
  27. package/dist/{index-5bec5424.d.ts → index-d4614f9b.d.ts} +17 -2
  28. package/dist/index.d.ts +10 -6
  29. package/dist/index.js +4389 -2884
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +23 -8
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{langserve-6f7af8d3.d.ts → langserve-3f99bf2e.d.ts} +23 -11
  34. package/dist/lib/index.d.ts +183 -6
  35. package/dist/lib/index.js +3452 -2127
  36. package/dist/lib/index.js.map +1 -1
  37. package/dist/lib/index.mjs +18 -8
  38. package/dist/lib/integrations/index.d.ts +5 -5
  39. package/dist/lib/integrations/index.js +301 -84
  40. package/dist/lib/integrations/index.js.map +1 -1
  41. package/dist/lib/integrations/index.mjs +8 -7
  42. package/dist/lib/integrations/nest/index.d.ts +4 -4
  43. package/dist/lib/integrations/nest/index.js +298 -81
  44. package/dist/lib/integrations/nest/index.js.map +1 -1
  45. package/dist/lib/integrations/nest/index.mjs +6 -5
  46. package/dist/lib/integrations/node-express/index.d.ts +4 -4
  47. package/dist/lib/integrations/node-express/index.js +298 -81
  48. package/dist/lib/integrations/node-express/index.js.map +1 -1
  49. package/dist/lib/integrations/node-express/index.mjs +6 -5
  50. package/dist/lib/integrations/node-http/index.d.ts +4 -4
  51. package/dist/lib/integrations/node-http/index.js +297 -80
  52. package/dist/lib/integrations/node-http/index.js.map +1 -1
  53. package/dist/lib/integrations/node-http/index.mjs +5 -4
  54. package/dist/service-adapters/index.d.ts +83 -6
  55. package/dist/service-adapters/index.js +554 -269
  56. package/dist/service-adapters/index.js.map +1 -1
  57. package/dist/service-adapters/index.mjs +8 -2
  58. package/dist/service-adapters/shared/index.d.ts +9 -0
  59. package/dist/service-adapters/shared/index.js +72 -0
  60. package/dist/service-adapters/shared/index.js.map +1 -0
  61. package/dist/service-adapters/shared/index.mjs +8 -0
  62. package/dist/{shared-93687488.d.ts → shared-26958730.d.ts} +63 -18
  63. package/dist/utils/index.d.ts +17 -1
  64. package/dist/utils/index.js +3 -2
  65. package/dist/utils/index.js.map +1 -1
  66. package/dist/utils/index.mjs +1 -1
  67. package/jest.config.js +8 -3
  68. package/package.json +19 -9
  69. package/src/agents/langgraph/event-source.ts +38 -31
  70. package/src/agents/langgraph/events.ts +19 -1
  71. package/src/graphql/inputs/agent-state.input.ts +1 -1
  72. package/src/graphql/inputs/message.input.ts +18 -0
  73. package/src/graphql/resolvers/copilot.resolver.ts +142 -40
  74. package/src/graphql/resolvers/state.resolver.ts +8 -10
  75. package/src/graphql/types/converted/index.ts +15 -1
  76. package/src/graphql/types/copilot-response.type.ts +17 -0
  77. package/src/lib/error-messages.ts +200 -0
  78. package/src/lib/index.ts +1 -0
  79. package/src/lib/integrations/nest/index.ts +1 -4
  80. package/src/lib/integrations/nextjs/app-router.ts +1 -4
  81. package/src/lib/integrations/nextjs/pages-router.ts +1 -4
  82. package/src/lib/integrations/node-express/index.ts +1 -4
  83. package/src/lib/integrations/node-http/index.ts +1 -4
  84. package/src/lib/integrations/shared.ts +43 -0
  85. package/src/lib/runtime/__tests__/copilot-runtime-error.test.ts +169 -0
  86. package/src/lib/runtime/__tests__/mcp-tools-utils.test.ts +464 -0
  87. package/src/lib/runtime/{agentwire-action.ts → agui-action.ts} +63 -21
  88. package/src/lib/runtime/copilot-runtime.ts +516 -96
  89. package/src/lib/runtime/langgraph/langgraph-agent.ts +208 -0
  90. package/src/lib/runtime/mcp-tools-utils.ts +150 -13
  91. package/src/lib/runtime/remote-action-constructors.ts +73 -37
  92. package/src/lib/runtime/remote-actions.ts +14 -4
  93. package/src/lib/runtime/remote-lg-action.ts +281 -99
  94. package/src/lib/runtime/retry-utils.ts +96 -0
  95. package/src/lib/streaming.ts +145 -2
  96. package/src/lib/telemetry-client.ts +11 -2
  97. package/src/service-adapters/anthropic/anthropic-adapter.ts +297 -66
  98. package/src/service-adapters/anthropic/utils.ts +35 -27
  99. package/src/service-adapters/bedrock/bedrock-adapter.ts +65 -0
  100. package/src/service-adapters/conversion.ts +10 -0
  101. package/src/service-adapters/events.ts +122 -24
  102. package/src/service-adapters/google/google-genai-adapter.test.ts +104 -0
  103. package/src/service-adapters/google/google-genai-adapter.ts +24 -1
  104. package/src/service-adapters/groq/groq-adapter.ts +66 -56
  105. package/src/service-adapters/index.ts +2 -0
  106. package/src/service-adapters/openai/openai-adapter.ts +123 -69
  107. package/src/service-adapters/openai/openai-assistant-adapter.ts +11 -1
  108. package/src/service-adapters/openai/utils.ts +12 -0
  109. package/src/service-adapters/shared/error-utils.ts +61 -0
  110. package/src/service-adapters/shared/index.ts +1 -0
  111. package/src/utils/failed-response-status-reasons.ts +23 -1
  112. package/tests/global.d.ts +13 -0
  113. package/tests/service-adapters/anthropic/allowlist-approach.test.ts +226 -0
  114. package/tests/service-adapters/anthropic/anthropic-adapter.test.ts +389 -0
  115. package/tests/service-adapters/openai/allowlist-approach.test.ts +238 -0
  116. package/tests/service-adapters/openai/openai-adapter.test.ts +301 -0
  117. package/tests/setup.jest.ts +21 -0
  118. package/tests/tsconfig.json +10 -0
  119. package/tsconfig.json +1 -1
  120. package/dist/chunk-3KFMOJC6.mjs.map +0 -1
  121. package/dist/chunk-D4R6RNSD.mjs.map +0 -1
  122. package/dist/chunk-DNI7KA7Y.mjs.map +0 -1
  123. package/dist/chunk-H2VC34X7.mjs.map +0 -1
  124. package/dist/chunk-NKMMHPPX.mjs.map +0 -1
  125. package/dist/chunk-Q6JA6YY3.mjs +0 -1
  126. package/dist/chunk-RTFJTJMA.mjs.map +0 -1
  127. /package/dist/{chunk-Q6JA6YY3.mjs.map → service-adapters/shared/index.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,13 +1,856 @@
1
1
  # @copilotkit/runtime
2
2
 
3
- ## 0.0.0-main-20250416144141
3
+ ## 0.0.0-main-20250908181442
4
+
5
+ ### Patch Changes
6
+
7
+ - a640d8e: - feat: update latest agui langgraph for subgraphs support
8
+ - feat: update latest agui core packages
9
+ - Updated dependencies [a640d8e]
10
+ - @copilotkit/shared@0.0.0-main-20250908181442
11
+
12
+ ## 1.10.4-next.3
13
+
14
+ ### Patch Changes
15
+
16
+ - @copilotkit/shared@1.10.4-next.3
17
+
18
+ ## 1.10.4-next.2
19
+
20
+ ### Patch Changes
21
+
22
+ - @copilotkit/shared@1.10.4-next.2
23
+
24
+ ## 1.10.4-next.1
25
+
26
+ ### Patch Changes
27
+
28
+ - a640d8e: - feat: update latest agui langgraph for subgraphs support
29
+ - feat: update latest agui core packages
30
+ - Updated dependencies [a640d8e]
31
+ - @copilotkit/shared@1.10.4-next.1
32
+
33
+ ## 1.10.4-next.0
34
+
35
+ ### Patch Changes
36
+
37
+ - @copilotkit/shared@1.10.4-next.0
38
+
39
+ ## 1.10.3
40
+
41
+ ### Patch Changes
42
+
43
+ - ea74047: - fix: surface run errors from agui
44
+ - a7bb2f0: - fix: fix how node names are read to support newer langgraph versions
45
+ - 21e12af: - feat: send streamSubgraphs forwarded prop to AGUI
46
+ - Updated dependencies [ea74047]
47
+ - @copilotkit/shared@1.10.3
48
+
49
+ ## 1.10.3-next.3
50
+
51
+ ### Patch Changes
52
+
53
+ - 21e12af: - feat: send streamSubgraphs forwarded prop to AGUI
54
+ - @copilotkit/shared@1.10.3-next.3
55
+
56
+ ## 1.10.3-next.2
57
+
58
+ ### Patch Changes
59
+
60
+ - a7bb2f0: - fix: fix how node names are read to support newer langgraph versions
61
+ - @copilotkit/shared@1.10.3-next.2
62
+
63
+ ## 1.10.3-next.1
64
+
65
+ ### Patch Changes
66
+
67
+ - @copilotkit/shared@1.10.3-next.1
68
+
69
+ ## 1.10.3-next.0
70
+
71
+ ### Patch Changes
72
+
73
+ - ea74047: - fix: surface run errors from agui
74
+ - Updated dependencies [ea74047]
75
+ - @copilotkit/shared@1.10.3-next.0
76
+
77
+ ## 1.10.2
78
+
79
+ ### Patch Changes
80
+
81
+ - @copilotkit/shared@1.10.2
82
+
83
+ ## 1.10.2-next.0
84
+
85
+ ### Patch Changes
86
+
87
+ - @copilotkit/shared@1.10.2-next.0
88
+
89
+ ## 1.10.1
90
+
91
+ ### Patch Changes
92
+
93
+ - @copilotkit/shared@1.10.1
94
+
95
+ ## 1.10.1-next.2
96
+
97
+ ### Patch Changes
98
+
99
+ - @copilotkit/shared@1.10.1-next.2
100
+
101
+ ## 1.10.1-next.1
102
+
103
+ ### Patch Changes
104
+
105
+ - @copilotkit/shared@1.10.1-next.1
106
+
107
+ ## 1.10.1-next.0
108
+
109
+ ### Patch Changes
110
+
111
+ - @copilotkit/shared@1.10.1-next.0
112
+
113
+ ## 1.10.0
114
+
115
+ ### Patch Changes
116
+
117
+ - 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties
118
+
119
+ - Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
120
+ - Modified setupRemoteActions to include graphqlContext in the parameters.
121
+
122
+ - 6f2f54b: - fix(openai): update maxTokens parameter to max_completion_tokens in OpenAIAdapter
123
+ - b5b94b9: - fix: throw errors when they happen with agui streams
124
+ - 824fb69: - fix: pass config to the forwarded props of an agui agent
125
+ - 59b0e16: - feat: add native prompt caching support to AnthropicAdapter
126
+ - a31443c: removed unused dependency on ip module
127
+ - dc6df18: - feat: use latest agui langgraph package
128
+ - chore: release python sdk 0.1.58
129
+ - Updated dependencies [a8c0263]
130
+ - Updated dependencies [8674da1]
131
+ - Updated dependencies [6d1de58]
132
+ - @copilotkit/shared@1.10.0
133
+
134
+ ## 1.10.0-next.13
135
+
136
+ ### Patch Changes
137
+
138
+ - b5b94b9: - fix: throw errors when they happen with agui streams
139
+ - @copilotkit/shared@1.10.0-next.13
140
+
141
+ ## 1.10.0-next.12
142
+
143
+ ### Patch Changes
144
+
145
+ - @copilotkit/shared@1.10.0-next.12
146
+
147
+ ## 1.10.0-next.11
148
+
149
+ ### Patch Changes
150
+
151
+ - dc6df18: - feat: use latest agui langgraph package
152
+ - chore: release python sdk 0.1.58
153
+ - @copilotkit/shared@1.10.0-next.11
154
+
155
+ ## 1.10.0-next.10
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [6d1de58]
160
+ - @copilotkit/shared@1.10.0-next.10
161
+
162
+ ## 1.10.0-next.9
163
+
164
+ ### Patch Changes
165
+
166
+ - @copilotkit/shared@1.10.0-next.9
167
+
168
+ ## 1.10.0-next.8
169
+
170
+ ### Patch Changes
171
+
172
+ - @copilotkit/shared@1.10.0-next.8
173
+
174
+ ## 1.10.0-next.7
175
+
176
+ ### Patch Changes
177
+
178
+ - 59b0e16: - feat: add native prompt caching support to AnthropicAdapter
179
+ - @copilotkit/shared@1.10.0-next.7
180
+
181
+ ## 1.10.0-next.6
182
+
183
+ ### Patch Changes
184
+
185
+ - 6f2f54b: - fix(openai): update maxTokens parameter to max_completion_tokens in OpenAIAdapter
186
+ - @copilotkit/shared@1.10.0-next.6
187
+
188
+ ## 1.10.0-next.5
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [a8c0263]
193
+ - @copilotkit/shared@1.10.0-next.5
194
+
195
+ ## 1.10.0-next.4
196
+
197
+ ### Patch Changes
198
+
199
+ - @copilotkit/shared@1.10.0-next.4
200
+
201
+ ## 1.10.0-next.3
202
+
203
+ ### Patch Changes
204
+
205
+ - 824fb69: - fix: pass config to the forwarded props of an agui agent
206
+ - @copilotkit/shared@1.10.0-next.3
207
+
208
+ ## 1.10.0-next.2
209
+
210
+ ### Patch Changes
211
+
212
+ - a31443c: removed unused dependency on ip module
213
+ - @copilotkit/shared@1.10.0-next.2
214
+
215
+ ## 1.10.0-next.1
216
+
217
+ ### Patch Changes
218
+
219
+ - 1abcecf: - fix: add graphqlContext to constructAGUIRemoteAction for enhanced agent properties
220
+
221
+ - Updated constructAGUIRemoteAction to accept graphqlContext, allowing forwarding of properties like Authorization token to the agent.
222
+ - Modified setupRemoteActions to include graphqlContext in the parameters.
223
+ - @copilotkit/shared@1.10.0-next.1
224
+
225
+ ## 1.10.0-next.0
226
+
227
+ ### Patch Changes
228
+
229
+ - Updated dependencies [8674da1]
230
+ - @copilotkit/shared@1.10.0-next.0
231
+
232
+ ## 1.9.3
233
+
234
+ ### Patch Changes
235
+
236
+ - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
237
+ - df25f34: - feat: add agui fastAPI compatible langgraph agent
238
+ - chore: release 0.1.55 with agui langgraph fastapi support
239
+ - 589ae52: - adds scarf deps to runtime
240
+ - 88ceae2: - upgrade AG-UI packages
241
+ - Updated dependencies [1bda332]
242
+ - @copilotkit/shared@1.9.3
243
+
244
+ ## 1.9.3-next.4
245
+
246
+ ### Patch Changes
247
+
248
+ - @copilotkit/shared@1.9.3-next.4
249
+
250
+ ## 1.9.3-next.3
251
+
252
+ ### Patch Changes
253
+
254
+ - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
255
+ - Updated dependencies [1bda332]
256
+ - @copilotkit/shared@1.9.3-next.3
257
+
258
+ ## 1.9.3-next.2
259
+
260
+ ### Patch Changes
261
+
262
+ - df25f34: - feat: add agui fastAPI compatible langgraph agent
263
+ - chore: release 0.1.55 with agui langgraph fastapi support
264
+ - @copilotkit/shared@1.9.3-next.2
265
+
266
+ ## 1.9.3-next.1
267
+
268
+ ### Patch Changes
269
+
270
+ - 589ae52: - adds scarf deps to runtime
271
+ - @copilotkit/shared@1.9.3-next.1
272
+
273
+ ## 1.9.3-next.0
274
+
275
+ ### Patch Changes
276
+
277
+ - 88ceae2: - upgrade AG-UI packages
278
+ - @copilotkit/shared@1.9.3-next.0
279
+
280
+ ## 1.9.2
281
+
282
+ ### Patch Changes
283
+
284
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
285
+ - remove request logging
286
+ - 3a7f45f: - fix: resolve agui agents only after all other endpoints
287
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
288
+
289
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
290
+
291
+ - 7ca7023: - feat: send node name to agui agent
292
+ - 54b62f0: - fix: add default schema keys for input and output of agui langgraph
293
+ - 4fd92d1: - fix: enable resolving of langgraph agents when cpk starts
294
+ - 1f4949a: - fix: remove agent discovery for agui agents
295
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
296
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
297
+ - 8e67158: - fixes gemini adapter
298
+ - 83822d2: - fix: do not show error on state loading if thread does not exist
299
+ - fe9009c: - feat(langgraph): new thread metadata
300
+ - f295375: - fix: remove all agents as tools when there is an active agent session
301
+ - fix formatting
302
+ - 9b986ba: - fix: use active interrupt from thread instead of saving to global state
303
+ - 1d1c51d: - feat: surface all errors in structured format
304
+ - dec5527: - fix: only fetch agent state for langgraph agents
305
+ - 9b81464: - fix: use latest langgraph agui
306
+ - 10345a5: - feat: structured error visibility system for streaming errors
307
+ - 8ef8199: - fix: use latest agui dependencies to include required fixes
308
+ - 20e8c3c: - fix(anthropic-adapter): resolve infinite loop caused by duplicate result messages
309
+ - 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
310
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
311
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
312
+ - Ensures consistency in how parameters are passed to the execute function across the codebase.
313
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
314
+ - Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
315
+ - fix: enhance MCP schema support for complex types and remove duplicate headers
316
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
317
+ - Updated dependencies [fac89c2]
318
+ - Updated dependencies [9169ad7]
319
+ - Updated dependencies [1d1c51d]
320
+ - Updated dependencies [10345a5]
321
+ - Updated dependencies [9169ad7]
322
+ - @copilotkit/shared@1.9.2
323
+
324
+ ## 1.9.2-next.26
325
+
326
+ ### Patch Changes
327
+
328
+ - 83822d2: - fix: do not show error on state loading if thread does not exist
329
+ - @copilotkit/shared@1.9.2-next.26
330
+
331
+ ## 1.9.2-next.25
332
+
333
+ ### Patch Changes
334
+
335
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
336
+ - remove request logging
337
+ - f3f0181: - fix: connect streaming errors to runtime onError handler
338
+ - @copilotkit/shared@1.9.2-next.25
339
+
340
+ ## 1.9.2-next.24
341
+
342
+ ### Patch Changes
343
+
344
+ - 8ef8199: - fix: use latest agui dependencies to include required fixes
345
+ - @copilotkit/shared@1.9.2-next.24
346
+
347
+ ## 1.9.2-next.23
348
+
349
+ ### Patch Changes
350
+
351
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
352
+ - Ensures consistency in how parameters are passed to the execute function across the codebase.
353
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
354
+ - Fixed generateMcpToolInstructions to properly extract parameters from schema.parameters.properties
355
+ - fix: enhance MCP schema support for complex types and remove duplicate headers
356
+ - fc6b653: - Fix extract toolParameters in extractParametersFromSchema
357
+ - @copilotkit/shared@1.9.2-next.23
358
+
359
+ ## 1.9.2-next.22
360
+
361
+ ### Patch Changes
362
+
363
+ - @copilotkit/shared@1.9.2-next.22
364
+
365
+ ## 1.9.2-next.21
366
+
367
+ ### Patch Changes
368
+
369
+ - @copilotkit/shared@1.9.2-next.21
370
+
371
+ ## 1.9.2-next.20
372
+
373
+ ### Patch Changes
374
+
375
+ - @copilotkit/shared@1.9.2-next.20
376
+
377
+ ## 1.9.2-next.19
378
+
379
+ ### Patch Changes
380
+
381
+ - 8e67158: - fixes gemini adapter
382
+ - @copilotkit/shared@1.9.2-next.19
383
+
384
+ ## 1.9.2-next.18
385
+
386
+ ### Patch Changes
387
+
388
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
389
+
390
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
391
+
392
+ - Updated dependencies [fac89c2]
393
+ - @copilotkit/shared@1.9.2-next.18
394
+
395
+ ## 1.9.2-next.17
396
+
397
+ ### Patch Changes
398
+
399
+ - 7ca7023: - feat: send node name to agui agent
400
+ - @copilotkit/shared@1.9.2-next.17
401
+
402
+ ## 1.9.2-next.16
403
+
404
+ ### Patch Changes
405
+
406
+ - fe9009c: - feat(langgraph): new thread metadata
407
+ - @copilotkit/shared@1.9.2-next.16
408
+
409
+ ## 1.9.2-next.15
410
+
411
+ ### Patch Changes
412
+
413
+ - @copilotkit/shared@1.9.2-next.15
414
+
415
+ ## 1.9.2-next.14
416
+
417
+ ### Patch Changes
418
+
419
+ - 3a7f45f: - fix: resolve agui agents only after all other endpoints
420
+ - @copilotkit/shared@1.9.2-next.14
421
+
422
+ ## 1.9.2-next.13
423
+
424
+ ### Patch Changes
425
+
426
+ - dec5527: - fix: only fetch agent state for langgraph agents
427
+ - @copilotkit/shared@1.9.2-next.13
428
+
429
+ ## 1.9.2-next.12
430
+
431
+ ### Patch Changes
432
+
433
+ - @copilotkit/shared@1.9.2-next.12
434
+
435
+ ## 1.9.2-next.11
436
+
437
+ ### Patch Changes
438
+
439
+ - 1f4949a: - fix: remove agent discovery for agui agents
440
+ - @copilotkit/shared@1.9.2-next.11
441
+
442
+ ## 1.9.2-next.10
443
+
444
+ ### Patch Changes
445
+
446
+ - 20e8c3c: - fix(anthropic-adapter): resolve infinite loop caused by duplicate result messages
447
+ - @copilotkit/shared@1.9.2-next.10
448
+
449
+ ## 1.9.2-next.9
450
+
451
+ ### Patch Changes
452
+
453
+ - 1d1c51d: - feat: surface all errors in structured format
454
+ - Updated dependencies [1d1c51d]
455
+ - @copilotkit/shared@1.9.2-next.9
456
+
457
+ ## 1.9.2-next.8
458
+
459
+ ### Patch Changes
460
+
461
+ - 9b986ba: - fix: use active interrupt from thread instead of saving to global state
462
+ - @copilotkit/shared@1.9.2-next.8
463
+
464
+ ## 1.9.2-next.7
465
+
466
+ ### Patch Changes
467
+
468
+ - 54b62f0: - fix: add default schema keys for input and output of agui langgraph
469
+ - @copilotkit/shared@1.9.2-next.7
470
+
471
+ ## 1.9.2-next.6
472
+
473
+ ### Patch Changes
474
+
475
+ - 4fd92d1: - fix: enable resolving of langgraph agents when cpk starts
476
+ - @copilotkit/shared@1.9.2-next.6
477
+
478
+ ## 1.9.2-next.5
479
+
480
+ ### Patch Changes
481
+
482
+ - @copilotkit/shared@1.9.2-next.5
483
+
484
+ ## 1.9.2-next.4
485
+
486
+ ### Patch Changes
487
+
488
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
489
+ - 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
490
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
491
+ - Updated dependencies [9169ad7]
492
+ - Updated dependencies [9169ad7]
493
+ - @copilotkit/shared@1.9.2-next.4
494
+
495
+ ## 1.9.2-next.3
496
+
497
+ ### Patch Changes
498
+
499
+ - @copilotkit/shared@1.9.2-next.3
500
+
501
+ ## 1.9.2-next.2
502
+
503
+ ### Patch Changes
504
+
505
+ - 9b81464: - fix: use latest langgraph agui
506
+ - @copilotkit/shared@1.9.2-next.2
507
+
508
+ ## 1.9.2-next.1
509
+
510
+ ### Patch Changes
511
+
512
+ - f295375: - fix: remove all agents as tools when there is an active agent session
513
+ - fix formatting
514
+ - @copilotkit/shared@1.9.2-next.1
515
+
516
+ ## 1.9.2-next.0
517
+
518
+ ### Patch Changes
519
+
520
+ - 10345a5: - feat: structured error visibility system for streaming errors
521
+ - Updated dependencies [10345a5]
522
+ - @copilotkit/shared@1.9.2-next.0
523
+
524
+ ## 1.9.1
525
+
526
+ ### Patch Changes
527
+
528
+ - deaeca0: - feat: Add public key
529
+
530
+ Signed-off-by: Luis Valdes <luis@copilotkit.ai>
531
+
532
+ - Updated dependencies [deaeca0]
533
+ - @copilotkit/shared@1.9.1
534
+
535
+ ## 1.9.1-next.0
536
+
537
+ ### Patch Changes
538
+
539
+ - deaeca0: - feat: Add public key
540
+
541
+ Signed-off-by: Luis Valdes <luis@copilotkit.ai>
542
+
543
+ - Updated dependencies [deaeca0]
544
+ - @copilotkit/shared@1.9.1-next.0
545
+
546
+ ## 1.9.0
547
+
548
+ ### Minor Changes
549
+
550
+ - 8408d58: - feat: create copilotkit agui langgraph agent
551
+ - docs: replace remote endpoint with AGUI agent
552
+
553
+ ### Patch Changes
554
+
555
+ - c120e07: - refactor(react-ui): pass full message to onThumbsUp and onThumbsDown handlers
556
+ - 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default
557
+ - fix: move react-dom to peerDependencies in @copilotkit/react-textarea
558
+ - feat: add amazon bedrock adapter support
559
+ - @copilotkit/shared@1.9.0
560
+
561
+ ## 1.9.0-next.2
562
+
563
+ ### Minor Changes
564
+
565
+ - 8408d58: - feat: create copilotkit agui langgraph agent
566
+ - docs: replace remote endpoint with AGUI agent
567
+
568
+ ### Patch Changes
569
+
570
+ - @copilotkit/shared@1.9.0-next.2
571
+
572
+ ## 1.8.15-next.1
573
+
574
+ ### Patch Changes
575
+
576
+ - 54cae30: - fix(react-core): allow custom toolChoice in forwardedParameters to override default
577
+ - fix: move react-dom to peerDependencies in @copilotkit/react-textarea
578
+ - feat: add amazon bedrock adapter support
579
+ - @copilotkit/shared@1.8.15-next.1
580
+
581
+ ## 1.8.15-next.0
582
+
583
+ ### Patch Changes
584
+
585
+ - c120e07: - refactor(react-ui): pass full message to onThumbsUp and onThumbsDown handlers
586
+ - @copilotkit/shared@1.8.15-next.0
587
+
588
+ ## 1.8.14
589
+
590
+ ### Patch Changes
591
+
592
+ - ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
593
+ - fix(runtime): filter empty text messages in AnthropicAdapter
594
+ - 9d33836: - fix: prepare cpk agui wiring for ag-ui langgraph support
595
+ - 12b8ca8: - fix: fix cpk agui wiring for langgraph
596
+ - ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
597
+ - 1af7333: - docs: updates ag-ui agent interface
598
+ - Updated dependencies [34a78d8]
599
+ - @copilotkit/shared@1.8.14
600
+
601
+ ## 1.8.14-next.5
602
+
603
+ ### Patch Changes
604
+
605
+ - ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
606
+ - fix(runtime): filter empty text messages in AnthropicAdapter
607
+ - ddd4165: - fix(runtime): filter empty AIMessages in GoogleGenerativeAIAdapter
608
+ - @copilotkit/shared@1.8.14-next.5
609
+
610
+ ## 1.8.14-next.4
611
+
612
+ ### Patch Changes
613
+
614
+ - 12b8ca8: - fix: fix cpk agui wiring for langgraph
615
+ - @copilotkit/shared@1.8.14-next.4
616
+
617
+ ## 1.8.14-next.3
618
+
619
+ ### Patch Changes
620
+
621
+ - 9d33836: - fix: prepare cpk agui wiring for ag-ui langgraph support
622
+ - @copilotkit/shared@1.8.14-next.3
623
+
624
+ ## 1.8.14-next.2
625
+
626
+ ### Patch Changes
627
+
628
+ - 1af7333: - docs: updates ag-ui agent interface
629
+ - @copilotkit/shared@1.8.14-next.2
630
+
631
+ ## 1.8.14-next.1
632
+
633
+ ### Patch Changes
634
+
635
+ - Updated dependencies [34a78d8]
636
+ - @copilotkit/shared@1.8.14-next.1
637
+
638
+ ## 1.8.14-next.0
639
+
640
+ ### Patch Changes
641
+
642
+ - @copilotkit/shared@1.8.14-next.0
643
+
644
+ ## 1.8.13
645
+
646
+ ### Patch Changes
647
+
648
+ - 6ed54f4: - AG-UI 0.0.28
649
+ - @copilotkit/shared@1.8.13
650
+
651
+ ## 1.8.13-next.3
652
+
653
+ ### Patch Changes
654
+
655
+ - @copilotkit/shared@1.8.13-next.3
656
+
657
+ ## 1.8.13-next.2
658
+
659
+ ### Patch Changes
660
+
661
+ - @copilotkit/shared@1.8.13-next.2
662
+
663
+ ## 1.8.13-next.1
664
+
665
+ ### Patch Changes
666
+
667
+ - @copilotkit/shared@1.8.13-next.1
668
+
669
+ ## 1.8.13-next.0
670
+
671
+ ### Patch Changes
672
+
673
+ - 6ed54f4: - AG-UI 0.0.28
674
+ - @copilotkit/shared@1.8.13-next.0
675
+
676
+ ## 1.8.12
677
+
678
+ ### Patch Changes
679
+
680
+ - 54838cb: - feat: allow keeping system role for openai adapters
681
+ - 2b89ad7: - fix: use latest claude 3.5 as default model instead of specific
682
+ - chore: add missing variable assignment in llm provider docs
683
+ - chore: add missing call to fetch azure api key in docs
684
+ - f419d99: - fix: Implement allowlist approach to prevent duplicate tool_result blocks in API calls to OpenAI and Anthropic
685
+ - @copilotkit/shared@1.8.12
686
+
687
+ ## 1.8.12-next.6
688
+
689
+ ### Patch Changes
690
+
691
+ - @copilotkit/shared@1.8.12-next.6
692
+
693
+ ## 1.8.12-next.5
694
+
695
+ ### Patch Changes
696
+
697
+ - @copilotkit/shared@1.8.12-next.5
698
+
699
+ ## 1.8.12-next.4
700
+
701
+ ### Patch Changes
702
+
703
+ - f419d99: - fix: Implement allowlist approach to prevent duplicate tool_result blocks in API calls to OpenAI and Anthropic
704
+ - @copilotkit/shared@1.8.12-next.4
705
+
706
+ ## 1.8.12-next.3
707
+
708
+ ### Patch Changes
709
+
710
+ - @copilotkit/shared@1.8.12-next.3
711
+
712
+ ## 1.8.12-next.2
713
+
714
+ ### Patch Changes
715
+
716
+ - @copilotkit/shared@1.8.12-next.2
717
+
718
+ ## 1.8.12-next.1
719
+
720
+ ### Patch Changes
721
+
722
+ - 54838cb: - feat: allow keeping system role for openai adapters
723
+ - @copilotkit/shared@1.8.12-next.1
724
+
725
+ ## 1.8.12-next.0
726
+
727
+ ### Patch Changes
728
+
729
+ - 2b89ad7: - fix: use latest claude 3.5 as default model instead of specific
730
+ - chore: add missing variable assignment in llm provider docs
731
+ - chore: add missing call to fetch azure api key in docs
732
+ - @copilotkit/shared@1.8.12-next.0
733
+
734
+ ## 1.8.11
735
+
736
+ ### Patch Changes
737
+
738
+ - 52d0bb5: - fix: do not attempt to hash lgc key if it doesnt exist
739
+ - fix: accept null on langsmith api key
740
+ - @copilotkit/shared@1.8.11
741
+
742
+ ## 1.8.11-next.1
743
+
744
+ ### Patch Changes
745
+
746
+ - 52d0bb5: - fix: do not attempt to hash lgc key if it doesnt exist
747
+ - fix: accept null on langsmith api key
748
+ - @copilotkit/shared@1.8.11-next.1
749
+
750
+ ## 1.8.11-next.0
751
+
752
+ ### Patch Changes
753
+
754
+ - @copilotkit/shared@1.8.11-next.0
755
+
756
+ ## 1.8.10
757
+
758
+ ### Patch Changes
759
+
760
+ - f3a0a33: - updates ag-ui deps
761
+ - 742efbb: - feat: enable setting langgraph config from ui
762
+ - chore: document usage of new config
763
+ - @copilotkit/shared@1.8.10
764
+
765
+ ## 1.8.10-next.3
766
+
767
+ ### Patch Changes
768
+
769
+ - @copilotkit/shared@1.8.10-next.3
770
+
771
+ ## 1.8.10-next.2
772
+
773
+ ### Patch Changes
774
+
775
+ - f3a0a33: - updates ag-ui deps
776
+ - @copilotkit/shared@1.8.10-next.2
777
+
778
+ ## 1.8.10-next.1
779
+
780
+ ### Patch Changes
781
+
782
+ - @copilotkit/shared@1.8.10-next.1
783
+
784
+ ## 1.8.10-next.0
785
+
786
+ ### Patch Changes
787
+
788
+ - 742efbb: - feat: enable setting langgraph config from ui
789
+ - chore: document usage of new config
790
+ - @copilotkit/shared@1.8.10-next.0
791
+
792
+ ## 1.8.9
793
+
794
+ ### Patch Changes
795
+
796
+ - f81a526: - Fix MCP tool schema structure to match interface requirements
797
+ - add utils
798
+ - @copilotkit/shared@1.8.9
799
+
800
+ ## 1.8.9-next.0
801
+
802
+ ### Patch Changes
803
+
804
+ - f81a526: - Fix MCP tool schema structure to match interface requirements
805
+ - add utils
806
+ - @copilotkit/shared@1.8.9-next.0
807
+
808
+ ## 1.8.8
809
+
810
+ ### Patch Changes
811
+
812
+ - 8c26335: - fix: update MCP tool parameter extraction to handle full tool objects
813
+ - dfb67c3: - refactor: rename mcpEndpoints to mcpServers for naming consistency
814
+ - doc changes
815
+ - @copilotkit/shared@1.8.8
816
+
817
+ ## 1.8.8-next.1
818
+
819
+ ### Patch Changes
820
+
821
+ - 8c26335: - fix: update MCP tool parameter extraction to handle full tool objects
822
+ - @copilotkit/shared@1.8.8-next.1
823
+
824
+ ## 1.8.8-next.0
825
+
826
+ ### Patch Changes
827
+
828
+ - dfb67c3: - refactor: rename mcpEndpoints to mcpServers for naming consistency
829
+ - doc changes
830
+ - @copilotkit/shared@1.8.8-next.0
831
+
832
+ ## 1.8.7
833
+
834
+ ### Patch Changes
835
+
836
+ - 8b8474f: - feat: add image input support with multi-model compatibility, pasting, and UX improvements
837
+ - @copilotkit/shared@1.8.7
838
+
839
+ ## 1.8.7-next.0
840
+
841
+ ### Patch Changes
842
+
843
+ - 8b8474f: - feat: add image input support with multi-model compatibility, pasting, and UX improvements
844
+ - @copilotkit/shared@1.8.7-next.0
845
+
846
+ ## 1.8.6
4
847
 
5
848
  ### Patch Changes
6
849
 
7
850
  - 7a04bd1: - fix: fix how results are communicated back on interrupt
8
851
  - fix: do not allow followup for interrupt actions
9
852
  - chore: improve TS docs for interrupt
10
- - @copilotkit/shared@0.0.0-main-20250416144141
853
+ - @copilotkit/shared@1.8.6
11
854
 
12
855
  ## 1.8.6-next.0
13
856