rivet-design 0.17.4 → 0.18.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/bin/rivet.js +0 -16
- package/dist/agent-variants/SessionStore.d.ts +5 -240
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +42 -371
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.d.ts +0 -10
- package/dist/agent-variants/VariantWorkspaceManager.d.ts.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.js +0 -17
- package/dist/agent-variants/VariantWorkspaceManager.js.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.d.ts +1 -105
- package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.js +11 -182
- package/dist/agent-variants/WorkerExecutorService.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +6 -598
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +55 -1288
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts +0 -6
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -23
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/briefContent.d.ts +0 -11
- package/dist/agent-variants/briefContent.d.ts.map +1 -1
- package/dist/agent-variants/briefContent.js +0 -12
- package/dist/agent-variants/briefContent.js.map +1 -1
- package/dist/agent-variants/contextAssets.d.ts +0 -3
- package/dist/agent-variants/contextAssets.d.ts.map +1 -1
- package/dist/agent-variants/contextAssets.js +0 -3
- package/dist/agent-variants/contextAssets.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +2016 -600
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +10 -174
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.d.ts +0 -17
- package/dist/agent-variants/createProjectArtifacts.d.ts.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.js +0 -10
- package/dist/agent-variants/createProjectArtifacts.js.map +1 -1
- package/dist/agent-variants/diffQa.d.ts +0 -1
- package/dist/agent-variants/diffQa.d.ts.map +1 -1
- package/dist/agent-variants/diffQa.js +0 -1
- package/dist/agent-variants/diffQa.js.map +1 -1
- package/dist/agent-variants/directionAuthoring.d.ts +0 -13
- package/dist/agent-variants/directionAuthoring.d.ts.map +1 -1
- package/dist/agent-variants/directionAuthoring.js +12 -46
- package/dist/agent-variants/directionAuthoring.js.map +1 -1
- package/dist/agent-variants/elementRefToTarget.d.ts +0 -17
- package/dist/agent-variants/elementRefToTarget.d.ts.map +1 -1
- package/dist/agent-variants/elementRefToTarget.js +0 -17
- package/dist/agent-variants/elementRefToTarget.js.map +1 -1
- package/dist/agent-variants/generatedDestination.d.ts +0 -3
- package/dist/agent-variants/generatedDestination.d.ts.map +1 -1
- package/dist/agent-variants/generatedDestination.js +0 -3
- package/dist/agent-variants/generatedDestination.js.map +1 -1
- package/dist/agent-variants/previewQa.d.ts +0 -6
- package/dist/agent-variants/previewQa.d.ts.map +1 -1
- package/dist/agent-variants/previewQa.js +0 -5
- package/dist/agent-variants/previewQa.js.map +1 -1
- package/dist/agent-variants/runLabel.d.ts +0 -15
- package/dist/agent-variants/runLabel.d.ts.map +1 -1
- package/dist/agent-variants/runLabel.js +0 -19
- package/dist/agent-variants/runLabel.js.map +1 -1
- package/dist/agent-variants/runPlan.d.ts +3 -84
- package/dist/agent-variants/runPlan.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.js +0 -51
- package/dist/agent-variants/runPlan.js.map +1 -1
- package/dist/agent-variants/sourceContext.d.ts +0 -10
- package/dist/agent-variants/sourceContext.d.ts.map +1 -1
- package/dist/agent-variants/sourceContext.js +0 -36
- package/dist/agent-variants/sourceContext.js.map +1 -1
- package/dist/agent-variants/variantContext.d.ts +6 -7
- package/dist/agent-variants/variantContext.d.ts.map +1 -1
- package/dist/agent-variants/variantContext.js +69 -10
- package/dist/agent-variants/variantContext.js.map +1 -1
- package/dist/agent-variants/videoKeyframes.d.ts +0 -7
- package/dist/agent-variants/videoKeyframes.d.ts.map +1 -1
- package/dist/agent-variants/videoKeyframes.js +0 -7
- package/dist/agent-variants/videoKeyframes.js.map +1 -1
- package/dist/agent-variants/workItemBriefing.d.ts +0 -21
- package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
- package/dist/agent-variants/workItemBriefing.js +0 -49
- package/dist/agent-variants/workItemBriefing.js.map +1 -1
- package/dist/agent-variants/workerRuntime.d.ts +1 -137
- package/dist/agent-variants/workerRuntime.d.ts.map +1 -1
- package/dist/agent-variants/workerRuntime.js +8 -147
- package/dist/agent-variants/workerRuntime.js.map +1 -1
- package/dist/cli/browser.d.ts +0 -1
- package/dist/cli/browser.d.ts.map +1 -1
- package/dist/cli/browser.js +0 -1
- package/dist/cli/browser.js.map +1 -1
- package/dist/cli/callerRunnerPaths.d.ts +0 -50
- package/dist/cli/callerRunnerPaths.d.ts.map +1 -1
- package/dist/cli/callerRunnerPaths.js +0 -59
- package/dist/cli/callerRunnerPaths.js.map +1 -1
- package/dist/cli/client.d.ts +0 -18
- package/dist/cli/client.d.ts.map +1 -1
- package/dist/cli/client.js +0 -28
- package/dist/cli/client.js.map +1 -1
- package/dist/cli/commandNames.d.ts +0 -7
- package/dist/cli/commandNames.d.ts.map +1 -1
- package/dist/cli/commandNames.js +1 -7
- package/dist/cli/commandNames.js.map +1 -1
- package/dist/cli/commands/auth.d.ts +0 -6
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js +0 -6
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/elementSelector.d.ts +0 -6
- package/dist/cli/commands/elementSelector.d.ts.map +1 -1
- package/dist/cli/commands/elementSelector.js +0 -7
- package/dist/cli/commands/elementSelector.js.map +1 -1
- package/dist/cli/commands/evidence.d.ts +0 -6
- package/dist/cli/commands/evidence.d.ts.map +1 -1
- package/dist/cli/commands/evidence.js +0 -6
- package/dist/cli/commands/evidence.js.map +1 -1
- package/dist/cli/commands/libraryOpen.d.ts +0 -1
- package/dist/cli/commands/libraryOpen.d.ts.map +1 -1
- package/dist/cli/commands/libraryOpen.js +0 -4
- package/dist/cli/commands/libraryOpen.js.map +1 -1
- package/dist/cli/commands/mcpServe.d.ts +0 -24
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +126 -106
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/open.d.ts +0 -8
- package/dist/cli/commands/open.d.ts.map +1 -1
- package/dist/cli/commands/open.js +0 -57
- package/dist/cli/commands/open.js.map +1 -1
- package/dist/cli/commands/profile.d.ts +3 -0
- package/dist/cli/commands/profile.d.ts.map +1 -0
- package/dist/cli/commands/profile.js +192 -0
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/reference.d.ts +0 -5
- package/dist/cli/commands/reference.d.ts.map +1 -1
- package/dist/cli/commands/reference.js +4 -27
- package/dist/cli/commands/reference.js.map +1 -1
- package/dist/cli/commands/serve.d.ts +0 -5
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +0 -34
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +0 -16
- package/dist/cli/commands/shared.d.ts.map +1 -1
- package/dist/cli/commands/shared.js +0 -19
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/status.d.ts +0 -6
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/stop.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts.map +1 -1
- package/dist/cli/commands/stop.js +0 -6
- package/dist/cli/commands/stop.js.map +1 -1
- package/dist/cli/commands/update.d.ts +0 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +0 -1
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/variants.d.ts +0 -1
- package/dist/cli/commands/variants.d.ts.map +1 -1
- package/dist/cli/commands/variants.js +13 -32
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/commands/wait.d.ts +0 -21
- package/dist/cli/commands/wait.d.ts.map +1 -1
- package/dist/cli/commands/wait.js +0 -23
- package/dist/cli/commands/wait.js.map +1 -1
- package/dist/cli/entry.d.ts +0 -10
- package/dist/cli/entry.d.ts.map +1 -1
- package/dist/cli/entry.js +0 -13
- package/dist/cli/entry.js.map +1 -1
- package/dist/cli/envelope.d.ts +1 -25
- package/dist/cli/envelope.d.ts.map +1 -1
- package/dist/cli/envelope.js +0 -19
- package/dist/cli/envelope.js.map +1 -1
- package/dist/cli/flags.d.ts +0 -7
- package/dist/cli/flags.d.ts.map +1 -1
- package/dist/cli/flags.js +0 -7
- package/dist/cli/flags.js.map +1 -1
- package/dist/cli/handoff.d.ts +0 -33
- package/dist/cli/handoff.d.ts.map +1 -1
- package/dist/cli/handoff.js +0 -42
- package/dist/cli/handoff.js.map +1 -1
- package/dist/cli/handoffStore.d.ts +0 -11
- package/dist/cli/handoffStore.d.ts.map +1 -1
- package/dist/cli/handoffStore.js +0 -10
- package/dist/cli/handoffStore.js.map +1 -1
- package/dist/cli/hostWorkNextAction.d.ts +0 -11
- package/dist/cli/hostWorkNextAction.d.ts.map +1 -1
- package/dist/cli/hostWorkNextAction.js +0 -4
- package/dist/cli/hostWorkNextAction.js.map +1 -1
- package/dist/cli/io.d.ts +0 -9
- package/dist/cli/io.d.ts.map +1 -1
- package/dist/cli/io.js +0 -1
- package/dist/cli/io.js.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.d.ts +0 -5
- package/dist/cli/resolveDefaultNodeEnv.d.ts.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.js +0 -5
- package/dist/cli/resolveDefaultNodeEnv.js.map +1 -1
- package/dist/cli/router.d.ts +0 -21
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +8 -46
- package/dist/cli/router.js.map +1 -1
- package/dist/cli/runnerSelection.d.ts +0 -58
- package/dist/cli/runnerSelection.d.ts.map +1 -1
- package/dist/cli/runnerSelection.js +0 -16
- package/dist/cli/runnerSelection.js.map +1 -1
- package/dist/cli/serverHandshake.d.ts +0 -36
- package/dist/cli/serverHandshake.d.ts.map +1 -1
- package/dist/cli/serverHandshake.js +0 -29
- package/dist/cli/serverHandshake.js.map +1 -1
- package/dist/cli/serverUnavailable.d.ts +0 -1
- package/dist/cli/serverUnavailable.d.ts.map +1 -1
- package/dist/cli/serverUnavailable.js +0 -1
- package/dist/cli/serverUnavailable.js.map +1 -1
- package/dist/cli/serverVersion.d.ts +0 -22
- package/dist/cli/serverVersion.d.ts.map +1 -1
- package/dist/cli/serverVersion.js +0 -12
- package/dist/cli/serverVersion.js.map +1 -1
- package/dist/cli/telemetry.d.ts +0 -4
- package/dist/cli/telemetry.d.ts.map +1 -1
- package/dist/cli/telemetry.js +0 -4
- package/dist/cli/telemetry.js.map +1 -1
- package/dist/config/evaluateFlags.d.ts +0 -4
- package/dist/config/evaluateFlags.d.ts.map +1 -1
- package/dist/config/evaluateFlags.js +0 -11
- package/dist/config/evaluateFlags.js.map +1 -1
- package/dist/config/featureFlagUserKey.d.ts +0 -3
- package/dist/config/featureFlagUserKey.d.ts.map +1 -1
- package/dist/config/featureFlagUserKey.js +0 -3
- package/dist/config/featureFlagUserKey.js.map +1 -1
- package/dist/config/flags.d.ts +0 -14
- package/dist/config/flags.d.ts.map +1 -1
- package/dist/config/flags.js +0 -27
- package/dist/config/flags.js.map +1 -1
- package/dist/config/proxy.d.ts +0 -3
- package/dist/config/proxy.d.ts.map +1 -1
- package/dist/config/proxy.js +0 -11
- package/dist/config/proxy.js.map +1 -1
- package/dist/config/telemetry.d.ts +0 -13
- package/dist/config/telemetry.d.ts.map +1 -1
- package/dist/config/telemetry.js +0 -13
- package/dist/config/telemetry.js.map +1 -1
- package/dist/config/telemetryContract.d.ts +0 -1
- package/dist/config/telemetryContract.d.ts.map +1 -1
- package/dist/config/telemetryContract.js +0 -1
- package/dist/config/telemetryContract.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +0 -69
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +0 -68
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +0 -2
- package/dist/index-core.js.map +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -105
- package/dist/index.js.map +1 -1
- package/dist/install/allowlists.d.ts +0 -32
- package/dist/install/allowlists.d.ts.map +1 -1
- package/dist/install/allowlists.js +0 -44
- package/dist/install/allowlists.js.map +1 -1
- package/dist/install/automaticCliUpdate.d.ts +0 -6
- package/dist/install/automaticCliUpdate.d.ts.map +1 -1
- package/dist/install/automaticCliUpdate.js +0 -13
- package/dist/install/automaticCliUpdate.js.map +1 -1
- package/dist/install/channelCli.d.ts +0 -1
- package/dist/install/channelCli.d.ts.map +1 -1
- package/dist/install/channelCli.js +0 -3
- package/dist/install/channelCli.js.map +1 -1
- package/dist/install/channelManager.d.ts +0 -14
- package/dist/install/channelManager.d.ts.map +1 -1
- package/dist/install/channelManager.js +0 -22
- package/dist/install/channelManager.js.map +1 -1
- package/dist/install/codexGuidance.d.ts +0 -1
- package/dist/install/codexGuidance.d.ts.map +1 -1
- package/dist/install/codexGuidance.js +0 -7
- package/dist/install/codexGuidance.js.map +1 -1
- package/dist/install/globalBootstrap.d.ts +0 -25
- package/dist/install/globalBootstrap.d.ts.map +1 -1
- package/dist/install/globalBootstrap.js +0 -10
- package/dist/install/globalBootstrap.js.map +1 -1
- package/dist/install/harnesses.d.ts +0 -66
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +0 -60
- package/dist/install/harnesses.js.map +1 -1
- package/dist/install/installationChannel.d.ts +0 -1
- package/dist/install/installationChannel.d.ts.map +1 -1
- package/dist/install/installationChannel.js +0 -1
- package/dist/install/installationChannel.js.map +1 -1
- package/dist/install/legacyMcp.d.ts +0 -23
- package/dist/install/legacyMcp.d.ts.map +1 -1
- package/dist/install/legacyMcp.js +3 -46
- package/dist/install/legacyMcp.js.map +1 -1
- package/dist/install/mcpRegistration.d.ts +0 -41
- package/dist/install/mcpRegistration.d.ts.map +1 -1
- package/dist/install/mcpRegistration.js +2 -70
- package/dist/install/mcpRegistration.js.map +1 -1
- package/dist/library/HubClient.d.ts +1 -2
- package/dist/library/HubClient.d.ts.map +1 -1
- package/dist/library/HubClient.js +11 -5
- package/dist/library/HubClient.js.map +1 -1
- package/dist/library/HubServer.d.ts +0 -1
- package/dist/library/HubServer.d.ts.map +1 -1
- package/dist/library/HubServer.js +19 -1
- package/dist/library/HubServer.js.map +1 -1
- package/dist/library/StaticPreviewServer.d.ts +0 -1
- package/dist/library/StaticPreviewServer.d.ts.map +1 -1
- package/dist/library/StaticPreviewServer.js +0 -1
- package/dist/library/StaticPreviewServer.js.map +1 -1
- package/dist/library/http.d.ts +0 -2
- package/dist/library/http.d.ts.map +1 -1
- package/dist/library/http.js +0 -2
- package/dist/library/http.js.map +1 -1
- package/dist/library/importFiles.d.ts +0 -6
- package/dist/library/importFiles.d.ts.map +1 -1
- package/dist/library/importFiles.js +45 -11
- package/dist/library/importFiles.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +0 -40
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +0 -34
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/prompts/commentVariationPrompts.d.ts +0 -5
- package/dist/prompts/commentVariationPrompts.d.ts.map +1 -1
- package/dist/prompts/commentVariationPrompts.js +0 -5
- package/dist/prompts/commentVariationPrompts.js.map +1 -1
- package/dist/prototype-host.js +0 -15
- package/dist/prototype-host.js.map +1 -1
- package/dist/proxy-middleware/preview-bridge.d.ts +0 -2
- package/dist/proxy-middleware/preview-bridge.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-bridge.js +0 -2
- package/dist/proxy-middleware/preview-bridge.js.map +1 -1
- package/dist/proxy-middleware/preview-connections.d.ts +0 -1
- package/dist/proxy-middleware/preview-connections.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-connections.js +0 -1
- package/dist/proxy-middleware/preview-connections.js.map +1 -1
- package/dist/proxy-middleware/proxy-config.d.ts +0 -12
- package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
- package/dist/proxy-middleware/proxy-config.js +2 -49
- package/dist/proxy-middleware/proxy-config.js.map +1 -1
- package/dist/routes/account.d.ts +0 -1
- package/dist/routes/account.d.ts.map +1 -1
- package/dist/routes/account.js +0 -2
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/agentVariants.d.ts +0 -15
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +132 -329
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/routes/cli.d.ts +0 -17
- package/dist/routes/cli.d.ts.map +1 -1
- package/dist/routes/cli.js +0 -13
- package/dist/routes/cli.js.map +1 -1
- package/dist/routes/emptyStatePage.d.ts +0 -12
- package/dist/routes/emptyStatePage.d.ts.map +1 -1
- package/dist/routes/emptyStatePage.js +0 -12
- package/dist/routes/emptyStatePage.js.map +1 -1
- package/dist/routes/git.d.ts.map +1 -1
- package/dist/routes/git.js +0 -13
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/inlineStartTracker.d.ts +0 -16
- package/dist/routes/inlineStartTracker.d.ts.map +1 -1
- package/dist/routes/inlineStartTracker.js.map +1 -1
- package/dist/routes/integrations.d.ts +0 -6
- package/dist/routes/integrations.d.ts.map +1 -1
- package/dist/routes/integrations.js +0 -6
- package/dist/routes/integrations.js.map +1 -1
- package/dist/routes/library/app.d.ts +0 -1
- package/dist/routes/library/app.d.ts.map +1 -1
- package/dist/routes/library/app.js +1 -3
- package/dist/routes/library/app.js.map +1 -1
- package/dist/routes/library/index.d.ts +0 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +3 -1
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/middleware.d.ts +0 -3
- package/dist/routes/library/middleware.d.ts.map +1 -1
- package/dist/routes/library/middleware.js +0 -4
- package/dist/routes/library/middleware.js.map +1 -1
- package/dist/routes/library/navigation.d.ts +0 -1
- package/dist/routes/library/navigation.d.ts.map +1 -1
- package/dist/routes/library/navigation.js +0 -1
- package/dist/routes/library/navigation.js.map +1 -1
- package/dist/routes/library/profiles.d.ts +5 -0
- package/dist/routes/library/profiles.d.ts.map +1 -0
- package/dist/routes/library/profiles.js +182 -0
- package/dist/routes/library/profiles.js.map +1 -0
- package/dist/routes/library/projects.d.ts +0 -1
- package/dist/routes/library/projects.d.ts.map +1 -1
- package/dist/routes/library/projects.js +0 -1
- package/dist/routes/library/projects.js.map +1 -1
- package/dist/routes/library/schemas.d.ts +2 -2
- package/dist/routes/library/staticPreview.d.ts +0 -1
- package/dist/routes/library/staticPreview.d.ts.map +1 -1
- package/dist/routes/library/staticPreview.js +0 -1
- package/dist/routes/library/staticPreview.js.map +1 -1
- package/dist/routes/library/types.d.ts +2 -0
- package/dist/routes/library/types.d.ts.map +1 -1
- package/dist/routes/library/variants.d.ts +0 -1
- package/dist/routes/library/variants.d.ts.map +1 -1
- package/dist/routes/library/variants.js +0 -1
- package/dist/routes/library/variants.js.map +1 -1
- package/dist/routes/mcp.d.ts +0 -3
- package/dist/routes/mcp.d.ts.map +1 -1
- package/dist/routes/mcp.js +0 -5
- package/dist/routes/mcp.js.map +1 -1
- package/dist/routes/prototypeHost.d.ts +0 -2
- package/dist/routes/prototypeHost.d.ts.map +1 -1
- package/dist/routes/prototypeHost.js +6 -32
- package/dist/routes/prototypeHost.js.map +1 -1
- package/dist/routes/static.d.ts +0 -3
- package/dist/routes/static.d.ts.map +1 -1
- package/dist/routes/static.js +0 -6
- package/dist/routes/static.js.map +1 -1
- package/dist/routes/support.d.ts +0 -3
- package/dist/routes/support.d.ts.map +1 -1
- package/dist/routes/support.js +0 -3
- package/dist/routes/support.js.map +1 -1
- package/dist/server.d.ts +0 -42
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -129
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +0 -76
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +0 -112
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/BrowserAgentClient.d.ts +1 -21
- package/dist/services/BrowserAgentClient.d.ts.map +1 -1
- package/dist/services/BrowserAgentClient.js +0 -10
- package/dist/services/BrowserAgentClient.js.map +1 -1
- package/dist/services/BundleStore.d.ts +0 -18
- package/dist/services/BundleStore.d.ts.map +1 -1
- package/dist/services/BundleStore.js +0 -10
- package/dist/services/BundleStore.js.map +1 -1
- package/dist/services/CliLogForwarder.d.ts +0 -26
- package/dist/services/CliLogForwarder.d.ts.map +1 -1
- package/dist/services/CliLogForwarder.js +1 -33
- package/dist/services/CliLogForwarder.js.map +1 -1
- package/dist/services/CommitMessageGenerator.d.ts +0 -6
- package/dist/services/CommitMessageGenerator.d.ts.map +1 -1
- package/dist/services/CommitMessageGenerator.js +0 -3
- package/dist/services/CommitMessageGenerator.js.map +1 -1
- package/dist/services/ComponentSearchService.d.ts +2 -16
- package/dist/services/ComponentSearchService.d.ts.map +1 -1
- package/dist/services/ComponentSearchService.js +2 -56
- package/dist/services/ComponentSearchService.js.map +1 -1
- package/dist/services/ConfigManager.d.ts +0 -113
- package/dist/services/ConfigManager.d.ts.map +1 -1
- package/dist/services/ConfigManager.js +0 -101
- package/dist/services/ConfigManager.js.map +1 -1
- package/dist/services/DependencyPreparationService.d.ts +0 -6
- package/dist/services/DependencyPreparationService.d.ts.map +1 -1
- package/dist/services/DependencyPreparationService.js +0 -22
- package/dist/services/DependencyPreparationService.js.map +1 -1
- package/dist/services/DevServerRuntimeService.d.ts +0 -20
- package/dist/services/DevServerRuntimeService.d.ts.map +1 -1
- package/dist/services/DevServerRuntimeService.js +0 -46
- package/dist/services/DevServerRuntimeService.js.map +1 -1
- package/dist/services/FeatureFlagService.d.ts +0 -15
- package/dist/services/FeatureFlagService.d.ts.map +1 -1
- package/dist/services/FeatureFlagService.js +0 -23
- package/dist/services/FeatureFlagService.js.map +1 -1
- package/dist/services/GatewayClient.d.ts +0 -27
- package/dist/services/GatewayClient.d.ts.map +1 -1
- package/dist/services/GatewayClient.js +0 -25
- package/dist/services/GatewayClient.js.map +1 -1
- package/dist/services/HistoryReplayService.d.ts +0 -31
- package/dist/services/HistoryReplayService.d.ts.map +1 -1
- package/dist/services/HistoryReplayService.js +2 -55
- package/dist/services/HistoryReplayService.js.map +1 -1
- package/dist/services/HubDiscovery.d.ts +0 -8
- package/dist/services/HubDiscovery.d.ts.map +1 -1
- package/dist/services/HubDiscovery.js +0 -8
- package/dist/services/HubDiscovery.js.map +1 -1
- package/dist/services/HubNavigation.d.ts +0 -6
- package/dist/services/HubNavigation.d.ts.map +1 -1
- package/dist/services/HubNavigation.js +5 -8
- package/dist/services/HubNavigation.js.map +1 -1
- package/dist/services/IntegrationsClient.d.ts +20 -38
- package/dist/services/IntegrationsClient.d.ts.map +1 -1
- package/dist/services/IntegrationsClient.js +71 -31
- package/dist/services/IntegrationsClient.js.map +1 -1
- package/dist/services/LocalGitService.d.ts +0 -57
- package/dist/services/LocalGitService.d.ts.map +1 -1
- package/dist/services/LocalGitService.js +4 -85
- package/dist/services/LocalGitService.js.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -9
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +0 -9
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/MCPVariantsTelemetry.d.ts +0 -2
- package/dist/services/MCPVariantsTelemetry.d.ts.map +1 -1
- package/dist/services/MCPVariantsTelemetry.js +0 -2
- package/dist/services/MCPVariantsTelemetry.js.map +1 -1
- package/dist/services/OperatingSystemServices.d.ts +0 -12
- package/dist/services/OperatingSystemServices.d.ts.map +1 -1
- package/dist/services/OperatingSystemServices.js +0 -7
- package/dist/services/OperatingSystemServices.js.map +1 -1
- package/dist/services/PRTitleGenerator.d.ts +0 -7
- package/dist/services/PRTitleGenerator.d.ts.map +1 -1
- package/dist/services/PRTitleGenerator.js +0 -3
- package/dist/services/PRTitleGenerator.js.map +1 -1
- package/dist/services/ProjectCardPreviews.d.ts +0 -5
- package/dist/services/ProjectCardPreviews.d.ts.map +1 -1
- package/dist/services/ProjectCardPreviews.js +0 -5
- package/dist/services/ProjectCardPreviews.js.map +1 -1
- package/dist/services/ProjectDetectionService.d.ts +0 -4
- package/dist/services/ProjectDetectionService.d.ts.map +1 -1
- package/dist/services/ProjectDetectionService.js +2 -44
- package/dist/services/ProjectDetectionService.js.map +1 -1
- package/dist/services/ProjectFolderPicker.d.ts +0 -3
- package/dist/services/ProjectFolderPicker.d.ts.map +1 -1
- package/dist/services/ProjectFolderPicker.js +0 -4
- package/dist/services/ProjectFolderPicker.js.map +1 -1
- package/dist/services/ProjectImport.d.ts +0 -1
- package/dist/services/ProjectImport.d.ts.map +1 -1
- package/dist/services/ProjectImport.js +0 -3
- package/dist/services/ProjectImport.js.map +1 -1
- package/dist/services/ProjectLibrary.d.ts +0 -18
- package/dist/services/ProjectLibrary.d.ts.map +1 -1
- package/dist/services/ProjectLibrary.js +0 -20
- package/dist/services/ProjectLibrary.js.map +1 -1
- package/dist/services/ProjectMetadataStore.d.ts +0 -73
- package/dist/services/ProjectMetadataStore.d.ts.map +1 -1
- package/dist/services/ProjectMetadataStore.js +0 -90
- package/dist/services/ProjectMetadataStore.js.map +1 -1
- package/dist/services/ProjectPackageManager.d.ts +0 -12
- package/dist/services/ProjectPackageManager.d.ts.map +1 -1
- package/dist/services/ProjectPackageManager.js +0 -16
- package/dist/services/ProjectPackageManager.js.map +1 -1
- package/dist/services/ProjectRegistry.d.ts +2 -18
- package/dist/services/ProjectRegistry.d.ts.map +1 -1
- package/dist/services/ProjectRegistry.js +0 -18
- package/dist/services/ProjectRegistry.js.map +1 -1
- package/dist/services/ProjectRuntimeService.d.ts +0 -4
- package/dist/services/ProjectRuntimeService.d.ts.map +1 -1
- package/dist/services/ProjectRuntimeService.js +0 -5
- package/dist/services/ProjectRuntimeService.js.map +1 -1
- package/dist/services/ProjectScreenshotService.d.ts +0 -5
- package/dist/services/ProjectScreenshotService.d.ts.map +1 -1
- package/dist/services/ProjectScreenshotService.js +0 -6
- package/dist/services/ProjectScreenshotService.js.map +1 -1
- package/dist/services/ProjectStorage.d.ts +0 -4
- package/dist/services/ProjectStorage.d.ts.map +1 -1
- package/dist/services/ProjectStorage.js +0 -4
- package/dist/services/ProjectStorage.js.map +1 -1
- package/dist/services/PrototypeBuildService.d.ts +1 -23
- package/dist/services/PrototypeBuildService.d.ts.map +1 -1
- package/dist/services/PrototypeBuildService.js +6 -31
- package/dist/services/PrototypeBuildService.js.map +1 -1
- package/dist/services/PrototypeDeployService.d.ts +0 -20
- package/dist/services/PrototypeDeployService.d.ts.map +1 -1
- package/dist/services/PrototypeDeployService.js +1 -24
- package/dist/services/PrototypeDeployService.js.map +1 -1
- package/dist/services/RequestAuthContext.d.ts +0 -5
- package/dist/services/RequestAuthContext.d.ts.map +1 -1
- package/dist/services/RequestAuthContext.js +0 -5
- package/dist/services/RequestAuthContext.js.map +1 -1
- package/dist/services/SessionBridgeService.d.ts.map +1 -1
- package/dist/services/SessionBridgeService.js +0 -2
- package/dist/services/SessionBridgeService.js.map +1 -1
- package/dist/services/SessionService.d.ts +0 -4
- package/dist/services/SessionService.d.ts.map +1 -1
- package/dist/services/SessionService.js +1 -22
- package/dist/services/SessionService.js.map +1 -1
- package/dist/services/StaticFileService.d.ts +0 -9
- package/dist/services/StaticFileService.d.ts.map +1 -1
- package/dist/services/StaticFileService.js +0 -11
- package/dist/services/StaticFileService.js.map +1 -1
- package/dist/services/StaticLibraryPreviews.d.ts +0 -3
- package/dist/services/StaticLibraryPreviews.d.ts.map +1 -1
- package/dist/services/StaticLibraryPreviews.js +0 -3
- package/dist/services/StaticLibraryPreviews.js.map +1 -1
- package/dist/services/StaticPreviewServer.d.ts +0 -16
- package/dist/services/StaticPreviewServer.d.ts.map +1 -1
- package/dist/services/StaticPreviewServer.js +2 -28
- package/dist/services/StaticPreviewServer.js.map +1 -1
- package/dist/services/SupabaseAuthService.d.ts +0 -11
- package/dist/services/SupabaseAuthService.d.ts.map +1 -1
- package/dist/services/SupabaseAuthService.js +0 -11
- package/dist/services/SupabaseAuthService.js.map +1 -1
- package/dist/services/SupportTicketService.d.ts +0 -4
- package/dist/services/SupportTicketService.d.ts.map +1 -1
- package/dist/services/SupportTicketService.js +0 -4
- package/dist/services/SupportTicketService.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +9 -182
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +11 -195
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/TreeStore.d.ts +0 -72
- package/dist/services/TreeStore.d.ts.map +1 -1
- package/dist/services/TreeStore.js +0 -93
- package/dist/services/TreeStore.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +1 -32
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +36 -66
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantHistoryService.d.ts +12 -114
- package/dist/services/VariantHistoryService.d.ts.map +1 -1
- package/dist/services/VariantHistoryService.js +56 -144
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +6 -31
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +86 -37
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts +0 -3
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +2 -5
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/WorktreeManager.d.ts +0 -217
- package/dist/services/WorktreeManager.d.ts.map +1 -1
- package/dist/services/WorktreeManager.js +3 -321
- package/dist/services/WorktreeManager.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -25
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +0 -25
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.d.ts +0 -29
- package/dist/services/adapters/TailwindTokenAdapter.d.ts.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.js +1 -46
- package/dist/services/adapters/TailwindTokenAdapter.js.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.d.ts +0 -18
- package/dist/services/createAgentVariantsOrchestrator.d.ts.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.js +0 -22
- package/dist/services/createAgentVariantsOrchestrator.js.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.d.ts +0 -25
- package/dist/services/extractors/CSSVariableExtractor.d.ts.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.js +1 -42
- package/dist/services/extractors/CSSVariableExtractor.js.map +1 -1
- package/dist/services/historyRoots.d.ts +0 -12
- package/dist/services/historyRoots.d.ts.map +1 -1
- package/dist/services/historyRoots.js +0 -13
- package/dist/services/historyRoots.js.map +1 -1
- package/dist/services/libraryErrors.d.ts +0 -1
- package/dist/services/libraryErrors.d.ts.map +1 -1
- package/dist/services/libraryErrors.js +0 -1
- package/dist/services/libraryErrors.js.map +1 -1
- package/dist/services/pendingLogin.d.ts +0 -13
- package/dist/services/pendingLogin.d.ts.map +1 -1
- package/dist/services/pendingLogin.js +0 -3
- package/dist/services/pendingLogin.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +446 -0
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -0
- package/dist/services/profiles/DesignProfiles.js +552 -0
- package/dist/services/profiles/DesignProfiles.js.map +1 -0
- package/dist/services/profiles/MemoryModelService.d.ts +14 -0
- package/dist/services/profiles/MemoryModelService.d.ts.map +1 -0
- package/dist/services/profiles/MemoryModelService.js +113 -0
- package/dist/services/profiles/MemoryModelService.js.map +1 -0
- package/dist/services/profiles/MemoryRuntime.d.ts +26 -0
- package/dist/services/profiles/MemoryRuntime.d.ts.map +1 -0
- package/dist/services/profiles/MemoryRuntime.js +192 -0
- package/dist/services/profiles/MemoryRuntime.js.map +1 -0
- package/dist/services/profiles/ProfileAgent.d.ts +20 -0
- package/dist/services/profiles/ProfileAgent.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAgent.js +196 -0
- package/dist/services/profiles/ProfileAgent.js.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts +23 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.js +114 -0
- package/dist/services/profiles/ProfileAnalysis.js.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts +15 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.js +40 -0
- package/dist/services/profiles/ProfileImportSchedule.js.map +1 -0
- package/dist/services/profiles/ProfileImports.d.ts +47 -0
- package/dist/services/profiles/ProfileImports.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImports.js +248 -0
- package/dist/services/profiles/ProfileImports.js.map +1 -0
- package/dist/services/profiles/ProfileIndex.d.ts +18 -0
- package/dist/services/profiles/ProfileIndex.d.ts.map +1 -0
- package/dist/services/profiles/ProfileIndex.js +119 -0
- package/dist/services/profiles/ProfileIndex.js.map +1 -0
- package/dist/services/profiles/ProfileMedia.d.ts +10 -0
- package/dist/services/profiles/ProfileMedia.d.ts.map +1 -0
- package/dist/services/profiles/ProfileMedia.js +76 -0
- package/dist/services/profiles/ProfileMedia.js.map +1 -0
- package/dist/services/profiles/ProfilePreparation.d.ts +17 -0
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -0
- package/dist/services/profiles/ProfilePreparation.js +214 -0
- package/dist/services/profiles/ProfilePreparation.js.map +1 -0
- package/dist/services/profiles/ProfileVariants.d.ts +33 -0
- package/dist/services/profiles/ProfileVariants.d.ts.map +1 -0
- package/dist/services/profiles/ProfileVariants.js +129 -0
- package/dist/services/profiles/ProfileVariants.js.map +1 -0
- package/dist/services/profiles/analysisBatch.d.ts +53 -0
- package/dist/services/profiles/analysisBatch.d.ts.map +1 -0
- package/dist/services/profiles/analysisBatch.js +86 -0
- package/dist/services/profiles/analysisBatch.js.map +1 -0
- package/dist/services/profiles/boardPage.d.ts +12 -0
- package/dist/services/profiles/boardPage.d.ts.map +1 -0
- package/dist/services/profiles/boardPage.js +156 -0
- package/dist/services/profiles/boardPage.js.map +1 -0
- package/dist/services/profiles/engineAccess.d.ts +2 -0
- package/dist/services/profiles/engineAccess.d.ts.map +1 -0
- package/dist/services/profiles/engineAccess.js +55 -0
- package/dist/services/profiles/engineAccess.js.map +1 -0
- package/dist/services/profiles/memoryComponents.d.ts +7 -0
- package/dist/services/profiles/memoryComponents.d.ts.map +1 -0
- package/dist/services/profiles/memoryComponents.js +105 -0
- package/dist/services/profiles/memoryComponents.js.map +1 -0
- package/dist/services/profiles/modelContract.d.ts +14 -0
- package/dist/services/profiles/modelContract.d.ts.map +1 -0
- package/dist/services/profiles/modelContract.js +124 -0
- package/dist/services/profiles/modelContract.js.map +1 -0
- package/dist/services/profiles/nativeImages.d.ts +3 -0
- package/dist/services/profiles/nativeImages.d.ts.map +1 -0
- package/dist/services/profiles/nativeImages.js +72 -0
- package/dist/services/profiles/nativeImages.js.map +1 -0
- package/dist/services/profiles/profileAccount.d.ts +4 -0
- package/dist/services/profiles/profileAccount.d.ts.map +1 -0
- package/dist/services/profiles/profileAccount.js +21 -0
- package/dist/services/profiles/profileAccount.js.map +1 -0
- package/dist/services/profiles/profileContext.d.ts +18 -0
- package/dist/services/profiles/profileContext.d.ts.map +1 -0
- package/dist/services/profiles/profileContext.js +189 -0
- package/dist/services/profiles/profileContext.js.map +1 -0
- package/dist/services/profiles/profileEvidence.d.ts +3 -0
- package/dist/services/profiles/profileEvidence.d.ts.map +1 -0
- package/dist/services/profiles/profileEvidence.js +15 -0
- package/dist/services/profiles/profileEvidence.js.map +1 -0
- package/dist/services/profiles/profileQueries.d.ts +2 -0
- package/dist/services/profiles/profileQueries.d.ts.map +1 -0
- package/dist/services/profiles/profileQueries.js +23 -0
- package/dist/services/profiles/profileQueries.js.map +1 -0
- package/dist/services/profiles/profileSelection.d.ts +29 -0
- package/dist/services/profiles/profileSelection.d.ts.map +1 -0
- package/dist/services/profiles/profileSelection.js +43 -0
- package/dist/services/profiles/profileSelection.js.map +1 -0
- package/dist/services/profiles/xPage.d.ts +4 -0
- package/dist/services/profiles/xPage.d.ts.map +1 -0
- package/dist/services/profiles/xPage.js +58 -0
- package/dist/services/profiles/xPage.js.map +1 -0
- package/dist/services/referenceImages.d.ts +17 -0
- package/dist/services/referenceImages.d.ts.map +1 -0
- package/dist/services/referenceImages.js +138 -0
- package/dist/services/referenceImages.js.map +1 -0
- package/dist/services/staticProjectTarget.d.ts +0 -4
- package/dist/services/staticProjectTarget.d.ts.map +1 -1
- package/dist/services/staticProjectTarget.js +0 -4
- package/dist/services/staticProjectTarget.js.map +1 -1
- package/dist/services/staticStarter.d.ts +0 -20
- package/dist/services/staticStarter.d.ts.map +1 -1
- package/dist/services/staticStarter.js +0 -20
- package/dist/services/staticStarter.js.map +1 -1
- package/dist/services/templates/designCatalog.d.ts +0 -11
- package/dist/services/templates/designCatalog.d.ts.map +1 -1
- package/dist/services/templates/designCatalog.js +0 -26
- package/dist/services/templates/designCatalog.js.map +1 -1
- package/dist/services/templates/viteReactTs.d.ts +0 -26
- package/dist/services/templates/viteReactTs.d.ts.map +1 -1
- package/dist/services/templates/viteReactTs.js +0 -20
- package/dist/services/templates/viteReactTs.js.map +1 -1
- package/dist/storage/library/BundleMetadataStore.d.ts +0 -16
- package/dist/storage/library/BundleMetadataStore.d.ts.map +1 -1
- package/dist/storage/library/BundleMetadataStore.js +0 -17
- package/dist/storage/library/BundleMetadataStore.js.map +1 -1
- package/dist/storage/library/CoordinatorRecords.d.ts +0 -9
- package/dist/storage/library/CoordinatorRecords.d.ts.map +1 -1
- package/dist/storage/library/CoordinatorRecords.js +0 -9
- package/dist/storage/library/CoordinatorRecords.js.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.d.ts +0 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.js +0 -4
- package/dist/storage/library/ProjectPreviewCache.js.map +1 -1
- package/dist/storage/library/ProjectRecords.d.ts +0 -17
- package/dist/storage/library/ProjectRecords.d.ts.map +1 -1
- package/dist/storage/library/ProjectRecords.js +0 -17
- package/dist/storage/library/ProjectRecords.js.map +1 -1
- package/dist/storage/library/database.d.ts +0 -3
- package/dist/storage/library/database.d.ts.map +1 -1
- package/dist/storage/library/database.js +0 -3
- package/dist/storage/library/database.js.map +1 -1
- package/dist/storage/library/migrations.d.ts +0 -2
- package/dist/storage/library/migrations.d.ts.map +1 -1
- package/dist/storage/library/migrations.js +0 -2
- package/dist/storage/library/migrations.js.map +1 -1
- package/dist/storage/library/sourcePresentation.d.ts +0 -1
- package/dist/storage/library/sourcePresentation.d.ts.map +1 -1
- package/dist/storage/library/sourcePresentation.js +0 -1
- package/dist/storage/library/sourcePresentation.js.map +1 -1
- package/dist/storage/profiles/ProfileRecords.d.ts +199 -0
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -0
- package/dist/storage/profiles/ProfileRecords.js +659 -0
- package/dist/storage/profiles/ProfileRecords.js.map +1 -0
- package/dist/storage/profiles/contextReceipts.d.ts +14 -0
- package/dist/storage/profiles/contextReceipts.d.ts.map +1 -0
- package/dist/storage/profiles/contextReceipts.js +52 -0
- package/dist/storage/profiles/contextReceipts.js.map +1 -0
- package/dist/storage/profiles/migrations.d.ts +4 -0
- package/dist/storage/profiles/migrations.d.ts.map +1 -0
- package/dist/storage/profiles/migrations.js +41 -0
- package/dist/storage/profiles/migrations.js.map +1 -0
- package/dist/storage/profiles/schema.d.ts +961 -0
- package/dist/storage/profiles/schema.d.ts.map +1 -0
- package/dist/storage/profiles/schema.js +102 -0
- package/dist/storage/profiles/schema.js.map +1 -0
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts +0 -11
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts.map +1 -1
- package/dist/storage/project-metadata/ProjectMetadataRecords.js +0 -13
- package/dist/storage/project-metadata/ProjectMetadataRecords.js.map +1 -1
- package/dist/storage/project-metadata/database.d.ts +0 -1
- package/dist/storage/project-metadata/database.d.ts.map +1 -1
- package/dist/storage/project-metadata/database.js +0 -7
- package/dist/storage/project-metadata/database.js.map +1 -1
- package/dist/storage/project-metadata/migrations.d.ts +0 -42
- package/dist/storage/project-metadata/migrations.d.ts.map +1 -1
- package/dist/storage/project-metadata/migrations.js +0 -41
- package/dist/storage/project-metadata/migrations.js.map +1 -1
- package/dist/types/account.d.ts +0 -1
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/change-request-types.d.ts +5 -167
- package/dist/types/change-request-types.d.ts.map +1 -1
- package/dist/types/change-types.d.ts +0 -1
- package/dist/types/change-types.d.ts.map +1 -1
- package/dist/types/change-types.js +0 -1
- package/dist/types/change-types.js.map +1 -1
- package/dist/types/design-profile.d.ts +570 -0
- package/dist/types/design-profile.d.ts.map +1 -0
- package/dist/types/design-profile.js +127 -0
- package/dist/types/design-profile.js.map +1 -0
- package/dist/types/project-library.d.ts +0 -1
- package/dist/types/project-library.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.d.ts +0 -69
- package/dist/types/style-manipulation-types.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.js +0 -26
- package/dist/types/style-manipulation-types.js.map +1 -1
- package/dist/types/token-types.d.ts +0 -30
- package/dist/types/token-types.d.ts.map +1 -1
- package/dist/types/token-types.js +0 -1
- package/dist/types/token-types.js.map +1 -1
- package/dist/types/variant-history.d.ts +3 -39
- package/dist/types/variant-history.d.ts.map +1 -1
- package/dist/types/variant-reference.d.ts +46 -0
- package/dist/types/variant-reference.d.ts.map +1 -0
- package/dist/types/variant-reference.js +58 -0
- package/dist/types/variant-reference.js.map +1 -0
- package/dist/types/x-bookmarks.d.ts +352 -0
- package/dist/types/x-bookmarks.d.ts.map +1 -0
- package/dist/types/x-bookmarks.js +56 -0
- package/dist/types/x-bookmarks.js.map +1 -0
- package/dist/utils/ProviderRateLimit.d.ts +7 -0
- package/dist/utils/ProviderRateLimit.d.ts.map +1 -0
- package/dist/utils/ProviderRateLimit.js +36 -0
- package/dist/utils/ProviderRateLimit.js.map +1 -0
- package/dist/utils/branchNames.d.ts +0 -1
- package/dist/utils/branchNames.d.ts.map +1 -1
- package/dist/utils/branchNames.js +0 -2
- package/dist/utils/branchNames.js.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.d.ts +0 -12
- package/dist/utils/cloneOrCopyDirSync.d.ts.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.js +0 -16
- package/dist/utils/cloneOrCopyDirSync.js.map +1 -1
- package/dist/utils/devServerCommand.d.ts +0 -23
- package/dist/utils/devServerCommand.d.ts.map +1 -1
- package/dist/utils/devServerCommand.js +0 -24
- package/dist/utils/devServerCommand.js.map +1 -1
- package/dist/utils/devServerError.d.ts +0 -16
- package/dist/utils/devServerError.d.ts.map +1 -1
- package/dist/utils/devServerError.js +0 -17
- package/dist/utils/devServerError.js.map +1 -1
- package/dist/utils/displayLocale.d.ts +0 -2
- package/dist/utils/displayLocale.d.ts.map +1 -1
- package/dist/utils/displayLocale.js +0 -2
- package/dist/utils/displayLocale.js.map +1 -1
- package/dist/utils/elementFileHintSignals.d.ts +0 -5
- package/dist/utils/elementFileHintSignals.d.ts.map +1 -1
- package/dist/utils/elementFileHintSignals.js +0 -5
- package/dist/utils/elementFileHintSignals.js.map +1 -1
- package/dist/utils/formatElementTargetingContext.d.ts +0 -6
- package/dist/utils/formatElementTargetingContext.d.ts.map +1 -1
- package/dist/utils/formatElementTargetingContext.js +3 -9
- package/dist/utils/formatElementTargetingContext.js.map +1 -1
- package/dist/utils/hostAgentEnv.d.ts +0 -17
- package/dist/utils/hostAgentEnv.d.ts.map +1 -1
- package/dist/utils/hostAgentEnv.js +0 -17
- package/dist/utils/hostAgentEnv.js.map +1 -1
- package/dist/utils/htmlDocument.d.ts +0 -5
- package/dist/utils/htmlDocument.d.ts.map +1 -1
- package/dist/utils/htmlDocument.js +2 -7
- package/dist/utils/htmlDocument.js.map +1 -1
- package/dist/utils/internalGitIdentity.d.ts +0 -5
- package/dist/utils/internalGitIdentity.d.ts.map +1 -1
- package/dist/utils/internalGitIdentity.js +0 -5
- package/dist/utils/internalGitIdentity.js.map +1 -1
- package/dist/utils/logger.d.ts +0 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +2 -19
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/loginShellPath.d.ts +0 -9
- package/dist/utils/loginShellPath.d.ts.map +1 -1
- package/dist/utils/loginShellPath.js +0 -69
- package/dist/utils/loginShellPath.js.map +1 -1
- package/dist/utils/loopback.d.ts +0 -1
- package/dist/utils/loopback.d.ts.map +1 -1
- package/dist/utils/loopback.js +0 -1
- package/dist/utils/loopback.js.map +1 -1
- package/dist/utils/pid.d.ts +0 -1
- package/dist/utils/pid.d.ts.map +1 -1
- package/dist/utils/pid.js +0 -1
- package/dist/utils/pid.js.map +1 -1
- package/dist/utils/portUtils.d.ts +0 -15
- package/dist/utils/portUtils.d.ts.map +1 -1
- package/dist/utils/portUtils.js +0 -21
- package/dist/utils/portUtils.js.map +1 -1
- package/dist/utils/queueAccess.d.ts +0 -9
- package/dist/utils/queueAccess.d.ts.map +1 -1
- package/dist/utils/queueAccess.js +0 -9
- package/dist/utils/queueAccess.js.map +1 -1
- package/dist/utils/skillWriter.d.ts +0 -17
- package/dist/utils/skillWriter.d.ts.map +1 -1
- package/dist/utils/skillWriter.js +0 -20
- package/dist/utils/skillWriter.js.map +1 -1
- package/dist/utils/skills/claude-skill.d.ts +0 -5
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +0 -5
- package/dist/utils/skills/claude-skill.js.map +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -9
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +6 -10
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/cursor-rules.d.ts +0 -6
- package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
- package/dist/utils/skills/cursor-rules.js +0 -6
- package/dist/utils/skills/cursor-rules.js.map +1 -1
- package/dist/utils/variantPreviewPort.d.ts +0 -3
- package/dist/utils/variantPreviewPort.d.ts.map +1 -1
- package/dist/utils/variantPreviewPort.js +0 -3
- package/dist/utils/variantPreviewPort.js.map +1 -1
- package/dist/utils/windowPlacement.d.ts +0 -4
- package/dist/utils/windowPlacement.d.ts.map +1 -1
- package/dist/utils/windowPlacement.js +0 -4
- package/dist/utils/windowPlacement.js.map +1 -1
- package/package.json +13 -13
- package/scripts/verify-node-version.cjs +0 -3
- package/src/ui/dist/assets/{LibraryApp-qbLqcNxM.js → LibraryApp-Bu7hVbt_.js} +1 -1
- package/src/ui/dist/assets/main-CHyx_rEa.css +1 -0
- package/src/ui/dist/assets/main-CuiPb_rl.js +438 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/utils/skills/describe-motion-protocol.d.ts +0 -10
- package/dist/utils/skills/describe-motion-protocol.d.ts.map +0 -1
- package/dist/utils/skills/describe-motion-protocol.js +0 -231
- package/dist/utils/skills/describe-motion-protocol.js.map +0 -1
- package/src/ui/dist/assets/main-BUZjlAHd.css +0 -1
- package/src/ui/dist/assets/main-touv07Dk.js +0 -438
|
@@ -1,81 +1,33 @@
|
|
|
1
|
+
import type { VariantReference } from '../types/variant-reference';
|
|
1
2
|
import type { ChildProcess } from 'child_process';
|
|
2
3
|
import { AgentVariantsError } from './errors';
|
|
3
4
|
import { SessionStore, type ApprovedBriefSelection, type ApproveResult, type ProposeArgs, type ProposeResult, type ReportCompleteResult, type RequestWorkResult } from './SessionStore';
|
|
4
|
-
import type { ActiveProjectContext, ActiveVariantSnapshot, Brief, DesignContextEntry, ProjectContext, Stage, StartVariantsBriefContent, StaticPreviewTargetElement, Target, TerminalSummary, VariantContextBinding, HostVariantWorkItemSnapshot, VariantQaResult, VariantSessionArtifact, WorkItemStatus } from './contracts';
|
|
5
|
+
import type { ActiveProjectContext, ActiveVariantSnapshot, Brief, DesignContextEntry, ProjectContext, Stage, StartVariantsBriefContent, StaticPreviewTargetElement, Target, TerminalSummary, VariantContextBinding, VariantWorkItemContext, HostVariantWorkItemSnapshot, VariantQaResult, VariantSessionArtifact, WorkItemStatus } from './contracts';
|
|
5
6
|
import { VariantHistoryService } from '../services/VariantHistoryService';
|
|
6
7
|
import type { MCPVariantsTelemetryMetadata } from '../services/MCPVariantsTelemetry';
|
|
7
8
|
import type { Framework } from '../services/ProjectDetectionService';
|
|
8
|
-
/**
|
|
9
|
-
* Subset of WorktreeManager that the orchestrator depends on. Defined as an
|
|
10
|
-
* interface so unit tests can mock it without spinning up real git/processes.
|
|
11
|
-
*
|
|
12
|
-
* Each succeeded variant gets its own dev server so the user can cycle
|
|
13
|
-
* between live, running variants in the iframe via a proxy retarget.
|
|
14
|
-
*/
|
|
15
9
|
export interface WorktreeManagerLike {
|
|
16
|
-
/** `instanceKeyPrefix` namespaces appended batches so a sequential "Vary"
|
|
17
|
-
* on the same session doesn't collide with the first batch's worktree
|
|
18
|
-
* dirs (still inside the per-session cleanup glob). */
|
|
19
10
|
createWorktrees(sessionId: string, count: number, instanceKeyPrefix?: string): Promise<string[]>;
|
|
20
|
-
/** Copy an existing variant worktree into N new sibling worktrees. Used when
|
|
21
|
-
* a code_gen "Vary" targets a parent variant so forks inherit its diff. */
|
|
22
11
|
forkWorktreesFrom?(sourceWorktreePath: string, sessionId: string, count: number, instanceKeyPrefix?: string): Promise<string[]>;
|
|
23
12
|
getDiff(worktreePath: string): Promise<string>;
|
|
24
|
-
/** Absolute git root of the host project's repo. Used as the base-snapshot
|
|
25
|
-
* root for tree-store history persistence (see the tree-root contract in
|
|
26
|
-
* the design doc). Optional so lightweight test doubles needn't implement
|
|
27
|
-
* it — persistence degrades to no base ref. */
|
|
28
13
|
getGitRoot?(): Promise<string>;
|
|
29
|
-
/** Apply a unified diff to a project working tree (no commit). Used by
|
|
30
|
-
* commitVariant to land the chosen variant on the user's branch
|
|
31
|
-
* immediately rather than waiting for an agent to pick up pending-changes. */
|
|
32
14
|
applyDiffToProject?(diff: string, projectPath: string): Promise<void>;
|
|
33
|
-
/** `freshDestinationParent` is required when the session was fresh — it
|
|
34
|
-
* tells WorktreeManager which `<destinationParent>/.rivet-variants/` root
|
|
35
|
-
* the worktrees live under (since fresh worktrees are no longer in /tmp). */
|
|
36
15
|
cleanupSession(sessionId: string, freshDestinationParent?: string): Promise<void>;
|
|
37
16
|
getFreePort(): Promise<number>;
|
|
38
|
-
/** Find a free port scanning upward from `startPort` (the framework default),
|
|
39
|
-
* so previews come up on a sensible port near the project's normal one and
|
|
40
|
-
* step past a port the user's own dev server already holds. */
|
|
41
17
|
findFreePortFrom(startPort: number): Promise<number>;
|
|
42
|
-
/** Release a port handed out by `findFreePortFrom` once its dev server has
|
|
43
|
-
* bound it or failed to start, so concurrent variant starts stop avoiding
|
|
44
|
-
* it. Optional so lightweight test doubles needn't implement it. */
|
|
45
18
|
releasePort?(port: number): void;
|
|
46
19
|
startDevServer(worktreePath: string, port: number, cmd: string, args: string[], env: Record<string, string>): Promise<ChildProcess>;
|
|
47
20
|
stopDevServer(proc: ChildProcess, timeoutMs?: number): Promise<void>;
|
|
48
21
|
getProjectCwdInWorktree(worktreePath: string): Promise<string>;
|
|
49
|
-
/** Optional fresh-project scaffold support — present in production but
|
|
50
|
-
* optional so unit tests can mock with the minimum surface they need.
|
|
51
|
-
* `destinationParent` is the user-supplied workspace parent directory;
|
|
52
|
-
* fresh worktrees are scaffolded under `<destinationParent>/.rivet-variants/`
|
|
53
|
-
* so commit time can be a same-volume rename. */
|
|
54
22
|
createFreshWorktrees?(sessionId: string, count: number, template: import('../services/templates/viteReactTs').TemplateBundle, designContext: ReadonlyArray<DesignContextEntry | undefined> | undefined, destinationParent: string): Promise<string[]>;
|
|
55
|
-
/** Move a fresh-worktree directory to its history location, preserving
|
|
56
|
-
* contents. Optional on the interface so unit tests can stub partially. */
|
|
57
23
|
moveWorktreeToHistory?(srcWorktreePath: string, historyDir: string, folderName: string): string;
|
|
58
24
|
}
|
|
59
|
-
/**
|
|
60
|
-
* Per-session resolved environment. Used to populate destinationPath on the
|
|
61
|
-
* variant envelope and (in fresh-project flows) the workspace target. Also
|
|
62
|
-
* identifies either the selected static entry or the dev-server command.
|
|
63
|
-
* Static projects cannot carry package-manager fields, so a missing entry can
|
|
64
|
-
* never fall through to an invalid package-manager invocation.
|
|
65
|
-
*/
|
|
66
25
|
type DevServerProjectEnvironment = {
|
|
67
26
|
projectPath: string;
|
|
68
27
|
framework: Exclude<Framework, 'static'>;
|
|
69
28
|
packageManager: string;
|
|
70
29
|
devCommand: string;
|
|
71
|
-
/** The framework's conventional dev-server port (e.g. 3000 for Next, 5173
|
|
72
|
-
* for Vite). Used as the starting point when allocating a variant's preview
|
|
73
|
-
* port so it lands somewhere sensible near the project's normal port. */
|
|
74
30
|
defaultPort?: number;
|
|
75
|
-
/** Builds (cmd, args, env) for spawning a dev server in a worktree on a
|
|
76
|
-
* specific port. Defaults to a generic { packageManager, [devCommand,
|
|
77
|
-
* '--port', port] } shape if not provided, but production wires this to
|
|
78
|
-
* buildDevServerCommand from utils/devServerCommand.ts. */
|
|
79
31
|
buildDevCommand?: (port: number) => {
|
|
80
32
|
cmd: string;
|
|
81
33
|
args: string[];
|
|
@@ -88,23 +40,11 @@ type StaticProjectEnvironment = {
|
|
|
88
40
|
entryPath: string;
|
|
89
41
|
};
|
|
90
42
|
export type ProjectEnvironment = DevServerProjectEnvironment | StaticProjectEnvironment;
|
|
91
|
-
/**
|
|
92
|
-
* Checks a static-preview artifact before the orchestrator marks it as
|
|
93
|
-
* succeeded. The default implementation validates non-empty HTML without
|
|
94
|
-
* starting a browser. Tests may inject a runner to exercise pass and
|
|
95
|
-
* terminal-failure paths deterministically.
|
|
96
|
-
*/
|
|
97
43
|
export type PreviewQaRunner = (args: {
|
|
98
44
|
sessionId: string;
|
|
99
45
|
workItemId: string;
|
|
100
46
|
html: string;
|
|
101
47
|
}) => Promise<VariantQaResult>;
|
|
102
|
-
/**
|
|
103
|
-
* An in-place refine target that could not be applied (the variant was already
|
|
104
|
-
* sent / is no longer editable and there was no pending refinement to fold the
|
|
105
|
-
* instruction into). Returned by {@link AgentVariantsOrchestrator.beginStaticPreviewRefinements}
|
|
106
|
-
* so the caller surfaces it to the agent instead of dropping it silently.
|
|
107
|
-
*/
|
|
108
48
|
export type DroppedRefinement = {
|
|
109
49
|
variantId: string;
|
|
110
50
|
reason: string;
|
|
@@ -114,70 +54,25 @@ export interface OrchestratorDeps {
|
|
|
114
54
|
worktreeManager: WorktreeManagerLike;
|
|
115
55
|
resolveProjectEnvironment: (sessionId: string) => Promise<ProjectEnvironment>;
|
|
116
56
|
telemetry?: VariantsTelemetry;
|
|
117
|
-
/** Background dependency installer for worktrees. Defaults to the shared
|
|
118
|
-
* preparation service, which detects the project's package manager itself;
|
|
119
|
-
* tests inject a fast no-op or rejecting stub. */
|
|
120
57
|
installDependencies?: (worktreePath: string, options?: {
|
|
121
58
|
workspaceRoot: string;
|
|
122
59
|
force?: boolean;
|
|
123
60
|
signal?: AbortSignal;
|
|
124
61
|
}) => Promise<void>;
|
|
125
|
-
/** Server-side materialize step for fresh-project commits. Copies the
|
|
126
|
-
* source worktree to `destinationPath` excluding install artifacts and
|
|
127
|
-
* initializes a fresh git repo. Defaults to a real fs.cp + simpleGit
|
|
128
|
-
* implementation; tests inject a stub. */
|
|
129
62
|
materializeProject?: (sourceWorktreePath: string, destinationPath: string) => Promise<void>;
|
|
130
|
-
/** Override the preview QA runner. See `PreviewQaRunner` for the contract. */
|
|
131
63
|
previewQaRunner?: PreviewQaRunner;
|
|
132
|
-
/** Retarget the iframe proxy to a different dev-server port (or back to the
|
|
133
|
-
* default upstream when `null`). Used by `commitVariant` on the fresh
|
|
134
|
-
* vite_app rename path: after the chosen variant is renamed into
|
|
135
|
-
* destinationPath, the orchestrator spawns a fresh dev server there and
|
|
136
|
-
* retargets so the iframe stays live instead of flashing "preview
|
|
137
|
-
* disconnected." Optional — tests can omit, and production wires it to
|
|
138
|
-
* `SessionBridgeService.switchPreviewPort`. */
|
|
139
64
|
switchPreviewPort?: (port: number | null) => void;
|
|
140
|
-
/** Advertise a Rivet-spawned committed dev/static server on the bridge's
|
|
141
|
-
* `devServerHealth` so `/api/mcp/status` and the iframe's upstream-probe
|
|
142
|
-
* see `ownership: 'rivet_owned'`. Distinct from `switchPreviewPort`
|
|
143
|
-
* (which is also called during variant cycling and on cancel — those
|
|
144
|
-
* must NOT mutate the user's external dev-server health). Only the
|
|
145
|
-
* commit-handoff path calls this. Production wires it to
|
|
146
|
-
* `SessionBridgeService.setCommittedDevServerHealth`. */
|
|
147
65
|
setCommittedDevServerHealth?: (port: number | null) => void;
|
|
148
|
-
/** Local persistence for the variant-history feature. Writes every
|
|
149
|
-
* completed code_gen variant (and committed/rejected fresh-project
|
|
150
|
-
* variants) into `<projectPath>/.rivet/variants/` so the UI and
|
|
151
|
-
* MCP `list_past_variants` tool can surface prior runs. Optional in the
|
|
152
|
-
* constructor for tests; production wires a real instance. */
|
|
153
66
|
variantHistory?: VariantHistoryService;
|
|
154
|
-
/** Spawn a static file server bound to a committed `static_preview`
|
|
155
|
-
* project. Defaults to the real `startStaticPreviewServer` (spawns a Node
|
|
156
|
-
* child process). Tests inject a fake that returns a stub `ChildProcess`
|
|
157
|
-
* so they don't bind real ports. */
|
|
158
67
|
startStaticPreviewServer?: (args: {
|
|
159
68
|
rootPath: string;
|
|
160
69
|
port: number;
|
|
161
70
|
host?: string;
|
|
162
71
|
}) => Promise<ChildProcess>;
|
|
163
|
-
/** Hard ceiling (ms) on worktree provisioning before the kickoff fails fast.
|
|
164
|
-
* Defaults to `RIVET_VARIANTS_PROVISION_TIMEOUT_MS` / 540s. Tests inject a
|
|
165
|
-
* tiny value to exercise the timeout path without real slow I/O. */
|
|
166
72
|
provisionTimeoutMs?: number;
|
|
167
|
-
/** Idle TTL (ms) for active variant dev servers. Defaults to
|
|
168
|
-
* `RIVET_ACTIVE_VARIANT_SERVER_IDLE_TTL_MS` / 30m. Tests inject a short
|
|
169
|
-
* value so server reclamation is deterministic. */
|
|
170
73
|
activeVariantServerIdleTtlMs?: number;
|
|
171
|
-
/** Grace (ms) before auto-restarting a ready dev server that crashed, so
|
|
172
|
-
* the dying process's port and file locks are released first. Defaults to
|
|
173
|
-
* `DEV_SERVER_RESTART_DELAY_MS`; tests inject a tiny value. */
|
|
174
74
|
devServerRestartDelayMs?: number;
|
|
175
75
|
}
|
|
176
|
-
/**
|
|
177
|
-
* Minimal telemetry surface the orchestrator depends on. Decoupled from
|
|
178
|
-
* TelemetryService so unit tests can pass a stub. Production wires this
|
|
179
|
-
* to the singleton TelemetryService instance.
|
|
180
|
-
*/
|
|
181
76
|
export interface VariantsTelemetry {
|
|
182
77
|
track(event: string, properties?: Record<string, unknown>): void;
|
|
183
78
|
trackAgentVariantsRequestStarted?: (data: MCPVariantsTelemetryMetadata) => void;
|
|
@@ -226,15 +121,10 @@ export interface VariantsTelemetry {
|
|
|
226
121
|
sessionId: string;
|
|
227
122
|
variantId: string;
|
|
228
123
|
errorCode: string;
|
|
229
|
-
/** Coarse cause: 'spawn_error' | 'exited' | 'timeout' |
|
|
230
|
-
* 'missing_dev_script' | 'unknown'. */
|
|
231
124
|
reason?: string;
|
|
232
|
-
/** True when the failure was a port collision (EADDRINUSE / already running). */
|
|
233
125
|
portInUse?: boolean;
|
|
234
|
-
/** Child exit code / signal when reason is 'exited'. */
|
|
235
126
|
exitCode?: number | null;
|
|
236
127
|
signal?: string | null;
|
|
237
|
-
/** True when the output matched module-resolution failure markers. */
|
|
238
128
|
missingDeps?: boolean;
|
|
239
129
|
}) => void;
|
|
240
130
|
trackAgentVariantsPreviewStarted?: (data: {
|
|
@@ -291,9 +181,6 @@ export interface VariantsTelemetry {
|
|
|
291
181
|
durationMs: number | null;
|
|
292
182
|
}) => void;
|
|
293
183
|
}
|
|
294
|
-
/** Snapshot shape consumed by the iframe chip, both via SSE and the legacy
|
|
295
|
-
* GET /api/variants/active endpoint. Single source of truth lives on the
|
|
296
|
-
* orchestrator (`buildActiveSnapshot`) so both transports are consistent. */
|
|
297
184
|
export type ActiveSnapshot = {
|
|
298
185
|
active: false;
|
|
299
186
|
} | {
|
|
@@ -307,41 +194,13 @@ export type ActiveSnapshot = {
|
|
|
307
194
|
};
|
|
308
195
|
summary: TerminalSummary | null;
|
|
309
196
|
variants: ActiveVariantSnapshot[];
|
|
310
|
-
/** Project context for the session — surfaced so the chip can render
|
|
311
|
-
* a "Creating new project at {destinationPath}" header for fresh
|
|
312
|
-
* sessions vs the default refinement header. */
|
|
313
197
|
projectContext: ActiveProjectContext;
|
|
314
|
-
/** For fresh sessions, the user-facing destination path the materialize
|
|
315
|
-
* step will land at. Undefined for existing-project sessions. */
|
|
316
198
|
destinationPath?: string;
|
|
317
|
-
/** Supporting artifacts the agent used or generated for this session
|
|
318
|
-
* (e.g. the DESIGN.md inspirations for a 0→1 run). Surfaced under the
|
|
319
|
-
* variants list so the user can inspect the hidden MCP context. */
|
|
320
199
|
artifacts?: VariantSessionArtifact[];
|
|
321
200
|
hostWork?: import('./contracts').HostVariantWorkItemSnapshot[];
|
|
322
|
-
/** One-line summary of the run's worker-runtime lease decision —
|
|
323
|
-
* `"codex (initiator)"` / `"host path (cursor: …)"` — so status
|
|
324
|
-
* surfaces can answer "what is running these directions?" while
|
|
325
|
-
* workers are still in flight (per-variant `runtime` lands only on
|
|
326
|
-
* completion). Reflects the most recent batch in the session. */
|
|
327
201
|
workerRuntime?: string;
|
|
328
|
-
/** Depth of the server's variant-request/refine FIFO at snapshot time.
|
|
329
|
-
* Stamped onto the SSE payload from the live bridge (the FIFO does not
|
|
330
|
-
* live on the orchestrator), so `buildActiveSnapshot()` itself leaves it
|
|
331
|
-
* undefined and the SSE route fills it in. */
|
|
332
202
|
pendingVariantRequests?: number;
|
|
333
203
|
};
|
|
334
|
-
/**
|
|
335
|
-
* Wraps SessionStore for the operations that have side effects: approve
|
|
336
|
-
* (provision worktrees), reportComplete (capture diff), commit (apply picked
|
|
337
|
-
* output), cancel (teardown). Pure read paths bypass and call SessionStore
|
|
338
|
-
* directly.
|
|
339
|
-
*
|
|
340
|
-
* This is the terminal-native variant of the orchestrator: the user picks
|
|
341
|
-
* a single brief upfront, so there's only ever one code-gen item per
|
|
342
|
-
* session and no live preview / proxy retarget. Once the agent reports
|
|
343
|
-
* the variant succeeded, the CLI can commit the chosen output directly.
|
|
344
|
-
*/
|
|
345
204
|
export declare class AgentVariantsOrchestrator {
|
|
346
205
|
private readonly store;
|
|
347
206
|
private readonly worktrees;
|
|
@@ -358,75 +217,23 @@ export declare class AgentVariantsOrchestrator {
|
|
|
358
217
|
private readonly activeVariantServerIdleTtlMs;
|
|
359
218
|
private readonly devServerRestartDelayMs;
|
|
360
219
|
private readonly resources;
|
|
361
|
-
/**
|
|
362
|
-
* Committed dev servers from prior sessions that survived teardown. The
|
|
363
|
-
* orchestrator outlives any single session — once a new session starts, the
|
|
364
|
-
* prior committed dev server is no longer needed (the next session opens
|
|
365
|
-
* its own preview chip), so stop it before the new session's first preview
|
|
366
|
-
* goes live. Keyed by sessionId for diagnostics; values are kept alive
|
|
367
|
-
* intentionally between commit and next `propose` / `shutdown`.
|
|
368
|
-
*/
|
|
369
220
|
private readonly lingeringCommittedDevServers;
|
|
370
|
-
/**
|
|
371
|
-
* Per-session in-flight commit chain. Two overlapping commitVariant calls
|
|
372
|
-
* would otherwise both pass the `getVariantPick` idempotency check (the
|
|
373
|
-
* pick isn't recorded until after `applyDiffToProject`) and double-invoke
|
|
374
|
-
* `git apply` — which corrupts the working tree on the second run. The
|
|
375
|
-
* chain serializes commits per session so the second caller waits for the
|
|
376
|
-
* first to finish and then hits the idempotency check (returning
|
|
377
|
-
* `duplicate: true` for the same variantId, or `PENDING_CHANGE_CONFLICT`
|
|
378
|
-
* for a different one).
|
|
379
|
-
*/
|
|
380
221
|
private readonly inflightCommits;
|
|
381
|
-
/** Most recent agent-variants sessionId — read by the iframe chip via
|
|
382
|
-
* GET /api/variants/active. Cleared on cancel or commit. */
|
|
383
222
|
private activeSessionId;
|
|
384
|
-
/** Push channel for the iframe chip's SSE subscription. Emits an
|
|
385
|
-
* ActiveSnapshot on every state change so the chip never has to poll. */
|
|
386
223
|
private readonly events;
|
|
387
224
|
constructor(deps: OrchestratorDeps);
|
|
388
225
|
propose(args: ProposeArgs): ProposeResult;
|
|
389
|
-
/** Returns the most recent agent-variants sessionId (or null). */
|
|
390
226
|
getActiveSessionId(): string | null;
|
|
391
|
-
/** Subscribe to active-snapshot pushes. Returns an unsubscribe fn. */
|
|
392
227
|
subscribeToEvents(listener: (snapshot: ActiveSnapshot) => void): () => void;
|
|
393
|
-
/** Number of live Rivet UI clients subscribed to the variants SSE stream.
|
|
394
|
-
* A subscribed client means a Rivet page is open in the browser. */
|
|
395
228
|
private uiClientCount;
|
|
396
|
-
/** Wall-clock of the last UI-client connect/disconnect. `hasUiClients`
|
|
397
|
-
* treats a very recent disconnect as still-connected to ride out the brief
|
|
398
|
-
* gap when an EventSource drops and auto-reconnects (default retry ~3s) —
|
|
399
|
-
* otherwise a `propose`/`start` landing in that window reads zero clients
|
|
400
|
-
* and spawns a duplicate browser tab. */
|
|
401
229
|
private lastUiClientActivityAt;
|
|
402
|
-
/** Grace window covering an EventSource reconnect (its default retry is ~3s;
|
|
403
|
-
* the SSE heartbeat is 30s). Long enough to span a reconnect, short enough
|
|
404
|
-
* that a genuine page close frees the "reopen on next propose" path quickly. */
|
|
405
230
|
private static readonly UI_CLIENT_GRACE_MS;
|
|
406
|
-
/**
|
|
407
|
-
* Register a live Rivet UI client (called when the variants SSE stream opens).
|
|
408
|
-
* Returns a release fn to call on disconnect. Used as the "a Rivet page is
|
|
409
|
-
* already open" signal so the MCP server can avoid spawning a duplicate tab
|
|
410
|
-
* every time the variants flow re-enters an already-active editor session.
|
|
411
|
-
*/
|
|
412
231
|
registerUiClient(): () => void;
|
|
413
|
-
/** True when at least one Rivet UI page is currently connected — or one
|
|
414
|
-
* disconnected within the grace window (an EventSource mid-reconnect). */
|
|
415
232
|
hasUiClients(): boolean;
|
|
416
|
-
/** @effect Records activity for the current variants session, if one exists. */
|
|
417
233
|
touchActiveSession(): void;
|
|
418
|
-
/** @effect Resets idle cleanup for active variant preview servers. */
|
|
419
234
|
touchSession(sessionId: string): void;
|
|
420
|
-
/** Build the snapshot the chip cares about. Reads from SessionStore +
|
|
421
|
-
* per-resource state; safe to call at any time. */
|
|
422
235
|
buildActiveSnapshot(): ActiveSnapshot;
|
|
423
|
-
/** Record which worker runtime this session's current batch leases to —
|
|
424
|
-
* called by the generation services right after the lease-owner decision
|
|
425
|
-
* so `variants start`/status can answer "what is running these?". */
|
|
426
236
|
setWorkerRuntime(sessionId: string, summary: string): void;
|
|
427
|
-
/** User reference files stored in the work item's context bundle (uploaded
|
|
428
|
-
* or copied local images). Surfaced on the snapshot so briefings can point
|
|
429
|
-
* workers at the files directly — one Read instead of a bundle walk. */
|
|
430
237
|
private static contextFilesOf;
|
|
431
238
|
getHostWork(sessionId: string): HostVariantWorkItemSnapshot[];
|
|
432
239
|
private getAssignedWorkspace;
|
|
@@ -463,24 +270,10 @@ export declare class AgentVariantsOrchestrator {
|
|
|
463
270
|
workItemId?: string;
|
|
464
271
|
workItemIds?: string[];
|
|
465
272
|
}): RequestWorkResult;
|
|
466
|
-
/** @effect Copies caller-supplied context assets into each leased workspace. */
|
|
467
273
|
private materializeContextAssets;
|
|
468
|
-
/**
|
|
469
|
-
* @effect Records how an existing project's worktrees will be previewed so
|
|
470
|
-
* context assets receive references that resolve on that serving surface.
|
|
471
|
-
*/
|
|
472
274
|
private resolveContextAssetPreviewKind;
|
|
473
|
-
/**
|
|
474
|
-
* @effect Writes each leased implementation item's server-authored briefing
|
|
475
|
-
* BESIDE its workspace so the coordinating host dispatches workers with a
|
|
476
|
-
* short pointer prompt instead of composing prose per worker. Best-effort:
|
|
477
|
-
* a briefing write failure never blocks the lease (the host guidance's
|
|
478
|
-
* packet fields still carry the same data).
|
|
479
|
-
*/
|
|
480
275
|
private writeLeasedWorkItemBriefings;
|
|
481
|
-
/** @effect Assigns isolated, server-owned artifact workspaces to leased static work. */
|
|
482
276
|
private ensureStaticWorkspaces;
|
|
483
|
-
/** Reads a completed static artifact while enforcing its assigned directory boundary. */
|
|
484
277
|
private readAssignedStaticArtifact;
|
|
485
278
|
beginStaticPreviewRefinements(args: {
|
|
486
279
|
sessionId: string;
|
|
@@ -494,29 +287,12 @@ export declare class AgentVariantsOrchestrator {
|
|
|
494
287
|
element?: StaticPreviewTargetElement;
|
|
495
288
|
relevantFiles?: string[];
|
|
496
289
|
requestId?: string;
|
|
290
|
+
additionalContext?: Pick<VariantWorkItemContext, 'contextBundlePath' | 'userContext' | 'rivetMetadata'>;
|
|
497
291
|
}>;
|
|
498
292
|
}): {
|
|
499
293
|
droppedRefinements: DroppedRefinement[];
|
|
500
294
|
createdWorkItemIds: string[];
|
|
501
295
|
};
|
|
502
|
-
/**
|
|
503
|
-
* Adopt a PAST variant (from a prior session's persisted history) into the
|
|
504
|
-
* active session, rehydrating it from its on-disk static snapshot so the
|
|
505
|
-
* comment / refine / Vary machinery treats it as a live, first-class variant.
|
|
506
|
-
*
|
|
507
|
-
* Triggered when the user makes their first edit on a selected past direction.
|
|
508
|
-
* The store appends an already-`succeeded` `static_preview` work item keyed by
|
|
509
|
-
* the past identity (idempotent); this method registers the matching static-
|
|
510
|
-
* preview record so {@link getStaticPreviewHtml}, {@link getVariants}
|
|
511
|
-
* (preview.kind = 'static_artifact', view enabled), and the
|
|
512
|
-
* `/api/variants/:sid/static/:vid` routes all light up exactly as they do for a
|
|
513
|
-
* freshly-generated static_preview variant.
|
|
514
|
-
*
|
|
515
|
-
* `filesDir` is the absolute path to the persisted `files/` snapshot and
|
|
516
|
-
* `entryPath` is its selected HTML document. Returns the stable active-session
|
|
517
|
-
* `workItemId` so the caller can route the triggering edit to it, plus whether
|
|
518
|
-
* it was already adopted.
|
|
519
|
-
*/
|
|
520
296
|
adoptPastVariant(args: {
|
|
521
297
|
sessionId: string;
|
|
522
298
|
source: {
|
|
@@ -527,16 +303,12 @@ export declare class AgentVariantsOrchestrator {
|
|
|
527
303
|
entryPath: string;
|
|
528
304
|
label: string;
|
|
529
305
|
description?: string;
|
|
306
|
+
references?: VariantReference[];
|
|
530
307
|
runLabel?: string;
|
|
531
308
|
}): Promise<{
|
|
532
309
|
workItemId: string;
|
|
533
310
|
alreadyAdopted: boolean;
|
|
534
311
|
}>;
|
|
535
|
-
/**
|
|
536
|
-
* Rehydrate a static history variant into the current active session when it
|
|
537
|
-
* can still accept edits; otherwise create a replacement active session whose
|
|
538
|
-
* only visible direction is the selected history artifact.
|
|
539
|
-
*/
|
|
540
312
|
bootstrapPastVariantSession(args: {
|
|
541
313
|
source: {
|
|
542
314
|
sessionId: string;
|
|
@@ -546,6 +318,7 @@ export declare class AgentVariantsOrchestrator {
|
|
|
546
318
|
entryPath: string;
|
|
547
319
|
label: string;
|
|
548
320
|
description?: string;
|
|
321
|
+
references?: VariantReference[];
|
|
549
322
|
runLabel?: string;
|
|
550
323
|
prompt?: string;
|
|
551
324
|
projectContext: ProjectContext;
|
|
@@ -557,18 +330,7 @@ export declare class AgentVariantsOrchestrator {
|
|
|
557
330
|
}>;
|
|
558
331
|
private getUsableActiveSessionId;
|
|
559
332
|
private resolveAdoptedStaticPreviewFiles;
|
|
560
|
-
/**
|
|
561
|
-
* True when the variant is an HTML-only static_preview work item. Adopted past
|
|
562
|
-
* variants and fresh `static_preview` variants both qualify. Existing-project
|
|
563
|
-
* `code_gen` variants can still expose a static artifact for preview, but Vary
|
|
564
|
-
* must keep those on the worktree-backed code_gen append path.
|
|
565
|
-
*/
|
|
566
333
|
isStaticPreviewVariant(sessionId: string, workItemId: string): boolean;
|
|
567
|
-
/**
|
|
568
|
-
* Resolve the history source for a forked Vary row. If the immediate parent
|
|
569
|
-
* is an adopted past direction, collapse against that original history row;
|
|
570
|
-
* otherwise collapse against the same-session parent variant.
|
|
571
|
-
*/
|
|
572
334
|
private resolveHistoryParentVariant;
|
|
573
335
|
getVariantPick(sessionId: string): ReturnType<SessionStore['getVariantPick']>;
|
|
574
336
|
refineVariant(args: {
|
|
@@ -579,7 +341,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
579
341
|
}): RequestWorkResult;
|
|
580
342
|
getStage(sessionId: string): Stage;
|
|
581
343
|
getWorkItemInput(sessionId: string, workItemId: string): unknown;
|
|
582
|
-
/** Returns status after orchestration QA and refinement post-processing. */
|
|
583
344
|
getWorkItemStatus(sessionId: string, workItemId: string): WorkItemStatus;
|
|
584
345
|
getBriefs(sessionId: string): Brief[];
|
|
585
346
|
getProgress(sessionId: string): {
|
|
@@ -589,66 +350,19 @@ export declare class AgentVariantsOrchestrator {
|
|
|
589
350
|
getSummary(sessionId: string): TerminalSummary;
|
|
590
351
|
getVariants(sessionId: string): ActiveVariantSnapshot[];
|
|
591
352
|
hasSession(sessionId: string): boolean;
|
|
592
|
-
/** Read the projectContext for a session — used by Express routes that
|
|
593
|
-
* build the chip snapshot via `stateForSession`. */
|
|
594
353
|
getProjectContext(sessionId: string): ProjectContext;
|
|
595
|
-
/** Resolve a worktree path for a code-gen work item, if provisioned. */
|
|
596
354
|
getWorktreePath(sessionId: string, workItemId: string): string | undefined;
|
|
597
|
-
/**
|
|
598
|
-
* Resolve the project cwd inside a worktree so subdirectory projects run
|
|
599
|
-
* from the same repo-relative location.
|
|
600
|
-
*/
|
|
601
355
|
getProjectCwdInWorktree(worktreePath: string): Promise<string>;
|
|
602
|
-
/** Resolve the dev server port for a code-gen work item, if running. */
|
|
603
356
|
getDevServerPort(sessionId: string, workItemId: string): number | undefined;
|
|
604
|
-
/**
|
|
605
|
-
* Restores a Rivet-owned preview after idle reclamation or an explicit retry
|
|
606
|
-
* of a failed start. Reuses the saved worktree without leasing generation work.
|
|
607
|
-
*
|
|
608
|
-
* @effect Clears the idle marker and prior crash budget, starts the worktree
|
|
609
|
-
* dev server, and emits preview-state snapshots.
|
|
610
|
-
* @deps Uses the live session resources, project context, and dev-server
|
|
611
|
-
* manager owned by this orchestrator.
|
|
612
|
-
*/
|
|
613
357
|
restoreVariantPreview(sessionId: string, workItemId: string, options?: {
|
|
614
358
|
retryFailed?: boolean;
|
|
615
359
|
}): Promise<number | undefined>;
|
|
616
|
-
/**
|
|
617
|
-
* @effect Resolves the dev server port for a preview request and refreshes
|
|
618
|
-
* active-preview retention for that session while the port is still live.
|
|
619
|
-
*/
|
|
620
360
|
resolveDevServerPortForPreview(sessionId: string, workItemId: string): number | undefined;
|
|
621
|
-
/**
|
|
622
|
-
* True work-item kind for a variant, or undefined when the session/item is
|
|
623
|
-
* unknown. This is the authoritative routing signal for Vary/refine intakes:
|
|
624
|
-
* an existing-project `code_gen` variant materialized as a static preview
|
|
625
|
-
* (registerExistingStaticPreview) DISPLAYS as `static_artifact` and serves
|
|
626
|
-
* HTML, but must fork via the code_gen/worktree path — HTML presence is not
|
|
627
|
-
* a valid discriminator.
|
|
628
|
-
*/
|
|
629
361
|
getVariantWorkItemKind(sessionId: string, workItemId: string): string | undefined;
|
|
630
362
|
getStaticPreviewHtml(sessionId: string, workItemId: string): string | undefined;
|
|
631
|
-
/** Resolve the DESIGN.md markdown behind an artifact link. */
|
|
632
363
|
getDesignContextMarkdown(sessionId: string, artifactId: string): string | undefined;
|
|
633
|
-
/** Build the rendered DesignMD document for an artifact link. */
|
|
634
364
|
getDesignContextViewerHtml(sessionId: string, artifactId: string): string | undefined;
|
|
635
|
-
/**
|
|
636
|
-
* `true` when the variant has a non-empty `assetBase` — i.e. its inlined
|
|
637
|
-
* HTML references sibling files served by the asset route. The route
|
|
638
|
-
* uses this to decide whether to inject a `<base href>` (only needed
|
|
639
|
-
* when relative URLs in the HTML must resolve against the asset
|
|
640
|
-
* sub-path). Self-contained HTML keeps its natural URL resolution.
|
|
641
|
-
*/
|
|
642
365
|
hasStaticPreviewAssets(sessionId: string, workItemId: string): boolean;
|
|
643
|
-
/**
|
|
644
|
-
* Resolve an absolute, sandboxed path for a sibling asset that the
|
|
645
|
-
* variant's inlined HTML references (e.g. `./avatar.glb`, `./hero.png`).
|
|
646
|
-
* Returns `undefined` when the variant has no `assetBase`, the requested
|
|
647
|
-
* path escapes the base (path traversal), or the file does not exist.
|
|
648
|
-
*
|
|
649
|
-
* Used by the `/api/variants/:sessionId/static/:variantId/<asset>` route
|
|
650
|
-
* to serve assets from the agent's on-disk variant workspace pre-commit.
|
|
651
|
-
*/
|
|
652
366
|
resolveStaticPreviewAssetPath(sessionId: string, workItemId: string, requestedPath: string): string | undefined;
|
|
653
367
|
private getStaticPreviewByBriefId;
|
|
654
368
|
private buildStaticPreviewUrl;
|
|
@@ -656,66 +370,20 @@ export declare class AgentVariantsOrchestrator {
|
|
|
656
370
|
sessionId: string;
|
|
657
371
|
selections: ApprovedBriefSelection[];
|
|
658
372
|
}): Promise<ApproveResult>;
|
|
659
|
-
/**
|
|
660
|
-
* Unified one-call kickoff that collapses propose → report_briefs →
|
|
661
|
-
* approve. Uses AI-authored briefs supplied by agent callers, with a
|
|
662
|
-
* deterministic prompt-derived fallback for human-direct calls, and
|
|
663
|
-
* immediately approves so the session lands in `work_items_ready`.
|
|
664
|
-
*
|
|
665
|
-
* Supports both existing-project sessions (spawns code_gen work items
|
|
666
|
-
* for the agent to lease) and zero-to-one sessions (spawns
|
|
667
|
-
* static_preview work items; the server runs scaffold_base in the
|
|
668
|
-
* background). This is the single-call path; source-grounded zero-to-one
|
|
669
|
-
* sessions (source URLs / inspiration extraction) run through `propose`
|
|
670
|
-
* instead so the source-research flow can gate generation — start_variants
|
|
671
|
-
* routes them there. This method does not run source research.
|
|
672
|
-
*
|
|
673
|
-
* Host-agnostic: no LLM calls happen here. The agent (Claude Code,
|
|
674
|
-
* Cursor, Codex) generates the label and code when it leases the
|
|
675
|
-
* work items via continue_variants(action="request_work").
|
|
676
|
-
*/
|
|
677
373
|
startUnified(args: {
|
|
374
|
+
assertContext?: () => void;
|
|
678
375
|
prompt: string;
|
|
679
376
|
count?: number;
|
|
680
377
|
target?: Target;
|
|
681
378
|
projectContext?: ProjectContext;
|
|
682
|
-
/** Pre-generated session id. Lets the caller build a variant context
|
|
683
|
-
* bundle (whose on-disk path embeds the session id) before the session
|
|
684
|
-
* exists, then hand both in together. Defaults to a fresh id. */
|
|
685
379
|
sessionId?: string;
|
|
686
|
-
/** Agent-supplied short label for the run's intent (heuristic fallback
|
|
687
|
-
* when absent). Shared by every variant in the run. */
|
|
688
380
|
runLabel?: string;
|
|
689
|
-
/** When provided, the orchestrator leases all spawned variant work
|
|
690
|
-
* items immediately so the caller can hand the lease + worktreePaths
|
|
691
|
-
* back to the agent in the same response — saving a separate
|
|
692
|
-
* continue_variants(request_work) round-trip. */
|
|
693
381
|
leaseOwner?: string;
|
|
694
|
-
/** Per-variant briefs supplied by the agent (label + body, optional
|
|
695
|
-
* visualReferenceUrl). When provided, briefs.length overrides any
|
|
696
|
-
* explicit count. When absent, the server derives a run-intent label
|
|
697
|
-
* per slot from the prompt and a copy of the prompt as each body. */
|
|
698
382
|
briefs?: import('./contracts').StartVariantsBriefContent[];
|
|
699
|
-
/** UI correlation id (the originating change batch's agentRunId/traceId).
|
|
700
|
-
* Stamped onto each spawned variant so the panel can map its optimistic
|
|
701
|
-
* placeholders to the real cards. */
|
|
702
383
|
requestId?: string;
|
|
703
|
-
/** Opt in to cross-Vary accumulation: when an existing-project session for
|
|
704
|
-
* the same `projectPath` is already active, append these variants to it
|
|
705
|
-
* instead of starting a fresh session. Only the MCP `start_variants`
|
|
706
|
-
* existing path sets this — the inline-element-variant flow leaves it off
|
|
707
|
-
* so it always gets its own session (it cancels that session on failure
|
|
708
|
-
* and must never tear down an accumulated one). */
|
|
709
384
|
allowAccumulate?: boolean;
|
|
710
|
-
/** When set with {@link allowAccumulate}, fork new code_gen variants from
|
|
711
|
-
* this parent variant's worktree instead of git HEAD / Original. */
|
|
712
385
|
sourceVariantId?: string;
|
|
713
|
-
/** Known project files from the initiating selection. Workers inspect
|
|
714
|
-
* these first and expand only when dependencies require it. */
|
|
715
386
|
relevantFiles?: string[];
|
|
716
|
-
/** User-selected design fidelity (worker tier selector). Each batch stamps
|
|
717
|
-
* its own selection onto its implementation items; absent means the
|
|
718
|
-
* server default. */
|
|
719
387
|
fidelity?: import('./contracts').WorkerFidelity;
|
|
720
388
|
}): Promise<{
|
|
721
389
|
sessionId: string;
|
|
@@ -726,47 +394,15 @@ export declare class AgentVariantsOrchestrator {
|
|
|
726
394
|
status: 'pending';
|
|
727
395
|
}>;
|
|
728
396
|
scaffoldBaseWorkItemId: string | null;
|
|
729
|
-
/** Populated when `leaseOwner` was provided. */
|
|
730
397
|
leaseId?: string;
|
|
731
398
|
leaseTtlMs?: number;
|
|
732
399
|
leasedWorkItems?: import('./SessionStore').RequestWorkResult['leasedWorkItems'];
|
|
733
400
|
}>;
|
|
734
|
-
/**
|
|
735
|
-
* Build the per-variant briefs for a unified start. Supplied briefs keep
|
|
736
|
-
* meaningful direction labels, while duplicate or empty labels are made
|
|
737
|
-
* unique against the visible session rows. The fallback derives a short
|
|
738
|
-
* run-intent label from the prompt (e.g. "make it brighter" →
|
|
739
|
-
* "Brighter 1/2/…") rather than an indistinct "Variant N". `uniqueBriefIds`
|
|
740
|
-
* is set for the append path so the new batch's briefIds can't collide with
|
|
741
|
-
* the live session's existing ones.
|
|
742
|
-
*/
|
|
743
401
|
private buildUnifiedBriefs;
|
|
744
|
-
/**
|
|
745
|
-
* The active sessionId IF it is an existing-project session for `projectPath`
|
|
746
|
-
* that can still accept appended variants — i.e. not committed, not
|
|
747
|
-
* cancelled/failed. Returns null otherwise, so start_variants falls back to
|
|
748
|
-
* creating a fresh session (first Vary, a different project, or after the
|
|
749
|
-
* prior session was committed/cancelled).
|
|
750
|
-
*/
|
|
751
402
|
private getAppendableExistingSessionId;
|
|
752
|
-
/** @effect Registers a provisioned git worktree with runtime and workspace state. */
|
|
753
403
|
private registerWorktreeWorkspace;
|
|
754
|
-
/**
|
|
755
|
-
* Provision a worktree for each appended existing-project variant. Mirrors
|
|
756
|
-
* {@link provisionExistingWorktrees} but only for the newly appended ids, and
|
|
757
|
-
* passes a per-batch `instanceKeyPrefix` so the new worktree dirs do not
|
|
758
|
-
* collide with the first batch's `${sessionId}-${i}` paths.
|
|
759
|
-
*/
|
|
760
|
-
/** Emits provisioning started/completed/failed telemetry around `run` for
|
|
761
|
-
* the vary-fork/append lanes that bypass provisionWorktrees (and its
|
|
762
|
-
* telemetry). Rethrows failures untouched. */
|
|
763
404
|
private withProvisioningTelemetry;
|
|
764
405
|
private provisionAppendedExistingWorktrees;
|
|
765
|
-
/**
|
|
766
|
-
* Provision worktrees for a code_gen Vary forked from a parent variant.
|
|
767
|
-
* Copies the parent's worktree tree so each sibling starts from the parent's
|
|
768
|
-
* diff rather than git HEAD / Original.
|
|
769
|
-
*/
|
|
770
406
|
private provisionForkedFromVariantWorktrees;
|
|
771
407
|
reportComplete(args: {
|
|
772
408
|
sessionId: string;
|
|
@@ -783,13 +419,9 @@ export declare class AgentVariantsOrchestrator {
|
|
|
783
419
|
tokensIn?: number;
|
|
784
420
|
tokensOut?: number;
|
|
785
421
|
model?: string;
|
|
786
|
-
/** Worker cost in USD (executor-run workers bill outside any host
|
|
787
|
-
* session; this keeps them cost-accountable in telemetry). */
|
|
788
422
|
costUsd?: number;
|
|
789
423
|
title?: string;
|
|
790
424
|
description?: string;
|
|
791
|
-
/** The runtime that executed the worker — persisted on the work item so
|
|
792
|
-
* status/history surfaces can attribute the variant to a vendor/model. */
|
|
793
425
|
runtime?: import('./contracts').WorkerRuntimeInfo;
|
|
794
426
|
}): Promise<ReportCompleteResult>;
|
|
795
427
|
cancel(args: {
|
|
@@ -799,13 +431,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
799
431
|
stage: 'cancelled';
|
|
800
432
|
cleanupStatus: 'pending' | 'complete' | 'partial';
|
|
801
433
|
}>;
|
|
802
|
-
/**
|
|
803
|
-
* Cancel a single variant within a session. Siblings continue. Idempotent
|
|
804
|
-
* on terminal states. Per-variant worktree teardown is deferred to a
|
|
805
|
-
* follow-up; the lease is released, so requestWork won't re-surface this
|
|
806
|
-
* variant and the agent's report_variant_complete for it (if it lands
|
|
807
|
-
* after cancellation) is rejected by the stale-lease check.
|
|
808
|
-
*/
|
|
809
434
|
cancelVariant(args: {
|
|
810
435
|
sessionId: string;
|
|
811
436
|
variantId: string;
|
|
@@ -817,12 +442,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
817
442
|
sessionStage: Stage;
|
|
818
443
|
alreadyTerminal: boolean;
|
|
819
444
|
}>;
|
|
820
|
-
/**
|
|
821
|
-
* Remove a variant from the UI. Hides it from the active snapshot for good
|
|
822
|
-
* (it's filtered out of progress/summary/terminal accounting too) while
|
|
823
|
-
* retaining it in `.rivet/variants/` with status `removed` so the work is
|
|
824
|
-
* kept, never rendered again. Mirrors `cancelVariant`'s shape; idempotent.
|
|
825
|
-
*/
|
|
826
445
|
removeVariant(args: {
|
|
827
446
|
sessionId: string;
|
|
828
447
|
variantId: string;
|
|
@@ -833,13 +452,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
833
452
|
sessionStage: Stage;
|
|
834
453
|
alreadyRemoved: boolean;
|
|
835
454
|
}>;
|
|
836
|
-
/**
|
|
837
|
-
* Rename a variant's user-visible title. Patches the in-memory work item so
|
|
838
|
-
* the next snapshot carries the new label, persists it to the variant's
|
|
839
|
-
* `.rivet/variants/` manifest (best-effort — a never-persisted variant simply
|
|
840
|
-
* skips the disk write), and pushes the updated snapshot over SSE. Mirrors
|
|
841
|
-
* `removeVariant`'s shape.
|
|
842
|
-
*/
|
|
843
455
|
renameVariant(args: {
|
|
844
456
|
sessionId: string;
|
|
845
457
|
variantId: string;
|
|
@@ -850,10 +462,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
850
462
|
label: string;
|
|
851
463
|
sessionStage: Stage;
|
|
852
464
|
}>;
|
|
853
|
-
/**
|
|
854
|
-
* Rename a run folder: re-home one request batch in a single store pass,
|
|
855
|
-
* persist each affected manifest best-effort, and push one updated snapshot.
|
|
856
|
-
*/
|
|
857
465
|
renameRun(args: {
|
|
858
466
|
sessionId: string;
|
|
859
467
|
requestId?: string;
|
|
@@ -866,12 +474,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
866
474
|
renamedCount: number;
|
|
867
475
|
sessionStage: Stage;
|
|
868
476
|
}>;
|
|
869
|
-
/**
|
|
870
|
-
* User has reviewed the rendered variants and picked one. Look up the
|
|
871
|
-
* captured diff or generated project, apply it to the destination, and record
|
|
872
|
-
* the pick. Idempotent on (sessionId, variantId): repeating the call returns
|
|
873
|
-
* duplicate=true without applying again.
|
|
874
|
-
*/
|
|
875
477
|
commitVariant(args: {
|
|
876
478
|
sessionId: string;
|
|
877
479
|
variantId: string;
|
|
@@ -886,241 +488,47 @@ export declare class AgentVariantsOrchestrator {
|
|
|
886
488
|
}>;
|
|
887
489
|
private commitVariantImpl;
|
|
888
490
|
cleanupCommittedSession(sessionId: string): Promise<void>;
|
|
889
|
-
/**
|
|
890
|
-
* Ensure the user-facing destination path can receive the new project.
|
|
891
|
-
* Rejects when the path exists and is non-empty.
|
|
892
|
-
*
|
|
893
|
-
* `.rivet/` (pre-commit snapshots + history manifests) and `.gitignore`
|
|
894
|
-
* (written by VariantHistoryService.ensureGitignore when variants persist
|
|
895
|
-
* at success time) are both tolerated — neither is user-authored content
|
|
896
|
-
* that would be clobbered by the materialize step.
|
|
897
|
-
*/
|
|
898
491
|
private assertDestinationAvailable;
|
|
899
|
-
/** Read the captured diff for a code-gen variant, if available. */
|
|
900
492
|
getVariantDiff(sessionId: string, variantId: string): string | undefined;
|
|
901
493
|
private provisionWorktrees;
|
|
902
|
-
/**
|
|
903
|
-
* Existing-project flow: clone the user's repo N times via git worktree.
|
|
904
|
-
* Waits for source and dependency copies before making work available.
|
|
905
|
-
*/
|
|
906
494
|
private provisionExistingWorktrees;
|
|
907
|
-
/**
|
|
908
|
-
* Fresh-project flow: scaffold one template per variant + DESIGN.md per
|
|
909
|
-
* slot synchronously (fast — just file writes + git init), then dispatch a
|
|
910
|
-
* background `npm install` task per worktree. Returns immediately so the
|
|
911
|
-
* `approve_variant_briefs` MCP tool doesn't time out on cold installs.
|
|
912
|
-
*
|
|
913
|
-
* On install success: `sessionStore.completeInternal(scaffold_base)` runs,
|
|
914
|
-
* which unblocks the dependent code_gen items.
|
|
915
|
-
*
|
|
916
|
-
* On install failure: the scaffold_base work item is marked failed via
|
|
917
|
-
* `failInternal`, which cascades DEPENDENCY_FAILED to all dependent
|
|
918
|
-
* code_gen items so the session degrades cleanly.
|
|
919
|
-
*/
|
|
920
495
|
private provisionFreshWorktrees;
|
|
921
|
-
/**
|
|
922
|
-
* Run `npm install` in parallel across all fresh worktrees. On all-success,
|
|
923
|
-
* mark scaffold_base succeeded via `completeInternal`. On any failure,
|
|
924
|
-
* mark scaffold_base failed via `failInternal` and emit telemetry.
|
|
925
|
-
*/
|
|
926
496
|
private runBackgroundInstall;
|
|
927
|
-
/**
|
|
928
|
-
* Checks succeeded implementation reports before they reach the store.
|
|
929
|
-
* Static previews must contain a structurally complete local artifact;
|
|
930
|
-
* applicable existing-project variants must contain an added diff. Returns
|
|
931
|
-
* a pass, a single repair retry, or a terminal integrity failure.
|
|
932
|
-
*/
|
|
933
497
|
private evaluateQaForReport;
|
|
934
498
|
private evaluateExistingCodeGenQa;
|
|
935
|
-
/** Run the injected preview QA runner, converting a thrown runner into a
|
|
936
|
-
* failed `VariantQaResult` (mirrors the prior inline behavior). */
|
|
937
499
|
private runPreviewQaSafely;
|
|
938
500
|
private memoizeQa;
|
|
939
|
-
/**
|
|
940
|
-
* Handle a `retry` QA verdict: consume the agent's report, re-open the
|
|
941
|
-
* variant work item so it can be re-leased and regenerated against the QA
|
|
942
|
-
* notes, and record that it has now used its single retry.
|
|
943
|
-
*/
|
|
944
501
|
private handleQaRegenRetry;
|
|
945
502
|
private startVariantDevServer;
|
|
946
503
|
private handleSucceededReport;
|
|
947
504
|
private handleStaticPreviewRefinement;
|
|
948
|
-
/** The worktree/dev-server manager this orchestrator boots previews with.
|
|
949
|
-
* Exposed so HistoryReplayService shares the SAME instance: the
|
|
950
|
-
* reserved-but-not-yet-bound port set is per-instance, and a second
|
|
951
|
-
* manager scanning the same range can hand a live variant's pending port
|
|
952
|
-
* to a replay (EADDRINUSE for the loser). */
|
|
953
505
|
get devServerManager(): WorktreeManagerLike;
|
|
954
|
-
/** In-flight fire-and-forget history persists. Tree-store snapshots spawn
|
|
955
|
-
* git subprocesses, so these can outlive the microtask flushes that used
|
|
956
|
-
* to be enough to drain them — {@link teardownSession} (and the test
|
|
957
|
-
* helpers' settleBackgroundWork) await {@link settleHistoryPersists}
|
|
958
|
-
* instead of racing the writes. */
|
|
959
506
|
private readonly pendingHistoryPersists;
|
|
960
507
|
private trackHistoryPersist;
|
|
961
|
-
/** Await every in-flight history persist, including ones that start while
|
|
962
|
-
* draining (a refine can persist mid-settle). */
|
|
963
508
|
settleHistoryPersists(): Promise<void>;
|
|
964
|
-
/**
|
|
965
|
-
* Persist a completed existing-project code_gen variant into
|
|
966
|
-
* `<env.projectPath>/.rivet/variants/<sessionId>/<variantId>/`. Called from
|
|
967
|
-
* `handleSucceededReport` once the worktree diff has been captured but
|
|
968
|
-
* before the user picks. Status is `completed` until `commitVariant` or a
|
|
969
|
-
* cancellation transitions it.
|
|
970
|
-
*/
|
|
971
509
|
private persistCompletedExistingVariant;
|
|
972
|
-
/**
|
|
973
|
-
* Existing-mode `framework: 'static'` projects have no dev command, so there
|
|
974
|
-
* is no per-variant dev server for the iframe to proxy. Register the variant's
|
|
975
|
-
* materialized static site as a {@link StaticPreviewRecord} so the existing
|
|
976
|
-
* static-file plumbing — the `/api/variants/:sid/static/:vid[/asset]` routes,
|
|
977
|
-
* {@link getStaticPreviewHtml}, and {@link getVariants} (preview.kind=
|
|
978
|
-
* 'static_artifact', view enabled) — all light up exactly as they do for
|
|
979
|
-
* fresh `static_preview` variants. The entry HTML and its sibling assets are
|
|
980
|
-
* served straight from the variant's worktree project root (session-scoped,
|
|
981
|
-
* pre-commit; the persisted `.rivet/variants/.../files/` copy backs the
|
|
982
|
-
* post-session history route separately).
|
|
983
|
-
*
|
|
984
|
-
* Returns `registered` when the static preview is ready, `unavailable` when
|
|
985
|
-
* the project is static but its selected entry cannot be served, and
|
|
986
|
-
* `not_static` when the caller should start a dev server instead.
|
|
987
|
-
*/
|
|
988
510
|
private registerExistingStaticPreview;
|
|
989
|
-
/**
|
|
990
|
-
* Persist a completed fresh-project variant into
|
|
991
|
-
* `<projectContext.workspacePath>/.rivet/variants/<sessionId>/<variantId>/`.
|
|
992
|
-
* Called from `handleSucceededReport` right after the per-variant snapshot
|
|
993
|
-
* lands on disk — for static_preview that's the `.rivet/<slug>/` snapshot
|
|
994
|
-
* dir; for vite_app fresh variants it's the worktree itself. Status starts
|
|
995
|
-
* as 'completed' and transitions to 'committed' / 'rejected' / 'cancelled'
|
|
996
|
-
* via `markStatus` at commit or teardown time.
|
|
997
|
-
*
|
|
998
|
-
* Running at success time (rather than commit time) means the history panel
|
|
999
|
-
* populates live as variants generate — including when the user never picks
|
|
1000
|
-
* one. Mirrors the existing-project persistCompletedExistingVariant flow.
|
|
1001
|
-
*/
|
|
1002
511
|
private persistCompletedFreshVariant;
|
|
1003
|
-
/**
|
|
1004
|
-
* @effect Drains fresh-project history writes before commit moves or rewrites
|
|
1005
|
-
* the generated project folder.
|
|
1006
|
-
*/
|
|
1007
512
|
private persistCompletedFreshVariantsForCommit;
|
|
1008
|
-
/**
|
|
1009
|
-
* At commit time, flip persisted variant manifests to terminal statuses
|
|
1010
|
-
* ('committed' for the chosen, 'rejected' for the rest). Both existing- and
|
|
1011
|
-
* fresh-project variants have already been persisted at code_gen success
|
|
1012
|
-
* time, so this is a pure status update — no source-dir copy required.
|
|
1013
|
-
* Also records the destination path on the chosen variant so history can
|
|
1014
|
-
* surface "this variant became <path>".
|
|
1015
|
-
*/
|
|
1016
513
|
private persistVariantHistoryAtCommit;
|
|
1017
|
-
/**
|
|
1018
|
-
* Flip persisted variant manifests to status='cancelled' for every variant
|
|
1019
|
-
* in the session that was already snapshotted to disk. Fresh- and existing-
|
|
1020
|
-
* project variants both persist at success time now, so both need their
|
|
1021
|
-
* manifests flipped here. Best-effort — missing manifests are silently
|
|
1022
|
-
* skipped by VariantHistoryService.markStatus.
|
|
1023
|
-
*/
|
|
1024
514
|
private markPersistedVariantsCancelled;
|
|
1025
515
|
private markPersistedVariantCancelled;
|
|
1026
516
|
private markPersistedVariantRemoved;
|
|
1027
517
|
private markPersistedVariantRenamed;
|
|
1028
|
-
/**
|
|
1029
|
-
* Resolve the project path that owns `.rivet/variants/` for a session.
|
|
1030
|
-
* Existing sessions use the user's project. Fresh sessions use the generated
|
|
1031
|
-
* project folder. Must match what `persistCompletedFreshVariant` writes to.
|
|
1032
|
-
*/
|
|
1033
518
|
private resolveHistoryProjectPath;
|
|
1034
519
|
private readManifest;
|
|
1035
|
-
/**
|
|
1036
|
-
* The port to start scanning from when allocating a variant's preview dev
|
|
1037
|
-
* server. Fresh worktrees run the Vite template (5173); existing projects use
|
|
1038
|
-
* their detected framework's default (3000 for Next, etc.), falling back to
|
|
1039
|
-
* 3000 if detection fails. Scanning upward from here lands the preview on a
|
|
1040
|
-
* sensible, predictable port near the project's normal one.
|
|
1041
|
-
*/
|
|
1042
520
|
private resolveDevServerStartPort;
|
|
1043
|
-
/**
|
|
1044
|
-
* Resolve dev server invocation for a worktree. Fresh-project worktrees
|
|
1045
|
-
* always use the Vite template's npm command at the worktree root; existing
|
|
1046
|
-
* projects defer to the user's framework/packageManager config.
|
|
1047
|
-
*/
|
|
1048
521
|
private resolveDevServer;
|
|
1049
|
-
/**
|
|
1050
|
-
* Pure invocation resolution — no dependency installs, no side effects.
|
|
1051
|
-
* Split from {@link resolveDevServer} so history persistence can capture
|
|
1052
|
-
* the SAME deterministic resolution the boot path uses without booting:
|
|
1053
|
-
* persist fires at code-gen success, before the dev server starts, so the
|
|
1054
|
-
* live record's stashed command usually isn't available yet.
|
|
1055
|
-
*/
|
|
1056
522
|
private resolveDevServerCommand;
|
|
1057
|
-
/** Prepares the direction's declared dependencies before each server start. */
|
|
1058
523
|
private ensureProjectDependencies;
|
|
1059
|
-
/**
|
|
1060
|
-
* Resolve the dev-server working directory for an existing-project variant.
|
|
1061
|
-
* WorktreeManager is constructed around the editor/root project, but
|
|
1062
|
-
* `start_variants` can target a nested app (for example `examples/blog`).
|
|
1063
|
-
* In that case the worktree root is still the git root clone, while the dev
|
|
1064
|
-
* server must run from the nested project path.
|
|
1065
|
-
*/
|
|
1066
524
|
private resolveExistingProjectCwd;
|
|
1067
|
-
/**
|
|
1068
|
-
* After the chosen variant has been renamed into `destinationPath`, move
|
|
1069
|
-
* each unchosen sibling worktree into a `<destinationParent>/<slug>-variants/NN-<label>/`
|
|
1070
|
-
* folder with its own prepared dependency installation. Writes a manifest documenting all 5 variants (the chosen
|
|
1071
|
-
* one with `folder: null` and `chosenPath: '../<slug>'`).
|
|
1072
|
-
*
|
|
1073
|
-
* Sets `vitePreservedSiblings = true` on session resources so the
|
|
1074
|
-
* subsequent teardown skips `cleanupFreshWorktrees` (which would otherwise
|
|
1075
|
-
* delete the just-preserved history). Dev servers still get stopped.
|
|
1076
|
-
*/
|
|
1077
525
|
private preserveUnchosenVariants;
|
|
1078
|
-
/**
|
|
1079
|
-
* Rename `sourceWorktreePath` into `destinationPath`, then replace the
|
|
1080
|
-
* worktree's `.git` with a fresh-history init + initial commit. Matches
|
|
1081
|
-
* the historical materializeProject behavior of "user sees a fresh repo
|
|
1082
|
-
* at destinationPath" so we don't surprise them with a `rivet: variant
|
|
1083
|
-
* baseline` commit they didn't intend.
|
|
1084
|
-
*
|
|
1085
|
-
* The rename is the load-bearing operation: it moves the entire variant
|
|
1086
|
-
* tree (template files + materialized node_modules) in O(1) when the
|
|
1087
|
-
* source and destination share a volume. The git reset that follows is
|
|
1088
|
-
* best-effort housekeeping; a failure there leaves files in place.
|
|
1089
|
-
*/
|
|
1090
526
|
private renameWorktreeIntoDestination;
|
|
1091
|
-
/**
|
|
1092
|
-
* Stop every variant dev server currently running for `resources`. Clears
|
|
1093
|
-
* the `devServerProcess` / `port` fields on each record so subsequent
|
|
1094
|
-
* teardown logic doesn't try to stop them a second time. Called from
|
|
1095
|
-
* `commitVariant` (vite_app rename path) BEFORE the worktree directory is
|
|
1096
|
-
* renamed — leaving Vite alive across the rename leaks empty `.vite/`
|
|
1097
|
-
* stub dirs at the old paths.
|
|
1098
|
-
*/
|
|
1099
527
|
private stopAllDevServersForSession;
|
|
1100
528
|
private scheduleActivePreviewIdleTimer;
|
|
1101
529
|
private clearActivePreviewIdleTimer;
|
|
1102
|
-
/** @effect Stops idle variant child processes and clears dead preview ports. */
|
|
1103
530
|
private stopIdleVariantDevServers;
|
|
1104
|
-
/**
|
|
1105
|
-
* Spawn a fresh dev server at the user-facing destinationPath and retarget
|
|
1106
|
-
* the proxy so the iframe stays live across commit. Stores the process on
|
|
1107
|
-
* `resources.committedDevServer` so teardown can hand it off to the
|
|
1108
|
-
* lingering registry instead of killing it. Best-effort: a failure here is
|
|
1109
|
-
* non-fatal — the commit still succeeds; the user just has to run
|
|
1110
|
-
* `npm run dev` themselves to bring the preview back.
|
|
1111
|
-
*
|
|
1112
|
-
* `mode` selects the server flavor: `vite_app` spawns Vite via `npm run
|
|
1113
|
-
* dev`; `static_preview` spawns the in-tree static file server bound to
|
|
1114
|
-
* the destination directory (no install, no build, ~ms startup).
|
|
1115
|
-
*/
|
|
1116
531
|
private startCommittedDevServer;
|
|
1117
|
-
/**
|
|
1118
|
-
* Stop any committed dev servers that were left alive past their session's
|
|
1119
|
-
* teardown. Called at the start of a new `propose` (so the next session's
|
|
1120
|
-
* preview doesn't compete with stale processes) and exposed for explicit
|
|
1121
|
-
* shutdown hooks. Best-effort: per-server failures are logged but don't
|
|
1122
|
-
* propagate.
|
|
1123
|
-
*/
|
|
1124
532
|
private stopLingeringCommittedDevServers;
|
|
1125
533
|
private teardownSession;
|
|
1126
534
|
private ensureResources;
|