@tonyclaw/llm-inspector 1.18.2 → 1.19.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 (42) hide show
  1. package/.output/cli.js +776 -139
  2. package/.output/nitro.json +1 -1
  3. package/.output/public/assets/{CompareDrawer-C-4ypEWs.js → CompareDrawer-DwayZPPO.js} +1 -1
  4. package/.output/public/assets/ProxyViewerContainer-iv3LVMEW.js +101 -0
  5. package/.output/public/assets/{ReplayDialog-CyBKOgba.js → ReplayDialog-CaV1elYO.js} +1 -1
  6. package/.output/public/assets/{RequestAnatomy-C0IrVQ3q.js → RequestAnatomy-CSfnjK7j.js} +1 -1
  7. package/.output/public/assets/{ResponseView-MogToC4i.js → ResponseView-YkOL__xm.js} +1 -1
  8. package/.output/public/assets/{StreamingChunkSequence-ClhUhT-s.js → StreamingChunkSequence-D_p6L-oB.js} +1 -1
  9. package/.output/public/assets/_sessionId-BgCVUC6R.js +1 -0
  10. package/.output/public/assets/index-CWA4S0FO.js +1 -0
  11. package/.output/public/assets/index-DeJyypsp.css +1 -0
  12. package/.output/public/assets/{json-viewer-BicGakI5.js → json-viewer-BB-9bqnP.js} +2 -2
  13. package/.output/public/assets/{main-Be2qqUUW.js → main-COVN451W.js} +2 -2
  14. package/.output/server/_libs/lucide-react.mjs +93 -72
  15. package/.output/server/{_sessionId-DhKJIdQC.mjs → _sessionId-BJT5qIib.mjs} +2 -2
  16. package/.output/server/_ssr/{CompareDrawer-BGUgukJ8.mjs → CompareDrawer-DNGYdUXs.mjs} +4 -4
  17. package/.output/server/_ssr/{ProxyViewerContainer--3K3o3Sm.mjs → ProxyViewerContainer-B-zDOLYE.mjs} +354 -343
  18. package/.output/server/_ssr/{ReplayDialog-Bo86xZI4.mjs → ReplayDialog-DWeqMA4y.mjs} +4 -4
  19. package/.output/server/_ssr/{RequestAnatomy-jRU5qgwB.mjs → RequestAnatomy-TOsrMu9-.mjs} +3 -3
  20. package/.output/server/_ssr/{ResponseView-DdO_-79a.mjs → ResponseView-BuqdPrzm.mjs} +4 -4
  21. package/.output/server/_ssr/{StreamingChunkSequence-BigLwhh4.mjs → StreamingChunkSequence-DuzNZkqL.mjs} +3 -3
  22. package/.output/server/_ssr/{index-BHG6vOnr.mjs → index-1nCQUt3y.mjs} +2 -2
  23. package/.output/server/_ssr/index.mjs +2 -2
  24. package/.output/server/_ssr/{json-viewer-B4c_WjXD.mjs → json-viewer-BL8xhHbi.mjs} +9 -5
  25. package/.output/server/_ssr/{router-DVixpJO-.mjs → router-aCaUgVTW.mjs} +3 -3
  26. package/.output/server/{_tanstack-start-manifest_v-BbvWUF4v.mjs → _tanstack-start-manifest_v-cBRxvCjb.mjs} +1 -1
  27. package/.output/server/index.mjs +61 -61
  28. package/package.json +2 -1
  29. package/src/cli/detect-tools.ts +146 -0
  30. package/src/cli/onboard.ts +229 -0
  31. package/src/cli/templates/command-onboard.ts +17 -0
  32. package/src/cli/templates/skill-onboard.ts +325 -0
  33. package/src/cli.ts +185 -163
  34. package/src/components/ProxyViewer.tsx +153 -142
  35. package/src/components/proxy-viewer/LogEntry.tsx +136 -157
  36. package/src/components/proxy-viewer/LogEntryHeader.tsx +147 -66
  37. package/src/components/proxy-viewer/useCopyFeedback.ts +36 -0
  38. package/src/components/ui/json-viewer.tsx +12 -0
  39. package/.output/public/assets/ProxyViewerContainer-WRenRpeh.js +0 -101
  40. package/.output/public/assets/_sessionId-BO47oA3Z.js +0 -1
  41. package/.output/public/assets/index-BRvz6-L6.css +0 -1
  42. package/.output/public/assets/index-Btw8ec7-.js +0 -1
