@tonyclaw/agent-inspector 4.0.7 → 4.0.9

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 (119) hide show
  1. package/.output/backend/nitro.json +1 -1
  2. package/.output/cli.js +915 -25970
  3. package/.output/server/_chunks/ssr-renderer.mjs +1 -38
  4. package/.output/server/_libs/@opentelemetry/semantic-conventions+[...].mjs +1 -2658
  5. package/.output/server/_libs/agent-base.mjs +2 -234
  6. package/.output/server/_libs/ajv-formats.mjs +1 -330
  7. package/.output/server/_libs/ajv.mjs +8 -6080
  8. package/.output/server/_libs/anthropic-ai__sdk.mjs +19 -6021
  9. package/.output/server/_libs/atomically.mjs +1 -155
  10. package/.output/server/_libs/base64-js.mjs +1 -102
  11. package/.output/server/_libs/bignumber.js.mjs +1 -1353
  12. package/.output/server/_libs/buffer-equal-constant-time.mjs +1 -38
  13. package/.output/server/_libs/conf.mjs +1 -635
  14. package/.output/server/_libs/cookie-es.mjs +1 -44
  15. package/.output/server/_libs/core-util-is.mjs +1 -75
  16. package/.output/server/_libs/data-uri-to-buffer.mjs +1 -39
  17. package/.output/server/_libs/debounce-fn.mjs +1 -69
  18. package/.output/server/_libs/debug.mjs +5 -547
  19. package/.output/server/_libs/dot-prop.mjs +1 -265
  20. package/.output/server/_libs/ecdsa-sig-formatter.mjs +1 -162
  21. package/.output/server/_libs/env-paths.mjs +1 -57
  22. package/.output/server/_libs/extend.mjs +1 -94
  23. package/.output/server/_libs/fast-deep-equal.mjs +1 -38
  24. package/.output/server/_libs/fast-uri.mjs +1 -812
  25. package/.output/server/_libs/fetch-blob.mjs +1 -287
  26. package/.output/server/_libs/formdata-polyfill.mjs +9 -86
  27. package/.output/server/_libs/gaxios.mjs +5 -926
  28. package/.output/server/_libs/gcp-metadata.mjs +1 -322
  29. package/.output/server/_libs/google-auth-library.mjs +16 -6339
  30. package/.output/server/_libs/google-logging-utils.mjs +1 -385
  31. package/.output/server/_libs/google__genai.mjs +13 -18034
  32. package/.output/server/_libs/h3-v2.mjs +2 -287
  33. package/.output/server/_libs/h3.mjs +2 -408
  34. package/.output/server/_libs/has-flag.mjs +1 -16
  35. package/.output/server/_libs/https-proxy-agent.mjs +7 -280
  36. package/.output/server/_libs/immediate.mjs +1 -74
  37. package/.output/server/_libs/inherits.mjs +1 -50
  38. package/.output/server/_libs/isarray.mjs +1 -14
  39. package/.output/server/_libs/isbot.mjs +1 -20
  40. package/.output/server/_libs/json-bigint.mjs +8 -413
  41. package/.output/server/_libs/json-schema-traverse.mjs +1 -91
  42. package/.output/server/_libs/jszip.mjs +2 -3051
  43. package/.output/server/_libs/jwa.mjs +3 -233
  44. package/.output/server/_libs/jws.mjs +1 -298
  45. package/.output/server/_libs/lie.mjs +1 -273
  46. package/.output/server/_libs/mariozechner__pi-agent-core.mjs +1 -824
  47. package/.output/server/_libs/mariozechner__pi-ai.mjs +34 -22887
  48. package/.output/server/_libs/mimic-function.mjs +2 -47
  49. package/.output/server/_libs/mistralai__mistralai.mjs +7 -32045
  50. package/.output/server/_libs/modelcontextprotocol__core.mjs +1 -1121
  51. package/.output/server/_libs/modelcontextprotocol__server.mjs +13 -13205
  52. package/.output/server/_libs/ms.mjs +1 -120
  53. package/.output/server/_libs/node-domexception.mjs +1 -17
  54. package/.output/server/_libs/node-fetch.mjs +4 -1578
  55. package/.output/server/_libs/ohash.mjs +1 -1
  56. package/.output/server/_libs/openai.mjs +23 -6766
  57. package/.output/server/_libs/opentelemetry__api.mjs +1 -1678
  58. package/.output/server/_libs/p-retry.mjs +1 -87
  59. package/.output/server/_libs/pako.mjs +1 -4223
  60. package/.output/server/_libs/partial-json.mjs +2 -244
  61. package/.output/server/_libs/process-nextick-args.mjs +1 -48
  62. package/.output/server/_libs/react-dom.mjs +62 -10778
  63. package/.output/server/_libs/react.mjs +1 -519
  64. package/.output/server/_libs/readable-stream.mjs +1 -1518
  65. package/.output/server/_libs/retry.mjs +1 -236
  66. package/.output/server/_libs/rou3.mjs +1 -14
  67. package/.output/server/_libs/safe-buffer.mjs +1 -126
  68. package/.output/server/_libs/semver.mjs +1 -1938
  69. package/.output/server/_libs/seroval-plugins.mjs +1 -58
  70. package/.output/server/_libs/seroval.mjs +3 -1775
  71. package/.output/server/_libs/setimmediate.mjs +1 -152
  72. package/.output/server/_libs/srvx.mjs +4 -1390
  73. package/.output/server/_libs/stubborn-fs.mjs +1 -91
  74. package/.output/server/_libs/stubborn-utils.mjs +1 -66
  75. package/.output/server/_libs/supports-color.mjs +1 -108
  76. package/.output/server/_libs/tanstack__history.mjs +1 -230
  77. package/.output/server/_libs/tanstack__react-router.mjs +1 -848
  78. package/.output/server/_libs/tanstack__react-store.mjs +1 -1
  79. package/.output/server/_libs/tanstack__router-core.mjs +1 -4839
  80. package/.output/server/_libs/typebox.mjs +3 -6596
  81. package/.output/server/_libs/ufo.mjs +1 -54
  82. package/.output/server/_libs/uint8array-extras.mjs +1 -69
  83. package/.output/server/_libs/util-deprecate.mjs +1 -12
  84. package/.output/server/_libs/web-streams-polyfill.mjs +1 -4282
  85. package/.output/server/_libs/when-exit.mjs +1 -53
  86. package/.output/server/_libs/ws.mjs +7 -3715
  87. package/.output/server/_libs/zod-to-json-schema.mjs +5 -1207
  88. package/.output/server/_libs/zod.mjs +59 -9958
  89. package/.output/server/_ssr/empty-plugin-adapters-C3Q1xu4u.mjs +1 -0
  90. package/.output/server/_ssr/index.mjs +2 -1512
  91. package/.output/server/_ssr/publicBasePathContext--TAQS2_5.mjs +1 -0
  92. package/.output/server/_ssr/router-zSWaME0l.mjs +341 -0
  93. package/.output/server/_ssr/start-PDVGOqUN.mjs +1 -0
  94. package/.output/server/_tanstack-start-manifest_v-D7cKwKzM.mjs +1 -0
  95. package/.output/server/index.mjs +1 -320
  96. package/.output/ui/assets/{CompareDrawer-fWsmegqc.js → CompareDrawer-C6KvvPtJ.js} +1 -1
  97. package/.output/ui/assets/{InspectorPet-Z9XIA0t8.js → InspectorPet-CSH6OAhB.js} +1 -1
  98. package/.output/ui/assets/{ProxyViewerContainer-DhIB_ZAU.js → ProxyViewerContainer-vPd7g0Xn.js} +4 -4
  99. package/.output/ui/assets/{ReplayDialog-w_3PENIi.js → ReplayDialog-DbXUcT39.js} +1 -1
  100. package/.output/ui/assets/{RequestAnatomy-Dix0D4G6.js → RequestAnatomy-BWOCIN7J.js} +1 -1
  101. package/.output/ui/assets/{ResponseView-BtlbxW2o.js → ResponseView-BqDbTzFs.js} +1 -1
  102. package/.output/ui/assets/{StreamingChunkSequence-BqNQJASb.js → StreamingChunkSequence-UHl2g6w6.js} +1 -1
  103. package/.output/ui/assets/{_sessionId-DPiw4uu2.js → _sessionId-B2S61lDJ.js} +1 -1
  104. package/.output/ui/assets/{_sessionId-Bo9J8C5J.js → _sessionId-CS6hqj8-.js} +1 -1
  105. package/.output/ui/assets/{index-BL5id77_.js → index-C6V66rNI.js} +1 -1
  106. package/.output/ui/assets/{index-icwV1YtX.js → index-DY5xBYHr.js} +1 -1
  107. package/.output/ui/assets/{index-Wd6TK76x.js → index-DgyIeqyV.js} +2 -2
  108. package/.output/ui/assets/{index-CWSVfojK.js → index-HLs5jTyi.js} +1 -1
  109. package/.output/ui/assets/{json-viewer-Cpr3uw1I.js → json-viewer-i5LcN8e7.js} +1 -1
  110. package/.output/ui/assets/{jszip.min-Cncg6JOi.js → jszip.min-yNpb9qnf.js} +1 -1
  111. package/.output/ui/index.html +1 -1
  112. package/.output/workers/logFinalizer.worker.js +41 -17739
  113. package/.output/workers/sessionWorkerEntry.js +41 -17735
  114. package/package.json +7 -7
  115. package/.output/server/_ssr/empty-plugin-adapters-BFgPZ6_d.mjs +0 -6
  116. package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +0 -176
  117. package/.output/server/_ssr/router-weYHAqCb.mjs +0 -27177
  118. package/.output/server/_ssr/start-COQu_AgD.mjs +0 -57
  119. package/.output/server/_tanstack-start-manifest_v-ClTaMkEj.mjs +0 -4
