@copilotkit/web-inspector 1.66.2 → 1.67.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 (56) hide show
  1. package/README.md +92 -13
  2. package/dist/index.cjs +1444 -429
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +118 -8
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +118 -8
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +1446 -431
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/index.umd.js +1729 -533
  11. package/dist/index.umd.js.map +1 -1
  12. package/dist/lib/inspector-metadata.cjs +60 -0
  13. package/dist/lib/inspector-metadata.cjs.map +1 -0
  14. package/dist/lib/inspector-metadata.mjs +60 -0
  15. package/dist/lib/inspector-metadata.mjs.map +1 -0
  16. package/dist/lib/telemetry.cjs +117 -32
  17. package/dist/lib/telemetry.cjs.map +1 -1
  18. package/dist/lib/telemetry.mjs +116 -33
  19. package/dist/lib/telemetry.mjs.map +1 -1
  20. package/dist/lib/thread-selection.cjs +36 -0
  21. package/dist/lib/thread-selection.cjs.map +1 -0
  22. package/dist/lib/thread-selection.mjs +35 -0
  23. package/dist/lib/thread-selection.mjs.map +1 -0
  24. package/dist/package.cjs +1 -1
  25. package/dist/package.mjs +1 -1
  26. package/dist/styles/generated.cjs +1 -1
  27. package/dist/styles/generated.cjs.map +1 -1
  28. package/dist/styles/generated.mjs +1 -1
  29. package/dist/styles/generated.mjs.map +1 -1
  30. package/package.json +9 -4
  31. package/CHANGELOG.md +0 -505
  32. package/dev/css-raw-import.spec.ts +0 -31
  33. package/dev/index.html +0 -115
  34. package/dev/main.ts +0 -165
  35. package/dev/vite.config.ts +0 -30
  36. package/src/__tests__/memory-recall.spec.ts +0 -76
  37. package/src/__tests__/telemetry-egress-guard.spec.ts +0 -41
  38. package/src/__tests__/web-inspector.spec.ts +0 -3911
  39. package/src/assets/inspector-logo-icon.svg +0 -8
  40. package/src/assets/inspector-logo.svg +0 -40
  41. package/src/components.d.ts +0 -20
  42. package/src/index.ts +0 -11839
  43. package/src/lib/__tests__/telemetry.test.ts +0 -557
  44. package/src/lib/context-helpers.ts +0 -166
  45. package/src/lib/persistence.ts +0 -206
  46. package/src/lib/telemetry.ts +0 -474
  47. package/src/lib/testing/telemetry-egress-guard.ts +0 -33
  48. package/src/lib/types.ts +0 -19
  49. package/src/styles/generated.css +0 -2
  50. package/src/styles/tailwind.css +0 -23
  51. package/src/types/css.d.ts +0 -4
  52. package/src/types/svg.d.ts +0 -4
  53. package/tsconfig.json +0 -14
  54. package/tsdown.config.ts +0 -45
  55. package/vitest.config.ts +0 -66
  56. package/vitest.setup.ts +0 -84