@@ -75,22 +75,22 @@ const createLucideIcon = (iconName, iconNode) => {
75
75
  Component.displayName = toPascalCase(iconName);
76
76
  return Component;
77
77
  };
78
- const __iconNode$O = [
78
+ const __iconNode$Q = [
79
79
  ["path", { d: "M12 5v14", key: "s699le" }],
80
80
  ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }]
81
81
  ];
82
- const ArrowDown = createLucideIcon("arrow-down", __iconNode$O);
83
- const __iconNode$N = [
82
+ const ArrowDown = createLucideIcon("arrow-down", __iconNode$Q);
83
+ const __iconNode$P = [
84
84
  ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
85
85
  ["path", { d: "M19 12H5", key: "x3x0zl" }]
86
86
  ];
87
- const ArrowLeft = createLucideIcon("arrow-left", __iconNode$N);
88
- const __iconNode$M = [
87
+ const ArrowLeft = createLucideIcon("arrow-left", __iconNode$P);
88
+ const __iconNode$O = [
89
89
  ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }],
90
90
  ["path", { d: "M12 19V5", key: "x0mq9r" }]
91
91
  ];
92
- const ArrowUp = createLucideIcon("arrow-up", __iconNode$M);
93
- const __iconNode$L = [
92
+ const ArrowUp = createLucideIcon("arrow-up", __iconNode$O);
93
+ const __iconNode$N = [
94
94
  ["path", { d: "M12 18V5", key: "adv99a" }],
95
95
  ["path", { d: "M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4", key: "1e3is1" }],
96
96
  ["path", { d: "M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5", key: "1gqd8o" }],
@@ -100,80 +100,80 @@ const __iconNode$L = [
100
100
  ["path", { d: "M6 18a4 4 0 0 1-2-7.464", key: "k1g0md" }],
101
101
  ["path", { d: "M6.003 5.125a4 4 0 0 0-2.526 5.77", key: "q97ue3" }]
102
102
  ];
103
- const Brain = createLucideIcon("brain", __iconNode$L);
104
- const __iconNode$K = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
105
- const Check = createLucideIcon("check", __iconNode$K);
106
- const __iconNode$J = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
107
- const ChevronDown = createLucideIcon("chevron-down", __iconNode$J);
108
- const __iconNode$I = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
109
- const ChevronRight = createLucideIcon("chevron-right", __iconNode$I);
110
- const __iconNode$H = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
111
- const ChevronUp = createLucideIcon("chevron-up", __iconNode$H);
112
- const __iconNode$G = [
103
+ const Brain = createLucideIcon("brain", __iconNode$N);
104
+ const __iconNode$M = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]];
105
+ const Check = createLucideIcon("check", __iconNode$M);
106
+ const __iconNode$L = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]];
107
+ const ChevronDown = createLucideIcon("chevron-down", __iconNode$L);
108
+ const __iconNode$K = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]];
109
+ const ChevronRight = createLucideIcon("chevron-right", __iconNode$K);
110
+ const __iconNode$J = [["path", { d: "m18 15-6-6-6 6", key: "153udz" }]];
111
+ const ChevronUp = createLucideIcon("chevron-up", __iconNode$J);
112
+ const __iconNode$I = [
113
113
  ["path", { d: "m7 6 5 5 5-5", key: "1lc07p" }],
114
114
  ["path", { d: "m7 13 5 5 5-5", key: "1d48rs" }]
115
115
  ];
