@tonyclaw/llm-inspector 1.11.0 → 1.11.2
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-BpKPXEcb.css +1 -0
- package/.output/public/assets/index-Chp_30CP.js +11 -0
- package/.output/public/assets/index-DLvqlFS9.js +130 -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 +941 -6305
- package/.output/server/_libs/cookie-es.mjs +7 -21
- package/.output/server/_libs/floating-ui__core.mjs +18 -17
- package/.output/server/_libs/floating-ui__dom.mjs +24 -20
- package/.output/server/_libs/floating-ui__react-dom.mjs +55 -28
- package/.output/server/_libs/floating-ui__utils.mjs +36 -36
- package/.output/server/_libs/h3-v2.mjs +20 -9
- package/.output/server/_libs/isbot.mjs +3 -2
- package/.output/server/_libs/json-schema-traverse.mjs +1 -90
- package/.output/server/_libs/jszip.mjs +28 -28
- package/.output/server/_libs/mdast-util-from-markdown.mjs +1 -1
- package/.output/server/_libs/pako.mjs +13 -13
- package/.output/server/_libs/property-information.mjs +13 -1
- 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 +10 -10
- package/.output/server/_libs/react.mjs +44 -44
- package/.output/server/_libs/readable-stream.mjs +15 -15
- package/.output/server/_libs/rou3.mjs +1 -7
- 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 +10 -245
- package/.output/server/_libs/swr.mjs +1 -1
- package/.output/server/_libs/tailwind-merge.mjs +286 -41
- package/.output/server/_libs/tanstack__history.mjs +31 -44
- package/.output/server/_libs/tanstack__react-router.mjs +780 -1089
- package/.output/server/_libs/tanstack__react-store.mjs +1 -1
- package/.output/server/_libs/tanstack__react-virtual.mjs +82 -7
- package/.output/server/_libs/tanstack__router-core.mjs +2223 -2328
- package/.output/server/_libs/tanstack__virtual-core.mjs +58 -17
- package/.output/server/_libs/ungap__structured-clone.mjs +14 -2
- 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-I_Nx8QEB.mjs → index-CYuV1ljD.mjs} +8 -8
- package/.output/server/_ssr/index.mjs +1098 -776
- package/.output/server/_ssr/{router-BVxfVFsb.mjs → router-e-RbjELX.mjs} +4 -6
- package/.output/server/_tanstack-start-manifest_v-C5P5lsG5.mjs +4 -0
- package/.output/server/index.mjs +21 -21
- package/package.json +1 -1
- package/src/components/providers/ProvidersPanel.tsx +4 -2
- package/src/components/providers/SettingsDialog.tsx +2 -1
- package/src/proxy/dataDir.ts +1 -1
- package/.output/public/assets/index-BIZeMR5N.js +0 -105
- package/.output/public/assets/index-SmtLx1lM.css +0 -1
- package/.output/public/assets/main-QfbQ5oBP.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-Cm2Owszu.mjs +0 -4
|
@@ -1,39 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
var stateIndexKey = "__TSR_index";
|
|
2
2
|
function createHistory(opts) {
|
|
3
3
|
let location = opts.getLocation();
|
|
4
4
|
const subscribers = /* @__PURE__ */ new Set();
|
|
5
5
|
const notify = (action) => {
|
|
6
6
|
location = opts.getLocation();
|
|
7
|
-
subscribers.forEach((subscriber) => subscriber({
|
|
7
|
+
subscribers.forEach((subscriber) => subscriber({
|
|
8
|
+
location,
|
|
9
|
+
action
|
|
10
|
+
}));
|
|
8
11
|
};
|
|
9
12
|
const handleIndexChange = (action) => {
|
|
10
13
|
if (opts.notifyOnIndexChange ?? true) notify(action);
|
|
11
14
|
else location = opts.getLocation();
|
|
12
15
|
};
|
|
13
|
-
const tryNavigation = async ({
|
|
14
|
-
|
|
15
|
-
navigateOpts,
|
|
16
|
-
...actionInfo
|
|
17
|
-
}) => {
|
|
18
|
-
const ignoreBlocker = navigateOpts?.ignoreBlocker ?? false;
|
|
19
|
-
if (ignoreBlocker) {
|
|
16
|
+
const tryNavigation = async ({ task, navigateOpts, ...actionInfo }) => {
|
|
17
|
+
if (navigateOpts?.ignoreBlocker ?? false) {
|
|
20
18
|
task();
|
|
21
19
|
return;
|
|
22
20
|
}
|
|
23
21
|
const blockers = opts.getBlockers?.() ?? [];
|
|
24
22
|
const isPushOrReplace = actionInfo.type === "PUSH" || actionInfo.type === "REPLACE";
|
|
25
|
-
if (typeof document !== "undefined" && blockers.length && isPushOrReplace) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
opts.onBlocked?.();
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
23
|
+
if (typeof document !== "undefined" && blockers.length && isPushOrReplace) for (const blocker of blockers) {
|
|
24
|
+
const nextLocation = parseHref(actionInfo.path, actionInfo.state);
|
|
25
|
+
if (await blocker.blockerFn({
|
|
26
|
+
currentLocation: location,
|
|
27
|
+
nextLocation,
|
|
28
|
+
action: actionInfo.type
|
|
29
|
+
})) {
|
|
30
|
+
opts.onBlocked?.();
|
|
31
|
+
return;
|
|
37
32
|
}
|
|
38
33
|
}
|
|
39
34
|
task();
|
|
@@ -84,7 +79,10 @@ function createHistory(opts) {
|
|
|
84
79
|
tryNavigation({
|
|
85
80
|
task: () => {
|
|
86
81
|
opts.go(index);
|
|
87
|
-
handleIndexChange({
|
|
82
|
+
handleIndexChange({
|
|
83
|
+
type: "GO",
|
|
84
|
+
index
|
|
85
|
+
});
|
|
88
86
|
},
|
|
89
87
|
navigateOpts,
|
|
90
88
|
type: "GO"
|
|
@@ -128,26 +126,19 @@ function createHistory(opts) {
|
|
|
128
126
|
};
|
|
129
127
|
}
|
|
130
128
|
function assignKeyAndIndex(index, state) {
|
|
131
|
-
if (!state) {
|
|
132
|
-
state = {};
|
|
133
|
-
}
|
|
129
|
+
if (!state) state = {};
|
|
134
130
|
const key = createRandomKey();
|
|
135
131
|
return {
|
|
136
132
|
...state,
|
|
137
133
|
key,
|
|
138
|
-
// TODO: Remove in v2 - use __TSR_key instead
|
|
139
134
|
__TSR_key: key,
|
|
140
135
|
[stateIndexKey]: index
|
|
141
136
|
};
|
|
142
137
|
}
|
|
143
|
-
function createMemoryHistory(opts = {
|
|
144
|
-
initialEntries: ["/"]
|
|
145
|
-
}) {
|
|
138
|
+
function createMemoryHistory(opts = { initialEntries: ["/"] }) {
|
|
146
139
|
const entries = opts.initialEntries;
|
|
147
140
|
let index = opts.initialIndex ? Math.min(Math.max(opts.initialIndex, 0), entries.length - 1) : entries.length - 1;
|
|
148
|
-
const states = entries.map(
|
|
149
|
-
(_entry, index2) => assignKeyAndIndex(index2, void 0)
|
|
150
|
-
);
|
|
141
|
+
const states = entries.map((_entry, index2) => assignKeyAndIndex(index2, void 0));
|
|
151
142
|
const getLocation = () => parseHref(entries[index], states[index]);
|
|
152
143
|
let blockers = [];
|
|
153
144
|
const _getBlockers = () => blockers;
|
|
@@ -184,9 +175,7 @@ function createMemoryHistory(opts = {
|
|
|
184
175
|
}
|
|
185
176
|
function sanitizePath(path) {
|
|
186
177
|
let sanitized = path.replace(/[\x00-\x1f\x7f]/g, "");
|
|
187
|
-
if (sanitized.startsWith("//"))
|
|
188
|
-
sanitized = "/" + sanitized.replace(/^\/+/, "");
|
|
189
|
-
}
|
|
178
|
+
if (sanitized.startsWith("//")) sanitized = "/" + sanitized.replace(/^\/+/, "");
|
|
190
179
|
return sanitized;
|
|
191
180
|
}
|
|
192
181
|
function parseHref(href, state) {
|
|
@@ -196,16 +185,14 @@ function parseHref(href, state) {
|
|
|
196
185
|
const addedKey = createRandomKey();
|
|
197
186
|
return {
|
|
198
187
|
href: sanitizedHref,
|
|
199
|
-
pathname: sanitizedHref.substring(
|
|
200
|
-
0,
|
|
201
|
-
hashIndex > 0 ? searchIndex > 0 ? Math.min(hashIndex, searchIndex) : hashIndex : searchIndex > 0 ? searchIndex : sanitizedHref.length
|
|
202
|
-
),
|
|
188
|
+
pathname: sanitizedHref.substring(0, hashIndex > 0 ? searchIndex > 0 ? Math.min(hashIndex, searchIndex) : hashIndex : searchIndex > 0 ? searchIndex : sanitizedHref.length),
|
|
203
189
|
hash: hashIndex > -1 ? sanitizedHref.substring(hashIndex) : "",
|
|
204
|
-
search: searchIndex > -1 ? sanitizedHref.slice(
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
190
|
+
search: searchIndex > -1 ? sanitizedHref.slice(searchIndex, hashIndex === -1 ? void 0 : hashIndex) : "",
|
|
191
|
+
state: state || {
|
|
192
|
+
[stateIndexKey]: 0,
|
|
193
|
+
key: addedKey,
|
|
194
|
+
__TSR_key: addedKey
|
|
195
|
+
}
|
|
209
196
|
};
|
|
210
197
|
}
|
|
211
198
|
function createRandomKey() {
|