@tonyclaw/llm-inspector 1.9.6 → 1.9.8
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.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/index-Cc1oV0hF.css +1 -0
- package/.output/public/assets/index-DuukpBQJ.js +122 -0
- package/.output/public/assets/index-NIg9RFlA.js +11 -0
- package/.output/server/_chunks/ssr-renderer.mjs +1 -0
- package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +1 -1
- package/.output/server/_libs/ajv-formats.mjs +18 -18
- package/.output/server/_libs/ajv.mjs +196 -196
- package/.output/server/_libs/cookie-es.mjs +7 -21
- package/.output/server/_libs/h3-v2.mjs +18 -7
- package/.output/server/_libs/h3.mjs +24 -16
- package/.output/server/_libs/jszip.mjs +28 -28
- package/.output/server/_libs/pako.mjs +13 -13
- package/.output/server/_libs/radix-ui__react-collection.mjs +1 -1
- package/.output/server/_libs/radix-ui__react-id.mjs +1 -1
- package/.output/server/_libs/react-dom.mjs +5 -5
- package/.output/server/_libs/react.mjs +43 -43
- package/.output/server/_libs/readable-stream.mjs +15 -15
- package/.output/server/_libs/safe-buffer.mjs +3 -3
- package/.output/server/_libs/semver.mjs +10 -10
- package/.output/server/_libs/seroval-plugins.mjs +5 -5
- package/.output/server/_libs/seroval.mjs +606 -596
- package/.output/server/_libs/srvx.mjs +110 -46
- package/.output/server/_libs/swr.mjs +1 -1
- package/.output/server/_libs/tanstack__history.mjs +31 -44
- package/.output/server/_libs/tanstack__react-router.mjs +781 -1090
- package/.output/server/_libs/tanstack__router-core.mjs +2223 -2328
- package/.output/server/_libs/tslib.mjs +5 -5
- package/.output/server/_libs/use-sync-external-store.mjs +1 -1
- package/.output/server/_libs/zod.mjs +503 -205
- package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +6 -0
- package/.output/server/_ssr/{index--OdB29Fv.mjs → index-BnKtV0Rq.mjs} +31 -13
- package/.output/server/_ssr/index.mjs +1100 -777
- package/.output/server/_ssr/{router-CY_hgLPo.mjs → router-CQ7QyRWm.mjs} +26 -7
- package/.output/server/_tanstack-start-manifest_v-CKgCX0Gs.mjs +4 -0
- package/.output/server/index.mjs +28 -27
- package/README.md +50 -11
- package/package.json +1 -1
- package/src/components/proxy-viewer/formats/anthropic/ContentBlocks.tsx +35 -2
- package/src/components/proxy-viewer/formats/openai/ResponseView.tsx +25 -11
- package/src/proxy/formats/openai/schemas.ts +6 -0
- package/src/proxy/formats/openai/stream.ts +8 -0
- package/src/proxy/handler.ts +6 -2
- package/.output/public/assets/index-Bjuk3Pry.css +0 -1
- package/.output/public/assets/index-DtK6Ymig.js +0 -97
- package/.output/public/assets/main-ClWp6y0D.js +0 -17
- package/.output/server/_libs/tiny-invariant.mjs +0 -12
- package/.output/server/_libs/tiny-warning.mjs +0 -5
- package/.output/server/_tanstack-start-manifest_v-bpFJzmyh.mjs +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports,
|
|
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
|
|
10
|
-
Object.defineProperty(exports
|
|
11
|
-
exports
|
|
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
|
|
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
|
|
63
|
-
...exports
|
|
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
|
|
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
|
|
215
|
-
Object.defineProperty(exports
|
|
216
|
-
exports
|
|
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
|
|
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
|
|
276
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
277
277
|
return ajv;
|
|
278
278
|
};
|
|
279
|
-
exports
|
|
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
|
|
288
|
-
Object.defineProperty(exports
|
|
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
|
|
321
|
-
Object.defineProperty(exports
|
|
322
|
-
exports
|
|
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
|
}
|