@@ -1,44 +1 @@
1
- function splitSetCookieString(cookiesString) {
2
- if (Array.isArray(cookiesString)) return cookiesString.flatMap((c) => splitSetCookieString(c));
3
- if (typeof cookiesString !== "string") return [];
4
- const cookiesStrings = [];
5
- let pos = 0;
6
- let start;
7
- let ch;
8
- let lastComma;
9
- let nextStart;
10
- let cookiesSeparatorFound;
11
- const skipWhitespace = () => {
12
- while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) pos += 1;
13
- return pos < cookiesString.length;
14
- };
15
- const notSpecialChar = () => {
16
- ch = cookiesString.charAt(pos);
17
- return ch !== "=" && ch !== ";" && ch !== ",";
18
- };
19
- while (pos < cookiesString.length) {
20
- start = pos;
21
- cookiesSeparatorFound = false;
22
- while (skipWhitespace()) {
23
- ch = cookiesString.charAt(pos);
24
- if (ch === ",") {
25
- lastComma = pos;
26
- pos += 1;
27
- skipWhitespace();
28
- nextStart = pos;
29
- while (pos < cookiesString.length && notSpecialChar()) pos += 1;
30
- if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
31
- cookiesSeparatorFound = true;
32
- pos = nextStart;
33
- cookiesStrings.push(cookiesString.slice(start, lastComma));
34
- start = pos;
35
- } else pos = lastComma + 1;
36
- } else pos += 1;
37
- }
38
- if (!cookiesSeparatorFound || pos >= cookiesString.length) cookiesStrings.push(cookiesString.slice(start));
39
- }
40
- return cookiesStrings;
41
- }
42
- export {
43
- splitSetCookieString as s
44
- };
1
+ function A(e){if(Array.isArray(e))return e.flatMap(n=>A(n));if(typeof e!="string")return[];const h=[];let t=0,a,l,r,s,p;const u=()=>{for(;t<e.length&&/\s/.test(e.charAt(t));)t+=1;return t<e.length},f=()=>(l=e.charAt(t),l!=="="&&l!==";"&&l!==",");for(;t<e.length;){for(a=t,p=!1;u();)if(l=e.charAt(t),l===","){for(r=t,t+=1,u(),s=t;t<e.length&&f();)t+=1;t<e.length&&e.charAt(t)==="="?(p=!0,t=s,h.push(e.slice(a,r)),a=t):t=r+1}else t+=1;(!p||t>=e.length)&&h.push(e.slice(a))}return h}export{A as s};
@@ -1,75 +1 @@
1
- import require$$0 from "buffer";
2
- var util = {};
3
- var hasRequiredUtil;
4
- function requireUtil() {
5
- if (hasRequiredUtil) return util;
6
- hasRequiredUtil = 1;
7
- function isArray(arg) {
8
- if (Array.isArray) {
9
- return Array.isArray(arg);
10
- }
11
- return objectToString(arg) === "[object Array]";
12
- }
13
- util.isArray = isArray;
14
- function isBoolean(arg) {
15
- return typeof arg === "boolean";
16
- }
17
- util.isBoolean = isBoolean;
18
- function isNull(arg) {
19
- return arg === null;
20
- }
21
- util.isNull = isNull;
22
- function isNullOrUndefined(arg) {
23
- return arg == null;
24
- }
25
- util.isNullOrUndefined = isNullOrUndefined;
26
- function isNumber(arg) {
27
- return typeof arg === "number";
28
- }
29
- util.isNumber = isNumber;
30
- function isString(arg) {
31
- return typeof arg === "string";
32
- }
33
- util.isString = isString;
34
- function isSymbol(arg) {
35
- return typeof arg === "symbol";
36
- }
37
- util.isSymbol = isSymbol;
38
- function isUndefined(arg) {
39
- return arg === void 0;
40
- }
41
- util.isUndefined = isUndefined;
42
- function isRegExp(re) {
43
- return objectToString(re) === "[object RegExp]";
44
- }
45
- util.isRegExp = isRegExp;
46
- function isObject(arg) {
47
- return typeof arg === "object" && arg !== null;
48
- }
49
- util.isObject = isObject;
50
- function isDate(d) {
51
- return objectToString(d) === "[object Date]";
52
- }
53
- util.isDate = isDate;
54
- function isError(e) {
55
- return objectToString(e) === "[object Error]" || e instanceof Error;
56
- }
57
- util.isError = isError;
58
- function isFunction(arg) {
59
- return typeof arg === "function";
60
- }
61
- util.isFunction = isFunction;
62
- function isPrimitive(arg) {
63
- return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
64
- typeof arg === "undefined";
65
- }
66
- util.isPrimitive = isPrimitive;
67
- util.isBuffer = require$$0.Buffer.isBuffer;
68
- function objectToString(o) {
69
- return Object.prototype.toString.call(o);
70
- }
71
- return util;
72
- }
73
- export {
74
- requireUtil as r
75
- };
1
+ import A from"buffer";var r={},t;function N(){if(t)return r;t=1;function e(n){return Array.isArray?Array.isArray(n):i(n)==="[object Array]"}r.isArray=e;function o(n){return typeof n=="boolean"}r.isBoolean=o;function u(n){return n===null}r.isNull=u;function f(n){return n==null}r.isNullOrUndefined=f;function s(n){return typeof n=="number"}r.isNumber=s;function c(n){return typeof n=="string"}r.isString=c;function l(n){return typeof n=="symbol"}r.isSymbol=l;function y(n){return n===void 0}r.isUndefined=y;function b(n){return i(n)==="[object RegExp]"}r.isRegExp=b;function p(n){return typeof n=="object"&&n!==null}r.isObject=p;function a(n){return i(n)==="[object Date]"}r.isDate=a;function d(n){return i(n)==="[object Error]"||n instanceof Error}r.isError=d;function m(n){return typeof n=="function"}r.isFunction=m;function j(n){return n===null||typeof n=="boolean"||typeof n=="number"||typeof n=="string"||typeof n=="symbol"||typeof n>"u"}r.isPrimitive=j,r.isBuffer=A.Buffer.isBuffer;function i(n){return Object.prototype.toString.call(n)}return r}export{N as r};
@@ -1,39 +1 @@
1
- function dataUriToBuffer(uri) {
2
- if (!/^data:/i.test(uri)) {
3
- throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');
4
- }
5
- uri = uri.replace(/\r?\n/g, "");
6
- const firstComma = uri.indexOf(",");
7
- if (firstComma === -1 || firstComma <= 4) {
8
- throw new TypeError("malformed data: URI");
9
- }
10
- const meta = uri.substring(5, firstComma).split(";");
11
- let charset = "";
12
- let base64 = false;
13
- const type = meta[0] || "text/plain";
14
- let typeFull = type;
15
- for (let i = 1; i < meta.length; i++) {
16
- if (meta[i] === "base64") {
17
- base64 = true;
18
- } else if (meta[i]) {
19
- typeFull += `;${meta[i]}`;
20
- if (meta[i].indexOf("charset=") === 0) {
21
- charset = meta[i].substring(8);
22
- }
23
- }
24
- }
25
- if (!meta[0] && !charset.length) {
26
- typeFull += ";charset=US-ASCII";
27
- charset = "US-ASCII";
28
- }
29
- const encoding = base64 ? "base64" : "ascii";
30
- const data = unescape(uri.substring(firstComma + 1));
31
- const buffer = Buffer.from(data, encoding);
32
- buffer.type = type;
33
- buffer.typeFull = typeFull;
34
- buffer.charset = charset;
35
- return buffer;
36
- }
37
- export {
38
- dataUriToBuffer as d
39
- };
1
+ function p(a){if(!/^data:/i.test(a))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');a=a.replace(/\r?\n/g,"");const s=a.indexOf(",");if(s===-1||s<=4)throw new TypeError("malformed data: URI");const t=a.substring(5,s).split(";");let r="",f=!1;const i=t[0]||"text/plain";let o=i;for(let e=1;e<t.length;e++)t[e]==="base64"?f=!0:t[e]&&(o+=`;${t[e]}`,t[e].indexOf("charset=")===0&&(r=t[e].substring(8)));!t[0]&&!r.length&&(o+=";charset=US-ASCII",r="US-ASCII");const l=f?"base64":"ascii",c=unescape(a.substring(s+1)),n=Buffer.from(c,l);return n.type=i,n.typeFull=o,n.charset=r,n}export{p as d};
@@ -1,69 +1 @@
1
- import { m as mimicFunction } from "./mimic-function.mjs";
2
- const debounceFunction = (inputFunction, options = {}) => {
3
- if (typeof inputFunction !== "function") {
4
- throw new TypeError(`Expected the first argument to be a function, got \`${typeof inputFunction}\``);
5
- }
6
- const {
7
- wait = 0,
8
- maxWait = Number.POSITIVE_INFINITY,
9
- before = false,
10
- after = true
11
- } = options;
12
- if (wait < 0 || maxWait < 0) {
13
- throw new RangeError("`wait` and `maxWait` must not be negative.");
14
- }
15
- if (!before && !after) {
16
- throw new Error("Both `before` and `after` are false, function wouldn't be called.");
17
- }
18
- let timeout;
19
- let maxTimeout;
20
- let result;
21
- const debouncedFunction = function(...arguments_) {
22
- const context = this;
23
- const later = () => {
24
- timeout = void 0;
25
- if (maxTimeout) {
26
- clearTimeout(maxTimeout);
27
- maxTimeout = void 0;
28
- }
29
- if (after) {
30
- result = inputFunction.apply(context, arguments_);
31
- }
32
- };
33
- const maxLater = () => {
34
- maxTimeout = void 0;
35
- if (timeout) {
36
- clearTimeout(timeout);
37
- timeout = void 0;
38
- }
39
- if (after) {
40
- result = inputFunction.apply(context, arguments_);
41
- }
42
- };
43
- const shouldCallNow = before && !timeout;
44
- clearTimeout(timeout);
45
- timeout = setTimeout(later, wait);
46
- if (maxWait > 0 && maxWait !== Number.POSITIVE_INFINITY && !maxTimeout) {
47
- maxTimeout = setTimeout(maxLater, maxWait);
48
- }
49
- if (shouldCallNow) {
50
- result = inputFunction.apply(context, arguments_);
51
- }
52
- return result;
53
- };
54
- mimicFunction(debouncedFunction, inputFunction);
55
- debouncedFunction.cancel = () => {
56
- if (timeout) {
57
- clearTimeout(timeout);
58
- timeout = void 0;
59
- }
60
- if (maxTimeout) {
61
- clearTimeout(maxTimeout);
62
- maxTimeout = void 0;
63
- }
64
- };
65
- return debouncedFunction;
66
- };
67
- export {
68
- debounceFunction as d
69
- };
1
+ import{m as w}from"./mimic-function.mjs";const b=(o,u={})=>{if(typeof o!="function")throw new TypeError(`Expected the first argument to be a function, got \`${typeof o}\``);const{wait:d=0,maxWait:r=Number.POSITIVE_INFINITY,before:l=!1,after:a=!0}=u;if(d<0||r<0)throw new RangeError("`wait` and `maxWait` must not be negative.");if(!l&&!a)throw new Error("Both `before` and `after` are false, function wouldn't be called.");let e,t,i;const n=function(...f){const c=this,m=()=>{e=void 0,t&&(clearTimeout(t),t=void 0),a&&(i=o.apply(c,f))},s=()=>{t=void 0,e&&(clearTimeout(e),e=void 0),a&&(i=o.apply(c,f))},T=l&&!e;return clearTimeout(e),e=setTimeout(m,d),r>0&&r!==Number.POSITIVE_INFINITY&&!t&&(t=setTimeout(s,r)),T&&(i=o.apply(c,f)),i};return w(n,o),n.cancel=()=>{e&&(clearTimeout(e),e=void 0),t&&(clearTimeout(t),t=void 0)},n};export{b as d};