rivet-design 0.17.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rivet.js +0 -16
- package/dist/agent-variants/SessionStore.d.ts +5 -240
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +42 -371
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.d.ts +0 -10
- package/dist/agent-variants/VariantWorkspaceManager.d.ts.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.js +0 -17
- package/dist/agent-variants/VariantWorkspaceManager.js.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.d.ts +1 -105
- package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.js +11 -182
- package/dist/agent-variants/WorkerExecutorService.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +6 -598
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +55 -1288
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts +0 -6
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -23
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/briefContent.d.ts +0 -11
- package/dist/agent-variants/briefContent.d.ts.map +1 -1
- package/dist/agent-variants/briefContent.js +0 -12
- package/dist/agent-variants/briefContent.js.map +1 -1
- package/dist/agent-variants/contextAssets.d.ts +0 -3
- package/dist/agent-variants/contextAssets.d.ts.map +1 -1
- package/dist/agent-variants/contextAssets.js +0 -3
- package/dist/agent-variants/contextAssets.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +2016 -600
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +10 -174
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.d.ts +0 -17
- package/dist/agent-variants/createProjectArtifacts.d.ts.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.js +0 -10
- package/dist/agent-variants/createProjectArtifacts.js.map +1 -1
- package/dist/agent-variants/diffQa.d.ts +0 -1
- package/dist/agent-variants/diffQa.d.ts.map +1 -1
- package/dist/agent-variants/diffQa.js +0 -1
- package/dist/agent-variants/diffQa.js.map +1 -1
- package/dist/agent-variants/directionAuthoring.d.ts +0 -13
- package/dist/agent-variants/directionAuthoring.d.ts.map +1 -1
- package/dist/agent-variants/directionAuthoring.js +12 -46
- package/dist/agent-variants/directionAuthoring.js.map +1 -1
- package/dist/agent-variants/elementRefToTarget.d.ts +0 -17
- package/dist/agent-variants/elementRefToTarget.d.ts.map +1 -1
- package/dist/agent-variants/elementRefToTarget.js +0 -17
- package/dist/agent-variants/elementRefToTarget.js.map +1 -1
- package/dist/agent-variants/generatedDestination.d.ts +0 -3
- package/dist/agent-variants/generatedDestination.d.ts.map +1 -1
- package/dist/agent-variants/generatedDestination.js +0 -3
- package/dist/agent-variants/generatedDestination.js.map +1 -1
- package/dist/agent-variants/previewQa.d.ts +0 -6
- package/dist/agent-variants/previewQa.d.ts.map +1 -1
- package/dist/agent-variants/previewQa.js +0 -5
- package/dist/agent-variants/previewQa.js.map +1 -1
- package/dist/agent-variants/runLabel.d.ts +0 -15
- package/dist/agent-variants/runLabel.d.ts.map +1 -1
- package/dist/agent-variants/runLabel.js +0 -19
- package/dist/agent-variants/runLabel.js.map +1 -1
- package/dist/agent-variants/runPlan.d.ts +3 -84
- package/dist/agent-variants/runPlan.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.js +0 -51
- package/dist/agent-variants/runPlan.js.map +1 -1
- package/dist/agent-variants/sourceContext.d.ts +0 -10
- package/dist/agent-variants/sourceContext.d.ts.map +1 -1
- package/dist/agent-variants/sourceContext.js +0 -36
- package/dist/agent-variants/sourceContext.js.map +1 -1
- package/dist/agent-variants/variantContext.d.ts +6 -7
- package/dist/agent-variants/variantContext.d.ts.map +1 -1
- package/dist/agent-variants/variantContext.js +69 -10
- package/dist/agent-variants/variantContext.js.map +1 -1
- package/dist/agent-variants/videoKeyframes.d.ts +0 -7
- package/dist/agent-variants/videoKeyframes.d.ts.map +1 -1
- package/dist/agent-variants/videoKeyframes.js +0 -7
- package/dist/agent-variants/videoKeyframes.js.map +1 -1
- package/dist/agent-variants/workItemBriefing.d.ts +0 -21
- package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
- package/dist/agent-variants/workItemBriefing.js +0 -49
- package/dist/agent-variants/workItemBriefing.js.map +1 -1
- package/dist/agent-variants/workerRuntime.d.ts +1 -137
- package/dist/agent-variants/workerRuntime.d.ts.map +1 -1
- package/dist/agent-variants/workerRuntime.js +8 -147
- package/dist/agent-variants/workerRuntime.js.map +1 -1
- package/dist/cli/browser.d.ts +0 -1
- package/dist/cli/browser.d.ts.map +1 -1
- package/dist/cli/browser.js +0 -1
- package/dist/cli/browser.js.map +1 -1
- package/dist/cli/callerRunnerPaths.d.ts +0 -50
- package/dist/cli/callerRunnerPaths.d.ts.map +1 -1
- package/dist/cli/callerRunnerPaths.js +0 -59
- package/dist/cli/callerRunnerPaths.js.map +1 -1
- package/dist/cli/client.d.ts +0 -18
- package/dist/cli/client.d.ts.map +1 -1
- package/dist/cli/client.js +0 -28
- package/dist/cli/client.js.map +1 -1
- package/dist/cli/commandNames.d.ts +0 -7
- package/dist/cli/commandNames.d.ts.map +1 -1
- package/dist/cli/commandNames.js +1 -7
- package/dist/cli/commandNames.js.map +1 -1
- package/dist/cli/commands/auth.d.ts +0 -6
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js +0 -6
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/elementSelector.d.ts +0 -6
- package/dist/cli/commands/elementSelector.d.ts.map +1 -1
- package/dist/cli/commands/elementSelector.js +0 -7
- package/dist/cli/commands/elementSelector.js.map +1 -1
- package/dist/cli/commands/evidence.d.ts +0 -6
- package/dist/cli/commands/evidence.d.ts.map +1 -1
- package/dist/cli/commands/evidence.js +0 -6
- package/dist/cli/commands/evidence.js.map +1 -1
- package/dist/cli/commands/libraryOpen.d.ts +0 -1
- package/dist/cli/commands/libraryOpen.d.ts.map +1 -1
- package/dist/cli/commands/libraryOpen.js +0 -4
- package/dist/cli/commands/libraryOpen.js.map +1 -1
- package/dist/cli/commands/mcpServe.d.ts +0 -24
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +126 -106
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/open.d.ts +0 -8
- package/dist/cli/commands/open.d.ts.map +1 -1
- package/dist/cli/commands/open.js +0 -57
- package/dist/cli/commands/open.js.map +1 -1
- package/dist/cli/commands/profile.d.ts +3 -0
- package/dist/cli/commands/profile.d.ts.map +1 -0
- package/dist/cli/commands/profile.js +192 -0
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/reference.d.ts +0 -5
- package/dist/cli/commands/reference.d.ts.map +1 -1
- package/dist/cli/commands/reference.js +4 -27
- package/dist/cli/commands/reference.js.map +1 -1
- package/dist/cli/commands/serve.d.ts +0 -5
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +0 -34
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +0 -16
- package/dist/cli/commands/shared.d.ts.map +1 -1
- package/dist/cli/commands/shared.js +0 -19
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/status.d.ts +0 -6
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/stop.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts.map +1 -1
- package/dist/cli/commands/stop.js +0 -6
- package/dist/cli/commands/stop.js.map +1 -1
- package/dist/cli/commands/update.d.ts +0 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +0 -1
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/variants.d.ts +0 -1
- package/dist/cli/commands/variants.d.ts.map +1 -1
- package/dist/cli/commands/variants.js +13 -32
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/commands/wait.d.ts +0 -21
- package/dist/cli/commands/wait.d.ts.map +1 -1
- package/dist/cli/commands/wait.js +0 -23
- package/dist/cli/commands/wait.js.map +1 -1
- package/dist/cli/entry.d.ts +0 -10
- package/dist/cli/entry.d.ts.map +1 -1
- package/dist/cli/entry.js +0 -13
- package/dist/cli/entry.js.map +1 -1
- package/dist/cli/envelope.d.ts +1 -25
- package/dist/cli/envelope.d.ts.map +1 -1
- package/dist/cli/envelope.js +0 -19
- package/dist/cli/envelope.js.map +1 -1
- package/dist/cli/flags.d.ts +0 -7
- package/dist/cli/flags.d.ts.map +1 -1
- package/dist/cli/flags.js +0 -7
- package/dist/cli/flags.js.map +1 -1
- package/dist/cli/handoff.d.ts +0 -33
- package/dist/cli/handoff.d.ts.map +1 -1
- package/dist/cli/handoff.js +0 -42
- package/dist/cli/handoff.js.map +1 -1
- package/dist/cli/handoffStore.d.ts +0 -11
- package/dist/cli/handoffStore.d.ts.map +1 -1
- package/dist/cli/handoffStore.js +0 -10
- package/dist/cli/handoffStore.js.map +1 -1
- package/dist/cli/hostWorkNextAction.d.ts +0 -11
- package/dist/cli/hostWorkNextAction.d.ts.map +1 -1
- package/dist/cli/hostWorkNextAction.js +0 -4
- package/dist/cli/hostWorkNextAction.js.map +1 -1
- package/dist/cli/io.d.ts +0 -9
- package/dist/cli/io.d.ts.map +1 -1
- package/dist/cli/io.js +0 -1
- package/dist/cli/io.js.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.d.ts +0 -5
- package/dist/cli/resolveDefaultNodeEnv.d.ts.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.js +0 -5
- package/dist/cli/resolveDefaultNodeEnv.js.map +1 -1
- package/dist/cli/router.d.ts +0 -21
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +8 -46
- package/dist/cli/router.js.map +1 -1
- package/dist/cli/runnerSelection.d.ts +0 -58
- package/dist/cli/runnerSelection.d.ts.map +1 -1
- package/dist/cli/runnerSelection.js +0 -16
- package/dist/cli/runnerSelection.js.map +1 -1
- package/dist/cli/serverHandshake.d.ts +0 -36
- package/dist/cli/serverHandshake.d.ts.map +1 -1
- package/dist/cli/serverHandshake.js +0 -29
- package/dist/cli/serverHandshake.js.map +1 -1
- package/dist/cli/serverUnavailable.d.ts +0 -1
- package/dist/cli/serverUnavailable.d.ts.map +1 -1
- package/dist/cli/serverUnavailable.js +0 -1
- package/dist/cli/serverUnavailable.js.map +1 -1
- package/dist/cli/serverVersion.d.ts +0 -22
- package/dist/cli/serverVersion.d.ts.map +1 -1
- package/dist/cli/serverVersion.js +0 -12
- package/dist/cli/serverVersion.js.map +1 -1
- package/dist/cli/telemetry.d.ts +0 -4
- package/dist/cli/telemetry.d.ts.map +1 -1
- package/dist/cli/telemetry.js +0 -4
- package/dist/cli/telemetry.js.map +1 -1
- package/dist/config/evaluateFlags.d.ts +0 -4
- package/dist/config/evaluateFlags.d.ts.map +1 -1
- package/dist/config/evaluateFlags.js +0 -11
- package/dist/config/evaluateFlags.js.map +1 -1
- package/dist/config/featureFlagUserKey.d.ts +0 -3
- package/dist/config/featureFlagUserKey.d.ts.map +1 -1
- package/dist/config/featureFlagUserKey.js +0 -3
- package/dist/config/featureFlagUserKey.js.map +1 -1
- package/dist/config/flags.d.ts +0 -14
- package/dist/config/flags.d.ts.map +1 -1
- package/dist/config/flags.js +0 -27
- package/dist/config/flags.js.map +1 -1
- package/dist/config/proxy.d.ts +0 -3
- package/dist/config/proxy.d.ts.map +1 -1
- package/dist/config/proxy.js +0 -11
- package/dist/config/proxy.js.map +1 -1
- package/dist/config/telemetry.d.ts +0 -13
- package/dist/config/telemetry.d.ts.map +1 -1
- package/dist/config/telemetry.js +0 -13
- package/dist/config/telemetry.js.map +1 -1
- package/dist/config/telemetryContract.d.ts +0 -1
- package/dist/config/telemetryContract.d.ts.map +1 -1
- package/dist/config/telemetryContract.js +0 -1
- package/dist/config/telemetryContract.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +0 -69
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +0 -68
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +0 -2
- package/dist/index-core.js.map +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -105
- package/dist/index.js.map +1 -1
- package/dist/install/allowlists.d.ts +0 -32
- package/dist/install/allowlists.d.ts.map +1 -1
- package/dist/install/allowlists.js +0 -44
- package/dist/install/allowlists.js.map +1 -1
- package/dist/install/automaticCliUpdate.d.ts +0 -6
- package/dist/install/automaticCliUpdate.d.ts.map +1 -1
- package/dist/install/automaticCliUpdate.js +0 -13
- package/dist/install/automaticCliUpdate.js.map +1 -1
- package/dist/install/channelCli.d.ts +0 -1
- package/dist/install/channelCli.d.ts.map +1 -1
- package/dist/install/channelCli.js +0 -3
- package/dist/install/channelCli.js.map +1 -1
- package/dist/install/channelManager.d.ts +0 -14
- package/dist/install/channelManager.d.ts.map +1 -1
- package/dist/install/channelManager.js +0 -22
- package/dist/install/channelManager.js.map +1 -1
- package/dist/install/codexGuidance.d.ts +0 -1
- package/dist/install/codexGuidance.d.ts.map +1 -1
- package/dist/install/codexGuidance.js +0 -7
- package/dist/install/codexGuidance.js.map +1 -1
- package/dist/install/globalBootstrap.d.ts +0 -25
- package/dist/install/globalBootstrap.d.ts.map +1 -1
- package/dist/install/globalBootstrap.js +0 -10
- package/dist/install/globalBootstrap.js.map +1 -1
- package/dist/install/harnesses.d.ts +0 -66
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +0 -60
- package/dist/install/harnesses.js.map +1 -1
- package/dist/install/installationChannel.d.ts +0 -1
- package/dist/install/installationChannel.d.ts.map +1 -1
- package/dist/install/installationChannel.js +0 -1
- package/dist/install/installationChannel.js.map +1 -1
- package/dist/install/legacyMcp.d.ts +0 -23
- package/dist/install/legacyMcp.d.ts.map +1 -1
- package/dist/install/legacyMcp.js +3 -46
- package/dist/install/legacyMcp.js.map +1 -1
- package/dist/install/mcpRegistration.d.ts +0 -41
- package/dist/install/mcpRegistration.d.ts.map +1 -1
- package/dist/install/mcpRegistration.js +2 -70
- package/dist/install/mcpRegistration.js.map +1 -1
- package/dist/library/HubClient.d.ts +1 -2
- package/dist/library/HubClient.d.ts.map +1 -1
- package/dist/library/HubClient.js +11 -5
- package/dist/library/HubClient.js.map +1 -1
- package/dist/library/HubServer.d.ts +0 -1
- package/dist/library/HubServer.d.ts.map +1 -1
- package/dist/library/HubServer.js +19 -1
- package/dist/library/HubServer.js.map +1 -1
- package/dist/library/StaticPreviewServer.d.ts +0 -1
- package/dist/library/StaticPreviewServer.d.ts.map +1 -1
- package/dist/library/StaticPreviewServer.js +0 -1
- package/dist/library/StaticPreviewServer.js.map +1 -1
- package/dist/library/http.d.ts +0 -2
- package/dist/library/http.d.ts.map +1 -1
- package/dist/library/http.js +0 -2
- package/dist/library/http.js.map +1 -1
- package/dist/library/importFiles.d.ts +0 -6
- package/dist/library/importFiles.d.ts.map +1 -1
- package/dist/library/importFiles.js +45 -11
- package/dist/library/importFiles.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +0 -40
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +0 -34
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/prompts/commentVariationPrompts.d.ts +0 -5
- package/dist/prompts/commentVariationPrompts.d.ts.map +1 -1
- package/dist/prompts/commentVariationPrompts.js +0 -5
- package/dist/prompts/commentVariationPrompts.js.map +1 -1
- package/dist/prototype-host.js +0 -15
- package/dist/prototype-host.js.map +1 -1
- package/dist/proxy-middleware/preview-bridge.d.ts +0 -2
- package/dist/proxy-middleware/preview-bridge.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-bridge.js +0 -2
- package/dist/proxy-middleware/preview-bridge.js.map +1 -1
- package/dist/proxy-middleware/preview-connections.d.ts +0 -1
- package/dist/proxy-middleware/preview-connections.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-connections.js +0 -1
- package/dist/proxy-middleware/preview-connections.js.map +1 -1
- package/dist/proxy-middleware/proxy-config.d.ts +0 -12
- package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
- package/dist/proxy-middleware/proxy-config.js +2 -49
- package/dist/proxy-middleware/proxy-config.js.map +1 -1
- package/dist/routes/account.d.ts +0 -1
- package/dist/routes/account.d.ts.map +1 -1
- package/dist/routes/account.js +0 -2
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/agentVariants.d.ts +0 -15
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +132 -329
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/routes/cli.d.ts +0 -17
- package/dist/routes/cli.d.ts.map +1 -1
- package/dist/routes/cli.js +0 -13
- package/dist/routes/cli.js.map +1 -1
- package/dist/routes/emptyStatePage.d.ts +0 -12
- package/dist/routes/emptyStatePage.d.ts.map +1 -1
- package/dist/routes/emptyStatePage.js +0 -12
- package/dist/routes/emptyStatePage.js.map +1 -1
- package/dist/routes/git.d.ts.map +1 -1
- package/dist/routes/git.js +0 -13
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/inlineStartTracker.d.ts +0 -16
- package/dist/routes/inlineStartTracker.d.ts.map +1 -1
- package/dist/routes/inlineStartTracker.js.map +1 -1
- package/dist/routes/integrations.d.ts +0 -6
- package/dist/routes/integrations.d.ts.map +1 -1
- package/dist/routes/integrations.js +0 -6
- package/dist/routes/integrations.js.map +1 -1
- package/dist/routes/library/app.d.ts +0 -1
- package/dist/routes/library/app.d.ts.map +1 -1
- package/dist/routes/library/app.js +1 -3
- package/dist/routes/library/app.js.map +1 -1
- package/dist/routes/library/index.d.ts +0 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +3 -1
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/middleware.d.ts +0 -3
- package/dist/routes/library/middleware.d.ts.map +1 -1
- package/dist/routes/library/middleware.js +0 -4
- package/dist/routes/library/middleware.js.map +1 -1
- package/dist/routes/library/navigation.d.ts +0 -1
- package/dist/routes/library/navigation.d.ts.map +1 -1
- package/dist/routes/library/navigation.js +0 -1
- package/dist/routes/library/navigation.js.map +1 -1
- package/dist/routes/library/profiles.d.ts +5 -0
- package/dist/routes/library/profiles.d.ts.map +1 -0
- package/dist/routes/library/profiles.js +182 -0
- package/dist/routes/library/profiles.js.map +1 -0
- package/dist/routes/library/projects.d.ts +0 -1
- package/dist/routes/library/projects.d.ts.map +1 -1
- package/dist/routes/library/projects.js +0 -1
- package/dist/routes/library/projects.js.map +1 -1
- package/dist/routes/library/schemas.d.ts +2 -2
- package/dist/routes/library/staticPreview.d.ts +0 -1
- package/dist/routes/library/staticPreview.d.ts.map +1 -1
- package/dist/routes/library/staticPreview.js +0 -1
- package/dist/routes/library/staticPreview.js.map +1 -1
- package/dist/routes/library/types.d.ts +2 -0
- package/dist/routes/library/types.d.ts.map +1 -1
- package/dist/routes/library/variants.d.ts +0 -1
- package/dist/routes/library/variants.d.ts.map +1 -1
- package/dist/routes/library/variants.js +0 -1
- package/dist/routes/library/variants.js.map +1 -1
- package/dist/routes/mcp.d.ts +0 -3
- package/dist/routes/mcp.d.ts.map +1 -1
- package/dist/routes/mcp.js +0 -5
- package/dist/routes/mcp.js.map +1 -1
- package/dist/routes/prototypeHost.d.ts +0 -2
- package/dist/routes/prototypeHost.d.ts.map +1 -1
- package/dist/routes/prototypeHost.js +6 -32
- package/dist/routes/prototypeHost.js.map +1 -1
- package/dist/routes/static.d.ts +0 -3
- package/dist/routes/static.d.ts.map +1 -1
- package/dist/routes/static.js +0 -6
- package/dist/routes/static.js.map +1 -1
- package/dist/routes/support.d.ts +0 -3
- package/dist/routes/support.d.ts.map +1 -1
- package/dist/routes/support.js +0 -3
- package/dist/routes/support.js.map +1 -1
- package/dist/server.d.ts +0 -42
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -129
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +0 -76
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +0 -112
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/BrowserAgentClient.d.ts +1 -21
- package/dist/services/BrowserAgentClient.d.ts.map +1 -1
- package/dist/services/BrowserAgentClient.js +0 -10
- package/dist/services/BrowserAgentClient.js.map +1 -1
- package/dist/services/BundleStore.d.ts +0 -18
- package/dist/services/BundleStore.d.ts.map +1 -1
- package/dist/services/BundleStore.js +0 -10
- package/dist/services/BundleStore.js.map +1 -1
- package/dist/services/CliLogForwarder.d.ts +0 -26
- package/dist/services/CliLogForwarder.d.ts.map +1 -1
- package/dist/services/CliLogForwarder.js +1 -33
- package/dist/services/CliLogForwarder.js.map +1 -1
- package/dist/services/CommitMessageGenerator.d.ts +0 -6
- package/dist/services/CommitMessageGenerator.d.ts.map +1 -1
- package/dist/services/CommitMessageGenerator.js +0 -3
- package/dist/services/CommitMessageGenerator.js.map +1 -1
- package/dist/services/ComponentSearchService.d.ts +2 -16
- package/dist/services/ComponentSearchService.d.ts.map +1 -1
- package/dist/services/ComponentSearchService.js +2 -56
- package/dist/services/ComponentSearchService.js.map +1 -1
- package/dist/services/ConfigManager.d.ts +0 -113
- package/dist/services/ConfigManager.d.ts.map +1 -1
- package/dist/services/ConfigManager.js +0 -101
- package/dist/services/ConfigManager.js.map +1 -1
- package/dist/services/DependencyPreparationService.d.ts +0 -6
- package/dist/services/DependencyPreparationService.d.ts.map +1 -1
- package/dist/services/DependencyPreparationService.js +0 -22
- package/dist/services/DependencyPreparationService.js.map +1 -1
- package/dist/services/DevServerRuntimeService.d.ts +0 -20
- package/dist/services/DevServerRuntimeService.d.ts.map +1 -1
- package/dist/services/DevServerRuntimeService.js +0 -46
- package/dist/services/DevServerRuntimeService.js.map +1 -1
- package/dist/services/FeatureFlagService.d.ts +0 -15
- package/dist/services/FeatureFlagService.d.ts.map +1 -1
- package/dist/services/FeatureFlagService.js +0 -23
- package/dist/services/FeatureFlagService.js.map +1 -1
- package/dist/services/GatewayClient.d.ts +0 -27
- package/dist/services/GatewayClient.d.ts.map +1 -1
- package/dist/services/GatewayClient.js +0 -25
- package/dist/services/GatewayClient.js.map +1 -1
- package/dist/services/HistoryReplayService.d.ts +0 -31
- package/dist/services/HistoryReplayService.d.ts.map +1 -1
- package/dist/services/HistoryReplayService.js +2 -55
- package/dist/services/HistoryReplayService.js.map +1 -1
- package/dist/services/HubDiscovery.d.ts +0 -8
- package/dist/services/HubDiscovery.d.ts.map +1 -1
- package/dist/services/HubDiscovery.js +0 -8
- package/dist/services/HubDiscovery.js.map +1 -1
- package/dist/services/HubNavigation.d.ts +0 -6
- package/dist/services/HubNavigation.d.ts.map +1 -1
- package/dist/services/HubNavigation.js +5 -8
- package/dist/services/HubNavigation.js.map +1 -1
- package/dist/services/IntegrationsClient.d.ts +20 -38
- package/dist/services/IntegrationsClient.d.ts.map +1 -1
- package/dist/services/IntegrationsClient.js +71 -31
- package/dist/services/IntegrationsClient.js.map +1 -1
- package/dist/services/LocalGitService.d.ts +0 -57
- package/dist/services/LocalGitService.d.ts.map +1 -1
- package/dist/services/LocalGitService.js +4 -85
- package/dist/services/LocalGitService.js.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -9
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +0 -9
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/MCPVariantsTelemetry.d.ts +0 -2
- package/dist/services/MCPVariantsTelemetry.d.ts.map +1 -1
- package/dist/services/MCPVariantsTelemetry.js +0 -2
- package/dist/services/MCPVariantsTelemetry.js.map +1 -1
- package/dist/services/OperatingSystemServices.d.ts +0 -12
- package/dist/services/OperatingSystemServices.d.ts.map +1 -1
- package/dist/services/OperatingSystemServices.js +0 -7
- package/dist/services/OperatingSystemServices.js.map +1 -1
- package/dist/services/PRTitleGenerator.d.ts +0 -7
- package/dist/services/PRTitleGenerator.d.ts.map +1 -1
- package/dist/services/PRTitleGenerator.js +0 -3
- package/dist/services/PRTitleGenerator.js.map +1 -1
- package/dist/services/ProjectCardPreviews.d.ts +0 -5
- package/dist/services/ProjectCardPreviews.d.ts.map +1 -1
- package/dist/services/ProjectCardPreviews.js +0 -5
- package/dist/services/ProjectCardPreviews.js.map +1 -1
- package/dist/services/ProjectDetectionService.d.ts +0 -4
- package/dist/services/ProjectDetectionService.d.ts.map +1 -1
- package/dist/services/ProjectDetectionService.js +2 -44
- package/dist/services/ProjectDetectionService.js.map +1 -1
- package/dist/services/ProjectFolderPicker.d.ts +0 -3
- package/dist/services/ProjectFolderPicker.d.ts.map +1 -1
- package/dist/services/ProjectFolderPicker.js +0 -4
- package/dist/services/ProjectFolderPicker.js.map +1 -1
- package/dist/services/ProjectImport.d.ts +0 -1
- package/dist/services/ProjectImport.d.ts.map +1 -1
- package/dist/services/ProjectImport.js +0 -3
- package/dist/services/ProjectImport.js.map +1 -1
- package/dist/services/ProjectLibrary.d.ts +0 -18
- package/dist/services/ProjectLibrary.d.ts.map +1 -1
- package/dist/services/ProjectLibrary.js +0 -20
- package/dist/services/ProjectLibrary.js.map +1 -1
- package/dist/services/ProjectMetadataStore.d.ts +0 -73
- package/dist/services/ProjectMetadataStore.d.ts.map +1 -1
- package/dist/services/ProjectMetadataStore.js +0 -90
- package/dist/services/ProjectMetadataStore.js.map +1 -1
- package/dist/services/ProjectPackageManager.d.ts +0 -12
- package/dist/services/ProjectPackageManager.d.ts.map +1 -1
- package/dist/services/ProjectPackageManager.js +0 -16
- package/dist/services/ProjectPackageManager.js.map +1 -1
- package/dist/services/ProjectRegistry.d.ts +2 -18
- package/dist/services/ProjectRegistry.d.ts.map +1 -1
- package/dist/services/ProjectRegistry.js +0 -18
- package/dist/services/ProjectRegistry.js.map +1 -1
- package/dist/services/ProjectRuntimeService.d.ts +0 -4
- package/dist/services/ProjectRuntimeService.d.ts.map +1 -1
- package/dist/services/ProjectRuntimeService.js +0 -5
- package/dist/services/ProjectRuntimeService.js.map +1 -1
- package/dist/services/ProjectScreenshotService.d.ts +0 -5
- package/dist/services/ProjectScreenshotService.d.ts.map +1 -1
- package/dist/services/ProjectScreenshotService.js +0 -6
- package/dist/services/ProjectScreenshotService.js.map +1 -1
- package/dist/services/ProjectStorage.d.ts +0 -4
- package/dist/services/ProjectStorage.d.ts.map +1 -1
- package/dist/services/ProjectStorage.js +0 -4
- package/dist/services/ProjectStorage.js.map +1 -1
- package/dist/services/PrototypeBuildService.d.ts +1 -23
- package/dist/services/PrototypeBuildService.d.ts.map +1 -1
- package/dist/services/PrototypeBuildService.js +6 -31
- package/dist/services/PrototypeBuildService.js.map +1 -1
- package/dist/services/PrototypeDeployService.d.ts +0 -20
- package/dist/services/PrototypeDeployService.d.ts.map +1 -1
- package/dist/services/PrototypeDeployService.js +1 -24
- package/dist/services/PrototypeDeployService.js.map +1 -1
- package/dist/services/RequestAuthContext.d.ts +0 -5
- package/dist/services/RequestAuthContext.d.ts.map +1 -1
- package/dist/services/RequestAuthContext.js +0 -5
- package/dist/services/RequestAuthContext.js.map +1 -1
- package/dist/services/SessionBridgeService.d.ts.map +1 -1
- package/dist/services/SessionBridgeService.js +0 -2
- package/dist/services/SessionBridgeService.js.map +1 -1
- package/dist/services/SessionService.d.ts +0 -4
- package/dist/services/SessionService.d.ts.map +1 -1
- package/dist/services/SessionService.js +1 -22
- package/dist/services/SessionService.js.map +1 -1
- package/dist/services/StaticFileService.d.ts +0 -9
- package/dist/services/StaticFileService.d.ts.map +1 -1
- package/dist/services/StaticFileService.js +0 -11
- package/dist/services/StaticFileService.js.map +1 -1
- package/dist/services/StaticLibraryPreviews.d.ts +0 -3
- package/dist/services/StaticLibraryPreviews.d.ts.map +1 -1
- package/dist/services/StaticLibraryPreviews.js +0 -3
- package/dist/services/StaticLibraryPreviews.js.map +1 -1
- package/dist/services/StaticPreviewServer.d.ts +0 -16
- package/dist/services/StaticPreviewServer.d.ts.map +1 -1
- package/dist/services/StaticPreviewServer.js +2 -28
- package/dist/services/StaticPreviewServer.js.map +1 -1
- package/dist/services/SupabaseAuthService.d.ts +0 -11
- package/dist/services/SupabaseAuthService.d.ts.map +1 -1
- package/dist/services/SupabaseAuthService.js +0 -11
- package/dist/services/SupabaseAuthService.js.map +1 -1
- package/dist/services/SupportTicketService.d.ts +0 -4
- package/dist/services/SupportTicketService.d.ts.map +1 -1
- package/dist/services/SupportTicketService.js +0 -4
- package/dist/services/SupportTicketService.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +9 -182
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +11 -195
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/TreeStore.d.ts +0 -72
- package/dist/services/TreeStore.d.ts.map +1 -1
- package/dist/services/TreeStore.js +0 -93
- package/dist/services/TreeStore.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +1 -32
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +36 -66
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantHistoryService.d.ts +12 -114
- package/dist/services/VariantHistoryService.d.ts.map +1 -1
- package/dist/services/VariantHistoryService.js +56 -144
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +6 -31
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +86 -37
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts +0 -3
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +2 -5
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/WorktreeManager.d.ts +0 -217
- package/dist/services/WorktreeManager.d.ts.map +1 -1
- package/dist/services/WorktreeManager.js +3 -321
- package/dist/services/WorktreeManager.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -25
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +0 -25
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.d.ts +0 -29
- package/dist/services/adapters/TailwindTokenAdapter.d.ts.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.js +1 -46
- package/dist/services/adapters/TailwindTokenAdapter.js.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.d.ts +0 -18
- package/dist/services/createAgentVariantsOrchestrator.d.ts.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.js +0 -22
- package/dist/services/createAgentVariantsOrchestrator.js.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.d.ts +0 -25
- package/dist/services/extractors/CSSVariableExtractor.d.ts.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.js +1 -42
- package/dist/services/extractors/CSSVariableExtractor.js.map +1 -1
- package/dist/services/historyRoots.d.ts +0 -12
- package/dist/services/historyRoots.d.ts.map +1 -1
- package/dist/services/historyRoots.js +0 -13
- package/dist/services/historyRoots.js.map +1 -1
- package/dist/services/libraryErrors.d.ts +0 -1
- package/dist/services/libraryErrors.d.ts.map +1 -1
- package/dist/services/libraryErrors.js +0 -1
- package/dist/services/libraryErrors.js.map +1 -1
- package/dist/services/pendingLogin.d.ts +0 -13
- package/dist/services/pendingLogin.d.ts.map +1 -1
- package/dist/services/pendingLogin.js +0 -3
- package/dist/services/pendingLogin.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +446 -0
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -0
- package/dist/services/profiles/DesignProfiles.js +552 -0
- package/dist/services/profiles/DesignProfiles.js.map +1 -0
- package/dist/services/profiles/MemoryModelService.d.ts +14 -0
- package/dist/services/profiles/MemoryModelService.d.ts.map +1 -0
- package/dist/services/profiles/MemoryModelService.js +113 -0
- package/dist/services/profiles/MemoryModelService.js.map +1 -0
- package/dist/services/profiles/MemoryRuntime.d.ts +26 -0
- package/dist/services/profiles/MemoryRuntime.d.ts.map +1 -0
- package/dist/services/profiles/MemoryRuntime.js +192 -0
- package/dist/services/profiles/MemoryRuntime.js.map +1 -0
- package/dist/services/profiles/ProfileAgent.d.ts +20 -0
- package/dist/services/profiles/ProfileAgent.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAgent.js +196 -0
- package/dist/services/profiles/ProfileAgent.js.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts +23 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.js +114 -0
- package/dist/services/profiles/ProfileAnalysis.js.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts +15 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.js +40 -0
- package/dist/services/profiles/ProfileImportSchedule.js.map +1 -0
- package/dist/services/profiles/ProfileImports.d.ts +47 -0
- package/dist/services/profiles/ProfileImports.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImports.js +248 -0
- package/dist/services/profiles/ProfileImports.js.map +1 -0
- package/dist/services/profiles/ProfileIndex.d.ts +18 -0
- package/dist/services/profiles/ProfileIndex.d.ts.map +1 -0
- package/dist/services/profiles/ProfileIndex.js +119 -0
- package/dist/services/profiles/ProfileIndex.js.map +1 -0
- package/dist/services/profiles/ProfileMedia.d.ts +10 -0
- package/dist/services/profiles/ProfileMedia.d.ts.map +1 -0
- package/dist/services/profiles/ProfileMedia.js +76 -0
- package/dist/services/profiles/ProfileMedia.js.map +1 -0
- package/dist/services/profiles/ProfilePreparation.d.ts +17 -0
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -0
- package/dist/services/profiles/ProfilePreparation.js +214 -0
- package/dist/services/profiles/ProfilePreparation.js.map +1 -0
- package/dist/services/profiles/ProfileVariants.d.ts +33 -0
- package/dist/services/profiles/ProfileVariants.d.ts.map +1 -0
- package/dist/services/profiles/ProfileVariants.js +129 -0
- package/dist/services/profiles/ProfileVariants.js.map +1 -0
- package/dist/services/profiles/analysisBatch.d.ts +53 -0
- package/dist/services/profiles/analysisBatch.d.ts.map +1 -0
- package/dist/services/profiles/analysisBatch.js +86 -0
- package/dist/services/profiles/analysisBatch.js.map +1 -0
- package/dist/services/profiles/boardPage.d.ts +12 -0
- package/dist/services/profiles/boardPage.d.ts.map +1 -0
- package/dist/services/profiles/boardPage.js +156 -0
- package/dist/services/profiles/boardPage.js.map +1 -0
- package/dist/services/profiles/engineAccess.d.ts +2 -0
- package/dist/services/profiles/engineAccess.d.ts.map +1 -0
- package/dist/services/profiles/engineAccess.js +55 -0
- package/dist/services/profiles/engineAccess.js.map +1 -0
- package/dist/services/profiles/memoryComponents.d.ts +7 -0
- package/dist/services/profiles/memoryComponents.d.ts.map +1 -0
- package/dist/services/profiles/memoryComponents.js +105 -0
- package/dist/services/profiles/memoryComponents.js.map +1 -0
- package/dist/services/profiles/modelContract.d.ts +14 -0
- package/dist/services/profiles/modelContract.d.ts.map +1 -0
- package/dist/services/profiles/modelContract.js +124 -0
- package/dist/services/profiles/modelContract.js.map +1 -0
- package/dist/services/profiles/nativeImages.d.ts +3 -0
- package/dist/services/profiles/nativeImages.d.ts.map +1 -0
- package/dist/services/profiles/nativeImages.js +72 -0
- package/dist/services/profiles/nativeImages.js.map +1 -0
- package/dist/services/profiles/profileAccount.d.ts +4 -0
- package/dist/services/profiles/profileAccount.d.ts.map +1 -0
- package/dist/services/profiles/profileAccount.js +21 -0
- package/dist/services/profiles/profileAccount.js.map +1 -0
- package/dist/services/profiles/profileContext.d.ts +18 -0
- package/dist/services/profiles/profileContext.d.ts.map +1 -0
- package/dist/services/profiles/profileContext.js +189 -0
- package/dist/services/profiles/profileContext.js.map +1 -0
- package/dist/services/profiles/profileEvidence.d.ts +3 -0
- package/dist/services/profiles/profileEvidence.d.ts.map +1 -0
- package/dist/services/profiles/profileEvidence.js +15 -0
- package/dist/services/profiles/profileEvidence.js.map +1 -0
- package/dist/services/profiles/profileQueries.d.ts +2 -0
- package/dist/services/profiles/profileQueries.d.ts.map +1 -0
- package/dist/services/profiles/profileQueries.js +23 -0
- package/dist/services/profiles/profileQueries.js.map +1 -0
- package/dist/services/profiles/profileSelection.d.ts +29 -0
- package/dist/services/profiles/profileSelection.d.ts.map +1 -0
- package/dist/services/profiles/profileSelection.js +43 -0
- package/dist/services/profiles/profileSelection.js.map +1 -0
- package/dist/services/profiles/xPage.d.ts +4 -0
- package/dist/services/profiles/xPage.d.ts.map +1 -0
- package/dist/services/profiles/xPage.js +58 -0
- package/dist/services/profiles/xPage.js.map +1 -0
- package/dist/services/referenceImages.d.ts +17 -0
- package/dist/services/referenceImages.d.ts.map +1 -0
- package/dist/services/referenceImages.js +138 -0
- package/dist/services/referenceImages.js.map +1 -0
- package/dist/services/staticProjectTarget.d.ts +0 -4
- package/dist/services/staticProjectTarget.d.ts.map +1 -1
- package/dist/services/staticProjectTarget.js +0 -4
- package/dist/services/staticProjectTarget.js.map +1 -1
- package/dist/services/staticStarter.d.ts +0 -20
- package/dist/services/staticStarter.d.ts.map +1 -1
- package/dist/services/staticStarter.js +0 -20
- package/dist/services/staticStarter.js.map +1 -1
- package/dist/services/templates/designCatalog.d.ts +0 -11
- package/dist/services/templates/designCatalog.d.ts.map +1 -1
- package/dist/services/templates/designCatalog.js +0 -26
- package/dist/services/templates/designCatalog.js.map +1 -1
- package/dist/services/templates/viteReactTs.d.ts +0 -26
- package/dist/services/templates/viteReactTs.d.ts.map +1 -1
- package/dist/services/templates/viteReactTs.js +0 -20
- package/dist/services/templates/viteReactTs.js.map +1 -1
- package/dist/storage/library/BundleMetadataStore.d.ts +0 -16
- package/dist/storage/library/BundleMetadataStore.d.ts.map +1 -1
- package/dist/storage/library/BundleMetadataStore.js +0 -17
- package/dist/storage/library/BundleMetadataStore.js.map +1 -1
- package/dist/storage/library/CoordinatorRecords.d.ts +0 -9
- package/dist/storage/library/CoordinatorRecords.d.ts.map +1 -1
- package/dist/storage/library/CoordinatorRecords.js +0 -9
- package/dist/storage/library/CoordinatorRecords.js.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.d.ts +0 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.js +0 -4
- package/dist/storage/library/ProjectPreviewCache.js.map +1 -1
- package/dist/storage/library/ProjectRecords.d.ts +0 -17
- package/dist/storage/library/ProjectRecords.d.ts.map +1 -1
- package/dist/storage/library/ProjectRecords.js +0 -17
- package/dist/storage/library/ProjectRecords.js.map +1 -1
- package/dist/storage/library/database.d.ts +0 -3
- package/dist/storage/library/database.d.ts.map +1 -1
- package/dist/storage/library/database.js +0 -3
- package/dist/storage/library/database.js.map +1 -1
- package/dist/storage/library/migrations.d.ts +0 -2
- package/dist/storage/library/migrations.d.ts.map +1 -1
- package/dist/storage/library/migrations.js +0 -2
- package/dist/storage/library/migrations.js.map +1 -1
- package/dist/storage/library/sourcePresentation.d.ts +0 -1
- package/dist/storage/library/sourcePresentation.d.ts.map +1 -1
- package/dist/storage/library/sourcePresentation.js +0 -1
- package/dist/storage/library/sourcePresentation.js.map +1 -1
- package/dist/storage/profiles/ProfileRecords.d.ts +199 -0
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -0
- package/dist/storage/profiles/ProfileRecords.js +659 -0
- package/dist/storage/profiles/ProfileRecords.js.map +1 -0
- package/dist/storage/profiles/contextReceipts.d.ts +14 -0
- package/dist/storage/profiles/contextReceipts.d.ts.map +1 -0
- package/dist/storage/profiles/contextReceipts.js +52 -0
- package/dist/storage/profiles/contextReceipts.js.map +1 -0
- package/dist/storage/profiles/migrations.d.ts +4 -0
- package/dist/storage/profiles/migrations.d.ts.map +1 -0
- package/dist/storage/profiles/migrations.js +41 -0
- package/dist/storage/profiles/migrations.js.map +1 -0
- package/dist/storage/profiles/schema.d.ts +961 -0
- package/dist/storage/profiles/schema.d.ts.map +1 -0
- package/dist/storage/profiles/schema.js +102 -0
- package/dist/storage/profiles/schema.js.map +1 -0
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts +0 -11
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts.map +1 -1
- package/dist/storage/project-metadata/ProjectMetadataRecords.js +0 -13
- package/dist/storage/project-metadata/ProjectMetadataRecords.js.map +1 -1
- package/dist/storage/project-metadata/database.d.ts +0 -1
- package/dist/storage/project-metadata/database.d.ts.map +1 -1
- package/dist/storage/project-metadata/database.js +0 -7
- package/dist/storage/project-metadata/database.js.map +1 -1
- package/dist/storage/project-metadata/migrations.d.ts +0 -42
- package/dist/storage/project-metadata/migrations.d.ts.map +1 -1
- package/dist/storage/project-metadata/migrations.js +0 -41
- package/dist/storage/project-metadata/migrations.js.map +1 -1
- package/dist/types/account.d.ts +0 -1
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/change-request-types.d.ts +5 -167
- package/dist/types/change-request-types.d.ts.map +1 -1
- package/dist/types/change-types.d.ts +0 -1
- package/dist/types/change-types.d.ts.map +1 -1
- package/dist/types/change-types.js +0 -1
- package/dist/types/change-types.js.map +1 -1
- package/dist/types/design-profile.d.ts +570 -0
- package/dist/types/design-profile.d.ts.map +1 -0
- package/dist/types/design-profile.js +127 -0
- package/dist/types/design-profile.js.map +1 -0
- package/dist/types/project-library.d.ts +0 -1
- package/dist/types/project-library.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.d.ts +0 -69
- package/dist/types/style-manipulation-types.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.js +0 -26
- package/dist/types/style-manipulation-types.js.map +1 -1
- package/dist/types/token-types.d.ts +0 -30
- package/dist/types/token-types.d.ts.map +1 -1
- package/dist/types/token-types.js +0 -1
- package/dist/types/token-types.js.map +1 -1
- package/dist/types/variant-history.d.ts +3 -39
- package/dist/types/variant-history.d.ts.map +1 -1
- package/dist/types/variant-reference.d.ts +46 -0
- package/dist/types/variant-reference.d.ts.map +1 -0
- package/dist/types/variant-reference.js +58 -0
- package/dist/types/variant-reference.js.map +1 -0
- package/dist/types/x-bookmarks.d.ts +352 -0
- package/dist/types/x-bookmarks.d.ts.map +1 -0
- package/dist/types/x-bookmarks.js +56 -0
- package/dist/types/x-bookmarks.js.map +1 -0
- package/dist/utils/ProviderRateLimit.d.ts +7 -0
- package/dist/utils/ProviderRateLimit.d.ts.map +1 -0
- package/dist/utils/ProviderRateLimit.js +36 -0
- package/dist/utils/ProviderRateLimit.js.map +1 -0
- package/dist/utils/branchNames.d.ts +0 -1
- package/dist/utils/branchNames.d.ts.map +1 -1
- package/dist/utils/branchNames.js +0 -2
- package/dist/utils/branchNames.js.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.d.ts +0 -12
- package/dist/utils/cloneOrCopyDirSync.d.ts.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.js +0 -16
- package/dist/utils/cloneOrCopyDirSync.js.map +1 -1
- package/dist/utils/devServerCommand.d.ts +0 -23
- package/dist/utils/devServerCommand.d.ts.map +1 -1
- package/dist/utils/devServerCommand.js +0 -24
- package/dist/utils/devServerCommand.js.map +1 -1
- package/dist/utils/devServerError.d.ts +0 -16
- package/dist/utils/devServerError.d.ts.map +1 -1
- package/dist/utils/devServerError.js +0 -17
- package/dist/utils/devServerError.js.map +1 -1
- package/dist/utils/displayLocale.d.ts +0 -2
- package/dist/utils/displayLocale.d.ts.map +1 -1
- package/dist/utils/displayLocale.js +0 -2
- package/dist/utils/displayLocale.js.map +1 -1
- package/dist/utils/elementFileHintSignals.d.ts +0 -5
- package/dist/utils/elementFileHintSignals.d.ts.map +1 -1
- package/dist/utils/elementFileHintSignals.js +0 -5
- package/dist/utils/elementFileHintSignals.js.map +1 -1
- package/dist/utils/formatElementTargetingContext.d.ts +0 -6
- package/dist/utils/formatElementTargetingContext.d.ts.map +1 -1
- package/dist/utils/formatElementTargetingContext.js +3 -9
- package/dist/utils/formatElementTargetingContext.js.map +1 -1
- package/dist/utils/hostAgentEnv.d.ts +0 -17
- package/dist/utils/hostAgentEnv.d.ts.map +1 -1
- package/dist/utils/hostAgentEnv.js +0 -17
- package/dist/utils/hostAgentEnv.js.map +1 -1
- package/dist/utils/htmlDocument.d.ts +0 -5
- package/dist/utils/htmlDocument.d.ts.map +1 -1
- package/dist/utils/htmlDocument.js +2 -7
- package/dist/utils/htmlDocument.js.map +1 -1
- package/dist/utils/internalGitIdentity.d.ts +0 -5
- package/dist/utils/internalGitIdentity.d.ts.map +1 -1
- package/dist/utils/internalGitIdentity.js +0 -5
- package/dist/utils/internalGitIdentity.js.map +1 -1
- package/dist/utils/logger.d.ts +0 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +2 -19
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/loginShellPath.d.ts +0 -9
- package/dist/utils/loginShellPath.d.ts.map +1 -1
- package/dist/utils/loginShellPath.js +0 -69
- package/dist/utils/loginShellPath.js.map +1 -1
- package/dist/utils/loopback.d.ts +0 -1
- package/dist/utils/loopback.d.ts.map +1 -1
- package/dist/utils/loopback.js +0 -1
- package/dist/utils/loopback.js.map +1 -1
- package/dist/utils/pid.d.ts +0 -1
- package/dist/utils/pid.d.ts.map +1 -1
- package/dist/utils/pid.js +0 -1
- package/dist/utils/pid.js.map +1 -1
- package/dist/utils/portUtils.d.ts +0 -15
- package/dist/utils/portUtils.d.ts.map +1 -1
- package/dist/utils/portUtils.js +0 -21
- package/dist/utils/portUtils.js.map +1 -1
- package/dist/utils/queueAccess.d.ts +0 -9
- package/dist/utils/queueAccess.d.ts.map +1 -1
- package/dist/utils/queueAccess.js +0 -9
- package/dist/utils/queueAccess.js.map +1 -1
- package/dist/utils/skillWriter.d.ts +0 -17
- package/dist/utils/skillWriter.d.ts.map +1 -1
- package/dist/utils/skillWriter.js +0 -20
- package/dist/utils/skillWriter.js.map +1 -1
- package/dist/utils/skills/claude-skill.d.ts +0 -5
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +0 -5
- package/dist/utils/skills/claude-skill.js.map +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -9
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +6 -10
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/cursor-rules.d.ts +0 -6
- package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
- package/dist/utils/skills/cursor-rules.js +0 -6
- package/dist/utils/skills/cursor-rules.js.map +1 -1
- package/dist/utils/variantPreviewPort.d.ts +0 -3
- package/dist/utils/variantPreviewPort.d.ts.map +1 -1
- package/dist/utils/variantPreviewPort.js +0 -3
- package/dist/utils/variantPreviewPort.js.map +1 -1
- package/dist/utils/windowPlacement.d.ts +0 -4
- package/dist/utils/windowPlacement.d.ts.map +1 -1
- package/dist/utils/windowPlacement.js +0 -4
- package/dist/utils/windowPlacement.js.map +1 -1
- package/package.json +13 -13
- package/scripts/verify-node-version.cjs +0 -3
- package/src/ui/dist/assets/{LibraryApp-qbLqcNxM.js → LibraryApp-Bu7hVbt_.js} +1 -1
- package/src/ui/dist/assets/main-CHyx_rEa.css +1 -0
- package/src/ui/dist/assets/main-CuiPb_rl.js +438 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/utils/skills/describe-motion-protocol.d.ts +0 -10
- package/dist/utils/skills/describe-motion-protocol.d.ts.map +0 -1
- package/dist/utils/skills/describe-motion-protocol.js +0 -231
- package/dist/utils/skills/describe-motion-protocol.js.map +0 -1
- package/src/ui/dist/assets/main-BUZjlAHd.css +0 -1
- package/src/ui/dist/assets/main-touv07Dk.js +0 -438
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileContextSchema = exports.ProfilePacketSchema = exports.ProfilePreparationSchema = exports.ProfileObservationSchema = exports.ProfileUsageSchema = exports.ProfileReferenceInputSchema = exports.ProfileSourceInputSchema = exports.ProfileMediaSchema = exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema = exports.ProfileRuntimeSchema = exports.ProfileProviderSchema = exports.isRemoteProfileProvider = exports.RemoteProfileProviderSchema = exports.PROFILE_CANDIDATE_IMAGE_LIMIT = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PROFILE_CANDIDATE_IMAGE_LIMIT = 6;
|
|
6
|
+
exports.RemoteProfileProviderSchema = zod_1.z.enum(['pinterest', 'arena', 'x']);
|
|
7
|
+
const isRemoteProfileProvider = (value) => exports.RemoteProfileProviderSchema.safeParse(value).success;
|
|
8
|
+
exports.isRemoteProfileProvider = isRemoteProfileProvider;
|
|
9
|
+
exports.ProfileProviderSchema = zod_1.z.enum([
|
|
10
|
+
'image',
|
|
11
|
+
...exports.RemoteProfileProviderSchema.options,
|
|
12
|
+
'text',
|
|
13
|
+
'pdf',
|
|
14
|
+
'variant',
|
|
15
|
+
]);
|
|
16
|
+
exports.ProfileRuntimeSchema = zod_1.z.enum(['codex', 'claude', 'cursor']);
|
|
17
|
+
exports.ProfileVariantIdentitySchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
projectId: zod_1.z.string().min(1).max(200),
|
|
20
|
+
sessionId: zod_1.z.string().min(1).max(200),
|
|
21
|
+
variantId: zod_1.z.string().min(1).max(200),
|
|
22
|
+
})
|
|
23
|
+
.strict();
|
|
24
|
+
exports.ProfileVariantInputSchema = exports.ProfileVariantIdentitySchema.extend({
|
|
25
|
+
runtime: exports.ProfileRuntimeSchema,
|
|
26
|
+
note: zod_1.z.string().trim().max(500).optional(),
|
|
27
|
+
imageFile: zod_1.z.string().min(1).max(2048).optional(),
|
|
28
|
+
});
|
|
29
|
+
const ProfileVariantProvenanceSchema = exports.ProfileVariantIdentitySchema.extend({
|
|
30
|
+
treeSha: zod_1.z.string().max(100).optional(),
|
|
31
|
+
});
|
|
32
|
+
exports.ProfileMediaSchema = zod_1.z.object({
|
|
33
|
+
hash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
34
|
+
mimeType: zod_1.z.enum(['image/png', 'image/jpeg', 'image/webp', 'image/gif']),
|
|
35
|
+
bytes: zod_1.z.number().int().positive(),
|
|
36
|
+
representation: zod_1.z
|
|
37
|
+
.enum(['image', 'video-cover', 'page', 'variant'])
|
|
38
|
+
.default('image'),
|
|
39
|
+
page: zod_1.z.number().int().positive().optional(),
|
|
40
|
+
});
|
|
41
|
+
exports.ProfileSourceInputSchema = zod_1.z.object({
|
|
42
|
+
provider: exports.ProfileProviderSchema,
|
|
43
|
+
remoteId: zod_1.z.string().trim().min(1).max(2048),
|
|
44
|
+
title: zod_1.z.string().trim().min(1).max(500),
|
|
45
|
+
url: zod_1.z.string().url().optional(),
|
|
46
|
+
});
|
|
47
|
+
exports.ProfileReferenceInputSchema = zod_1.z.object({
|
|
48
|
+
provider: exports.ProfileProviderSchema,
|
|
49
|
+
remoteId: zod_1.z.string().trim().min(1).max(2048),
|
|
50
|
+
title: zod_1.z.string().max(1000),
|
|
51
|
+
text: zod_1.z.string().max(100_000),
|
|
52
|
+
url: zod_1.z.string().url().optional(),
|
|
53
|
+
media: zod_1.z.array(exports.ProfileMediaSchema).max(100),
|
|
54
|
+
remoteImages: zod_1.z.array(zod_1.z.string().url()).max(100).optional(),
|
|
55
|
+
remoteImageRepresentations: zod_1.z
|
|
56
|
+
.array(zod_1.z.enum(['image', 'video-cover']))
|
|
57
|
+
.max(100)
|
|
58
|
+
.optional(),
|
|
59
|
+
unsupportedReason: zod_1.z.string().max(1000).optional(),
|
|
60
|
+
variant: ProfileVariantProvenanceSchema.optional(),
|
|
61
|
+
note: zod_1.z.string().max(500).optional(),
|
|
62
|
+
});
|
|
63
|
+
exports.ProfileUsageSchema = zod_1.z.object({
|
|
64
|
+
inputTokens: zod_1.z.number().nonnegative().optional(),
|
|
65
|
+
outputTokens: zod_1.z.number().nonnegative().optional(),
|
|
66
|
+
cachedInputTokens: zod_1.z.number().nonnegative().optional(),
|
|
67
|
+
allocation: zod_1.z.literal('equal-share').optional(),
|
|
68
|
+
});
|
|
69
|
+
exports.ProfileObservationSchema = zod_1.z.object({
|
|
70
|
+
referenceId: zod_1.z.string().min(1),
|
|
71
|
+
revision: zod_1.z.number().int().positive(),
|
|
72
|
+
description: zod_1.z.string().trim().min(1).max(8000),
|
|
73
|
+
runtime: zod_1.z.union([exports.ProfileRuntimeSchema, zod_1.z.literal('user')]),
|
|
74
|
+
evidence: zod_1.z.enum(['observation', 'preference']),
|
|
75
|
+
usage: exports.ProfileUsageSchema.optional(),
|
|
76
|
+
});
|
|
77
|
+
exports.ProfilePreparationSchema = zod_1.z.object({
|
|
78
|
+
requestId: zod_1.z.string().min(1).max(200),
|
|
79
|
+
instruction: zod_1.z.string().min(1).max(30_000),
|
|
80
|
+
runtime: exports.ProfileRuntimeSchema,
|
|
81
|
+
mode: zod_1.z.enum(['auto', 'off']).default('auto'),
|
|
82
|
+
excludedSourceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
83
|
+
excludedReferenceIds: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
84
|
+
excludedMediaHashes: zod_1.z.array(zod_1.z.string()).max(100).default([]),
|
|
85
|
+
});
|
|
86
|
+
exports.ProfilePacketSchema = zod_1.z.object({
|
|
87
|
+
usage: exports.ProfileUsageSchema.optional(),
|
|
88
|
+
requestId: zod_1.z.string(),
|
|
89
|
+
status: zod_1.z.enum(['selected', 'empty', 'off', 'unavailable', 'timeout']),
|
|
90
|
+
queries: zod_1.z.array(zod_1.z.string()),
|
|
91
|
+
candidateIds: zod_1.z.array(zod_1.z.string()),
|
|
92
|
+
selected: zod_1.z.array(zod_1.z.object({
|
|
93
|
+
id: zod_1.z.string(),
|
|
94
|
+
revision: zod_1.z.number(),
|
|
95
|
+
title: zod_1.z.string().optional(),
|
|
96
|
+
url: zod_1.z.string().url().optional(),
|
|
97
|
+
mediaHashes: zod_1.z.array(zod_1.z.string().regex(/^[a-f0-9]{64}$/)).optional(),
|
|
98
|
+
reason: zod_1.z.string(),
|
|
99
|
+
sourceTitles: zod_1.z.array(zod_1.z.string()),
|
|
100
|
+
variant: ProfileVariantProvenanceSchema.optional(),
|
|
101
|
+
})),
|
|
102
|
+
contextText: zod_1.z.string().max(6000),
|
|
103
|
+
images: zod_1.z
|
|
104
|
+
.array(zod_1.z.object({
|
|
105
|
+
path: zod_1.z.string(),
|
|
106
|
+
hash: zod_1.z.string().regex(/^[a-f0-9]{64}$/),
|
|
107
|
+
mimeType: zod_1.z.enum([
|
|
108
|
+
'image/png',
|
|
109
|
+
'image/jpeg',
|
|
110
|
+
'image/webp',
|
|
111
|
+
'image/gif',
|
|
112
|
+
]),
|
|
113
|
+
}))
|
|
114
|
+
.max(exports.PROFILE_CANDIDATE_IMAGE_LIMIT),
|
|
115
|
+
durationMs: zod_1.z.number(),
|
|
116
|
+
});
|
|
117
|
+
exports.ProfileContextSchema = exports.ProfilePacketSchema.pick({
|
|
118
|
+
requestId: true,
|
|
119
|
+
status: true,
|
|
120
|
+
selected: true,
|
|
121
|
+
images: true,
|
|
122
|
+
durationMs: true,
|
|
123
|
+
}).extend({
|
|
124
|
+
requestId: zod_1.z.string().min(1).max(200),
|
|
125
|
+
selected: exports.ProfilePacketSchema.shape.selected.max(3),
|
|
126
|
+
});
|
|
127
|
+
//# sourceMappingURL=design-profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-profile.js","sourceRoot":"","sources":["../../src/types/design-profile.ts"],"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AM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,
|
|
1
|
+
{"version":3,"file":"project-library.d.ts","sourceRoot":"","sources":["../../src/types/project-library.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,SAAS,GAAG,QAAQ,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { Properties as CSSProperties } from 'csstype';
|
|
2
2
|
import { ElementContext } from './change-types';
|
|
3
|
-
/**
|
|
4
|
-
* Result type for operations that can fail
|
|
5
|
-
* Follows Rust-style error handling pattern
|
|
6
|
-
*/
|
|
7
3
|
export type Result<T, E = Error> = {
|
|
8
4
|
ok: true;
|
|
9
5
|
value: T;
|
|
@@ -11,112 +7,47 @@ export type Result<T, E = Error> = {
|
|
|
11
7
|
ok: false;
|
|
12
8
|
error: E;
|
|
13
9
|
};
|
|
14
|
-
/**
|
|
15
|
-
* Helper constructors for Result type
|
|
16
|
-
*/
|
|
17
10
|
export declare const Ok: <T>(value: T) => Result<T, never>;
|
|
18
11
|
export declare const Err: <E>(error: E) => Result<never, E>;
|
|
19
|
-
/**
|
|
20
|
-
* Stable identifier for DOM elements that survives HMR and navigation
|
|
21
|
-
* Uses multiple strategies to locate elements reliably
|
|
22
|
-
*/
|
|
23
12
|
export interface ElementIdentifier {
|
|
24
|
-
/** Injected stable ID (preferred) - survives most HMR scenarios */
|
|
25
13
|
rivetId: string;
|
|
26
|
-
/** XPath from document root (fallback #1) - brittle but works when ID removed */
|
|
27
14
|
xpath: string;
|
|
28
|
-
/** CSS selector if available (fallback #2) - faster than xpath */
|
|
29
15
|
cssSelector?: string;
|
|
30
|
-
/** File path from component search - for tracking which file owns this element */
|
|
31
16
|
filePath?: string;
|
|
32
17
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Represents a single CSS property change on an element
|
|
35
|
-
*/
|
|
36
18
|
export interface StyleChange {
|
|
37
|
-
/** Discriminator for change type */
|
|
38
19
|
type: 'style';
|
|
39
|
-
/** Unique identifier for this change */
|
|
40
20
|
id: string;
|
|
41
|
-
/** Timestamp when change was made */
|
|
42
21
|
timestamp: number;
|
|
43
|
-
/** Element that was modified */
|
|
44
22
|
elementId: ElementIdentifier;
|
|
45
|
-
/** Full element context (for LLM translation phase) */
|
|
46
23
|
elementContext: ElementContext;
|
|
47
|
-
/** CSS property that was changed */
|
|
48
24
|
property: keyof CSSProperties;
|
|
49
|
-
/** Original computed value before change */
|
|
50
25
|
oldValue: string;
|
|
51
|
-
/** New value applied to element */
|
|
52
26
|
newValue: string;
|
|
53
|
-
/** Grouping ID for multiple changes applied in a single logical operation */
|
|
54
27
|
batchId?: string;
|
|
55
28
|
}
|
|
56
|
-
/**
|
|
57
|
-
* Represents a text content change on an element
|
|
58
|
-
*/
|
|
59
29
|
export interface TextChange {
|
|
60
|
-
/** Discriminator for change type */
|
|
61
30
|
type: 'text';
|
|
62
|
-
/** Unique identifier for this change */
|
|
63
31
|
id: string;
|
|
64
|
-
/** Timestamp when change was made */
|
|
65
32
|
timestamp: number;
|
|
66
|
-
/** Element that was modified */
|
|
67
33
|
elementId: ElementIdentifier;
|
|
68
|
-
/** Full element context (for LLM translation phase) */
|
|
69
34
|
elementContext: ElementContext;
|
|
70
|
-
/** Original text content before change */
|
|
71
35
|
oldText: string;
|
|
72
|
-
/** New text content applied to element */
|
|
73
36
|
newText: string;
|
|
74
|
-
/** Grouping ID for multiple changes applied in a single logical operation */
|
|
75
37
|
batchId?: string;
|
|
76
38
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Union type for all tracked changes (style or text)
|
|
79
|
-
*/
|
|
80
39
|
export type TrackedChange = StyleChange | TextChange;
|
|
81
|
-
/**
|
|
82
|
-
* Represents the full change history with undo/redo support
|
|
83
|
-
* Stores only the latest change per element+property (style) or element (text) combination
|
|
84
|
-
*/
|
|
85
40
|
export interface ChangeHistory {
|
|
86
|
-
/** Current state: Map of change key -> TrackedChange */
|
|
87
41
|
current: Map<string, TrackedChange>;
|
|
88
|
-
/** Past states for undo (array of full state snapshots) */
|
|
89
42
|
past: Map<string, TrackedChange>[];
|
|
90
|
-
/** Future states for redo (array of full state snapshots) */
|
|
91
43
|
future: Map<string, TrackedChange>[];
|
|
92
44
|
}
|
|
93
|
-
/**
|
|
94
|
-
* Creates a unique key for a style change (element + property)
|
|
95
|
-
*/
|
|
96
45
|
export declare const changeKey: (elementId: string, property: string) => string;
|
|
97
|
-
/**
|
|
98
|
-
* Creates a unique key for a text change (element only - one text change per element)
|
|
99
|
-
*/
|
|
100
46
|
export declare const textChangeKey: (elementId: string) => string;
|
|
101
|
-
/**
|
|
102
|
-
* Returns normalized identifiers used to match a tracked element.
|
|
103
|
-
*/
|
|
104
47
|
export declare const getElementIdentityCandidates: (elementId: ElementIdentifier) => string[];
|
|
105
|
-
/**
|
|
106
|
-
* Returns the primary identity key used for map keys.
|
|
107
|
-
*/
|
|
108
48
|
export declare const getElementIdentityKey: (elementId: ElementIdentifier) => string;
|
|
109
|
-
/**
|
|
110
|
-
* Checks whether an element identifier matches a candidate key.
|
|
111
|
-
*/
|
|
112
49
|
export declare const matchesElementIdentity: (elementId: ElementIdentifier, candidateKey: string) => boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Creates a unique key from a TrackedChange object
|
|
115
|
-
*/
|
|
116
50
|
export declare const changeKeyFromChange: (change: TrackedChange) => string;
|
|
117
|
-
/**
|
|
118
|
-
* Error types for DOM manipulation operations
|
|
119
|
-
*/
|
|
120
51
|
export declare class DOMError extends Error {
|
|
121
52
|
constructor(message: string);
|
|
122
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-manipulation-types.d.ts","sourceRoot":"","sources":["../../src/types/style-manipulation-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"style-manipulation-types.d.ts","sourceRoot":"","sources":["../../src/types/style-manipulation-types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,IAAI,aAAa,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,IAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACtB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,CAAC,CA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AE,aAAa,CAAC,EAAE,CAAC;CACtC;AAED,eAAO,MAAM,SAAS,GAAI,WAAW,MAAM,EAAE,UAAU,MAAM,KAAG,MAC9B,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,KAAG,MAA6B,CAAC;AAEhF,eAAO,MAAM,4BAA4B,GACvC,WAAW,iBAAiB,KAC3B,MAAM,EAOR,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,WAAW,iBAAiB,KAAG,MAEpE,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,WAAW,iBAAiB,EAC5B,cAAc,MAAM,KACnB,OAEF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,QAAQ,aAAa,KAAG,MAQ3D,CAAC;AAEF,qBAAa,QAAS,SAAQ,KAAK;gBACrB,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,oBAAqB,SAAQ,QAAQ;IAEvC,UAAU,EAAE,iBAAiB;gBAA7B,UAAU,EAAE,iBAAiB,EACpC,OAAO,CAAC,EAAE,MAAM;CAQnB;AAED,qBAAa,qBAAsB,SAAQ,QAAQ;IAExC,QAAQ,EAAE,MAAM;IAChB,KAAK,EAAE,MAAM;gBADb,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,MAAM;CAQnB"}
|
|
@@ -1,28 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Types for direct style manipulation with immediate visual feedback
|
|
3
|
-
// This enables users to modify styles in real-time and translate to code on publish
|
|
4
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
3
|
exports.StyleApplicationError = exports.ElementNotFoundError = exports.DOMError = exports.changeKeyFromChange = exports.matchesElementIdentity = exports.getElementIdentityKey = exports.getElementIdentityCandidates = exports.textChangeKey = exports.changeKey = exports.Err = exports.Ok = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* Helper constructors for Result type
|
|
8
|
-
*/
|
|
9
4
|
const Ok = (value) => ({ ok: true, value });
|
|
10
5
|
exports.Ok = Ok;
|
|
11
6
|
const Err = (error) => ({ ok: false, error });
|
|
12
7
|
exports.Err = Err;
|
|
13
|
-
/**
|
|
14
|
-
* Creates a unique key for a style change (element + property)
|
|
15
|
-
*/
|
|
16
8
|
const changeKey = (elementId, property) => `style:${elementId}:${property}`;
|
|
17
9
|
exports.changeKey = changeKey;
|
|
18
|
-
/**
|
|
19
|
-
* Creates a unique key for a text change (element only - one text change per element)
|
|
20
|
-
*/
|
|
21
10
|
const textChangeKey = (elementId) => `text:${elementId}`;
|
|
22
11
|
exports.textChangeKey = textChangeKey;
|
|
23
|
-
/**
|
|
24
|
-
* Returns normalized identifiers used to match a tracked element.
|
|
25
|
-
*/
|
|
26
12
|
const getElementIdentityCandidates = (elementId) => {
|
|
27
13
|
const candidates = [elementId.rivetId, elementId.xpath, elementId.cssSelector]
|
|
28
14
|
.filter((value) => Boolean(value))
|
|
@@ -31,23 +17,14 @@ const getElementIdentityCandidates = (elementId) => {
|
|
|
31
17
|
return candidates.length > 0 ? [...new Set(candidates)] : ['unknown'];
|
|
32
18
|
};
|
|
33
19
|
exports.getElementIdentityCandidates = getElementIdentityCandidates;
|
|
34
|
-
/**
|
|
35
|
-
* Returns the primary identity key used for map keys.
|
|
36
|
-
*/
|
|
37
20
|
const getElementIdentityKey = (elementId) => {
|
|
38
21
|
return (0, exports.getElementIdentityCandidates)(elementId)[0];
|
|
39
22
|
};
|
|
40
23
|
exports.getElementIdentityKey = getElementIdentityKey;
|
|
41
|
-
/**
|
|
42
|
-
* Checks whether an element identifier matches a candidate key.
|
|
43
|
-
*/
|
|
44
24
|
const matchesElementIdentity = (elementId, candidateKey) => {
|
|
45
25
|
return (0, exports.getElementIdentityCandidates)(elementId).includes(candidateKey);
|
|
46
26
|
};
|
|
47
27
|
exports.matchesElementIdentity = matchesElementIdentity;
|
|
48
|
-
/**
|
|
49
|
-
* Creates a unique key from a TrackedChange object
|
|
50
|
-
*/
|
|
51
28
|
const changeKeyFromChange = (change) => {
|
|
52
29
|
const elementId = (0, exports.getElementIdentityKey)(change.elementId);
|
|
53
30
|
const batchSuffix = change.batchId ? `:${change.batchId}` : '';
|
|
@@ -59,9 +36,6 @@ const changeKeyFromChange = (change) => {
|
|
|
59
36
|
}
|
|
60
37
|
};
|
|
61
38
|
exports.changeKeyFromChange = changeKeyFromChange;
|
|
62
|
-
/**
|
|
63
|
-
* Error types for DOM manipulation operations
|
|
64
|
-
*/
|
|
65
39
|
class DOMError extends Error {
|
|
66
40
|
constructor(message) {
|
|
67
41
|
super(message);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-manipulation-types.js","sourceRoot":"","sources":["../../src/types/style-manipulation-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"style-manipulation-types.js","sourceRoot":"","sources":["../../src/types/style-manipulation-types.ts"],"names":[],"mappings":";;;AAQO,MAAM,EAAE,GAAG,CAAI,KAAQ,EAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;AAA9D,QAAA,EAAE,MAA4D;AACpE,MAAM,GAAG,GAAG,CAAI,KAAQ,EAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;AAAhE,QAAA,GAAG,OAA6D;AAwCtE,MAAM,SAAS,GAAG,CAAC,SAAiB,EAAE,QAAgB,EAAU,EAAE,CACvE,SAAS,SAAS,IAAI,QAAQ,EAAE,CAAC;AADtB,QAAA,SAAS,aACa;AAE5B,MAAM,aAAa,GAAG,CAAC,SAAiB,EAAU,EAAE,CAAC,QAAQ,SAAS,EAAE,CAAC;AAAnE,QAAA,aAAa,iBAAsD;AAEzE,MAAM,4BAA4B,GAAG,CAC1C,SAA4B,EAClB,EAAE;IACZ,MAAM,UAAU,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,KAAK,EAAE,SAAS,CA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AAS,CAAC,GAAG,WAAW,EAAE,CAAC;IACrD,CAAC;AACH,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B;AAEF,MAAa,QAAS,SAAQ,KAAK;IACjC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC;IACzB,CAAC;CACF;AALD,4BAKC;AAED,MAAa,oBAAqB,SAAQ,QAAQ;IAEvC;IADT,YACS,UAA6B,EACpC,OAAgB;QAEhB,KAAK,CACH,OAAO;YACL,8BAA8B,UAAU,CAAC,OAAO,WAAW,UAAU,CAAC,KAAK,EAAE,CAChF,CAAC;QANK,eAAU,GAAV,UAAU,CAAmB;QAOpC,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;IACrC,CAAC;CACF;AAXD,oDAWC;AAED,MAAa,qBAAsB,SAAQ,QAAQ;IAExC;IACA;IAFT,YACS,QAAgB,EAChB,KAAa,EACpB,OAAgB;QAEhB,KAAK,CACH,OAAO;YACL,0BAA0B,QAAQ,MAAM,KAAK,yBAAyB,CACzE,CAAC;QAPK,aAAQ,GAAR,QAAQ,CAAQ;QAChB,UAAK,GAAL,KAAK,CAAQ;QAOpB,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAZD,sDAYC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a token value that can be either:
|
|
3
|
-
* - A flat string value (e.g., 'primary': '#0D262E')
|
|
4
|
-
* - A nested object with shade variants (e.g., 'orange': { '500': '#FF4F00', '400': '#FF7233' })
|
|
5
|
-
*/
|
|
6
1
|
export type TokenValue = string | Record<string, string>;
|
|
7
|
-
/**
|
|
8
|
-
* Registry of design tokens organized by category.
|
|
9
|
-
* Each category maps token names to either string values or nested shade objects.
|
|
10
|
-
*/
|
|
11
2
|
export type TokenRegistry = {
|
|
12
3
|
colors: Record<string, TokenValue>;
|
|
13
4
|
spacing: Record<string, TokenValue>;
|
|
@@ -16,39 +7,18 @@ export type TokenRegistry = {
|
|
|
16
7
|
boxShadow: Record<string, TokenValue>;
|
|
17
8
|
fontFamily: Record<string, TokenValue>;
|
|
18
9
|
};
|
|
19
|
-
/**
|
|
20
|
-
* Response format for the tokens API endpoint
|
|
21
|
-
*/
|
|
22
10
|
export type TokenResponse = {
|
|
23
11
|
registry: TokenRegistry;
|
|
24
12
|
framework: 'tailwind' | 'css-variables' | 'css-in-js' | null;
|
|
25
13
|
};
|
|
26
|
-
/**
|
|
27
|
-
* Request format for updating a token value
|
|
28
|
-
*/
|
|
29
14
|
export type TokenUpdateRequest = {
|
|
30
15
|
category: keyof TokenRegistry;
|
|
31
16
|
path: string;
|
|
32
17
|
value: string;
|
|
33
18
|
};
|
|
34
|
-
/**
|
|
35
|
-
* Base interface for token extraction adapters.
|
|
36
|
-
* Each adapter implements framework-specific logic for detecting and extracting design tokens.
|
|
37
|
-
*/
|
|
38
19
|
export interface BaseTokenAdapter {
|
|
39
|
-
/**
|
|
40
|
-
* Detects if this adapter can handle the project's token configuration
|
|
41
|
-
*/
|
|
42
20
|
detect(projectRoot: string): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Extracts design tokens from the project configuration
|
|
45
|
-
* @param projectRoot - Root directory of the project
|
|
46
|
-
* @param configPath - Optional explicit path to config file
|
|
47
|
-
*/
|
|
48
21
|
extract(projectRoot: string, configPath?: string): TokenRegistry | null;
|
|
49
|
-
/**
|
|
50
|
-
* Returns the framework name this adapter supports
|
|
51
|
-
*/
|
|
52
22
|
getFramework(): string;
|
|
53
23
|
}
|
|
54
24
|
//# sourceMappingURL=token-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../src/types/token-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../src/types/token-types.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACzC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,UAAU,GAAG,eAAe,GAAG,WAAW,GAAG,IAAI,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,aAAa,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;IAErC,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAAC;IAExE,YAAY,IAAI,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token-types.js","sourceRoot":"","sources":["../../src/types/token-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"token-types.js","sourceRoot":"","sources":["../../src/types/token-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { VariantReference } from './variant-reference';
|
|
2
|
+
export type { VariantReference } from './variant-reference';
|
|
1
3
|
export type VariantHistoryStatus = 'completed' | 'committed' | 'rejected' | 'cancelled' | 'removed';
|
|
2
4
|
export type VariantHistoryKind = 'diff' | 'project-created';
|
|
3
5
|
export type VariantHistoryPreview = {
|
|
@@ -32,31 +34,16 @@ export type PersistVariantPreview = {
|
|
|
32
34
|
kind: 'none';
|
|
33
35
|
reason: 'diff_only' | 'missing_entry' | 'unsupported';
|
|
34
36
|
};
|
|
35
|
-
/** Pointer to the variant's exact tree in the project's {@link TreeStore}
|
|
36
|
-
* (`.rivet/store.git`). Additive alongside the legacy artifact/preview
|
|
37
|
-
* fields during the dual-write transition — see
|
|
38
|
-
* docs/variant-history-tree-store-design.md. */
|
|
39
37
|
export interface VariantTreePointer {
|
|
40
38
|
ref: string;
|
|
41
|
-
/** For diffs, replay materialization, and reflog. */
|
|
42
39
|
commitSha: string;
|
|
43
|
-
/** Content-addressed key for the static extraction cache. */
|
|
44
40
|
treeSha: string;
|
|
45
41
|
}
|
|
46
|
-
/** The session base snapshot. ALWAYS the apply base: `diff(base, tree)`
|
|
47
|
-
* yields the full variant state to apply to the working tree — including
|
|
48
|
-
* for forked (Vary) variants, whose parent lineage is comparison-only. */
|
|
49
42
|
export interface VariantBasePointer {
|
|
50
43
|
ref: string;
|
|
51
44
|
commitSha: string;
|
|
52
45
|
}
|
|
53
|
-
/** Port-parameterized dev-server invocation captured at persist time from
|
|
54
|
-
* the resolution the live preview actually booted with. The literal command
|
|
55
|
-
* can't be stored verbatim — the live resolution bakes the allocated port
|
|
56
|
-
* into args/env, which would be dead at replay — so `${PORT}` placeholders
|
|
57
|
-
* mark where replay substitutes its own allocated port. */
|
|
58
46
|
export interface DevServerRecipe {
|
|
59
|
-
/** Relative to the snapshot root ('.' for the root itself). */
|
|
60
47
|
cwd: string;
|
|
61
48
|
cmd: string;
|
|
62
49
|
argsTemplate: string[];
|
|
@@ -78,18 +65,11 @@ export type VariantHistoryArtifact = {
|
|
|
78
65
|
filesPath: 'files';
|
|
79
66
|
runnablePath?: string;
|
|
80
67
|
};
|
|
81
|
-
/** Where the persisted DESIGN.md came from. Slug entries point at a curated
|
|
82
|
-
* catalog inspiration; markdown entries carry user-supplied / Agent Browser
|
|
83
|
-
* extracted content. `label` is always human-readable for the history UI. */
|
|
84
68
|
export interface VariantDesignSource {
|
|
85
69
|
kind: 'slug' | 'markdown';
|
|
86
70
|
label: string;
|
|
87
|
-
/** Catalog slug — present only when `kind === 'slug'`. */
|
|
88
71
|
slug?: string;
|
|
89
72
|
}
|
|
90
|
-
/** A public deployment of this variant to the Prototype Preview Host. Recorded
|
|
91
|
-
* so the UI can re-show ("Copy link") an existing share URL instead of
|
|
92
|
-
* re-building, and so repeated deploys accrue rather than clobber. */
|
|
93
73
|
export interface VariantDeployment {
|
|
94
74
|
deployId: string;
|
|
95
75
|
shareUrl: string;
|
|
@@ -112,8 +92,8 @@ export interface VariantHistoryManifest {
|
|
|
112
92
|
requestId?: string;
|
|
113
93
|
label: string;
|
|
114
94
|
brief: string;
|
|
95
|
+
references?: VariantReference[];
|
|
115
96
|
sessionPrompt: string;
|
|
116
|
-
/** 1–2 word label for the run's intent (agent-supplied or heuristic). */
|
|
117
97
|
runLabel?: string;
|
|
118
98
|
projectKind: 'existing' | 'fresh';
|
|
119
99
|
status: VariantHistoryStatus;
|
|
@@ -124,30 +104,19 @@ export interface VariantHistoryManifest {
|
|
|
124
104
|
changedFilesCount: number;
|
|
125
105
|
artifact: VariantHistoryArtifact;
|
|
126
106
|
preview: VariantHistoryPreview;
|
|
127
|
-
/** Tree-store pointers + serve contract. Optional additions on the current
|
|
128
|
-
* schemaVersion (readManifest hard-rejects version mismatches, so these
|
|
129
|
-
* MUST stay additive); absent on legacy entries. */
|
|
130
107
|
tree?: VariantTreePointer;
|
|
131
108
|
base?: VariantBasePointer;
|
|
132
|
-
/** Forked (Vary) variants: the parent variant's commit — for comparison
|
|
133
|
-
* diffs ("what did this vary change?"), never for apply. */
|
|
134
109
|
parent?: {
|
|
135
110
|
ref: string;
|
|
136
111
|
commitSha: string;
|
|
137
112
|
};
|
|
138
|
-
/** Source direction for forked (Vary) variants. Used by the UI to collapse
|
|
139
|
-
* superseded parent runs without losing the derived rows. */
|
|
140
113
|
parentVariant?: {
|
|
141
114
|
sessionId: string;
|
|
142
115
|
variantId: string;
|
|
143
116
|
};
|
|
144
117
|
serve?: VariantServeSpec;
|
|
145
118
|
designSource?: VariantDesignSource;
|
|
146
|
-
/** Public deploys, newest last. Absent until the variant is first deployed. */
|
|
147
119
|
deployments?: VariantDeployment[];
|
|
148
|
-
/** The runtime that executed this variant's worker (vendor/model/effort).
|
|
149
|
-
* Additive on the current schemaVersion; absent on legacy entries and on
|
|
150
|
-
* host-agent-executed variants. */
|
|
151
120
|
runtime?: import('../agent-variants/contracts').WorkerRuntimeInfo;
|
|
152
121
|
}
|
|
153
122
|
export interface VariantHistorySessionFile {
|
|
@@ -156,18 +125,13 @@ export interface VariantHistorySessionFile {
|
|
|
156
125
|
createdAt: string;
|
|
157
126
|
sessionPrompt: string;
|
|
158
127
|
projectKind: 'existing' | 'fresh';
|
|
159
|
-
/** Public canvas deploys, newest last. Each canvas points at its included variants. */
|
|
160
128
|
canvasDeployments?: VariantCanvasDeployment[];
|
|
161
129
|
}
|
|
162
|
-
/** A variant row as stored in (or destined for) the projection. `manifest`
|
|
163
|
-
* reproduces the on-disk manifest exactly; `hasStaticPreview` is the listing
|
|
164
|
-
* affordance captured when the row was projected. */
|
|
165
130
|
export interface VariantIndexEntry {
|
|
166
131
|
manifest: VariantHistoryManifest;
|
|
167
132
|
hasStaticPreview: boolean;
|
|
168
133
|
}
|
|
169
134
|
export interface VariantIndexEntryInput extends VariantIndexEntry {
|
|
170
|
-
/** The manifest file's mtime when projected — freshness-audit metadata. */
|
|
171
135
|
manifestMtimeMs: number;
|
|
172
136
|
}
|
|
173
137
|
//# sourceMappingURL=variant-history.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variant-history.d.ts","sourceRoot":"","sources":["../../src/types/variant-history.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAC5B,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,
|
|
1
|
+
{"version":3,"file":"variant-history.d.ts","sourceRoot":"","sources":["../../src/types/variant-history.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,oBAAoB,GAC5B,WAAW,GACX,WAAW,GACX,UAAU,GACV,WAAW,GACX,SAAS,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,iBAAiB,CAAC;AAE5D,MAAM,MAAM,qBAAqB,GAC7B;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,GAAG,eAAe,GAAG,aAAa,CAAC;CACvD,CAAC;AAEN,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACrC;IACE,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE;QACP,GAAG,EAAE,MAAM,CAAC;QACZ,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GACD;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AAiB,EAAE,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,6BAA6B,EAAE,iBAAiB,CAAC;CACnE;AAED,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC;IAClC,iBAAiB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,sBAAsB,CAAC;IACjC,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
export declare const referenceImageSchema: z.ZodObject<{
|
|
3
|
+
hash: z.ZodString;
|
|
4
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
hash: string;
|
|
7
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8
|
+
}, {
|
|
9
|
+
hash: string;
|
|
10
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11
|
+
}>;
|
|
12
|
+
export type ReferenceImageDescriptor = z.infer<typeof referenceImageSchema>;
|
|
13
|
+
export declare const variantReferenceSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
17
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
18
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
19
|
+
hash: z.ZodString;
|
|
20
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
hash: string;
|
|
23
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
24
|
+
}, {
|
|
25
|
+
hash: string;
|
|
26
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
27
|
+
}>>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
id: string;
|
|
30
|
+
url: string;
|
|
31
|
+
title: string;
|
|
32
|
+
image?: {
|
|
33
|
+
hash: string;
|
|
34
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
35
|
+
} | undefined;
|
|
36
|
+
reason?: string | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
id: string;
|
|
39
|
+
url: string;
|
|
40
|
+
title: string;
|
|
41
|
+
image?: unknown;
|
|
42
|
+
reason?: string | undefined;
|
|
43
|
+
}>;
|
|
44
|
+
export type VariantReference = z.infer<typeof variantReferenceSchema>;
|
|
45
|
+
export declare const mergeVariantReferences: (...groups: Array<readonly unknown[] | undefined>) => VariantReference[] | undefined;
|
|
46
|
+
//# sourceMappingURL=variant-reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-reference.d.ts","sourceRoot":"","sources":["../../src/types/variant-reference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,sBAAsB,GACjC,GAAG,QAAQ,KAAK,CAAC,SAAS,OAAO,EAAE,GAAG,SAAS,CAAC,KAC/C,gBAAgB,EAAE,GAAG,SAsBvB,CAAC"}
|