@tonyclaw/agent-inspector 3.0.44 → 3.0.46
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 → backend/nitro.json} +3 -3
- package/.output/backend-public/assets/index-D4LX-sw-.js +11 -0
- package/.output/cli.js +22707 -17099
- package/.output/server/_libs/extend.mjs +4 -8
- package/.output/server/_libs/jszip.mjs +9 -35
- package/.output/server/_libs/modelcontextprotocol__core.mjs +25 -25
- package/.output/server/_libs/modelcontextprotocol__server.mjs +2 -2
- package/.output/server/_libs/react-dom.mjs +2 -3
- package/.output/server/_libs/react.mjs +1 -27
- package/.output/server/_libs/tanstack__react-router.mjs +1 -329
- package/.output/server/_libs/tanstack__router-core.mjs +42 -100
- package/.output/server/_libs/use-sync-external-store.mjs +1 -64
- package/.output/server/_libs/ws.mjs +1 -1
- package/.output/server/_libs/zod.mjs +6 -6
- package/.output/server/_ssr/index.mjs +5 -4
- package/.output/server/_ssr/publicBasePathContext-IH2ilOfu.mjs +176 -0
- package/.output/server/_ssr/{router-DWcUFPR3.mjs → router-D18yUq36.mjs} +7877 -5597
- package/.output/server/_ssr/start-COQu_AgD.mjs +57 -0
- package/.output/server/_tanstack-start-manifest_v-DnbdNeun.mjs +4 -0
- package/.output/server/index.mjs +5 -145
- package/.output/{public/assets/CompareDrawer-DQHjxFO6.js → ui/assets/CompareDrawer-DAUuIJ6G.js} +1 -1
- package/.output/{public/assets/InspectorPet-D1A4505B.js → ui/assets/InspectorPet-BRBVjOWI.js} +1 -1
- package/.output/ui/assets/ProxyViewerContainer-D7Sq0ctc.js +59 -0
- package/.output/{public/assets/ReplayDialog-C5vmbecv.js → ui/assets/ReplayDialog-nDLsjOhs.js} +1 -1
- package/.output/{public/assets/RequestAnatomy-CPGNB8lk.js → ui/assets/RequestAnatomy-zd4BDgL0.js} +1 -1
- package/.output/ui/assets/ResponseView-AdIXGcSn.js +2 -0
- package/.output/ui/assets/StreamingChunkSequence-CesTz8He.js +1 -0
- package/.output/{public/assets/_sessionId-CDhRgzf6.js → ui/assets/_sessionId-BAfzrhSU.js} +1 -1
- package/.output/{public/assets/_sessionId-mw3aA8Bp.js → ui/assets/_sessionId-QnBomgPD.js} +1 -1
- package/.output/ui/assets/favicon-DYEkHSNl.svg +21 -0
- package/.output/{public/assets/index-B2eoeT-Z.js → ui/assets/index-BcsdxBAd.js} +1 -1
- package/.output/ui/assets/index-BvXp42al.css +1 -0
- package/.output/{public/assets/index-CX7_rf7o.js → ui/assets/index-D0rtCN9V.js} +1 -1
- package/.output/ui/assets/index-DHpwr08Z.js +73 -0
- package/.output/{public/assets/index-BfRhTvOd.js → ui/assets/index-dNuk2dsU.js} +1 -1
- package/.output/ui/assets/json-viewer-BvFHglMb.js +1 -0
- package/.output/{public/assets/jszip.min-C9rCFoU3.js → ui/assets/jszip.min-B5Z7gNZB.js} +1 -1
- package/.output/ui/index.html +229 -0
- package/.output/ui/runtime-config.js +2 -0
- package/.output/workers/logFinalizer.worker.js +983 -414
- package/.output/workers/sessionWorkerEntry.js +983 -414
- package/README.md +363 -35
- package/docs/instance-control.openapi.yaml +361 -0
- package/package.json +28 -5
- package/scripts/generate-theme-scales.mjs +3 -3
- package/src/{router.tsx → backend/router.tsx} +3 -15
- package/src/backend/routes/$.ts +26 -0
- package/src/backend/routes/__root.ts +4 -0
- package/src/backend/routes/api/-instances.ts +109 -0
- package/src/{routes → backend/routes}/api/alerts.summary.ts +3 -3
- package/src/{routes → backend/routes}/api/alerts.ts +4 -4
- package/src/{routes → backend/routes}/api/config.paths.ts +1 -1
- package/src/{routes → backend/routes}/api/config.ts +11 -2
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.help.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.install.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.runner-presets.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.$packageId.upgrade.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.packages.ts +5 -1
- package/src/{routes → backend/routes}/api/ecosystem.recipes.$recipeId.run.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.tasks.$taskId.ts +1 -1
- package/src/{routes → backend/routes}/api/ecosystem.tasks.ts +1 -1
- package/src/{routes → backend/routes}/api/groups.$groupId.evidence.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.$groupId.sessions.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.$groupId.ts +2 -2
- package/src/{routes → backend/routes}/api/groups.ts +2 -2
- package/src/{routes → backend/routes}/api/health.ts +3 -3
- package/src/backend/routes/api/instances.$name.connection.ts +12 -0
- package/src/backend/routes/api/instances.$name.restart.ts +23 -0
- package/src/backend/routes/api/instances.$name.start.ts +18 -0
- package/src/backend/routes/api/instances.$name.stop.ts +23 -0
- package/src/backend/routes/api/instances.$name.ts +12 -0
- package/src/backend/routes/api/instances.ts +16 -0
- package/src/{routes → backend/routes}/api/knowledge.candidates.$candidateId.promote.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.candidates.$candidateId.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.candidates.ts +1 -1
- package/src/{routes → backend/routes}/api/knowledge.project-context.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.search.ts +2 -2
- package/src/{routes → backend/routes}/api/knowledge.sessions.$sessionId.candidates.ts +3 -3
- package/src/{routes → backend/routes}/api/logs.$id.body.ts +6 -6
- package/src/{routes → backend/routes}/api/logs.$id.chunks.ts +5 -4
- package/src/{routes → backend/routes}/api/logs.$id.replay.ts +12 -11
- package/src/{routes → backend/routes}/api/logs.$id.ts +4 -3
- package/src/{routes → backend/routes}/api/logs.import.ts +3 -3
- package/src/{routes → backend/routes}/api/logs.stream.ts +11 -7
- package/src/{routes → backend/routes}/api/logs.ts +17 -9
- package/src/{routes → backend/routes}/api/mcp.ts +1 -1
- package/src/{routes → backend/routes}/api/models.ts +1 -1
- package/src/{routes → backend/routes}/api/pi-agent.ts +2 -2
- package/src/{routes → backend/routes}/api/providers.$providerId.model-metadata.ts +5 -5
- package/src/{routes → backend/routes}/api/providers.$providerId.test.log.ts +7 -7
- package/src/{routes → backend/routes}/api/providers.$providerId.ts +4 -4
- package/src/{routes → backend/routes}/api/providers.export.ts +1 -1
- package/src/{routes → backend/routes}/api/providers.import.ts +3 -3
- package/src/{routes → backend/routes}/api/providers.scan.ts +2 -2
- package/src/{routes → backend/routes}/api/providers.ts +9 -4
- package/src/{routes → backend/routes}/api/runs.$runId.evidence.ts +2 -2
- package/src/{routes → backend/routes}/api/runs.$runId.ts +2 -2
- package/src/{routes → backend/routes}/api/runs.ts +4 -4
- package/src/backend/routes/api/runtime.ts +46 -0
- package/src/{routes → backend/routes}/api/sessions.ts +3 -3
- package/src/{routes → backend/routes}/proxy/$.ts +1 -1
- package/src/{routes → backend/routes}/readyz.ts +1 -1
- package/src/backend/start.ts +10 -0
- package/src/cli/alias.ts +431 -0
- package/src/cli/doctor.ts +32 -9
- package/src/cli/instance.ts +1050 -0
- package/src/cli/instanceArgs.ts +285 -0
- package/src/cli/instanceControl.ts +181 -0
- package/src/cli/instanceModel.ts +267 -0
- package/src/cli/instanceRegistry.ts +731 -0
- package/src/cli/networkHints.ts +27 -14
- package/src/cli/onboard.ts +190 -35
- package/src/cli/onboardTarget.ts +228 -0
- package/src/cli/templates/codex-skill-onboard.ts +109 -31
- package/src/cli/templates/skill-onboard.ts +140 -70
- package/src/cli.ts +338 -77
- package/src/components/ProxyViewer.tsx +20 -10
- package/src/components/ProxyViewerContainer.tsx +12 -11
- package/src/components/pi-agent/PiAgentPanel.tsx +2 -2
- package/src/components/providers/ProviderCard.tsx +1 -1
- package/src/components/providers/ProviderTestResultsView.tsx +1 -1
- package/src/components/providers/SettingsDialog.tsx +160 -140
- package/src/components/proxy-viewer/ApplicationBar.tsx +2 -1
- package/src/components/proxy-viewer/LogEntry.tsx +1 -1
- package/src/components/proxy-viewer/log-formats/index.ts +1 -1
- package/src/contracts/index.ts +5 -0
- package/src/contracts/log.ts +33 -3
- package/src/knowledge/types.ts +3 -2
- package/src/lib/alertContract.ts +2 -2
- package/src/lib/apiClient.ts +30 -7
- package/src/lib/apiFormat.ts +29 -0
- package/src/lib/basePath.ts +31 -7
- package/src/lib/browserRuntimeContract.ts +124 -0
- package/src/lib/browserRuntimeResolver.ts +244 -0
- package/src/{proxy → lib}/claudeCodeStrip.ts +6 -7
- package/src/lib/codingAgentEndpoints.ts +54 -0
- package/src/lib/instanceContract.ts +236 -0
- package/src/lib/managedInstance.ts +104 -0
- package/src/lib/piAgentContract.ts +3 -2
- package/src/lib/publicBasePathContext.ts +137 -0
- package/src/lib/resourceLimits.ts +2 -0
- package/src/lib/runContract.ts +3 -3
- package/src/lib/sessionInfoContract.ts +3 -2
- package/src/mcp/instanceHandlers.ts +150 -0
- package/src/mcp/loopback.ts +16 -5
- package/src/mcp/mode.ts +25 -0
- package/src/mcp/server.ts +274 -39
- package/src/mcp/toolHandlers.ts +2 -2
- package/src/proxy/config.ts +25 -30
- package/src/proxy/dataDir.ts +43 -7
- package/src/proxy/ecosystemTasks.ts +161 -70
- package/src/proxy/formats/registry.ts +6 -21
- package/src/proxy/handler.ts +129 -29
- package/src/proxy/identityProxy.ts +1049 -50
- package/src/proxy/jsonlRecovery.ts +554 -0
- package/src/proxy/logFinalizer.ts +25 -10
- package/src/proxy/logImporter.ts +2 -1
- package/src/proxy/logIndex.ts +191 -95
- package/src/proxy/logger.ts +77 -14
- package/src/proxy/platformCommands.ts +41 -0
- package/src/proxy/privateDataPath.ts +310 -88
- package/src/proxy/rawStreamCapture.ts +194 -13
- package/src/proxy/runtimeAdmission.ts +5 -2
- package/src/proxy/runtimeHealth.ts +14 -1
- package/src/proxy/runtimeShutdown.ts +84 -2
- package/src/proxy/schemas.ts +7 -1
- package/src/proxy/sessionArchive.ts +78 -14
- package/src/proxy/sessionInfo.ts +5 -4
- package/src/proxy/sqliteLogIndex.ts +65 -2
- package/src/proxy/store.ts +141 -34
- package/src/proxy/uiAssetServer.ts +106 -0
- package/src/proxy/upstream.ts +29 -2
- package/src/ui/bootstrap.ts +167 -0
- package/src/ui/index.html +38 -0
- package/src/ui/logsStreamClient.ts +20 -0
- package/src/ui/main.tsx +13 -0
- package/src/ui/public/runtime-config.js +2 -0
- package/src/ui/router.tsx +13 -0
- package/src/ui/routes/__root.tsx +69 -0
- package/src/{routes → ui/routes}/index.tsx +2 -3
- package/src/{routes → ui/routes}/session/$sessionId.tsx +5 -11
- package/src/ui/runtimeDiscovery.ts +50 -0
- package/styles/globals.css +1 -0
- package/.output/public/assets/ProxyViewerContainer-BhpIgfBi.js +0 -126
- package/.output/public/assets/ResponseView-DUfrajCm.js +0 -2
- package/.output/public/assets/StreamingChunkSequence-nbeCQqOz.js +0 -1
- package/.output/public/assets/index-BWjeqxbk.css +0 -1
- package/.output/public/assets/index-C6qZwYlR.js +0 -70
- package/.output/public/assets/json-viewer-BLmF1sOZ.js +0 -1
- package/.output/server/_libs/@radix-ui/react-accessible-icon+[...].mjs +0 -1
- package/.output/server/_libs/@radix-ui/react-dismissable-layer+[...].mjs +0 -344
- package/.output/server/_libs/@radix-ui/react-navigation-menu+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-one-time-password-field+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-password-toggle-field+[...].mjs +0 -2
- package/.output/server/_libs/@radix-ui/react-use-callback-ref+[...].mjs +0 -11
- package/.output/server/_libs/@radix-ui/react-use-controllable-state+[...].mjs +0 -69
- package/.output/server/_libs/@radix-ui/react-use-effect-event+[...].mjs +0 -1
- package/.output/server/_libs/@radix-ui/react-use-is-hydrated+[...].mjs +0 -28
- package/.output/server/_libs/@radix-ui/react-use-layout-effect+[...].mjs +0 -6
- package/.output/server/_libs/@radix-ui/react-visually-hidden+[...].mjs +0 -34
- package/.output/server/_libs/aria-hidden.mjs +0 -122
- package/.output/server/_libs/bail.mjs +0 -8
- package/.output/server/_libs/character-entities.mjs +0 -2130
- package/.output/server/_libs/class-variance-authority.mjs +0 -44
- package/.output/server/_libs/clsx.mjs +0 -16
- package/.output/server/_libs/comma-separated-tokens.mjs +0 -10
- package/.output/server/_libs/decode-named-character-reference+[...].mjs +0 -8
- package/.output/server/_libs/dequal.mjs +0 -27
- package/.output/server/_libs/detect-node-es.mjs +0 -1
- package/.output/server/_libs/devlop.mjs +0 -8
- package/.output/server/_libs/diff.mjs +0 -320
- package/.output/server/_libs/estree-util-is-identifier-name.mjs +0 -11
- package/.output/server/_libs/floating-ui__core.mjs +0 -725
- package/.output/server/_libs/floating-ui__dom.mjs +0 -622
- package/.output/server/_libs/floating-ui__react-dom.mjs +0 -292
- package/.output/server/_libs/floating-ui__utils.mjs +0 -320
- package/.output/server/_libs/get-nonce.mjs +0 -9
- package/.output/server/_libs/hast-util-to-jsx-runtime.mjs +0 -388
- package/.output/server/_libs/hast-util-whitespace.mjs +0 -10
- package/.output/server/_libs/html-url-attributes.mjs +0 -26
- package/.output/server/_libs/inline-style-parser.mjs +0 -142
- package/.output/server/_libs/is-plain-obj.mjs +0 -10
- package/.output/server/_libs/lucide-react.mjs +0 -1027
- package/.output/server/_libs/mdast-util-from-markdown.mjs +0 -717
- package/.output/server/_libs/mdast-util-to-hast.mjs +0 -710
- package/.output/server/_libs/mdast-util-to-string.mjs +0 -38
- package/.output/server/_libs/micromark-core-commonmark.mjs +0 -2259
- package/.output/server/_libs/micromark-factory-destination.mjs +0 -94
- package/.output/server/_libs/micromark-factory-label.mjs +0 -63
- package/.output/server/_libs/micromark-factory-space.mjs +0 -24
- package/.output/server/_libs/micromark-factory-title.mjs +0 -65
- package/.output/server/_libs/micromark-factory-whitespace.mjs +0 -22
- package/.output/server/_libs/micromark-util-character.mjs +0 -44
- package/.output/server/_libs/micromark-util-chunked.mjs +0 -36
- package/.output/server/_libs/micromark-util-classify-character+[...].mjs +0 -12
- package/.output/server/_libs/micromark-util-combine-extensions+[...].mjs +0 -41
- package/.output/server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +0 -19
- package/.output/server/_libs/micromark-util-decode-string.mjs +0 -21
- package/.output/server/_libs/micromark-util-encode.mjs +0 -1
- package/.output/server/_libs/micromark-util-html-tag-name.mjs +0 -69
- package/.output/server/_libs/micromark-util-normalize-identifier+[...].mjs +0 -6
- package/.output/server/_libs/micromark-util-resolve-all.mjs +0 -15
- package/.output/server/_libs/micromark-util-sanitize-uri.mjs +0 -41
- package/.output/server/_libs/micromark-util-subtokenize.mjs +0 -346
- package/.output/server/_libs/micromark.mjs +0 -906
- package/.output/server/_libs/property-information.mjs +0 -1209
- package/.output/server/_libs/radix-ui.mjs +0 -1
- package/.output/server/_libs/radix-ui__number.mjs +0 -6
- package/.output/server/_libs/radix-ui__primitive.mjs +0 -11
- package/.output/server/_libs/radix-ui__react-accordion.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-alert-dialog.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-arrow.mjs +0 -23
- package/.output/server/_libs/radix-ui__react-aspect-ratio.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-avatar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-checkbox.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-collapsible.mjs +0 -144
- package/.output/server/_libs/radix-ui__react-collection.mjs +0 -69
- package/.output/server/_libs/radix-ui__react-compose-refs.mjs +0 -38
- package/.output/server/_libs/radix-ui__react-context-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-context.mjs +0 -64
- package/.output/server/_libs/radix-ui__react-dialog.mjs +0 -280
- package/.output/server/_libs/radix-ui__react-direction.mjs +0 -9
- package/.output/server/_libs/radix-ui__react-dropdown-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-focus-guards.mjs +0 -39
- package/.output/server/_libs/radix-ui__react-focus-scope.mjs +0 -210
- package/.output/server/_libs/radix-ui__react-form.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-hover-card.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-id.mjs +0 -14
- package/.output/server/_libs/radix-ui__react-label.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-menu.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-menubar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-popover.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-popper.mjs +0 -340
- package/.output/server/_libs/radix-ui__react-portal.mjs +0 -16
- package/.output/server/_libs/radix-ui__react-presence.mjs +0 -173
- package/.output/server/_libs/radix-ui__react-primitive.mjs +0 -42
- package/.output/server/_libs/radix-ui__react-progress.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-radio-group.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-roving-focus.mjs +0 -235
- package/.output/server/_libs/radix-ui__react-scroll-area.mjs +0 -731
- package/.output/server/_libs/radix-ui__react-select.mjs +0 -1207
- package/.output/server/_libs/radix-ui__react-separator.mjs +0 -28
- package/.output/server/_libs/radix-ui__react-slider.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-slot.mjs +0 -132
- package/.output/server/_libs/radix-ui__react-switch.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-tabs.mjs +0 -194
- package/.output/server/_libs/radix-ui__react-toast.mjs +0 -2
- package/.output/server/_libs/radix-ui__react-toggle-group.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-toggle.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-toolbar.mjs +0 -1
- package/.output/server/_libs/radix-ui__react-tooltip.mjs +0 -498
- package/.output/server/_libs/radix-ui__react-use-previous.mjs +0 -14
- package/.output/server/_libs/radix-ui__react-use-size.mjs +0 -39
- package/.output/server/_libs/react-markdown.mjs +0 -235
- package/.output/server/_libs/react-remove-scroll-bar.mjs +0 -82
- package/.output/server/_libs/react-remove-scroll.mjs +0 -328
- package/.output/server/_libs/react-style-singleton.mjs +0 -69
- package/.output/server/_libs/remark-parse.mjs +0 -19
- package/.output/server/_libs/remark-rehype.mjs +0 -21
- package/.output/server/_libs/space-separated-tokens.mjs +0 -6
- package/.output/server/_libs/style-to-js.mjs +0 -72
- package/.output/server/_libs/style-to-object.mjs +0 -38
- package/.output/server/_libs/swr.mjs +0 -947
- package/.output/server/_libs/tailwind-merge.mjs +0 -3255
- package/.output/server/_libs/tanstack__react-virtual.mjs +0 -130
- package/.output/server/_libs/tanstack__virtual-core.mjs +0 -1319
- package/.output/server/_libs/three.mjs +0 -26016
- package/.output/server/_libs/trim-lines.mjs +0 -41
- package/.output/server/_libs/trough.mjs +0 -85
- package/.output/server/_libs/tslib.mjs +0 -1
- package/.output/server/_libs/ungap__structured-clone.mjs +0 -212
- package/.output/server/_libs/unified.mjs +0 -661
- package/.output/server/_libs/unist-util-is.mjs +0 -100
- package/.output/server/_libs/unist-util-position.mjs +0 -27
- package/.output/server/_libs/unist-util-stringify-position.mjs +0 -27
- package/.output/server/_libs/unist-util-visit-parents.mjs +0 -82
- package/.output/server/_libs/unist-util-visit.mjs +0 -24
- package/.output/server/_libs/use-callback-ref.mjs +0 -66
- package/.output/server/_libs/use-sidecar.mjs +0 -106
- package/.output/server/_libs/vfile-message.mjs +0 -138
- package/.output/server/_libs/vfile.mjs +0 -467
- package/.output/server/_sessionId-E_Dmopc-.mjs +0 -144
- package/.output/server/_sessionId-U54BAqdp.mjs +0 -82
- package/.output/server/_ssr/CompareDrawer-CksatPed.mjs +0 -1058
- package/.output/server/_ssr/InspectorPet-DNc4GQ7z.mjs +0 -936
- package/.output/server/_ssr/ProxyViewerContainer-B02Ey0p_.mjs +0 -17607
- package/.output/server/_ssr/ReplayDialog-DdMvHJF1.mjs +0 -723
- package/.output/server/_ssr/RequestAnatomy--vh2Z8__.mjs +0 -835
- package/.output/server/_ssr/ResponseView-Dhxc-cKC.mjs +0 -755
- package/.output/server/_ssr/StreamingChunkSequence-BG0EQmaD.mjs +0 -272
- package/.output/server/_ssr/index-D0At9nfd.mjs +0 -82
- package/.output/server/_ssr/index-lcfulIXa.mjs +0 -133
- package/.output/server/_ssr/json-viewer-My1J1_5R.mjs +0 -481
- package/.output/server/_ssr/start-HYkvq4Ni.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-B2chR8ef.mjs +0 -4
- package/.output/server/node_modules/tslib/modules/index.js +0 -70
- package/.output/server/node_modules/tslib/modules/package.json +0 -3
- package/.output/server/node_modules/tslib/package.json +0 -47
- package/.output/server/node_modules/tslib/tslib.js +0 -484
- package/.output/server/package.json +0 -9
- package/src/routes/__root.tsx +0 -170
- /package/.output/{public → ui}/assets/agent-inspector-58K1_MsC.ico +0 -0
- /package/.output/{public → ui}/assets/alibaba-TTwafVwX.svg +0 -0
- /package/.output/{public → ui}/assets/minimax-BPMzvuL-.jpeg +0 -0
- /package/.output/{public → ui}/assets/qwen-mMn3f5ul.webp +0 -0
- /package/.output/{public → ui}/assets/zhipuai-BPNAnxo-.svg +0 -0
- /package/src/{routes → backend/routes}/livez.ts +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
var extend$1;
|
|
1
|
+
var extend;
|
|
3
2
|
var hasRequiredExtend;
|
|
4
3
|
function requireExtend() {
|
|
5
|
-
if (hasRequiredExtend) return extend
|
|
4
|
+
if (hasRequiredExtend) return extend;
|
|
6
5
|
hasRequiredExtend = 1;
|
|
7
6
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
8
7
|
var toStr = Object.prototype.toString;
|
|
@@ -50,7 +49,7 @@ function requireExtend() {
|
|
|
50
49
|
}
|
|
51
50
|
return obj[name];
|
|
52
51
|
};
|
|
53
|
-
extend
|
|
52
|
+
extend = function extend2() {
|
|
54
53
|
var options, name, src, copy, copyIsArray, clone;
|
|
55
54
|
var target = arguments[0];
|
|
56
55
|
var i = 1;
|
|
@@ -88,11 +87,8 @@ function requireExtend() {
|
|
|
88
87
|
}
|
|
89
88
|
return target;
|
|
90
89
|
};
|
|
91
|
-
return extend
|
|
90
|
+
return extend;
|
|
92
91
|
}
|
|
93
|
-
var extendExports = requireExtend();
|
|
94
|
-
const extend = /* @__PURE__ */ getDefaultExportFromCjs(extendExports);
|
|
95
92
|
export {
|
|
96
|
-
extend as e,
|
|
97
93
|
requireExtend as r
|
|
98
94
|
};
|
|
@@ -3,27 +3,6 @@ import { r as requireReadable } from "./readable-stream.mjs";
|
|
|
3
3
|
import { r as requireLib$1 } from "./lie.mjs";
|
|
4
4
|
import { r as requireSetImmediate } from "./setimmediate.mjs";
|
|
5
5
|
import { r as requirePako } from "./pako.mjs";
|
|
6
|
-
function _mergeNamespaces(n, m) {
|
|
7
|
-
for (var i = 0; i < m.length; i++) {
|
|
8
|
-
const e = m[i];
|
|
9
|
-
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
10
|
-
for (const k in e) {
|
|
11
|
-
if (k !== "default" && !(k in n)) {
|
|
12
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
-
if (d) {
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
6
|
var utf8 = {};
|
|
28
7
|
var utils = {};
|
|
29
8
|
var support = {};
|
|
@@ -429,9 +408,9 @@ function requireUtils() {
|
|
|
429
408
|
exports$1.resolve = function(path) {
|
|
430
409
|
var parts = path.split("/");
|
|
431
410
|
var result = [];
|
|
432
|
-
for (var
|
|
433
|
-
var part = parts[
|
|
434
|
-
if (part === "." || part === "" &&
|
|
411
|
+
for (var index = 0; index < parts.length; index++) {
|
|
412
|
+
var part = parts[index];
|
|
413
|
+
if (part === "." || part === "" && index !== 0 && index !== parts.length - 1) {
|
|
435
414
|
continue;
|
|
436
415
|
} else if (part === "..") {
|
|
437
416
|
result.pop();
|
|
@@ -1036,7 +1015,7 @@ function requireStreamHelper() {
|
|
|
1036
1015
|
}
|
|
1037
1016
|
}
|
|
1038
1017
|
function concat(type, dataArray) {
|
|
1039
|
-
var i,
|
|
1018
|
+
var i, index = 0, res = null, totalLength = 0;
|
|
1040
1019
|
for (i = 0; i < dataArray.length; i++) {
|
|
1041
1020
|
totalLength += dataArray[i].length;
|
|
1042
1021
|
}
|
|
@@ -1048,8 +1027,8 @@ function requireStreamHelper() {
|
|
|
1048
1027
|
case "uint8array":
|
|
1049
1028
|
res = new Uint8Array(totalLength);
|
|
1050
1029
|
for (i = 0; i < dataArray.length; i++) {
|
|
1051
|
-
res.set(dataArray[i],
|
|
1052
|
-
|
|
1030
|
+
res.set(dataArray[i], index);
|
|
1031
|
+
index += dataArray[i].length;
|
|
1053
1032
|
}
|
|
1054
1033
|
return res;
|
|
1055
1034
|
case "nodebuffer":
|
|
@@ -2825,8 +2804,8 @@ function requireZipEntries() {
|
|
|
2825
2804
|
this.centralDirSize = this.reader.readInt(8);
|
|
2826
2805
|
this.centralDirOffset = this.reader.readInt(8);
|
|
2827
2806
|
this.zip64ExtensibleData = {};
|
|
2828
|
-
var extraDataSize = this.zip64EndOfCentralSize - 44,
|
|
2829
|
-
while (
|
|
2807
|
+
var extraDataSize = this.zip64EndOfCentralSize - 44, index = 0, extraFieldId, extraFieldLength, extraFieldValue;
|
|
2808
|
+
while (index < extraDataSize) {
|
|
2830
2809
|
extraFieldId = this.reader.readInt(2);
|
|
2831
2810
|
extraFieldLength = this.reader.readInt(4);
|
|
2832
2811
|
extraFieldValue = this.reader.readData(extraFieldLength);
|
|
@@ -3067,11 +3046,6 @@ function requireLib() {
|
|
|
3067
3046
|
}
|
|
3068
3047
|
var libExports = requireLib();
|
|
3069
3048
|
const JSZip = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
3070
|
-
const index = /* @__PURE__ */ _mergeNamespaces({
|
|
3071
|
-
__proto__: null,
|
|
3072
|
-
default: JSZip
|
|
3073
|
-
}, [libExports]);
|
|
3074
3049
|
export {
|
|
3075
|
-
JSZip as J
|
|
3076
|
-
index as i
|
|
3050
|
+
JSZip as J
|
|
3077
3051
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as lazy, u as union, c as string, n as number, e as boolean, _ as _null, r as record, f as array, o as object, l as looseObject, a as literal, j as unknown, g as _enum, i as intersection, p as preprocess, h as optional, d as datetime, k as discriminatedUnion, q as url, Z as ZodIssueCode, N as NEVER, w as number$1, x as any } from "./zod.mjs";
|
|
2
2
|
const LATEST_PROTOCOL_VERSION = "2025-11-25";
|
|
3
3
|
const DEFAULT_NEGOTIATED_PROTOCOL_VERSION = "2025-03-26";
|
|
4
4
|
const SUPPORTED_PROTOCOL_VERSIONS = [
|
|
@@ -943,17 +943,17 @@ export {
|
|
|
943
943
|
ToolAnnotationsSchema as F,
|
|
944
944
|
TextResourceContentsSchema as G,
|
|
945
945
|
TextContentSchema as H,
|
|
946
|
-
|
|
946
|
+
IdJagTokenExchangeResponseSchema as I,
|
|
947
947
|
JSONRPCRequestSchema as J,
|
|
948
948
|
TaskStatusSchema as K,
|
|
949
|
-
|
|
949
|
+
LegacyTitledEnumSchemaSchema as L,
|
|
950
950
|
TaskStatusNotificationSchema as M,
|
|
951
951
|
NumberSchemaSchema as N,
|
|
952
952
|
OpenIdProviderMetadataSchema as O,
|
|
953
|
-
|
|
953
|
+
PrimitiveSchemaDefinitionSchema as P,
|
|
954
954
|
TaskStatusNotificationParamsSchema as Q,
|
|
955
955
|
TaskSchema as R,
|
|
956
|
-
|
|
956
|
+
StringSchemaSchema as S,
|
|
957
957
|
TitledMultiSelectEnumSchemaSchema as T,
|
|
958
958
|
UntitledMultiSelectEnumSchemaSchema as U,
|
|
959
959
|
TaskMetadataSchema as V,
|
|
@@ -962,7 +962,7 @@ export {
|
|
|
962
962
|
SubscriptionsListenResultSchema as Y,
|
|
963
963
|
SubscriptionsListenResultMetaSchema as Z,
|
|
964
964
|
SubscriptionsListenRequestSchema as _,
|
|
965
|
-
|
|
965
|
+
OpenIdProviderDiscoveryMetadataSchema as a,
|
|
966
966
|
ListResourcesResultSchema as a$,
|
|
967
967
|
SubscriptionsAcknowledgedNotificationSchema as a0,
|
|
968
968
|
SubscriptionsAcknowledgedNotificationParamsSchema as a1,
|
|
@@ -1027,7 +1027,7 @@ export {
|
|
|
1027
1027
|
ReadResourceResultSchema as ax,
|
|
1028
1028
|
ReadResourceRequestSchema as ay,
|
|
1029
1029
|
ReadResourceRequestParamsSchema as az,
|
|
1030
|
-
|
|
1030
|
+
OAuthTokensSchema as b,
|
|
1031
1031
|
AnnotationsSchema as b$,
|
|
1032
1032
|
ListResourcesRequestSchema as b0,
|
|
1033
1033
|
ListResourceTemplatesResultSchema as b1,
|
|
@@ -1092,26 +1092,26 @@ export {
|
|
|
1092
1092
|
ElicitRequestParamsSchema as bx,
|
|
1093
1093
|
DiscoverResultSchema as by,
|
|
1094
1094
|
DiscoverRequestSchema as bz,
|
|
1095
|
-
|
|
1095
|
+
OAuthTokenRevocationRequestSchema as c,
|
|
1096
1096
|
LATEST_PROTOCOL_VERSION as c0,
|
|
1097
1097
|
DEFAULT_NEGOTIATED_PROTOCOL_VERSION as c1,
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1098
|
+
OAuthProtectedResourceMetadataSchema as d,
|
|
1099
|
+
OAuthMetadataSchema as e,
|
|
1100
|
+
OAuthErrorResponseSchema as f,
|
|
1101
|
+
OAuthClientRegistrationErrorSchema as g,
|
|
1102
|
+
OAuthClientMetadataSchema as h,
|
|
1103
|
+
OAuthClientInformationSchema as i,
|
|
1104
|
+
OAuthClientInformationFullSchema as j,
|
|
1105
|
+
UntitledSingleSelectEnumSchemaSchema as k,
|
|
1106
|
+
TitledSingleSelectEnumSchemaSchema as l,
|
|
1107
|
+
InitializeRequestSchema as m,
|
|
1108
|
+
JSONRPCResultResponseSchema as n,
|
|
1109
|
+
JSONRPCErrorResponseSchema as o,
|
|
1110
|
+
SUPPORTED_PROTOCOL_VERSIONS as p,
|
|
1111
|
+
JSONRPCNotificationSchema as q,
|
|
1112
|
+
PROTOCOL_VERSION_META_KEY as r,
|
|
1113
|
+
CLIENT_CAPABILITIES_META_KEY as s,
|
|
1114
|
+
LOG_LEVEL_META_KEY as t,
|
|
1115
1115
|
UnsubscribeRequestSchema as u,
|
|
1116
1116
|
UnsubscribeRequestParamsSchema as v,
|
|
1117
1117
|
ToolUseContentSchema as w,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2
|
-
import {
|
|
3
|
-
import { t as toJSONSchema,
|
|
2
|
+
import { E as ElicitRequestFormParamsSchema, S as StringSchemaSchema, O as OpenIdProviderMetadataSchema, a as OpenIdProviderDiscoveryMetadataSchema, b as OAuthTokensSchema, c as OAuthTokenRevocationRequestSchema, d as OAuthProtectedResourceMetadataSchema, e as OAuthMetadataSchema, f as OAuthErrorResponseSchema, g as OAuthClientRegistrationErrorSchema, h as OAuthClientMetadataSchema, i as OAuthClientInformationSchema, j as OAuthClientInformationFullSchema, I as IdJagTokenExchangeResponseSchema, P as PrimitiveSchemaDefinitionSchema, U as UntitledMultiSelectEnumSchemaSchema, T as TitledMultiSelectEnumSchemaSchema, B as BooleanSchemaSchema, N as NumberSchemaSchema, k as UntitledSingleSelectEnumSchemaSchema, l as TitledSingleSelectEnumSchemaSchema, L as LegacyTitledEnumSchemaSchema, m as InitializeRequestSchema, J as JSONRPCRequestSchema, n as JSONRPCResultResponseSchema, o as JSONRPCErrorResponseSchema, p as SUPPORTED_PROTOCOL_VERSIONS, q as JSONRPCNotificationSchema, r as PROTOCOL_VERSION_META_KEY, C as CLIENT_INFO_META_KEY, s as CLIENT_CAPABILITIES_META_KEY, t as LOG_LEVEL_META_KEY, u as UnsubscribeRequestSchema, v as UnsubscribeRequestParamsSchema, w as ToolUseContentSchema, x as ToolSchema, y as ToolResultContentSchema, z as ToolListChangedNotificationSchema, A as ToolExecutionSchema, D as ToolChoiceSchema, F as ToolAnnotationsSchema, G as TextResourceContentsSchema, H as TextContentSchema, K as TaskStatusSchema, M as TaskStatusNotificationSchema, Q as TaskStatusNotificationParamsSchema, R as TaskSchema, V as TaskMetadataSchema, W as TaskCreationParamsSchema, X as TaskAugmentedRequestParamsSchema, Y as SubscriptionsListenResultSchema, Z as SubscriptionsListenResultMetaSchema, _ as SubscriptionsListenRequestSchema, $ as SubscriptionsListenRequestParamsSchema, a0 as SubscriptionsAcknowledgedNotificationSchema, a1 as SubscriptionsAcknowledgedNotificationParamsSchema, a2 as SubscriptionFilterSchema, a3 as SubscribeRequestSchema, a4 as SubscribeRequestParamsSchema, a5 as SingleSelectEnumSchemaSchema, a6 as SetLevelRequestSchema, a7 as SetLevelRequestParamsSchema, a8 as ServerTasksCapabilitySchema, a9 as ServerResultSchema, aa as ServerRequestSchema, ab as ServerNotificationSchema, ac as ServerCapabilitiesSchema, ad as SamplingMessageSchema, ae as SamplingMessageContentBlockSchema, af as SamplingContentSchema, ag as RootsListChangedNotificationSchema, ah as RootSchema, ai as RoleSchema, aj as ResultSchema, ak as ResourceUpdatedNotificationSchema, al as ResourceUpdatedNotificationParamsSchema, am as ResourceTemplateSchema, an as ResourceTemplateReferenceSchema, ao as ResourceSchema, ap as ResourceRequestParamsSchema, aq as ResourceListChangedNotificationSchema, ar as ResourceLinkSchema, as as ResourceContentsSchema, at as RequestSchema, au as RequestMetaSchema, av as RequestIdSchema, aw as RelatedTaskMetadataSchema, ax as ReadResourceResultSchema, ay as ReadResourceRequestSchema, az as ReadResourceRequestParamsSchema, aA as PromptSchema, aB as PromptReferenceSchema, aC as PromptMessageSchema, aD as PromptListChangedNotificationSchema, aE as PromptArgumentSchema, aF as ProgressTokenSchema, aG as ProgressSchema, aH as ProgressNotificationSchema, aI as ProgressNotificationParamsSchema, aJ as PingRequestSchema, aK as PaginatedResultSchema, aL as PaginatedRequestSchema, aM as PaginatedRequestParamsSchema, aN as NotificationsParamsSchema, aO as NotificationSchema, aP as MultiSelectEnumSchemaSchema, aQ as ModelPreferencesSchema, aR as ModelHintSchema, aS as LoggingMessageNotificationSchema, aT as LoggingMessageNotificationParamsSchema, aU as LoggingLevelSchema, aV as ListToolsResultSchema, aW as ListToolsRequestSchema, aX as ListTasksResultSchema, aY as ListTasksRequestSchema, aZ as ListRootsResultSchema, a_ as ListRootsRequestSchema, a$ as ListResourcesResultSchema, b0 as ListResourcesRequestSchema, b1 as ListResourceTemplatesResultSchema, b2 as ListResourceTemplatesRequestSchema, b3 as ListPromptsResultSchema, b4 as ListPromptsRequestSchema, b5 as ListChangedOptionsBaseSchema, b6 as JSONValueSchema, b7 as JSONRPCResponseSchema, b8 as JSONRPCMessageSchema, b9 as JSONObjectSchema, ba as JSONArraySchema, bb as InitializedNotificationSchema, bc as InitializeResultSchema, bd as InitializeRequestParamsSchema, be as ImplementationSchema, bf as ImageContentSchema, bg as IconsSchema, bh as IconSchema, bi as GetTaskResultSchema, bj as GetTaskRequestSchema, bk as GetTaskPayloadResultSchema, bl as GetTaskPayloadRequestSchema, bm as GetPromptResultSchema, bn as GetPromptRequestSchema, bo as GetPromptRequestParamsSchema, bp as EnumSchemaSchema, bq as EmptyResultSchema, br as EmbeddedResourceSchema, bs as ElicitationCompleteNotificationSchema, bt as ElicitationCompleteNotificationParamsSchema, bu as ElicitResultSchema, bv as ElicitRequestURLParamsSchema, bw as ElicitRequestSchema, bx as ElicitRequestParamsSchema, by as DiscoverResultSchema, bz as DiscoverRequestSchema, bA as CursorSchema, bB as CreateTaskResultSchema, bC as CreateMessageResultWithToolsSchema, bD as CreateMessageResultSchema, bE as CreateMessageRequestSchema, bF as CreateMessageRequestParamsSchema, bG as ContentBlockSchema, bH as CompleteResultSchema, bI as CompleteRequestSchema, bJ as CompleteRequestParamsSchema, bK as CompatibilityCallToolResultSchema, bL as ClientTasksCapabilitySchema, bM as ClientResultSchema, bN as ClientRequestSchema, bO as ClientNotificationSchema, bP as ClientCapabilitiesSchema, bQ as CancelledNotificationSchema, bR as CancelledNotificationParamsSchema, bS as CancelTaskResultSchema, bT as CancelTaskRequestSchema, bU as CallToolResultSchema, bV as CallToolRequestSchema, bW as CallToolRequestParamsSchema, bX as BlobResourceContentsSchema, bY as BaseRequestParamsSchema, bZ as BaseMetadataSchema, b_ as AudioContentSchema, b$ as AnnotationsSchema, c0 as LATEST_PROTOCOL_VERSION, c1 as DEFAULT_NEGOTIATED_PROTOCOL_VERSION } from "./modelcontextprotocol__core.mjs";
|
|
3
|
+
import { s as safeParse, t as toJSONSchema, d as datetime, o as object, l as looseObject, a as literal, b as lazy, u as union, c as string, n as number, e as boolean, _ as _null, r as record, f as array, g as _enum, i as intersection, p as preprocess, h as optional, j as unknown, k as discriminatedUnion, m as date, q as url, v as email } from "./zod.mjs";
|
|
4
4
|
var __create = Object.create;
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
6
6
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -172,7 +172,7 @@ function requireReactDom() {
|
|
|
172
172
|
}
|
|
173
173
|
return reactDom.exports;
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
requireReactDom();
|
|
176
176
|
var server_node = {};
|
|
177
177
|
var reactDomServerLegacy_node_production = {};
|
|
178
178
|
var hasRequiredReactDomServerLegacy_node_production;
|
|
@@ -10774,6 +10774,5 @@ function requireServer_node() {
|
|
|
10774
10774
|
var server_nodeExports = requireServer_node();
|
|
10775
10775
|
const ReactDOMServer = /* @__PURE__ */ getDefaultExportFromCjs(server_nodeExports);
|
|
10776
10776
|
export {
|
|
10777
|
-
ReactDOMServer as R
|
|
10778
|
-
reactDomExports as r
|
|
10777
|
+
ReactDOMServer as R
|
|
10779
10778
|
};
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
function _mergeNamespaces(n, m) {
|
|
2
|
-
for (var i = 0; i < m.length; i++) {
|
|
3
|
-
const e = m[i];
|
|
4
|
-
if (typeof e !== "string" && !Array.isArray(e)) {
|
|
5
|
-
for (const k in e) {
|
|
6
|
-
if (k !== "default" && !(k in n)) {
|
|
7
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
-
if (d) {
|
|
9
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return e[k];
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
1
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
23
2
|
function getDefaultExportFromCjs(x) {
|
|
24
3
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -489,10 +468,6 @@ function requireReact() {
|
|
|
489
468
|
}
|
|
490
469
|
var reactExports = requireReact();
|
|
491
470
|
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
492
|
-
const React2 = /* @__PURE__ */ _mergeNamespaces({
|
|
493
|
-
__proto__: null,
|
|
494
|
-
default: React
|
|
495
|
-
}, [reactExports]);
|
|
496
471
|
var jsxRuntime = { exports: {} };
|
|
497
472
|
var reactJsxRuntime_production = {};
|
|
498
473
|
var hasRequiredReactJsxRuntime_production;
|
|
@@ -536,9 +511,8 @@ var jsxRuntimeExports = requireJsxRuntime();
|
|
|
536
511
|
export {
|
|
537
512
|
React as R,
|
|
538
513
|
requireReact as a,
|
|
539
|
-
|
|
514
|
+
getAugmentedNamespace as b,
|
|
540
515
|
commonjsGlobal as c,
|
|
541
|
-
getAugmentedNamespace as d,
|
|
542
516
|
getDefaultExportFromCjs as g,
|
|
543
517
|
jsxRuntimeExports as j,
|
|
544
518
|
reactExports as r
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { r as reactExports, j as jsxRuntimeExports, R as React } from "./react.mjs";
|
|
2
|
-
import { i as invariant, a as isDangerousProtocol, e as exactPathTest, r as removeTrailingSlash, h as hasKeys, d as deepEqual, f as functionalUpdate, B as BaseRootRoute, b as BaseRoute, c as
|
|
2
|
+
import { i as invariant, a as isDangerousProtocol, e as exactPathTest, r as removeTrailingSlash, h as hasKeys, d as deepEqual, f as functionalUpdate, B as BaseRootRoute, b as BaseRoute, c as isNotFound, g as getScrollRestorationScriptForRouter, j as rootRouteId, k as isServer, l as isRedirect, m as createNonReactiveReadonlyStore, n as createNonReactiveMutableStore, R as RouterCore, t as transformReadableStreamWithRouter, o as createSsrStreamResponse, p as transformPipeableStreamWithRouter } from "./tanstack__router-core.mjs";
|
|
3
3
|
import { R as ReactDOMServer } from "./react-dom.mjs";
|
|
4
4
|
import { PassThrough } from "node:stream";
|
|
5
5
|
import { i as isbot } from "./isbot.mjs";
|
|
6
|
-
var reactUse = reactExports.use;
|
|
7
6
|
function useForwardedRef(ref) {
|
|
8
7
|
const innerRef = reactExports.useRef(null);
|
|
9
8
|
reactExports.useImperativeHandle(ref, () => innerRef.current, []);
|
|
@@ -493,43 +492,6 @@ var FileRoute = class {
|
|
|
493
492
|
this.silent = _opts?.silent;
|
|
494
493
|
}
|
|
495
494
|
};
|
|
496
|
-
function lazyRouteComponent(importer, exportName) {
|
|
497
|
-
let loadPromise;
|
|
498
|
-
let comp;
|
|
499
|
-
let error;
|
|
500
|
-
let reload;
|
|
501
|
-
const load = () => {
|
|
502
|
-
if (!loadPromise) loadPromise = importer().then((res) => {
|
|
503
|
-
loadPromise = void 0;
|
|
504
|
-
comp = res[exportName ?? "default"];
|
|
505
|
-
}).catch((err) => {
|
|
506
|
-
error = err;
|
|
507
|
-
if (isModuleNotFoundError(error)) {
|
|
508
|
-
if (error instanceof Error && typeof window !== "undefined" && typeof sessionStorage !== "undefined") {
|
|
509
|
-
const storageKey = `tanstack_router_reload:${error.message}`;
|
|
510
|
-
if (!sessionStorage.getItem(storageKey)) {
|
|
511
|
-
sessionStorage.setItem(storageKey, "1");
|
|
512
|
-
reload = true;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
return loadPromise;
|
|
518
|
-
};
|
|
519
|
-
const lazyComp = function Lazy(props) {
|
|
520
|
-
if (reload) {
|
|
521
|
-
window.location.reload();
|
|
522
|
-
throw new Promise(() => {
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
if (error) throw error;
|
|
526
|
-
if (!comp) if (reactUse) reactUse(load());
|
|
527
|
-
else throw load();
|
|
528
|
-
return reactExports.createElement(comp, props);
|
|
529
|
-
};
|
|
530
|
-
lazyComp.preload = load;
|
|
531
|
-
return lazyComp;
|
|
532
|
-
}
|
|
533
495
|
function CatchNotFound(props) {
|
|
534
496
|
const router = useRouter();
|
|
535
497
|
{
|
|
@@ -776,292 +738,6 @@ function RouterProvider({ router, ...rest }) {
|
|
|
776
738
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(Matches, {})
|
|
777
739
|
});
|
|
778
740
|
}
|
|
779
|
-
var noopScriptHandler = () => {
|
|
780
|
-
};
|
|
781
|
-
function setScriptAttrs(script, attrs) {
|
|
782
|
-
if (!attrs) return;
|
|
783
|
-
for (const [key, value] of Object.entries(attrs)) if (key !== "suppressHydrationWarning" && value !== void 0 && value !== false) script.setAttribute(key, typeof value === "boolean" ? "" : String(value));
|
|
784
|
-
}
|
|
785
|
-
function Asset(asset) {
|
|
786
|
-
const { attrs, children, nonce, preventScriptHoist } = asset;
|
|
787
|
-
switch (asset.tag) {
|
|
788
|
-
case "title":
|
|
789
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("title", {
|
|
790
|
-
...attrs,
|
|
791
|
-
suppressHydrationWarning: true,
|
|
792
|
-
children
|
|
793
|
-
});
|
|
794
|
-
case "meta":
|
|
795
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("meta", {
|
|
796
|
-
...attrs,
|
|
797
|
-
suppressHydrationWarning: true
|
|
798
|
-
});
|
|
799
|
-
case "link":
|
|
800
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("link", {
|
|
801
|
-
...attrs,
|
|
802
|
-
precedence: attrs?.precedence ?? (attrs?.rel === "stylesheet" ? "default" : void 0),
|
|
803
|
-
nonce,
|
|
804
|
-
suppressHydrationWarning: true
|
|
805
|
-
});
|
|
806
|
-
case "style":
|
|
807
|
-
if (asset.inlineCss && false) ;
|
|
808
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("style", {
|
|
809
|
-
...attrs,
|
|
810
|
-
dangerouslySetInnerHTML: { __html: children },
|
|
811
|
-
nonce
|
|
812
|
-
});
|
|
813
|
-
case "script":
|
|
814
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Script, {
|
|
815
|
-
attrs,
|
|
816
|
-
preventScriptHoist,
|
|
817
|
-
children
|
|
818
|
-
});
|
|
819
|
-
default:
|
|
820
|
-
return null;
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
function Script({ attrs, children, preventScriptHoist }) {
|
|
824
|
-
useRouter();
|
|
825
|
-
useHydrated();
|
|
826
|
-
const dataScript = typeof attrs?.type === "string" && attrs.type !== "" && attrs.type !== "text/javascript" && attrs.type !== "module";
|
|
827
|
-
reactExports.useEffect(() => {
|
|
828
|
-
if (dataScript) return;
|
|
829
|
-
if (attrs?.src) {
|
|
830
|
-
const normSrc = (() => {
|
|
831
|
-
try {
|
|
832
|
-
const base = document.baseURI || window.location.href;
|
|
833
|
-
return new URL(attrs.src, base).href;
|
|
834
|
-
} catch {
|
|
835
|
-
return attrs.src;
|
|
836
|
-
}
|
|
837
|
-
})();
|
|
838
|
-
for (const el of document.querySelectorAll("script[src]")) if (el.src === normSrc) return;
|
|
839
|
-
const script = document.createElement("script");
|
|
840
|
-
setScriptAttrs(script, attrs);
|
|
841
|
-
document.head.appendChild(script);
|
|
842
|
-
return () => script.remove();
|
|
843
|
-
}
|
|
844
|
-
if (typeof children === "string") {
|
|
845
|
-
const typeAttr = typeof attrs?.type === "string" ? attrs.type : "text/javascript";
|
|
846
|
-
const nonceAttr = typeof attrs?.nonce === "string" ? attrs.nonce : void 0;
|
|
847
|
-
for (const el of document.querySelectorAll("script:not([src])")) {
|
|
848
|
-
if (!(el instanceof HTMLScriptElement)) continue;
|
|
849
|
-
const sType = el.getAttribute("type") ?? "text/javascript";
|
|
850
|
-
const sNonce = el.getAttribute("nonce") ?? void 0;
|
|
851
|
-
if (el.textContent === children && sType === typeAttr && sNonce === nonceAttr) return;
|
|
852
|
-
}
|
|
853
|
-
const script = document.createElement("script");
|
|
854
|
-
script.textContent = children;
|
|
855
|
-
setScriptAttrs(script, attrs);
|
|
856
|
-
document.head.appendChild(script);
|
|
857
|
-
return () => script.remove();
|
|
858
|
-
}
|
|
859
|
-
}, [
|
|
860
|
-
attrs,
|
|
861
|
-
children,
|
|
862
|
-
dataScript
|
|
863
|
-
]);
|
|
864
|
-
{
|
|
865
|
-
if (attrs?.src) {
|
|
866
|
-
if (!preventScriptHoist) return /* @__PURE__ */ jsxRuntimeExports.jsx("script", {
|
|
867
|
-
...attrs,
|
|
868
|
-
suppressHydrationWarning: true
|
|
869
|
-
});
|
|
870
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("script", {
|
|
871
|
-
...attrs,
|
|
872
|
-
onLoad: noopScriptHandler,
|
|
873
|
-
suppressHydrationWarning: true
|
|
874
|
-
});
|
|
875
|
-
}
|
|
876
|
-
if (typeof children === "string") return /* @__PURE__ */ jsxRuntimeExports.jsx("script", {
|
|
877
|
-
...attrs,
|
|
878
|
-
dangerouslySetInnerHTML: { __html: children },
|
|
879
|
-
suppressHydrationWarning: true
|
|
880
|
-
});
|
|
881
|
-
return null;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
function buildTagsFromMatches(router, nonce, matches, assetCrossOrigin) {
|
|
885
|
-
const routeMeta = matches.map((match) => match.meta).filter((meta) => meta !== void 0);
|
|
886
|
-
const resultMeta = [];
|
|
887
|
-
const metaByAttribute = {};
|
|
888
|
-
let title;
|
|
889
|
-
for (let i = routeMeta.length - 1; i >= 0; i--) {
|
|
890
|
-
const metas = routeMeta[i];
|
|
891
|
-
for (let j = metas.length - 1; j >= 0; j--) {
|
|
892
|
-
const m = metas[j];
|
|
893
|
-
if (!m) continue;
|
|
894
|
-
if (m.title) {
|
|
895
|
-
if (!title) title = {
|
|
896
|
-
tag: "title",
|
|
897
|
-
children: m.title
|
|
898
|
-
};
|
|
899
|
-
} else if ("script:ld+json" in m) try {
|
|
900
|
-
const json = JSON.stringify(m["script:ld+json"]);
|
|
901
|
-
resultMeta.push({
|
|
902
|
-
tag: "script",
|
|
903
|
-
attrs: { type: "application/ld+json" },
|
|
904
|
-
children: escapeHtml(json)
|
|
905
|
-
});
|
|
906
|
-
} catch {
|
|
907
|
-
}
|
|
908
|
-
else {
|
|
909
|
-
const attribute = m.name ?? m.property;
|
|
910
|
-
if (attribute) if (metaByAttribute[attribute]) continue;
|
|
911
|
-
else metaByAttribute[attribute] = true;
|
|
912
|
-
resultMeta.push({
|
|
913
|
-
tag: "meta",
|
|
914
|
-
attrs: {
|
|
915
|
-
...m,
|
|
916
|
-
nonce
|
|
917
|
-
}
|
|
918
|
-
});
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
if (title) resultMeta.push(title);
|
|
923
|
-
if (nonce) resultMeta.push({
|
|
924
|
-
tag: "meta",
|
|
925
|
-
attrs: {
|
|
926
|
-
property: "csp-nonce",
|
|
927
|
-
content: nonce
|
|
928
|
-
}
|
|
929
|
-
});
|
|
930
|
-
resultMeta.reverse();
|
|
931
|
-
const constructedLinks = matches.flatMap((match) => match.links ?? []).filter((link) => link !== void 0).map((link) => ({
|
|
932
|
-
tag: "link",
|
|
933
|
-
attrs: {
|
|
934
|
-
...link,
|
|
935
|
-
nonce
|
|
936
|
-
}
|
|
937
|
-
}));
|
|
938
|
-
const manifest = router.ssr?.manifest;
|
|
939
|
-
const manifestCssTags = [];
|
|
940
|
-
if (manifest) {
|
|
941
|
-
matches.forEach((match) => {
|
|
942
|
-
manifest.routes[match.routeId]?.css?.forEach((link) => {
|
|
943
|
-
const resolvedLink = resolveManifestCssLink(link);
|
|
944
|
-
manifestCssTags.push({
|
|
945
|
-
tag: "link",
|
|
946
|
-
attrs: {
|
|
947
|
-
rel: "stylesheet",
|
|
948
|
-
...resolvedLink,
|
|
949
|
-
crossOrigin: getAssetCrossOrigin(assetCrossOrigin, "stylesheet") ?? resolvedLink.crossOrigin,
|
|
950
|
-
suppressHydrationWarning: true,
|
|
951
|
-
nonce
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
});
|
|
955
|
-
});
|
|
956
|
-
if (manifest.inlineStyle) manifestCssTags.push({
|
|
957
|
-
tag: "style",
|
|
958
|
-
attrs: {
|
|
959
|
-
...manifest.inlineStyle.attrs,
|
|
960
|
-
nonce
|
|
961
|
-
},
|
|
962
|
-
children: manifest.inlineStyle.children,
|
|
963
|
-
inlineCss: true
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
const preloadLinks = [];
|
|
967
|
-
if (manifest) matches.forEach((match) => {
|
|
968
|
-
manifest.routes[match.routeId]?.preloads?.forEach((preload) => {
|
|
969
|
-
preloadLinks.push({
|
|
970
|
-
tag: "link",
|
|
971
|
-
attrs: {
|
|
972
|
-
...getScriptPreloadAttrs(manifest, preload, assetCrossOrigin),
|
|
973
|
-
nonce
|
|
974
|
-
}
|
|
975
|
-
});
|
|
976
|
-
});
|
|
977
|
-
});
|
|
978
|
-
const styles = matches.flatMap((match) => match.styles ?? []).filter((style) => style !== void 0).map(({ children, ...attrs }) => ({
|
|
979
|
-
tag: "style",
|
|
980
|
-
attrs: {
|
|
981
|
-
...attrs,
|
|
982
|
-
nonce
|
|
983
|
-
},
|
|
984
|
-
children
|
|
985
|
-
}));
|
|
986
|
-
const headScripts = matches.flatMap((match) => match.headScripts ?? []).filter((script) => script !== void 0).map(({ children, ...script }) => ({
|
|
987
|
-
tag: "script",
|
|
988
|
-
attrs: {
|
|
989
|
-
...script,
|
|
990
|
-
nonce
|
|
991
|
-
},
|
|
992
|
-
children
|
|
993
|
-
}));
|
|
994
|
-
const tags = [];
|
|
995
|
-
appendUniqueUserTags(tags, resultMeta);
|
|
996
|
-
tags.push(...preloadLinks);
|
|
997
|
-
appendUniqueUserTags(tags, constructedLinks);
|
|
998
|
-
tags.push(...manifestCssTags);
|
|
999
|
-
appendUniqueUserTags(tags, styles);
|
|
1000
|
-
appendUniqueUserTags(tags, headScripts);
|
|
1001
|
-
return tags;
|
|
1002
|
-
}
|
|
1003
|
-
var useTags = (assetCrossOrigin) => {
|
|
1004
|
-
const router = useRouter();
|
|
1005
|
-
const nonce = router.options.ssr?.nonce;
|
|
1006
|
-
return buildTagsFromMatches(router, nonce, router.stores.matches.get(), assetCrossOrigin);
|
|
1007
|
-
};
|
|
1008
|
-
function HeadContent(props) {
|
|
1009
|
-
const tags = useTags(props.assetCrossOrigin);
|
|
1010
|
-
const nonce = useRouter().options.ssr?.nonce;
|
|
1011
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: tags.map((tag) => /* @__PURE__ */ reactExports.createElement(Asset, {
|
|
1012
|
-
...tag,
|
|
1013
|
-
key: `tsr-meta-${JSON.stringify(tag)}`,
|
|
1014
|
-
nonce
|
|
1015
|
-
})) });
|
|
1016
|
-
}
|
|
1017
|
-
var Scripts = () => {
|
|
1018
|
-
const router = useRouter();
|
|
1019
|
-
const nonce = router.options.ssr?.nonce;
|
|
1020
|
-
const getAssetScripts = (matches) => {
|
|
1021
|
-
const assetScripts = [];
|
|
1022
|
-
const manifest = router.ssr?.manifest;
|
|
1023
|
-
if (!manifest) return [];
|
|
1024
|
-
for (const match of matches) {
|
|
1025
|
-
const scripts = manifest.routes[match.routeId]?.scripts;
|
|
1026
|
-
if (!scripts) continue;
|
|
1027
|
-
for (const asset of scripts) assetScripts.push({
|
|
1028
|
-
tag: "script",
|
|
1029
|
-
attrs: {
|
|
1030
|
-
...asset.attrs,
|
|
1031
|
-
nonce
|
|
1032
|
-
},
|
|
1033
|
-
children: asset.children,
|
|
1034
|
-
...typeof asset.attrs?.src === "string" ? { preventScriptHoist: true } : {}
|
|
1035
|
-
});
|
|
1036
|
-
}
|
|
1037
|
-
return assetScripts;
|
|
1038
|
-
};
|
|
1039
|
-
const getScripts = (matches) => matches.map((match) => match.scripts).flat(1).filter(Boolean).map(({ children, ...script }) => ({
|
|
1040
|
-
tag: "script",
|
|
1041
|
-
attrs: {
|
|
1042
|
-
...script,
|
|
1043
|
-
suppressHydrationWarning: true,
|
|
1044
|
-
nonce
|
|
1045
|
-
},
|
|
1046
|
-
children
|
|
1047
|
-
}));
|
|
1048
|
-
{
|
|
1049
|
-
const activeMatches = router.stores.matches.get();
|
|
1050
|
-
const assetScripts = getAssetScripts(activeMatches);
|
|
1051
|
-
return renderScripts(router, getScripts(activeMatches), assetScripts);
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
|
-
function renderScripts(router, scripts, assetScripts) {
|
|
1055
|
-
const allScripts = [...scripts, ...assetScripts];
|
|
1056
|
-
if (router.serverSsr) {
|
|
1057
|
-
const serverBufferedScript = router.serverSsr.takeBufferedScripts();
|
|
1058
|
-
if (serverBufferedScript) allScripts.unshift(serverBufferedScript);
|
|
1059
|
-
}
|
|
1060
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: allScripts.map((asset, i) => /* @__PURE__ */ reactExports.createElement(Asset, {
|
|
1061
|
-
...asset,
|
|
1062
|
-
key: `tsr-scripts-${asset.tag}-${i}`
|
|
1063
|
-
})) });
|
|
1064
|
-
}
|
|
1065
741
|
var noop = () => {
|
|
1066
742
|
};
|
|
1067
743
|
async function waitForReadyOrAbort(ready, signal) {
|
|
@@ -1164,13 +840,9 @@ var renderRouterToStream = async ({ request, router, responseHeaders, children }
|
|
|
1164
840
|
throw new Error("No renderToReadableStream or renderToPipeableStream found in react-dom/server. Ensure you are using a version of react-dom that supports streaming.");
|
|
1165
841
|
};
|
|
1166
842
|
export {
|
|
1167
|
-
HeadContent as H,
|
|
1168
|
-
Outlet as O,
|
|
1169
843
|
RouterProvider as R,
|
|
1170
|
-
Scripts as S,
|
|
1171
844
|
createRootRoute as a,
|
|
1172
845
|
createFileRoute as b,
|
|
1173
846
|
createRouter as c,
|
|
1174
|
-
lazyRouteComponent as l,
|
|
1175
847
|
renderRouterToStream as r
|
|
1176
848
|
};
|