rivet-design 0.23.1 → 0.25.0
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/dist/agent-variants/SessionStore.d.ts +6 -0
- package/dist/agent-variants/SessionStore.js +21 -4
- package/dist/agent-variants/WorkerExecutorService.js +37 -10
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +5 -35
- package/dist/agent-variants/WorktreeOrchestrator.js +16 -18
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +1 -0
- package/dist/agent-variants/contracts.d.ts +290 -308
- package/dist/agent-variants/contracts.js +1 -7
- package/dist/agent-variants/designContext.d.ts +9 -0
- package/dist/agent-variants/designContext.js +81 -0
- package/dist/agent-variants/staticPreviewRefinements.d.ts +2 -0
- package/dist/agent-variants/staticPreviewRefinements.js +3 -0
- package/dist/agent-variants/variant-start-types.d.ts +38 -0
- package/dist/agent-variants/variant-start-types.js +3 -0
- package/dist/agent-variants/videoKeyframes.js +3 -2
- package/dist/agent-variants/workItemBriefing.d.ts +1 -0
- package/dist/agent-variants/workItemBriefing.js +20 -6
- package/dist/agent-variants/workItemInput.d.ts +196 -186
- package/dist/agent-variants/workItemInput.js +1 -0
- package/dist/agent-variants/workerRuntime.d.ts +8 -1
- package/dist/agent-variants/workerRuntime.js +59 -40
- package/dist/cli/browser.d.ts +4 -2
- package/dist/cli/browser.js +7 -5
- package/dist/cli/browserSignIn.d.ts +15 -0
- package/dist/cli/browserSignIn.js +54 -0
- package/dist/cli/client.js +34 -3
- package/dist/cli/commands/context.js +10 -35
- package/dist/cli/commands/contextRequest.d.ts +1 -0
- package/dist/cli/commands/contextRequest.js +8 -1
- package/dist/cli/commands/contextVerification.d.ts +12 -0
- package/dist/cli/commands/contextVerification.js +48 -0
- package/dist/cli/commands/evidence.js +1 -1
- package/dist/cli/commands/guidanceReferences.d.ts +1 -1
- package/dist/cli/commands/libraryOpen.d.ts +2 -0
- package/dist/cli/commands/libraryOpen.js +18 -4
- package/dist/cli/commands/mcpServe.d.ts +1 -3
- package/dist/cli/commands/mcpServe.js +21 -744
- package/dist/cli/commands/open.d.ts +2 -1
- package/dist/cli/commands/open.js +9 -7
- package/dist/cli/commands/profile.js +2 -1
- package/dist/cli/commands/reference.js +1 -1
- package/dist/cli/commands/serve.js +0 -2
- package/dist/cli/commands/shared.js +5 -2
- package/dist/cli/commands/status.js +4 -1
- package/dist/cli/commands/variants.js +2 -1
- package/dist/cli/editorSession.d.ts +27 -0
- package/dist/cli/editorSession.js +50 -0
- package/dist/cli/entry.js +2 -0
- package/dist/cli/envelope.d.ts +3 -0
- package/dist/cli/envelope.js +13 -13
- package/dist/cli/hostWorkNextAction.d.ts +3 -5
- package/dist/cli/hostWorkNextAction.js +7 -23
- package/dist/cli/router.js +4 -2
- package/dist/cli/serverHandshake.d.ts +1 -0
- package/dist/cli/serverUnavailable.d.ts +1 -1
- package/dist/cli/serverUnavailable.js +1 -0
- package/dist/cli/telemetry.js +4 -2
- package/dist/config/flags.d.ts +3 -3
- package/dist/config/flags.js +1 -1
- package/dist/config/pluginMetrics.d.ts +2 -0
- package/dist/config/pluginMetrics.js +234 -0
- package/dist/config/telemetryPolicy.d.ts +8 -0
- package/dist/config/telemetryPolicy.js +25 -0
- package/dist/index-core.d.ts +0 -1
- package/dist/index-core.js +1 -3
- package/dist/index.js +12 -17
- package/dist/install/allowlists.js +6 -1
- package/dist/install/automaticCliUpdate.js +9 -2
- package/dist/install/channelCli.js +2 -1
- package/dist/install/channelManager.js +11 -6
- package/dist/install/globalBootstrap.js +5 -1
- package/dist/install/harnesses.js +1 -1
- package/dist/install/mcpRegistration.js +7 -4
- package/dist/library/HubClient.js +25 -5
- package/dist/mcp/designContextTools.d.ts +3 -0
- package/dist/mcp/designContextTools.js +44 -0
- package/dist/mcp/explorationSchema.d.ts +56 -0
- package/dist/mcp/explorationSchema.js +123 -0
- package/dist/mcp/explorationTools.d.ts +3 -0
- package/dist/mcp/explorationTools.js +117 -0
- package/dist/mcp/getExploration.d.ts +13 -0
- package/dist/mcp/getExploration.js +130 -0
- package/dist/mcp/intentTool.d.ts +60 -0
- package/dist/mcp/intentTool.js +57 -0
- package/dist/mcp/preferenceTools.d.ts +3 -0
- package/dist/mcp/preferenceTools.js +164 -0
- package/dist/mcp/profileAccess.d.ts +4 -0
- package/dist/mcp/profileAccess.js +31 -0
- package/dist/mcp/referenceTools.d.ts +3 -0
- package/dist/mcp/referenceTools.js +128 -0
- package/dist/prototype-host.js +44 -2
- package/dist/proxy-middleware/preview-bridge.d.ts +0 -1
- package/dist/proxy-middleware/preview-bridge.js +31 -3
- package/dist/routes/agentVariants.js +10 -103
- package/dist/routes/editorAccess.d.ts +4 -0
- package/dist/routes/editorAccess.js +42 -0
- package/dist/routes/library/app.js +2 -0
- package/dist/routes/library/index.js +2 -0
- package/dist/routes/shareAvailability.d.ts +8 -0
- package/dist/routes/shareAvailability.js +25 -0
- package/dist/routes/telemetry.d.ts +4 -0
- package/dist/routes/telemetry.js +60 -0
- package/dist/routes/variantRequestSchema.d.ts +33 -4
- package/dist/routes/variantRequestSchema.js +13 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +231 -127
- package/dist/services/AuthService.js +8 -6
- package/dist/services/CliLogForwarder.js +2 -1
- package/dist/services/ConfigManager.d.ts +7 -0
- package/dist/services/ConfigManager.js +31 -24
- package/dist/services/DependencyPreparationService.js +2 -1
- package/dist/services/FeatureFlagService.js +13 -2
- package/dist/services/GuidanceVerifierRunner.d.ts +0 -1
- package/dist/services/GuidanceVerifierRunner.js +11 -22
- package/dist/services/IntegrationsClient.d.ts +3 -3
- package/dist/services/OperatingSystemServices.d.ts +1 -0
- package/dist/services/OperatingSystemServices.js +3 -2
- package/dist/services/ProjectDetectionService.js +6 -4
- package/dist/services/ProjectFolderPicker.js +2 -0
- package/dist/services/ProjectLibrary.d.ts +2 -0
- package/dist/services/ProjectLibrary.js +16 -6
- package/dist/services/ProjectRegistry.d.ts +3 -2
- package/dist/services/ProjectRegistry.js +4 -0
- package/dist/services/PrototypeBuildService.js +2 -1
- package/dist/services/StaticPreviewServer.js +2 -1
- package/dist/services/TelemetryService.d.ts +3 -1
- package/dist/services/TelemetryService.js +60 -21
- package/dist/services/TreeStore.js +7 -2
- package/dist/services/VariantGenerationService.js +6 -7
- package/dist/services/VariantHistoryService.js +3 -1
- package/dist/services/VariantRunService.js +10 -6
- package/dist/services/WorktreeManager.js +9 -1
- package/dist/services/createAgentVariantsOrchestrator.js +1 -0
- package/dist/services/packageManagerProcess.js +3 -0
- package/dist/services/profiles/DesignProfiles.d.ts +286 -66
- package/dist/services/profiles/DesignProfiles.js +346 -91
- package/dist/services/profiles/MemoryRuntime.js +4 -6
- package/dist/services/profiles/ProfileAgent.js +4 -3
- package/dist/services/profiles/ProfileImports.d.ts +2 -2
- package/dist/services/profiles/ProfilePlanning.d.ts +4 -4
- package/dist/services/profiles/ProfilePreparation.js +1 -0
- package/dist/services/profiles/ProfileVariants.d.ts +1 -1
- package/dist/services/profiles/ProfileVariants.js +1 -1
- package/dist/services/profiles/ReferenceReader.d.ts +3 -3
- package/dist/services/profiles/profileContext.d.ts +1 -1
- package/dist/services/stopRuntimeProcess.js +2 -0
- package/dist/storage/library/BundleMetadataStore.d.ts +1 -0
- package/dist/storage/library/BundleMetadataStore.js +17 -0
- package/dist/storage/library/ProjectPreviewCache.d.ts +2 -2
- package/dist/storage/library/ProjectRecords.d.ts +1 -0
- package/dist/storage/library/ProjectRecords.js +7 -0
- package/dist/storage/library/database.d.ts +4 -0
- package/dist/storage/library/database.js +18 -1
- package/dist/storage/profiles/ProfilePlans.d.ts +19 -18
- package/dist/storage/profiles/ProfilePlans.js +5 -2
- package/dist/storage/profiles/ProfileRecords.d.ts +45 -14
- package/dist/storage/profiles/ProfileRecords.js +59 -4
- package/dist/storage/profiles/planSchema.d.ts +5 -5
- package/dist/storage/profiles/schema.d.ts +8 -8
- package/dist/types/cosmos-profile.d.ts +6 -6
- package/dist/types/cosmos.d.ts +10 -10
- package/dist/types/design-profile.d.ts +32 -32
- package/dist/types/guidance-references.d.ts +20 -20
- package/dist/types/guidance.d.ts +144 -144
- package/dist/types/preview-bridge.d.ts +4 -0
- package/dist/types/preview-bridge.js +6 -0
- package/dist/types/reference-connectors.d.ts +12 -12
- package/dist/types/reference-onboarding.d.ts +58 -58
- package/dist/types/reference-pages.d.ts +8 -8
- package/dist/types/variant-reference.d.ts +4 -4
- package/dist/types/x-bookmarks.d.ts +16 -16
- package/dist/utils/cloneOrCopyDirSync.js +2 -0
- package/dist/utils/editorAccess.d.ts +9 -0
- package/dist/utils/editorAccess.js +33 -0
- package/dist/utils/hostedLogPrivacy.d.ts +2 -0
- package/dist/utils/hostedLogPrivacy.js +29 -0
- package/dist/utils/hostedLogging.d.ts +2 -0
- package/dist/utils/hostedLogging.js +18 -0
- package/dist/utils/loginShellPath.js +2 -0
- package/dist/utils/skills/claude-skill.d.ts +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.js +57 -28
- package/dist/utils/skills/codex-skill.d.ts +1 -1
- package/dist/utils/skills/codex-skill.js +7 -3
- package/dist/utils/skills/cursor-rules.d.ts +1 -1
- package/dist/utils/skills/cursor-rules.js +1 -1
- package/dist/utils/subprocessEnvironment.d.ts +6 -0
- package/dist/utils/subprocessEnvironment.js +214 -0
- package/package.json +16 -5
- package/src/ui/dist/assets/{LibraryEntry-BUwOgHmJ.js → LibraryEntry-BJl_pPMq.js} +13 -12
- package/src/ui/dist/assets/main-D1832qVC.js +439 -0
- package/src/ui/dist/assets/main-W3oTuTTl.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/agent-variants/PreviewRuntime.d.ts.map +0 -1
- package/dist/agent-variants/PreviewRuntime.js.map +0 -1
- package/dist/agent-variants/SessionStore.d.ts.map +0 -1
- package/dist/agent-variants/SessionStore.js.map +0 -1
- package/dist/agent-variants/VariantWorkspaceManager.d.ts.map +0 -1
- package/dist/agent-variants/VariantWorkspaceManager.js.map +0 -1
- package/dist/agent-variants/WorkerExecutorService.d.ts.map +0 -1
- package/dist/agent-variants/WorkerExecutorService.js.map +0 -1
- package/dist/agent-variants/WorkspaceInventory.d.ts.map +0 -1
- package/dist/agent-variants/WorkspaceInventory.js.map +0 -1
- package/dist/agent-variants/WorkspaceProvisioning.d.ts.map +0 -1
- package/dist/agent-variants/WorkspaceProvisioning.js.map +0 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +0 -1
- package/dist/agent-variants/WorktreeOrchestrator.js.map +0 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +0 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +0 -1
- package/dist/agent-variants/briefContent.d.ts.map +0 -1
- package/dist/agent-variants/briefContent.js.map +0 -1
- package/dist/agent-variants/contextAssets.d.ts.map +0 -1
- package/dist/agent-variants/contextAssets.js.map +0 -1
- package/dist/agent-variants/contracts.d.ts.map +0 -1
- package/dist/agent-variants/contracts.js.map +0 -1
- package/dist/agent-variants/createProjectArtifacts.d.ts.map +0 -1
- package/dist/agent-variants/createProjectArtifacts.js.map +0 -1
- package/dist/agent-variants/designContextArtifacts.d.ts +0 -25
- package/dist/agent-variants/designContextArtifacts.d.ts.map +0 -1
- package/dist/agent-variants/designContextArtifacts.js +0 -471
- package/dist/agent-variants/designContextArtifacts.js.map +0 -1
- package/dist/agent-variants/diffQa.d.ts.map +0 -1
- package/dist/agent-variants/diffQa.js.map +0 -1
- package/dist/agent-variants/directionBriefs.d.ts.map +0 -1
- package/dist/agent-variants/directionBriefs.js.map +0 -1
- package/dist/agent-variants/errors.d.ts.map +0 -1
- package/dist/agent-variants/errors.js.map +0 -1
- package/dist/agent-variants/generatedDestination.d.ts.map +0 -1
- package/dist/agent-variants/generatedDestination.js.map +0 -1
- package/dist/agent-variants/generationCapacity.d.ts.map +0 -1
- package/dist/agent-variants/generationCapacity.js.map +0 -1
- package/dist/agent-variants/guidancePrompt.d.ts.map +0 -1
- package/dist/agent-variants/guidancePrompt.js.map +0 -1
- package/dist/agent-variants/index.d.ts.map +0 -1
- package/dist/agent-variants/index.js.map +0 -1
- package/dist/agent-variants/previewQa.d.ts.map +0 -1
- package/dist/agent-variants/previewQa.js.map +0 -1
- package/dist/agent-variants/runLabel.d.ts.map +0 -1
- package/dist/agent-variants/runLabel.js.map +0 -1
- package/dist/agent-variants/runPlan.d.ts.map +0 -1
- package/dist/agent-variants/runPlan.js.map +0 -1
- package/dist/agent-variants/sourceContext.d.ts.map +0 -1
- package/dist/agent-variants/sourceContext.js.map +0 -1
- package/dist/agent-variants/staticPreviewFiles.d.ts.map +0 -1
- package/dist/agent-variants/staticPreviewFiles.js.map +0 -1
- package/dist/agent-variants/staticPreviewRefinements.d.ts.map +0 -1
- package/dist/agent-variants/staticPreviewRefinements.js.map +0 -1
- package/dist/agent-variants/variant-project-runtime.d.ts.map +0 -1
- package/dist/agent-variants/variant-project-runtime.js.map +0 -1
- package/dist/agent-variants/variantContext.d.ts.map +0 -1
- package/dist/agent-variants/variantContext.js.map +0 -1
- package/dist/agent-variants/variantWorkspaceFiles.d.ts.map +0 -1
- package/dist/agent-variants/variantWorkspaceFiles.js.map +0 -1
- package/dist/agent-variants/variantsTelemetry.d.ts.map +0 -1
- package/dist/agent-variants/variantsTelemetry.js.map +0 -1
- package/dist/agent-variants/videoKeyframes.d.ts.map +0 -1
- package/dist/agent-variants/videoKeyframes.js.map +0 -1
- package/dist/agent-variants/workItemBriefing.d.ts.map +0 -1
- package/dist/agent-variants/workItemBriefing.js.map +0 -1
- package/dist/agent-variants/workItemContextFiles.d.ts.map +0 -1
- package/dist/agent-variants/workItemContextFiles.js.map +0 -1
- package/dist/agent-variants/workItemInput.d.ts.map +0 -1
- package/dist/agent-variants/workItemInput.js.map +0 -1
- package/dist/agent-variants/workItemPreviewRoutes.d.ts.map +0 -1
- package/dist/agent-variants/workItemPreviewRoutes.js.map +0 -1
- package/dist/agent-variants/workerRuntime.d.ts.map +0 -1
- package/dist/agent-variants/workerRuntime.js.map +0 -1
- package/dist/cli/browser.d.ts.map +0 -1
- package/dist/cli/browser.js.map +0 -1
- package/dist/cli/callerModel.d.ts.map +0 -1
- package/dist/cli/callerModel.js.map +0 -1
- package/dist/cli/callerRunnerPaths.d.ts.map +0 -1
- package/dist/cli/callerRunnerPaths.js.map +0 -1
- package/dist/cli/client.d.ts.map +0 -1
- package/dist/cli/client.js.map +0 -1
- package/dist/cli/commandNames.d.ts.map +0 -1
- package/dist/cli/commandNames.js.map +0 -1
- package/dist/cli/commands/auth.d.ts.map +0 -1
- package/dist/cli/commands/auth.js.map +0 -1
- package/dist/cli/commands/context.d.ts.map +0 -1
- package/dist/cli/commands/context.js.map +0 -1
- package/dist/cli/commands/contextRequest.d.ts.map +0 -1
- package/dist/cli/commands/contextRequest.js.map +0 -1
- package/dist/cli/commands/elementSelector.d.ts.map +0 -1
- package/dist/cli/commands/elementSelector.js.map +0 -1
- package/dist/cli/commands/evidence.d.ts.map +0 -1
- package/dist/cli/commands/evidence.js.map +0 -1
- package/dist/cli/commands/generationPreflight.d.ts.map +0 -1
- package/dist/cli/commands/generationPreflight.js.map +0 -1
- package/dist/cli/commands/guidanceReferences.d.ts.map +0 -1
- package/dist/cli/commands/guidanceReferences.js.map +0 -1
- package/dist/cli/commands/guidanceUpload.d.ts.map +0 -1
- package/dist/cli/commands/guidanceUpload.js.map +0 -1
- package/dist/cli/commands/guidanceVerifierPackage.d.ts.map +0 -1
- package/dist/cli/commands/guidanceVerifierPackage.js.map +0 -1
- package/dist/cli/commands/libraryOpen.d.ts.map +0 -1
- package/dist/cli/commands/libraryOpen.js.map +0 -1
- package/dist/cli/commands/mcpServe.d.ts.map +0 -1
- package/dist/cli/commands/mcpServe.js.map +0 -1
- package/dist/cli/commands/open.d.ts.map +0 -1
- package/dist/cli/commands/open.js.map +0 -1
- package/dist/cli/commands/profile.d.ts.map +0 -1
- package/dist/cli/commands/profile.js.map +0 -1
- package/dist/cli/commands/reference.d.ts.map +0 -1
- package/dist/cli/commands/reference.js.map +0 -1
- package/dist/cli/commands/serve.d.ts.map +0 -1
- package/dist/cli/commands/serve.js.map +0 -1
- package/dist/cli/commands/shared.d.ts.map +0 -1
- package/dist/cli/commands/shared.js.map +0 -1
- package/dist/cli/commands/status.d.ts.map +0 -1
- package/dist/cli/commands/status.js.map +0 -1
- package/dist/cli/commands/stop.d.ts.map +0 -1
- package/dist/cli/commands/stop.js.map +0 -1
- package/dist/cli/commands/update.d.ts.map +0 -1
- package/dist/cli/commands/update.js.map +0 -1
- package/dist/cli/commands/variants.d.ts.map +0 -1
- package/dist/cli/commands/variants.js.map +0 -1
- package/dist/cli/commands/version.d.ts.map +0 -1
- package/dist/cli/commands/version.js.map +0 -1
- package/dist/cli/commands/wait.d.ts.map +0 -1
- package/dist/cli/commands/wait.js.map +0 -1
- package/dist/cli/entry.d.ts.map +0 -1
- package/dist/cli/entry.js.map +0 -1
- package/dist/cli/envelope.d.ts.map +0 -1
- package/dist/cli/envelope.js.map +0 -1
- package/dist/cli/flags.d.ts.map +0 -1
- package/dist/cli/flags.js.map +0 -1
- package/dist/cli/guidance.d.ts.map +0 -1
- package/dist/cli/guidance.js.map +0 -1
- package/dist/cli/handoff.d.ts.map +0 -1
- package/dist/cli/handoff.js.map +0 -1
- package/dist/cli/handoffStore.d.ts.map +0 -1
- package/dist/cli/handoffStore.js.map +0 -1
- package/dist/cli/hostWorkNextAction.d.ts.map +0 -1
- package/dist/cli/hostWorkNextAction.js.map +0 -1
- package/dist/cli/io.d.ts.map +0 -1
- package/dist/cli/io.js.map +0 -1
- package/dist/cli/projectRuntimeUpgrade.d.ts.map +0 -1
- package/dist/cli/projectRuntimeUpgrade.js.map +0 -1
- package/dist/cli/referenceOnboarding.d.ts.map +0 -1
- package/dist/cli/referenceOnboarding.js.map +0 -1
- package/dist/cli/resolveDefaultNodeEnv.d.ts.map +0 -1
- package/dist/cli/resolveDefaultNodeEnv.js.map +0 -1
- package/dist/cli/router.d.ts.map +0 -1
- package/dist/cli/router.js.map +0 -1
- package/dist/cli/runnerSelection.d.ts.map +0 -1
- package/dist/cli/runnerSelection.js.map +0 -1
- package/dist/cli/runtimeInterruption.d.ts.map +0 -1
- package/dist/cli/runtimeInterruption.js.map +0 -1
- package/dist/cli/serverHandshake.d.ts.map +0 -1
- package/dist/cli/serverHandshake.js.map +0 -1
- package/dist/cli/serverShutdown.d.ts.map +0 -1
- package/dist/cli/serverShutdown.js.map +0 -1
- package/dist/cli/serverUnavailable.d.ts.map +0 -1
- package/dist/cli/serverUnavailable.js.map +0 -1
- package/dist/cli/serverVersion.d.ts.map +0 -1
- package/dist/cli/serverVersion.js.map +0 -1
- package/dist/cli/synchronizeRuntimes.d.ts.map +0 -1
- package/dist/cli/synchronizeRuntimes.js.map +0 -1
- package/dist/cli/telemetry.d.ts.map +0 -1
- package/dist/cli/telemetry.js.map +0 -1
- package/dist/config/evaluateFlags.d.ts.map +0 -1
- package/dist/config/evaluateFlags.js.map +0 -1
- package/dist/config/featureFlagUserKey.d.ts.map +0 -1
- package/dist/config/featureFlagUserKey.js.map +0 -1
- package/dist/config/flags.d.ts.map +0 -1
- package/dist/config/flags.js.map +0 -1
- package/dist/config/proxy.d.ts.map +0 -1
- package/dist/config/proxy.js.map +0 -1
- package/dist/config/telemetry.d.ts.map +0 -1
- package/dist/config/telemetry.js.map +0 -1
- package/dist/config/telemetryContract.d.ts.map +0 -1
- package/dist/config/telemetryContract.js.map +0 -1
- package/dist/hosts/pluginContext.d.ts.map +0 -1
- package/dist/hosts/pluginContext.js.map +0 -1
- package/dist/hosts/workerDefaults.d.ts.map +0 -1
- package/dist/hosts/workerDefaults.js.map +0 -1
- package/dist/index-core.d.ts.map +0 -1
- package/dist/index-core.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/install/agentSkill.d.ts.map +0 -1
- package/dist/install/agentSkill.js.map +0 -1
- package/dist/install/allowlists.d.ts.map +0 -1
- package/dist/install/allowlists.js.map +0 -1
- package/dist/install/automaticCliUpdate.d.ts.map +0 -1
- package/dist/install/automaticCliUpdate.js.map +0 -1
- package/dist/install/channelCli.d.ts.map +0 -1
- package/dist/install/channelCli.js.map +0 -1
- package/dist/install/channelManager.d.ts.map +0 -1
- package/dist/install/channelManager.js.map +0 -1
- package/dist/install/codexGuidance.d.ts.map +0 -1
- package/dist/install/codexGuidance.js.map +0 -1
- package/dist/install/codexSkill.d.ts.map +0 -1
- package/dist/install/codexSkill.js.map +0 -1
- package/dist/install/cursorSkill.d.ts.map +0 -1
- package/dist/install/cursorSkill.js.map +0 -1
- package/dist/install/globalBootstrap.d.ts.map +0 -1
- package/dist/install/globalBootstrap.js.map +0 -1
- package/dist/install/harnesses.d.ts.map +0 -1
- package/dist/install/harnesses.js.map +0 -1
- package/dist/install/installationChannel.d.ts.map +0 -1
- package/dist/install/installationChannel.js.map +0 -1
- package/dist/install/legacyMcp.d.ts.map +0 -1
- package/dist/install/legacyMcp.js.map +0 -1
- package/dist/install/mcpRegistration.d.ts.map +0 -1
- package/dist/install/mcpRegistration.js.map +0 -1
- package/dist/library/BrowserSessions.d.ts.map +0 -1
- package/dist/library/BrowserSessions.js.map +0 -1
- package/dist/library/HubClient.d.ts.map +0 -1
- package/dist/library/HubClient.js.map +0 -1
- package/dist/library/HubServer.d.ts.map +0 -1
- package/dist/library/HubServer.js.map +0 -1
- package/dist/library/StaticPreviewServer.d.ts.map +0 -1
- package/dist/library/StaticPreviewServer.js.map +0 -1
- package/dist/library/browserLaunch.d.ts.map +0 -1
- package/dist/library/browserLaunch.js.map +0 -1
- package/dist/library/http.d.ts.map +0 -1
- package/dist/library/http.js.map +0 -1
- package/dist/library/hubPort.d.ts.map +0 -1
- package/dist/library/hubPort.js.map +0 -1
- package/dist/library/importFiles.d.ts.map +0 -1
- package/dist/library/importFiles.js.map +0 -1
- package/dist/mcp/changeBatchClassification.d.ts.map +0 -1
- package/dist/mcp/changeBatchClassification.js.map +0 -1
- package/dist/prototype-host.d.ts.map +0 -1
- package/dist/prototype-host.js.map +0 -1
- package/dist/proxy-middleware/preview-bridge.d.ts.map +0 -1
- package/dist/proxy-middleware/preview-bridge.js.map +0 -1
- package/dist/proxy-middleware/preview-connections.d.ts.map +0 -1
- package/dist/proxy-middleware/preview-connections.js.map +0 -1
- package/dist/proxy-middleware/proxy-config.d.ts.map +0 -1
- package/dist/proxy-middleware/proxy-config.js.map +0 -1
- package/dist/routes/account.d.ts.map +0 -1
- package/dist/routes/account.js.map +0 -1
- package/dist/routes/agentVariants.d.ts.map +0 -1
- package/dist/routes/agentVariants.js.map +0 -1
- package/dist/routes/cli.d.ts.map +0 -1
- package/dist/routes/cli.js.map +0 -1
- package/dist/routes/emptyStatePage.d.ts.map +0 -1
- package/dist/routes/emptyStatePage.js.map +0 -1
- package/dist/routes/git.d.ts +0 -5
- package/dist/routes/git.d.ts.map +0 -1
- package/dist/routes/git.js +0 -261
- package/dist/routes/git.js.map +0 -1
- package/dist/routes/inlineStartTracker.d.ts.map +0 -1
- package/dist/routes/inlineStartTracker.js.map +0 -1
- package/dist/routes/installRef.d.ts.map +0 -1
- package/dist/routes/installRef.js.map +0 -1
- package/dist/routes/integrations.d.ts.map +0 -1
- package/dist/routes/integrations.js.map +0 -1
- package/dist/routes/library/app.d.ts.map +0 -1
- package/dist/routes/library/app.js.map +0 -1
- package/dist/routes/library/browserAccess.d.ts.map +0 -1
- package/dist/routes/library/browserAccess.js.map +0 -1
- package/dist/routes/library/guidance.d.ts.map +0 -1
- package/dist/routes/library/guidance.js.map +0 -1
- package/dist/routes/library/index.d.ts.map +0 -1
- package/dist/routes/library/index.js.map +0 -1
- package/dist/routes/library/middleware.d.ts.map +0 -1
- package/dist/routes/library/middleware.js.map +0 -1
- package/dist/routes/library/navigation.d.ts.map +0 -1
- package/dist/routes/library/navigation.js.map +0 -1
- package/dist/routes/library/profiles.d.ts.map +0 -1
- package/dist/routes/library/profiles.js.map +0 -1
- package/dist/routes/library/projects.d.ts.map +0 -1
- package/dist/routes/library/projects.js.map +0 -1
- package/dist/routes/library/referenceOnboarding.d.ts.map +0 -1
- package/dist/routes/library/referenceOnboarding.js.map +0 -1
- package/dist/routes/library/schemas.d.ts.map +0 -1
- package/dist/routes/library/schemas.js.map +0 -1
- package/dist/routes/library/staticPreview.d.ts.map +0 -1
- package/dist/routes/library/staticPreview.js.map +0 -1
- package/dist/routes/library/types.d.ts.map +0 -1
- package/dist/routes/library/types.js.map +0 -1
- package/dist/routes/library/variants.d.ts.map +0 -1
- package/dist/routes/library/variants.js.map +0 -1
- package/dist/routes/mcp.d.ts.map +0 -1
- package/dist/routes/mcp.js.map +0 -1
- package/dist/routes/prototypeHost.d.ts.map +0 -1
- package/dist/routes/prototypeHost.js.map +0 -1
- package/dist/routes/referenceProfiles.d.ts.map +0 -1
- package/dist/routes/referenceProfiles.js.map +0 -1
- package/dist/routes/runtimeAdmission.d.ts.map +0 -1
- package/dist/routes/runtimeAdmission.js.map +0 -1
- package/dist/routes/static.d.ts.map +0 -1
- package/dist/routes/static.js.map +0 -1
- package/dist/routes/staticPreviewPolicy.d.ts.map +0 -1
- package/dist/routes/staticPreviewPolicy.js.map +0 -1
- package/dist/routes/support.d.ts.map +0 -1
- package/dist/routes/support.js.map +0 -1
- package/dist/routes/variantRequestSchema.d.ts.map +0 -1
- package/dist/routes/variantRequestSchema.js.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/services/AuthService.d.ts.map +0 -1
- package/dist/services/AuthService.js.map +0 -1
- package/dist/services/BrowserAgentClient.d.ts.map +0 -1
- package/dist/services/BrowserAgentClient.js.map +0 -1
- package/dist/services/BundleStore.d.ts.map +0 -1
- package/dist/services/BundleStore.js.map +0 -1
- package/dist/services/CliLogForwarder.d.ts.map +0 -1
- package/dist/services/CliLogForwarder.js.map +0 -1
- package/dist/services/CommitMessageGenerator.d.ts +0 -7
- package/dist/services/CommitMessageGenerator.d.ts.map +0 -1
- package/dist/services/CommitMessageGenerator.js +0 -16
- package/dist/services/CommitMessageGenerator.js.map +0 -1
- package/dist/services/ConfigManager.d.ts.map +0 -1
- package/dist/services/ConfigManager.js.map +0 -1
- package/dist/services/DependencyPreparationService.d.ts.map +0 -1
- package/dist/services/DependencyPreparationService.js.map +0 -1
- package/dist/services/DevServerRuntimeService.d.ts.map +0 -1
- package/dist/services/DevServerRuntimeService.js.map +0 -1
- package/dist/services/FeatureFlagService.d.ts.map +0 -1
- package/dist/services/FeatureFlagService.js.map +0 -1
- package/dist/services/GuidanceVerifierRunner.d.ts.map +0 -1
- package/dist/services/GuidanceVerifierRunner.js.map +0 -1
- package/dist/services/HistoryReplayService.d.ts.map +0 -1
- package/dist/services/HistoryReplayService.js.map +0 -1
- package/dist/services/HubDiscovery.d.ts.map +0 -1
- package/dist/services/HubDiscovery.js.map +0 -1
- package/dist/services/HubNavigation.d.ts.map +0 -1
- package/dist/services/HubNavigation.js.map +0 -1
- package/dist/services/IntegrationsClient.d.ts.map +0 -1
- package/dist/services/IntegrationsClient.js.map +0 -1
- package/dist/services/LocalGitService.d.ts +0 -61
- package/dist/services/LocalGitService.d.ts.map +0 -1
- package/dist/services/LocalGitService.js +0 -561
- package/dist/services/LocalGitService.js.map +0 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +0 -1
- package/dist/services/MCPOnboardingTelemetry.js.map +0 -1
- package/dist/services/MCPVariantsTelemetry.d.ts.map +0 -1
- package/dist/services/MCPVariantsTelemetry.js.map +0 -1
- package/dist/services/OperatingSystemServices.d.ts.map +0 -1
- package/dist/services/OperatingSystemServices.js.map +0 -1
- package/dist/services/PRTitleGenerator.d.ts +0 -9
- package/dist/services/PRTitleGenerator.d.ts.map +0 -1
- package/dist/services/PRTitleGenerator.js +0 -36
- package/dist/services/PRTitleGenerator.js.map +0 -1
- package/dist/services/PreviewEnvironment.d.ts.map +0 -1
- package/dist/services/PreviewEnvironment.js.map +0 -1
- package/dist/services/ProjectCardPreviews.d.ts.map +0 -1
- package/dist/services/ProjectCardPreviews.js.map +0 -1
- package/dist/services/ProjectDetectionService.d.ts.map +0 -1
- package/dist/services/ProjectDetectionService.js.map +0 -1
- package/dist/services/ProjectFolderPicker.d.ts.map +0 -1
- package/dist/services/ProjectFolderPicker.js.map +0 -1
- package/dist/services/ProjectImport.d.ts.map +0 -1
- package/dist/services/ProjectImport.js.map +0 -1
- package/dist/services/ProjectLibrary.d.ts.map +0 -1
- package/dist/services/ProjectLibrary.js.map +0 -1
- package/dist/services/ProjectMetadataStore.d.ts.map +0 -1
- package/dist/services/ProjectMetadataStore.js.map +0 -1
- package/dist/services/ProjectPackageManager.d.ts.map +0 -1
- package/dist/services/ProjectPackageManager.js.map +0 -1
- package/dist/services/ProjectRegistry.d.ts.map +0 -1
- package/dist/services/ProjectRegistry.js.map +0 -1
- package/dist/services/ProjectRuntimeService.d.ts.map +0 -1
- package/dist/services/ProjectRuntimeService.js.map +0 -1
- package/dist/services/ProjectScreenshotService.d.ts.map +0 -1
- package/dist/services/ProjectScreenshotService.js.map +0 -1
- package/dist/services/ProjectStorage.d.ts.map +0 -1
- package/dist/services/ProjectStorage.js.map +0 -1
- package/dist/services/PrototypeBuildService.d.ts.map +0 -1
- package/dist/services/PrototypeBuildService.js.map +0 -1
- package/dist/services/PrototypeDeployService.d.ts.map +0 -1
- package/dist/services/PrototypeDeployService.js.map +0 -1
- package/dist/services/RequestAuthContext.d.ts.map +0 -1
- package/dist/services/RequestAuthContext.js.map +0 -1
- package/dist/services/RuntimeAdmission.d.ts.map +0 -1
- package/dist/services/RuntimeAdmission.js.map +0 -1
- package/dist/services/SessionBridgeService.d.ts.map +0 -1
- package/dist/services/SessionBridgeService.js.map +0 -1
- package/dist/services/SessionService.d.ts +0 -38
- package/dist/services/SessionService.d.ts.map +0 -1
- package/dist/services/SessionService.js +0 -189
- package/dist/services/SessionService.js.map +0 -1
- package/dist/services/StaticFileService.d.ts.map +0 -1
- package/dist/services/StaticFileService.js.map +0 -1
- package/dist/services/StaticLibraryPreviews.d.ts.map +0 -1
- package/dist/services/StaticLibraryPreviews.js.map +0 -1
- package/dist/services/StaticPreviewServer.d.ts.map +0 -1
- package/dist/services/StaticPreviewServer.js.map +0 -1
- package/dist/services/SupabaseAuthService.d.ts.map +0 -1
- package/dist/services/SupabaseAuthService.js.map +0 -1
- package/dist/services/SupportTicketService.d.ts.map +0 -1
- package/dist/services/SupportTicketService.js.map +0 -1
- package/dist/services/TelemetryService.d.ts.map +0 -1
- package/dist/services/TelemetryService.js.map +0 -1
- package/dist/services/TreeStore.d.ts.map +0 -1
- package/dist/services/TreeStore.js.map +0 -1
- package/dist/services/VariantGenerationService.d.ts.map +0 -1
- package/dist/services/VariantGenerationService.js.map +0 -1
- package/dist/services/VariantHistoryService.d.ts.map +0 -1
- package/dist/services/VariantHistoryService.js.map +0 -1
- package/dist/services/VariantRunService.d.ts.map +0 -1
- package/dist/services/VariantRunService.js.map +0 -1
- package/dist/services/VariantsRuntime.d.ts.map +0 -1
- package/dist/services/VariantsRuntime.js.map +0 -1
- package/dist/services/WorktreeManager.d.ts.map +0 -1
- package/dist/services/WorktreeManager.js.map +0 -1
- package/dist/services/accessTokenRefresh.d.ts.map +0 -1
- package/dist/services/accessTokenRefresh.js.map +0 -1
- package/dist/services/authUpdate.d.ts.map +0 -1
- package/dist/services/authUpdate.js.map +0 -1
- package/dist/services/createAgentVariantsOrchestrator.d.ts.map +0 -1
- package/dist/services/createAgentVariantsOrchestrator.js.map +0 -1
- package/dist/services/generationGuidance.d.ts.map +0 -1
- package/dist/services/generationGuidance.js.map +0 -1
- package/dist/services/guidanceDelivery.d.ts.map +0 -1
- package/dist/services/guidanceDelivery.js.map +0 -1
- package/dist/services/guidanceImages.d.ts.map +0 -1
- package/dist/services/guidanceImages.js.map +0 -1
- package/dist/services/guidanceReferences.d.ts.map +0 -1
- package/dist/services/guidanceReferences.js.map +0 -1
- package/dist/services/historyRoots.d.ts.map +0 -1
- package/dist/services/historyRoots.js.map +0 -1
- package/dist/services/libraryErrors.d.ts.map +0 -1
- package/dist/services/libraryErrors.js.map +0 -1
- package/dist/services/packageManagerProcess.d.ts.map +0 -1
- package/dist/services/packageManagerProcess.js.map +0 -1
- package/dist/services/pendingLogin.d.ts.map +0 -1
- package/dist/services/pendingLogin.js.map +0 -1
- package/dist/services/profiles/DesignProfiles.d.ts.map +0 -1
- package/dist/services/profiles/DesignProfiles.js.map +0 -1
- package/dist/services/profiles/MemoryModelService.d.ts.map +0 -1
- package/dist/services/profiles/MemoryModelService.js.map +0 -1
- package/dist/services/profiles/MemoryRuntime.d.ts.map +0 -1
- package/dist/services/profiles/MemoryRuntime.js.map +0 -1
- package/dist/services/profiles/ProfileAgent.d.ts.map +0 -1
- package/dist/services/profiles/ProfileAgent.js.map +0 -1
- package/dist/services/profiles/ProfileAnalysis.d.ts.map +0 -1
- package/dist/services/profiles/ProfileAnalysis.js.map +0 -1
- package/dist/services/profiles/ProfileImportSchedule.d.ts.map +0 -1
- package/dist/services/profiles/ProfileImportSchedule.js.map +0 -1
- package/dist/services/profiles/ProfileImports.d.ts.map +0 -1
- package/dist/services/profiles/ProfileImports.js.map +0 -1
- package/dist/services/profiles/ProfileIndex.d.ts.map +0 -1
- package/dist/services/profiles/ProfileIndex.js.map +0 -1
- package/dist/services/profiles/ProfileMedia.d.ts.map +0 -1
- package/dist/services/profiles/ProfileMedia.js.map +0 -1
- package/dist/services/profiles/ProfilePlanning.d.ts.map +0 -1
- package/dist/services/profiles/ProfilePlanning.js.map +0 -1
- package/dist/services/profiles/ProfilePreparation.d.ts.map +0 -1
- package/dist/services/profiles/ProfilePreparation.js.map +0 -1
- package/dist/services/profiles/ProfileVariants.d.ts.map +0 -1
- package/dist/services/profiles/ProfileVariants.js.map +0 -1
- package/dist/services/profiles/ReferenceReader.d.ts.map +0 -1
- package/dist/services/profiles/ReferenceReader.js.map +0 -1
- package/dist/services/profiles/analysisBatch.d.ts.map +0 -1
- package/dist/services/profiles/analysisBatch.js.map +0 -1
- package/dist/services/profiles/boardPage.d.ts.map +0 -1
- package/dist/services/profiles/boardPage.js.map +0 -1
- package/dist/services/profiles/cosmosPage.d.ts.map +0 -1
- package/dist/services/profiles/cosmosPage.js.map +0 -1
- package/dist/services/profiles/engineAccess.d.ts.map +0 -1
- package/dist/services/profiles/engineAccess.js.map +0 -1
- package/dist/services/profiles/memoryComponents.d.ts.map +0 -1
- package/dist/services/profiles/memoryComponents.js.map +0 -1
- package/dist/services/profiles/modelContract.d.ts.map +0 -1
- package/dist/services/profiles/modelContract.js.map +0 -1
- package/dist/services/profiles/nativeImages.d.ts.map +0 -1
- package/dist/services/profiles/nativeImages.js.map +0 -1
- package/dist/services/profiles/profileAccount.d.ts.map +0 -1
- package/dist/services/profiles/profileAccount.js.map +0 -1
- package/dist/services/profiles/profileContext.d.ts.map +0 -1
- package/dist/services/profiles/profileContext.js.map +0 -1
- package/dist/services/profiles/profileEvidence.d.ts.map +0 -1
- package/dist/services/profiles/profileEvidence.js.map +0 -1
- package/dist/services/profiles/profileQueries.d.ts.map +0 -1
- package/dist/services/profiles/profileQueries.js.map +0 -1
- package/dist/services/profiles/profileSearch.d.ts.map +0 -1
- package/dist/services/profiles/profileSearch.js.map +0 -1
- package/dist/services/profiles/profileSelection.d.ts.map +0 -1
- package/dist/services/profiles/profileSelection.js.map +0 -1
- package/dist/services/profiles/selectionContext.d.ts.map +0 -1
- package/dist/services/profiles/selectionContext.js.map +0 -1
- package/dist/services/profiles/xPage.d.ts.map +0 -1
- package/dist/services/profiles/xPage.js.map +0 -1
- package/dist/services/referenceImages.d.ts.map +0 -1
- package/dist/services/referenceImages.js.map +0 -1
- package/dist/services/retainedTextFiles.d.ts.map +0 -1
- package/dist/services/retainedTextFiles.js.map +0 -1
- package/dist/services/runtimeActivity.d.ts.map +0 -1
- package/dist/services/runtimeActivity.js.map +0 -1
- package/dist/services/runtimeVersion.d.ts.map +0 -1
- package/dist/services/runtimeVersion.js.map +0 -1
- package/dist/services/staticProjectTarget.d.ts.map +0 -1
- package/dist/services/staticProjectTarget.js.map +0 -1
- package/dist/services/stopRuntimeProcess.d.ts.map +0 -1
- package/dist/services/stopRuntimeProcess.js.map +0 -1
- package/dist/services/templates/designCatalog.d.ts.map +0 -1
- package/dist/services/templates/designCatalog.js.map +0 -1
- package/dist/services/templates/viteReactTs.d.ts.map +0 -1
- package/dist/services/templates/viteReactTs.js.map +0 -1
- package/dist/storage/library/BrowserAuthorizationRecords.d.ts.map +0 -1
- package/dist/storage/library/BrowserAuthorizationRecords.js.map +0 -1
- package/dist/storage/library/BundleMetadataStore.d.ts.map +0 -1
- package/dist/storage/library/BundleMetadataStore.js.map +0 -1
- package/dist/storage/library/CoordinatorRecords.d.ts.map +0 -1
- package/dist/storage/library/CoordinatorRecords.js.map +0 -1
- package/dist/storage/library/ProjectPreviewCache.d.ts.map +0 -1
- package/dist/storage/library/ProjectPreviewCache.js.map +0 -1
- package/dist/storage/library/ProjectRecords.d.ts.map +0 -1
- package/dist/storage/library/ProjectRecords.js.map +0 -1
- package/dist/storage/library/ProjectRuntimeRecords.d.ts.map +0 -1
- package/dist/storage/library/ProjectRuntimeRecords.js.map +0 -1
- package/dist/storage/library/database.d.ts.map +0 -1
- package/dist/storage/library/database.js.map +0 -1
- package/dist/storage/library/migrations.d.ts.map +0 -1
- package/dist/storage/library/migrations.js.map +0 -1
- package/dist/storage/library/schema/browserAuthorization.d.ts.map +0 -1
- package/dist/storage/library/schema/browserAuthorization.js.map +0 -1
- package/dist/storage/library/schema/bundle.d.ts.map +0 -1
- package/dist/storage/library/schema/bundle.js.map +0 -1
- package/dist/storage/library/schema/coordinator.d.ts.map +0 -1
- package/dist/storage/library/schema/coordinator.js.map +0 -1
- package/dist/storage/library/schema/projectRuntime.d.ts.map +0 -1
- package/dist/storage/library/schema/projectRuntime.js.map +0 -1
- package/dist/storage/library/schema/registry.d.ts.map +0 -1
- package/dist/storage/library/schema/registry.js.map +0 -1
- package/dist/storage/library/sourcePresentation.d.ts.map +0 -1
- package/dist/storage/library/sourcePresentation.js.map +0 -1
- package/dist/storage/profiles/ProfilePlans.d.ts.map +0 -1
- package/dist/storage/profiles/ProfilePlans.js.map +0 -1
- package/dist/storage/profiles/ProfileRecords.d.ts.map +0 -1
- package/dist/storage/profiles/ProfileRecords.js.map +0 -1
- package/dist/storage/profiles/contextReceipts.d.ts.map +0 -1
- package/dist/storage/profiles/contextReceipts.js.map +0 -1
- package/dist/storage/profiles/guidanceVerifier.d.ts.map +0 -1
- package/dist/storage/profiles/guidanceVerifier.js.map +0 -1
- package/dist/storage/profiles/migrations.d.ts.map +0 -1
- package/dist/storage/profiles/migrations.js.map +0 -1
- package/dist/storage/profiles/planSchema.d.ts.map +0 -1
- package/dist/storage/profiles/planSchema.js.map +0 -1
- package/dist/storage/profiles/schema.d.ts.map +0 -1
- package/dist/storage/profiles/schema.js.map +0 -1
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts.map +0 -1
- package/dist/storage/project-metadata/ProjectMetadataRecords.js.map +0 -1
- package/dist/storage/project-metadata/database.d.ts.map +0 -1
- package/dist/storage/project-metadata/database.js.map +0 -1
- package/dist/storage/project-metadata/migrations.d.ts.map +0 -1
- package/dist/storage/project-metadata/migrations.js.map +0 -1
- package/dist/storage/project-metadata/schema.d.ts.map +0 -1
- package/dist/storage/project-metadata/schema.js.map +0 -1
- package/dist/types/account.d.ts.map +0 -1
- package/dist/types/account.js.map +0 -1
- package/dist/types/change-request-types.d.ts.map +0 -1
- package/dist/types/change-request-types.js.map +0 -1
- package/dist/types/change-types.d.ts.map +0 -1
- package/dist/types/change-types.js.map +0 -1
- package/dist/types/cosmos-profile.d.ts.map +0 -1
- package/dist/types/cosmos-profile.js.map +0 -1
- package/dist/types/cosmos.d.ts.map +0 -1
- package/dist/types/cosmos.js.map +0 -1
- package/dist/types/design-library.d.ts.map +0 -1
- package/dist/types/design-library.js.map +0 -1
- package/dist/types/design-profile.d.ts.map +0 -1
- package/dist/types/design-profile.js.map +0 -1
- package/dist/types/guidance-references.d.ts.map +0 -1
- package/dist/types/guidance-references.js.map +0 -1
- package/dist/types/guidance-verifier.d.ts.map +0 -1
- package/dist/types/guidance-verifier.js.map +0 -1
- package/dist/types/guidance.d.ts.map +0 -1
- package/dist/types/guidance.js.map +0 -1
- package/dist/types/preview-routes.d.ts.map +0 -1
- package/dist/types/preview-routes.js.map +0 -1
- package/dist/types/project-library.d.ts.map +0 -1
- package/dist/types/project-library.js.map +0 -1
- package/dist/types/reference-connectors.d.ts.map +0 -1
- package/dist/types/reference-connectors.js.map +0 -1
- package/dist/types/reference-onboarding.d.ts.map +0 -1
- package/dist/types/reference-onboarding.js.map +0 -1
- package/dist/types/reference-pages.d.ts.map +0 -1
- package/dist/types/reference-pages.js.map +0 -1
- package/dist/types/variant-history.d.ts.map +0 -1
- package/dist/types/variant-history.js.map +0 -1
- package/dist/types/variant-reference.d.ts.map +0 -1
- package/dist/types/variant-reference.js.map +0 -1
- package/dist/types/x-bookmarks.d.ts.map +0 -1
- package/dist/types/x-bookmarks.js.map +0 -1
- package/dist/utils/ProviderRateLimit.d.ts.map +0 -1
- package/dist/utils/ProviderRateLimit.js.map +0 -1
- package/dist/utils/branchNames.d.ts +0 -2
- package/dist/utils/branchNames.d.ts.map +0 -1
- package/dist/utils/branchNames.js +0 -92
- package/dist/utils/branchNames.js.map +0 -1
- package/dist/utils/cloneOrCopyDirSync.d.ts.map +0 -1
- package/dist/utils/cloneOrCopyDirSync.js.map +0 -1
- package/dist/utils/devServerCommand.d.ts.map +0 -1
- package/dist/utils/devServerCommand.js.map +0 -1
- package/dist/utils/devServerError.d.ts.map +0 -1
- package/dist/utils/devServerError.js.map +0 -1
- package/dist/utils/displayLocale.d.ts.map +0 -1
- package/dist/utils/displayLocale.js.map +0 -1
- package/dist/utils/errnoCode.d.ts.map +0 -1
- package/dist/utils/errnoCode.js.map +0 -1
- package/dist/utils/errorMessage.d.ts.map +0 -1
- package/dist/utils/errorMessage.js.map +0 -1
- package/dist/utils/hostAgentEnv.d.ts +0 -2
- package/dist/utils/hostAgentEnv.d.ts.map +0 -1
- package/dist/utils/hostAgentEnv.js +0 -15
- package/dist/utils/hostAgentEnv.js.map +0 -1
- package/dist/utils/htmlDocument.d.ts.map +0 -1
- package/dist/utils/htmlDocument.js.map +0 -1
- package/dist/utils/installRef.d.ts.map +0 -1
- package/dist/utils/installRef.js.map +0 -1
- package/dist/utils/internalGitIdentity.d.ts.map +0 -1
- package/dist/utils/internalGitIdentity.js.map +0 -1
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/loginShellPath.d.ts.map +0 -1
- package/dist/utils/loginShellPath.js.map +0 -1
- package/dist/utils/loopback.d.ts.map +0 -1
- package/dist/utils/loopback.js.map +0 -1
- package/dist/utils/pathContainment.d.ts.map +0 -1
- package/dist/utils/pathContainment.js.map +0 -1
- package/dist/utils/pid.d.ts.map +0 -1
- package/dist/utils/pid.js.map +0 -1
- package/dist/utils/portUtils.d.ts.map +0 -1
- package/dist/utils/portUtils.js.map +0 -1
- package/dist/utils/queueAccess.d.ts.map +0 -1
- package/dist/utils/queueAccess.js.map +0 -1
- package/dist/utils/skillWriter.d.ts.map +0 -1
- package/dist/utils/skillWriter.js.map +0 -1
- package/dist/utils/skills/claude-skill.d.ts.map +0 -1
- package/dist/utils/skills/claude-skill.js.map +0 -1
- package/dist/utils/skills/cli-guidance.d.ts.map +0 -1
- package/dist/utils/skills/cli-guidance.js.map +0 -1
- package/dist/utils/skills/codex-skill.d.ts.map +0 -1
- package/dist/utils/skills/codex-skill.js.map +0 -1
- package/dist/utils/skills/cursor-rules.d.ts.map +0 -1
- package/dist/utils/skills/cursor-rules.js.map +0 -1
- package/dist/utils/staticPreviewPage.d.ts.map +0 -1
- package/dist/utils/staticPreviewPage.js.map +0 -1
- package/dist/utils/variantSessionStart.d.ts.map +0 -1
- package/dist/utils/variantSessionStart.js.map +0 -1
- package/dist/utils/windowPlacement.d.ts.map +0 -1
- package/dist/utils/windowPlacement.js.map +0 -1
- package/dist/utils/writeFileAtomic.d.ts.map +0 -1
- package/dist/utils/writeFileAtomic.js.map +0 -1
- package/src/ui/dist/assets/main-CXP-A-qy.css +0 -1
- package/src/ui/dist/assets/main-DQKavyjz.js +0 -435
package/dist/server.js
CHANGED
|
@@ -37,11 +37,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.startServer = exports.runServerShutdownTasks = exports.isRivetCorsOriginAllowed = exports.isRivetUiStaticAssetPath = exports.isEmbeddedAgentUiHost = exports.resolveEmbeddedAgentUiOrigin = exports.resolveRivetListenHost = exports.sendInactiveVariantsEventStream = exports.readRivetUiIndexHtml = exports.injectRivetUiBootstrap = exports.DIST_UI_PATH = exports.RIVET_CORS_ALLOWED_HEADERS = exports.INACTIVE_VARIANTS_EVENT_HEARTBEAT_MS = void 0;
|
|
40
|
+
const editorSession_1 = require("./cli/editorSession");
|
|
41
|
+
const editorAccess_1 = require("./routes/editorAccess");
|
|
42
|
+
const editorAccess_2 = require("./utils/editorAccess");
|
|
40
43
|
const RuntimeAdmission_1 = require("./services/RuntimeAdmission");
|
|
41
44
|
const account_1 = require("./routes/account");
|
|
42
45
|
const installRef_1 = require("./routes/installRef");
|
|
43
46
|
const installationChannel_1 = require("./install/installationChannel");
|
|
44
47
|
const Sentry = __importStar(require("@sentry/node"));
|
|
48
|
+
const telemetryPolicy_1 = require("./config/telemetryPolicy");
|
|
49
|
+
const telemetry_1 = require("./routes/telemetry");
|
|
45
50
|
const express_1 = __importDefault(require("express"));
|
|
46
51
|
const cors_1 = __importDefault(require("cors"));
|
|
47
52
|
const crypto_1 = require("crypto");
|
|
@@ -53,7 +58,6 @@ const _1 = require(".");
|
|
|
53
58
|
const integrations_1 = require("./routes/integrations");
|
|
54
59
|
const referenceProfiles_1 = require("./routes/referenceProfiles");
|
|
55
60
|
const WorktreeManager_1 = require("./services/WorktreeManager");
|
|
56
|
-
const git_1 = require("./routes/git");
|
|
57
61
|
const support_1 = require("./routes/support");
|
|
58
62
|
const proxy_config_1 = require("./proxy-middleware/proxy-config");
|
|
59
63
|
const StaticFileService_1 = require("./services/StaticFileService");
|
|
@@ -67,7 +71,7 @@ const cli_1 = require("./routes/cli");
|
|
|
67
71
|
const agentVariants_1 = require("./routes/agentVariants");
|
|
68
72
|
const inlineStartTracker_1 = require("./routes/inlineStartTracker");
|
|
69
73
|
const serverHandshake_1 = require("./cli/serverHandshake");
|
|
70
|
-
const
|
|
74
|
+
const telemetry_2 = require("./config/telemetry");
|
|
71
75
|
const HistoryReplayService_1 = require("./services/HistoryReplayService");
|
|
72
76
|
const VariantHistoryService_1 = require("./services/VariantHistoryService");
|
|
73
77
|
const RequestAuthContext_1 = require("./services/RequestAuthContext");
|
|
@@ -81,12 +85,13 @@ const RIVET_UI_INDEX_FILENAME = 'index.html';
|
|
|
81
85
|
const EMBEDDED_AGENT_LISTEN_HOST = '127.0.0.1';
|
|
82
86
|
const EMBEDDED_AGENT_PREVIEW_HOST = 'localhost';
|
|
83
87
|
const OPAQUE_PREVIEW_ORIGIN = 'null';
|
|
84
|
-
const PREVIEW_PORT_ALLOWED_API_RE = /^\/api\/variants\/(?:[^/]+\/static\/|history\/[^/]+\/[^/]+\/preview)/;
|
|
88
|
+
const PREVIEW_PORT_ALLOWED_API_RE = /^\/api\/variants\/(?:[^/]+\/static\/|history\/[^/]+\/[^/]+\/(?:preview|site\/))/;
|
|
85
89
|
exports.INACTIVE_VARIANTS_EVENT_HEARTBEAT_MS = 30_000;
|
|
86
90
|
exports.RIVET_CORS_ALLOWED_HEADERS = [
|
|
87
91
|
'Content-Type',
|
|
88
92
|
'Authorization',
|
|
89
93
|
'x-rivet-queue-token',
|
|
94
|
+
editorAccess_2.EDITOR_ACCESS_TOKEN_HEADER,
|
|
90
95
|
];
|
|
91
96
|
const resolveUiPath = () => {
|
|
92
97
|
const bundledPath = path_1.default.join(__dirname, 'ui/dist');
|
|
@@ -136,7 +141,7 @@ const sendInactiveVariantsEventStream = (req, res) => {
|
|
|
136
141
|
});
|
|
137
142
|
};
|
|
138
143
|
exports.sendInactiveVariantsEventStream = sendInactiveVariantsEventStream;
|
|
139
|
-
const resolveRivetListenHost = (
|
|
144
|
+
const resolveRivetListenHost = (_agentApplyMode) => EMBEDDED_AGENT_LISTEN_HOST;
|
|
140
145
|
exports.resolveRivetListenHost = resolveRivetListenHost;
|
|
141
146
|
const resolveEmbeddedAgentUiOrigin = (port) => `http://${EMBEDDED_AGENT_LISTEN_HOST}:${port}`;
|
|
142
147
|
exports.resolveEmbeddedAgentUiOrigin = resolveEmbeddedAgentUiOrigin;
|
|
@@ -198,16 +203,17 @@ exports.runServerShutdownTasks = runServerShutdownTasks;
|
|
|
198
203
|
const startServer = async (options) => {
|
|
199
204
|
const { userPort, userHost, telemetry, projectPath, framework, staticEntry, sessionBridge, mcpEditor, skipProcessHandlers, } = options;
|
|
200
205
|
const agentApplyMode = options.agentApplyMode;
|
|
206
|
+
const editorAccessToken = (0, editorSession_1.createEditorAccessToken)();
|
|
207
|
+
const startedAt = new Date().toISOString();
|
|
201
208
|
const userPortWithFallback = userPort ?? _1.DEFAULT_USER_PORT;
|
|
202
209
|
const userHostWithFallback = userHost ?? 'localhost';
|
|
203
210
|
const hasUserDevServer = typeof userPort === 'number' && Number.isInteger(userPort) && userPort > 0;
|
|
204
|
-
const isGitEnabled = options.isGitEnabled ?? true;
|
|
205
211
|
const queueAccessToken = sessionBridge && agentApplyMode === 'embedded'
|
|
206
212
|
? (0, crypto_1.randomBytes)(QUEUE_ACCESS_TOKEN_BYTES).toString('base64url')
|
|
207
213
|
: null;
|
|
208
214
|
const variantsOrchestrator = options.variantsRuntime?.orchestrator ?? options.agentVariantsOrchestrator;
|
|
209
215
|
const inlineStartTracker = (0, inlineStartTracker_1.createInlineStartTracker)();
|
|
210
|
-
const runtimeAdmission = new RuntimeAdmission_1.RuntimeAdmission(
|
|
216
|
+
const runtimeAdmission = new RuntimeAdmission_1.RuntimeAdmission(telemetry_2.RIVET_VERSION);
|
|
211
217
|
const variantsBridge = options.variantsRuntime?.bridge ?? sessionBridge;
|
|
212
218
|
const variantRunService = options.variantsRuntime?.runService ?? options.variantRunService;
|
|
213
219
|
const variantHistory = variantsOrchestrator
|
|
@@ -222,65 +228,41 @@ const startServer = async (options) => {
|
|
|
222
228
|
: undefined,
|
|
223
229
|
})
|
|
224
230
|
: null;
|
|
225
|
-
if (process.env.SENTRY_DSN) {
|
|
231
|
+
if (process.env.SENTRY_DSN && (0, telemetryPolicy_1.getTelemetryMode)() === 'full') {
|
|
226
232
|
Sentry.init({
|
|
227
233
|
dsn: process.env.SENTRY_DSN,
|
|
228
234
|
environment: process.env.NODE_ENV ?? 'development',
|
|
229
235
|
});
|
|
230
236
|
}
|
|
231
|
-
const sessionService = new index_core_1.SessionService(projectPath, isGitEnabled, 'main');
|
|
232
|
-
try {
|
|
233
|
-
await sessionService.initializeSession();
|
|
234
|
-
log.info('Git session initialized successfully');
|
|
235
|
-
}
|
|
236
|
-
catch (error) {
|
|
237
|
-
log.warn('Failed to initialize git session, continuing without git tracking:', error);
|
|
238
|
-
}
|
|
239
237
|
let staticService = null;
|
|
240
238
|
if (framework === 'static') {
|
|
241
239
|
const entryPoint = staticEntry || 'index.html';
|
|
242
240
|
staticService = new StaticFileService_1.StaticFileService(projectPath, entryPoint);
|
|
243
241
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
(0, WorktreeManager_1.cleanupOrphanedWorktrees)();
|
|
248
|
-
const results = await Promise.allSettled([
|
|
249
|
-
options.beforeShutdown?.(),
|
|
250
|
-
telemetry?.shutdown(),
|
|
251
|
-
(0, FeatureFlagService_1.getFeatureFlagService)().shutdown(),
|
|
252
|
-
]);
|
|
253
|
-
const labels = ['shutdown hook', 'telemetry', 'feature flags'];
|
|
254
|
-
for (let i = 0; i < results.length; i++) {
|
|
255
|
-
if (results[i].status === 'rejected') {
|
|
256
|
-
log.error(`Failed to cleanup ${labels[i]}:`, results[i].reason);
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
(0, serverHandshake_1.removeHandshake)(projectPath, process.pid);
|
|
260
|
-
process.exit(code);
|
|
261
|
-
};
|
|
262
|
-
process.on('SIGINT', () => shutdownAndExit(0));
|
|
263
|
-
process.on('SIGTERM', () => shutdownAndExit(0));
|
|
264
|
-
process.on('uncaughtException', (err) => {
|
|
265
|
-
log.error('Uncaught exception:', err);
|
|
266
|
-
telemetry?.captureException(err, 'uncaught_exception');
|
|
267
|
-
shutdownAndExit(1);
|
|
268
|
-
});
|
|
269
|
-
process.on('unhandledRejection', (reason) => {
|
|
270
|
-
log.error('Unhandled rejection:', reason);
|
|
271
|
-
telemetry?.captureException(reason, 'unhandled_rejection');
|
|
272
|
-
shutdownAndExit(1);
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
const listenPort = options.rivetPort ?? _1.DEFAULT_PORT;
|
|
276
|
-
const previewPort = agentApplyMode === 'embedded' ? options.previewPort : undefined;
|
|
277
|
-
const previewOrigin = previewPort !== undefined
|
|
242
|
+
let listenPort = options.rivetPort ?? _1.DEFAULT_PORT;
|
|
243
|
+
const previewPort = options.previewPort;
|
|
244
|
+
let previewOrigin = previewPort !== undefined
|
|
278
245
|
? `http://${EMBEDDED_AGENT_LISTEN_HOST}:${previewPort}`
|
|
279
|
-
:
|
|
246
|
+
: `http://${EMBEDDED_AGENT_PREVIEW_HOST}:${listenPort}`;
|
|
247
|
+
let userDevProxy = null;
|
|
280
248
|
const app = (0, express_1.default)();
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
|
|
249
|
+
const requireEditorAccess = (0, editorAccess_1.authenticateEditor)(editorAccessToken);
|
|
250
|
+
app.use(editorAccess_2.EDITOR_ACCOUNT_PATHS, requireEditorAccess);
|
|
251
|
+
const editorHost = () => `${EMBEDDED_AGENT_LISTEN_HOST}:${listenPort}`;
|
|
252
|
+
const isPreviewRequest = (req) => req.headers.host === new URL(previewOrigin).host &&
|
|
253
|
+
(previewPort === undefined || req.socket.localPort === previewPort);
|
|
254
|
+
app.use((req, res, next) => {
|
|
255
|
+
const requestHost = req.headers.host;
|
|
256
|
+
const isEditorRequest = requestHost === editorHost() && req.socket.localPort === listenPort;
|
|
257
|
+
if (!isEditorRequest && !isPreviewRequest(req)) {
|
|
258
|
+
res.sendStatus(403);
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
next();
|
|
262
|
+
});
|
|
263
|
+
const corsOrigins = new Set([
|
|
264
|
+
(0, exports.resolveEmbeddedAgentUiOrigin)(listenPort),
|
|
265
|
+
]);
|
|
284
266
|
const rawCorsOrigins = process.env.RIVET_CORS_ORIGINS;
|
|
285
267
|
if (rawCorsOrigins) {
|
|
286
268
|
rawCorsOrigins
|
|
@@ -305,22 +287,42 @@ const startServer = async (options) => {
|
|
|
305
287
|
allowedHeaders: exports.RIVET_CORS_ALLOWED_HEADERS,
|
|
306
288
|
})(req, res, next);
|
|
307
289
|
});
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
290
|
+
app.use((req, res, next) => {
|
|
291
|
+
if (!isPreviewRequest(req)) {
|
|
292
|
+
next();
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
if (req.headers[editorAccess_2.EDITOR_ACCESS_TOKEN_HEADER]) {
|
|
296
|
+
res.sendStatus(403);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
const isAppApi = req.path.toLowerCase().startsWith('/api/') &&
|
|
300
|
+
!PREVIEW_PORT_ALLOWED_API_RE.test(req.path.toLowerCase());
|
|
301
|
+
const isEditorUi = req.path.toLowerCase() === '/rivet' ||
|
|
302
|
+
req.path.toLowerCase().startsWith('/rivet/');
|
|
303
|
+
if (isEditorUi || /^\/api\/git(?:\/|$)/i.test(req.path)) {
|
|
304
|
+
res.status(404).end();
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
if (isAppApi) {
|
|
308
|
+
if (userDevProxy) {
|
|
309
|
+
userDevProxy.middleware(req, res, (error) => {
|
|
310
|
+
if (error) {
|
|
311
|
+
next(error);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
res.sendStatus(404);
|
|
315
|
+
});
|
|
313
316
|
}
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
const isEditorUi = req.path === '/rivet' || req.path.startsWith('/rivet/');
|
|
317
|
-
if (isBlockedApi || isEditorUi) {
|
|
318
|
-
res.status(404).end();
|
|
319
|
-
return;
|
|
317
|
+
else {
|
|
318
|
+
res.sendStatus(404);
|
|
320
319
|
}
|
|
321
|
-
|
|
322
|
-
}
|
|
323
|
-
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
next();
|
|
323
|
+
});
|
|
324
|
+
app.use((0, editorAccess_1.authenticateEditorApi)(editorAccessToken));
|
|
325
|
+
app.use('/api/telemetry', (0, telemetry_1.createTelemetryRouter)(telemetry));
|
|
324
326
|
const jsonBodyParser = express_1.default.json({ limit: '50mb' });
|
|
325
327
|
app.use(jsonBodyParser);
|
|
326
328
|
app.use((req, res, next) => {
|
|
@@ -341,21 +343,27 @@ const startServer = async (options) => {
|
|
|
341
343
|
},
|
|
342
344
|
};
|
|
343
345
|
const sendRivetUiIndex = (req, res) => {
|
|
344
|
-
if (!(0, exports.isEmbeddedAgentUiHost)(req.hostname,
|
|
346
|
+
if (!(0, exports.isEmbeddedAgentUiHost)(req.hostname, 'embedded')) {
|
|
345
347
|
res.redirect(302, `${(0, exports.resolveEmbeddedAgentUiOrigin)(listenPort)}${req.originalUrl}`);
|
|
346
348
|
return;
|
|
347
349
|
}
|
|
348
350
|
setNoStoreHeaders(res);
|
|
351
|
+
const libraryOrigin = options.resolveLibraryOrigin?.();
|
|
352
|
+
res.setHeader('Content-Security-Policy', `frame-ancestors 'self'${libraryOrigin ? ` ${new URL(libraryOrigin).origin}` : ''}`);
|
|
349
353
|
res.type('html').send((0, exports.injectRivetUiBootstrap)((0, exports.readRivetUiIndexHtml)(), {
|
|
350
354
|
agentApplyMode: agentApplyMode ?? null,
|
|
351
355
|
queueAccessToken,
|
|
352
356
|
previewOrigin,
|
|
353
357
|
}));
|
|
354
358
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
+
const serveEditorAssets = (directory) => {
|
|
360
|
+
const serve = express_1.default.static(directory, uiStaticOptions);
|
|
361
|
+
return (req, res, next) => isPreviewRequest(req) ? next() : serve(req, res, next);
|
|
362
|
+
};
|
|
363
|
+
app.use('/assets', serveEditorAssets(path_1.default.join(exports.DIST_UI_PATH, 'assets')));
|
|
364
|
+
app.use('/rivet/assets', serveEditorAssets(path_1.default.join(exports.DIST_UI_PATH, 'assets')));
|
|
365
|
+
app.use('/fonts', serveEditorAssets(path_1.default.join(exports.DIST_UI_PATH, 'fonts')));
|
|
366
|
+
app.use('/rivet/fonts', serveEditorAssets(path_1.default.join(exports.DIST_UI_PATH, 'fonts')));
|
|
359
367
|
app.get('/favicon.ico', (_req, res) => {
|
|
360
368
|
res.sendFile('favicon.ico', { root: exports.DIST_UI_PATH });
|
|
361
369
|
});
|
|
@@ -371,7 +379,11 @@ const startServer = async (options) => {
|
|
|
371
379
|
});
|
|
372
380
|
log.info(`Serving UI assets from: ${exports.DIST_UI_PATH}`);
|
|
373
381
|
if (framework === 'static' && !hasUserDevServer) {
|
|
374
|
-
app.get('/', (req, res) => {
|
|
382
|
+
app.get('/', (req, res, next) => {
|
|
383
|
+
if (isPreviewRequest(req)) {
|
|
384
|
+
next();
|
|
385
|
+
return;
|
|
386
|
+
}
|
|
375
387
|
log.debug(`${framework} mode - serving Rivet at root`);
|
|
376
388
|
sendRivetUiIndex(req, res);
|
|
377
389
|
});
|
|
@@ -410,19 +422,28 @@ const startServer = async (options) => {
|
|
|
410
422
|
app.use('/api', (0, integrations_1.createIntegrationsRouter)());
|
|
411
423
|
app.use('/api', (0, referenceProfiles_1.createReferenceProfilesRouter)());
|
|
412
424
|
void (0, WorktreeManager_1.pruneWorktrees)(projectPath);
|
|
413
|
-
|
|
414
|
-
log.info('Git routes disabled for this server instance');
|
|
415
|
-
}
|
|
416
|
-
app.use('/api', (0, git_1.createGitRouter)(sessionService, projectPath, {
|
|
417
|
-
isGitEnabled,
|
|
418
|
-
}));
|
|
425
|
+
app.use('/api/git', (_req, res) => res.sendStatus(404));
|
|
419
426
|
app.use('/api', (0, support_1.createSupportRouter)(telemetry));
|
|
427
|
+
app.use((req, res, next) => {
|
|
428
|
+
const isPreviewPath = req.path.toLowerCase().startsWith('/static') ||
|
|
429
|
+
req.path.toLowerCase().startsWith('/__rivet/preview/') ||
|
|
430
|
+
PREVIEW_PORT_ALLOWED_API_RE.test(req.path.toLowerCase());
|
|
431
|
+
if (!isPreviewRequest(req) && isPreviewPath) {
|
|
432
|
+
if (req.headers[editorAccess_2.EDITOR_ACCESS_TOKEN_HEADER]) {
|
|
433
|
+
res.sendStatus(403);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
res.redirect(302, `${previewOrigin}${req.originalUrl}`);
|
|
437
|
+
return;
|
|
438
|
+
}
|
|
439
|
+
next();
|
|
440
|
+
});
|
|
420
441
|
if (staticService) {
|
|
421
442
|
app.use((0, static_1.createStaticRoutes)(staticService, projectPath, {
|
|
422
|
-
isPreviewBridgeEnabled:
|
|
423
|
-
expectedPreviewParentOrigin
|
|
424
|
-
|
|
425
|
-
|
|
443
|
+
isPreviewBridgeEnabled: true,
|
|
444
|
+
get expectedPreviewParentOrigin() {
|
|
445
|
+
return (0, exports.resolveEmbeddedAgentUiOrigin)(listenPort);
|
|
446
|
+
},
|
|
426
447
|
}));
|
|
427
448
|
log.info('Static routes mounted at /static');
|
|
428
449
|
}
|
|
@@ -441,8 +462,9 @@ const startServer = async (options) => {
|
|
|
441
462
|
projectPath,
|
|
442
463
|
pid: process.pid,
|
|
443
464
|
channel: (0, installationChannel_1.installationChannel)(),
|
|
444
|
-
rivetVersion:
|
|
465
|
+
rivetVersion: telemetry_2.RIVET_VERSION,
|
|
445
466
|
pluginName: (0, pluginContext_1.getPluginName)(),
|
|
467
|
+
telemetryMode: (0, telemetryPolicy_1.getTelemetryMode)(),
|
|
446
468
|
timestamp: new Date().toISOString(),
|
|
447
469
|
framework,
|
|
448
470
|
ports: {
|
|
@@ -489,7 +511,7 @@ const startServer = async (options) => {
|
|
|
489
511
|
const url = await options.createLibraryViewUrl?.(view);
|
|
490
512
|
if (!url)
|
|
491
513
|
return res.sendStatus(503);
|
|
492
|
-
return res.
|
|
514
|
+
return res.json({ url });
|
|
493
515
|
}
|
|
494
516
|
catch (error) {
|
|
495
517
|
log.error('Could not open the project library', error);
|
|
@@ -518,11 +540,11 @@ const startServer = async (options) => {
|
|
|
518
540
|
}
|
|
519
541
|
if (variantsOrchestrator) {
|
|
520
542
|
app.use('/api', (0, agentVariants_1.createAgentVariantsRouter)(variantsOrchestrator, variantsBridge, telemetry, variantHistory ?? undefined, undefined, variantRunService, historyReplay ?? undefined, {
|
|
521
|
-
isEnabled:
|
|
543
|
+
isEnabled: true,
|
|
522
544
|
resolveLibraryOrigin: options.resolveLibraryOrigin,
|
|
523
|
-
expectedParentOrigin
|
|
524
|
-
|
|
525
|
-
|
|
545
|
+
get expectedParentOrigin() {
|
|
546
|
+
return (0, exports.resolveEmbeddedAgentUiOrigin)(listenPort);
|
|
547
|
+
},
|
|
526
548
|
}, inlineStartTracker, runtimeAdmission));
|
|
527
549
|
log.info('agent-variants routes mounted at /api/variants');
|
|
528
550
|
}
|
|
@@ -534,16 +556,15 @@ const startServer = async (options) => {
|
|
|
534
556
|
(0, exports.sendInactiveVariantsEventStream)(req, res);
|
|
535
557
|
});
|
|
536
558
|
}
|
|
537
|
-
let userDevProxy = null;
|
|
538
559
|
if (framework !== 'static' || hasUserDevServer || variantsBridge) {
|
|
539
560
|
const proxyUserPort = framework === 'static' && !hasUserDevServer
|
|
540
561
|
? NO_USER_DEV_SERVER_PORT
|
|
541
562
|
: userPortWithFallback;
|
|
542
563
|
userDevProxy = (0, proxy_config_1.createUserDevServerProxy)(proxyUserPort, userHostWithFallback, {
|
|
543
|
-
isPreviewBridgeEnabled:
|
|
544
|
-
expectedPreviewParentOrigin
|
|
545
|
-
|
|
546
|
-
|
|
564
|
+
isPreviewBridgeEnabled: true,
|
|
565
|
+
get expectedPreviewParentOrigin() {
|
|
566
|
+
return (0, exports.resolveEmbeddedAgentUiOrigin)(listenPort);
|
|
567
|
+
},
|
|
547
568
|
resolveVariantPreviewPort: (sessionId, variantId, options) => {
|
|
548
569
|
if (options?.source === 'history') {
|
|
549
570
|
return historyReplay?.getPort(sessionId, variantId) ?? null;
|
|
@@ -555,6 +576,25 @@ const startServer = async (options) => {
|
|
|
555
576
|
},
|
|
556
577
|
});
|
|
557
578
|
variantsBridge?.registerVariantTargetSetter(userDevProxy.setVariantTarget);
|
|
579
|
+
app.use((req, res, next) => {
|
|
580
|
+
if (!isPreviewRequest(req)) {
|
|
581
|
+
if (req.path.toLowerCase().startsWith('/api/')) {
|
|
582
|
+
res.sendStatus(404);
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
if (req.headers[editorAccess_2.EDITOR_ACCESS_TOKEN_HEADER]) {
|
|
586
|
+
res.sendStatus(403);
|
|
587
|
+
return;
|
|
588
|
+
}
|
|
589
|
+
res.redirect(302, `${previewOrigin}${req.originalUrl}`);
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
if (req.headers[editorAccess_2.EDITOR_ACCESS_TOKEN_HEADER]) {
|
|
593
|
+
res.sendStatus(403);
|
|
594
|
+
return;
|
|
595
|
+
}
|
|
596
|
+
next();
|
|
597
|
+
});
|
|
558
598
|
app.get('/{*any}', userDevProxy.middleware);
|
|
559
599
|
app.post('/{*any}', userDevProxy.middleware);
|
|
560
600
|
app.put('/{*any}', userDevProxy.middleware);
|
|
@@ -567,7 +607,7 @@ const startServer = async (options) => {
|
|
|
567
607
|
else {
|
|
568
608
|
log.info(`${framework} mode - skipping proxy setup`);
|
|
569
609
|
}
|
|
570
|
-
if (process.env.SENTRY_DSN) {
|
|
610
|
+
if (process.env.SENTRY_DSN && (0, telemetryPolicy_1.getTelemetryMode)() === 'full') {
|
|
571
611
|
Sentry.setupExpressErrorHandler(app);
|
|
572
612
|
}
|
|
573
613
|
app.use((err, req, res, _next) => {
|
|
@@ -598,12 +638,13 @@ const startServer = async (options) => {
|
|
|
598
638
|
pid: process.pid,
|
|
599
639
|
rivetPort: listenPort,
|
|
600
640
|
projectPath,
|
|
601
|
-
startedAt
|
|
641
|
+
startedAt,
|
|
602
642
|
sessionId: sessionBridge?.getSessionId() ?? null,
|
|
603
643
|
applyMode: handshakeApplyMode,
|
|
604
644
|
queueAccessToken,
|
|
605
|
-
rivetVersion:
|
|
645
|
+
rivetVersion: telemetry_2.RIVET_VERSION,
|
|
606
646
|
pluginName: (0, pluginContext_1.getPluginName)(),
|
|
647
|
+
telemetryMode: (0, telemetryPolicy_1.getTelemetryMode)(),
|
|
607
648
|
});
|
|
608
649
|
}
|
|
609
650
|
catch (err) {
|
|
@@ -612,22 +653,37 @@ const startServer = async (options) => {
|
|
|
612
653
|
};
|
|
613
654
|
const retireCliHandshake = () => {
|
|
614
655
|
(0, serverHandshake_1.removeHandshake)(projectPath, process.pid);
|
|
656
|
+
(0, editorSession_1.removeEditorSession)({ pid: process.pid, port: listenPort, projectPath, startedAt }, editorAccessToken);
|
|
615
657
|
};
|
|
616
658
|
const httpServer = await new Promise((resolve, reject) => {
|
|
617
659
|
const listenHost = (0, exports.resolveRivetListenHost)(agentApplyMode);
|
|
618
|
-
const server = listenHost
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
660
|
+
const server = app.listen(listenPort, listenHost, (error) => {
|
|
661
|
+
if (error) {
|
|
662
|
+
reject(error);
|
|
663
|
+
return;
|
|
664
|
+
}
|
|
665
|
+
log.info(`🎨 Rivet server running on http://${listenHost}:${listenPort}`);
|
|
666
|
+
listenPort = server.address().port;
|
|
667
|
+
if (previewPort === undefined)
|
|
668
|
+
previewOrigin = `http://${EMBEDDED_AGENT_PREVIEW_HOST}:${listenPort}`;
|
|
669
|
+
corsOrigins.add((0, exports.resolveEmbeddedAgentUiOrigin)(listenPort));
|
|
670
|
+
try {
|
|
671
|
+
(0, editorSession_1.writeEditorSession)({
|
|
672
|
+
pid: process.pid,
|
|
673
|
+
port: listenPort,
|
|
674
|
+
projectPath,
|
|
675
|
+
token: editorAccessToken,
|
|
676
|
+
startedAt,
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
catch (error) {
|
|
680
|
+
server.close(() => reject(error));
|
|
681
|
+
return;
|
|
682
|
+
}
|
|
683
|
+
writeDevPortFile(listenPort);
|
|
684
|
+
advertiseCliHandshake();
|
|
685
|
+
resolve(server);
|
|
686
|
+
});
|
|
631
687
|
server.on('error', (err) => {
|
|
632
688
|
reject(err);
|
|
633
689
|
});
|
|
@@ -650,28 +706,76 @@ const startServer = async (options) => {
|
|
|
650
706
|
});
|
|
651
707
|
let previewHttpServer = null;
|
|
652
708
|
if (previewPort !== undefined) {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
proxyUpgrade
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
709
|
+
try {
|
|
710
|
+
previewHttpServer = await new Promise((resolve, reject) => {
|
|
711
|
+
const pServer = (0, http_1.createServer)(app);
|
|
712
|
+
pServer.on('error', reject);
|
|
713
|
+
pServer.on('connection', (socket) => {
|
|
714
|
+
activeSockets.add(socket);
|
|
715
|
+
socket.on('close', () => activeSockets.delete(socket));
|
|
716
|
+
});
|
|
717
|
+
pServer.on('upgrade', (req, socket, head) => {
|
|
718
|
+
const proxyUpgrade = userDevProxy?.middleware?.upgrade;
|
|
719
|
+
if (proxyUpgrade) {
|
|
720
|
+
proxyUpgrade(req, socket, head);
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
socket.destroy();
|
|
724
|
+
});
|
|
725
|
+
pServer.listen(previewPort, EMBEDDED_AGENT_LISTEN_HOST, () => {
|
|
726
|
+
log.info(`🔒 Rivet isolated preview origin on http://${EMBEDDED_AGENT_LISTEN_HOST}:${previewPort}`);
|
|
727
|
+
resolve(pServer);
|
|
728
|
+
});
|
|
667
729
|
});
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
730
|
+
}
|
|
731
|
+
catch (error) {
|
|
732
|
+
removeDevPortFile();
|
|
733
|
+
retireCliHandshake();
|
|
734
|
+
await new Promise((resolve) => {
|
|
735
|
+
httpServer.close(() => resolve());
|
|
736
|
+
for (const socket of activeSockets)
|
|
737
|
+
socket.destroy();
|
|
671
738
|
});
|
|
739
|
+
throw error;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
if (!skipProcessHandlers) {
|
|
743
|
+
const shutdownAndExit = async (code) => {
|
|
744
|
+
log.info('Server shutting down, cleaning up...');
|
|
745
|
+
(0, WorktreeManager_1.cleanupOrphanedWorktrees)();
|
|
746
|
+
const results = await Promise.allSettled([
|
|
747
|
+
options.beforeShutdown?.(),
|
|
748
|
+
telemetry?.shutdown(),
|
|
749
|
+
(0, FeatureFlagService_1.getFeatureFlagService)().shutdown(),
|
|
750
|
+
]);
|
|
751
|
+
const labels = ['shutdown hook', 'telemetry', 'feature flags'];
|
|
752
|
+
for (let i = 0; i < results.length; i++) {
|
|
753
|
+
if (results[i].status === 'rejected') {
|
|
754
|
+
log.error(`Failed to cleanup ${labels[i]}:`, results[i].reason);
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
(0, serverHandshake_1.removeHandshake)(projectPath, process.pid);
|
|
758
|
+
(0, editorSession_1.removeEditorSession)({ pid: process.pid, port: listenPort, projectPath, startedAt }, editorAccessToken);
|
|
759
|
+
process.exit(code);
|
|
760
|
+
};
|
|
761
|
+
process.on('SIGINT', () => shutdownAndExit(0));
|
|
762
|
+
process.on('SIGTERM', () => shutdownAndExit(0));
|
|
763
|
+
process.on('uncaughtException', (err) => {
|
|
764
|
+
log.error('Uncaught exception:', err);
|
|
765
|
+
telemetry?.captureException(err, 'uncaught_exception');
|
|
766
|
+
shutdownAndExit(1);
|
|
767
|
+
});
|
|
768
|
+
process.on('unhandledRejection', (reason) => {
|
|
769
|
+
log.error('Unhandled rejection:', reason);
|
|
770
|
+
telemetry?.captureException(reason, 'unhandled_rejection');
|
|
771
|
+
shutdownAndExit(1);
|
|
672
772
|
});
|
|
673
773
|
}
|
|
674
774
|
return {
|
|
775
|
+
editorUrl: (0, editorAccess_2.createEditorUrl)({
|
|
776
|
+
port: httpServer.address().port,
|
|
777
|
+
token: editorAccessToken,
|
|
778
|
+
}),
|
|
675
779
|
close: () => new Promise((resolve, reject) => {
|
|
676
780
|
removeDevPortFile();
|
|
677
781
|
retireCliHandshake();
|
|
@@ -501,12 +501,14 @@ class AuthService {
|
|
|
501
501
|
authUrl: startResult.authUrl,
|
|
502
502
|
...(installRef ? { installRef } : {}),
|
|
503
503
|
});
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
504
|
+
if (!options.noBrowser) {
|
|
505
|
+
try {
|
|
506
|
+
const open = (await Promise.resolve().then(() => __importStar(require('open')))).default;
|
|
507
|
+
await open(startResult.authUrl);
|
|
508
|
+
}
|
|
509
|
+
catch (error) {
|
|
510
|
+
log.warn('Could not open browser for login:', error);
|
|
511
|
+
}
|
|
510
512
|
}
|
|
511
513
|
return {
|
|
512
514
|
started: true,
|
|
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CliLogForwarder = void 0;
|
|
7
|
+
const telemetryPolicy_1 = require("../config/telemetryPolicy");
|
|
7
8
|
const crypto_1 = require("crypto");
|
|
8
9
|
const loglevel_1 = __importDefault(require("loglevel"));
|
|
9
10
|
const proxy_1 = require("../config/proxy");
|
|
@@ -33,7 +34,7 @@ class CliLogForwarder {
|
|
|
33
34
|
isInitialized = false;
|
|
34
35
|
isEnabled;
|
|
35
36
|
constructor(options = {}) {
|
|
36
|
-
this.isEnabled = options.enabled ?? true;
|
|
37
|
+
this.isEnabled = (options.enabled ?? true) && (0, telemetryPolicy_1.getTelemetryMode)() === 'full';
|
|
37
38
|
}
|
|
38
39
|
init() {
|
|
39
40
|
if (!this.isEnabled || this.isInitialized) {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { BrowserAuthorizationRecords } from '../storage/library/BrowserAuthorizationRecords';
|
|
2
|
+
export interface AccountIdentity {
|
|
3
|
+
userId?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
}
|
|
2
6
|
type RivetConfig = {
|
|
3
7
|
authToken?: string;
|
|
4
8
|
refreshToken?: string;
|
|
@@ -6,6 +10,7 @@ type RivetConfig = {
|
|
|
6
10
|
userId?: string;
|
|
7
11
|
proxyUrl?: string;
|
|
8
12
|
anonymousId?: string;
|
|
13
|
+
pluginTelemetryId?: string;
|
|
9
14
|
telemetryIdentifiedEmail?: string;
|
|
10
15
|
telemetryIdentifiedUserId?: string;
|
|
11
16
|
firstVariantsRunAt?: string;
|
|
@@ -43,12 +48,14 @@ export declare class ConfigManager {
|
|
|
43
48
|
setAuth(token: string, email: string, refreshToken?: string, userId?: string, options?: AuthCommitOptions): string;
|
|
44
49
|
getAuthToken(): string | undefined;
|
|
45
50
|
getRefreshToken(): string | undefined;
|
|
51
|
+
getAccountIdentity(): AccountIdentity;
|
|
46
52
|
getEmail(): string | undefined;
|
|
47
53
|
getUserId(): string | undefined;
|
|
48
54
|
getDisplayName(): string | undefined;
|
|
49
55
|
isAuthenticated(): boolean;
|
|
50
56
|
clearAuth(): void;
|
|
51
57
|
setProxyUrl(url: string): void;
|
|
58
|
+
getPluginTelemetryId(): string;
|
|
52
59
|
getAnonymousId(): string;
|
|
53
60
|
getTelemetryIdentifiedEmail(): string | undefined;
|
|
54
61
|
setTelemetryIdentifiedEmail(email: string): void;
|