@tonyclaw/agent-inspector 3.1.32 → 4.0.2
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/backend/nitro.json +1 -1
- package/.output/cli.js +241 -120
- package/.output/server/_ssr/index.mjs +1 -1
- package/.output/server/_ssr/{router-oXUk3MBR.mjs → router-BBY_zWRK.mjs} +91 -3
- package/.output/server/index.mjs +1 -1
- package/.output/ui/assets/{CompareDrawer-BtfPSpkV.js → CompareDrawer-rtNElN-B.js} +1 -1
- package/.output/ui/assets/{InspectorPet-D9DPPQ3n.js → InspectorPet-QaAiuF3d.js} +1 -1
- package/.output/ui/assets/{ProxyViewerContainer-Buu8vkCK.js → ProxyViewerContainer-6twNZHwl.js} +4 -4
- package/.output/ui/assets/{ReplayDialog-BER-QzpD.js → ReplayDialog-B7KlziO2.js} +1 -1
- package/.output/ui/assets/{RequestAnatomy-C8Zwxrr7.js → RequestAnatomy-2XVFBrW4.js} +1 -1
- package/.output/ui/assets/{ResponseView-DDpKdYk6.js → ResponseView-BULgzLVB.js} +1 -1
- package/.output/ui/assets/{StreamingChunkSequence-sMPGG7Sw.js → StreamingChunkSequence-DSkvkbns.js} +1 -1
- package/.output/ui/assets/{_sessionId-e4IheHnP.js → _sessionId-D2dmJi3G.js} +1 -1
- package/.output/ui/assets/{_sessionId-C5Uv72Fx.js → _sessionId-DcS0s1Mr.js} +1 -1
- package/.output/ui/assets/{index-B__qT0Yd.js → index-B0TN1KKO.js} +2 -2
- package/.output/ui/assets/{index-Be3bTCzi.js → index-Bva1zHEs.js} +1 -1
- package/.output/ui/assets/{index-C9q__p8J.js → index-BzBExOxu.js} +1 -1
- package/.output/ui/assets/{index-CtB0deSZ.js → index-k6sRQz55.js} +1 -1
- package/.output/ui/assets/{json-viewer-Db0AFp-7.js → json-viewer-CWM4tY-j.js} +1 -1
- package/.output/ui/assets/{jszip.min-DkY0Ym_q.js → jszip.min-BkWvRFlo.js} +1 -1
- package/.output/ui/index.html +1 -1
- package/package.json +8 -13
- package/src/assets/IDE/claudecode-color.svg +0 -1
- package/src/assets/IDE/codex-color.svg +0 -1
- package/src/assets/IDE/opencode.svg +0 -1
- package/src/assets/IDE/xiaomimimo.svg +0 -1
- package/src/assets/favicon.svg +0 -21
- package/src/assets/logos/alibaba.svg +0 -1
- package/src/assets/logos/anthropic.svg +0 -1
- package/src/assets/logos/claude-code.svg +0 -4
- package/src/assets/logos/deepseek.svg +0 -1
- package/src/assets/logos/minimax.jpeg +0 -0
- package/src/assets/logos/openai.svg +0 -1
- package/src/assets/logos/opencode.svg +0 -4
- package/src/assets/logos/qwen.webp +0 -0
- package/src/assets/logos/zhipuai.svg +0 -219
- package/src/backend/router.tsx +0 -36
- package/src/backend/routes/$.ts +0 -26
- package/src/backend/routes/__root.ts +0 -4
- package/src/backend/routes/api/-instances.ts +0 -7
- package/src/backend/routes/api/alerts.summary.ts +0 -28
- package/src/backend/routes/api/alerts.ts +0 -70
- package/src/backend/routes/api/config.paths.ts +0 -14
- package/src/backend/routes/api/config.ts +0 -73
- package/src/backend/routes/api/ecosystem.packages.$packageId.help.ts +0 -11
- package/src/backend/routes/api/ecosystem.packages.$packageId.install.ts +0 -11
- package/src/backend/routes/api/ecosystem.packages.$packageId.runner-presets.ts +0 -11
- package/src/backend/routes/api/ecosystem.packages.$packageId.upgrade.ts +0 -11
- package/src/backend/routes/api/ecosystem.packages.ts +0 -21
- package/src/backend/routes/api/ecosystem.recipes.$recipeId.run.ts +0 -11
- package/src/backend/routes/api/ecosystem.tasks.$taskId.ts +0 -16
- package/src/backend/routes/api/ecosystem.tasks.ts +0 -12
- package/src/backend/routes/api/groups.$groupId.evidence.ts +0 -55
- package/src/backend/routes/api/groups.$groupId.sessions.ts +0 -50
- package/src/backend/routes/api/groups.$groupId.ts +0 -93
- package/src/backend/routes/api/groups.ts +0 -79
- package/src/backend/routes/api/health.ts +0 -22
- package/src/backend/routes/api/instances.$name.connection.ts +0 -12
- package/src/backend/routes/api/instances.$name.restart.ts +0 -23
- package/src/backend/routes/api/instances.$name.start.ts +0 -18
- package/src/backend/routes/api/instances.$name.stop.ts +0 -23
- package/src/backend/routes/api/instances.$name.ts +0 -12
- package/src/backend/routes/api/instances.ts +0 -16
- package/src/backend/routes/api/knowledge.candidates.$candidateId.promote.ts +0 -32
- package/src/backend/routes/api/knowledge.candidates.$candidateId.ts +0 -50
- package/src/backend/routes/api/knowledge.candidates.ts +0 -10
- package/src/backend/routes/api/knowledge.project-context.ts +0 -29
- package/src/backend/routes/api/knowledge.search.ts +0 -62
- package/src/backend/routes/api/knowledge.sessions.$sessionId.candidates.ts +0 -26
- package/src/backend/routes/api/logs.$id.body.ts +0 -58
- package/src/backend/routes/api/logs.$id.chunks.ts +0 -37
- package/src/backend/routes/api/logs.$id.replay.ts +0 -297
- package/src/backend/routes/api/logs.$id.ts +0 -23
- package/src/backend/routes/api/logs.import.ts +0 -39
- package/src/backend/routes/api/logs.stream.ts +0 -174
- package/src/backend/routes/api/logs.ts +0 -214
- package/src/backend/routes/api/mcp.ts +0 -25
- package/src/backend/routes/api/models.ts +0 -10
- package/src/backend/routes/api/pi-agent.ts +0 -29
- package/src/backend/routes/api/providers.$providerId.model-metadata.ts +0 -173
- package/src/backend/routes/api/providers.$providerId.test.log.ts +0 -342
- package/src/backend/routes/api/providers.$providerId.ts +0 -111
- package/src/backend/routes/api/providers.export.ts +0 -44
- package/src/backend/routes/api/providers.import.ts +0 -81
- package/src/backend/routes/api/providers.scan.ts +0 -28
- package/src/backend/routes/api/providers.ts +0 -102
- package/src/backend/routes/api/runs.$runId.evidence.ts +0 -55
- package/src/backend/routes/api/runs.$runId.ts +0 -50
- package/src/backend/routes/api/runs.ts +0 -62
- package/src/backend/routes/api/runtime.ts +0 -46
- package/src/backend/routes/api/sessions.ts +0 -51
- package/src/backend/routes/api/storage.ts +0 -56
- package/src/backend/routes/livez.ts +0 -13
- package/src/backend/routes/metrics.ts +0 -14
- package/src/backend/routes/proxy/$.ts +0 -15
- package/src/backend/routes/readyz.ts +0 -18
- package/src/backend/start.ts +0 -10
- package/src/cli/alias.ts +0 -431
- package/src/cli/detect-tools.ts +0 -123
- package/src/cli/doctor.ts +0 -836
- package/src/cli/instance.ts +0 -1071
- package/src/cli/instanceApi.ts +0 -213
- package/src/cli/instanceArgs.ts +0 -301
- package/src/cli/instanceControl.ts +0 -191
- package/src/cli/instanceModel.ts +0 -276
- package/src/cli/instanceRegistry.ts +0 -731
- package/src/cli/networkHints.ts +0 -170
- package/src/cli/onboard.ts +0 -1668
- package/src/cli/onboardTarget.ts +0 -228
- package/src/cli/rustBackendPackage.ts +0 -458
- package/src/cli/startupOutput.ts +0 -16
- package/src/cli/templates/codex-skill-onboard.ts +0 -320
- package/src/cli/templates/command-onboard.ts +0 -25
- package/src/cli/templates/skill-onboard.ts +0 -625
- package/src/cli.ts +0 -1397
- package/src/components/OnboardingBanner.tsx +0 -115
- package/src/components/ProxyViewer.tsx +0 -2259
- package/src/components/ProxyViewerContainer.tsx +0 -1076
- package/src/components/alerts/AlertsDialog.tsx +0 -615
- package/src/components/clients/ClientLogo.tsx +0 -175
- package/src/components/ecosystem/AgentLabDialog.tsx +0 -947
- package/src/components/errors/SafeErrorBoundary.tsx +0 -201
- package/src/components/groups/GroupsDialog.tsx +0 -1304
- package/src/components/inspector-pet/InspectorPet.tsx +0 -398
- package/src/components/inspector-pet/InspectorPetCrab3D.tsx +0 -455
- package/src/components/inspector-pet/inspectorPetLogic.ts +0 -272
- package/src/components/pi-agent/PiAgentPanel.tsx +0 -446
- package/src/components/pi-agent/piAgentChatLogic.ts +0 -273
- package/src/components/providers/ImportWizardDialog.tsx +0 -281
- package/src/components/providers/ProviderCard.tsx +0 -347
- package/src/components/providers/ProviderForm.tsx +0 -1183
- package/src/components/providers/ProviderLogo.tsx +0 -122
- package/src/components/providers/ProviderTestResultsView.tsx +0 -734
- package/src/components/providers/ProvidersPanel.tsx +0 -714
- package/src/components/providers/SettingsDialog.tsx +0 -1042
- package/src/components/providers/providerFormCapabilities.ts +0 -36
- package/src/components/proxy-viewer/AgentTraceSummary.tsx +0 -902
- package/src/components/proxy-viewer/AnswerMarkdown.tsx +0 -51
- package/src/components/proxy-viewer/ApplicationBar.tsx +0 -123
- package/src/components/proxy-viewer/CompareDrawer.tsx +0 -984
- package/src/components/proxy-viewer/ConversationGroup.tsx +0 -208
- package/src/components/proxy-viewer/ConversationGroupList.tsx +0 -652
- package/src/components/proxy-viewer/ConversationHeader.tsx +0 -429
- package/src/components/proxy-viewer/LiveConnectionStatus.tsx +0 -186
- package/src/components/proxy-viewer/LogEntry.tsx +0 -1419
- package/src/components/proxy-viewer/LogEntryHeader.tsx +0 -596
- package/src/components/proxy-viewer/ProviderLogoStack.tsx +0 -57
- package/src/components/proxy-viewer/RawExportWarning.tsx +0 -77
- package/src/components/proxy-viewer/ReplayDialog.tsx +0 -636
- package/src/components/proxy-viewer/RequestToolsPanel.tsx +0 -299
- package/src/components/proxy-viewer/ResponseView.tsx +0 -202
- package/src/components/proxy-viewer/SessionLoadProgressBar.tsx +0 -61
- package/src/components/proxy-viewer/StreamingChunkSequence.tsx +0 -265
- package/src/components/proxy-viewer/ThreadConnector.tsx +0 -165
- package/src/components/proxy-viewer/ToolTraceEvents.tsx +0 -64
- package/src/components/proxy-viewer/TurnGroup.tsx +0 -383
- package/src/components/proxy-viewer/TurnGroupList.tsx +0 -156
- package/src/components/proxy-viewer/accessibility.ts +0 -8
- package/src/components/proxy-viewer/anatomy/RequestAnatomy.tsx +0 -887
- package/src/components/proxy-viewer/anatomy/SegmentBar.tsx +0 -222
- package/src/components/proxy-viewer/anatomy/contextIntelligence.ts +0 -737
- package/src/components/proxy-viewer/anatomy/sessionContextSummary.ts +0 -268
- package/src/components/proxy-viewer/anatomy/tokenEstimate.ts +0 -53
- package/src/components/proxy-viewer/anatomy/types.ts +0 -41
- package/src/components/proxy-viewer/anatomy/useAnatomyJump.ts +0 -114
- package/src/components/proxy-viewer/bodyHydration.ts +0 -123
- package/src/components/proxy-viewer/cacheTrend.ts +0 -50
- package/src/components/proxy-viewer/diff/DiffView.tsx +0 -321
- package/src/components/proxy-viewer/diff/computeDiff.ts +0 -178
- package/src/components/proxy-viewer/diff/index.ts +0 -3
- package/src/components/proxy-viewer/formats/anthropic/ContentBlocks.tsx +0 -194
- package/src/components/proxy-viewer/formats/anthropic/ResponseView.tsx +0 -81
- package/src/components/proxy-viewer/formats/anthropic/thinkingExtract.ts +0 -21
- package/src/components/proxy-viewer/formats/index.tsx +0 -47
- package/src/components/proxy-viewer/formats/openai/ResponseView.tsx +0 -442
- package/src/components/proxy-viewer/index.ts +0 -9
- package/src/components/proxy-viewer/lazy.ts +0 -41
- package/src/components/proxy-viewer/liveConnectionState.ts +0 -158
- package/src/components/proxy-viewer/log-formats/anthropic.ts +0 -191
- package/src/components/proxy-viewer/log-formats/index.ts +0 -23
- package/src/components/proxy-viewer/log-formats/openai.ts +0 -256
- package/src/components/proxy-viewer/log-formats/types.ts +0 -40
- package/src/components/proxy-viewer/log-formats/unknown.ts +0 -18
- package/src/components/proxy-viewer/logEntryVisibility.ts +0 -73
- package/src/components/proxy-viewer/logFocus.ts +0 -54
- package/src/components/proxy-viewer/proxyViewerContainerLogic.ts +0 -124
- package/src/components/proxy-viewer/proxyViewerLogic.ts +0 -488
- package/src/components/proxy-viewer/replayComparison.ts +0 -131
- package/src/components/proxy-viewer/requestDiff.ts +0 -277
- package/src/components/proxy-viewer/requestTools.ts +0 -220
- package/src/components/proxy-viewer/useCopyFeedback.ts +0 -38
- package/src/components/proxy-viewer/useKeyboardNavigation.ts +0 -232
- package/src/components/proxy-viewer/viewerState.ts +0 -176
- package/src/components/ui/badge.tsx +0 -47
- package/src/components/ui/button.tsx +0 -47
- package/src/components/ui/collapsible.tsx +0 -21
- package/src/components/ui/confirm-dialog.tsx +0 -51
- package/src/components/ui/crab-logo.tsx +0 -45
- package/src/components/ui/crab-variants.tsx +0 -467
- package/src/components/ui/dialog.tsx +0 -130
- package/src/components/ui/icon-trigger.ts +0 -2
- package/src/components/ui/json-viewer-bulk.ts +0 -132
- package/src/components/ui/json-viewer.tsx +0 -508
- package/src/components/ui/scroll-area.tsx +0 -54
- package/src/components/ui/select.tsx +0 -178
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/tabs.tsx +0 -88
- package/src/components/ui/tooltip.tsx +0 -51
- package/src/components/ui/transient-toast.tsx +0 -105
- package/src/contracts/anthropic.ts +0 -230
- package/src/contracts/index.ts +0 -59
- package/src/contracts/json.ts +0 -37
- package/src/contracts/log.ts +0 -139
- package/src/contracts/openai.ts +0 -267
- package/src/index.css +0 -11
- package/src/knowledge/candidateStore.ts +0 -94
- package/src/knowledge/distiller.ts +0 -98
- package/src/knowledge/openclawClient.ts +0 -161
- package/src/knowledge/openclawGatewayClient.ts +0 -249
- package/src/knowledge/openclawMarkdown.ts +0 -146
- package/src/knowledge/redactor.ts +0 -80
- package/src/knowledge/types.ts +0 -83
- package/src/lib/alertContract.ts +0 -76
- package/src/lib/apiClient.ts +0 -166
- package/src/lib/apiFormat.ts +0 -29
- package/src/lib/backendImplementation.ts +0 -16
- package/src/lib/basePath.ts +0 -107
- package/src/lib/browserRuntimeContract.ts +0 -124
- package/src/lib/browserRuntimeResolver.ts +0 -333
- package/src/lib/chunkLoadRecovery.ts +0 -83
- package/src/lib/claudeCodeStrip.ts +0 -98
- package/src/lib/clipboard.ts +0 -67
- package/src/lib/codingAgentEndpoints.ts +0 -54
- package/src/lib/ecosystemContract.ts +0 -130
- package/src/lib/export-logs.ts +0 -287
- package/src/lib/groupContract.ts +0 -166
- package/src/lib/instanceContract.ts +0 -239
- package/src/lib/jsonFile.ts +0 -46
- package/src/lib/logImportContract.ts +0 -12
- package/src/lib/managedInstance.ts +0 -112
- package/src/lib/mask.ts +0 -4
- package/src/lib/objectUtils.ts +0 -22
- package/src/lib/piAgentContract.ts +0 -102
- package/src/lib/providerContract.ts +0 -125
- package/src/lib/providerImportContract.ts +0 -27
- package/src/lib/providerModelMetadata.ts +0 -458
- package/src/lib/providerTestContract.ts +0 -170
- package/src/lib/providerTestPrompt.ts +0 -100
- package/src/lib/publicBasePathContext.ts +0 -137
- package/src/lib/resourceLimits.ts +0 -345
- package/src/lib/runContract.ts +0 -164
- package/src/lib/runtimeConfig.ts +0 -43
- package/src/lib/safeDiagnostic.ts +0 -38
- package/src/lib/safeFetch.ts +0 -508
- package/src/lib/serverPort.ts +0 -47
- package/src/lib/sessionInfoContract.ts +0 -78
- package/src/lib/sessionUrl.ts +0 -46
- package/src/lib/ssrfGuard.ts +0 -133
- package/src/lib/stopReason.ts +0 -130
- package/src/lib/themeMode.ts +0 -41
- package/src/lib/timeDisplay.ts +0 -22
- package/src/lib/toolTrace.ts +0 -290
- package/src/lib/uiScale.ts +0 -117
- package/src/lib/unknown.ts +0 -27
- package/src/lib/upstreamUrl.ts +0 -150
- package/src/lib/useAlerts.ts +0 -82
- package/src/lib/useGroupEvidence.ts +0 -37
- package/src/lib/useGroups.ts +0 -32
- package/src/lib/useOnboarding.ts +0 -93
- package/src/lib/useProviders.ts +0 -30
- package/src/lib/useStripConfig.ts +0 -154
- package/src/lib/useThemeMode.ts +0 -40
- package/src/lib/useUiScale.ts +0 -52
- package/src/lib/utils.ts +0 -78
- package/src/mcp/currentContext.ts +0 -65
- package/src/mcp/instanceHandlers.ts +0 -151
- package/src/mcp/loopback.ts +0 -88
- package/src/mcp/mode.ts +0 -75
- package/src/mcp/previewExtractor.ts +0 -233
- package/src/mcp/server.ts +0 -2274
- package/src/mcp/toolHandlers.ts +0 -1533
- package/src/proxy/alerts.ts +0 -664
- package/src/proxy/chunkStorage.ts +0 -123
- package/src/proxy/config.ts +0 -218
- package/src/proxy/constants.ts +0 -66
- package/src/proxy/dataDir.ts +0 -147
- package/src/proxy/ecosystemExecutionConfirmation.ts +0 -114
- package/src/proxy/ecosystemExecutionRoute.ts +0 -116
- package/src/proxy/ecosystemRegistry.ts +0 -296
- package/src/proxy/ecosystemTasks.ts +0 -415
- package/src/proxy/evidenceAnalysis.ts +0 -526
- package/src/proxy/evidenceExporter.ts +0 -235
- package/src/proxy/formats/anthropic/anthropicProvider.ts +0 -75
- package/src/proxy/formats/anthropic/handler.ts +0 -75
- package/src/proxy/formats/anthropic/index.ts +0 -13
- package/src/proxy/formats/anthropic/register.ts +0 -4
- package/src/proxy/formats/anthropic/schemas.ts +0 -6
- package/src/proxy/formats/anthropic/stream.ts +0 -205
- package/src/proxy/formats/handler.ts +0 -46
- package/src/proxy/formats/index.ts +0 -13
- package/src/proxy/formats/jsonSchema.ts +0 -2
- package/src/proxy/formats/openai/alibabaProvider.ts +0 -34
- package/src/proxy/formats/openai/codexMetadata.ts +0 -61
- package/src/proxy/formats/openai/handler.ts +0 -133
- package/src/proxy/formats/openai/index.ts +0 -33
- package/src/proxy/formats/openai/provider.ts +0 -50
- package/src/proxy/formats/openai/register.ts +0 -4
- package/src/proxy/formats/openai/schemas.ts +0 -25
- package/src/proxy/formats/openai/stream.ts +0 -600
- package/src/proxy/formats/openai/zhipuProvider.ts +0 -31
- package/src/proxy/formats/providerAdapter.ts +0 -50
- package/src/proxy/formats/providerRegistry.ts +0 -51
- package/src/proxy/formats/providers/index.ts +0 -3
- package/src/proxy/formats/registry.ts +0 -65
- package/src/proxy/groupEvidenceExporter.ts +0 -371
- package/src/proxy/groupStore.ts +0 -336
- package/src/proxy/handler.ts +0 -729
- package/src/proxy/identityProxy.ts +0 -1842
- package/src/proxy/jsonlRecovery.ts +0 -554
- package/src/proxy/logBodyChunks.ts +0 -91
- package/src/proxy/logFinalizer.ts +0 -777
- package/src/proxy/logFinalizer.worker.ts +0 -24
- package/src/proxy/logImportUpload.ts +0 -128
- package/src/proxy/logImporter.ts +0 -813
- package/src/proxy/logIndex.ts +0 -663
- package/src/proxy/logSearch.ts +0 -122
- package/src/proxy/logger.ts +0 -537
- package/src/proxy/openaiOrphanToolStrip.ts +0 -142
- package/src/proxy/platformCommands.ts +0 -253
- package/src/proxy/privateDataPath.ts +0 -419
- package/src/proxy/providerImporters.ts +0 -578
- package/src/proxy/providerScanStore.ts +0 -87
- package/src/proxy/providerSecretStore.ts +0 -216
- package/src/proxy/providers.ts +0 -998
- package/src/proxy/rawStreamCapture.ts +0 -342
- package/src/proxy/runFailures.ts +0 -94
- package/src/proxy/runStore.ts +0 -214
- package/src/proxy/runtimeAdmission.ts +0 -55
- package/src/proxy/runtimeHealth.ts +0 -221
- package/src/proxy/runtimeMetrics.ts +0 -149
- package/src/proxy/runtimeShutdown.ts +0 -157
- package/src/proxy/schemas.ts +0 -112
- package/src/proxy/sessionArchive.ts +0 -479
- package/src/proxy/sessionInfo.ts +0 -266
- package/src/proxy/sessionProcess.ts +0 -194
- package/src/proxy/sessionRuntime.ts +0 -121
- package/src/proxy/sessionSupervisor.ts +0 -305
- package/src/proxy/sessionWorkerEntry.ts +0 -26
- package/src/proxy/shutdownCoordinator.ts +0 -90
- package/src/proxy/socketTracker.ts +0 -639
- package/src/proxy/sqliteLogIndex.ts +0 -733
- package/src/proxy/storageLifecycle.ts +0 -432
- package/src/proxy/store.ts +0 -1773
- package/src/proxy/streamTiming.ts +0 -31
- package/src/proxy/toolSchemaWarnings.ts +0 -529
- package/src/proxy/uiAssetServer.ts +0 -106
- package/src/proxy/upstream.ts +0 -127
- package/src/services/alerts.ts +0 -12
- package/src/services/groups.ts +0 -119
- package/src/services/piAgent.ts +0 -421
- package/src/services/piAgentRetrieval.ts +0 -1180
- package/src/services/result.ts +0 -17
- package/src/services/runs.ts +0 -76
- package/src/ui/bootstrap.ts +0 -167
- package/src/ui/index.html +0 -38
- package/src/ui/logsStreamClient.ts +0 -20
- package/src/ui/main.tsx +0 -13
- package/src/ui/public/runtime-config.js +0 -2
- package/src/ui/router.tsx +0 -13
- package/src/ui/routes/__root.tsx +0 -69
- package/src/ui/routes/index.tsx +0 -35
- package/src/ui/routes/session/$sessionId.tsx +0 -50
- package/src/ui/runtimeDiscovery.ts +0 -50
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
-
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
|
|
5
|
-
<style type="text/css">
|
|
6
|
-
.st0{opacity:0.3;fill:#E2E4E7;}
|
|
7
|
-
.st1{opacity:0.8;fill:#E2E4E7;stroke:#FFFFFF;stroke-width:5;stroke-miterlimit:10;}
|
|
8
|
-
.st2{fill:url(#SVGID_1_);}
|
|
9
|
-
.st3{fill:none;stroke:#E0E4E9;stroke-width:0.25;stroke-miterlimit:10;}
|
|
10
|
-
.st4{fill:none;}
|
|
11
|
-
.st5{fill:#9DA1A5;}
|
|
12
|
-
.st6{fill-rule:evenodd;clip-rule:evenodd;fill:none;}
|
|
13
|
-
.st7{fill-rule:evenodd;clip-rule:evenodd;fill:#DFE2E7;}
|
|
14
|
-
.st8{fill-rule:evenodd;clip-rule:evenodd;fill:#CDD4DA;}
|
|
15
|
-
.st9{fill-rule:evenodd;clip-rule:evenodd;fill:#B3BCC7;}
|
|
16
|
-
.st10{fill-rule:evenodd;clip-rule:evenodd;fill:#9DAAB7;}
|
|
17
|
-
.st11{fill-rule:evenodd;clip-rule:evenodd;fill:#8698A8;}
|
|
18
|
-
.st12{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_2_);}
|
|
19
|
-
.st13{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_3_);}
|
|
20
|
-
.st14{fill:#1F63EC;}
|
|
21
|
-
.st15{fill:#2D2D2D;}
|
|
22
|
-
.st16{fill:none;stroke:#E0E4E9;stroke-width:0.5;stroke-miterlimit:10;}
|
|
23
|
-
.st17{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_4_);}
|
|
24
|
-
.st18{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_5_);}
|
|
25
|
-
.st19{fill:none;stroke:#677380;stroke-width:0.5;stroke-miterlimit:10;}
|
|
26
|
-
.st20{fill:none;stroke:url(#SVGID_6_);stroke-width:2;stroke-miterlimit:10;}
|
|
27
|
-
.st21{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_7_);}
|
|
28
|
-
.st22{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_8_);}
|
|
29
|
-
.st23{fill:#FFFFFF;}
|
|
30
|
-
.st24{fill-rule:evenodd;clip-rule:evenodd;fill:#2D2D2D;}
|
|
31
|
-
.st25{clip-path:url(#SVGID_10_);}
|
|
32
|
-
.st26{clip-path:url(#SVGID_12_);}
|
|
33
|
-
.st27{fill:url(#SVGID_13_);}
|
|
34
|
-
.st28{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_14_);}
|
|
35
|
-
.st29{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_15_);}
|
|
36
|
-
.st30{clip-path:url(#SVGID_17_);}
|
|
37
|
-
.st31{clip-path:url(#SVGID_19_);}
|
|
38
|
-
.st32{fill:url(#SVGID_20_);}
|
|
39
|
-
.st33{fill:none;stroke:url(#SVGID_21_);stroke-width:2;stroke-miterlimit:10;}
|
|
40
|
-
.st34{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_22_);}
|
|
41
|
-
.st35{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_23_);}
|
|
42
|
-
.st36{clip-path:url(#SVGID_25_);}
|
|
43
|
-
.st37{clip-path:url(#SVGID_27_);}
|
|
44
|
-
.st38{fill:url(#SVGID_28_);}
|
|
45
|
-
.st39{clip-path:url(#SVGID_30_);}
|
|
46
|
-
.st40{clip-path:url(#SVGID_32_);}
|
|
47
|
-
.st41{fill:url(#SVGID_33_);}
|
|
48
|
-
.st42{fill-rule:evenodd;clip-rule:evenodd;fill:#126EF6;}
|
|
49
|
-
.st43{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}
|
|
50
|
-
.st44{clip-path:url(#SVGID_35_);}
|
|
51
|
-
.st45{clip-path:url(#SVGID_37_);}
|
|
52
|
-
.st46{fill:url(#SVGID_38_);}
|
|
53
|
-
.st47{fill-rule:evenodd;clip-rule:evenodd;fill:#9DA1A5;}
|
|
54
|
-
.st48{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_39_);}
|
|
55
|
-
.st49{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_40_);}
|
|
56
|
-
.st50{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_41_);}
|
|
57
|
-
.st51{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_42_);}
|
|
58
|
-
.st52{fill:none;stroke:url(#SVGID_43_);stroke-width:2;stroke-miterlimit:10;}
|
|
59
|
-
.st53{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#E0E4E9;stroke-width:0.5;stroke-miterlimit:10;}
|
|
60
|
-
.st54{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_44_);}
|
|
61
|
-
.st55{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_45_);}
|
|
62
|
-
.st56{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_46_);}
|
|
63
|
-
.st57{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_47_);}
|
|
64
|
-
.st58{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_48_);}
|
|
65
|
-
.st59{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_49_);}
|
|
66
|
-
.st60{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_50_);}
|
|
67
|
-
.st61{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_51_);}
|
|
68
|
-
.st62{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_52_);}
|
|
69
|
-
.st63{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_53_);}
|
|
70
|
-
.st64{clip-path:url(#SVGID_55_);}
|
|
71
|
-
.st65{clip-path:url(#SVGID_57_);}
|
|
72
|
-
.st66{fill:url(#SVGID_58_);}
|
|
73
|
-
.st67{clip-path:url(#SVGID_60_);}
|
|
74
|
-
.st68{clip-path:url(#SVGID_62_);}
|
|
75
|
-
.st69{fill:url(#SVGID_63_);}
|
|
76
|
-
.st70{fill:none;stroke:url(#SVGID_64_);stroke-width:2;stroke-miterlimit:10;}
|
|
77
|
-
.st71{clip-path:url(#SVGID_66_);}
|
|
78
|
-
.st72{clip-path:url(#SVGID_68_);}
|
|
79
|
-
.st73{fill:url(#SVGID_69_);}
|
|
80
|
-
.st74{clip-path:url(#SVGID_71_);}
|
|
81
|
-
.st75{clip-path:url(#SVGID_73_);}
|
|
82
|
-
.st76{fill:url(#SVGID_74_);}
|
|
83
|
-
.st77{clip-path:url(#SVGID_76_);}
|
|
84
|
-
.st78{clip-path:url(#SVGID_78_);}
|
|
85
|
-
.st79{fill:url(#SVGID_79_);}
|
|
86
|
-
.st80{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_80_);}
|
|
87
|
-
.st81{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_81_);}
|
|
88
|
-
.st82{clip-path:url(#SVGID_83_);}
|
|
89
|
-
.st83{clip-path:url(#SVGID_85_);}
|
|
90
|
-
.st84{fill:url(#SVGID_86_);}
|
|
91
|
-
.st85{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_87_);}
|
|
92
|
-
.st86{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_88_);}
|
|
93
|
-
.st87{clip-path:url(#SVGID_90_);}
|
|
94
|
-
.st88{clip-path:url(#SVGID_92_);}
|
|
95
|
-
.st89{fill:url(#SVGID_93_);}
|
|
96
|
-
.st90{fill:none;stroke:url(#SVGID_94_);stroke-width:2;stroke-miterlimit:10;}
|
|
97
|
-
.st91{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_95_);}
|
|
98
|
-
.st92{fill-rule:evenodd;clip-rule:evenodd;fill:url(#SVGID_96_);}
|
|
99
|
-
.st93{clip-path:url(#SVGID_98_);}
|
|
100
|
-
.st94{clip-path:url(#SVGID_100_);}
|
|
101
|
-
.st95{fill:url(#SVGID_101_);}
|
|
102
|
-
.st96{clip-path:url(#SVGID_103_);}
|
|
103
|
-
.st97{clip-path:url(#SVGID_105_);}
|
|
104
|
-
.st98{fill:url(#SVGID_106_);}
|
|
105
|
-
.st99{clip-path:url(#SVGID_108_);}
|
|
106
|
-
.st100{clip-path:url(#SVGID_110_);}
|
|
107
|
-
.st101{fill:url(#SVGID_111_);}
|
|
108
|
-
.st102{fill:#FFFFFF;stroke:#B3BCC7;stroke-width:0.275;stroke-miterlimit:10;}
|
|
109
|
-
.st103{clip-path:url(#SVGID_113_);}
|
|
110
|
-
.st104{fill:#FDD138;}
|
|
111
|
-
.st105{fill:#FCA62F;}
|
|
112
|
-
.st106{fill:#FB7927;}
|
|
113
|
-
.st107{fill:#F44B22;}
|
|
114
|
-
.st108{fill:#D81915;}
|
|
115
|
-
.st109{fill:#2D2D2D;stroke:#FFFFFF;stroke-width:0.3354;stroke-miterlimit:10;}
|
|
116
|
-
.st110{fill:none;stroke:#65727F;stroke-width:2;stroke-miterlimit:10;}
|
|
117
|
-
.st111{fill:none;stroke:#65727F;stroke-width:0.75;stroke-miterlimit:10;}
|
|
118
|
-
.st112{fill:url(#SVGID_114_);}
|
|
119
|
-
.st113{fill:#D06C50;}
|
|
120
|
-
.st114{fill:#2D2D2D;stroke:#B3BCC7;stroke-width:0.275;stroke-miterlimit:10;}
|
|
121
|
-
.st115{opacity:0.2;}
|
|
122
|
-
.st116{fill:none;stroke:#677380;stroke-width:0.3564;stroke-miterlimit:10;}
|
|
123
|
-
.st117{fill:none;stroke:#677380;stroke-width:0.3564;stroke-miterlimit:10;stroke-dasharray:1.0212,1.0212;}
|
|
124
|
-
.st118{fill:none;stroke:#677380;stroke-width:0.3564;stroke-miterlimit:10;stroke-dasharray:1.0205,1.0205;}
|
|
125
|
-
.st119{opacity:0.2;fill:none;}
|
|
126
|
-
.st120{fill:none;stroke:#677380;stroke-width:0.3689;stroke-miterlimit:10;}
|
|
127
|
-
.st121{fill:none;stroke:#677380;stroke-width:0.3689;stroke-miterlimit:10;stroke-dasharray:1.0509,1.0509;}
|
|
128
|
-
.st122{opacity:0.3;fill:#1F63EC;}
|
|
129
|
-
.st123{fill:#2D2D2D;stroke:#FFFFFF;stroke-width:0.3162;stroke-miterlimit:10;}
|
|
130
|
-
.st124{fill:#FFFFFF;stroke:#B3BCC7;stroke-width:0.3162;stroke-miterlimit:10;}
|
|
131
|
-
.st125{clip-path:url(#SVGID_118_);}
|
|
132
|
-
.st126{fill:url(#SVGID_119_);}
|
|
133
|
-
.st127{fill:none;stroke:#DFE2E7;stroke-width:0.75;stroke-miterlimit:10;}
|
|
134
|
-
.st128{fill:#9DA1A5;stroke:#FFFFFF;stroke-miterlimit:10;}
|
|
135
|
-
.st129{fill:url(#SVGID_120_);}
|
|
136
|
-
.st130{fill:none;stroke:#677380;stroke-width:0.75;stroke-miterlimit:10;}
|
|
137
|
-
.st131{opacity:0.4;}
|
|
138
|
-
.st132{clip-path:url(#SVGID_122_);}
|
|
139
|
-
.st133{clip-path:url(#SVGID_124_);}
|
|
140
|
-
.st134{fill:url(#SVGID_125_);}
|
|
141
|
-
.st135{fill:none;stroke:#8392A3;stroke-width:0.35;stroke-miterlimit:10;}
|
|
142
|
-
.st136{fill:none;stroke:#8392A3;stroke-width:0.35;stroke-miterlimit:10;stroke-dasharray:0.9951,0.9951;}
|
|
143
|
-
.st137{fill:none;stroke:#8392A3;stroke-width:0.35;stroke-miterlimit:10;stroke-dasharray:1.004,1.004;}
|
|
144
|
-
.st138{fill:none;stroke:url(#SVGID_126_);stroke-width:1.5;stroke-miterlimit:10;}
|
|
145
|
-
.st139{fill:url(#SVGID_127_);}
|
|
146
|
-
.st140{fill:none;stroke:#DDE0E4;stroke-width:0.35;stroke-miterlimit:10;}
|
|
147
|
-
.st141{fill:#2D2D2D;stroke:#A9B3BE;stroke-width:0.275;stroke-miterlimit:10;}
|
|
148
|
-
.st142{fill-rule:evenodd;clip-rule:evenodd;fill:#126EF4;}
|
|
149
|
-
.st143{fill:#FFFFFF;stroke:#B1BAC4;stroke-width:0.275;stroke-miterlimit:10;}
|
|
150
|
-
.st144{fill:#CE6C50;}
|
|
151
|
-
.st145{fill:#5B5B5B;}
|
|
152
|
-
.st146{fill:#8392A3;}
|
|
153
|
-
.st147{fill:none;stroke:url(#SVGID_128_);stroke-width:1.5;stroke-miterlimit:10;}
|
|
154
|
-
.st148{fill:url(#SVGID_129_);}
|
|
155
|
-
.st149{fill:none;stroke:#B5BDC4;stroke-width:0.7;stroke-miterlimit:10;}
|
|
156
|
-
.st150{opacity:0.6;fill:none;stroke:#78838E;stroke-width:0.35;stroke-miterlimit:10;}
|
|
157
|
-
.st151{opacity:0.2;fill:none;stroke:#8392A3;stroke-width:0.35;stroke-miterlimit:10;stroke-dasharray:1,1;}
|
|
158
|
-
.st152{fill:none;stroke:#DDE0E4;stroke-width:0.75;stroke-miterlimit:10;}
|
|
159
|
-
.st153{fill:none;stroke:#8392A3;stroke-width:0.5;stroke-miterlimit:10;}
|
|
160
|
-
.st154{opacity:0.2;fill:none;stroke:#677380;stroke-width:0.3564;stroke-miterlimit:10;stroke-dasharray:1.0182,1.0182;}
|
|
161
|
-
.st155{fill:none;stroke:#DDE0E4;stroke-width:0.765;stroke-miterlimit:10;}
|
|
162
|
-
.st156{fill:url(#SVGID_130_);}
|
|
163
|
-
.st157{fill:url(#SVGID_131_);}
|
|
164
|
-
.st158{fill:#B1BAC4;}
|
|
165
|
-
.st159{fill:#CBD1D8;}
|
|
166
|
-
.st160{fill:#0B1B2B;}
|
|
167
|
-
.st161{fill:#91D119;}
|
|
168
|
-
.st162{opacity:0.7;}
|
|
169
|
-
.st163{fill:#FFFFFF;stroke:#000000;stroke-width:0.4418;stroke-miterlimit:10;}
|
|
170
|
-
.st164{fill:none;stroke:#939CAA;stroke-width:0.2209;stroke-miterlimit:10;}
|
|
171
|
-
.st165{fill:none;stroke:#FFFFFF;stroke-width:3.0924;stroke-miterlimit:10;}
|
|
172
|
-
.st166{fill:url(#SVGID_132_);}
|
|
173
|
-
.st167{fill:none;stroke:url(#SVGID_133_);stroke-width:1.714;stroke-miterlimit:10;}
|
|
174
|
-
.st168{fill:url(#SVGID_134_);}
|
|
175
|
-
.st169{fill:url(#SVGID_135_);}
|
|
176
|
-
.st170{fill:url(#SVGID_136_);}
|
|
177
|
-
.st171{fill:url(#SVGID_137_);}
|
|
178
|
-
.st172{fill:url(#SVGID_138_);}
|
|
179
|
-
.st173{fill:url(#SVGID_139_);}
|
|
180
|
-
.st174{fill:url(#SVGID_140_);}
|
|
181
|
-
.st175{fill:url(#SVGID_141_);}
|
|
182
|
-
.st176{fill:url(#SVGID_142_);}
|
|
183
|
-
.st177{fill:url(#SVGID_143_);}
|
|
184
|
-
.st178{fill:url(#SVGID_144_);}
|
|
185
|
-
.st179{fill:none;stroke:#1F63EC;stroke-width:4;stroke-miterlimit:10;}
|
|
186
|
-
.st180{fill:none;stroke:#0B1B2B;stroke-width:4;stroke-miterlimit:10;}
|
|
187
|
-
.st181{fill:none;stroke:#677380;stroke-width:0.3989;stroke-miterlimit:10;}
|
|
188
|
-
.st182{fill:none;stroke:#677380;stroke-width:0.3989;stroke-miterlimit:10;stroke-dasharray:1.14,1.14;}
|
|
189
|
-
.st183{fill:#257AF1;}
|
|
190
|
-
.st184{opacity:0.3;fill:#FFFFFF;}
|
|
191
|
-
.st185{fill:none;stroke:#98A5B2;stroke-width:4;stroke-miterlimit:10;}
|
|
192
|
-
.st186{fill:none;stroke:#65727F;stroke-width:0.3989;stroke-miterlimit:10;}
|
|
193
|
-
.st187{fill:none;stroke:#65727F;stroke-width:0.3989;stroke-miterlimit:10;stroke-dasharray:1.14,1.14;}
|
|
194
|
-
.st188{fill:none;stroke:#DDDFE4;stroke-width:0.75;stroke-miterlimit:10;}
|
|
195
|
-
.st189{fill:#9A9EA2;}
|
|
196
|
-
.st190{fill-rule:evenodd;clip-rule:evenodd;fill:#3267AC;}
|
|
197
|
-
.st191{fill:#FFFFFF;stroke:#AFB8C3;stroke-width:0.275;stroke-miterlimit:10;}
|
|
198
|
-
.st192{fill:#C5694E;}
|
|
199
|
-
.st193{fill:#8192A2;}
|
|
200
|
-
.st194{fill:#2D2D2D;stroke:#FFFFFF;stroke-width:0.6317;stroke-miterlimit:10;}
|
|
201
|
-
</style>
|
|
202
|
-
<g id="图层_2">
|
|
203
|
-
</g>
|
|
204
|
-
<g id="图层_1">
|
|
205
|
-
<path class="st194" d="M24.51,28.51H5.49c-2.21,0-4-1.79-4-4V5.49c0-2.21,1.79-4,4-4h19.03c2.21,0,4,1.79,4,4v19.03
|
|
206
|
-
C28.51,26.72,26.72,28.51,24.51,28.51z"/>
|
|
207
|
-
<g>
|
|
208
|
-
<g>
|
|
209
|
-
<g>
|
|
210
|
-
<g>
|
|
211
|
-
<path class="st23" d="M15.47,7.1l-1.3,1.85c-0.2,0.29-0.54,0.47-0.9,0.47h-7.1V7.09C6.16,7.1,15.47,7.1,15.47,7.1z"/>
|
|
212
|
-
<polygon class="st23" points="24.3,7.1 13.14,22.91 5.7,22.91 16.86,7.1 "/>
|
|
213
|
-
<path class="st23" d="M14.53,22.91l1.31-1.86c0.2-0.29,0.54-0.47,0.9-0.47h7.09v2.33H14.53z"/>
|
|
214
|
-
</g>
|
|
215
|
-
</g>
|
|
216
|
-
</g>
|
|
217
|
-
</g>
|
|
218
|
-
</g>
|
|
219
|
-
</svg>
|
package/src/backend/router.tsx
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRouter } from "@tanstack/react-router";
|
|
2
|
-
import { getRouterBasePath } from "../lib/basePath";
|
|
3
|
-
import { routeTree } from "./routeTree.gen";
|
|
4
|
-
|
|
5
|
-
function defaultRouterBasePath(): string {
|
|
6
|
-
return getRouterBasePath(typeof process === "undefined" ? undefined : process.env);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function getRouter(basepath = defaultRouterBasePath()) {
|
|
10
|
-
const router = createRouter({
|
|
11
|
-
routeTree,
|
|
12
|
-
basepath,
|
|
13
|
-
scrollRestoration: false,
|
|
14
|
-
});
|
|
15
|
-
attachServerSsrStoreCompatibility(router);
|
|
16
|
-
return router;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function attachServerSsrStoreCompatibility(
|
|
20
|
-
router: Readonly<{ state: Readonly<{ matches: unknown }> }>,
|
|
21
|
-
): void {
|
|
22
|
-
const stateDescriptor = Object.getOwnPropertyDescriptor(router, "state");
|
|
23
|
-
if (stateDescriptor === undefined) return;
|
|
24
|
-
|
|
25
|
-
const existingStores = Object.getOwnPropertyDescriptor(router, "stores");
|
|
26
|
-
if (existingStores !== undefined) return;
|
|
27
|
-
|
|
28
|
-
Object.defineProperty(router, "stores", {
|
|
29
|
-
configurable: true,
|
|
30
|
-
value: {
|
|
31
|
-
matches: {
|
|
32
|
-
get: () => router.state.matches,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
package/src/backend/routes/$.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
|
|
3
|
-
const BACKEND_NOT_FOUND_BODY = {
|
|
4
|
-
error: "not_found",
|
|
5
|
-
message: "Agent Inspector backend does not serve the web UI.",
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
export function backendNotFoundResponse(): Response {
|
|
9
|
-
return Response.json(BACKEND_NOT_FOUND_BODY, {
|
|
10
|
-
status: 404,
|
|
11
|
-
headers: { "cache-control": "no-store" },
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export const Route = createFileRoute("/$")({
|
|
16
|
-
server: {
|
|
17
|
-
handlers: {
|
|
18
|
-
GET: backendNotFoundResponse,
|
|
19
|
-
POST: backendNotFoundResponse,
|
|
20
|
-
PUT: backendNotFoundResponse,
|
|
21
|
-
PATCH: backendNotFoundResponse,
|
|
22
|
-
DELETE: backendNotFoundResponse,
|
|
23
|
-
OPTIONS: backendNotFoundResponse,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { getInspectorAlertSummary } from "../../../services/alerts";
|
|
3
|
-
import { DEFAULT_ALERT_SCAN_LIMIT, MAX_ALERT_SCAN_LIMIT } from "../../../proxy/alerts";
|
|
4
|
-
import { parseBoundedIntegerParameter } from "../../../lib/resourceLimits";
|
|
5
|
-
|
|
6
|
-
export const Route = createFileRoute("/api/alerts/summary")({
|
|
7
|
-
server: {
|
|
8
|
-
handlers: {
|
|
9
|
-
GET: async ({ request }: { request: Request }) => {
|
|
10
|
-
const url = new URL(request.url);
|
|
11
|
-
const scanLimitResult = parseBoundedIntegerParameter({
|
|
12
|
-
value: url.searchParams.get("scanLimit"),
|
|
13
|
-
parameter: "scanLimit",
|
|
14
|
-
fallback: DEFAULT_ALERT_SCAN_LIMIT,
|
|
15
|
-
minimum: 1,
|
|
16
|
-
maximum: MAX_ALERT_SCAN_LIMIT,
|
|
17
|
-
resource: "alerts-scan-size",
|
|
18
|
-
});
|
|
19
|
-
if (!scanLimitResult.ok) return scanLimitResult.response;
|
|
20
|
-
return Response.json(
|
|
21
|
-
await getInspectorAlertSummary({
|
|
22
|
-
scanLimit: scanLimitResult.value,
|
|
23
|
-
}),
|
|
24
|
-
);
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
});
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import {
|
|
3
|
-
AlertCategorySchema,
|
|
4
|
-
AlertSeveritySchema,
|
|
5
|
-
AlertSourceSchema,
|
|
6
|
-
type AlertCategory,
|
|
7
|
-
type AlertSeverity,
|
|
8
|
-
type AlertSource,
|
|
9
|
-
} from "../../../lib/alertContract";
|
|
10
|
-
import { listInspectorAlerts } from "../../../services/alerts";
|
|
11
|
-
import {
|
|
12
|
-
DEFAULT_ALERT_LIMIT,
|
|
13
|
-
DEFAULT_ALERT_SCAN_LIMIT,
|
|
14
|
-
MAX_ALERT_LIMIT,
|
|
15
|
-
MAX_ALERT_SCAN_LIMIT,
|
|
16
|
-
} from "../../../proxy/alerts";
|
|
17
|
-
import { parseBoundedIntegerParameter } from "../../../lib/resourceLimits";
|
|
18
|
-
|
|
19
|
-
type ParsedFilters = {
|
|
20
|
-
severity?: AlertSeverity;
|
|
21
|
-
category?: AlertCategory;
|
|
22
|
-
source?: AlertSource;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
function parseFilters(url: URL): ParsedFilters {
|
|
26
|
-
const severityResult = AlertSeveritySchema.safeParse(url.searchParams.get("severity"));
|
|
27
|
-
const categoryResult = AlertCategorySchema.safeParse(url.searchParams.get("category"));
|
|
28
|
-
const sourceResult = AlertSourceSchema.safeParse(url.searchParams.get("source"));
|
|
29
|
-
|
|
30
|
-
return {
|
|
31
|
-
severity: severityResult.success ? severityResult.data : undefined,
|
|
32
|
-
category: categoryResult.success ? categoryResult.data : undefined,
|
|
33
|
-
source: sourceResult.success ? sourceResult.data : undefined,
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const Route = createFileRoute("/api/alerts")({
|
|
38
|
-
server: {
|
|
39
|
-
handlers: {
|
|
40
|
-
GET: async ({ request }: { request: Request }) => {
|
|
41
|
-
const url = new URL(request.url);
|
|
42
|
-
const limitResult = parseBoundedIntegerParameter({
|
|
43
|
-
value: url.searchParams.get("limit"),
|
|
44
|
-
parameter: "limit",
|
|
45
|
-
fallback: DEFAULT_ALERT_LIMIT,
|
|
46
|
-
minimum: 1,
|
|
47
|
-
maximum: MAX_ALERT_LIMIT,
|
|
48
|
-
resource: "alerts-page-size",
|
|
49
|
-
});
|
|
50
|
-
if (!limitResult.ok) return limitResult.response;
|
|
51
|
-
const scanLimitResult = parseBoundedIntegerParameter({
|
|
52
|
-
value: url.searchParams.get("scanLimit"),
|
|
53
|
-
parameter: "scanLimit",
|
|
54
|
-
fallback: DEFAULT_ALERT_SCAN_LIMIT,
|
|
55
|
-
minimum: 1,
|
|
56
|
-
maximum: MAX_ALERT_SCAN_LIMIT,
|
|
57
|
-
resource: "alerts-scan-size",
|
|
58
|
-
});
|
|
59
|
-
if (!scanLimitResult.ok) return scanLimitResult.response;
|
|
60
|
-
return Response.json(
|
|
61
|
-
await listInspectorAlerts({
|
|
62
|
-
...parseFilters(url),
|
|
63
|
-
limit: limitResult.value,
|
|
64
|
-
scanLimit: scanLimitResult.value,
|
|
65
|
-
}),
|
|
66
|
-
);
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { store } from "../../../proxy/providers";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/config/paths")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
GET: () => {
|
|
8
|
-
return Response.json({
|
|
9
|
-
providerConfig: store.path,
|
|
10
|
-
});
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import {
|
|
4
|
-
MAX_PROVIDER_TEST_TIMEOUT_SECONDS,
|
|
5
|
-
MAX_SLOW_RESPONSE_THRESHOLD_SECONDS,
|
|
6
|
-
TimeDisplayFormatSchema,
|
|
7
|
-
} from "../../../lib/runtimeConfig";
|
|
8
|
-
import { getConfig, setConfig, RuntimeConfigSchema } from "../../../proxy/config";
|
|
9
|
-
|
|
10
|
-
// Partial schema for PATCH: at least one known field must be present.
|
|
11
|
-
const RuntimeConfigPatchSchema = z
|
|
12
|
-
.object({
|
|
13
|
-
stripClaudeCodeBillingHeader: z.boolean().optional(),
|
|
14
|
-
hasSeenOnboarding: z.boolean().optional(),
|
|
15
|
-
slowResponseThresholdSeconds: z
|
|
16
|
-
.number()
|
|
17
|
-
.int()
|
|
18
|
-
.min(0)
|
|
19
|
-
.max(MAX_SLOW_RESPONSE_THRESHOLD_SECONDS)
|
|
20
|
-
.optional(),
|
|
21
|
-
providerTestTimeoutSeconds: z
|
|
22
|
-
.number()
|
|
23
|
-
.int()
|
|
24
|
-
.min(1)
|
|
25
|
-
.max(MAX_PROVIDER_TEST_TIMEOUT_SECONDS)
|
|
26
|
-
.optional(),
|
|
27
|
-
timeDisplayFormat: TimeDisplayFormatSchema.optional(),
|
|
28
|
-
})
|
|
29
|
-
.strict()
|
|
30
|
-
.refine((v) => Object.keys(v).length > 0, {
|
|
31
|
-
message: "At least one field must be provided",
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export const Route = createFileRoute("/api/config")({
|
|
35
|
-
server: {
|
|
36
|
-
handlers: {
|
|
37
|
-
GET: () => {
|
|
38
|
-
return Response.json(getConfig());
|
|
39
|
-
},
|
|
40
|
-
PATCH: async ({ request }: { request: Request }) => {
|
|
41
|
-
let body: unknown;
|
|
42
|
-
try {
|
|
43
|
-
body = await request.json();
|
|
44
|
-
} catch {
|
|
45
|
-
return Response.json({ error: "Invalid JSON body" }, { status: 400 });
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const result = RuntimeConfigPatchSchema.safeParse(body);
|
|
49
|
-
if (!result.success) {
|
|
50
|
-
return Response.json(
|
|
51
|
-
{
|
|
52
|
-
error: "Invalid config payload",
|
|
53
|
-
issues: result.error.issues,
|
|
54
|
-
},
|
|
55
|
-
{ status: 400 },
|
|
56
|
-
);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
const updated = setConfig(result.data);
|
|
60
|
-
if (updated === null) {
|
|
61
|
-
return Response.json(
|
|
62
|
-
{ error: "Runtime configuration could not be persisted" },
|
|
63
|
-
{
|
|
64
|
-
status: 503,
|
|
65
|
-
headers: { "Cache-Control": "no-store" },
|
|
66
|
-
},
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
return Response.json(updated satisfies z.infer<typeof RuntimeConfigSchema>);
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { handleEcosystemPackageExecution } from "../../../proxy/ecosystemExecutionRoute";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/packages/$packageId/help")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
POST: ({ params, request }: { params: { packageId: string }; request: Request }) =>
|
|
8
|
-
handleEcosystemPackageExecution(request, params.packageId, "help"),
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { handleEcosystemPackageExecution } from "../../../proxy/ecosystemExecutionRoute";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/packages/$packageId/install")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
POST: ({ params, request }: { params: { packageId: string }; request: Request }) =>
|
|
8
|
-
handleEcosystemPackageExecution(request, params.packageId, "install"),
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { handleEcosystemPackageExecution } from "../../../proxy/ecosystemExecutionRoute";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/packages/$packageId/runner-presets")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
POST: ({ params, request }: { params: { packageId: string }; request: Request }) =>
|
|
8
|
-
handleEcosystemPackageExecution(request, params.packageId, "runner-presets"),
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { handleEcosystemPackageExecution } from "../../../proxy/ecosystemExecutionRoute";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/packages/$packageId/upgrade")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
POST: ({ params, request }: { params: { packageId: string }; request: Request }) =>
|
|
8
|
-
handleEcosystemPackageExecution(request, params.packageId, "upgrade"),
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import {
|
|
3
|
-
LAB_RECIPES,
|
|
4
|
-
listEcosystemPackages,
|
|
5
|
-
RUNNER_PRESETS,
|
|
6
|
-
} from "../../../proxy/ecosystemRegistry";
|
|
7
|
-
|
|
8
|
-
export const Route = createFileRoute("/api/ecosystem/packages")({
|
|
9
|
-
server: {
|
|
10
|
-
handlers: {
|
|
11
|
-
GET: async () => {
|
|
12
|
-
return Response.json({
|
|
13
|
-
checkedAt: new Date().toISOString(),
|
|
14
|
-
packages: await listEcosystemPackages(),
|
|
15
|
-
runnerPresets: RUNNER_PRESETS,
|
|
16
|
-
recipes: LAB_RECIPES,
|
|
17
|
-
});
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { handleEcosystemRecipeExecution } from "../../../proxy/ecosystemExecutionRoute";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/recipes/$recipeId/run")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
POST: ({ params, request }: { params: { recipeId: string }; request: Request }) =>
|
|
8
|
-
handleEcosystemRecipeExecution(request, params.recipeId),
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { getEcosystemTask } from "../../../proxy/ecosystemTasks";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/tasks/$taskId")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
GET: ({ params }: { params: { taskId: string } }) => {
|
|
8
|
-
const task = getEcosystemTask(params.taskId);
|
|
9
|
-
if (task === null) {
|
|
10
|
-
return Response.json({ error: "Unknown ecosystem task" }, { status: 404 });
|
|
11
|
-
}
|
|
12
|
-
return Response.json({ task });
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { listEcosystemTasks } from "../../../proxy/ecosystemTasks";
|
|
3
|
-
|
|
4
|
-
export const Route = createFileRoute("/api/ecosystem/tasks")({
|
|
5
|
-
server: {
|
|
6
|
-
handlers: {
|
|
7
|
-
GET: () => {
|
|
8
|
-
return Response.json({ tasks: listEcosystemTasks() });
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
import { GroupEvidenceExportOptionsSchema } from "../../../lib/groupContract";
|
|
3
|
-
import { exportInspectorGroupEvidence, readInspectorGroupEvidence } from "../../../services/groups";
|
|
4
|
-
|
|
5
|
-
type JsonBodyResult = { ok: true; value: unknown } | { ok: false };
|
|
6
|
-
|
|
7
|
-
async function readJsonBody(request: Request): Promise<JsonBodyResult> {
|
|
8
|
-
try {
|
|
9
|
-
const raw = await request.text();
|
|
10
|
-
if (raw.trim().length === 0) return { ok: true, value: undefined };
|
|
11
|
-
return { ok: true, value: JSON.parse(raw) };
|
|
12
|
-
} catch {
|
|
13
|
-
return { ok: false };
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const Route = createFileRoute("/api/groups/$groupId/evidence")({
|
|
18
|
-
server: {
|
|
19
|
-
handlers: {
|
|
20
|
-
GET: ({ params }: { params: { groupId: string } }) => {
|
|
21
|
-
const evidence = readInspectorGroupEvidence(params.groupId);
|
|
22
|
-
if (!evidence.ok) {
|
|
23
|
-
return Response.json({ error: evidence.message }, { status: evidence.status });
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return Response.json(evidence.value);
|
|
27
|
-
},
|
|
28
|
-
POST: async ({ params, request }: { params: { groupId: string }; request: Request }) => {
|
|
29
|
-
const body = await readJsonBody(request);
|
|
30
|
-
if (!body.ok) {
|
|
31
|
-
return Response.json({ error: "Invalid JSON body" }, { status: 400 });
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const parsed = GroupEvidenceExportOptionsSchema.safeParse(body.value);
|
|
35
|
-
if (!parsed.success) {
|
|
36
|
-
return Response.json(
|
|
37
|
-
{ error: "Invalid request body", details: parsed.error.format() },
|
|
38
|
-
{ status: 400 },
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const exported = await exportInspectorGroupEvidence(
|
|
43
|
-
params.groupId,
|
|
44
|
-
parsed.data,
|
|
45
|
-
new URL(request.url).origin,
|
|
46
|
-
);
|
|
47
|
-
if (!exported.ok) {
|
|
48
|
-
return Response.json({ error: exported.message }, { status: exported.status });
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return Response.json(exported.value);
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
});
|