@tonyclaw/agent-inspector 3.0.0 → 3.0.1
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/cli.js +7 -1
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{CompareDrawer-ZL1yvIH6.js → CompareDrawer-BgcAk1te.js} +1 -1
- package/.output/public/assets/{ProxyViewerContainer-vhfV449d.js → ProxyViewerContainer-7b_uwvT7.js} +4 -4
- package/.output/public/assets/{ReplayDialog-D-gDSuhe.js → ReplayDialog-7Pvhjbjk.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-CVt2vHih.js → RequestAnatomy-BX-UKYQg.js} +1 -1
- package/.output/public/assets/{ResponseView-zVdHc0mv.js → ResponseView-zFxGX8xH.js} +2 -2
- package/.output/public/assets/{StreamingChunkSequence-DQFhpV_4.js → StreamingChunkSequence-DzXzVtBF.js} +1 -1
- package/.output/public/assets/{_sessionId-DeeeQcS9.js → _sessionId-CmsUOEIS.js} +1 -1
- package/.output/public/assets/{index-_inxJ5Yi.js → index-DXR7RB48.js} +1 -1
- package/.output/public/assets/index-MfTE52Ty.js +1 -0
- package/.output/public/assets/{json-viewer-B9gYSlz7.js → json-viewer-CiMN_9sG.js} +1 -1
- package/.output/public/assets/{main-Do_fjInc.js → main-Ba9x64uY.js} +2 -2
- package/.output/server/{_sessionId-D1XraBbJ.mjs → _sessionId-B8GZtC4P.mjs} +2 -2
- package/.output/server/_ssr/{CompareDrawer-Ot4EsLht.mjs → CompareDrawer-SBDtZDAp.mjs} +2 -2
- package/.output/server/_ssr/{ProxyViewerContainer-Cb4ZWwFC.mjs → ProxyViewerContainer-B__2O0zh.mjs} +8 -8
- package/.output/server/_ssr/{ReplayDialog-B5m_dFdr.mjs → ReplayDialog-D0u1VHz_.mjs} +3 -3
- package/.output/server/_ssr/{RequestAnatomy-OUrXKyoI.mjs → RequestAnatomy-ClvQ3RFh.mjs} +2 -2
- package/.output/server/_ssr/{ResponseView-DV1N1gQ8.mjs → ResponseView-B4UAvUym.mjs} +2 -2
- package/.output/server/_ssr/{StreamingChunkSequence-CJl70SsF.mjs → StreamingChunkSequence-D_aiGGzz.mjs} +2 -2
- package/.output/server/_ssr/{index-CztmjZ0i.mjs → index-DuWacKr6.mjs} +2 -2
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{json-viewer-CO0sbce_.mjs → json-viewer-CmNMVinH.mjs} +2 -2
- package/.output/server/_ssr/{router-BxWKty_9.mjs → router-BP46kVrE.mjs} +24 -4
- package/.output/server/{_tanstack-start-manifest_v-BvJ2LKGG.mjs → _tanstack-start-manifest_v-DltuTRfm.mjs} +1 -1
- package/.output/server/index.mjs +63 -63
- package/package.json +1 -1
- package/src/cli.ts +9 -1
- package/src/proxy/sessionProcess.ts +22 -1
- package/.output/public/assets/index-BJvPLWvO.js +0 -1
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-07T00:
|
|
41
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
42
42
|
"size": 5915,
|
|
43
43
|
"path": "../public/assets/alibaba-TTwafVwX.svg"
|
|
44
44
|
},
|
|
45
|
-
"/assets/CompareDrawer-
|
|
45
|
+
"/assets/CompareDrawer-BgcAk1te.js": {
|
|
46
46
|
"type": "text/javascript; charset=utf-8",
|
|
47
|
-
"etag": '"4bbf-
|
|
48
|
-
"mtime": "2026-07-07T00:
|
|
47
|
+
"etag": '"4bbf-gA9nBXsloTEIMhmM3ql/4qNmhOs"',
|
|
48
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
49
49
|
"size": 19391,
|
|
50
|
-
"path": "../public/assets/CompareDrawer-
|
|
50
|
+
"path": "../public/assets/CompareDrawer-BgcAk1te.js"
|
|
51
51
|
},
|
|
52
|
-
"/assets/
|
|
52
|
+
"/assets/index-DXR7RB48.js": {
|
|
53
53
|
"type": "text/javascript; charset=utf-8",
|
|
54
|
-
"etag": '"
|
|
55
|
-
"mtime": "2026-07-07T00:
|
|
54
|
+
"etag": '"1cd2c-3SEnnZb993yst8Dzg9UbKuoON3A"',
|
|
55
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
56
|
+
"size": 118060,
|
|
57
|
+
"path": "../public/assets/index-DXR7RB48.js"
|
|
58
|
+
},
|
|
59
|
+
"/assets/json-viewer-CiMN_9sG.js": {
|
|
60
|
+
"type": "text/javascript; charset=utf-8",
|
|
61
|
+
"etag": '"1ae6-uMTpz3tfSXntmUuk5MzHyqBxhWI"',
|
|
62
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
56
63
|
"size": 6886,
|
|
57
|
-
"path": "../public/assets/json-viewer-
|
|
64
|
+
"path": "../public/assets/json-viewer-CiMN_9sG.js"
|
|
65
|
+
},
|
|
66
|
+
"/assets/index-Tq5s9NV0.css": {
|
|
67
|
+
"type": "text/css; charset=utf-8",
|
|
68
|
+
"etag": '"22408-MQKT02eqQudVEj/DozyiEJoTl6E"',
|
|
69
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
70
|
+
"size": 140296,
|
|
71
|
+
"path": "../public/assets/index-Tq5s9NV0.css"
|
|
58
72
|
},
|
|
59
73
|
"/assets/minimax-BPMzvuL-.jpeg": {
|
|
60
74
|
"type": "image/jpeg",
|
|
61
75
|
"etag": '"1b06-IwivU89ko5UTMUM1/t7hn4sQK9A"',
|
|
62
|
-
"mtime": "2026-07-07T00:
|
|
76
|
+
"mtime": "2026-07-07T00:47:56.084Z",
|
|
63
77
|
"size": 6918,
|
|
64
78
|
"path": "../public/assets/minimax-BPMzvuL-.jpeg"
|
|
65
79
|
},
|
|
66
|
-
"/assets/index-
|
|
80
|
+
"/assets/index-MfTE52Ty.js": {
|
|
67
81
|
"type": "text/javascript; charset=utf-8",
|
|
68
|
-
"etag": '"
|
|
69
|
-
"mtime": "2026-07-07T00:
|
|
70
|
-
"size": 118060,
|
|
71
|
-
"path": "../public/assets/index-_inxJ5Yi.js"
|
|
72
|
-
},
|
|
73
|
-
"/assets/index-BJvPLWvO.js": {
|
|
74
|
-
"type": "text/javascript; charset=utf-8",
|
|
75
|
-
"etag": '"74-BHSPo95dMXATS9vdlnudttsOua0"',
|
|
76
|
-
"mtime": "2026-07-07T00:31:07.942Z",
|
|
82
|
+
"etag": '"74-xI8cgjppS3YpgGFVqBj/+DUVe/4"',
|
|
83
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
77
84
|
"size": 116,
|
|
78
|
-
"path": "../public/assets/index-
|
|
85
|
+
"path": "../public/assets/index-MfTE52Ty.js"
|
|
79
86
|
},
|
|
80
|
-
"/assets/
|
|
81
|
-
"type": "text/
|
|
82
|
-
"etag": '"
|
|
83
|
-
"mtime": "2026-07-07T00:
|
|
84
|
-
"size":
|
|
85
|
-
"path": "../public/assets/
|
|
87
|
+
"/assets/ReplayDialog-7Pvhjbjk.js": {
|
|
88
|
+
"type": "text/javascript; charset=utf-8",
|
|
89
|
+
"etag": '"31d6-WfysEtvfuOApCBk5olHqKk8rMfU"',
|
|
90
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
91
|
+
"size": 12758,
|
|
92
|
+
"path": "../public/assets/ReplayDialog-7Pvhjbjk.js"
|
|
86
93
|
},
|
|
87
|
-
"/assets/
|
|
94
|
+
"/assets/main-Ba9x64uY.js": {
|
|
88
95
|
"type": "text/javascript; charset=utf-8",
|
|
89
|
-
"etag": '"
|
|
90
|
-
"mtime": "2026-07-07T00:
|
|
91
|
-
"size":
|
|
92
|
-
"path": "../public/assets/
|
|
96
|
+
"etag": '"512fd-xrDcMUYYndBJtS06eXJ9QM25lz4"',
|
|
97
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
98
|
+
"size": 332541,
|
|
99
|
+
"path": "../public/assets/main-Ba9x64uY.js"
|
|
93
100
|
},
|
|
94
|
-
"/assets/StreamingChunkSequence-
|
|
101
|
+
"/assets/StreamingChunkSequence-DzXzVtBF.js": {
|
|
95
102
|
"type": "text/javascript; charset=utf-8",
|
|
96
|
-
"etag": '"dd6-
|
|
97
|
-
"mtime": "2026-07-07T00:
|
|
103
|
+
"etag": '"dd6-FSNaNigsd1X+gyqALfVxeG2s4fo"',
|
|
104
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
98
105
|
"size": 3542,
|
|
99
|
-
"path": "../public/assets/StreamingChunkSequence-
|
|
106
|
+
"path": "../public/assets/StreamingChunkSequence-DzXzVtBF.js"
|
|
100
107
|
},
|
|
101
108
|
"/assets/zhipuai-BPNAnxo-.svg": {
|
|
102
109
|
"type": "image/svg+xml",
|
|
103
110
|
"etag": '"2bf8-hNaLCTi89nOFCsIIfWpP/jrfo0s"',
|
|
104
|
-
"mtime": "2026-07-07T00:
|
|
111
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
105
112
|
"size": 11256,
|
|
106
113
|
"path": "../public/assets/zhipuai-BPNAnxo-.svg"
|
|
107
114
|
},
|
|
108
|
-
"/assets/
|
|
115
|
+
"/assets/RequestAnatomy-BX-UKYQg.js": {
|
|
109
116
|
"type": "text/javascript; charset=utf-8",
|
|
110
|
-
"etag": '"
|
|
111
|
-
"mtime": "2026-07-07T00:
|
|
112
|
-
"size":
|
|
113
|
-
"path": "../public/assets/
|
|
114
|
-
},
|
|
115
|
-
"/assets/ReplayDialog-D-gDSuhe.js": {
|
|
116
|
-
"type": "text/javascript; charset=utf-8",
|
|
117
|
-
"etag": '"31d6-7nPX+7CzElY2l3LTEI8tdhGnb9g"',
|
|
118
|
-
"mtime": "2026-07-07T00:31:07.942Z",
|
|
119
|
-
"size": 12758,
|
|
120
|
-
"path": "../public/assets/ReplayDialog-D-gDSuhe.js"
|
|
117
|
+
"etag": '"43f2-Zq3l43VsakNoYmpaf2yidbFacQg"',
|
|
118
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
119
|
+
"size": 17394,
|
|
120
|
+
"path": "../public/assets/RequestAnatomy-BX-UKYQg.js"
|
|
121
121
|
},
|
|
122
|
-
"/assets/ResponseView-
|
|
122
|
+
"/assets/ResponseView-zFxGX8xH.js": {
|
|
123
123
|
"type": "text/javascript; charset=utf-8",
|
|
124
|
-
"etag": '"47fa-
|
|
125
|
-
"mtime": "2026-07-07T00:
|
|
124
|
+
"etag": '"47fa-7HB1lxdpkTuo7BEzpS+JAr6zRjM"',
|
|
125
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
126
126
|
"size": 18426,
|
|
127
|
-
"path": "../public/assets/ResponseView-
|
|
127
|
+
"path": "../public/assets/ResponseView-zFxGX8xH.js"
|
|
128
128
|
},
|
|
129
|
-
"/assets/
|
|
129
|
+
"/assets/_sessionId-CmsUOEIS.js": {
|
|
130
130
|
"type": "text/javascript; charset=utf-8",
|
|
131
|
-
"etag": '"
|
|
132
|
-
"mtime": "2026-07-07T00:
|
|
133
|
-
"size":
|
|
134
|
-
"path": "../public/assets/
|
|
131
|
+
"etag": '"36c-oBFmeA36vW57pay3tX7/Tm7ZnGI"',
|
|
132
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
133
|
+
"size": 876,
|
|
134
|
+
"path": "../public/assets/_sessionId-CmsUOEIS.js"
|
|
135
135
|
},
|
|
136
136
|
"/assets/qwen-CONDcHqt.png": {
|
|
137
137
|
"type": "image/png",
|
|
138
138
|
"etag": '"572c3-cdJAPaHdOvFCGzuaQjagdgOu6XE"',
|
|
139
|
-
"mtime": "2026-07-07T00:
|
|
139
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
140
140
|
"size": 357059,
|
|
141
141
|
"path": "../public/assets/qwen-CONDcHqt.png"
|
|
142
142
|
},
|
|
143
|
-
"/assets/ProxyViewerContainer-
|
|
143
|
+
"/assets/ProxyViewerContainer-7b_uwvT7.js": {
|
|
144
144
|
"type": "text/javascript; charset=utf-8",
|
|
145
|
-
"etag": '"aef11-
|
|
146
|
-
"mtime": "2026-07-07T00:
|
|
145
|
+
"etag": '"aef11-9vtbsodrImAt3S4nrgSZgSQRdnc"',
|
|
146
|
+
"mtime": "2026-07-07T00:47:56.086Z",
|
|
147
147
|
"size": 716561,
|
|
148
|
-
"path": "../public/assets/ProxyViewerContainer-
|
|
148
|
+
"path": "../public/assets/ProxyViewerContainer-7b_uwvT7.js"
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
function readAsset(id) {
|
package/package.json
CHANGED
package/src/cli.ts
CHANGED
|
@@ -158,6 +158,10 @@ function openBrowser(targetUrl: string): void {
|
|
|
158
158
|
detached: true,
|
|
159
159
|
windowsHide: true,
|
|
160
160
|
});
|
|
161
|
+
browserProcess.once("error", () => {
|
|
162
|
+
// Opening a browser is best-effort. Minimal Linux/container images may not
|
|
163
|
+
// include xdg-open, and that should not make the CLI look unhealthy.
|
|
164
|
+
});
|
|
161
165
|
browserProcess.unref();
|
|
162
166
|
}
|
|
163
167
|
|
|
@@ -629,6 +633,10 @@ async function runStart(args: string[]): Promise<void> {
|
|
|
629
633
|
env: serverEnv,
|
|
630
634
|
windowsHide: background,
|
|
631
635
|
});
|
|
636
|
+
serverProcess.once("error", (err) => {
|
|
637
|
+
console.error(`Failed to start Agent Inspector runtime: ${err.message}`);
|
|
638
|
+
});
|
|
639
|
+
const serverExit = waitForProcessExit(serverProcess);
|
|
632
640
|
if (!background) {
|
|
633
641
|
pipeServerOutput(serverProcess, {
|
|
634
642
|
enableIdentityProxy,
|
|
@@ -708,7 +716,7 @@ async function runStart(args: string[]): Promise<void> {
|
|
|
708
716
|
}
|
|
709
717
|
}
|
|
710
718
|
|
|
711
|
-
process.exitCode = await
|
|
719
|
+
process.exitCode = await serverExit;
|
|
712
720
|
|
|
713
721
|
for (const proxy of identityProxies) {
|
|
714
722
|
await new Promise<void>((resolve) => proxy.server.close(() => resolve()));
|
|
@@ -14,6 +14,10 @@ type PendingJob = {
|
|
|
14
14
|
reject: (err: Error) => void;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
function errorMessage(err: unknown): string {
|
|
18
|
+
return err instanceof Error ? err.message : String(err);
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
function resolveSessionWorkerPath(): string {
|
|
18
22
|
return fileURLToPath(new URL("./sessionWorkerEntry.ts", import.meta.url));
|
|
19
23
|
}
|
|
@@ -95,7 +99,24 @@ export class SessionProcess {
|
|
|
95
99
|
const child = this.ensureRunning();
|
|
96
100
|
const id = String(++this.nextId);
|
|
97
101
|
this.pending.set(id, { resolve, reject });
|
|
98
|
-
|
|
102
|
+
try {
|
|
103
|
+
child.send({ id, job }, (err) => {
|
|
104
|
+
if (err === null || err === undefined) return;
|
|
105
|
+
this.pending.delete(id);
|
|
106
|
+
reject(
|
|
107
|
+
new Error(
|
|
108
|
+
`Session process send failed for session=${this.sessionId}: ${errorMessage(err)}`,
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
});
|
|
112
|
+
} catch (err) {
|
|
113
|
+
this.pending.delete(id);
|
|
114
|
+
reject(
|
|
115
|
+
new Error(
|
|
116
|
+
`Session process send failed for session=${this.sessionId}: ${errorMessage(err)}`,
|
|
117
|
+
),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
99
120
|
});
|
|
100
121
|
}
|
|
101
122
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{P as o}from"./ProxyViewerContainer-vhfV449d.js";import"./main-Do_fjInc.js";const r=o;export{r as component};
|