@tonyclaw/agent-inspector 3.0.29 → 3.0.31
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 +791 -191
- package/.output/nitro.json +1 -1
- package/.output/public/assets/CompareDrawer-DB2KggLE.js +1 -0
- package/.output/public/assets/InspectorPet-CfwDw6kD.js +4108 -0
- package/.output/public/assets/ProxyViewerContainer-PcrO96_F.js +126 -0
- package/.output/public/assets/{ReplayDialog-CctnITbt.js → ReplayDialog-3Pl7EKjp.js} +1 -1
- package/.output/public/assets/{RequestAnatomy-BrN0RBbL.js → RequestAnatomy-BcPjcHLX.js} +1 -1
- package/.output/public/assets/ResponseView-DOx51wV3.js +2 -0
- package/.output/public/assets/StreamingChunkSequence-LkYJWM1A.js +1 -0
- package/.output/public/assets/_sessionId-BSg32vC6.js +1 -0
- package/.output/public/assets/{_sessionId-DKM91udC.js → _sessionId-C0CA68QV.js} +1 -1
- package/.output/public/assets/{index-Bq-nqolG.js → index-BpBUqdAB.js} +1 -1
- package/.output/public/assets/index-D93dCgAQ.js +1 -0
- package/.output/public/assets/{index-DPiESBo2.js → index-FV5sxqx3.js} +6 -6
- package/.output/public/assets/index-VUsF4nhf.js +76 -0
- package/.output/public/assets/index-hyQHZeQI.css +1 -0
- package/.output/public/assets/{json-viewer-CfaDJwx8.js → json-viewer-WctIbAh_.js} +1 -1
- package/.output/public/assets/jszip.min-DnSIoTix.js +2 -0
- package/.output/public/assets/qwen-mMn3f5ul.webp +0 -0
- package/.output/server/_libs/jszip.mjs +35 -9
- package/.output/server/_libs/lucide-react.mjs +80 -80
- package/.output/server/_libs/radix-ui__react-dialog.mjs +3 -3
- package/.output/server/_libs/tanstack__react-router.mjs +1 -1
- package/.output/server/{_sessionId-CwGXPD4C.mjs → _sessionId-BHBK3VbF.mjs} +15 -15
- package/.output/server/_sessionId-CyuJ6Kfl.mjs +81 -0
- package/.output/server/_ssr/{CompareDrawer-R_P1-VNr.mjs → CompareDrawer-27amlv_a.mjs} +138 -103
- package/.output/server/_ssr/InspectorPet-CQnGXfLs.mjs +925 -0
- package/.output/server/_ssr/{ProxyViewerContainer-DUgxRNbj.mjs → ProxyViewerContainer-DlAl0uF-.mjs} +1569 -1646
- package/.output/server/_ssr/{ReplayDialog-De9wKKzS.mjs → ReplayDialog-5m2jtlLa.mjs} +18 -18
- package/.output/server/_ssr/{RequestAnatomy-Db4MxUYo.mjs → RequestAnatomy--1WtQNY9.mjs} +58 -58
- package/.output/server/_ssr/{ResponseView-8rDXOiNB.mjs → ResponseView-CgbqS8sr.mjs} +60 -71
- package/.output/server/_ssr/{StreamingChunkSequence-N9teZHkA.mjs → StreamingChunkSequence-BwpnopWx.mjs} +16 -16
- package/.output/server/_ssr/{index-D4DvByuW.mjs → index-CNVi1TzT.mjs} +15 -15
- package/.output/server/_ssr/index-DMCjH_4V.mjs +81 -0
- package/.output/server/_ssr/index.mjs +2 -2
- package/.output/server/_ssr/{json-viewer-BjoHRbjS.mjs → json-viewer-DNGN2uoe.mjs} +58 -58
- package/.output/server/_ssr/{router-BYlePDj8.mjs → router-CgsqLnk5.mjs} +16007 -12632
- package/.output/server/_tanstack-start-manifest_v-BH5f_kWV.mjs +4 -0
- package/.output/server/index.mjs +99 -71
- package/.output/workers/logFinalizer.worker.js +16908 -0
- package/.output/workers/sessionWorkerEntry.js +16904 -0
- package/README.md +21 -5
- package/package.json +6 -2
- package/src/assets/logos/qwen.webp +0 -0
- package/src/cli.ts +85 -10
- package/src/components/OnboardingBanner.tsx +41 -21
- package/src/components/ProxyViewer.tsx +198 -269
- package/src/components/ProxyViewerContainer.tsx +128 -17
- package/src/components/ecosystem/AgentLabDialog.tsx +166 -19
- package/src/components/errors/SafeErrorBoundary.tsx +201 -0
- package/src/components/pi-agent/PiAgentPanel.tsx +209 -35
- package/src/components/pi-agent/piAgentChatLogic.ts +263 -0
- package/src/components/providers/ImportWizardDialog.tsx +18 -42
- package/src/components/providers/ProviderLogo.tsx +1 -1
- package/src/components/providers/ProvidersPanel.tsx +8 -5
- package/src/components/providers/SettingsDialog.tsx +34 -11
- package/src/components/proxy-viewer/ApplicationBar.tsx +63 -0
- package/src/components/proxy-viewer/CompareDrawer.tsx +92 -49
- package/src/components/proxy-viewer/LiveConnectionStatus.tsx +186 -0
- package/src/components/proxy-viewer/LogEntry.tsx +283 -275
- package/src/components/proxy-viewer/RawExportWarning.tsx +77 -0
- package/src/components/proxy-viewer/SessionLoadProgressBar.tsx +61 -0
- package/src/components/proxy-viewer/ThreadConnector.tsx +16 -1
- package/src/components/proxy-viewer/TurnGroup.tsx +13 -2
- package/src/components/proxy-viewer/accessibility.ts +8 -0
- package/src/components/proxy-viewer/lazy.ts +4 -0
- package/src/components/proxy-viewer/liveConnectionState.ts +158 -0
- package/src/components/proxy-viewer/proxyViewerLogic.ts +10 -0
- package/src/components/proxy-viewer/viewerState.ts +2 -6
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/tabs.tsx +3 -3
- package/src/components/ui/transient-toast.tsx +7 -6
- package/src/lib/apiClient.ts +17 -2
- package/src/lib/ecosystemContract.ts +34 -0
- package/src/lib/export-logs.ts +1 -1
- package/src/lib/piAgentContract.ts +80 -0
- package/src/lib/providerContract.ts +70 -4
- package/src/lib/providerImportContract.ts +27 -0
- package/src/lib/providerModelMetadata.ts +16 -7
- package/src/lib/resourceLimits.ts +152 -0
- package/src/lib/safeDiagnostic.ts +38 -0
- package/src/lib/useProviders.ts +4 -4
- package/src/mcp/server.ts +39 -6
- package/src/mcp/toolHandlers.ts +131 -4
- package/src/proxy/chunkStorage.ts +20 -6
- package/src/proxy/config.ts +20 -6
- package/src/proxy/dataDir.ts +3 -0
- package/src/proxy/ecosystemExecutionConfirmation.ts +114 -0
- package/src/proxy/ecosystemExecutionRoute.ts +116 -0
- package/src/proxy/ecosystemTasks.ts +48 -0
- package/src/proxy/evidenceExporter.ts +23 -9
- package/src/proxy/groupEvidenceExporter.ts +26 -5
- package/src/proxy/groupStore.ts +13 -3
- package/src/proxy/handler.ts +103 -20
- package/src/proxy/identityProxy.ts +333 -14
- package/src/proxy/logFinalizer.ts +73 -6
- package/src/proxy/logImportUpload.ts +128 -0
- package/src/proxy/logImporter.ts +321 -70
- package/src/proxy/logIndex.ts +16 -6
- package/src/proxy/logger.ts +294 -41
- package/src/proxy/privateDataPath.ts +183 -0
- package/src/proxy/providerScanStore.ts +87 -0
- package/src/proxy/providerSecretStore.ts +58 -19
- package/src/proxy/providers.ts +175 -58
- package/src/proxy/rawStreamCapture.ts +66 -5
- package/src/proxy/runStore.ts +13 -3
- package/src/proxy/runtimeAdmission.ts +52 -0
- package/src/proxy/runtimeHealth.ts +206 -0
- package/src/proxy/runtimeShutdown.ts +75 -0
- package/src/proxy/sessionArchive.ts +15 -2
- package/src/proxy/sessionProcess.ts +19 -0
- package/src/proxy/sessionRuntime.ts +7 -0
- package/src/proxy/shutdownCoordinator.ts +90 -0
- package/src/proxy/sqliteLogIndex.ts +18 -2
- package/src/proxy/store.ts +18 -2
- package/src/routes/__root.tsx +18 -1
- package/src/routes/api/alerts.summary.ts +12 -8
- package/src/routes/api/alerts.ts +27 -9
- package/src/routes/api/ecosystem.packages.$packageId.help.ts +3 -8
- package/src/routes/api/ecosystem.packages.$packageId.install.ts +3 -8
- package/src/routes/api/ecosystem.packages.$packageId.runner-presets.ts +3 -11
- package/src/routes/api/ecosystem.packages.$packageId.upgrade.ts +3 -8
- package/src/routes/api/ecosystem.recipes.$recipeId.run.ts +3 -8
- package/src/routes/api/health.ts +9 -2
- package/src/routes/api/knowledge.project-context.ts +11 -0
- package/src/routes/api/knowledge.search.ts +33 -2
- package/src/routes/api/logs.$id.body.ts +16 -2
- package/src/routes/api/logs.import.ts +7 -18
- package/src/routes/api/logs.stream.ts +147 -69
- package/src/routes/api/logs.ts +55 -14
- package/src/routes/api/providers.$providerId.model-metadata.ts +22 -4
- package/src/routes/api/providers.$providerId.ts +37 -6
- package/src/routes/api/providers.export.ts +34 -16
- package/src/routes/api/providers.import.ts +42 -8
- package/src/routes/api/providers.scan.ts +13 -8
- package/src/routes/api/providers.ts +36 -5
- package/src/routes/api/runs.ts +12 -12
- package/src/routes/api/sessions.ts +15 -8
- package/src/routes/index.tsx +6 -0
- package/src/routes/livez.ts +13 -0
- package/src/routes/readyz.ts +18 -0
- package/src/routes/session/$sessionId.tsx +6 -0
- package/src/services/piAgent.ts +131 -102
- package/src/services/piAgentRetrieval.ts +1180 -0
- package/styles/globals.css +19 -3
- package/.output/public/assets/CompareDrawer-Cb5ccPeX.js +0 -1
- package/.output/public/assets/ProxyViewerContainer-COBe5GTT.js +0 -4234
- package/.output/public/assets/ResponseView-Cqq87lX_.js +0 -3
- package/.output/public/assets/StreamingChunkSequence-CnTa9mCr.js +0 -1
- package/.output/public/assets/index-DTLNVcgc.js +0 -76
- package/.output/public/assets/index-DliqmwUw.css +0 -1
- package/.output/public/assets/qwen-CONDcHqt.png +0 -0
- package/.output/server/_tanstack-start-manifest_v-DMCA8KK3.mjs +0 -4
- package/src/assets/logos/mcp.png +0 -0
- package/src/assets/logos/qwen.png +0 -0
- package/src/components/ui/mcp-logo.tsx +0 -20
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports } from "../_libs/react.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import "node:fs";
|
|
5
|
-
import "node:buffer";
|
|
6
|
-
import "node:path";
|
|
2
|
+
import { m as cn, y as copyTextToClipboard } from "./router-CgsqLnk5.mjs";
|
|
3
|
+
import { z as parseJsonText, j as TooltipProvider, k as Tooltip, l as TooltipTrigger, m as TooltipContent } from "./ProxyViewerContainer-DlAl0uF-.mjs";
|
|
7
4
|
import "node:crypto";
|
|
5
|
+
import "node:path";
|
|
6
|
+
import "node:fs";
|
|
8
7
|
import "node:child_process";
|
|
8
|
+
import "node:buffer";
|
|
9
9
|
import "node:url";
|
|
10
10
|
import "crypto";
|
|
11
11
|
import "node:util";
|
|
@@ -13,19 +13,68 @@ import "node:net";
|
|
|
13
13
|
import "../_libs/modelcontextprotocol__server.mjs";
|
|
14
14
|
import "../_libs/jszip.mjs";
|
|
15
15
|
import "node:os";
|
|
16
|
+
import { d as Check, l as Copy, c as ChevronDown, u as ChevronRight, au as ChevronsDown } from "../_libs/lucide-react.mjs";
|
|
17
|
+
import "../_libs/tanstack__react-router.mjs";
|
|
18
|
+
import "../_libs/tanstack__router-core.mjs";
|
|
19
|
+
import "../_libs/cookie-es.mjs";
|
|
20
|
+
import "../_libs/seroval.mjs";
|
|
21
|
+
import "../_libs/seroval-plugins.mjs";
|
|
22
|
+
import "node:stream";
|
|
23
|
+
import "../_libs/tanstack__history.mjs";
|
|
24
|
+
import "node:stream/web";
|
|
16
25
|
import "../_libs/react-dom.mjs";
|
|
17
|
-
import
|
|
26
|
+
import "util";
|
|
27
|
+
import "async_hooks";
|
|
28
|
+
import "stream";
|
|
29
|
+
import "../_libs/isbot.mjs";
|
|
18
30
|
import "../_libs/swr.mjs";
|
|
19
31
|
import "../_libs/use-sync-external-store.mjs";
|
|
20
32
|
import "../_libs/dequal.mjs";
|
|
33
|
+
import "../_libs/class-variance-authority.mjs";
|
|
21
34
|
import "../_libs/clsx.mjs";
|
|
22
35
|
import "../_libs/tailwind-merge.mjs";
|
|
23
|
-
import "
|
|
36
|
+
import "node:fs/promises";
|
|
37
|
+
import "node:worker_threads";
|
|
38
|
+
import "node:readline";
|
|
39
|
+
import "../_libs/conf.mjs";
|
|
40
|
+
import "node:process";
|
|
41
|
+
import "node:assert";
|
|
42
|
+
import "../_libs/dot-prop.mjs";
|
|
43
|
+
import "../_libs/env-paths.mjs";
|
|
44
|
+
import "../_libs/atomically.mjs";
|
|
45
|
+
import "node:events";
|
|
46
|
+
import "../_libs/stubborn-fs.mjs";
|
|
47
|
+
import "../_libs/stubborn-utils.mjs";
|
|
48
|
+
import "../_libs/when-exit.mjs";
|
|
49
|
+
import "../_libs/ajv.mjs";
|
|
50
|
+
import "../_libs/fast-deep-equal.mjs";
|
|
51
|
+
import "../_libs/json-schema-traverse.mjs";
|
|
52
|
+
import "../_libs/fast-uri.mjs";
|
|
53
|
+
import "../_libs/ajv-formats.mjs";
|
|
54
|
+
import "../_libs/debounce-fn.mjs";
|
|
55
|
+
import "../_libs/mimic-function.mjs";
|
|
56
|
+
import "../_libs/semver.mjs";
|
|
57
|
+
import "../_libs/uint8array-extras.mjs";
|
|
58
|
+
import "node:dns/promises";
|
|
59
|
+
import "node:assert/strict";
|
|
60
|
+
import "../_libs/zod.mjs";
|
|
61
|
+
import "../_libs/readable-stream.mjs";
|
|
62
|
+
import "events";
|
|
63
|
+
import "node:string_decoder";
|
|
64
|
+
import "../_libs/process-nextick-args.mjs";
|
|
65
|
+
import "../_libs/isarray.mjs";
|
|
66
|
+
import "../_libs/safe-buffer.mjs";
|
|
67
|
+
import "buffer";
|
|
68
|
+
import "../_libs/core-util-is.mjs";
|
|
69
|
+
import "../_libs/inherits.mjs";
|
|
70
|
+
import "../_libs/util-deprecate.mjs";
|
|
71
|
+
import "../_libs/lie.mjs";
|
|
72
|
+
import "../_libs/immediate.mjs";
|
|
73
|
+
import "../_libs/setimmediate.mjs";
|
|
74
|
+
import "../_libs/pako.mjs";
|
|
24
75
|
import "../_libs/tanstack__react-virtual.mjs";
|
|
25
76
|
import "../_libs/tanstack__virtual-core.mjs";
|
|
26
77
|
import "../_libs/diff.mjs";
|
|
27
|
-
import "../_libs/three.mjs";
|
|
28
|
-
import "../_libs/zod.mjs";
|
|
29
78
|
import "../_libs/radix-ui__react-select.mjs";
|
|
30
79
|
import "../_libs/radix-ui__number.mjs";
|
|
31
80
|
import "../_libs/radix-ui__primitive.mjs";
|
|
@@ -68,55 +117,6 @@ import "../_libs/@radix-ui/react-use-is-hydrated+[...].mjs";
|
|
|
68
117
|
import "../_libs/radix-ui__react-tooltip.mjs";
|
|
69
118
|
import "../_libs/radix-ui__react-collapsible.mjs";
|
|
70
119
|
import "../_libs/radix-ui__react-scroll-area.mjs";
|
|
71
|
-
import "../_libs/tanstack__react-router.mjs";
|
|
72
|
-
import "../_libs/tanstack__router-core.mjs";
|
|
73
|
-
import "../_libs/cookie-es.mjs";
|
|
74
|
-
import "../_libs/seroval.mjs";
|
|
75
|
-
import "../_libs/seroval-plugins.mjs";
|
|
76
|
-
import "node:stream";
|
|
77
|
-
import "../_libs/tanstack__history.mjs";
|
|
78
|
-
import "node:stream/web";
|
|
79
|
-
import "../_libs/isbot.mjs";
|
|
80
|
-
import "node:fs/promises";
|
|
81
|
-
import "node:readline";
|
|
82
|
-
import "../_libs/conf.mjs";
|
|
83
|
-
import "node:process";
|
|
84
|
-
import "node:assert";
|
|
85
|
-
import "../_libs/dot-prop.mjs";
|
|
86
|
-
import "../_libs/env-paths.mjs";
|
|
87
|
-
import "../_libs/atomically.mjs";
|
|
88
|
-
import "node:events";
|
|
89
|
-
import "../_libs/stubborn-fs.mjs";
|
|
90
|
-
import "../_libs/stubborn-utils.mjs";
|
|
91
|
-
import "../_libs/when-exit.mjs";
|
|
92
|
-
import "../_libs/ajv.mjs";
|
|
93
|
-
import "../_libs/fast-deep-equal.mjs";
|
|
94
|
-
import "../_libs/json-schema-traverse.mjs";
|
|
95
|
-
import "../_libs/fast-uri.mjs";
|
|
96
|
-
import "../_libs/ajv-formats.mjs";
|
|
97
|
-
import "../_libs/debounce-fn.mjs";
|
|
98
|
-
import "../_libs/mimic-function.mjs";
|
|
99
|
-
import "../_libs/semver.mjs";
|
|
100
|
-
import "../_libs/uint8array-extras.mjs";
|
|
101
|
-
import "node:dns/promises";
|
|
102
|
-
import "node:worker_threads";
|
|
103
|
-
import "util";
|
|
104
|
-
import "async_hooks";
|
|
105
|
-
import "stream";
|
|
106
|
-
import "../_libs/readable-stream.mjs";
|
|
107
|
-
import "events";
|
|
108
|
-
import "node:string_decoder";
|
|
109
|
-
import "../_libs/process-nextick-args.mjs";
|
|
110
|
-
import "../_libs/isarray.mjs";
|
|
111
|
-
import "../_libs/safe-buffer.mjs";
|
|
112
|
-
import "buffer";
|
|
113
|
-
import "../_libs/core-util-is.mjs";
|
|
114
|
-
import "../_libs/inherits.mjs";
|
|
115
|
-
import "../_libs/util-deprecate.mjs";
|
|
116
|
-
import "../_libs/lie.mjs";
|
|
117
|
-
import "../_libs/immediate.mjs";
|
|
118
|
-
import "../_libs/setimmediate.mjs";
|
|
119
|
-
import "../_libs/pako.mjs";
|
|
120
120
|
function classifyValue(value) {
|
|
121
121
|
if (value === null) return "null";
|
|
122
122
|
if (Array.isArray(value)) return "array";
|