@tonyclaw/agent-inspector 3.0.5 → 3.0.7
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-Co-35_Xw.js → CompareDrawer-C0Kbsm-Q.js} +1 -1
- package/.output/public/assets/ProxyViewerContainer-p-rpYyiF.js +106 -0
- package/.output/public/assets/{ReplayDialog-DghbvKdy.js → ReplayDialog-CM3dhP8v.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-CRXE5v8X.js → RequestAnatomy-fa0JXy5p.js} +1 -1
- package/.output/public/assets/{ResponseView-CzxoQRjp.js → ResponseView-Bq6sC7Ay.js} +2 -2
- package/.output/public/assets/{StreamingChunkSequence-DnFyF_Hr.js → StreamingChunkSequence-CGOun3Df.js} +1 -1
- package/.output/public/assets/{_sessionId-DHRhWzKe.js → _sessionId-D5fYH2C0.js} +1 -1
- package/.output/public/assets/{index-Dl1oki9E.js → index-BEsqvywM.js} +1 -1
- package/.output/public/assets/index-C29Olfzt.js +1 -0
- package/.output/public/assets/index-DgANE0r3.css +1 -0
- package/.output/public/assets/{json-viewer-B84f7oiG.js → json-viewer-B0QRbMSf.js} +1 -1
- package/.output/public/assets/{main-DViDnJ9X.js → main-CuKZD7n0.js} +2 -2
- package/.output/server/_libs/lucide-react.mjs +292 -203
- package/.output/server/{_sessionId-C43vEAWe.mjs → _sessionId-DdBTK3qm.mjs} +3 -3
- package/.output/server/_ssr/{CompareDrawer-DOL6q0jD.mjs → CompareDrawer-m82cVZ73.mjs} +4 -4
- package/.output/server/_ssr/{ProxyViewerContainer-S9izw3ND.mjs → ProxyViewerContainer-7geuf78f.mjs} +366 -37
- package/.output/server/_ssr/{ReplayDialog-tqthwJh0.mjs → ReplayDialog-B8RlWLLH.mjs} +4 -4
- package/.output/server/_ssr/{RequestAnatomy-CgWDjFPR.mjs → RequestAnatomy-BE7pmwpv.mjs} +2 -2
- package/.output/server/_ssr/{ResponseView-Dk8Op622.mjs → ResponseView-D-sDsdQr.mjs} +3 -3
- package/.output/server/_ssr/{StreamingChunkSequence-AlS7PK8f.mjs → StreamingChunkSequence-DU_hThJr.mjs} +2 -2
- package/.output/server/_ssr/{index-BGwvMN2M.mjs → index-D0sV8UbE.mjs} +2 -2
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{json-viewer-CKHkh5U3.mjs → json-viewer-CaDh1zrw.mjs} +3 -3
- package/.output/server/_ssr/{router-BJMaHkr1.mjs → router-Zh2iZ_u0.mjs} +357 -146
- package/.output/server/_tanstack-start-manifest_v-LCE-2AaF.mjs +4 -0
- package/.output/server/index.mjs +71 -71
- package/package.json +1 -1
- package/src/components/ProxyViewer.tsx +32 -14
- package/src/components/alerts/AlertsDialog.tsx +3 -3
- package/src/components/ecosystem/AgentLabDialog.tsx +381 -0
- package/src/components/groups/GroupsDialog.tsx +3 -3
- package/src/components/providers/ImportWizardDialog.tsx +1 -1
- package/src/components/providers/ProviderCard.tsx +4 -4
- package/src/components/proxy-viewer/CompareDrawer.tsx +1 -1
- package/src/components/proxy-viewer/ConversationHeader.tsx +2 -2
- package/src/lib/ecosystemContract.ts +47 -0
- package/src/routes/api/ecosystem.packages.ts +263 -0
- package/.output/public/assets/ProxyViewerContainer-DPv1rBo7.js +0 -106
- package/.output/public/assets/index-D8cruW0P.css +0 -1
- package/.output/public/assets/index-DZyTpd2w.js +0 -1
- package/.output/server/_tanstack-start-manifest_v-C_HvRzgP.mjs +0 -4
|
@@ -0,0 +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/knowledge/candidates", "/api/knowledge/project-context", "/api/knowledge/search", "/api/knowledge/sessions/$sessionId/candidates"], "preloads": ["/assets/main-CuKZD7n0.js"], "assets": [] }, "/": { "filePath": "C:/Users/claw/workspace/agent-inspector/src/routes/index.tsx", "assets": [], "preloads": ["/assets/index-C29Olfzt.js", "/assets/ProxyViewerContainer-p-rpYyiF.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-D5fYH2C0.js", "/assets/ProxyViewerContainer-p-rpYyiF.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" }, "/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/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/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-CuKZD7n0.js" });
|
|
2
|
+
export {
|
|
3
|
+
tsrStartManifest
|
|
4
|
+
};
|
package/.output/server/index.mjs
CHANGED
|
@@ -38,114 +38,114 @@ const assets = {
|
|
|
38
38
|
"/assets/alibaba-TTwafVwX.svg": {
|
|
39
39
|
"type": "image/svg+xml",
|
|
40
40
|
"etag": '"171b-6dyV5K8QjiaY35sN9qNprh9zDIs"',
|
|
41
|
-
"mtime": "2026-07-
|
|
41
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
42
42
|
"size": 5915,
|
|
43
43
|
"path": "../public/assets/alibaba-TTwafVwX.svg"
|
|
44
44
|
},
|
|
45
|
-
"/assets/
|
|
45
|
+
"/assets/index-C29Olfzt.js": {
|
|
46
46
|
"type": "text/javascript; charset=utf-8",
|
|
47
|
-
"etag": '"
|
|
48
|
-
"mtime": "2026-07-
|
|
49
|
-
"size": 19391,
|
|
50
|
-
"path": "../public/assets/CompareDrawer-Co-35_Xw.js"
|
|
51
|
-
},
|
|
52
|
-
"/assets/index-DZyTpd2w.js": {
|
|
53
|
-
"type": "text/javascript; charset=utf-8",
|
|
54
|
-
"etag": '"74-CRX5c/lNSq8LblJqtg+V92AgFnM"',
|
|
55
|
-
"mtime": "2026-07-07T02:41:58.781Z",
|
|
47
|
+
"etag": '"74-s+7/jMd3WYqZzQ3XOcigwii5CRc"',
|
|
48
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
56
49
|
"size": 116,
|
|
57
|
-
"path": "../public/assets/index-
|
|
50
|
+
"path": "../public/assets/index-C29Olfzt.js"
|
|
58
51
|
},
|
|
59
|
-
"/assets/
|
|
60
|
-
"type": "text/
|
|
61
|
-
"etag": '"
|
|
62
|
-
"mtime": "2026-07-
|
|
63
|
-
"size":
|
|
64
|
-
"path": "../public/assets/
|
|
52
|
+
"/assets/CompareDrawer-C0Kbsm-Q.js": {
|
|
53
|
+
"type": "text/javascript; charset=utf-8",
|
|
54
|
+
"etag": '"4bc3-3/VJbR0ecEp8fqbT2a5kapBN4fQ"',
|
|
55
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
56
|
+
"size": 19395,
|
|
57
|
+
"path": "../public/assets/CompareDrawer-C0Kbsm-Q.js"
|
|
65
58
|
},
|
|
66
|
-
"/assets/
|
|
67
|
-
"type": "
|
|
68
|
-
"etag": '"
|
|
69
|
-
"mtime": "2026-07-
|
|
70
|
-
"size":
|
|
71
|
-
"path": "../public/assets/
|
|
59
|
+
"/assets/json-viewer-B0QRbMSf.js": {
|
|
60
|
+
"type": "text/javascript; charset=utf-8",
|
|
61
|
+
"etag": '"1ae6-HDeKTwqcL77vuf9Xf8Mztpyi9c0"',
|
|
62
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
63
|
+
"size": 6886,
|
|
64
|
+
"path": "../public/assets/json-viewer-B0QRbMSf.js"
|
|
72
65
|
},
|
|
73
|
-
"/assets/index-
|
|
66
|
+
"/assets/index-BEsqvywM.js": {
|
|
74
67
|
"type": "text/javascript; charset=utf-8",
|
|
75
|
-
"etag": '"1cd2c-
|
|
76
|
-
"mtime": "2026-07-
|
|
68
|
+
"etag": '"1cd2c-4JNStjVbTapY8ZiFdMrGpVJbzaM"',
|
|
69
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
77
70
|
"size": 118060,
|
|
78
|
-
"path": "../public/assets/index-
|
|
71
|
+
"path": "../public/assets/index-BEsqvywM.js"
|
|
79
72
|
},
|
|
80
|
-
"/assets/
|
|
81
|
-
"type": "text/
|
|
82
|
-
"etag": '"
|
|
83
|
-
"mtime": "2026-07-
|
|
84
|
-
"size":
|
|
85
|
-
"path": "../public/assets/
|
|
73
|
+
"/assets/index-DgANE0r3.css": {
|
|
74
|
+
"type": "text/css; charset=utf-8",
|
|
75
|
+
"etag": '"22822-3pXTBm3VZrblIU9z3J9JDN7tcyw"',
|
|
76
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
77
|
+
"size": 141346,
|
|
78
|
+
"path": "../public/assets/index-DgANE0r3.css"
|
|
86
79
|
},
|
|
87
|
-
"/assets/main-
|
|
80
|
+
"/assets/main-CuKZD7n0.js": {
|
|
88
81
|
"type": "text/javascript; charset=utf-8",
|
|
89
|
-
"etag": '"512fd-
|
|
90
|
-
"mtime": "2026-07-
|
|
82
|
+
"etag": '"512fd-5AcmxJQrVhDjQwawGVXebWzVm+8"',
|
|
83
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
91
84
|
"size": 332541,
|
|
92
|
-
"path": "../public/assets/main-
|
|
85
|
+
"path": "../public/assets/main-CuKZD7n0.js"
|
|
93
86
|
},
|
|
94
|
-
"/assets/ReplayDialog-
|
|
87
|
+
"/assets/ReplayDialog-CM3dhP8v.js": {
|
|
95
88
|
"type": "text/javascript; charset=utf-8",
|
|
96
|
-
"etag": '"31d6-
|
|
97
|
-
"mtime": "2026-07-
|
|
89
|
+
"etag": '"31d6-9NTEpX75drhjb91rAk+PyzE3Ffs"',
|
|
90
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
98
91
|
"size": 12758,
|
|
99
|
-
"path": "../public/assets/ReplayDialog-
|
|
92
|
+
"path": "../public/assets/ReplayDialog-CM3dhP8v.js"
|
|
100
93
|
},
|
|
101
|
-
"/assets/
|
|
102
|
-
"type": "
|
|
103
|
-
"etag": '"
|
|
104
|
-
"mtime": "2026-07-
|
|
105
|
-
"size":
|
|
106
|
-
"path": "../public/assets/
|
|
94
|
+
"/assets/minimax-BPMzvuL-.jpeg": {
|
|
95
|
+
"type": "image/jpeg",
|
|
96
|
+
"etag": '"1b06-IwivU89ko5UTMUM1/t7hn4sQK9A"',
|
|
97
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
98
|
+
"size": 6918,
|
|
99
|
+
"path": "../public/assets/minimax-BPMzvuL-.jpeg"
|
|
107
100
|
},
|
|
108
|
-
"/assets/
|
|
101
|
+
"/assets/RequestAnatomy-fa0JXy5p.js": {
|
|
109
102
|
"type": "text/javascript; charset=utf-8",
|
|
110
|
-
"etag": '"
|
|
111
|
-
"mtime": "2026-07-
|
|
112
|
-
"size":
|
|
113
|
-
"path": "../public/assets/
|
|
103
|
+
"etag": '"43f2-zAYk5x91KzRRJ64tCmBGM0YQM78"',
|
|
104
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
105
|
+
"size": 17394,
|
|
106
|
+
"path": "../public/assets/RequestAnatomy-fa0JXy5p.js"
|
|
114
107
|
},
|
|
115
|
-
"/assets/StreamingChunkSequence-
|
|
108
|
+
"/assets/StreamingChunkSequence-CGOun3Df.js": {
|
|
116
109
|
"type": "text/javascript; charset=utf-8",
|
|
117
|
-
"etag": '"dd6-
|
|
118
|
-
"mtime": "2026-07-
|
|
110
|
+
"etag": '"dd6-uVBRgD1iZ+bzNCittGBxPQnS57s"',
|
|
111
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
119
112
|
"size": 3542,
|
|
120
|
-
"path": "../public/assets/StreamingChunkSequence-
|
|
121
|
-
},
|
|
122
|
-
"/assets/_sessionId-DHRhWzKe.js": {
|
|
123
|
-
"type": "text/javascript; charset=utf-8",
|
|
124
|
-
"etag": '"36c-bnsN2jT/xjUgKLfZr/ketsobX+Y"',
|
|
125
|
-
"mtime": "2026-07-07T02:41:58.781Z",
|
|
126
|
-
"size": 876,
|
|
127
|
-
"path": "../public/assets/_sessionId-DHRhWzKe.js"
|
|
113
|
+
"path": "../public/assets/StreamingChunkSequence-CGOun3Df.js"
|
|
128
114
|
},
|
|
129
115
|
"/assets/zhipuai-BPNAnxo-.svg": {
|
|
130
116
|
"type": "image/svg+xml",
|
|
131
117
|
"etag": '"2bf8-hNaLCTi89nOFCsIIfWpP/jrfo0s"',
|
|
132
|
-
"mtime": "2026-07-
|
|
118
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
133
119
|
"size": 11256,
|
|
134
120
|
"path": "../public/assets/zhipuai-BPNAnxo-.svg"
|
|
135
121
|
},
|
|
122
|
+
"/assets/_sessionId-D5fYH2C0.js": {
|
|
123
|
+
"type": "text/javascript; charset=utf-8",
|
|
124
|
+
"etag": '"36c-T0Z2CDujLBhIqkZaWr7QMjUQmLY"',
|
|
125
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
126
|
+
"size": 876,
|
|
127
|
+
"path": "../public/assets/_sessionId-D5fYH2C0.js"
|
|
128
|
+
},
|
|
129
|
+
"/assets/ResponseView-Bq6sC7Ay.js": {
|
|
130
|
+
"type": "text/javascript; charset=utf-8",
|
|
131
|
+
"etag": '"47fa-1d2SEiO5LDVauvFaf3awOUXVtu0"',
|
|
132
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
133
|
+
"size": 18426,
|
|
134
|
+
"path": "../public/assets/ResponseView-Bq6sC7Ay.js"
|
|
135
|
+
},
|
|
136
136
|
"/assets/qwen-CONDcHqt.png": {
|
|
137
137
|
"type": "image/png",
|
|
138
138
|
"etag": '"572c3-cdJAPaHdOvFCGzuaQjagdgOu6XE"',
|
|
139
|
-
"mtime": "2026-07-
|
|
139
|
+
"mtime": "2026-07-07T03:30:05.671Z",
|
|
140
140
|
"size": 357059,
|
|
141
141
|
"path": "../public/assets/qwen-CONDcHqt.png"
|
|
142
142
|
},
|
|
143
|
-
"/assets/ProxyViewerContainer-
|
|
143
|
+
"/assets/ProxyViewerContainer-p-rpYyiF.js": {
|
|
144
144
|
"type": "text/javascript; charset=utf-8",
|
|
145
|
-
"etag": '"
|
|
146
|
-
"mtime": "2026-07-
|
|
147
|
-
"size":
|
|
148
|
-
"path": "../public/assets/ProxyViewerContainer-
|
|
145
|
+
"etag": '"b4a83-phSZuesX9+pumw3nmK0JBX5WjYc"',
|
|
146
|
+
"mtime": "2026-07-07T03:30:05.672Z",
|
|
147
|
+
"size": 739971,
|
|
148
|
+
"path": "../public/assets/ProxyViewerContainer-p-rpYyiF.js"
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
function readAsset(id) {
|
package/package.json
CHANGED
|
@@ -58,6 +58,7 @@ import type { TransientToastInput } from "./ui/transient-toast";
|
|
|
58
58
|
import { AlertsDialog } from "./alerts/AlertsDialog";
|
|
59
59
|
import { GroupsDialog } from "./groups/GroupsDialog";
|
|
60
60
|
import { SettingsDialog } from "./providers/SettingsDialog";
|
|
61
|
+
import { AgentLabDialog } from "./ecosystem/AgentLabDialog";
|
|
61
62
|
import { computeCacheTrends } from "./proxy-viewer/cacheTrend";
|
|
62
63
|
import { LazyCompareDrawer } from "./proxy-viewer/lazy";
|
|
63
64
|
import { dispatchLogFocusRequest } from "./proxy-viewer/logFocus";
|
|
@@ -1282,19 +1283,23 @@ function CrabFamily({
|
|
|
1282
1283
|
function BrandHeader({
|
|
1283
1284
|
compact,
|
|
1284
1285
|
crabEntrancePhase,
|
|
1286
|
+
currentSessionId,
|
|
1287
|
+
logCount,
|
|
1285
1288
|
}: {
|
|
1286
1289
|
compact: boolean;
|
|
1287
1290
|
crabEntrancePhase: "hidden" | "playing" | "done";
|
|
1291
|
+
currentSessionId: string | null;
|
|
1292
|
+
logCount: number;
|
|
1288
1293
|
}): JSX.Element {
|
|
1289
1294
|
if (compact) {
|
|
1290
1295
|
return (
|
|
1291
1296
|
<div className="bg-white/[0.035] shadow-[inset_0_1px_0_rgba(255,255,255,0.045),0_16px_44px_rgba(0,0,0,0.18)] rounded-[8px] p-3">
|
|
1292
|
-
<div className="flex items-start justify-between gap-3">
|
|
1293
|
-
<div className="flex min-w-
|
|
1297
|
+
<div className="flex flex-wrap items-start justify-between gap-3">
|
|
1298
|
+
<div className="flex min-w-fit items-start gap-2">
|
|
1294
1299
|
<CrabFamily compact={true} entrancePhase={crabEntrancePhase} />
|
|
1295
|
-
<div className="min-w-
|
|
1296
|
-
<div className="flex min-w-
|
|
1297
|
-
<span className="
|
|
1300
|
+
<div className="min-w-fit">
|
|
1301
|
+
<div className="flex min-w-fit flex-wrap items-baseline gap-x-2 gap-y-0.5">
|
|
1302
|
+
<span className="whitespace-nowrap text-base font-bold">Agent Inspector</span>
|
|
1298
1303
|
<span className="hidden shrink-0 font-mono text-[11px] font-semibold text-muted-foreground sm:inline">
|
|
1299
1304
|
v{packageJson.version}
|
|
1300
1305
|
</span>
|
|
@@ -1307,6 +1312,7 @@ function BrandHeader({
|
|
|
1307
1312
|
<div className="flex shrink-0 items-center gap-1">
|
|
1308
1313
|
<AlertsDialog />
|
|
1309
1314
|
<GroupsDialog />
|
|
1315
|
+
<AgentLabDialog currentSessionId={currentSessionId} logCount={logCount} />
|
|
1310
1316
|
<SettingsDialog />
|
|
1311
1317
|
</div>
|
|
1312
1318
|
</div>
|
|
@@ -1318,13 +1324,13 @@ function BrandHeader({
|
|
|
1318
1324
|
}
|
|
1319
1325
|
|
|
1320
1326
|
return (
|
|
1321
|
-
<div className="
|
|
1322
|
-
<div />
|
|
1323
|
-
<h1 className="flex min-w-
|
|
1324
|
-
<span className="flex max-w-
|
|
1327
|
+
<div className="flex flex-wrap items-start justify-between gap-x-4 gap-y-3 pb-6">
|
|
1328
|
+
<div className="min-w-10 flex-1" aria-hidden="true" />
|
|
1329
|
+
<h1 className="flex min-w-fit flex-col items-center gap-2 text-center">
|
|
1330
|
+
<span className="flex max-w-full flex-wrap items-end justify-center gap-x-2 gap-y-1">
|
|
1325
1331
|
<CrabFamily compact={false} entrancePhase={crabEntrancePhase} />
|
|
1326
|
-
<span className="flex min-w-
|
|
1327
|
-
<span className="
|
|
1332
|
+
<span className="flex min-w-fit flex-wrap items-baseline justify-center gap-x-2 gap-y-0.5 pl-1">
|
|
1333
|
+
<span className="whitespace-nowrap text-lg font-bold">Agent Inspector</span>
|
|
1328
1334
|
<span className="shrink-0 font-mono text-xs font-semibold text-muted-foreground">
|
|
1329
1335
|
v{packageJson.version}
|
|
1330
1336
|
</span>
|
|
@@ -1332,14 +1338,15 @@ function BrandHeader({
|
|
|
1332
1338
|
<Plus className="size-4 shrink-0 text-muted-foreground/70" aria-hidden="true" />
|
|
1333
1339
|
<McpLogo className="size-10 shrink-0" />
|
|
1334
1340
|
</span>
|
|
1335
|
-
<span className="max-w-
|
|
1341
|
+
<span className="max-w-full text-sm font-semibold text-muted-foreground">
|
|
1336
1342
|
Local First. Evidence First.
|
|
1337
1343
|
</span>
|
|
1338
1344
|
<McpReadyBadge />
|
|
1339
1345
|
</h1>
|
|
1340
|
-
<div className="
|
|
1346
|
+
<div className="flex flex-1 justify-end gap-1">
|
|
1341
1347
|
<AlertsDialog />
|
|
1342
1348
|
<GroupsDialog />
|
|
1349
|
+
<AgentLabDialog currentSessionId={currentSessionId} logCount={logCount} />
|
|
1343
1350
|
<SettingsDialog />
|
|
1344
1351
|
</div>
|
|
1345
1352
|
</div>
|
|
@@ -1884,13 +1891,24 @@ export function ProxyViewer({
|
|
|
1884
1891
|
},
|
|
1885
1892
|
[onSessionChange],
|
|
1886
1893
|
);
|
|
1894
|
+
const labSessionId =
|
|
1895
|
+
pinnedSessionId !== undefined
|
|
1896
|
+
? pinnedSessionId
|
|
1897
|
+
: selectedSession === "__all__"
|
|
1898
|
+
? null
|
|
1899
|
+
: selectedSession;
|
|
1887
1900
|
|
|
1888
1901
|
return (
|
|
1889
1902
|
<div className="bg-background min-h-screen w-full text-foreground">
|
|
1890
1903
|
<div className="grid min-h-screen w-full grid-cols-1 lg:grid-cols-[minmax(0,1fr)_340px] xl:grid-cols-[minmax(0,1fr)_360px]">
|
|
1891
1904
|
<aside className="bg-background/95 order-1 border-b border-white/[0.045] lg:sticky lg:top-0 lg:order-2 lg:h-screen lg:overflow-y-auto lg:border-b-0 lg:border-l lg:border-white/[0.055]">
|
|
1892
1905
|
<div className="space-y-4 p-4">
|
|
1893
|
-
<BrandHeader
|
|
1906
|
+
<BrandHeader
|
|
1907
|
+
compact={true}
|
|
1908
|
+
crabEntrancePhase={crabEntrancePhase}
|
|
1909
|
+
currentSessionId={labSessionId}
|
|
1910
|
+
logCount={logs.length}
|
|
1911
|
+
/>
|
|
1894
1912
|
|
|
1895
1913
|
<SidebarPanel label="Session">
|
|
1896
1914
|
<div className="grid grid-cols-2 gap-2">
|
|
@@ -304,7 +304,7 @@ function AlertList({
|
|
|
304
304
|
{categoryLabel(alert.category)}
|
|
305
305
|
</span>
|
|
306
306
|
</div>
|
|
307
|
-
<div className="mt-1
|
|
307
|
+
<div className="mt-1 text-sm font-semibold leading-snug">{alert.title}</div>
|
|
308
308
|
<div className="mt-1 line-clamp-2 text-xs text-muted-foreground">
|
|
309
309
|
{alert.message}
|
|
310
310
|
</div>
|
|
@@ -315,8 +315,8 @@ function AlertList({
|
|
|
315
315
|
</Badge>
|
|
316
316
|
) : null}
|
|
317
317
|
</div>
|
|
318
|
-
<div className="mt-2 flex min-w-0 items-
|
|
319
|
-
<span className="
|
|
318
|
+
<div className="mt-2 flex min-w-0 items-start justify-between gap-2 text-[11px] text-muted-foreground">
|
|
319
|
+
<span className="min-w-0 leading-snug">{providerModel(alert)}</span>
|
|
320
320
|
<span className="shrink-0">{formatTimestamp(alert.lastSeenAt)}</span>
|
|
321
321
|
</div>
|
|
322
322
|
</button>
|