@tonyclaw/agent-inspector 2.1.24 → 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 +85 -30
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{CompareDrawer-DsHSCHSx.js → CompareDrawer-BgcAk1te.js} +1 -1
- package/.output/public/assets/{ProxyViewerContainer-GI3xErl5.js → ProxyViewerContainer-7b_uwvT7.js} +6 -6
- package/.output/public/assets/{ReplayDialog-D0ixqStX.js → ReplayDialog-7Pvhjbjk.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-BG5mb14k.js → RequestAnatomy-BX-UKYQg.js} +1 -1
- package/.output/public/assets/{ResponseView-Bgns6xum.js → ResponseView-zFxGX8xH.js} +2 -2
- package/.output/public/assets/{StreamingChunkSequence-BeqKXAS6.js → StreamingChunkSequence-DzXzVtBF.js} +1 -1
- package/.output/public/assets/{_sessionId-Nme0kuTf.js → _sessionId-CmsUOEIS.js} +1 -1
- package/.output/public/assets/{index-hbDdeKtc.js → index-DXR7RB48.js} +1 -1
- package/.output/public/assets/index-MfTE52Ty.js +1 -0
- package/.output/public/assets/{json-viewer-CWxF2eLV.js → json-viewer-CiMN_9sG.js} +1 -1
- package/.output/public/assets/{main-BDfcCp_1.js → main-Ba9x64uY.js} +2 -2
- package/.output/server/{_sessionId-DOHtZHvJ.mjs → _sessionId-B8GZtC4P.mjs} +2 -2
- package/.output/server/_ssr/{CompareDrawer-HMfALocK.mjs → CompareDrawer-SBDtZDAp.mjs} +2 -2
- package/.output/server/_ssr/{ProxyViewerContainer-DgnyaJPd.mjs → ProxyViewerContainer-B__2O0zh.mjs} +12 -12
- package/.output/server/_ssr/{ReplayDialog-DyIQdJHE.mjs → ReplayDialog-D0u1VHz_.mjs} +3 -3
- package/.output/server/_ssr/{RequestAnatomy-8v4e8mYT.mjs → RequestAnatomy-ClvQ3RFh.mjs} +2 -2
- package/.output/server/_ssr/{ResponseView-D17WnkXv.mjs → ResponseView-B4UAvUym.mjs} +2 -2
- package/.output/server/_ssr/{StreamingChunkSequence-CALVBf-R.mjs → StreamingChunkSequence-D_aiGGzz.mjs} +2 -2
- package/.output/server/_ssr/{index-D8EDemF-.mjs → index-DuWacKr6.mjs} +2 -2
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{json-viewer-BgrtJGqX.mjs → json-viewer-CmNMVinH.mjs} +2 -2
- package/.output/server/_ssr/{router-D3qLyERI.mjs → router-BP46kVrE.mjs} +30 -5
- package/.output/server/{_tanstack-start-manifest_v-6qZpokPP.mjs → _tanstack-start-manifest_v-DltuTRfm.mjs} +1 -1
- package/.output/server/index.mjs +61 -61
- package/README.md +30 -8
- package/package.json +1 -1
- package/src/cli/doctor.ts +1 -1
- package/src/cli/onboard.ts +15 -9
- package/src/cli.ts +96 -34
- package/src/components/ProxyViewer.tsx +2 -2
- package/src/components/providers/SettingsDialog.tsx +2 -2
- package/src/lib/serverPort.ts +9 -3
- package/src/proxy/sessionProcess.ts +22 -1
- package/src/proxy/socketTracker.ts +1 -1
- package/.output/public/assets/index-CUKpd9jb.js +0 -1
|
@@ -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-GI3xErl5.js";import"./main-BDfcCp_1.js";const r=o;export{r as component};
|