@tonyclaw/agent-inspector 3.0.8 → 3.0.10
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/{CompareDrawer-Bth_Ywyt.js → CompareDrawer-BxLP7jmX.js} +1 -1
- package/.output/public/assets/ProxyViewerContainer-D_2ez29e.js +106 -0
- package/.output/public/assets/{ReplayDialog-C2YYAuTe.js → ReplayDialog-Btm-wONI.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-8k9dAX2j.js → RequestAnatomy-C9eZJN9E.js} +1 -1
- package/.output/public/assets/{ResponseView-DEL6JcXm.js → ResponseView-9R2MW1kp.js} +2 -2
- package/.output/public/assets/{StreamingChunkSequence-DngmoR9j.js → StreamingChunkSequence-zxqGpFfv.js} +1 -1
- package/.output/public/assets/{_sessionId-4vk9RMZ5.js → _sessionId-C0tPTQlC.js} +1 -1
- package/.output/public/assets/agent-inspector-58K1_MsC.ico +0 -0
- package/.output/public/assets/index-BIgsQvaF.css +1 -0
- package/.output/public/assets/index-DgVWrzsQ.js +1 -0
- package/.output/public/assets/{index-DINLvnm9.js → index-WiDkyjq8.js} +1 -1
- package/.output/public/assets/{json-viewer-CH5dvS2Y.js → json-viewer-BAmkfRDE.js} +1 -1
- package/.output/public/assets/{main-GWkZn4xy.js → main-2feHoEI6.js} +2 -2
- package/.output/server/_libs/lucide-react.mjs +2 -2
- package/.output/server/_libs/radix-ui__react-dialog.mjs +2 -2
- package/.output/server/{_sessionId-EgsjdkN7.mjs → _sessionId-BkoyescL.mjs} +2 -2
- package/.output/server/_ssr/{CompareDrawer-CaM8FYuD.mjs → CompareDrawer-irfFdkJ8.mjs} +3 -3
- package/.output/server/_ssr/{ProxyViewerContainer-EJIogcGd.mjs → ProxyViewerContainer-CcJr9STz.mjs} +574 -324
- package/.output/server/_ssr/{ReplayDialog-BPpJ2-q8.mjs → ReplayDialog-CJnmXQGT.mjs} +3 -3
- package/.output/server/_ssr/{RequestAnatomy-DeQAWnZx.mjs → RequestAnatomy-CupP0Wdb.mjs} +2 -2
- package/.output/server/_ssr/{ResponseView-Dshm8iQ7.mjs → ResponseView-Bp-0t5cd.mjs} +2 -2
- package/.output/server/_ssr/{StreamingChunkSequence-32yIU2hn.mjs → StreamingChunkSequence-BXSn4kMH.mjs} +2 -2
- package/.output/server/_ssr/{index-XRcx9blU.mjs → index-KVltJBV8.mjs} +2 -2
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{json-viewer-C0aX5rqC.mjs → json-viewer-EYQ5eG2Q.mjs} +2 -2
- package/.output/server/_ssr/{router-BI-Mvxz9.mjs → router-_cAQddXC.mjs} +39 -36
- package/.output/server/{_tanstack-start-manifest_v-jKScklL_.mjs → _tanstack-start-manifest_v-BfiF5iov.mjs} +1 -1
- package/.output/server/index.mjs +72 -65
- package/package.json +1 -1
- package/src/components/ProxyViewer.tsx +194 -29
- package/src/components/ProxyViewerContainer.tsx +145 -3
- package/src/components/clients/ClientLogo.tsx +16 -1
- package/src/components/providers/ProviderCard.tsx +83 -91
- package/src/components/providers/ProvidersPanel.tsx +7 -7
- package/src/components/providers/SettingsDialog.tsx +17 -22
- package/src/components/proxy-viewer/TurnGroup.tsx +0 -16
- package/src/components/proxy-viewer/log-formats/anthropic.ts +5 -5
- package/src/components/proxy-viewer/log-formats/openai.ts +7 -10
- package/src/components/proxy-viewer/requestTools.ts +5 -2
- package/src/routes/api/logs.ts +14 -5
- package/src/routes/api/providers.$providerId.test.log.ts +28 -24
- package/.output/public/assets/ProxyViewerContainer-C73EU9Jq.js +0 -106
- package/.output/public/assets/index-DBEB1rHe.css +0 -1
- package/.output/public/assets/index-LPIGiUMP.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { u as useProviders, d as fetchJsonWithTimeout, D as Dialog, e as DialogContent, h as DialogHeader, i as DialogTitle, T as Tabs, j as TabsList, k as TabsTrigger, l as TabsContent, m as Button, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, s as dispatchLogFocusRequest, A as ApiTimeoutError } from "./ProxyViewerContainer-
|
|
3
|
-
import { ResponseView } from "./ResponseView-
|
|
4
|
-
import { C as CapturedLogSchema } from "./router-
|
|
2
|
+
import { u as useProviders, d as fetchJsonWithTimeout, D as Dialog, e as DialogContent, h as DialogHeader, i as DialogTitle, T as Tabs, j as TabsList, k as TabsTrigger, l as TabsContent, m as Button, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, s as dispatchLogFocusRequest, A as ApiTimeoutError } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
3
|
+
import { ResponseView } from "./ResponseView-Bp-0t5cd.mjs";
|
|
4
|
+
import { C as CapturedLogSchema } from "./router-_cAQddXC.mjs";
|
|
5
5
|
import "../_libs/jszip.mjs";
|
|
6
6
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
7
7
|
import { am as RotateCcw, ay as Braces, az as Minimize2 } from "../_libs/lucide-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { u as useProviders, t as analyzeContextIntelligence, f as formatTokens, n as TooltipProvider, c as cn, o as Tooltip, p as TooltipTrigger, q as TooltipContent, S as SegmentBar, R as ROLE_COLOR_CLASSES, v as ANATOMY_ROLE_LABELS, w as formatContextWindowTokens, C as CONTEXT_USAGE_THRESHOLDS } from "./ProxyViewerContainer-
|
|
3
|
-
import "./router-
|
|
2
|
+
import { u as useProviders, t as analyzeContextIntelligence, f as formatTokens, n as TooltipProvider, c as cn, o as Tooltip, p as TooltipTrigger, q as TooltipContent, S as SegmentBar, R as ROLE_COLOR_CLASSES, v as ANATOMY_ROLE_LABELS, w as formatContextWindowTokens, C as CONTEXT_USAGE_THRESHOLDS } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
3
|
+
import "./router-_cAQddXC.mjs";
|
|
4
4
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
5
5
|
import "../_libs/jszip.mjs";
|
|
6
6
|
import { I as Info, a as ChevronDown, h as ChevronRight } from "../_libs/lucide-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { g as getLogFormatAdapter, f as formatTokens, c as cn, x as getStatusCategory, B as Badge, y as Collapsible, z as CollapsibleTrigger, E as CollapsibleContent, F as ScrollArea, G as LazyJsonViewer, H as safeJsonValue } from "./ProxyViewerContainer-
|
|
3
|
-
import { s as safeGetOwnProperty } from "./router-
|
|
2
|
+
import { g as getLogFormatAdapter, f as formatTokens, c as cn, x as getStatusCategory, B as Badge, y as Collapsible, z as CollapsibleTrigger, E as CollapsibleContent, F as ScrollArea, G as LazyJsonViewer, H as safeJsonValue } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
3
|
+
import { s as safeGetOwnProperty } from "./router-_cAQddXC.mjs";
|
|
4
4
|
import "../_libs/jszip.mjs";
|
|
5
5
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
6
6
|
import { $ as Zap, T as TriangleAlert, aA as CircleStop, a1 as Brain, a as ChevronDown, h as ChevronRight, r as Terminal } from "../_libs/lucide-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { d as fetchJsonWithTimeout, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, B as Badge, q as TooltipContent, G as LazyJsonViewer } from "./ProxyViewerContainer-
|
|
3
|
-
import { S as StreamingChunkSchema$1 } from "./router-
|
|
2
|
+
import { d as fetchJsonWithTimeout, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, B as Badge, q as TooltipContent, G as LazyJsonViewer } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
3
|
+
import { S as StreamingChunkSchema$1 } from "./router-_cAQddXC.mjs";
|
|
4
4
|
import "../_libs/jszip.mjs";
|
|
5
5
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
6
6
|
import { a as ChevronDown, h as ChevronRight, L as LoaderCircle } from "../_libs/lucide-react.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as ProxyViewerContainer } from "./ProxyViewerContainer-
|
|
1
|
+
import { P as ProxyViewerContainer } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
2
2
|
import "../_libs/react.mjs";
|
|
3
|
-
import "./router-
|
|
3
|
+
import "./router-_cAQddXC.mjs";
|
|
4
4
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
5
5
|
import "../_libs/jszip.mjs";
|
|
6
6
|
import "../_libs/swr.mjs";
|
|
@@ -198,7 +198,7 @@ function getResponse() {
|
|
|
198
198
|
return event.res;
|
|
199
199
|
}
|
|
200
200
|
async function getStartManifest(matchedRoutes) {
|
|
201
|
-
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-
|
|
201
|
+
const { tsrStartManifest } = await import("../_tanstack-start-manifest_v-BfiF5iov.mjs");
|
|
202
202
|
const startManifest = tsrStartManifest();
|
|
203
203
|
const rootRoute = startManifest.routes[rootRouteId] = startManifest.routes[rootRouteId] || {};
|
|
204
204
|
rootRoute.assets = rootRoute.assets || [];
|
|
@@ -776,7 +776,7 @@ let entriesPromise;
|
|
|
776
776
|
let baseManifestPromise;
|
|
777
777
|
let cachedFinalManifestPromise;
|
|
778
778
|
async function loadEntries() {
|
|
779
|
-
const routerEntry = await import("./router-
|
|
779
|
+
const routerEntry = await import("./router-_cAQddXC.mjs").then((n) => n.N);
|
|
780
780
|
const startEntry = await import("./start-HYkvq4Ni.mjs");
|
|
781
781
|
return { startEntry, routerEntry };
|
|
782
782
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import { I as parseJsonText, c as cn, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, b as copyTextToClipboard } from "./ProxyViewerContainer-
|
|
3
|
-
import "./router-
|
|
2
|
+
import { I as parseJsonText, c as cn, n as TooltipProvider, o as Tooltip, p as TooltipTrigger, q as TooltipContent, b as copyTextToClipboard } from "./ProxyViewerContainer-CcJr9STz.mjs";
|
|
3
|
+
import "./router-_cAQddXC.mjs";
|
|
4
4
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
5
5
|
import "../_libs/jszip.mjs";
|
|
6
6
|
import { b as Check, e as Copy, a as ChevronDown, h as ChevronRight, aj as ChevronsDown } from "../_libs/lucide-react.mjs";
|
|
@@ -65,7 +65,7 @@ import "../_libs/immediate.mjs";
|
|
|
65
65
|
import "../_libs/setimmediate.mjs";
|
|
66
66
|
import "../_libs/pako.mjs";
|
|
67
67
|
const faviconSvg = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20role='img'%20aria-label='Agent%20Inspector'%3e%3cg%20fill='none'%20stroke='%23f59e0b'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'%20%3e%3cpath%20d='M5%2013%20C5%209%208%207%2012%207%20C16%207%2019%209%2019%2013%20C19%2016%2016%2018%2012%2018%20C8%2018%205%2016%205%2013%20Z'%20/%3e%3cpath%20d='M5%2011%20C3.5%209.5%201.5%2010%202%2012.5%20C2.5%2014%204%2013.5%205%2012.5'%20/%3e%3cpath%20d='M19%2011%20C20.5%209.5%2022.5%2010%2022%2012.5%20C21.5%2014%2020%2013.5%2019%2012.5'%20/%3e%3cline%20x1='10'%20y1='7'%20x2='9.5'%20y2='5'%20/%3e%3cline%20x1='14'%20y1='7'%20x2='14.5'%20y2='5'%20/%3e%3cline%20x1='6.5'%20y1='16'%20x2='4.5'%20y2='19.5'%20/%3e%3cline%20x1='9'%20y1='17.5'%20x2='8'%20y2='20.5'%20/%3e%3cline%20x1='15'%20y1='17.5'%20x2='16'%20y2='20.5'%20/%3e%3cline%20x1='17.5'%20y1='16'%20x2='19.5'%20y2='19.5'%20/%3e%3c/g%3e%3ccircle%20cx='9.5'%20cy='4.5'%20r='0.9'%20fill='%23f59e0b'%20/%3e%3ccircle%20cx='14.5'%20cy='4.5'%20r='0.9'%20fill='%23f59e0b'%20/%3e%3c/svg%3e";
|
|
68
|
-
const appCss = "/assets/index-
|
|
68
|
+
const appCss = "/assets/index-BIgsQvaF.css";
|
|
69
69
|
const Route$K = createRootRoute({
|
|
70
70
|
head: () => ({
|
|
71
71
|
meta: [
|
|
@@ -108,7 +108,7 @@ function RootDocument({ children }) {
|
|
|
108
108
|
] })
|
|
109
109
|
] });
|
|
110
110
|
}
|
|
111
|
-
const $$splitComponentImporter$1 = () => import("./index-
|
|
111
|
+
const $$splitComponentImporter$1 = () => import("./index-KVltJBV8.mjs");
|
|
112
112
|
const Route$J = createFileRoute("/")({
|
|
113
113
|
component: lazyRouteComponent($$splitComponentImporter$1, "component")
|
|
114
114
|
});
|
|
@@ -151,7 +151,7 @@ function decodeSessionIdFromPath(encoded) {
|
|
|
151
151
|
function getSessionPath(sessionId) {
|
|
152
152
|
return `/session/${encodeSessionIdForPath(sessionId)}`;
|
|
153
153
|
}
|
|
154
|
-
const $$splitComponentImporter = () => import("../_sessionId-
|
|
154
|
+
const $$splitComponentImporter = () => import("../_sessionId-BkoyescL.mjs");
|
|
155
155
|
const Route$I = createFileRoute("/session/$sessionId")({
|
|
156
156
|
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
157
157
|
parseParams: (params) => ({
|
|
@@ -9156,7 +9156,7 @@ const Route$D = createFileRoute("/api/models")({
|
|
|
9156
9156
|
}
|
|
9157
9157
|
});
|
|
9158
9158
|
const name = "@tonyclaw/agent-inspector";
|
|
9159
|
-
const version = "3.0.
|
|
9159
|
+
const version = "3.0.10";
|
|
9160
9160
|
const packageJson = {
|
|
9161
9161
|
name,
|
|
9162
9162
|
version
|
|
@@ -12361,8 +12361,8 @@ async function searchLogsPage(options) {
|
|
|
12361
12361
|
scanned: scanPage.logs.length
|
|
12362
12362
|
};
|
|
12363
12363
|
}
|
|
12364
|
-
const
|
|
12365
|
-
ids: array(number().int().
|
|
12364
|
+
const DeleteLogsBodySchema = object({
|
|
12365
|
+
ids: array(number().int().nonnegative()).optional()
|
|
12366
12366
|
}).optional();
|
|
12367
12367
|
function parseNonNegativeInt(value, fallback) {
|
|
12368
12368
|
if (value === null) return fallback;
|
|
@@ -12456,7 +12456,7 @@ const Route$B = createFileRoute("/api/logs")({
|
|
|
12456
12456
|
const raw = await request.text();
|
|
12457
12457
|
if (raw !== "") {
|
|
12458
12458
|
const parsed = JSON.parse(raw);
|
|
12459
|
-
const result2 =
|
|
12459
|
+
const result2 = DeleteLogsBodySchema.safeParse(parsed);
|
|
12460
12460
|
if (!result2.success) {
|
|
12461
12461
|
return Response.json(
|
|
12462
12462
|
{ error: "Invalid request body", details: result2.error.format() },
|
|
@@ -12468,7 +12468,16 @@ const Route$B = createFileRoute("/api/logs")({
|
|
|
12468
12468
|
} catch {
|
|
12469
12469
|
return Response.json({ error: "Invalid JSON body" }, { status: 400 });
|
|
12470
12470
|
}
|
|
12471
|
-
if (body?.ids !== void 0
|
|
12471
|
+
if (body?.ids !== void 0) {
|
|
12472
|
+
if (body.ids.length === 0) {
|
|
12473
|
+
return Response.json({
|
|
12474
|
+
success: true,
|
|
12475
|
+
cleared: 0,
|
|
12476
|
+
logFilesRewritten: 0,
|
|
12477
|
+
chunkFilesDeleted: 0,
|
|
12478
|
+
sessionArchiveLogsDeleted: 0
|
|
12479
|
+
});
|
|
12480
|
+
}
|
|
12472
12481
|
const result2 = await clearPersistedLogsByIds(body.ids);
|
|
12473
12482
|
return Response.json({
|
|
12474
12483
|
success: true,
|
|
@@ -16979,6 +16988,18 @@ function getResultTokensPerSecond(result) {
|
|
|
16979
16988
|
totalStreamMs: getResultTotalStreamMs(result)
|
|
16980
16989
|
});
|
|
16981
16990
|
}
|
|
16991
|
+
function providerTestClientFields(providerName) {
|
|
16992
|
+
const cwd = process.cwd();
|
|
16993
|
+
return {
|
|
16994
|
+
userAgent: "Agent Inspector Provider Test",
|
|
16995
|
+
origin: null,
|
|
16996
|
+
isTest: true,
|
|
16997
|
+
providerName,
|
|
16998
|
+
clientPid: process.pid,
|
|
16999
|
+
clientCwd: cwd,
|
|
17000
|
+
clientProjectFolder: basename(cwd)
|
|
17001
|
+
};
|
|
17002
|
+
}
|
|
16982
17003
|
async function logModelResults(displayName, providerName, providerSessionId, anthropicUrl, openaiChatUrl, openaiResponsesUrl, modelResults, captureFullDetails) {
|
|
16983
17004
|
const usageModel = getModelUsageName(displayName, providerName);
|
|
16984
17005
|
if (anthropicUrl !== void 0) {
|
|
@@ -17006,11 +17027,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17006
17027
|
totalStreamMs: null,
|
|
17007
17028
|
tokensPerSecond: null,
|
|
17008
17029
|
streaming: false,
|
|
17009
|
-
userAgent: "provider-test",
|
|
17010
|
-
origin: null,
|
|
17011
17030
|
apiFormat: "anthropic",
|
|
17012
|
-
|
|
17013
|
-
providerName,
|
|
17031
|
+
...providerTestClientFields(providerName),
|
|
17014
17032
|
headers: captureFullDetails ? getResultHeaders(nonStreamingResult) : void 0
|
|
17015
17033
|
});
|
|
17016
17034
|
const streamingRequestBody = JSON.stringify(
|
|
@@ -17035,11 +17053,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17035
17053
|
tokensPerSecond: getResultTokensPerSecond(streamingResult),
|
|
17036
17054
|
streaming: true,
|
|
17037
17055
|
streamingChunks: captureFullDetails ? streamingResult.streamingChunks : void 0,
|
|
17038
|
-
userAgent: "provider-test",
|
|
17039
|
-
origin: null,
|
|
17040
17056
|
apiFormat: "anthropic",
|
|
17041
|
-
|
|
17042
|
-
providerName,
|
|
17057
|
+
...providerTestClientFields(providerName),
|
|
17043
17058
|
headers: captureFullDetails ? getResultHeaders(streamingResult) : void 0
|
|
17044
17059
|
});
|
|
17045
17060
|
}
|
|
@@ -17069,11 +17084,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17069
17084
|
totalStreamMs: null,
|
|
17070
17085
|
tokensPerSecond: null,
|
|
17071
17086
|
streaming: false,
|
|
17072
|
-
userAgent: "provider-test",
|
|
17073
|
-
origin: null,
|
|
17074
17087
|
apiFormat: "openai",
|
|
17075
|
-
|
|
17076
|
-
providerName,
|
|
17088
|
+
...providerTestClientFields(providerName),
|
|
17077
17089
|
headers: captureFullDetails ? getResultHeaders(nonStreamingResult) : void 0
|
|
17078
17090
|
});
|
|
17079
17091
|
const streamingRequestBody = JSON.stringify(
|
|
@@ -17098,11 +17110,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17098
17110
|
tokensPerSecond: getResultTokensPerSecond(streamingResult),
|
|
17099
17111
|
streaming: true,
|
|
17100
17112
|
streamingChunks: captureFullDetails ? streamingResult.streamingChunks : void 0,
|
|
17101
|
-
userAgent: "provider-test",
|
|
17102
|
-
origin: null,
|
|
17103
17113
|
apiFormat: "openai",
|
|
17104
|
-
|
|
17105
|
-
providerName,
|
|
17114
|
+
...providerTestClientFields(providerName),
|
|
17106
17115
|
headers: captureFullDetails ? getResultHeaders(streamingResult) : void 0
|
|
17107
17116
|
});
|
|
17108
17117
|
}
|
|
@@ -17134,11 +17143,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17134
17143
|
totalStreamMs: null,
|
|
17135
17144
|
tokensPerSecond: null,
|
|
17136
17145
|
streaming: false,
|
|
17137
|
-
userAgent: "provider-test",
|
|
17138
|
-
origin: null,
|
|
17139
17146
|
apiFormat: "openai",
|
|
17140
|
-
|
|
17141
|
-
providerName,
|
|
17147
|
+
...providerTestClientFields(providerName),
|
|
17142
17148
|
headers: captureFullDetails ? getResultHeaders(nonStreamingResult) : void 0
|
|
17143
17149
|
});
|
|
17144
17150
|
const streamingRequestBody = JSON.stringify(
|
|
@@ -17163,11 +17169,8 @@ async function logModelResults(displayName, providerName, providerSessionId, ant
|
|
|
17163
17169
|
tokensPerSecond: getResultTokensPerSecond(streamingResult),
|
|
17164
17170
|
streaming: true,
|
|
17165
17171
|
streamingChunks: captureFullDetails ? streamingResult.streamingChunks : void 0,
|
|
17166
|
-
userAgent: "provider-test",
|
|
17167
|
-
origin: null,
|
|
17168
17172
|
apiFormat: "openai",
|
|
17169
|
-
|
|
17170
|
-
providerName,
|
|
17173
|
+
...providerTestClientFields(providerName),
|
|
17171
17174
|
headers: captureFullDetails ? getResultHeaders(streamingResult) : void 0
|
|
17172
17175
|
});
|
|
17173
17176
|
}
|
|
@@ -17809,10 +17812,10 @@ export {
|
|
|
17809
17812
|
providerHasContextMetadata as r,
|
|
17810
17813
|
safeGetOwnProperty as s,
|
|
17811
17814
|
maskApiKey as t,
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17815
|
-
|
|
17815
|
+
findProviderModelMetadata as u,
|
|
17816
|
+
PATH_V1_MESSAGES as v,
|
|
17817
|
+
PATH_V1_CHAT_COMPLETIONS as w,
|
|
17818
|
+
PATH_V1_RESPONSES as x,
|
|
17816
17819
|
previewUpstreamUrl as y,
|
|
17817
17820
|
createPendingProviderTestResults as z
|
|
17818
17821
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/__root.tsx", "children": ["/", "/api/alerts", "/api/config", "/api/groups", "/api/health", "/api/logs", "/api/mcp", "/api/models", "/api/providers", "/api/runs", "/api/sessions", "/proxy/$", "/session/$sessionId", "/api/ecosystem/packages", "/api/ecosystem/tasks", "/api/knowledge/candidates", "/api/knowledge/project-context", "/api/knowledge/search", "/api/knowledge/sessions/$sessionId/candidates"], "preloads": ["/assets/main-
|
|
1
|
+
const tsrStartManifest = () => ({ "routes": { "__root__": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/__root.tsx", "children": ["/", "/api/alerts", "/api/config", "/api/groups", "/api/health", "/api/logs", "/api/mcp", "/api/models", "/api/providers", "/api/runs", "/api/sessions", "/proxy/$", "/session/$sessionId", "/api/ecosystem/packages", "/api/ecosystem/tasks", "/api/knowledge/candidates", "/api/knowledge/project-context", "/api/knowledge/search", "/api/knowledge/sessions/$sessionId/candidates"], "preloads": ["/assets/main-2feHoEI6.js"], "assets": [] }, "/": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/index.tsx", "assets": [], "preloads": ["/assets/index-DgVWrzsQ.js", "/assets/ProxyViewerContainer-D_2ez29e.js"] }, "/api/alerts": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/alerts.ts", "children": ["/api/alerts/summary"] }, "/api/config": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/config.ts", "children": ["/api/config/paths"] }, "/api/groups": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/groups.ts", "children": ["/api/groups/$groupId"] }, "/api/health": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/health.ts" }, "/api/logs": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.ts", "children": ["/api/logs/$id", "/api/logs/import", "/api/logs/stream"] }, "/api/mcp": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/mcp.ts" }, "/api/models": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/models.ts" }, "/api/providers": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.ts", "children": ["/api/providers/$providerId", "/api/providers/export", "/api/providers/import", "/api/providers/scan"] }, "/api/runs": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/runs.ts", "children": ["/api/runs/$runId"] }, "/api/sessions": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/sessions.ts" }, "/proxy/$": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/proxy/$.ts" }, "/session/$sessionId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/session/$sessionId.tsx", "assets": [], "preloads": ["/assets/_sessionId-C0tPTQlC.js", "/assets/ProxyViewerContainer-D_2ez29e.js"] }, "/api/alerts/summary": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/alerts.summary.ts" }, "/api/config/paths": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/config.paths.ts" }, "/api/ecosystem/packages": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.packages.ts", "children": ["/api/ecosystem/packages/$packageId/help", "/api/ecosystem/packages/$packageId/install", "/api/ecosystem/packages/$packageId/runner-presets", "/api/ecosystem/packages/$packageId/upgrade"] }, "/api/ecosystem/tasks": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.tasks.ts", "children": ["/api/ecosystem/tasks/$taskId"] }, "/api/groups/$groupId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/groups.$groupId.ts", "children": ["/api/groups/$groupId/evidence", "/api/groups/$groupId/sessions"] }, "/api/knowledge/candidates": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.candidates.ts", "children": ["/api/knowledge/candidates/$candidateId"] }, "/api/knowledge/project-context": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.project-context.ts" }, "/api/knowledge/search": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.search.ts" }, "/api/logs/$id": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.$id.ts", "children": ["/api/logs/$id/body", "/api/logs/$id/chunks", "/api/logs/$id/replay"] }, "/api/logs/import": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.import.ts" }, "/api/logs/stream": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.stream.ts" }, "/api/providers/$providerId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.$providerId.ts", "children": ["/api/providers/$providerId/model-metadata", "/api/providers/$providerId/test"] }, "/api/providers/export": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.export.ts" }, "/api/providers/import": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.import.ts" }, "/api/providers/scan": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.scan.ts" }, "/api/runs/$runId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/runs.$runId.ts", "children": ["/api/runs/$runId/evidence"] }, "/api/ecosystem/tasks/$taskId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.tasks.$taskId.ts" }, "/api/groups/$groupId/evidence": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/groups.$groupId.evidence.ts" }, "/api/groups/$groupId/sessions": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/groups.$groupId.sessions.ts" }, "/api/knowledge/candidates/$candidateId": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.candidates.$candidateId.ts", "children": ["/api/knowledge/candidates/$candidateId/promote"] }, "/api/logs/$id/body": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.$id.body.ts" }, "/api/logs/$id/chunks": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.$id.chunks.ts" }, "/api/logs/$id/replay": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/logs.$id.replay.ts" }, "/api/providers/$providerId/model-metadata": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.$providerId.model-metadata.ts" }, "/api/providers/$providerId/test": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.$providerId.test.ts", "children": ["/api/providers/$providerId/test/log"] }, "/api/runs/$runId/evidence": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/runs.$runId.evidence.ts" }, "/api/ecosystem/packages/$packageId/help": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.packages.$packageId.help.ts" }, "/api/ecosystem/packages/$packageId/install": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.packages.$packageId.install.ts" }, "/api/ecosystem/packages/$packageId/runner-presets": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.packages.$packageId.runner-presets.ts" }, "/api/ecosystem/packages/$packageId/upgrade": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/ecosystem.packages.$packageId.upgrade.ts" }, "/api/knowledge/candidates/$candidateId/promote": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.candidates.$candidateId.promote.ts" }, "/api/knowledge/sessions/$sessionId/candidates": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/knowledge.sessions.$sessionId.candidates.ts" }, "/api/providers/$providerId/test/log": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/api/providers.$providerId.test.log.ts" } }, "clientEntry": "/assets/main-2feHoEI6.js" });
|
|
2
2
|
export {
|
|
3
3
|
tsrStartManifest
|
|
4
4
|
};
|
package/.output/server/index.mjs
CHANGED
|
@@ -35,117 +35,124 @@ const headers = ((m) => function headersRouteRule(event) {
|
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const assets = {
|
|
38
|
+
"/assets/agent-inspector-58K1_MsC.ico": {
|
|
39
|
+
"type": "image/vnd.microsoft.icon",
|
|
40
|
+
"etag": '"38fa-ZD8kPABHYjPIkcH82FMY6iZM7fI"',
|
|
41
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
42
|
+
"size": 14586,
|
|
43
|
+
"path": "../public/assets/agent-inspector-58K1_MsC.ico"
|
|
44
|
+
},
|
|
38
45
|
"/assets/alibaba-TTwafVwX.svg": {
|
|
39
46
|
"type": "image/svg+xml",
|
|
40
47
|
"etag": '"171b-6dyV5K8QjiaY35sN9qNprh9zDIs"',
|
|
41
|
-
"mtime": "2026-07-
|
|
48
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
42
49
|
"size": 5915,
|
|
43
50
|
"path": "../public/assets/alibaba-TTwafVwX.svg"
|
|
44
51
|
},
|
|
45
|
-
"/assets/
|
|
52
|
+
"/assets/CompareDrawer-BxLP7jmX.js": {
|
|
46
53
|
"type": "text/javascript; charset=utf-8",
|
|
47
|
-
"etag": '"
|
|
48
|
-
"mtime": "2026-07-
|
|
49
|
-
"size":
|
|
50
|
-
"path": "../public/assets/
|
|
54
|
+
"etag": '"4bc3-pQHdPyhcFoJS5VEN66ArtTIlZcs"',
|
|
55
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
56
|
+
"size": 19395,
|
|
57
|
+
"path": "../public/assets/CompareDrawer-BxLP7jmX.js"
|
|
51
58
|
},
|
|
52
|
-
"/assets/index-
|
|
59
|
+
"/assets/index-BIgsQvaF.css": {
|
|
60
|
+
"type": "text/css; charset=utf-8",
|
|
61
|
+
"etag": '"23c25-AyhoABstT65ludnAAzbIkqX0g+A"',
|
|
62
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
63
|
+
"size": 146469,
|
|
64
|
+
"path": "../public/assets/index-BIgsQvaF.css"
|
|
65
|
+
},
|
|
66
|
+
"/assets/index-DgVWrzsQ.js": {
|
|
53
67
|
"type": "text/javascript; charset=utf-8",
|
|
54
|
-
"etag": '"74-
|
|
55
|
-
"mtime": "2026-07-
|
|
68
|
+
"etag": '"74-Ptr2n1hNkglfFx4nXQ7xwYjxLlU"',
|
|
69
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
56
70
|
"size": 116,
|
|
57
|
-
"path": "../public/assets/index-
|
|
71
|
+
"path": "../public/assets/index-DgVWrzsQ.js"
|
|
58
72
|
},
|
|
59
|
-
"/assets/
|
|
60
|
-
"type": "text/
|
|
61
|
-
"etag": '"
|
|
62
|
-
"mtime": "2026-07-
|
|
63
|
-
"size":
|
|
64
|
-
"path": "../public/assets/
|
|
73
|
+
"/assets/json-viewer-BAmkfRDE.js": {
|
|
74
|
+
"type": "text/javascript; charset=utf-8",
|
|
75
|
+
"etag": '"1ae6-xWR2Y4I0qrKVEAMp6RDeLeJYGzk"',
|
|
76
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
77
|
+
"size": 6886,
|
|
78
|
+
"path": "../public/assets/json-viewer-BAmkfRDE.js"
|
|
65
79
|
},
|
|
66
80
|
"/assets/minimax-BPMzvuL-.jpeg": {
|
|
67
81
|
"type": "image/jpeg",
|
|
68
82
|
"etag": '"1b06-IwivU89ko5UTMUM1/t7hn4sQK9A"',
|
|
69
|
-
"mtime": "2026-07-
|
|
83
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
70
84
|
"size": 6918,
|
|
71
85
|
"path": "../public/assets/minimax-BPMzvuL-.jpeg"
|
|
72
86
|
},
|
|
73
|
-
"/assets/
|
|
87
|
+
"/assets/index-WiDkyjq8.js": {
|
|
74
88
|
"type": "text/javascript; charset=utf-8",
|
|
75
|
-
"etag": '"
|
|
76
|
-
"mtime": "2026-07-
|
|
77
|
-
"size":
|
|
78
|
-
"path": "../public/assets/
|
|
89
|
+
"etag": '"1cd2c-J6txwFjMDpeFT1J6hhzRrZ9xyaA"',
|
|
90
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
91
|
+
"size": 118060,
|
|
92
|
+
"path": "../public/assets/index-WiDkyjq8.js"
|
|
79
93
|
},
|
|
80
|
-
"/assets/
|
|
94
|
+
"/assets/main-2feHoEI6.js": {
|
|
81
95
|
"type": "text/javascript; charset=utf-8",
|
|
82
|
-
"etag": '"
|
|
83
|
-
"mtime": "2026-07-
|
|
84
|
-
"size":
|
|
85
|
-
"path": "../public/assets/
|
|
96
|
+
"etag": '"512fd-VVmFJtTQujgPm48jQL0EbnYnk3Y"',
|
|
97
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
98
|
+
"size": 332541,
|
|
99
|
+
"path": "../public/assets/main-2feHoEI6.js"
|
|
86
100
|
},
|
|
87
|
-
"/assets/RequestAnatomy-
|
|
101
|
+
"/assets/RequestAnatomy-C9eZJN9E.js": {
|
|
88
102
|
"type": "text/javascript; charset=utf-8",
|
|
89
|
-
"etag": '"43f2-
|
|
90
|
-
"mtime": "2026-07-
|
|
103
|
+
"etag": '"43f2-U41d/MIHOCUxD2kBUVyFrSp3X2g"',
|
|
104
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
91
105
|
"size": 17394,
|
|
92
|
-
"path": "../public/assets/RequestAnatomy-
|
|
106
|
+
"path": "../public/assets/RequestAnatomy-C9eZJN9E.js"
|
|
93
107
|
},
|
|
94
|
-
"/assets/
|
|
108
|
+
"/assets/ReplayDialog-Btm-wONI.js": {
|
|
95
109
|
"type": "text/javascript; charset=utf-8",
|
|
96
|
-
"etag": '"
|
|
97
|
-
"mtime": "2026-07-
|
|
98
|
-
"size":
|
|
99
|
-
"path": "../public/assets/
|
|
110
|
+
"etag": '"3347-z8MZmK/weGipqo7s2Q7+fPscSFs"',
|
|
111
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
112
|
+
"size": 13127,
|
|
113
|
+
"path": "../public/assets/ReplayDialog-Btm-wONI.js"
|
|
100
114
|
},
|
|
101
|
-
"/assets/ResponseView-
|
|
115
|
+
"/assets/ResponseView-9R2MW1kp.js": {
|
|
102
116
|
"type": "text/javascript; charset=utf-8",
|
|
103
|
-
"etag": '"47fc-
|
|
104
|
-
"mtime": "2026-07-
|
|
117
|
+
"etag": '"47fc-zv4sjZTOZUHS8fs7xPvI8TcizZY"',
|
|
118
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
105
119
|
"size": 18428,
|
|
106
|
-
"path": "../public/assets/ResponseView-
|
|
120
|
+
"path": "../public/assets/ResponseView-9R2MW1kp.js"
|
|
121
|
+
},
|
|
122
|
+
"/assets/StreamingChunkSequence-zxqGpFfv.js": {
|
|
123
|
+
"type": "text/javascript; charset=utf-8",
|
|
124
|
+
"etag": '"e95-nFwGBn96pOPzj9CzxqeWZKnF7KE"',
|
|
125
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
126
|
+
"size": 3733,
|
|
127
|
+
"path": "../public/assets/StreamingChunkSequence-zxqGpFfv.js"
|
|
107
128
|
},
|
|
108
129
|
"/assets/zhipuai-BPNAnxo-.svg": {
|
|
109
130
|
"type": "image/svg+xml",
|
|
110
131
|
"etag": '"2bf8-hNaLCTi89nOFCsIIfWpP/jrfo0s"',
|
|
111
|
-
"mtime": "2026-07-
|
|
132
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
112
133
|
"size": 11256,
|
|
113
134
|
"path": "../public/assets/zhipuai-BPNAnxo-.svg"
|
|
114
135
|
},
|
|
115
|
-
"/assets/_sessionId-
|
|
136
|
+
"/assets/_sessionId-C0tPTQlC.js": {
|
|
116
137
|
"type": "text/javascript; charset=utf-8",
|
|
117
|
-
"etag": '"36c-
|
|
118
|
-
"mtime": "2026-07-
|
|
138
|
+
"etag": '"36c-mV3aXHj2mdIDnNvZ5pVcAuGaHLI"',
|
|
139
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
119
140
|
"size": 876,
|
|
120
|
-
"path": "../public/assets/_sessionId-
|
|
141
|
+
"path": "../public/assets/_sessionId-C0tPTQlC.js"
|
|
121
142
|
},
|
|
122
143
|
"/assets/qwen-CONDcHqt.png": {
|
|
123
144
|
"type": "image/png",
|
|
124
145
|
"etag": '"572c3-cdJAPaHdOvFCGzuaQjagdgOu6XE"',
|
|
125
|
-
"mtime": "2026-07-
|
|
146
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
126
147
|
"size": 357059,
|
|
127
148
|
"path": "../public/assets/qwen-CONDcHqt.png"
|
|
128
149
|
},
|
|
129
|
-
"/assets/
|
|
130
|
-
"type": "text/javascript; charset=utf-8",
|
|
131
|
-
"etag": '"1cd2c-wzEx8p1FStgS+8WpXtaTlrU0YzI"',
|
|
132
|
-
"mtime": "2026-07-07T06:50:23.989Z",
|
|
133
|
-
"size": 118060,
|
|
134
|
-
"path": "../public/assets/index-DINLvnm9.js"
|
|
135
|
-
},
|
|
136
|
-
"/assets/main-GWkZn4xy.js": {
|
|
137
|
-
"type": "text/javascript; charset=utf-8",
|
|
138
|
-
"etag": '"512fd-QsLmdrg3ZNPjkYZZhQKsAA53Elc"',
|
|
139
|
-
"mtime": "2026-07-07T06:50:23.987Z",
|
|
140
|
-
"size": 332541,
|
|
141
|
-
"path": "../public/assets/main-GWkZn4xy.js"
|
|
142
|
-
},
|
|
143
|
-
"/assets/ProxyViewerContainer-C73EU9Jq.js": {
|
|
150
|
+
"/assets/ProxyViewerContainer-D_2ez29e.js": {
|
|
144
151
|
"type": "text/javascript; charset=utf-8",
|
|
145
|
-
"etag": '"
|
|
146
|
-
"mtime": "2026-07-
|
|
147
|
-
"size":
|
|
148
|
-
"path": "../public/assets/ProxyViewerContainer-
|
|
152
|
+
"etag": '"b6c94-hpe5c1o9ykcltAH5FoipHk35tFA"',
|
|
153
|
+
"mtime": "2026-07-07T07:37:45.927Z",
|
|
154
|
+
"size": 748692,
|
|
155
|
+
"path": "../public/assets/ProxyViewerContainer-D_2ez29e.js"
|
|
149
156
|
}
|
|
150
157
|
};
|
|
151
158
|
function readAsset(id) {
|