@tonyclaw/agent-inspector 3.0.45 → 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 +2326 -516
- package/.output/server/_libs/extend.mjs +4 -8
- package/.output/server/_libs/jszip.mjs +9 -35
- 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/_ssr/index.mjs +4 -4
- package/.output/server/_ssr/{publicBasePathContext-5264L3rX.mjs → publicBasePathContext-IH2ilOfu.mjs} +52 -24
- package/.output/server/_ssr/{router-BJ_ltLim.mjs → router-D18yUq36.mjs} +19770 -19447
- package/.output/server/_ssr/{start-C6MjPjxp.mjs → start-COQu_AgD.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-DnbdNeun.mjs +4 -0
- package/.output/server/index.mjs +5 -145
- package/.output/{public/assets/CompareDrawer-B3_TLTJh.js → ui/assets/CompareDrawer-DAUuIJ6G.js} +1 -1
- package/.output/{public/assets/InspectorPet-Cpn6hv4P.js → ui/assets/InspectorPet-BRBVjOWI.js} +1 -1
- package/.output/ui/assets/ProxyViewerContainer-D7Sq0ctc.js +59 -0
- package/.output/{public/assets/ReplayDialog-B3EKVdJk.js → ui/assets/ReplayDialog-nDLsjOhs.js} +1 -1
- package/.output/{public/assets/RequestAnatomy-COOQjyUC.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-zbgYl7ZJ.js → ui/assets/_sessionId-BAfzrhSU.js} +1 -1
- package/.output/{public/assets/_sessionId-BJlM3nmt.js → ui/assets/_sessionId-QnBomgPD.js} +1 -1
- package/.output/ui/assets/favicon-DYEkHSNl.svg +21 -0
- package/.output/{public/assets/index-BIK4bPTv.js → ui/assets/index-BcsdxBAd.js} +1 -1
- package/.output/ui/assets/index-BvXp42al.css +1 -0
- package/.output/{public/assets/index-D2Qw6Ri2.js → ui/assets/index-D0rtCN9V.js} +1 -1
- package/.output/ui/assets/index-DHpwr08Z.js +73 -0
- package/.output/{public/assets/index-xF_NY8Yb.js → ui/assets/index-dNuk2dsU.js} +5 -5
- package/.output/ui/assets/json-viewer-BvFHglMb.js +1 -0
- package/.output/{public/assets/jszip.min-B_rfAUCe.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 +979 -414
- package/.output/workers/sessionWorkerEntry.js +979 -414
- package/README.md +175 -43
- package/docs/instance-control.openapi.yaml +59 -4
- package/package.json +25 -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/{routes → backend/routes}/api/-instances.ts +3 -3
- 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/{routes → backend/routes}/api/instances.$name.connection.ts +1 -1
- package/src/{routes → backend/routes}/api/instances.$name.restart.ts +2 -2
- package/src/{routes → backend/routes}/api/instances.$name.start.ts +2 -2
- package/src/{routes → backend/routes}/api/instances.$name.stop.ts +2 -2
- package/src/{routes → backend/routes}/api/instances.$name.ts +1 -1
- package/src/{routes → backend/routes}/api/instances.ts +1 -1
- 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/{start.ts → backend/start.ts} +1 -1
- package/src/cli/alias.ts +2 -11
- package/src/cli/doctor.ts +32 -9
- package/src/cli/instance.ts +26 -13
- package/src/cli/instanceArgs.ts +30 -11
- package/src/cli/instanceControl.ts +0 -2
- package/src/cli/instanceModel.ts +9 -17
- package/src/cli/instanceRegistry.ts +0 -9
- package/src/cli/networkHints.ts +27 -14
- package/src/cli/onboard.ts +69 -2
- package/src/cli/onboardTarget.ts +89 -40
- package/src/cli/templates/codex-skill-onboard.ts +44 -14
- package/src/cli/templates/skill-onboard.ts +64 -28
- package/src/cli.ts +184 -61
- package/src/components/ProxyViewer.tsx +11 -9
- 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 +159 -144
- 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 +29 -11
- 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 +38 -0
- package/src/lib/instanceContract.ts +27 -11
- package/src/lib/piAgentContract.ts +3 -2
- package/src/lib/publicBasePathContext.ts +40 -10
- 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 +1 -0
- package/src/mcp/server.ts +19 -24
- 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 +419 -39
- 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 +11 -1
- package/src/proxy/schemas.ts +7 -1
- package/src/proxy/sessionArchive.ts +78 -14
- 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-BEAhuGOJ.js +0 -126
- package/.output/public/assets/ResponseView-DBCjkwye.js +0 -2
- package/.output/public/assets/StreamingChunkSequence-CuXhDgMo.js +0 -1
- package/.output/public/assets/index-BZo_8koU.js +0 -70
- package/.output/public/assets/index-ZWschkCh.css +0 -1
- package/.output/public/assets/json-viewer-B-Ao6pwW.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-CJ99gZFV.mjs +0 -84
- package/.output/server/_sessionId-DEjScBpK.mjs +0 -146
- package/.output/server/_ssr/CompareDrawer-DtOIMeQB.mjs +0 -1060
- package/.output/server/_ssr/InspectorPet-CXc4oCBQ.mjs +0 -938
- package/.output/server/_ssr/ProxyViewerContainer-DVPlwfkt.mjs +0 -17632
- package/.output/server/_ssr/ReplayDialog-BQEA95qC.mjs +0 -725
- package/.output/server/_ssr/RequestAnatomy-BMyd8B7Q.mjs +0 -837
- package/.output/server/_ssr/ResponseView-qrTaEIM8.mjs +0 -757
- package/.output/server/_ssr/StreamingChunkSequence-BFTL8mIy.mjs +0 -274
- package/.output/server/_ssr/index-Bcj1Hcy4.mjs +0 -135
- package/.output/server/_ssr/index-DW-M7XUG.mjs +0 -84
- package/.output/server/_ssr/json-viewer-DiI0Yjsn.mjs +0 -483
- package/.output/server/_tanstack-start-manifest_v-C6pXXX9R.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
|
};
|
|
@@ -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
|
};
|