@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
@@ -3,7 +3,7 @@ import { Readable, PassThrough } from "node:stream";
3
3
  import { pipeline } from "node:stream/promises";
4
4
  import nodeHTTPS from "node:https";
5
5
  import nodeHTTP2 from "node:http2";
6
- function lazyInherit$1(target, source, sourceKey) {
6
+ function lazyInherit(target, source, sourceKey) {
7
7
  for (const key of [...Object.getOwnPropertyNames(source), ...Object.getOwnPropertySymbols(source)]) {
8
8
  if (key === "constructor") continue;
9
9
  const targetDesc = Object.getOwnPropertyDescriptor(target, key);
@@ -31,7 +31,7 @@ function lazyInherit$1(target, source, sourceKey) {
31
31
  }
32
32
  }
33
33
  const _needsNormRE = /(?:(?:^|\/)(?:\.|\.\.|%2e|%2e\.|\.%2e|%2e%2e)(?:\/|$))|[\\^\x80-\uffff]/i;
34
- const FastURL$1 = /* @__PURE__ */ (() => {
34
+ const FastURL = /* @__PURE__ */ (() => {
35
35
  const NativeURL = globalThis.URL;
36
36
  const FastURL2 = class URL {
37
37
  #url;
@@ -128,7 +128,7 @@ const FastURL$1 = /* @__PURE__ */ (() => {
128
128
  return this.href;
129
129
  }
130
130
  };
131
- lazyInherit$1(FastURL2.prototype, NativeURL.prototype, "_url");
131
+ lazyInherit(FastURL2.prototype, NativeURL.prototype, "_url");
132
132
  Object.setPrototypeOf(FastURL2.prototype, NativeURL.prototype);
133
133
  Object.setPrototypeOf(FastURL2, NativeURL);
134
134
  return FastURL2;
@@ -360,7 +360,7 @@ function streamBody(stream, nodeRes) {
360
360
  });
361
361
  }
362
362
  const HOST_RE = /^(\[(?:[A-Fa-f0-9:.]+)\]|(?:[A-Za-z0-9_-]+\.)*[A-Za-z0-9_-]+|(?:\d{1,3}\.){3}\d{1,3})(:\d{1,5})?$/;
363
- var NodeRequestURL = class extends FastURL$1 {
363
+ var NodeRequestURL = class extends FastURL {
364
364
  #req;
365
365
  constructor({ req }) {
366
366
  const path = req.url || "/";
@@ -441,7 +441,7 @@ const NodeRequestHeaders = /* @__PURE__ */ (() => {
441
441
  return this.entries();
442
442
  }
443
443
  }
444
- lazyInherit$1(Headers2.prototype, NativeHeaders.prototype, "_headers");
444
+ lazyInherit(Headers2.prototype, NativeHeaders.prototype, "_headers");
445
445
  Object.setPrototypeOf(Headers2, NativeHeaders);
446
446
  Object.setPrototypeOf(Headers2.prototype, NativeHeaders.prototype);
447
447
  return Headers2;
@@ -541,7 +541,7 @@ const NodeRequest = /* @__PURE__ */ (() => {
541
541
  return this.#request;
542
542
  }
543
543
  }
544
- lazyInherit$1(Request.prototype, NativeRequest.prototype, "_request");
544
+ lazyInherit(Request.prototype, NativeRequest.prototype, "_request");
545
545
  Object.setPrototypeOf(Request.prototype, NativeRequest.prototype);
546
546
  return Request;
547
547
  })();
@@ -563,7 +563,7 @@ function readBody(req) {
563
563
  req.on("data", onData).once("end", onEnd).once("error", onError);
564
564
  });
565
565
  }
566
- const NodeResponse$1 = /* @__PURE__ */ (() => {
566
+ const NodeResponse = /* @__PURE__ */ (() => {
567
567
  const NativeResponse = globalThis.Response;
568
568
  const STATUS_CODES = globalThis.process?.getBuiltinModule?.("node:http")?.STATUS_CODES || {};
569
569
  class NodeResponse2 {
@@ -666,7 +666,7 @@ const NodeResponse$1 = /* @__PURE__ */ (() => {
666
666
  };
667
667
  }
668
668
  }
669
- lazyInherit$1(NodeResponse2.prototype, NativeResponse.prototype, "_response");
669
+ lazyInherit(NodeResponse2.prototype, NativeResponse.prototype, "_response");
670
670
  Object.setPrototypeOf(NodeResponse2, NativeResponse);
671
671
  Object.setPrototypeOf(NodeResponse2.prototype, NativeResponse.prototype);
672
672
  return NodeResponse2;
@@ -787,243 +787,8 @@ var NodeServer = class {
787
787
  })]);
788
788
  }
789
789
  };
790
- function lazyInherit(target, source, sourceKey) {
791
- for (const key of [...Object.getOwnPropertyNames(source), ...Object.getOwnPropertySymbols(source)]) {
792
- if (key === "constructor") continue;
793
- const targetDesc = Object.getOwnPropertyDescriptor(target, key);
794
- const desc = Object.getOwnPropertyDescriptor(source, key);
795
- let modified = false;
796
- if (desc.get) {
797
- modified = true;
798
- desc.get = targetDesc?.get || function() {
799
- return this[sourceKey][key];
800
- };
801
- }
802
- if (desc.set) {
803
- modified = true;
804
- desc.set = targetDesc?.set || function(value) {
805
- this[sourceKey][key] = value;
806
- };
807
- }
808
- if (!targetDesc?.value && typeof desc.value === "function") {
809
- modified = true;
810
- desc.value = function(...args) {
811
- return this[sourceKey][key](...args);
812
- };
813
- }
814
- if (modified) Object.defineProperty(target, key, desc);
815
- }
816
- }
817
- const FastURL = /* @__PURE__ */ (() => {
818
- const NativeURL = globalThis.URL;
819
- const FastURL2 = class URL {
820
- #url;
821
- #href;
822
- #protocol;
823
- #host;
824
- #pathname;
825
- #search;
826
- #searchParams;
827
- #pos;
828
- constructor(url) {
829
- if (typeof url === "string") this.#href = url;
830
- else {
831
- this.#protocol = url.protocol;
832
- this.#host = url.host;
833
- this.#pathname = url.pathname;
834
- this.#search = url.search;
835
- }
836
- }
837
- static [Symbol.hasInstance](val) {
838
- return val instanceof NativeURL;
839
- }
840
- get _url() {
841
- if (this.#url) return this.#url;
842
- this.#url = new NativeURL(this.href);
843
- this.#href = void 0;
844
- this.#protocol = void 0;
845
- this.#host = void 0;
846
- this.#pathname = void 0;
847
- this.#search = void 0;
848
- this.#searchParams = void 0;
849
- this.#pos = void 0;
850
- return this.#url;
851
- }
852
- get href() {
853
- if (this.#url) return this.#url.href;
854
- if (!this.#href) this.#href = `${this.#protocol || "http:"}//${this.#host || "localhost"}${this.#pathname || "/"}${this.#search || ""}`;
855
- return this.#href;
856
- }
857
- #getPos() {
858
- if (!this.#pos) {
859
- const url = this.href;
860
- const protoIndex = url.indexOf("://");
861
- const pathnameIndex = protoIndex === -1 ? -1 : url.indexOf("/", protoIndex + 4);
862
- this.#pos = [
863
- protoIndex,
864
- pathnameIndex,
865
- pathnameIndex === -1 ? -1 : url.indexOf("?", pathnameIndex)
866
- ];
867
- }
868
- return this.#pos;
869
- }
870
- get pathname() {
871
- if (this.#url) return this.#url.pathname;
872
- if (this.#pathname === void 0) {
873
- const [, pathnameIndex, queryIndex] = this.#getPos();
874
- if (pathnameIndex === -1) return this._url.pathname;
875
- this.#pathname = this.href.slice(pathnameIndex, queryIndex === -1 ? void 0 : queryIndex);
876
- }
877
- return this.#pathname;
878
- }
879
- get search() {
880
- if (this.#url) return this.#url.search;
881
- if (this.#search === void 0) {
882
- const [, pathnameIndex, queryIndex] = this.#getPos();
883
- if (pathnameIndex === -1) return this._url.search;
884
- const url = this.href;
885
- this.#search = queryIndex === -1 || queryIndex === url.length - 1 ? "" : url.slice(queryIndex);
886
- }
887
- return this.#search;
888
- }
889
- get searchParams() {
890
- if (this.#url) return this.#url.searchParams;
891
- if (!this.#searchParams) this.#searchParams = new URLSearchParams(this.search);
892
- return this.#searchParams;
893
- }
894
- get protocol() {
895
- if (this.#url) return this.#url.protocol;
896
- if (this.#protocol === void 0) {
897
- const [protocolIndex] = this.#getPos();
898
- if (protocolIndex === -1) return this._url.protocol;
899
- this.#protocol = this.href.slice(0, protocolIndex + 1);
900
- }
901
- return this.#protocol;
902
- }
903
- toString() {
904
- return this.href;
905
- }
906
- toJSON() {
907
- return this.href;
908
- }
909
- };
910
- lazyInherit(FastURL2.prototype, NativeURL.prototype, "_url");
911
- Object.setPrototypeOf(FastURL2.prototype, NativeURL.prototype);
912
- Object.setPrototypeOf(FastURL2, NativeURL);
913
- return FastURL2;
914
- })();
915
- const NodeResponse = /* @__PURE__ */ (() => {
916
- const NativeResponse = globalThis.Response;
917
- const STATUS_CODES = globalThis.process?.getBuiltinModule?.("node:http")?.STATUS_CODES || {};
918
- class NodeResponse2 {
919
- #body;
920
- #init;
921
- #headers;
922
- #response;
923
- constructor(body, init) {
924
- this.#body = body;
925
- this.#init = init;
926
- }
927
- static [Symbol.hasInstance](val) {
928
- return val instanceof NativeResponse;
929
- }
930
- get status() {
931
- return this.#response?.status || this.#init?.status || 200;
932
- }
933
- get statusText() {
934
- return this.#response?.statusText || this.#init?.statusText || STATUS_CODES[this.status] || "";
935
- }
936
- get headers() {
937
- if (this.#response) return this.#response.headers;
938
- if (this.#headers) return this.#headers;
939
- const initHeaders = this.#init?.headers;
940
- return this.#headers = initHeaders instanceof Headers ? initHeaders : new Headers(initHeaders);
941
- }
942
- get ok() {
943
- if (this.#response) return this.#response.ok;
944
- const status = this.status;
945
- return status >= 200 && status < 300;
946
- }
947
- get _response() {
948
- if (this.#response) return this.#response;
949
- let body = this.#body;
950
- if (body && typeof body.pipe === "function" && !(body instanceof Readable)) {
951
- const stream = new PassThrough();
952
- body.pipe(stream);
953
- const abort = body.abort;
954
- if (abort) stream.once("close", () => abort());
955
- body = stream;
956
- }
957
- this.#response = new NativeResponse(body, this.#headers ? {
958
- ...this.#init,
959
- headers: this.#headers
960
- } : this.#init);
961
- this.#init = void 0;
962
- this.#headers = void 0;
963
- this.#body = void 0;
964
- return this.#response;
965
- }
966
- _toNodeResponse() {
967
- const status = this.status;
968
- const statusText = this.statusText;
969
- let body;
970
- let contentType;
971
- let contentLength;
972
- if (this.#response) body = this.#response.body;
973
- else if (this.#body) if (this.#body instanceof ReadableStream) body = this.#body;
974
- else if (typeof this.#body === "string") {
975
- body = this.#body;
976
- contentType = "text/plain; charset=UTF-8";
977
- contentLength = Buffer.byteLength(this.#body);
978
- } else if (this.#body instanceof ArrayBuffer) {
979
- body = Buffer.from(this.#body);
980
- contentLength = this.#body.byteLength;
981
- } else if (this.#body instanceof Uint8Array) {
982
- body = this.#body;
983
- contentLength = this.#body.byteLength;
984
- } else if (this.#body instanceof DataView) {
985
- body = Buffer.from(this.#body.buffer);
986
- contentLength = this.#body.byteLength;
987
- } else if (this.#body instanceof Blob) {
988
- body = this.#body.stream();
989
- contentType = this.#body.type;
990
- contentLength = this.#body.size;
991
- } else if (typeof this.#body.pipe === "function") body = this.#body;
992
- else body = this._response.body;
993
- const headers = [];
994
- const initHeaders = this.#init?.headers;
995
- const headerEntries = this.#response?.headers || this.#headers || (initHeaders ? Array.isArray(initHeaders) ? initHeaders : initHeaders?.entries ? initHeaders.entries() : Object.entries(initHeaders).map(([k, v]) => [k.toLowerCase(), v]) : void 0);
996
- let hasContentTypeHeader;
997
- let hasContentLength;
998
- if (headerEntries) for (const [key, value] of headerEntries) {
999
- if (Array.isArray(value)) for (const v of value) headers.push([key, v]);
1000
- else headers.push([key, value]);
1001
- if (key === "content-type") hasContentTypeHeader = true;
1002
- else if (key === "content-length") hasContentLength = true;
1003
- }
1004
- if (contentType && !hasContentTypeHeader) headers.push(["content-type", contentType]);
1005
- if (contentLength && !hasContentLength) headers.push(["content-length", String(contentLength)]);
1006
- this.#init = void 0;
1007
- this.#headers = void 0;
1008
- this.#response = void 0;
1009
- this.#body = void 0;
1010
- return {
1011
- status,
1012
- statusText,
1013
- headers,
1014
- body
1015
- };
1016
- }
1017
- }
1018
- lazyInherit(NodeResponse2.prototype, NativeResponse.prototype, "_response");
1019
- Object.setPrototypeOf(NodeResponse2, NativeResponse);
1020
- Object.setPrototypeOf(NodeResponse2.prototype, NativeResponse.prototype);
1021
- return NodeResponse2;
1022
- })();
1023
790
  export {
1024
- FastURL$1 as F,
1025
- NodeResponse$1 as N,
1026
- FastURL as a,
1027
- NodeResponse as b,
791
+ FastURL as F,
792
+ NodeResponse as N,
1028
793
  serve as s
1029
794
  };
@@ -1,4 +1,4 @@
1
- import { r as reactExports, a as React } from "./react.mjs";
1
+ import { r as reactExports, R as React } from "./react.mjs";
2
2
  import { s as shimExports } from "./use-sync-external-store.mjs";
3
3
  import { d as dequal } from "./dequal.mjs";
4
4
  const FOCUS_EVENT = 0;