package/CHANGELOG.md DELETED
@@ -1,505 +0,0 @@
1
- # @copilotkit/web-inspector
2
-
3
- ## 1.55.2
4
-
5
- ### Patch Changes
6
-
7
- - @copilotkit/core@1.55.2
8
-
9
- ## 1.55.2-next.1
10
-
11
- ### Patch Changes
12
-
13
- - @copilotkit/core@1.55.2-next.1
14
-
15
- ## 1.55.2-next.0
16
-
17
- ### Patch Changes
18
-
19
- - @copilotkit/core@1.55.2-next.0
20
-
21
- ## 1.55.1
22
-
23
- ### Patch Changes
24
-
25
- - @copilotkit/core@1.55.1
26
-
27
- ## 1.55.1-next.0
28
-
29
- ### Patch Changes
30
-
31
- - @copilotkit/core@1.55.1-next.0
32
-
33
- ## 1.55.0
34
-
35
- ### Minor Changes
36
-
37
- - 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
38
-
39
- ### Patch Changes
40
-
41
- - 52a9322: Fixing license warnings, barrel export and typing
42
- - Updated dependencies [1ceb963]
43
- - Updated dependencies [b4a8b7a]
44
- - Updated dependencies [1ceb963]
45
- - Updated dependencies [1ceb963]
46
- - @copilotkit/core@1.55.0
47
-
48
- ## 1.55.0-next.8
49
-
50
- ### Patch Changes
51
-
52
- - @copilotkit/core@1.55.0-next.8
53
-
54
- ## 1.55.0-next.7
55
-
56
- ### Minor Changes
57
-
58
- - 1ceb963: refactor: consolidate V1/V2 packages into flat @copilotkit/\* structure
59
-
60
- ### Patch Changes
61
-
62
- - Updated dependencies [1ceb963]
63
- - @copilotkit/core@1.55.0-next.7
64
-
65
- ## 1.54.1-next.6
66
-
67
- ### Patch Changes
68
-
69
- - @copilotkitnext/core@1.54.1-next.6
70
-
71
- ## 1.54.1-next.5
72
-
73
- ### Patch Changes
74
-
75
- - @copilotkitnext/core@1.54.1-next.5
76
-
77
- ## 1.54.1-next.4
78
-
79
- ### Patch Changes
80
-
81
- - Updated dependencies [8113dba]
82
- - @copilotkitnext/core@1.54.1-next.4
83
-
84
- ## 1.54.1-next.3
85
-
86
- ### Patch Changes
87
-
88
- - @copilotkitnext/core@1.54.1-next.3
89
-
90
- ## 1.54.1-next.2
91
-
92
- ### Patch Changes
93
-
94
- - @copilotkitnext/core@1.54.1-next.2
95
-
96
- ## 1.54.1-next.1
97
-
98
- ### Patch Changes
99
-
100
- - Updated dependencies [d423001]
101
- - @copilotkitnext/core@1.54.1-next.1
102
-
103
- ## 1.54.1-next.0
104
-
105
- ### Patch Changes
106
-
107
- - @copilotkitnext/core@1.54.1-next.0
108
-
109
- ## 1.54.0
110
-
111
- ### Patch Changes
112
-
113
- - 3780c6a: deprecate: mark all @copilotkitnext/_ packages as deprecated in favor of @copilotkit/_ equivalents
114
- - Updated dependencies [eb1e0bf]
115
- - Updated dependencies [3780c6a]
116
- - Updated dependencies [c80498e]
117
- - Updated dependencies [f1571ef]
118
- - @copilotkitnext/core@1.54.0
119
-
120
- ## 1.54.0-next.9
121
-
122
- ### Patch Changes
123
-
124
- - 3780c6a: deprecate: mark all @copilotkitnext/_ packages as deprecated in favor of @copilotkit/_ equivalents
125
- - Updated dependencies [3780c6a]
126
- - @copilotkitnext/core@1.54.0-next.9
127
-
128
- ## 1.54.0-next.8
129
-
130
- ### Patch Changes
131
-
132
- - Updated dependencies [f1571ef]
133
- - @copilotkitnext/core@1.54.0-next.8
134
-
135
- ## 1.54.0-next.7
136
-
137
- ### Patch Changes
138
-
139
- - Updated dependencies [eb1e0bf]
140
- - @copilotkitnext/core@1.54.0-next.7
141
-
142
- ## 1.54.0-next.6
143
-
144
- ### Patch Changes
145
-
146
- - Updated dependencies [c80498e]
147
- - @copilotkitnext/core@1.54.0-next.6
148
-
149
- ## 1.54.0-next.5
150
-
151
- ### Patch Changes
152
-
153
- - @copilotkitnext/core@1.54.0-next.5
154
-
155
- ## 1.54.0-next.4
156
-
157
- ### Patch Changes
158
-
159
- - @copilotkitnext/core@1.54.0-next.4
160
-
161
- ## 1.54.0-next.3
162
-
163
- ### Patch Changes
164
-
165
- - @copilotkitnext/core@1.54.0-next.3
166
-
167
- ## 1.53.1-next.2
168
-
169
- ### Patch Changes
170
-
171
- - @copilotkit/core@1.53.1-next.2
172
-
173
- ## 1.53.1-next.1
174
-
175
- ### Patch Changes
176
-
177
- - @copilotkit/core@1.53.1-next.1
178
-
179
- ## 1.53.1-next.0
180
-
181
- ### Patch Changes
182
-
183
- - @copilotkit/core@1.53.1-next.0
184
-
185
- ## 1.53.0
186
-
187
- ### Patch Changes
188
-
189
- - 1510f64: feat: enable mcp and a2ui middleware directly from copilotkit runtime
190
- - Updated dependencies [1510f64]
191
- - @copilotkit/core@1.53.0
192
-
193
- ## 1.53.0-next.6
194
-
195
- ### Patch Changes
196
-
197
- - @copilotkit/core@1.53.0-next.6
198
-
199
- ## 1.53.0-next.5
200
-
201
- ### Patch Changes
202
-
203
- - @copilotkit/core@1.53.0-next.5
204
-
205
- ## 1.52.2-next.4
206
-
207
- ### Patch Changes
208
-
209
- - @copilotkit/core@1.52.2-next.4
210
-
211
- ## 1.52.2-next.3
212
-
213
- ### Patch Changes
214
-
215
- - 1510f64: feat: enable mcp and a2ui middleware directly from copilotkit runtime
216
- - Updated dependencies [1510f64]
217
- - @copilotkit/core@1.52.2-next.3
218
-
219
- ## 1.52.2-next.2
220
-
221
- ### Patch Changes
222
-
223
- - @copilotkit/core@1.52.2-next.2
224
-
225
- ## 1.52.2-next.1
226
-
227
- ### Patch Changes
228
-
229
- - @copilotkit/core@1.52.2-next.1
230
-
231
- ## 1.52.2-next.0
232
-
233
- ### Patch Changes
234
-
235
- - @copilotkit/core@1.52.2-next.0
236
-
237
- ## 1.52.1
238
-
239
- ### Patch Changes
240
-
241
- - @copilotkit/core@1.52.1
242
-
243
- ## 1.52.1-next.1
244
-
245
- ### Patch Changes
246
-
247
- - @copilotkit/core@1.52.1-next.1
248
-
249
- ## 1.52.1-next.0
250
-
251
- ### Patch Changes
252
-
253
- - @copilotkit/core@1.52.1-next.0
254
-
255
- ## 1.52.0
256
-
257
- ### Patch Changes
258
-
259
- - ef0f539: Add reasoning support and default components for reasoning messages
260
- - Updated dependencies [d77f347]
261
- - Updated dependencies [ef0f539]
262
- - @copilotkit/core@1.52.0
263
-
264
- ## 1.52.0-next.8
265
-
266
- ### Patch Changes
267
-
268
- - @copilotkit/core@1.52.0-next.8
269
-
270
- ## 1.52.0-next.7
271
-
272
- ### Patch Changes
273
-
274
- - Updated dependencies [d77f347]
275
- - @copilotkit/core@1.52.0-next.7
276
-
277
- ## 1.52.0-next.6
278
-
279
- ### Patch Changes
280
-
281
- - @copilotkit/core@1.52.0-next.6
282
-
283
- ## 1.52.0-next.5
284
-
285
- ### Patch Changes
286
-
287
- - @copilotkit/core@1.52.0-next.5
288
-
289
- ## 1.51.5-next.4
290
-
291
- ### Patch Changes
292
-
293
- - @copilotkit/core@1.51.5-next.4
294
-
295
- ## 1.51.5-next.3
296
-
297
- ### Patch Changes
298
-
299
- - @copilotkit/core@1.51.5-next.3
300
-
301
- ## 1.51.5-next.2
302
-
303
- ### Patch Changes
304
-
305
- - @copilotkit/core@1.51.5-next.2
306
-
307
- ## 1.51.5-next.1
308
-
309
- ### Patch Changes
310
-
311
- - @copilotkit/core@1.51.5-next.1
312
-
313
- ## 1.51.5-next.0
314
-
315
- ### Patch Changes
316
-
317
- - ef0f539: Add reasoning support and default components for reasoning messages
318
- - Updated dependencies [ef0f539]
319
- - @copilotkit/core@1.51.5-next.0
320
-
321
- ## 1.51.4
322
-
323
- ### Patch Changes
324
-
325
- - Updated dependencies [c998f30]
326
- - @copilotkit/core@1.51.4
327
-
328
- ## 1.51.4-next.8
329
-
330
- ### Patch Changes
331
-
332
- - @copilotkit/core@1.51.4-next.8
333
-
334
- ## 1.51.4-next.7
335
-
336
- ### Patch Changes
337
-
338
- - @copilotkit/core@1.51.4-next.7
339
-
340
- ## 1.51.4-next.6
341
-
342
- ### Patch Changes
343
-
344
- - @copilotkit/core@1.51.4-next.6
345
-
346
- ## 1.51.4-next.5
347
-
348
- ### Patch Changes
349
-
350
- - @copilotkit/core@1.51.4-next.5
351
-
352
- ## 1.51.4-next.4
353
-
354
- ### Patch Changes
355
-
356
- - Updated dependencies [c998f30]
357
- - @copilotkit/core@1.51.4-next.4
358
-
359
- ## 1.51.4-next.3
360
-
361
- ### Patch Changes
362
-
363
- - @copilotkit/core@1.51.4-next.3
364
-
365
- ## 1.51.4-next.2
366
-
367
- ### Patch Changes
368
-
369
- - @copilotkit/core@1.51.4-next.2
370
-
371
- ## 1.51.4-next.1
372
-
373
- ### Patch Changes
374
-
375
- - @copilotkit/core@1.51.4-next.1
376
-
377
- ## 1.51.4-next.0
378
-
379
- ### Patch Changes
380
-
381
- - @copilotkit/core@1.51.4-next.0
382
-
383
- ## 1.51.3
384
-
385
- ### Patch Changes
386
-
387
- - d36fc1e: Add UMD export
388
- - Updated dependencies [d36fc1e]
389
- - @copilotkit/core@1.51.3
390
-
391
- ## 1.51.3-next.8
392
-
393
- ### Patch Changes
394
-
395
- - d36fc1e: Add UMD export
396
- - Updated dependencies [d36fc1e]
397
- - @copilotkit/core@1.51.3-next.8
398
-
399
- ## 1.51.3-next.7
400
-
401
- ### Patch Changes
402
-
403
- - @copilotkit/core@1.51.3-next.7
404
-
405
- ## 1.51.3-next.6
406
-
407
- ### Patch Changes
408
-
409
- - @copilotkit/core@1.51.3-next.6
410
-
411
- ## 1.51.3-next.5
412
-
413
- ### Patch Changes
414
-
415
- - @copilotkit/core@1.51.3-next.5
416
-
417
- ## 1.51.3-next.4
418
-
419
- ### Patch Changes
420
-
421
- - @copilotkit/core@1.51.3-next.4
422
-
423
- ## 1.51.3-next.3
424
-
425
- ### Patch Changes
426
-
427
- - @copilotkit/core@1.51.3-next.3
428
-
429
- ## 1.51.3-next.2
430
-
431
- ### Patch Changes
432
-
433
- - @copilotkit/core@1.51.3-next.2
434
-
435
- ## 1.51.3-next.1
436
-
437
- ### Patch Changes
438
-
439
- - @copilotkit/core@1.51.3-next.1
440
-
441
- ## 1.51.3-next.0
442
-
443
- ### Patch Changes
444
-
445
- - @copilotkit/core@1.51.3-next.0
446
-
447
- ## 1.51.2
448
-
449
- ### Patch Changes
450
-
451
- - e59d23f: Use deps instead of peerdeps
452
- - Updated dependencies [e59d23f]
453
- - @copilotkit/core@1.51.2
454
-
455
- ## 1.51.2-next.1
456
-
457
- ### Patch Changes
458
-
459
- - e59d23f: Use deps instead of peerdeps
460
- - Updated dependencies [e59d23f]
461
- - @copilotkit/core@1.51.2-next.1
462
-
463
- ## 1.51.2-next.0
464
-
465
- ### Patch Changes
466
-
467
- - @copilotkit/core@1.51.2-next.0
468
-
469
- ## 1.51.1
470
-
471
- ### Patch Changes
472
-
473
- - @copilotkit/core@1.51.1
474
-
475
- ## 1.51.0
476
-
477
- ### Patch Changes
478
-
479
- - 2839a15: Update versioning strategy
480
- - Updated dependencies [2839a15]
481
- - @copilotkit/core@1.51.0
482
-
483
- ## 1.51.0-next.4
484
-
485
- ### Patch Changes
486
-
487
- - @copilotkit/core@1.51.0-next.4
488
-
489
- ## 1.51.0-next.3
490
-
491
- ### Patch Changes
492
-
493
- - @copilotkit/core@1.51.0-next.3
494
-
495
- ## 1.51.0-next.2
496
-
497
- ### Patch Changes
498
-
499
- - @copilotkit/core@1.51.0-next.2
500
-
501
- ## 1.51.0-next.1
502
-
503
- ### Patch Changes
504
-
505
- - @copilotkit/core@1.51.0-next.1
@@ -1,31 +0,0 @@
1
- // @vitest-environment node
2
-
3
- import { describe, expect, it } from "vitest";
4
-
5
- import viteConfig from "./vite.config.js";
6
-
7
- describe("web-inspector dev vite config", () => {
8
- it("throws when the generated stylesheet import is missing from src/index.ts", () => {
9
- const plugin = Array.isArray(viteConfig.plugins)
10
- ? viteConfig.plugins.find(
11
- (candidate) =>
12
- candidate != null &&
13
- typeof candidate === "object" &&
14
- "name" in candidate &&
15
- candidate.name === "web-inspector-css-raw-import",
16
- )
17
- : undefined;
18
-
19
- if (!plugin || !("transform" in plugin) || !plugin.transform) {
20
- throw new Error("web-inspector-css-raw-import plugin not found");
21
- }
22
-
23
- expect(() =>
24
- plugin.transform.call(
25
- {} as never,
26
- 'import tailwindStyles from "./styles/other.css";',
27
- "/repo/packages/web-inspector/src/index.ts",
28
- ),
29
- ).toThrow("generated.css import");
30
- });
31
- });
package/dev/index.html DELETED
@@ -1,115 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>CopilotKit Web Inspector Standalone</title>
7
- <script type="module" src="/main.ts"></script>
8
- <style>
9
- :root {
10
- color-scheme: light;
11
- font-family:
12
- Inter,
13
- ui-sans-serif,
14
- system-ui,
15
- -apple-system,
16
- BlinkMacSystemFont,
17
- "Segoe UI",
18
- sans-serif;
19
- background: #f7f7f9;
20
- color: #010507;
21
- }
22
-
23
- * {
24
- box-sizing: border-box;
25
- }
26
-
27
- body {
28
- margin: 0;
29
- min-height: 100vh;
30
- }
31
-
32
- main {
33
- display: grid;
34
- grid-template-rows: auto 1fr;
35
- min-height: 100vh;
36
- }
37
-
38
- header {
39
- display: flex;
40
- align-items: center;
41
- justify-content: space-between;
42
- gap: 16px;
43
- padding: 14px 18px;
44
- border-bottom: 1px solid #dbdbe5;
45
- background: #ffffff;
46
- }
47
-
48
- h1 {
49
- margin: 0;
50
- font-size: 15px;
51
- font-weight: 650;
52
- }
53
-
54
- p {
55
- margin: 4px 0 0;
56
- color: #57575b;
57
- font-size: 12px;
58
- }
59
-
60
- .controls {
61
- display: flex;
62
- gap: 8px;
63
- }
64
-
65
- button {
66
- border: 1px solid #dbdbe5;
67
- border-radius: 6px;
68
- background: #ffffff;
69
- color: #010507;
70
- cursor: pointer;
71
- font: inherit;
72
- font-size: 12px;
73
- padding: 7px 10px;
74
- }
75
-
76
- button:hover {
77
- border-color: #bec2ff;
78
- }
79
-
80
- #inspector-host {
81
- min-height: 0;
82
- padding: 16px;
83
- }
84
-
85
- cpk-thread-inspector {
86
- display: block;
87
- height: calc(100vh - 98px);
88
- min-height: 520px;
89
- border: 1px solid #dbdbe5;
90
- border-radius: 8px;
91
- overflow: hidden;
92
- background: #ffffff;
93
- }
94
- </style>
95
- </head>
96
- <body>
97
- <main>
98
- <header>
99
- <div>
100
- <h1>Web Inspector Standalone Thread Detail</h1>
101
- <p>
102
- Demo provider data only. Product validation still needs a real
103
- Intelligence backend.
104
- </p>
105
- </div>
106
- <div class="controls" aria-label="Demo scenarios">
107
- <button type="button" data-scenario="events">AG-UI events</button>
108
- <button type="button" data-scenario="messages">Messages only</button>
109
- <button type="button" data-scenario="raw">Raw event only</button>
110
- </div>
111
- </header>
112
- <section id="inspector-host"></section>
113
- </main>
114
- </body>
115
- </html>