@tonyclaw/llm-inspector 1.9.6 → 1.9.7

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 (49) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/index-Cc1oV0hF.css +1 -0
  3. package/.output/public/assets/index-DTjsqi6U.js +11 -0
  4. package/.output/public/assets/index-DrYcBTSK.js +122 -0
  5. package/.output/server/_chunks/ssr-renderer.mjs +1 -0
  6. package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +1 -1
  7. package/.output/server/_libs/ajv-formats.mjs +18 -18
  8. package/.output/server/_libs/ajv.mjs +196 -196
  9. package/.output/server/_libs/cookie-es.mjs +7 -21
  10. package/.output/server/_libs/h3-v2.mjs +18 -7
  11. package/.output/server/_libs/h3.mjs +24 -16
  12. package/.output/server/_libs/jszip.mjs +28 -28
  13. package/.output/server/_libs/pako.mjs +13 -13
  14. package/.output/server/_libs/radix-ui__react-collection.mjs +1 -1
  15. package/.output/server/_libs/radix-ui__react-id.mjs +1 -1
  16. package/.output/server/_libs/react-dom.mjs +5 -5
  17. package/.output/server/_libs/react.mjs +43 -43
  18. package/.output/server/_libs/readable-stream.mjs +15 -15
  19. package/.output/server/_libs/safe-buffer.mjs +3 -3
  20. package/.output/server/_libs/semver.mjs +10 -10
  21. package/.output/server/_libs/seroval-plugins.mjs +5 -5
  22. package/.output/server/_libs/seroval.mjs +606 -596
  23. package/.output/server/_libs/srvx.mjs +110 -46
  24. package/.output/server/_libs/swr.mjs +1 -1
  25. package/.output/server/_libs/tanstack__history.mjs +31 -44
  26. package/.output/server/_libs/tanstack__react-router.mjs +781 -1090
  27. package/.output/server/_libs/tanstack__router-core.mjs +2223 -2328
  28. package/.output/server/_libs/tslib.mjs +5 -5
  29. package/.output/server/_libs/use-sync-external-store.mjs +1 -1
  30. package/.output/server/_libs/zod.mjs +503 -205
  31. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +6 -0
  32. package/.output/server/_ssr/{index--OdB29Fv.mjs → index-Lxfn0bBE.mjs} +31 -13
  33. package/.output/server/_ssr/index.mjs +1100 -777
  34. package/.output/server/_ssr/{router-CY_hgLPo.mjs → router-CXva8nm-.mjs} +26 -7
  35. package/.output/server/_tanstack-start-manifest_v-Cb2CDJtB.mjs +4 -0
  36. package/.output/server/index.mjs +26 -25
  37. package/README.md +50 -11
  38. package/package.json +1 -1
  39. package/src/components/proxy-viewer/formats/anthropic/ContentBlocks.tsx +35 -2
  40. package/src/components/proxy-viewer/formats/openai/ResponseView.tsx +25 -11
  41. package/src/proxy/formats/openai/schemas.ts +6 -0
  42. package/src/proxy/formats/openai/stream.ts +8 -0
  43. package/src/proxy/handler.ts +6 -2
  44. package/.output/public/assets/index-Bjuk3Pry.css +0 -1
  45. package/.output/public/assets/index-DtK6Ymig.js +0 -97
  46. package/.output/public/assets/main-ClWp6y0D.js +0 -17
  47. package/.output/server/_libs/tiny-invariant.mjs +0 -12
  48. package/.output/server/_libs/tiny-warning.mjs +0 -5
  49. package/.output/server/_tanstack-start-manifest_v-bpFJzmyh.mjs +0 -4
@@ -3,6 +3,7 @@ import "../_libs/rou3.mjs";
3
3
  import "../_libs/srvx.mjs";
4
4
  import "node:http";
5
5
  import "node:stream";
6
+ import "node:stream/promises";
6
7
  import "node:https";
7
8
  import "node:http2";
