@copilotkit/shared 0.0.0-main-20250416144141 → 0.0.0-max-runner-auth-20251229210625

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 (117) hide show
  1. package/CHANGELOG.md +560 -1
  2. package/README.md +123 -28
  3. package/dist/chunk-2OJ5OJ2D.mjs +1 -0
  4. package/dist/chunk-4KTOMF4X.mjs +38 -0
  5. package/dist/chunk-4KTOMF4X.mjs.map +1 -0
  6. package/dist/{chunk-FDYHD5WN.mjs → chunk-4MW543GA.mjs} +104 -39
  7. package/dist/chunk-4MW543GA.mjs.map +1 -0
  8. package/dist/{chunk-JP2M4U4G.mjs → chunk-64DYJ27R.mjs} +91 -2
  9. package/dist/chunk-64DYJ27R.mjs.map +1 -0
  10. package/dist/chunk-6W2UEO2M.mjs +94 -0
  11. package/dist/chunk-6W2UEO2M.mjs.map +1 -0
  12. package/dist/chunk-BOKE4OKY.mjs +41 -0
  13. package/dist/chunk-BOKE4OKY.mjs.map +1 -0
  14. package/dist/chunk-N5EP5OD5.mjs +1 -0
  15. package/dist/chunk-N5EP5OD5.mjs.map +1 -0
  16. package/dist/{chunk-QFITLWYZ.mjs → chunk-OX5WDDTA.mjs} +14 -3
  17. package/dist/chunk-OX5WDDTA.mjs.map +1 -0
  18. package/dist/chunk-UYARLQNA.mjs +1 -0
  19. package/dist/chunk-UYARLQNA.mjs.map +1 -0
  20. package/dist/chunk-XEMZTHQZ.mjs +67 -0
  21. package/dist/chunk-XEMZTHQZ.mjs.map +1 -0
  22. package/dist/chunk-XTHC46M2.mjs +1 -0
  23. package/dist/chunk-XTHC46M2.mjs.map +1 -0
  24. package/dist/index.d.ts +10 -4
  25. package/dist/index.js +421 -41
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +48 -10
  28. package/dist/telemetry/events.d.ts +6 -0
  29. package/dist/telemetry/events.js.map +1 -1
  30. package/dist/telemetry/index.d.ts +1 -1
  31. package/dist/telemetry/index.js +48 -4
  32. package/dist/telemetry/index.js.map +1 -1
  33. package/dist/telemetry/index.mjs +6 -3
  34. package/dist/telemetry/scarf-client.d.ts +7 -0
  35. package/dist/telemetry/scarf-client.js +59 -0
  36. package/dist/telemetry/scarf-client.js.map +1 -0
  37. package/dist/telemetry/scarf-client.mjs +7 -0
  38. package/dist/telemetry/scarf-client.mjs.map +1 -0
  39. package/dist/telemetry/telemetry-client.d.ts +8 -1
  40. package/dist/telemetry/telemetry-client.js +48 -4
  41. package/dist/telemetry/telemetry-client.js.map +1 -1
  42. package/dist/telemetry/telemetry-client.mjs +6 -3
  43. package/dist/types/action.d.ts +1 -0
  44. package/dist/types/action.js.map +1 -1
  45. package/dist/types/error.d.ts +55 -0
  46. package/dist/types/error.js +19 -0
  47. package/dist/types/error.js.map +1 -0
  48. package/dist/types/error.mjs +2 -0
  49. package/dist/types/error.mjs.map +1 -0
  50. package/dist/types/index.d.ts +3 -0
  51. package/dist/types/index.js.map +1 -1
  52. package/dist/types/index.mjs +4 -2
  53. package/dist/types/message.d.ts +26 -0
  54. package/dist/types/message.js +19 -0
  55. package/dist/types/message.js.map +1 -0
  56. package/dist/types/message.mjs +2 -0
  57. package/dist/types/message.mjs.map +1 -0
  58. package/dist/utils/console-styling.d.ts +84 -0
  59. package/dist/utils/console-styling.js +123 -0
  60. package/dist/utils/console-styling.js.map +1 -0
  61. package/dist/utils/console-styling.mjs +17 -0
  62. package/dist/utils/console-styling.mjs.map +1 -0
  63. package/dist/utils/errors.d.ts +58 -4
  64. package/dist/utils/errors.js +102 -38
  65. package/dist/utils/errors.js.map +1 -1
  66. package/dist/utils/errors.mjs +22 -8
  67. package/dist/utils/index.d.ts +11 -3
  68. package/dist/utils/index.js +376 -37
  69. package/dist/utils/index.js.map +1 -1
  70. package/dist/utils/index.mjs +45 -9
  71. package/dist/utils/json-schema.d.ts +3 -1
  72. package/dist/utils/json-schema.js +93 -2
  73. package/dist/utils/json-schema.js.map +1 -1
  74. package/dist/utils/json-schema.mjs +7 -3
  75. package/dist/utils/random-id.d.ts +1 -1
  76. package/dist/utils/random-id.js +18 -1
  77. package/dist/utils/random-id.js.map +1 -1
  78. package/dist/utils/random-id.mjs +1 -1
  79. package/dist/utils/requests.d.ts +10 -0
  80. package/dist/utils/requests.js +91 -0
  81. package/dist/utils/requests.js.map +1 -0
  82. package/dist/utils/requests.mjs +7 -0
  83. package/dist/utils/requests.mjs.map +1 -0
  84. package/dist/utils/types.d.ts +20 -0
  85. package/dist/utils/types.js +19 -0
  86. package/dist/utils/types.js.map +1 -0
  87. package/dist/utils/types.mjs +2 -0
  88. package/dist/utils/types.mjs.map +1 -0
  89. package/package.json +4 -3
  90. package/src/telemetry/events.ts +6 -0
  91. package/src/telemetry/scarf-client.ts +39 -0
  92. package/src/telemetry/telemetry-client.ts +23 -7
  93. package/src/types/action.ts +1 -0
  94. package/src/types/error.ts +70 -0
  95. package/src/types/index.ts +2 -0
  96. package/src/types/message.ts +37 -0
  97. package/src/utils/console-styling.ts +124 -0
  98. package/src/utils/errors.ts +112 -24
  99. package/src/utils/index.ts +11 -0
  100. package/src/utils/json-schema.test.ts +215 -1
  101. package/src/utils/json-schema.ts +104 -0
  102. package/src/utils/random-id.ts +24 -2
  103. package/src/utils/requests.ts +77 -0
  104. package/src/utils/types.ts +22 -0
  105. package/tsup.config.ts +1 -6
  106. package/dist/chunk-BANDZXMP.mjs +0 -1
  107. package/dist/chunk-FDYHD5WN.mjs.map +0 -1
  108. package/dist/chunk-JP2M4U4G.mjs.map +0 -1
  109. package/dist/chunk-QFITLWYZ.mjs.map +0 -1
  110. package/dist/chunk-VNNKZIFB.mjs +0 -24
  111. package/dist/chunk-VNNKZIFB.mjs.map +0 -1
  112. package/dist/utils/json-schema.test.d.ts +0 -2
  113. package/dist/utils/json-schema.test.js +0 -173
  114. package/dist/utils/json-schema.test.js.map +0 -1
  115. package/dist/utils/json-schema.test.mjs +0 -140
  116. package/dist/utils/json-schema.test.mjs.map +0 -1
  117. /package/dist/{chunk-BANDZXMP.mjs.map → chunk-2OJ5OJ2D.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,565 @@
1
1
  # @copilotkit/shared
2
2
 
3
- ## 0.0.0-main-20250416144141
3
+ ## 0.0.0-max-runner-auth-20251229210625
4
+
5
+ ## 1.50.1
6
+
7
+ ### Patch Changes
8
+
9
+ - 80dffec: Updated the default model and API version for the Google GenAI adapter
10
+
11
+ ## 1.50.1-next.3
12
+
13
+ ## 1.50.1-next.2
14
+
15
+ ## 1.50.1-next.1
16
+
17
+ ## 1.50.1-next.0
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated the default model and API version for the Google GenAI adapter
22
+
23
+ ## 1.50.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 0fc76d7: add new runner with telemetry baked in
28
+ - c942f9c: Minor fixes and stability improvements
29
+ - eed6021: Updating to the latest version of vnext
30
+ - 3b7367e: Improving general stability around LangChain
31
+ - 7ff9ca7: Minor fixes and improvements
32
+ - 974875e: Lint and format code to resolve Prettier errors
33
+ - 4942f62: - feat: create rerouting CopilotRuntime
34
+ - 3bd484f: Minor fixes and stability improvements
35
+ - 5a534bf: fix telemetry in v1.50 runtime
36
+ - 769a06c: Refactor suggestions to not always run
37
+ - 788292b: Improving langchain dependency resolution
38
+ - eab69a2: Enabling the new inspector
39
+ - 0a7bfe0: Updating dependency versions across all packages
40
+
41
+ ### Patch Changes
42
+
43
+ - b0e3652: - chore: Update to latest of vnext
44
+
45
+ ## 1.50.0-beta.19
46
+
47
+ ### Minor Changes
48
+
49
+ - Improving langchain dependency resolution
50
+
51
+ ## 1.50.0-beta.18
52
+
53
+ ### Minor Changes
54
+
55
+ - Improving general stability around LangChain
56
+
57
+ ## 1.50.0-beta.17
58
+
59
+ ### Minor Changes
60
+
61
+ - Minor fixes and improvements
62
+
63
+ ## 1.50.0-beta.16
64
+
65
+ ### Minor Changes
66
+
67
+ - Minor fixes and stability improvements
68
+
69
+ ## 1.50.0-beta.15
70
+
71
+ ### Minor Changes
72
+
73
+ - Lint and format code to resolve Prettier errors
74
+
75
+ ## 1.50.0-beta.14
76
+
77
+ ### Minor Changes
78
+
79
+ - Minor fixes and stability improvements
80
+
81
+ ## 1.50.0-beta.13
82
+
83
+ ### Minor Changes
84
+
85
+ - Updating to the latest version of vnext
86
+
87
+ ## 1.50.0-beta.12
88
+
89
+ ### Minor Changes
90
+
91
+ - eab69a2: Enabling the new inspector
92
+
93
+ ## 1.50.0-beta.11
94
+
95
+ ### Minor Changes
96
+
97
+ - fix telemetry in v1.50 runtime
98
+
99
+ ## 1.50.0-beta.10
100
+
101
+ ### Minor Changes
102
+
103
+ - add new runner with telemetry baked in
104
+
105
+ ## 1.50.0-beta.9
106
+
107
+ ### Minor Changes
108
+
109
+ - Refactor suggestions to not always run
110
+
111
+ ## 1.50.0-beta.8
112
+
113
+ ## 1.50.0-beta.7
114
+
115
+ ## 1.50.0-beta.6
116
+
117
+ ### Minor Changes
118
+
119
+ - Updating dependency versions across all packages
120
+
121
+ ## 1.50.0-beta.4
122
+
123
+ ### Minor Changes
124
+
125
+ - 4942f62: - feat: create rerouting CopilotRuntime
126
+
127
+ ### Patch Changes
128
+
129
+ - b0e3652: - chore: Update to latest of vnext
130
+
131
+ ## 1.10.7-next.0
132
+
133
+ ## 1.10.6
134
+
135
+ ### Patch Changes
136
+
137
+ - e0dd5d5: - feat: allow additional config in direct to llm actions
138
+
139
+ ## 1.10.6-next.6
140
+
141
+ ## 1.10.6-next.5
142
+
143
+ ### Patch Changes
144
+
145
+ - e0dd5d5: - feat: allow additional config in direct to llm actions
146
+
147
+ ## 1.10.6-next.4
148
+
149
+ ## 1.10.6-next.3
150
+
151
+ ## 1.10.6-next.2
152
+
153
+ ## 1.10.6-next.1
154
+
155
+ ## 1.10.6-next.0
156
+
157
+ ## 1.10.5
158
+
159
+ ## 1.10.5-next.10
160
+
161
+ ## 1.10.5-next.9
162
+
163
+ ## 1.10.5-next.8
164
+
165
+ ## 1.10.5-next.7
166
+
167
+ ## 1.10.5-next.6
168
+
169
+ ## 1.10.5-next.5
170
+
171
+ ## 1.10.5-next.4
172
+
173
+ ## 1.10.5-next.3
174
+
175
+ ## 1.10.5-next.2
176
+
177
+ ## 1.10.5-next.1
178
+
179
+ ## 1.10.5-next.0
180
+
181
+ ## 1.10.4
182
+
183
+ ### Patch Changes
184
+
185
+ - a640d8e: - feat: update latest agui langgraph for subgraphs support
186
+ - feat: update latest agui core packages
187
+
188
+ ## 1.10.4-next.3
189
+
190
+ ## 1.10.4-next.2
191
+
192
+ ## 1.10.4-next.1
193
+
194
+ ### Patch Changes
195
+
196
+ - a640d8e: - feat: update latest agui langgraph for subgraphs support
197
+ - feat: update latest agui core packages
198
+
199
+ ## 1.10.4-next.0
200
+
201
+ ## 1.10.3
202
+
203
+ ### Patch Changes
204
+
205
+ - ea74047: - fix: surface run errors from agui
206
+
207
+ ## 1.10.3-next.3
208
+
209
+ ## 1.10.3-next.2
210
+
211
+ ## 1.10.3-next.1
212
+
213
+ ## 1.10.3-next.0
214
+
215
+ ### Patch Changes
216
+
217
+ - ea74047: - fix: surface run errors from agui
218
+
219
+ ## 1.10.2
220
+
221
+ ## 1.10.2-next.0
222
+
223
+ ## 1.10.1
224
+
225
+ ## 1.10.1-next.2
226
+
227
+ ## 1.10.1-next.1
228
+
229
+ ## 1.10.1-next.0
230
+
231
+ ## 1.10.0
232
+
233
+ ### Minor Changes
234
+
235
+ - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
236
+
237
+ Headless UI has been in a bad state for a bit now. When we added support for different
238
+ agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
239
+
240
+ As such, the following features have been updated to be completely functional with Headless UI.
241
+
242
+ - Generative UI
243
+ - Suggestions
244
+ - Agentic Generative UI
245
+ - Interrupts
246
+
247
+ In addition, a variety of QOL changes have been made.
248
+
249
+ - New AG-UI based message types
250
+ - Inline code rendering is fixed
251
+
252
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
253
+
254
+ ### Patch Changes
255
+
256
+ - a8c0263: - feat: add event hooks system for chat components
257
+ - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
258
+
259
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
260
+
261
+ - fix: more fixes addressing breaking changes in new Headless UI
262
+
263
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
264
+
265
+ - chore: address linting issues
266
+
267
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
268
+
269
+ - chore: fixing branding and docs
270
+
271
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
272
+
273
+ - chore: more docs fixing
274
+
275
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
276
+
277
+ ## 1.10.0-next.13
278
+
279
+ ## 1.10.0-next.12
280
+
281
+ ## 1.10.0-next.11
282
+
283
+ ## 1.10.0-next.10
284
+
285
+ ### Patch Changes
286
+
287
+ - 6d1de58: - fix: address issues that would cause headless UI breaking changes in the next release
288
+
289
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
290
+
291
+ - fix: more fixes addressing breaking changes in new Headless UI
292
+
293
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
294
+
295
+ - chore: address linting issues
296
+
297
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
298
+
299
+ - chore: fixing branding and docs
300
+
301
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
302
+
303
+ - chore: more docs fixing
304
+
305
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
306
+
307
+ ## 1.10.0-next.9
308
+
309
+ ## 1.10.0-next.8
310
+
311
+ ## 1.10.0-next.7
312
+
313
+ ## 1.10.0-next.6
314
+
315
+ ## 1.10.0-next.5
316
+
317
+ ### Patch Changes
318
+
319
+ - a8c0263: - feat: add event hooks system for chat components
320
+
321
+ ## 1.10.0-next.4
322
+
323
+ ## 1.10.0-next.3
324
+
325
+ ## 1.10.0-next.2
326
+
327
+ ## 1.10.0-next.1
328
+
329
+ ## 1.10.0-next.0
330
+
331
+ ### Minor Changes
332
+
333
+ - 8674da1: - refactor(headless): completely overhaul headless ui to better support agentic features
334
+
335
+ Headless UI has been in a bad state for a bit now. When we added support for different
336
+ agentic runtimes we acquired tech-debt that, with this PR, is being alleviated.
337
+
338
+ As such, the following features have been updated to be completely functional with Headless UI.
339
+
340
+ - Generative UI
341
+ - Suggestions
342
+ - Agentic Generative UI
343
+ - Interrupts
344
+
345
+ In addition, a variety of QOL changes have been made.
346
+
347
+ - New AG-UI based message types
348
+ - Inline code rendering is fixed
349
+
350
+ Signed-off-by: Tyler Slaton <tyler@copilotkit.ai>
351
+
352
+ ## 1.9.3
353
+
354
+ ### Patch Changes
355
+
356
+ - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
357
+
358
+ ## 1.9.3-next.4
359
+
360
+ ## 1.9.3-next.3
361
+
362
+ ### Patch Changes
363
+
364
+ - 1bda332: - chore(telemetry): integrate Scarf for usage analytics
365
+
366
+ ## 1.9.3-next.2
367
+
368
+ ## 1.9.3-next.1
369
+
370
+ ## 1.9.3-next.0
371
+
372
+ ## 1.9.2
373
+
374
+ ### Patch Changes
375
+
376
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
377
+
378
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
379
+
380
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
381
+ - 1d1c51d: - feat: surface all errors in structured format
382
+ - 10345a5: - feat: structured error visibility system for streaming errors
383
+ - 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
384
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
385
+
386
+ ## 1.9.2-next.26
387
+
388
+ ## 1.9.2-next.25
389
+
390
+ ## 1.9.2-next.24
391
+
392
+ ## 1.9.2-next.23
393
+
394
+ ## 1.9.2-next.22
395
+
396
+ ## 1.9.2-next.21
397
+
398
+ ## 1.9.2-next.20
399
+
400
+ ## 1.9.2-next.19
401
+
402
+ ## 1.9.2-next.18
403
+
404
+ ### Patch Changes
405
+
406
+ - fac89c2: - refactor: rename onTrace to onError throughout codebase
407
+
408
+ - Rename CopilotTraceEvent to CopilotErrorEvent and CopilotTraceHandler to CopilotErrorHandler
409
+
410
+ ## 1.9.2-next.17
411
+
412
+ ## 1.9.2-next.16
413
+
414
+ ## 1.9.2-next.15
415
+
416
+ ## 1.9.2-next.14
417
+
418
+ ## 1.9.2-next.13
419
+
420
+ ## 1.9.2-next.12
421
+
422
+ ## 1.9.2-next.11
423
+
424
+ ## 1.9.2-next.10
425
+
426
+ ## 1.9.2-next.9
427
+
428
+ ### Patch Changes
429
+
430
+ - 1d1c51d: - feat: surface all errors in structured format
431
+
432
+ ## 1.9.2-next.8
433
+
434
+ ## 1.9.2-next.7
435
+
436
+ ## 1.9.2-next.6
437
+
438
+ ## 1.9.2-next.5
439
+
440
+ ## 1.9.2-next.4
441
+
442
+ ### Patch Changes
443
+
444
+ - 9169ad7: - feat: add onTrace handler for runtime and UI error/event tracking
445
+ - 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
446
+ - fix: extract publicApiKey for all requests + trace GraphQL errors
447
+
448
+ ## 1.9.2-next.3
449
+
450
+ ## 1.9.2-next.2
451
+
452
+ ## 1.9.2-next.1
453
+
454
+ ## 1.9.2-next.0
455
+
456
+ ### Patch Changes
457
+
458
+ - 10345a5: - feat: structured error visibility system for streaming errors
459
+
460
+ ## 1.9.1
461
+
462
+ ### Patch Changes
463
+
464
+ - deaeca0: - feat: Add public key
465
+
466
+ Signed-off-by: Luis Valdes <luis@copilotkit.ai>
467
+
468
+ ## 1.9.1-next.0
469
+
470
+ ### Patch Changes
471
+
472
+ - deaeca0: - feat: Add public key
473
+
474
+ Signed-off-by: Luis Valdes <luis@copilotkit.ai>
475
+
476
+ ## 1.9.0
477
+
478
+ ## 1.9.0-next.2
479
+
480
+ ## 1.8.15-next.1
481
+
482
+ ## 1.8.15-next.0
483
+
484
+ ## 1.8.14
485
+
486
+ ### Patch Changes
487
+
488
+ - 34a78d8: - jsonSchemaToActionParameters implementation
489
+
490
+ ## 1.8.14-next.5
491
+
492
+ ## 1.8.14-next.4
493
+
494
+ ## 1.8.14-next.3
495
+
496
+ ## 1.8.14-next.2
497
+
498
+ ## 1.8.14-next.1
499
+
500
+ ### Patch Changes
501
+
502
+ - 34a78d8: - jsonSchemaToActionParameters implementation
503
+
504
+ ## 1.8.14-next.0
505
+
506
+ ## 1.8.13
507
+
508
+ ## 1.8.13-next.3
509
+
510
+ ## 1.8.13-next.2
511
+
512
+ ## 1.8.13-next.1
513
+
514
+ ## 1.8.13-next.0
515
+
516
+ ## 1.8.12
517
+
518
+ ## 1.8.12-next.6
519
+
520
+ ## 1.8.12-next.5
521
+
522
+ ## 1.8.12-next.4
523
+
524
+ ## 1.8.12-next.3
525
+
526
+ ## 1.8.12-next.2
527
+
528
+ ## 1.8.12-next.1
529
+
530
+ ## 1.8.12-next.0
531
+
532
+ ## 1.8.11
533
+
534
+ ## 1.8.11-next.1
535
+
536
+ ## 1.8.11-next.0
537
+
538
+ ## 1.8.10
539
+
540
+ ## 1.8.10-next.3
541
+
542
+ ## 1.8.10-next.2
543
+
544
+ ## 1.8.10-next.1
545
+
546
+ ## 1.8.10-next.0
547
+
548
+ ## 1.8.9
549
+
550
+ ## 1.8.9-next.0
551
+
552
+ ## 1.8.8
553
+
554
+ ## 1.8.8-next.1
555
+
556
+ ## 1.8.8-next.0
557
+
558
+ ## 1.8.7
559
+
560
+ ## 1.8.7-next.0
561
+
562
+ ## 1.8.6
4
563
 
5
564
  ## 1.8.6-next.0
6
565