rivet-design 0.17.4 → 0.17.5
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 +0 -239
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +10 -368
- 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 +0 -597
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +4 -1273
- 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 +4 -492
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +0 -165
- 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 +0 -6
- package/dist/agent-variants/variantContext.d.ts.map +1 -1
- package/dist/agent-variants/variantContext.js +0 -9
- 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 +0 -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 +31 -102
- 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/reference.d.ts +0 -5
- package/dist/cli/commands/reference.d.ts.map +1 -1
- package/dist/cli/commands/reference.js +0 -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 +0 -31
- 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 +0 -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 +0 -2
- package/dist/library/HubClient.d.ts.map +1 -1
- package/dist/library/HubClient.js +0 -4
- 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 +0 -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 +6 -320
- 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 +0 -1
- 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 +0 -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/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/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/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 +0 -34
- package/dist/services/IntegrationsClient.d.ts.map +1 -1
- package/dist/services/IntegrationsClient.js +0 -27
- 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 +0 -16
- 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 +0 -182
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +0 -193
- 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 +0 -32
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +5 -62
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantHistoryService.d.ts +0 -114
- package/dist/services/VariantHistoryService.d.ts.map +1 -1
- package/dist/services/VariantHistoryService.js +2 -144
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +0 -31
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +0 -35
- 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 +0 -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/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/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 +0 -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/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 +0 -39
- package/dist/types/variant-history.d.ts.map +1 -1
- 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 +0 -8
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +0 -8
- 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 +12 -13
- package/scripts/verify-node-version.cjs +0 -3
- package/src/ui/dist/assets/{LibraryApp-qbLqcNxM.js → LibraryApp-x6PbzlGr.js} +1 -1
- package/src/ui/dist/assets/{main-touv07Dk.js → main-BW1Odsqp.js} +75 -75
- package/src/ui/dist/assets/main-DDQRZm89.css +1 -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
|
@@ -5,77 +5,28 @@ import type { ActiveProjectContext, ActiveVariantSnapshot, Brief, DesignContextE
|
|
|
5
5
|
import { VariantHistoryService } from '../services/VariantHistoryService';
|
|
6
6
|
import type { MCPVariantsTelemetryMetadata } from '../services/MCPVariantsTelemetry';
|
|
7
7
|
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
8
|
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
9
|
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
10
|
forkWorktreesFrom?(sourceWorktreePath: string, sessionId: string, count: number, instanceKeyPrefix?: string): Promise<string[]>;
|
|
23
11
|
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
12
|
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
13
|
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
14
|
cleanupSession(sessionId: string, freshDestinationParent?: string): Promise<void>;
|
|
37
15
|
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
16
|
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
17
|
releasePort?(port: number): void;
|
|
46
18
|
startDevServer(worktreePath: string, port: number, cmd: string, args: string[], env: Record<string, string>): Promise<ChildProcess>;
|
|
47
19
|
stopDevServer(proc: ChildProcess, timeoutMs?: number): Promise<void>;
|
|
48
20
|
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
21
|
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
22
|
moveWorktreeToHistory?(srcWorktreePath: string, historyDir: string, folderName: string): string;
|
|
58
23
|
}
|
|
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
24
|
type DevServerProjectEnvironment = {
|
|
67
25
|
projectPath: string;
|
|
68
26
|
framework: Exclude<Framework, 'static'>;
|
|
69
27
|
packageManager: string;
|
|
70
28
|
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
29
|
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
30
|
buildDevCommand?: (port: number) => {
|
|
80
31
|
cmd: string;
|
|
81
32
|
args: string[];
|
|
@@ -88,23 +39,11 @@ type StaticProjectEnvironment = {
|
|
|
88
39
|
entryPath: string;
|
|
89
40
|
};
|
|
90
41
|
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
42
|
export type PreviewQaRunner = (args: {
|
|
98
43
|
sessionId: string;
|
|
99
44
|
workItemId: string;
|
|
100
45
|
html: string;
|
|
101
46
|
}) => 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
47
|
export type DroppedRefinement = {
|
|
109
48
|
variantId: string;
|
|
110
49
|
reason: string;
|
|
@@ -114,70 +53,25 @@ export interface OrchestratorDeps {
|
|
|
114
53
|
worktreeManager: WorktreeManagerLike;
|
|
115
54
|
resolveProjectEnvironment: (sessionId: string) => Promise<ProjectEnvironment>;
|
|
116
55
|
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
56
|
installDependencies?: (worktreePath: string, options?: {
|
|
121
57
|
workspaceRoot: string;
|
|
122
58
|
force?: boolean;
|
|
123
59
|
signal?: AbortSignal;
|
|
124
60
|
}) => 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
61
|
materializeProject?: (sourceWorktreePath: string, destinationPath: string) => Promise<void>;
|
|
130
|
-
/** Override the preview QA runner. See `PreviewQaRunner` for the contract. */
|
|
131
62
|
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
63
|
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
64
|
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
65
|
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
66
|
startStaticPreviewServer?: (args: {
|
|
159
67
|
rootPath: string;
|
|
160
68
|
port: number;
|
|
161
69
|
host?: string;
|
|
162
70
|
}) => 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
71
|
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
72
|
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
73
|
devServerRestartDelayMs?: number;
|
|
175
74
|
}
|
|
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
75
|
export interface VariantsTelemetry {
|
|
182
76
|
track(event: string, properties?: Record<string, unknown>): void;
|
|
183
77
|
trackAgentVariantsRequestStarted?: (data: MCPVariantsTelemetryMetadata) => void;
|
|
@@ -226,15 +120,10 @@ export interface VariantsTelemetry {
|
|
|
226
120
|
sessionId: string;
|
|
227
121
|
variantId: string;
|
|
228
122
|
errorCode: string;
|
|
229
|
-
/** Coarse cause: 'spawn_error' | 'exited' | 'timeout' |
|
|
230
|
-
* 'missing_dev_script' | 'unknown'. */
|
|
231
123
|
reason?: string;
|
|
232
|
-
/** True when the failure was a port collision (EADDRINUSE / already running). */
|
|
233
124
|
portInUse?: boolean;
|
|
234
|
-
/** Child exit code / signal when reason is 'exited'. */
|
|
235
125
|
exitCode?: number | null;
|
|
236
126
|
signal?: string | null;
|
|
237
|
-
/** True when the output matched module-resolution failure markers. */
|
|
238
127
|
missingDeps?: boolean;
|
|
239
128
|
}) => void;
|
|
240
129
|
trackAgentVariantsPreviewStarted?: (data: {
|
|
@@ -291,9 +180,6 @@ export interface VariantsTelemetry {
|
|
|
291
180
|
durationMs: number | null;
|
|
292
181
|
}) => void;
|
|
293
182
|
}
|
|
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
183
|
export type ActiveSnapshot = {
|
|
298
184
|
active: false;
|
|
299
185
|
} | {
|
|
@@ -307,41 +193,13 @@ export type ActiveSnapshot = {
|
|
|
307
193
|
};
|
|
308
194
|
summary: TerminalSummary | null;
|
|
309
195
|
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
196
|
projectContext: ActiveProjectContext;
|
|
314
|
-
/** For fresh sessions, the user-facing destination path the materialize
|
|
315
|
-
* step will land at. Undefined for existing-project sessions. */
|
|
316
197
|
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
198
|
artifacts?: VariantSessionArtifact[];
|
|
321
199
|
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
200
|
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
201
|
pendingVariantRequests?: number;
|
|
333
202
|
};
|
|
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
203
|
export declare class AgentVariantsOrchestrator {
|
|
346
204
|
private readonly store;
|
|
347
205
|
private readonly worktrees;
|
|
@@ -358,75 +216,23 @@ export declare class AgentVariantsOrchestrator {
|
|
|
358
216
|
private readonly activeVariantServerIdleTtlMs;
|
|
359
217
|
private readonly devServerRestartDelayMs;
|
|
360
218
|
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
219
|
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
220
|
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
221
|
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
222
|
private readonly events;
|
|
387
223
|
constructor(deps: OrchestratorDeps);
|
|
388
224
|
propose(args: ProposeArgs): ProposeResult;
|
|
389
|
-
/** Returns the most recent agent-variants sessionId (or null). */
|
|
390
225
|
getActiveSessionId(): string | null;
|
|
391
|
-
/** Subscribe to active-snapshot pushes. Returns an unsubscribe fn. */
|
|
392
226
|
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
227
|
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
228
|
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
229
|
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
230
|
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
231
|
hasUiClients(): boolean;
|
|
416
|
-
/** @effect Records activity for the current variants session, if one exists. */
|
|
417
232
|
touchActiveSession(): void;
|
|
418
|
-
/** @effect Resets idle cleanup for active variant preview servers. */
|
|
419
233
|
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
234
|
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
235
|
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
236
|
private static contextFilesOf;
|
|
431
237
|
getHostWork(sessionId: string): HostVariantWorkItemSnapshot[];
|
|
432
238
|
private getAssignedWorkspace;
|
|
@@ -463,24 +269,10 @@ export declare class AgentVariantsOrchestrator {
|
|
|
463
269
|
workItemId?: string;
|
|
464
270
|
workItemIds?: string[];
|
|
465
271
|
}): RequestWorkResult;
|
|
466
|
-
/** @effect Copies caller-supplied context assets into each leased workspace. */
|
|
467
272
|
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
273
|
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
274
|
private writeLeasedWorkItemBriefings;
|
|
481
|
-
/** @effect Assigns isolated, server-owned artifact workspaces to leased static work. */
|
|
482
275
|
private ensureStaticWorkspaces;
|
|
483
|
-
/** Reads a completed static artifact while enforcing its assigned directory boundary. */
|
|
484
276
|
private readAssignedStaticArtifact;
|
|
485
277
|
beginStaticPreviewRefinements(args: {
|
|
486
278
|
sessionId: string;
|
|
@@ -499,24 +291,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
499
291
|
droppedRefinements: DroppedRefinement[];
|
|
500
292
|
createdWorkItemIds: string[];
|
|
501
293
|
};
|
|
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
294
|
adoptPastVariant(args: {
|
|
521
295
|
sessionId: string;
|
|
522
296
|
source: {
|
|
@@ -532,11 +306,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
532
306
|
workItemId: string;
|
|
533
307
|
alreadyAdopted: boolean;
|
|
534
308
|
}>;
|
|
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
309
|
bootstrapPastVariantSession(args: {
|
|
541
310
|
source: {
|
|
542
311
|
sessionId: string;
|
|
@@ -557,18 +326,7 @@ export declare class AgentVariantsOrchestrator {
|
|
|
557
326
|
}>;
|
|
558
327
|
private getUsableActiveSessionId;
|
|
559
328
|
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
329
|
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
330
|
private resolveHistoryParentVariant;
|
|
573
331
|
getVariantPick(sessionId: string): ReturnType<SessionStore['getVariantPick']>;
|
|
574
332
|
refineVariant(args: {
|
|
@@ -579,7 +337,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
579
337
|
}): RequestWorkResult;
|
|
580
338
|
getStage(sessionId: string): Stage;
|
|
581
339
|
getWorkItemInput(sessionId: string, workItemId: string): unknown;
|
|
582
|
-
/** Returns status after orchestration QA and refinement post-processing. */
|
|
583
340
|
getWorkItemStatus(sessionId: string, workItemId: string): WorkItemStatus;
|
|
584
341
|
getBriefs(sessionId: string): Brief[];
|
|
585
342
|
getProgress(sessionId: string): {
|
|
@@ -589,66 +346,19 @@ export declare class AgentVariantsOrchestrator {
|
|
|
589
346
|
getSummary(sessionId: string): TerminalSummary;
|
|
590
347
|
getVariants(sessionId: string): ActiveVariantSnapshot[];
|
|
591
348
|
hasSession(sessionId: string): boolean;
|
|
592
|
-
/** Read the projectContext for a session — used by Express routes that
|
|
593
|
-
* build the chip snapshot via `stateForSession`. */
|
|
594
349
|
getProjectContext(sessionId: string): ProjectContext;
|
|
595
|
-
/** Resolve a worktree path for a code-gen work item, if provisioned. */
|
|
596
350
|
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
351
|
getProjectCwdInWorktree(worktreePath: string): Promise<string>;
|
|
602
|
-
/** Resolve the dev server port for a code-gen work item, if running. */
|
|
603
352
|
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
353
|
restoreVariantPreview(sessionId: string, workItemId: string, options?: {
|
|
614
354
|
retryFailed?: boolean;
|
|
615
355
|
}): 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
356
|
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
357
|
getVariantWorkItemKind(sessionId: string, workItemId: string): string | undefined;
|
|
630
358
|
getStaticPreviewHtml(sessionId: string, workItemId: string): string | undefined;
|
|
631
|
-
/** Resolve the DESIGN.md markdown behind an artifact link. */
|
|
632
359
|
getDesignContextMarkdown(sessionId: string, artifactId: string): string | undefined;
|
|
633
|
-
/** Build the rendered DesignMD document for an artifact link. */
|
|
634
360
|
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
361
|
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
362
|
resolveStaticPreviewAssetPath(sessionId: string, workItemId: string, requestedPath: string): string | undefined;
|
|
653
363
|
private getStaticPreviewByBriefId;
|
|
654
364
|
private buildStaticPreviewUrl;
|
|
@@ -656,66 +366,19 @@ export declare class AgentVariantsOrchestrator {
|
|
|
656
366
|
sessionId: string;
|
|
657
367
|
selections: ApprovedBriefSelection[];
|
|
658
368
|
}): 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
369
|
startUnified(args: {
|
|
678
370
|
prompt: string;
|
|
679
371
|
count?: number;
|
|
680
372
|
target?: Target;
|
|
681
373
|
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
374
|
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
375
|
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
376
|
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
377
|
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
378
|
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
379
|
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
380
|
sourceVariantId?: string;
|
|
713
|
-
/** Known project files from the initiating selection. Workers inspect
|
|
714
|
-
* these first and expand only when dependencies require it. */
|
|
715
381
|
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
382
|
fidelity?: import('./contracts').WorkerFidelity;
|
|
720
383
|
}): Promise<{
|
|
721
384
|
sessionId: string;
|
|
@@ -726,47 +389,15 @@ export declare class AgentVariantsOrchestrator {
|
|
|
726
389
|
status: 'pending';
|
|
727
390
|
}>;
|
|
728
391
|
scaffoldBaseWorkItemId: string | null;
|
|
729
|
-
/** Populated when `leaseOwner` was provided. */
|
|
730
392
|
leaseId?: string;
|
|
731
393
|
leaseTtlMs?: number;
|
|
732
394
|
leasedWorkItems?: import('./SessionStore').RequestWorkResult['leasedWorkItems'];
|
|
733
395
|
}>;
|
|
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
396
|
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
397
|
private getAppendableExistingSessionId;
|
|
752
|
-
/** @effect Registers a provisioned git worktree with runtime and workspace state. */
|
|
753
398
|
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
399
|
private withProvisioningTelemetry;
|
|
764
400
|
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
401
|
private provisionForkedFromVariantWorktrees;
|
|
771
402
|
reportComplete(args: {
|
|
772
403
|
sessionId: string;
|
|
@@ -783,13 +414,9 @@ export declare class AgentVariantsOrchestrator {
|
|
|
783
414
|
tokensIn?: number;
|
|
784
415
|
tokensOut?: number;
|
|
785
416
|
model?: string;
|
|
786
|
-
/** Worker cost in USD (executor-run workers bill outside any host
|
|
787
|
-
* session; this keeps them cost-accountable in telemetry). */
|
|
788
417
|
costUsd?: number;
|
|
789
418
|
title?: string;
|
|
790
419
|
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
420
|
runtime?: import('./contracts').WorkerRuntimeInfo;
|
|
794
421
|
}): Promise<ReportCompleteResult>;
|
|
795
422
|
cancel(args: {
|
|
@@ -799,13 +426,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
799
426
|
stage: 'cancelled';
|
|
800
427
|
cleanupStatus: 'pending' | 'complete' | 'partial';
|
|
801
428
|
}>;
|
|
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
429
|
cancelVariant(args: {
|
|
810
430
|
sessionId: string;
|
|
811
431
|
variantId: string;
|
|
@@ -817,12 +437,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
817
437
|
sessionStage: Stage;
|
|
818
438
|
alreadyTerminal: boolean;
|
|
819
439
|
}>;
|
|
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
440
|
removeVariant(args: {
|
|
827
441
|
sessionId: string;
|
|
828
442
|
variantId: string;
|
|
@@ -833,13 +447,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
833
447
|
sessionStage: Stage;
|
|
834
448
|
alreadyRemoved: boolean;
|
|
835
449
|
}>;
|
|
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
450
|
renameVariant(args: {
|
|
844
451
|
sessionId: string;
|
|
845
452
|
variantId: string;
|
|
@@ -850,10 +457,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
850
457
|
label: string;
|
|
851
458
|
sessionStage: Stage;
|
|
852
459
|
}>;
|
|
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
460
|
renameRun(args: {
|
|
858
461
|
sessionId: string;
|
|
859
462
|
requestId?: string;
|
|
@@ -866,12 +469,6 @@ export declare class AgentVariantsOrchestrator {
|
|
|
866
469
|
renamedCount: number;
|
|
867
470
|
sessionStage: Stage;
|
|
868
471
|
}>;
|
|
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
472
|
commitVariant(args: {
|
|
876
473
|
sessionId: string;
|
|
877
474
|
variantId: string;
|
|
@@ -886,241 +483,47 @@ export declare class AgentVariantsOrchestrator {
|
|
|
886
483
|
}>;
|
|
887
484
|
private commitVariantImpl;
|
|
888
485
|
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
486
|
private assertDestinationAvailable;
|
|
899
|
-
/** Read the captured diff for a code-gen variant, if available. */
|
|
900
487
|
getVariantDiff(sessionId: string, variantId: string): string | undefined;
|
|
901
488
|
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
489
|
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
490
|
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
491
|
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
492
|
private evaluateQaForReport;
|
|
934
493
|
private evaluateExistingCodeGenQa;
|
|
935
|
-
/** Run the injected preview QA runner, converting a thrown runner into a
|
|
936
|
-
* failed `VariantQaResult` (mirrors the prior inline behavior). */
|
|
937
494
|
private runPreviewQaSafely;
|
|
938
495
|
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
496
|
private handleQaRegenRetry;
|
|
945
497
|
private startVariantDevServer;
|
|
946
498
|
private handleSucceededReport;
|
|
947
499
|
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
500
|
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
501
|
private readonly pendingHistoryPersists;
|
|
960
502
|
private trackHistoryPersist;
|
|
961
|
-
/** Await every in-flight history persist, including ones that start while
|
|
962
|
-
* draining (a refine can persist mid-settle). */
|
|
963
503
|
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
504
|
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
505
|
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
506
|
private persistCompletedFreshVariant;
|
|
1003
|
-
/**
|
|
1004
|
-
* @effect Drains fresh-project history writes before commit moves or rewrites
|
|
1005
|
-
* the generated project folder.
|
|
1006
|
-
*/
|
|
1007
507
|
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
508
|
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
509
|
private markPersistedVariantsCancelled;
|
|
1025
510
|
private markPersistedVariantCancelled;
|
|
1026
511
|
private markPersistedVariantRemoved;
|
|
1027
512
|
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
513
|
private resolveHistoryProjectPath;
|
|
1034
514
|
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
515
|
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
516
|
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
517
|
private resolveDevServerCommand;
|
|
1057
|
-
/** Prepares the direction's declared dependencies before each server start. */
|
|
1058
518
|
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
519
|
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
520
|
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
521
|
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
522
|
private stopAllDevServersForSession;
|
|
1100
523
|
private scheduleActivePreviewIdleTimer;
|
|
1101
524
|
private clearActivePreviewIdleTimer;
|
|
1102
|
-
/** @effect Stops idle variant child processes and clears dead preview ports. */
|
|
1103
525
|
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
526
|
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
527
|
private stopLingeringCommittedDevServers;
|
|
1125
528
|
private teardownSession;
|
|
1126
529
|
private ensureResources;
|