8
9
  function fetchViteEnv(viteEnvName, input, init) {
@@ -1,4 +1,4 @@
1
- import { r as reactExports, R as React } from "../react.mjs";
1
+ import { r as reactExports, b as React } from "../react.mjs";
2
2
  import { u as useLayoutEffect2 } from "./react-use-layout-effect+[...].mjs";
3
3
  var useInsertionEffect = React[" useInsertionEffect ".trim().toString()] || useLayoutEffect2;
4
4
  function useControllableState({
@@ -6,13 +6,13 @@ var hasRequiredFormats;
6
6
  function requireFormats() {
7
7
  if (hasRequiredFormats) return formats;
8
8
  hasRequiredFormats = 1;
9
- (function(exports$1) {
10
- Object.defineProperty(exports$1, "__esModule", { value: true });
11
- exports$1.formatNames = exports$1.fastFormats = exports$1.fullFormats = void 0;
9
+ (function(exports) {
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
12
12
  function fmtDef(validate, compare) {
13
13
  return { validate, compare };
14
14
  }
15
- exports$1.fullFormats = {
15
+ exports.fullFormats = {
16
16
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
17
17
  date: fmtDef(date, compareDate),
18
18
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -59,8 +59,8 @@ function requireFormats() {
59
59
  // unchecked string payload
60
60
  binary: true
61
61
  };
62
- exports$1.fastFormats = {
63
- ...exports$1.fullFormats,
62
+ exports.fastFormats = {
63
+ ...exports.fullFormats,
64
64
  date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
65
65
  time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
66
66
  "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
@@ -74,7 +74,7 @@ function requireFormats() {
74
74
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
75
75
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
76
76
  };
77
- exports$1.formatNames = Object.keys(exports$1.fullFormats);
77
+ exports.formatNames = Object.keys(exports.fullFormats);
78
78
  function isLeapYear(year) {
79
79
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
80
80
  }
@@ -211,9 +211,9 @@ var hasRequiredLimit;
211
211
  function requireLimit() {
212
212
  if (hasRequiredLimit) return limit;
213
213
  hasRequiredLimit = 1;
214
- (function(exports$1) {
215
- Object.defineProperty(exports$1, "__esModule", { value: true });
216
- exports$1.formatLimitDefinition = void 0;
214
+ (function(exports) {
215
+ Object.defineProperty(exports, "__esModule", { value: true });
216
+ exports.formatLimitDefinition = void 0;
217
217
  const ajv_1 = /* @__PURE__ */ requireAjv();
218
218
  const codegen_1 = /* @__PURE__ */ requireCodegen();
219
219
  const ops = codegen_1.operators;
@@ -227,7 +227,7 @@ function requireLimit() {
227
227
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
228
228
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
229
229
  };
230
- exports$1.formatLimitDefinition = {
230
+ exports.formatLimitDefinition = {
231
231
  keyword: Object.keys(KWDs),
232
232
  type: "string",
233
233
  schemaType: "string",
@@ -273,10 +273,10 @@ function requireLimit() {
273
273
  dependencies: ["format"]
274
274
  };
275
275
  const formatLimitPlugin = (ajv) => {
276
- ajv.addKeyword(exports$1.formatLimitDefinition);
276
+ ajv.addKeyword(exports.formatLimitDefinition);
277
277
  return ajv;
278
278
  };
279
- exports$1.default = formatLimitPlugin;
279
+ exports.default = formatLimitPlugin;
280
280
  })(limit);
281
281
  return limit;
282
282
  }
@@ -284,8 +284,8 @@ var hasRequiredDist;
284
284
  function requireDist() {
285
285
  if (hasRequiredDist) return dist.exports;
286
286
  hasRequiredDist = 1;
287
- (function(module, exports$1) {
288
- Object.defineProperty(exports$1, "__esModule", { value: true });
287
+ (function(module, exports) {
288
+ Object.defineProperty(exports, "__esModule", { value: true });
289
289
  const formats_1 = /* @__PURE__ */ requireFormats();
290
290
  const limit_1 = /* @__PURE__ */ requireLimit();
291
291
  const codegen_1 = /* @__PURE__ */ requireCodegen();
@@ -317,9 +317,9 @@ function requireDist() {
317
317
  for (const f of list)
318
318
  ajv.addFormat(f, fs[f]);
319
319
  }
320
- module.exports = exports$1 = formatsPlugin;
321
- Object.defineProperty(exports$1, "__esModule", { value: true });
322
- exports$1.default = formatsPlugin;
320
+ module.exports = exports = formatsPlugin;
321
+ Object.defineProperty(exports, "__esModule", { value: true });
322
+ exports.default = formatsPlugin;
323
323
  })(dist, dist.exports);
324
324
  return dist.exports;
325
325
  }