116
- const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$G);
117
- const __iconNode$F = [
116
+ const ChevronsDown = createLucideIcon("chevrons-down", __iconNode$I);
117
+ const __iconNode$H = [
118
118
  ["path", { d: "m17 11-5-5-5 5", key: "e8nh98" }],
119
119
  ["path", { d: "m17 18-5-5-5 5", key: "2avn1x" }]
120
120
  ];
121
- const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$F);
122
- const __iconNode$E = [
121
+ const ChevronsUp = createLucideIcon("chevrons-up", __iconNode$H);
122
+ const __iconNode$G = [
123
123
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
124
124
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
125
125
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
126
126
  ];
127
- const CircleAlert = createLucideIcon("circle-alert", __iconNode$E);
128
- const __iconNode$D = [
127
+ const CircleAlert = createLucideIcon("circle-alert", __iconNode$G);
128
+ const __iconNode$F = [
129
129
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
130
130
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
131
131
  ];
132
- const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$D);
133
- const __iconNode$C = [
132
+ const CircleCheckBig = createLucideIcon("circle-check-big", __iconNode$F);
133
+ const __iconNode$E = [
134
134
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
135
135
  ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
136
136
  ["path", { d: "M12 17h.01", key: "p32p05" }]
137
137
  ];
138
- const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$C);
139
- const __iconNode$B = [
138
+ const CircleQuestionMark = createLucideIcon("circle-question-mark", __iconNode$E);
139
+ const __iconNode$D = [
140
140
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
141
141
  ["rect", { x: "9", y: "9", width: "6", height: "6", rx: "1", key: "1ssd4o" }]
142
142
  ];
143
- const CircleStop = createLucideIcon("circle-stop", __iconNode$B);
144
- const __iconNode$A = [
143
+ const CircleStop = createLucideIcon("circle-stop", __iconNode$D);
144
+ const __iconNode$C = [
145
145
  ["path", { d: "M12 6v6l4 2", key: "mmk7yg" }],
146
146
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]
147
147
  ];
148
- const Clock = createLucideIcon("clock", __iconNode$A);
149
- const __iconNode$z = [
148
+ const Clock = createLucideIcon("clock", __iconNode$C);
149
+ const __iconNode$B = [
150
150
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
151
151
  ["path", { d: "M12 3v18", key: "108xh3" }]
152
152
  ];
153
- const Columns2 = createLucideIcon("columns-2", __iconNode$z);
154
- const __iconNode$y = [
153
+ const Columns2 = createLucideIcon("columns-2", __iconNode$B);
154
+ const __iconNode$A = [
155
155
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
156
156
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
157
157
  ];
158
- const Copy = createLucideIcon("copy", __iconNode$y);
159
- const __iconNode$x = [
158
+ const Copy = createLucideIcon("copy", __iconNode$A);
159
+ const __iconNode$z = [
160
160
  ["path", { d: "M12 15V3", key: "m9g1x1" }],
161
161
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
162
162
  ["path", { d: "m7 10 5 5 5-5", key: "brsn70" }]
163
163
  ];
164
- const Download = createLucideIcon("download", __iconNode$x);
165
- const __iconNode$w = [
164
+ const Download = createLucideIcon("download", __iconNode$z);
165
+ const __iconNode$y = [
166
166
  ["line", { x1: "5", x2: "19", y1: "9", y2: "9", key: "1nwqeh" }],
167
167
  ["line", { x1: "5", x2: "19", y1: "15", y2: "15", key: "g8yjpy" }]
168
168
  ];
169
- const Equal = createLucideIcon("equal", __iconNode$w);
170
- const __iconNode$v = [
169
+ const Equal = createLucideIcon("equal", __iconNode$y);
170
+ const __iconNode$x = [
171
171
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
172
172
  ["path", { d: "M10 14 21 3", key: "gplh6r" }],
173
173
  ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6", key: "a6xqqp" }]
174
174
  ];
175
- const ExternalLink = createLucideIcon("external-link", __iconNode$v);
176
- const __iconNode$u = [
175
+ const ExternalLink = createLucideIcon("external-link", __iconNode$x);
176
+ const __iconNode$w = [
177
177
  [
178
178
  "path",
179
179
  {
@@ -191,8 +191,8 @@ const __iconNode$u = [
191
191
  ],
192
192
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
193
193
  ];
194
- const EyeOff = createLucideIcon("eye-off", __iconNode$u);
195
- const __iconNode$t = [
194
+ const EyeOff = createLucideIcon("eye-off", __iconNode$w);
195
+ const __iconNode$v = [
196
196
  [
197
197
  "path",
198
198
  {
@@ -202,8 +202,21 @@ const __iconNode$t = [
202
202
  ],
203
203
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
204
204
  ];
205
- const Eye = createLucideIcon("eye", __iconNode$t);
206
- const __iconNode$s = [
205
+ const Eye = createLucideIcon("eye", __iconNode$v);
206
+ const __iconNode$u = [
207
+ [
208
+ "path",
209
+ {
210
+ d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",
211
+ key: "1oefj6"
212
+ }
213
+ ],
214
+ ["path", { d: "M9 10h6", key: "9gxzsh" }],
215
+ ["path", { d: "M12 13V7", key: "h0r20n" }],
216
+ ["path", { d: "M9 17h6", key: "r8uit2" }]
217
+ ];
218
+ const FileDiff = createLucideIcon("file-diff", __iconNode$u);
219
+ const __iconNode$t = [
207
220
  [
208
221
  "path",
209
222
  {
@@ -215,13 +228,13 @@ const __iconNode$s = [
215
228
  ["path", { d: "m8 16 2-2-2-2", key: "10vzyd" }],
216
229
  ["path", { d: "M12 18h4", key: "1wd2n7" }]
217
230
  ];
218
- const FileTerminal = createLucideIcon("file-terminal", __iconNode$s);
219
- const __iconNode$r = [
231
+ const FileTerminal = createLucideIcon("file-terminal", __iconNode$t);
232
+ const __iconNode$s = [
220
233
  ["path", { d: "m12 14 4-4", key: "9kzdfg" }],
221
234
  ["path", { d: "M3.34 19a10 10 0 1 1 17.32 0", key: "19p75a" }]
222
235
  ];
223
- const Gauge = createLucideIcon("gauge", __iconNode$r);
224
- const __iconNode$q = [
236
+ const Gauge = createLucideIcon("gauge", __iconNode$s);
237
+ const __iconNode$r = [
225
238
  ["circle", { cx: "5", cy: "6", r: "3", key: "1qnov2" }],
226
239
  ["path", { d: "M12 6h5a2 2 0 0 1 2 2v7", key: "1yj91y" }],
227
240
  ["path", { d: "m15 9-3-3 3-3", key: "1lwv8l" }],
@@ -229,13 +242,19 @@ const __iconNode$q = [
229
242
  ["path", { d: "M12 18H7a2 2 0 0 1-2-2V9", key: "16sdep" }],
230
243
  ["path", { d: "m9 15 3 3-3 3", key: "1m3kbl" }]
231
244
  ];
232
- const GitCompareArrows = createLucideIcon("git-compare-arrows", __iconNode$q);
233
- const __iconNode$p = [
245
+ const GitCompareArrows = createLucideIcon("git-compare-arrows", __iconNode$r);
246
+ const __iconNode$q = [
234
247
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
235
248
  ["path", { d: "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20", key: "13o1zl" }],
236
249
  ["path", { d: "M2 12h20", key: "9i4pu4" }]
237
250
  ];
238
- const Globe = createLucideIcon("globe", __iconNode$p);
251
+ const Globe = createLucideIcon("globe", __iconNode$q);
252
+ const __iconNode$p = [
253
+ ["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "1357e3" }],
254
+ ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
255
+ ["path", { d: "M12 7v5l4 2", key: "1fdv2h" }]
256
+ ];
257
+ const History = createLucideIcon("history", __iconNode$p);
239
258
  const __iconNode$o = [
240
259
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
241
260
  ["path", { d: "M12 16v-4", key: "1dtifu" }],
@@ -418,30 +437,32 @@ const __iconNode = [
418
437
  const Zap = createLucideIcon("zap", __iconNode);
419
438
  export {
420
439
  ArrowLeft as A,
421
- ArrowDown as B,
440
+ ArrowUp as B,
422
441
  Check as C,
423
442
  Download as D,
424
443
  ExternalLink as E,
425
444
  FileTerminal as F,
426
- GitCompareArrows as G,
427
- Rows3 as H,
428
- Columns2 as I,
429
- Equal as J,
430
- Info as K,
445
+ Globe as G,
446
+ History as H,
447
+ ArrowDown as I,
448
+ Rows3 as J,
449
+ Columns2 as K,
431
450
  LoaderCircle as L,
432
451
  MessageSquare as M,
433
- CircleStop as N,
452
+ Equal as N,
434
453
  OctagonAlert as O,
435
454
  Plus as P,
436
- Brain as Q,
455
+ Info as Q,
437
456
  RotateCw as R,
438
457
  Settings as S,
439
458
  Trash2 as T,
440
459
  Upload as U,
441
- Terminal as V,
460
+ CircleStop as V,
442
461
  Wrench as W,
443
462
  X,
463
+ Brain as Y,
444
464
  Zap as Z,
465
+ Terminal as _,
445
466
  Copy as a,
446
467
  ChevronDown as b,
447
468
  Scan as c,
@@ -456,16 +477,16 @@ export {
456
477
  Pencil as l,
457
478
  Minus as m,
458
479
  CircleCheckBig as n,
459
- Globe as o,
460
- Radio as p,
461
- ChevronsUp as q,
462
- ChevronsDown as r,
480
+ Radio as o,
481
+ ChevronsUp as p,
482
+ ChevronsDown as q,
483
+ FileDiff as r,
463
484
  RotateCcw as s,
464
- CircleQuestionMark as t,
465
- Server as u,
466
- Gauge as v,
467
- Lock as w,
468
- Wifi as x,
469
- WifiOff as y,
470
- ArrowUp as z
485
+ GitCompareArrows as t,
486
+ CircleQuestionMark as u,
487
+ Server as v,
488
+ Gauge as w,
489
+ Lock as x,
490
+ Wifi as y,
491
+ WifiOff as z
471
492
  };
@@ -1,6 +1,6 @@
1
1
  import { j as jsxRuntimeExports } from "./_libs/react.mjs";
2
- import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer--3K3o3Sm.mjs";
3
- import { R as Route$j } from "./_ssr/router-DVixpJO-.mjs";
2
+ import { P as ProxyViewerContainer } from "./_ssr/ProxyViewerContainer-B-zDOLYE.mjs";
3
+ import { R as Route$j } from "./_ssr/router-aCaUgVTW.mjs";
4
4
  import "./_libs/jszip.mjs";
5
5
  import "./_libs/modelcontextprotocol__server.mjs";
6
6
  import "./_libs/swr.mjs";
@@ -1,10 +1,10 @@
1
1
  import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
2
- import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens } from "./ProxyViewerContainer--3K3o3Sm.mjs";
3
- import { JsonViewerFromString } from "./json-viewer-B4c_WjXD.mjs";
4
- import "./router-DVixpJO-.mjs";
2
+ import { g as getLogFormatAdapter, r as resolveLogFormat, a as getConversationId, c as cn, B as Badge, f as formatTokens } from "./ProxyViewerContainer-B-zDOLYE.mjs";
3
+ import { JsonViewerFromString } from "./json-viewer-BL8xhHbi.mjs";
4
+ import "./router-aCaUgVTW.mjs";
5
5
  import "../_libs/modelcontextprotocol__server.mjs";
6
6
  import "../_libs/jszip.mjs";
7
- import { X, H as Rows3, I as Columns2, m as Minus, P as Plus, l as Pencil, f as ChevronRight, J as Equal, C as Check, a as Copy } from "../_libs/lucide-react.mjs";
7
+ import { X, J as Rows3, K as Columns2, m as Minus, P as Plus, l as Pencil, f as ChevronRight, N as Equal, C as Check, a as Copy } from "../_libs/lucide-react.mjs";
8
8
  import "../_libs/swr.mjs";
9
9
  import "../_libs/use-sync-external-store.mjs";
10
10
  import "../_libs/dequal.mjs";