@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.
Files changed (57) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/public/assets/index-BpKPXEcb.css +1 -0
  3. package/.output/public/assets/index-Chp_30CP.js +11 -0
  4. package/.output/public/assets/index-DLvqlFS9.js +130 -0
  5. package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +1 -1
  6. package/.output/server/_libs/ajv-formats.mjs +18 -18
  7. package/.output/server/_libs/ajv.mjs +941 -6305
  8. package/.output/server/_libs/cookie-es.mjs +7 -21
  9. package/.output/server/_libs/floating-ui__core.mjs +18 -17
  10. package/.output/server/_libs/floating-ui__dom.mjs +24 -20
  11. package/.output/server/_libs/floating-ui__react-dom.mjs +55 -28
  12. package/.output/server/_libs/floating-ui__utils.mjs +36 -36
  13. package/.output/server/_libs/h3-v2.mjs +20 -9
  14. package/.output/server/_libs/isbot.mjs +3 -2
  15. package/.output/server/_libs/json-schema-traverse.mjs +1 -90
  16. package/.output/server/_libs/jszip.mjs +28 -28
  17. package/.output/server/_libs/mdast-util-from-markdown.mjs +1 -1
  18. package/.output/server/_libs/pako.mjs +13 -13
  19. package/.output/server/_libs/property-information.mjs +13 -1
  20. package/.output/server/_libs/radix-ui__react-collection.mjs +1 -1
  21. package/.output/server/_libs/radix-ui__react-id.mjs +1 -1
  22. package/.output/server/_libs/react-dom.mjs +10 -10
  23. package/.output/server/_libs/react.mjs +44 -44
  24. package/.output/server/_libs/readable-stream.mjs +15 -15
  25. package/.output/server/_libs/rou3.mjs +1 -7
  26. package/.output/server/_libs/safe-buffer.mjs +3 -3
  27. package/.output/server/_libs/semver.mjs +10 -10
  28. package/.output/server/_libs/seroval-plugins.mjs +5 -5
  29. package/.output/server/_libs/seroval.mjs +606 -596
  30. package/.output/server/_libs/srvx.mjs +10 -245
  31. package/.output/server/_libs/swr.mjs +1 -1
  32. package/.output/server/_libs/tailwind-merge.mjs +286 -41
  33. package/.output/server/_libs/tanstack__history.mjs +31 -44
  34. package/.output/server/_libs/tanstack__react-router.mjs +780 -1089
  35. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  36. package/.output/server/_libs/tanstack__react-virtual.mjs +82 -7
  37. package/.output/server/_libs/tanstack__router-core.mjs +2223 -2328
  38. package/.output/server/_libs/tanstack__virtual-core.mjs +58 -17
  39. package/.output/server/_libs/ungap__structured-clone.mjs +14 -2
  40. package/.output/server/_libs/use-sync-external-store.mjs +1 -1
  41. package/.output/server/_libs/zod.mjs +503 -205
  42. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +6 -0
  43. package/.output/server/_ssr/{index-I_Nx8QEB.mjs → index-CYuV1ljD.mjs} +8 -8
  44. package/.output/server/_ssr/index.mjs +1098 -776
  45. package/.output/server/_ssr/{router-BVxfVFsb.mjs → router-e-RbjELX.mjs} +4 -6
  46. package/.output/server/_tanstack-start-manifest_v-C5P5lsG5.mjs +4 -0
  47. package/.output/server/index.mjs +21 -21
  48. package/package.json +1 -1
  49. package/src/components/providers/ProvidersPanel.tsx +4 -2
  50. package/src/components/providers/SettingsDialog.tsx +2 -1
  51. package/src/proxy/dataDir.ts +1 -1
  52. package/.output/public/assets/index-BIZeMR5N.js +0 -105
  53. package/.output/public/assets/index-SmtLx1lM.css +0 -1
  54. package/.output/public/assets/main-QfbQ5oBP.js +0 -17
  55. package/.output/server/_libs/tiny-invariant.mjs +0 -12
  56. package/.output/server/_libs/tiny-warning.mjs +0 -5
  57. package/.output/server/_tanstack-start-manifest_v-Cm2Owszu.mjs +0 -4
@@ -1,39 +1,34 @@
1
- const stateIndexKey = "__TSR_index";
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({ location, action }));
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
- task,
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
- for (const blocker of blockers) {
27
- const nextLocation = parseHref(actionInfo.path, actionInfo.state);
28
- const isBlocked = await blocker.blockerFn({
29
- currentLocation: location,
30
- nextLocation,
31
- action: actionInfo.type
32
- });
33
- if (isBlocked) {
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({ type: "GO", index });
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
- searchIndex,
206
- hashIndex === -1 ? void 0 : hashIndex
207
- ) : "",
208
- state: state || { [stateIndexKey]: 0, key: addedKey, __TSR_key: addedKey }
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() {