rivet-design 0.17.4 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/rivet.js +0 -16
- package/dist/agent-variants/SessionStore.d.ts +5 -240
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +42 -371
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.d.ts +0 -10
- package/dist/agent-variants/VariantWorkspaceManager.d.ts.map +1 -1
- package/dist/agent-variants/VariantWorkspaceManager.js +0 -17
- package/dist/agent-variants/VariantWorkspaceManager.js.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.d.ts +1 -105
- package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.js +11 -182
- package/dist/agent-variants/WorkerExecutorService.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +6 -598
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +55 -1288
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts +0 -6
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js +0 -23
- package/dist/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -1
- package/dist/agent-variants/briefContent.d.ts +0 -11
- package/dist/agent-variants/briefContent.d.ts.map +1 -1
- package/dist/agent-variants/briefContent.js +0 -12
- package/dist/agent-variants/briefContent.js.map +1 -1
- package/dist/agent-variants/contextAssets.d.ts +0 -3
- package/dist/agent-variants/contextAssets.d.ts.map +1 -1
- package/dist/agent-variants/contextAssets.js +0 -3
- package/dist/agent-variants/contextAssets.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +2016 -600
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +10 -174
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.d.ts +0 -17
- package/dist/agent-variants/createProjectArtifacts.d.ts.map +1 -1
- package/dist/agent-variants/createProjectArtifacts.js +0 -10
- package/dist/agent-variants/createProjectArtifacts.js.map +1 -1
- package/dist/agent-variants/diffQa.d.ts +0 -1
- package/dist/agent-variants/diffQa.d.ts.map +1 -1
- package/dist/agent-variants/diffQa.js +0 -1
- package/dist/agent-variants/diffQa.js.map +1 -1
- package/dist/agent-variants/directionAuthoring.d.ts +0 -13
- package/dist/agent-variants/directionAuthoring.d.ts.map +1 -1
- package/dist/agent-variants/directionAuthoring.js +12 -46
- package/dist/agent-variants/directionAuthoring.js.map +1 -1
- package/dist/agent-variants/elementRefToTarget.d.ts +0 -17
- package/dist/agent-variants/elementRefToTarget.d.ts.map +1 -1
- package/dist/agent-variants/elementRefToTarget.js +0 -17
- package/dist/agent-variants/elementRefToTarget.js.map +1 -1
- package/dist/agent-variants/generatedDestination.d.ts +0 -3
- package/dist/agent-variants/generatedDestination.d.ts.map +1 -1
- package/dist/agent-variants/generatedDestination.js +0 -3
- package/dist/agent-variants/generatedDestination.js.map +1 -1
- package/dist/agent-variants/previewQa.d.ts +0 -6
- package/dist/agent-variants/previewQa.d.ts.map +1 -1
- package/dist/agent-variants/previewQa.js +0 -5
- package/dist/agent-variants/previewQa.js.map +1 -1
- package/dist/agent-variants/runLabel.d.ts +0 -15
- package/dist/agent-variants/runLabel.d.ts.map +1 -1
- package/dist/agent-variants/runLabel.js +0 -19
- package/dist/agent-variants/runLabel.js.map +1 -1
- package/dist/agent-variants/runPlan.d.ts +3 -84
- package/dist/agent-variants/runPlan.d.ts.map +1 -1
- package/dist/agent-variants/runPlan.js +0 -51
- package/dist/agent-variants/runPlan.js.map +1 -1
- package/dist/agent-variants/sourceContext.d.ts +0 -10
- package/dist/agent-variants/sourceContext.d.ts.map +1 -1
- package/dist/agent-variants/sourceContext.js +0 -36
- package/dist/agent-variants/sourceContext.js.map +1 -1
- package/dist/agent-variants/variantContext.d.ts +6 -7
- package/dist/agent-variants/variantContext.d.ts.map +1 -1
- package/dist/agent-variants/variantContext.js +69 -10
- package/dist/agent-variants/variantContext.js.map +1 -1
- package/dist/agent-variants/videoKeyframes.d.ts +0 -7
- package/dist/agent-variants/videoKeyframes.d.ts.map +1 -1
- package/dist/agent-variants/videoKeyframes.js +0 -7
- package/dist/agent-variants/videoKeyframes.js.map +1 -1
- package/dist/agent-variants/workItemBriefing.d.ts +0 -21
- package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
- package/dist/agent-variants/workItemBriefing.js +0 -49
- package/dist/agent-variants/workItemBriefing.js.map +1 -1
- package/dist/agent-variants/workerRuntime.d.ts +1 -137
- package/dist/agent-variants/workerRuntime.d.ts.map +1 -1
- package/dist/agent-variants/workerRuntime.js +8 -147
- package/dist/agent-variants/workerRuntime.js.map +1 -1
- package/dist/cli/browser.d.ts +0 -1
- package/dist/cli/browser.d.ts.map +1 -1
- package/dist/cli/browser.js +0 -1
- package/dist/cli/browser.js.map +1 -1
- package/dist/cli/callerRunnerPaths.d.ts +0 -50
- package/dist/cli/callerRunnerPaths.d.ts.map +1 -1
- package/dist/cli/callerRunnerPaths.js +0 -59
- package/dist/cli/callerRunnerPaths.js.map +1 -1
- package/dist/cli/client.d.ts +0 -18
- package/dist/cli/client.d.ts.map +1 -1
- package/dist/cli/client.js +0 -28
- package/dist/cli/client.js.map +1 -1
- package/dist/cli/commandNames.d.ts +0 -7
- package/dist/cli/commandNames.d.ts.map +1 -1
- package/dist/cli/commandNames.js +1 -7
- package/dist/cli/commandNames.js.map +1 -1
- package/dist/cli/commands/auth.d.ts +0 -6
- package/dist/cli/commands/auth.d.ts.map +1 -1
- package/dist/cli/commands/auth.js +0 -6
- package/dist/cli/commands/auth.js.map +1 -1
- package/dist/cli/commands/elementSelector.d.ts +0 -6
- package/dist/cli/commands/elementSelector.d.ts.map +1 -1
- package/dist/cli/commands/elementSelector.js +0 -7
- package/dist/cli/commands/elementSelector.js.map +1 -1
- package/dist/cli/commands/evidence.d.ts +0 -6
- package/dist/cli/commands/evidence.d.ts.map +1 -1
- package/dist/cli/commands/evidence.js +0 -6
- package/dist/cli/commands/evidence.js.map +1 -1
- package/dist/cli/commands/libraryOpen.d.ts +0 -1
- package/dist/cli/commands/libraryOpen.d.ts.map +1 -1
- package/dist/cli/commands/libraryOpen.js +0 -4
- package/dist/cli/commands/libraryOpen.js.map +1 -1
- package/dist/cli/commands/mcpServe.d.ts +0 -24
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +126 -106
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/open.d.ts +0 -8
- package/dist/cli/commands/open.d.ts.map +1 -1
- package/dist/cli/commands/open.js +0 -57
- package/dist/cli/commands/open.js.map +1 -1
- package/dist/cli/commands/profile.d.ts +3 -0
- package/dist/cli/commands/profile.d.ts.map +1 -0
- package/dist/cli/commands/profile.js +192 -0
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/reference.d.ts +0 -5
- package/dist/cli/commands/reference.d.ts.map +1 -1
- package/dist/cli/commands/reference.js +4 -27
- package/dist/cli/commands/reference.js.map +1 -1
- package/dist/cli/commands/serve.d.ts +0 -5
- package/dist/cli/commands/serve.d.ts.map +1 -1
- package/dist/cli/commands/serve.js +0 -34
- package/dist/cli/commands/serve.js.map +1 -1
- package/dist/cli/commands/shared.d.ts +0 -16
- package/dist/cli/commands/shared.d.ts.map +1 -1
- package/dist/cli/commands/shared.js +0 -19
- package/dist/cli/commands/shared.js.map +1 -1
- package/dist/cli/commands/status.d.ts +0 -6
- package/dist/cli/commands/status.d.ts.map +1 -1
- package/dist/cli/commands/status.js +0 -11
- package/dist/cli/commands/status.js.map +1 -1
- package/dist/cli/commands/stop.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts.map +1 -1
- package/dist/cli/commands/stop.js +0 -6
- package/dist/cli/commands/stop.js.map +1 -1
- package/dist/cli/commands/update.d.ts +0 -1
- package/dist/cli/commands/update.d.ts.map +1 -1
- package/dist/cli/commands/update.js +0 -1
- package/dist/cli/commands/update.js.map +1 -1
- package/dist/cli/commands/variants.d.ts +0 -1
- package/dist/cli/commands/variants.d.ts.map +1 -1
- package/dist/cli/commands/variants.js +13 -32
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/commands/wait.d.ts +0 -21
- package/dist/cli/commands/wait.d.ts.map +1 -1
- package/dist/cli/commands/wait.js +0 -23
- package/dist/cli/commands/wait.js.map +1 -1
- package/dist/cli/entry.d.ts +0 -10
- package/dist/cli/entry.d.ts.map +1 -1
- package/dist/cli/entry.js +0 -13
- package/dist/cli/entry.js.map +1 -1
- package/dist/cli/envelope.d.ts +1 -25
- package/dist/cli/envelope.d.ts.map +1 -1
- package/dist/cli/envelope.js +0 -19
- package/dist/cli/envelope.js.map +1 -1
- package/dist/cli/flags.d.ts +0 -7
- package/dist/cli/flags.d.ts.map +1 -1
- package/dist/cli/flags.js +0 -7
- package/dist/cli/flags.js.map +1 -1
- package/dist/cli/handoff.d.ts +0 -33
- package/dist/cli/handoff.d.ts.map +1 -1
- package/dist/cli/handoff.js +0 -42
- package/dist/cli/handoff.js.map +1 -1
- package/dist/cli/handoffStore.d.ts +0 -11
- package/dist/cli/handoffStore.d.ts.map +1 -1
- package/dist/cli/handoffStore.js +0 -10
- package/dist/cli/handoffStore.js.map +1 -1
- package/dist/cli/hostWorkNextAction.d.ts +0 -11
- package/dist/cli/hostWorkNextAction.d.ts.map +1 -1
- package/dist/cli/hostWorkNextAction.js +0 -4
- package/dist/cli/hostWorkNextAction.js.map +1 -1
- package/dist/cli/io.d.ts +0 -9
- package/dist/cli/io.d.ts.map +1 -1
- package/dist/cli/io.js +0 -1
- package/dist/cli/io.js.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.d.ts +0 -5
- package/dist/cli/resolveDefaultNodeEnv.d.ts.map +1 -1
- package/dist/cli/resolveDefaultNodeEnv.js +0 -5
- package/dist/cli/resolveDefaultNodeEnv.js.map +1 -1
- package/dist/cli/router.d.ts +0 -21
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +8 -46
- package/dist/cli/router.js.map +1 -1
- package/dist/cli/runnerSelection.d.ts +0 -58
- package/dist/cli/runnerSelection.d.ts.map +1 -1
- package/dist/cli/runnerSelection.js +0 -16
- package/dist/cli/runnerSelection.js.map +1 -1
- package/dist/cli/serverHandshake.d.ts +0 -36
- package/dist/cli/serverHandshake.d.ts.map +1 -1
- package/dist/cli/serverHandshake.js +0 -29
- package/dist/cli/serverHandshake.js.map +1 -1
- package/dist/cli/serverUnavailable.d.ts +0 -1
- package/dist/cli/serverUnavailable.d.ts.map +1 -1
- package/dist/cli/serverUnavailable.js +0 -1
- package/dist/cli/serverUnavailable.js.map +1 -1
- package/dist/cli/serverVersion.d.ts +0 -22
- package/dist/cli/serverVersion.d.ts.map +1 -1
- package/dist/cli/serverVersion.js +0 -12
- package/dist/cli/serverVersion.js.map +1 -1
- package/dist/cli/telemetry.d.ts +0 -4
- package/dist/cli/telemetry.d.ts.map +1 -1
- package/dist/cli/telemetry.js +0 -4
- package/dist/cli/telemetry.js.map +1 -1
- package/dist/config/evaluateFlags.d.ts +0 -4
- package/dist/config/evaluateFlags.d.ts.map +1 -1
- package/dist/config/evaluateFlags.js +0 -11
- package/dist/config/evaluateFlags.js.map +1 -1
- package/dist/config/featureFlagUserKey.d.ts +0 -3
- package/dist/config/featureFlagUserKey.d.ts.map +1 -1
- package/dist/config/featureFlagUserKey.js +0 -3
- package/dist/config/featureFlagUserKey.js.map +1 -1
- package/dist/config/flags.d.ts +0 -14
- package/dist/config/flags.d.ts.map +1 -1
- package/dist/config/flags.js +0 -27
- package/dist/config/flags.js.map +1 -1
- package/dist/config/proxy.d.ts +0 -3
- package/dist/config/proxy.d.ts.map +1 -1
- package/dist/config/proxy.js +0 -11
- package/dist/config/proxy.js.map +1 -1
- package/dist/config/telemetry.d.ts +0 -13
- package/dist/config/telemetry.d.ts.map +1 -1
- package/dist/config/telemetry.js +0 -13
- package/dist/config/telemetry.js.map +1 -1
- package/dist/config/telemetryContract.d.ts +0 -1
- package/dist/config/telemetryContract.d.ts.map +1 -1
- package/dist/config/telemetryContract.js +0 -1
- package/dist/config/telemetryContract.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +0 -69
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +0 -68
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index-core.d.ts.map +1 -1
- package/dist/index-core.js +0 -2
- package/dist/index-core.js.map +1 -1
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -105
- package/dist/index.js.map +1 -1
- package/dist/install/allowlists.d.ts +0 -32
- package/dist/install/allowlists.d.ts.map +1 -1
- package/dist/install/allowlists.js +0 -44
- package/dist/install/allowlists.js.map +1 -1
- package/dist/install/automaticCliUpdate.d.ts +0 -6
- package/dist/install/automaticCliUpdate.d.ts.map +1 -1
- package/dist/install/automaticCliUpdate.js +0 -13
- package/dist/install/automaticCliUpdate.js.map +1 -1
- package/dist/install/channelCli.d.ts +0 -1
- package/dist/install/channelCli.d.ts.map +1 -1
- package/dist/install/channelCli.js +0 -3
- package/dist/install/channelCli.js.map +1 -1
- package/dist/install/channelManager.d.ts +0 -14
- package/dist/install/channelManager.d.ts.map +1 -1
- package/dist/install/channelManager.js +0 -22
- package/dist/install/channelManager.js.map +1 -1
- package/dist/install/codexGuidance.d.ts +0 -1
- package/dist/install/codexGuidance.d.ts.map +1 -1
- package/dist/install/codexGuidance.js +0 -7
- package/dist/install/codexGuidance.js.map +1 -1
- package/dist/install/globalBootstrap.d.ts +0 -25
- package/dist/install/globalBootstrap.d.ts.map +1 -1
- package/dist/install/globalBootstrap.js +0 -10
- package/dist/install/globalBootstrap.js.map +1 -1
- package/dist/install/harnesses.d.ts +0 -66
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +0 -60
- package/dist/install/harnesses.js.map +1 -1
- package/dist/install/installationChannel.d.ts +0 -1
- package/dist/install/installationChannel.d.ts.map +1 -1
- package/dist/install/installationChannel.js +0 -1
- package/dist/install/installationChannel.js.map +1 -1
- package/dist/install/legacyMcp.d.ts +0 -23
- package/dist/install/legacyMcp.d.ts.map +1 -1
- package/dist/install/legacyMcp.js +3 -46
- package/dist/install/legacyMcp.js.map +1 -1
- package/dist/install/mcpRegistration.d.ts +0 -41
- package/dist/install/mcpRegistration.d.ts.map +1 -1
- package/dist/install/mcpRegistration.js +2 -70
- package/dist/install/mcpRegistration.js.map +1 -1
- package/dist/library/HubClient.d.ts +1 -2
- package/dist/library/HubClient.d.ts.map +1 -1
- package/dist/library/HubClient.js +11 -5
- package/dist/library/HubClient.js.map +1 -1
- package/dist/library/HubServer.d.ts +0 -1
- package/dist/library/HubServer.d.ts.map +1 -1
- package/dist/library/HubServer.js +19 -1
- package/dist/library/HubServer.js.map +1 -1
- package/dist/library/StaticPreviewServer.d.ts +0 -1
- package/dist/library/StaticPreviewServer.d.ts.map +1 -1
- package/dist/library/StaticPreviewServer.js +0 -1
- package/dist/library/StaticPreviewServer.js.map +1 -1
- package/dist/library/http.d.ts +0 -2
- package/dist/library/http.d.ts.map +1 -1
- package/dist/library/http.js +0 -2
- package/dist/library/http.js.map +1 -1
- package/dist/library/importFiles.d.ts +0 -6
- package/dist/library/importFiles.d.ts.map +1 -1
- package/dist/library/importFiles.js +45 -11
- package/dist/library/importFiles.js.map +1 -1
- package/dist/mcp/changeBatchClassification.d.ts +0 -40
- package/dist/mcp/changeBatchClassification.d.ts.map +1 -1
- package/dist/mcp/changeBatchClassification.js +0 -34
- package/dist/mcp/changeBatchClassification.js.map +1 -1
- package/dist/prompts/commentVariationPrompts.d.ts +0 -5
- package/dist/prompts/commentVariationPrompts.d.ts.map +1 -1
- package/dist/prompts/commentVariationPrompts.js +0 -5
- package/dist/prompts/commentVariationPrompts.js.map +1 -1
- package/dist/prototype-host.js +0 -15
- package/dist/prototype-host.js.map +1 -1
- package/dist/proxy-middleware/preview-bridge.d.ts +0 -2
- package/dist/proxy-middleware/preview-bridge.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-bridge.js +0 -2
- package/dist/proxy-middleware/preview-bridge.js.map +1 -1
- package/dist/proxy-middleware/preview-connections.d.ts +0 -1
- package/dist/proxy-middleware/preview-connections.d.ts.map +1 -1
- package/dist/proxy-middleware/preview-connections.js +0 -1
- package/dist/proxy-middleware/preview-connections.js.map +1 -1
- package/dist/proxy-middleware/proxy-config.d.ts +0 -12
- package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
- package/dist/proxy-middleware/proxy-config.js +2 -49
- package/dist/proxy-middleware/proxy-config.js.map +1 -1
- package/dist/routes/account.d.ts +0 -1
- package/dist/routes/account.d.ts.map +1 -1
- package/dist/routes/account.js +0 -2
- package/dist/routes/account.js.map +1 -1
- package/dist/routes/agentVariants.d.ts +0 -15
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +132 -329
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/routes/cli.d.ts +0 -17
- package/dist/routes/cli.d.ts.map +1 -1
- package/dist/routes/cli.js +0 -13
- package/dist/routes/cli.js.map +1 -1
- package/dist/routes/emptyStatePage.d.ts +0 -12
- package/dist/routes/emptyStatePage.d.ts.map +1 -1
- package/dist/routes/emptyStatePage.js +0 -12
- package/dist/routes/emptyStatePage.js.map +1 -1
- package/dist/routes/git.d.ts.map +1 -1
- package/dist/routes/git.js +0 -13
- package/dist/routes/git.js.map +1 -1
- package/dist/routes/inlineStartTracker.d.ts +0 -16
- package/dist/routes/inlineStartTracker.d.ts.map +1 -1
- package/dist/routes/inlineStartTracker.js.map +1 -1
- package/dist/routes/integrations.d.ts +0 -6
- package/dist/routes/integrations.d.ts.map +1 -1
- package/dist/routes/integrations.js +0 -6
- package/dist/routes/integrations.js.map +1 -1
- package/dist/routes/library/app.d.ts +0 -1
- package/dist/routes/library/app.d.ts.map +1 -1
- package/dist/routes/library/app.js +1 -3
- package/dist/routes/library/app.js.map +1 -1
- package/dist/routes/library/index.d.ts +0 -1
- package/dist/routes/library/index.d.ts.map +1 -1
- package/dist/routes/library/index.js +3 -1
- package/dist/routes/library/index.js.map +1 -1
- package/dist/routes/library/middleware.d.ts +0 -3
- package/dist/routes/library/middleware.d.ts.map +1 -1
- package/dist/routes/library/middleware.js +0 -4
- package/dist/routes/library/middleware.js.map +1 -1
- package/dist/routes/library/navigation.d.ts +0 -1
- package/dist/routes/library/navigation.d.ts.map +1 -1
- package/dist/routes/library/navigation.js +0 -1
- package/dist/routes/library/navigation.js.map +1 -1
- package/dist/routes/library/profiles.d.ts +5 -0
- package/dist/routes/library/profiles.d.ts.map +1 -0
- package/dist/routes/library/profiles.js +182 -0
- package/dist/routes/library/profiles.js.map +1 -0
- package/dist/routes/library/projects.d.ts +0 -1
- package/dist/routes/library/projects.d.ts.map +1 -1
- package/dist/routes/library/projects.js +0 -1
- package/dist/routes/library/projects.js.map +1 -1
- package/dist/routes/library/schemas.d.ts +2 -2
- package/dist/routes/library/staticPreview.d.ts +0 -1
- package/dist/routes/library/staticPreview.d.ts.map +1 -1
- package/dist/routes/library/staticPreview.js +0 -1
- package/dist/routes/library/staticPreview.js.map +1 -1
- package/dist/routes/library/types.d.ts +2 -0
- package/dist/routes/library/types.d.ts.map +1 -1
- package/dist/routes/library/variants.d.ts +0 -1
- package/dist/routes/library/variants.d.ts.map +1 -1
- package/dist/routes/library/variants.js +0 -1
- package/dist/routes/library/variants.js.map +1 -1
- package/dist/routes/mcp.d.ts +0 -3
- package/dist/routes/mcp.d.ts.map +1 -1
- package/dist/routes/mcp.js +0 -5
- package/dist/routes/mcp.js.map +1 -1
- package/dist/routes/prototypeHost.d.ts +0 -2
- package/dist/routes/prototypeHost.d.ts.map +1 -1
- package/dist/routes/prototypeHost.js +6 -32
- package/dist/routes/prototypeHost.js.map +1 -1
- package/dist/routes/static.d.ts +0 -3
- package/dist/routes/static.d.ts.map +1 -1
- package/dist/routes/static.js +0 -6
- package/dist/routes/static.js.map +1 -1
- package/dist/routes/support.d.ts +0 -3
- package/dist/routes/support.d.ts.map +1 -1
- package/dist/routes/support.js +0 -3
- package/dist/routes/support.js.map +1 -1
- package/dist/server.d.ts +0 -42
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -129
- package/dist/server.js.map +1 -1
- package/dist/services/AuthService.d.ts +0 -76
- package/dist/services/AuthService.d.ts.map +1 -1
- package/dist/services/AuthService.js +0 -112
- package/dist/services/AuthService.js.map +1 -1
- package/dist/services/BrowserAgentClient.d.ts +1 -21
- package/dist/services/BrowserAgentClient.d.ts.map +1 -1
- package/dist/services/BrowserAgentClient.js +0 -10
- package/dist/services/BrowserAgentClient.js.map +1 -1
- package/dist/services/BundleStore.d.ts +0 -18
- package/dist/services/BundleStore.d.ts.map +1 -1
- package/dist/services/BundleStore.js +0 -10
- package/dist/services/BundleStore.js.map +1 -1
- package/dist/services/CliLogForwarder.d.ts +0 -26
- package/dist/services/CliLogForwarder.d.ts.map +1 -1
- package/dist/services/CliLogForwarder.js +1 -33
- package/dist/services/CliLogForwarder.js.map +1 -1
- package/dist/services/CommitMessageGenerator.d.ts +0 -6
- package/dist/services/CommitMessageGenerator.d.ts.map +1 -1
- package/dist/services/CommitMessageGenerator.js +0 -3
- package/dist/services/CommitMessageGenerator.js.map +1 -1
- package/dist/services/ComponentSearchService.d.ts +2 -16
- package/dist/services/ComponentSearchService.d.ts.map +1 -1
- package/dist/services/ComponentSearchService.js +2 -56
- package/dist/services/ComponentSearchService.js.map +1 -1
- package/dist/services/ConfigManager.d.ts +0 -113
- package/dist/services/ConfigManager.d.ts.map +1 -1
- package/dist/services/ConfigManager.js +0 -101
- package/dist/services/ConfigManager.js.map +1 -1
- package/dist/services/DependencyPreparationService.d.ts +0 -6
- package/dist/services/DependencyPreparationService.d.ts.map +1 -1
- package/dist/services/DependencyPreparationService.js +0 -22
- package/dist/services/DependencyPreparationService.js.map +1 -1
- package/dist/services/DevServerRuntimeService.d.ts +0 -20
- package/dist/services/DevServerRuntimeService.d.ts.map +1 -1
- package/dist/services/DevServerRuntimeService.js +0 -46
- package/dist/services/DevServerRuntimeService.js.map +1 -1
- package/dist/services/FeatureFlagService.d.ts +0 -15
- package/dist/services/FeatureFlagService.d.ts.map +1 -1
- package/dist/services/FeatureFlagService.js +0 -23
- package/dist/services/FeatureFlagService.js.map +1 -1
- package/dist/services/GatewayClient.d.ts +0 -27
- package/dist/services/GatewayClient.d.ts.map +1 -1
- package/dist/services/GatewayClient.js +0 -25
- package/dist/services/GatewayClient.js.map +1 -1
- package/dist/services/HistoryReplayService.d.ts +0 -31
- package/dist/services/HistoryReplayService.d.ts.map +1 -1
- package/dist/services/HistoryReplayService.js +2 -55
- package/dist/services/HistoryReplayService.js.map +1 -1
- package/dist/services/HubDiscovery.d.ts +0 -8
- package/dist/services/HubDiscovery.d.ts.map +1 -1
- package/dist/services/HubDiscovery.js +0 -8
- package/dist/services/HubDiscovery.js.map +1 -1
- package/dist/services/HubNavigation.d.ts +0 -6
- package/dist/services/HubNavigation.d.ts.map +1 -1
- package/dist/services/HubNavigation.js +5 -8
- package/dist/services/HubNavigation.js.map +1 -1
- package/dist/services/IntegrationsClient.d.ts +20 -38
- package/dist/services/IntegrationsClient.d.ts.map +1 -1
- package/dist/services/IntegrationsClient.js +71 -31
- package/dist/services/IntegrationsClient.js.map +1 -1
- package/dist/services/LocalGitService.d.ts +0 -57
- package/dist/services/LocalGitService.d.ts.map +1 -1
- package/dist/services/LocalGitService.js +4 -85
- package/dist/services/LocalGitService.js.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.d.ts +0 -9
- package/dist/services/MCPOnboardingTelemetry.d.ts.map +1 -1
- package/dist/services/MCPOnboardingTelemetry.js +0 -9
- package/dist/services/MCPOnboardingTelemetry.js.map +1 -1
- package/dist/services/MCPVariantsTelemetry.d.ts +0 -2
- package/dist/services/MCPVariantsTelemetry.d.ts.map +1 -1
- package/dist/services/MCPVariantsTelemetry.js +0 -2
- package/dist/services/MCPVariantsTelemetry.js.map +1 -1
- package/dist/services/OperatingSystemServices.d.ts +0 -12
- package/dist/services/OperatingSystemServices.d.ts.map +1 -1
- package/dist/services/OperatingSystemServices.js +0 -7
- package/dist/services/OperatingSystemServices.js.map +1 -1
- package/dist/services/PRTitleGenerator.d.ts +0 -7
- package/dist/services/PRTitleGenerator.d.ts.map +1 -1
- package/dist/services/PRTitleGenerator.js +0 -3
- package/dist/services/PRTitleGenerator.js.map +1 -1
- package/dist/services/ProjectCardPreviews.d.ts +0 -5
- package/dist/services/ProjectCardPreviews.d.ts.map +1 -1
- package/dist/services/ProjectCardPreviews.js +0 -5
- package/dist/services/ProjectCardPreviews.js.map +1 -1
- package/dist/services/ProjectDetectionService.d.ts +0 -4
- package/dist/services/ProjectDetectionService.d.ts.map +1 -1
- package/dist/services/ProjectDetectionService.js +2 -44
- package/dist/services/ProjectDetectionService.js.map +1 -1
- package/dist/services/ProjectFolderPicker.d.ts +0 -3
- package/dist/services/ProjectFolderPicker.d.ts.map +1 -1
- package/dist/services/ProjectFolderPicker.js +0 -4
- package/dist/services/ProjectFolderPicker.js.map +1 -1
- package/dist/services/ProjectImport.d.ts +0 -1
- package/dist/services/ProjectImport.d.ts.map +1 -1
- package/dist/services/ProjectImport.js +0 -3
- package/dist/services/ProjectImport.js.map +1 -1
- package/dist/services/ProjectLibrary.d.ts +0 -18
- package/dist/services/ProjectLibrary.d.ts.map +1 -1
- package/dist/services/ProjectLibrary.js +0 -20
- package/dist/services/ProjectLibrary.js.map +1 -1
- package/dist/services/ProjectMetadataStore.d.ts +0 -73
- package/dist/services/ProjectMetadataStore.d.ts.map +1 -1
- package/dist/services/ProjectMetadataStore.js +0 -90
- package/dist/services/ProjectMetadataStore.js.map +1 -1
- package/dist/services/ProjectPackageManager.d.ts +0 -12
- package/dist/services/ProjectPackageManager.d.ts.map +1 -1
- package/dist/services/ProjectPackageManager.js +0 -16
- package/dist/services/ProjectPackageManager.js.map +1 -1
- package/dist/services/ProjectRegistry.d.ts +2 -18
- package/dist/services/ProjectRegistry.d.ts.map +1 -1
- package/dist/services/ProjectRegistry.js +0 -18
- package/dist/services/ProjectRegistry.js.map +1 -1
- package/dist/services/ProjectRuntimeService.d.ts +0 -4
- package/dist/services/ProjectRuntimeService.d.ts.map +1 -1
- package/dist/services/ProjectRuntimeService.js +0 -5
- package/dist/services/ProjectRuntimeService.js.map +1 -1
- package/dist/services/ProjectScreenshotService.d.ts +0 -5
- package/dist/services/ProjectScreenshotService.d.ts.map +1 -1
- package/dist/services/ProjectScreenshotService.js +0 -6
- package/dist/services/ProjectScreenshotService.js.map +1 -1
- package/dist/services/ProjectStorage.d.ts +0 -4
- package/dist/services/ProjectStorage.d.ts.map +1 -1
- package/dist/services/ProjectStorage.js +0 -4
- package/dist/services/ProjectStorage.js.map +1 -1
- package/dist/services/PrototypeBuildService.d.ts +1 -23
- package/dist/services/PrototypeBuildService.d.ts.map +1 -1
- package/dist/services/PrototypeBuildService.js +6 -31
- package/dist/services/PrototypeBuildService.js.map +1 -1
- package/dist/services/PrototypeDeployService.d.ts +0 -20
- package/dist/services/PrototypeDeployService.d.ts.map +1 -1
- package/dist/services/PrototypeDeployService.js +1 -24
- package/dist/services/PrototypeDeployService.js.map +1 -1
- package/dist/services/RequestAuthContext.d.ts +0 -5
- package/dist/services/RequestAuthContext.d.ts.map +1 -1
- package/dist/services/RequestAuthContext.js +0 -5
- package/dist/services/RequestAuthContext.js.map +1 -1
- package/dist/services/SessionBridgeService.d.ts.map +1 -1
- package/dist/services/SessionBridgeService.js +0 -2
- package/dist/services/SessionBridgeService.js.map +1 -1
- package/dist/services/SessionService.d.ts +0 -4
- package/dist/services/SessionService.d.ts.map +1 -1
- package/dist/services/SessionService.js +1 -22
- package/dist/services/SessionService.js.map +1 -1
- package/dist/services/StaticFileService.d.ts +0 -9
- package/dist/services/StaticFileService.d.ts.map +1 -1
- package/dist/services/StaticFileService.js +0 -11
- package/dist/services/StaticFileService.js.map +1 -1
- package/dist/services/StaticLibraryPreviews.d.ts +0 -3
- package/dist/services/StaticLibraryPreviews.d.ts.map +1 -1
- package/dist/services/StaticLibraryPreviews.js +0 -3
- package/dist/services/StaticLibraryPreviews.js.map +1 -1
- package/dist/services/StaticPreviewServer.d.ts +0 -16
- package/dist/services/StaticPreviewServer.d.ts.map +1 -1
- package/dist/services/StaticPreviewServer.js +2 -28
- package/dist/services/StaticPreviewServer.js.map +1 -1
- package/dist/services/SupabaseAuthService.d.ts +0 -11
- package/dist/services/SupabaseAuthService.d.ts.map +1 -1
- package/dist/services/SupabaseAuthService.js +0 -11
- package/dist/services/SupabaseAuthService.js.map +1 -1
- package/dist/services/SupportTicketService.d.ts +0 -4
- package/dist/services/SupportTicketService.d.ts.map +1 -1
- package/dist/services/SupportTicketService.js +0 -4
- package/dist/services/SupportTicketService.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +9 -182
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js +11 -195
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/TreeStore.d.ts +0 -72
- package/dist/services/TreeStore.d.ts.map +1 -1
- package/dist/services/TreeStore.js +0 -93
- package/dist/services/TreeStore.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +1 -32
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +36 -66
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantHistoryService.d.ts +12 -114
- package/dist/services/VariantHistoryService.d.ts.map +1 -1
- package/dist/services/VariantHistoryService.js +56 -144
- package/dist/services/VariantHistoryService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +6 -31
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +86 -37
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts +0 -3
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +2 -5
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/services/WorktreeManager.d.ts +0 -217
- package/dist/services/WorktreeManager.d.ts.map +1 -1
- package/dist/services/WorktreeManager.js +3 -321
- package/dist/services/WorktreeManager.js.map +1 -1
- package/dist/services/accessTokenRefresh.d.ts +0 -25
- package/dist/services/accessTokenRefresh.d.ts.map +1 -1
- package/dist/services/accessTokenRefresh.js +0 -25
- package/dist/services/accessTokenRefresh.js.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.d.ts +0 -29
- package/dist/services/adapters/TailwindTokenAdapter.d.ts.map +1 -1
- package/dist/services/adapters/TailwindTokenAdapter.js +1 -46
- package/dist/services/adapters/TailwindTokenAdapter.js.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.d.ts +0 -18
- package/dist/services/createAgentVariantsOrchestrator.d.ts.map +1 -1
- package/dist/services/createAgentVariantsOrchestrator.js +0 -22
- package/dist/services/createAgentVariantsOrchestrator.js.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.d.ts +0 -25
- package/dist/services/extractors/CSSVariableExtractor.d.ts.map +1 -1
- package/dist/services/extractors/CSSVariableExtractor.js +1 -42
- package/dist/services/extractors/CSSVariableExtractor.js.map +1 -1
- package/dist/services/historyRoots.d.ts +0 -12
- package/dist/services/historyRoots.d.ts.map +1 -1
- package/dist/services/historyRoots.js +0 -13
- package/dist/services/historyRoots.js.map +1 -1
- package/dist/services/libraryErrors.d.ts +0 -1
- package/dist/services/libraryErrors.d.ts.map +1 -1
- package/dist/services/libraryErrors.js +0 -1
- package/dist/services/libraryErrors.js.map +1 -1
- package/dist/services/pendingLogin.d.ts +0 -13
- package/dist/services/pendingLogin.d.ts.map +1 -1
- package/dist/services/pendingLogin.js +0 -3
- package/dist/services/pendingLogin.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +446 -0
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -0
- package/dist/services/profiles/DesignProfiles.js +552 -0
- package/dist/services/profiles/DesignProfiles.js.map +1 -0
- package/dist/services/profiles/MemoryModelService.d.ts +14 -0
- package/dist/services/profiles/MemoryModelService.d.ts.map +1 -0
- package/dist/services/profiles/MemoryModelService.js +113 -0
- package/dist/services/profiles/MemoryModelService.js.map +1 -0
- package/dist/services/profiles/MemoryRuntime.d.ts +26 -0
- package/dist/services/profiles/MemoryRuntime.d.ts.map +1 -0
- package/dist/services/profiles/MemoryRuntime.js +192 -0
- package/dist/services/profiles/MemoryRuntime.js.map +1 -0
- package/dist/services/profiles/ProfileAgent.d.ts +20 -0
- package/dist/services/profiles/ProfileAgent.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAgent.js +196 -0
- package/dist/services/profiles/ProfileAgent.js.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts +23 -0
- package/dist/services/profiles/ProfileAnalysis.d.ts.map +1 -0
- package/dist/services/profiles/ProfileAnalysis.js +114 -0
- package/dist/services/profiles/ProfileAnalysis.js.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts +15 -0
- package/dist/services/profiles/ProfileImportSchedule.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImportSchedule.js +40 -0
- package/dist/services/profiles/ProfileImportSchedule.js.map +1 -0
- package/dist/services/profiles/ProfileImports.d.ts +47 -0
- package/dist/services/profiles/ProfileImports.d.ts.map +1 -0
- package/dist/services/profiles/ProfileImports.js +248 -0
- package/dist/services/profiles/ProfileImports.js.map +1 -0
- package/dist/services/profiles/ProfileIndex.d.ts +18 -0
- package/dist/services/profiles/ProfileIndex.d.ts.map +1 -0
- package/dist/services/profiles/ProfileIndex.js +119 -0
- package/dist/services/profiles/ProfileIndex.js.map +1 -0
- package/dist/services/profiles/ProfileMedia.d.ts +10 -0
- package/dist/services/profiles/ProfileMedia.d.ts.map +1 -0
- package/dist/services/profiles/ProfileMedia.js +76 -0
- package/dist/services/profiles/ProfileMedia.js.map +1 -0
- package/dist/services/profiles/ProfilePreparation.d.ts +17 -0
- package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -0
- package/dist/services/profiles/ProfilePreparation.js +214 -0
- package/dist/services/profiles/ProfilePreparation.js.map +1 -0
- package/dist/services/profiles/ProfileVariants.d.ts +33 -0
- package/dist/services/profiles/ProfileVariants.d.ts.map +1 -0
- package/dist/services/profiles/ProfileVariants.js +129 -0
- package/dist/services/profiles/ProfileVariants.js.map +1 -0
- package/dist/services/profiles/analysisBatch.d.ts +53 -0
- package/dist/services/profiles/analysisBatch.d.ts.map +1 -0
- package/dist/services/profiles/analysisBatch.js +86 -0
- package/dist/services/profiles/analysisBatch.js.map +1 -0
- package/dist/services/profiles/boardPage.d.ts +12 -0
- package/dist/services/profiles/boardPage.d.ts.map +1 -0
- package/dist/services/profiles/boardPage.js +156 -0
- package/dist/services/profiles/boardPage.js.map +1 -0
- package/dist/services/profiles/engineAccess.d.ts +2 -0
- package/dist/services/profiles/engineAccess.d.ts.map +1 -0
- package/dist/services/profiles/engineAccess.js +55 -0
- package/dist/services/profiles/engineAccess.js.map +1 -0
- package/dist/services/profiles/memoryComponents.d.ts +7 -0
- package/dist/services/profiles/memoryComponents.d.ts.map +1 -0
- package/dist/services/profiles/memoryComponents.js +105 -0
- package/dist/services/profiles/memoryComponents.js.map +1 -0
- package/dist/services/profiles/modelContract.d.ts +14 -0
- package/dist/services/profiles/modelContract.d.ts.map +1 -0
- package/dist/services/profiles/modelContract.js +124 -0
- package/dist/services/profiles/modelContract.js.map +1 -0
- package/dist/services/profiles/nativeImages.d.ts +3 -0
- package/dist/services/profiles/nativeImages.d.ts.map +1 -0
- package/dist/services/profiles/nativeImages.js +72 -0
- package/dist/services/profiles/nativeImages.js.map +1 -0
- package/dist/services/profiles/profileAccount.d.ts +4 -0
- package/dist/services/profiles/profileAccount.d.ts.map +1 -0
- package/dist/services/profiles/profileAccount.js +21 -0
- package/dist/services/profiles/profileAccount.js.map +1 -0
- package/dist/services/profiles/profileContext.d.ts +18 -0
- package/dist/services/profiles/profileContext.d.ts.map +1 -0
- package/dist/services/profiles/profileContext.js +189 -0
- package/dist/services/profiles/profileContext.js.map +1 -0
- package/dist/services/profiles/profileEvidence.d.ts +3 -0
- package/dist/services/profiles/profileEvidence.d.ts.map +1 -0
- package/dist/services/profiles/profileEvidence.js +15 -0
- package/dist/services/profiles/profileEvidence.js.map +1 -0
- package/dist/services/profiles/profileQueries.d.ts +2 -0
- package/dist/services/profiles/profileQueries.d.ts.map +1 -0
- package/dist/services/profiles/profileQueries.js +23 -0
- package/dist/services/profiles/profileQueries.js.map +1 -0
- package/dist/services/profiles/profileSelection.d.ts +29 -0
- package/dist/services/profiles/profileSelection.d.ts.map +1 -0
- package/dist/services/profiles/profileSelection.js +43 -0
- package/dist/services/profiles/profileSelection.js.map +1 -0
- package/dist/services/profiles/xPage.d.ts +4 -0
- package/dist/services/profiles/xPage.d.ts.map +1 -0
- package/dist/services/profiles/xPage.js +58 -0
- package/dist/services/profiles/xPage.js.map +1 -0
- package/dist/services/referenceImages.d.ts +17 -0
- package/dist/services/referenceImages.d.ts.map +1 -0
- package/dist/services/referenceImages.js +138 -0
- package/dist/services/referenceImages.js.map +1 -0
- package/dist/services/staticProjectTarget.d.ts +0 -4
- package/dist/services/staticProjectTarget.d.ts.map +1 -1
- package/dist/services/staticProjectTarget.js +0 -4
- package/dist/services/staticProjectTarget.js.map +1 -1
- package/dist/services/staticStarter.d.ts +0 -20
- package/dist/services/staticStarter.d.ts.map +1 -1
- package/dist/services/staticStarter.js +0 -20
- package/dist/services/staticStarter.js.map +1 -1
- package/dist/services/templates/designCatalog.d.ts +0 -11
- package/dist/services/templates/designCatalog.d.ts.map +1 -1
- package/dist/services/templates/designCatalog.js +0 -26
- package/dist/services/templates/designCatalog.js.map +1 -1
- package/dist/services/templates/viteReactTs.d.ts +0 -26
- package/dist/services/templates/viteReactTs.d.ts.map +1 -1
- package/dist/services/templates/viteReactTs.js +0 -20
- package/dist/services/templates/viteReactTs.js.map +1 -1
- package/dist/storage/library/BundleMetadataStore.d.ts +0 -16
- package/dist/storage/library/BundleMetadataStore.d.ts.map +1 -1
- package/dist/storage/library/BundleMetadataStore.js +0 -17
- package/dist/storage/library/BundleMetadataStore.js.map +1 -1
- package/dist/storage/library/CoordinatorRecords.d.ts +0 -9
- package/dist/storage/library/CoordinatorRecords.d.ts.map +1 -1
- package/dist/storage/library/CoordinatorRecords.js +0 -9
- package/dist/storage/library/CoordinatorRecords.js.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.d.ts +0 -4
- package/dist/storage/library/ProjectPreviewCache.d.ts.map +1 -1
- package/dist/storage/library/ProjectPreviewCache.js +0 -4
- package/dist/storage/library/ProjectPreviewCache.js.map +1 -1
- package/dist/storage/library/ProjectRecords.d.ts +0 -17
- package/dist/storage/library/ProjectRecords.d.ts.map +1 -1
- package/dist/storage/library/ProjectRecords.js +0 -17
- package/dist/storage/library/ProjectRecords.js.map +1 -1
- package/dist/storage/library/database.d.ts +0 -3
- package/dist/storage/library/database.d.ts.map +1 -1
- package/dist/storage/library/database.js +0 -3
- package/dist/storage/library/database.js.map +1 -1
- package/dist/storage/library/migrations.d.ts +0 -2
- package/dist/storage/library/migrations.d.ts.map +1 -1
- package/dist/storage/library/migrations.js +0 -2
- package/dist/storage/library/migrations.js.map +1 -1
- package/dist/storage/library/sourcePresentation.d.ts +0 -1
- package/dist/storage/library/sourcePresentation.d.ts.map +1 -1
- package/dist/storage/library/sourcePresentation.js +0 -1
- package/dist/storage/library/sourcePresentation.js.map +1 -1
- package/dist/storage/profiles/ProfileRecords.d.ts +199 -0
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -0
- package/dist/storage/profiles/ProfileRecords.js +659 -0
- package/dist/storage/profiles/ProfileRecords.js.map +1 -0
- package/dist/storage/profiles/contextReceipts.d.ts +14 -0
- package/dist/storage/profiles/contextReceipts.d.ts.map +1 -0
- package/dist/storage/profiles/contextReceipts.js +52 -0
- package/dist/storage/profiles/contextReceipts.js.map +1 -0
- package/dist/storage/profiles/migrations.d.ts +4 -0
- package/dist/storage/profiles/migrations.d.ts.map +1 -0
- package/dist/storage/profiles/migrations.js +41 -0
- package/dist/storage/profiles/migrations.js.map +1 -0
- package/dist/storage/profiles/schema.d.ts +961 -0
- package/dist/storage/profiles/schema.d.ts.map +1 -0
- package/dist/storage/profiles/schema.js +102 -0
- package/dist/storage/profiles/schema.js.map +1 -0
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts +0 -11
- package/dist/storage/project-metadata/ProjectMetadataRecords.d.ts.map +1 -1
- package/dist/storage/project-metadata/ProjectMetadataRecords.js +0 -13
- package/dist/storage/project-metadata/ProjectMetadataRecords.js.map +1 -1
- package/dist/storage/project-metadata/database.d.ts +0 -1
- package/dist/storage/project-metadata/database.d.ts.map +1 -1
- package/dist/storage/project-metadata/database.js +0 -7
- package/dist/storage/project-metadata/database.js.map +1 -1
- package/dist/storage/project-metadata/migrations.d.ts +0 -42
- package/dist/storage/project-metadata/migrations.d.ts.map +1 -1
- package/dist/storage/project-metadata/migrations.js +0 -41
- package/dist/storage/project-metadata/migrations.js.map +1 -1
- package/dist/types/account.d.ts +0 -1
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/change-request-types.d.ts +5 -167
- package/dist/types/change-request-types.d.ts.map +1 -1
- package/dist/types/change-types.d.ts +0 -1
- package/dist/types/change-types.d.ts.map +1 -1
- package/dist/types/change-types.js +0 -1
- package/dist/types/change-types.js.map +1 -1
- package/dist/types/design-profile.d.ts +570 -0
- package/dist/types/design-profile.d.ts.map +1 -0
- package/dist/types/design-profile.js +127 -0
- package/dist/types/design-profile.js.map +1 -0
- package/dist/types/project-library.d.ts +0 -1
- package/dist/types/project-library.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.d.ts +0 -69
- package/dist/types/style-manipulation-types.d.ts.map +1 -1
- package/dist/types/style-manipulation-types.js +0 -26
- package/dist/types/style-manipulation-types.js.map +1 -1
- package/dist/types/token-types.d.ts +0 -30
- package/dist/types/token-types.d.ts.map +1 -1
- package/dist/types/token-types.js +0 -1
- package/dist/types/token-types.js.map +1 -1
- package/dist/types/variant-history.d.ts +3 -39
- package/dist/types/variant-history.d.ts.map +1 -1
- package/dist/types/variant-reference.d.ts +46 -0
- package/dist/types/variant-reference.d.ts.map +1 -0
- package/dist/types/variant-reference.js +58 -0
- package/dist/types/variant-reference.js.map +1 -0
- package/dist/types/x-bookmarks.d.ts +352 -0
- package/dist/types/x-bookmarks.d.ts.map +1 -0
- package/dist/types/x-bookmarks.js +56 -0
- package/dist/types/x-bookmarks.js.map +1 -0
- package/dist/utils/ProviderRateLimit.d.ts +7 -0
- package/dist/utils/ProviderRateLimit.d.ts.map +1 -0
- package/dist/utils/ProviderRateLimit.js +36 -0
- package/dist/utils/ProviderRateLimit.js.map +1 -0
- package/dist/utils/branchNames.d.ts +0 -1
- package/dist/utils/branchNames.d.ts.map +1 -1
- package/dist/utils/branchNames.js +0 -2
- package/dist/utils/branchNames.js.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.d.ts +0 -12
- package/dist/utils/cloneOrCopyDirSync.d.ts.map +1 -1
- package/dist/utils/cloneOrCopyDirSync.js +0 -16
- package/dist/utils/cloneOrCopyDirSync.js.map +1 -1
- package/dist/utils/devServerCommand.d.ts +0 -23
- package/dist/utils/devServerCommand.d.ts.map +1 -1
- package/dist/utils/devServerCommand.js +0 -24
- package/dist/utils/devServerCommand.js.map +1 -1
- package/dist/utils/devServerError.d.ts +0 -16
- package/dist/utils/devServerError.d.ts.map +1 -1
- package/dist/utils/devServerError.js +0 -17
- package/dist/utils/devServerError.js.map +1 -1
- package/dist/utils/displayLocale.d.ts +0 -2
- package/dist/utils/displayLocale.d.ts.map +1 -1
- package/dist/utils/displayLocale.js +0 -2
- package/dist/utils/displayLocale.js.map +1 -1
- package/dist/utils/elementFileHintSignals.d.ts +0 -5
- package/dist/utils/elementFileHintSignals.d.ts.map +1 -1
- package/dist/utils/elementFileHintSignals.js +0 -5
- package/dist/utils/elementFileHintSignals.js.map +1 -1
- package/dist/utils/formatElementTargetingContext.d.ts +0 -6
- package/dist/utils/formatElementTargetingContext.d.ts.map +1 -1
- package/dist/utils/formatElementTargetingContext.js +3 -9
- package/dist/utils/formatElementTargetingContext.js.map +1 -1
- package/dist/utils/hostAgentEnv.d.ts +0 -17
- package/dist/utils/hostAgentEnv.d.ts.map +1 -1
- package/dist/utils/hostAgentEnv.js +0 -17
- package/dist/utils/hostAgentEnv.js.map +1 -1
- package/dist/utils/htmlDocument.d.ts +0 -5
- package/dist/utils/htmlDocument.d.ts.map +1 -1
- package/dist/utils/htmlDocument.js +2 -7
- package/dist/utils/htmlDocument.js.map +1 -1
- package/dist/utils/internalGitIdentity.d.ts +0 -5
- package/dist/utils/internalGitIdentity.d.ts.map +1 -1
- package/dist/utils/internalGitIdentity.js +0 -5
- package/dist/utils/internalGitIdentity.js.map +1 -1
- package/dist/utils/logger.d.ts +0 -5
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +2 -19
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/loginShellPath.d.ts +0 -9
- package/dist/utils/loginShellPath.d.ts.map +1 -1
- package/dist/utils/loginShellPath.js +0 -69
- package/dist/utils/loginShellPath.js.map +1 -1
- package/dist/utils/loopback.d.ts +0 -1
- package/dist/utils/loopback.d.ts.map +1 -1
- package/dist/utils/loopback.js +0 -1
- package/dist/utils/loopback.js.map +1 -1
- package/dist/utils/pid.d.ts +0 -1
- package/dist/utils/pid.d.ts.map +1 -1
- package/dist/utils/pid.js +0 -1
- package/dist/utils/pid.js.map +1 -1
- package/dist/utils/portUtils.d.ts +0 -15
- package/dist/utils/portUtils.d.ts.map +1 -1
- package/dist/utils/portUtils.js +0 -21
- package/dist/utils/portUtils.js.map +1 -1
- package/dist/utils/queueAccess.d.ts +0 -9
- package/dist/utils/queueAccess.d.ts.map +1 -1
- package/dist/utils/queueAccess.js +0 -9
- package/dist/utils/queueAccess.js.map +1 -1
- package/dist/utils/skillWriter.d.ts +0 -17
- package/dist/utils/skillWriter.d.ts.map +1 -1
- package/dist/utils/skillWriter.js +0 -20
- package/dist/utils/skillWriter.js.map +1 -1
- package/dist/utils/skills/claude-skill.d.ts +0 -5
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +0 -5
- package/dist/utils/skills/claude-skill.js.map +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -9
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +6 -10
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/cursor-rules.d.ts +0 -6
- package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
- package/dist/utils/skills/cursor-rules.js +0 -6
- package/dist/utils/skills/cursor-rules.js.map +1 -1
- package/dist/utils/variantPreviewPort.d.ts +0 -3
- package/dist/utils/variantPreviewPort.d.ts.map +1 -1
- package/dist/utils/variantPreviewPort.js +0 -3
- package/dist/utils/variantPreviewPort.js.map +1 -1
- package/dist/utils/windowPlacement.d.ts +0 -4
- package/dist/utils/windowPlacement.d.ts.map +1 -1
- package/dist/utils/windowPlacement.js +0 -4
- package/dist/utils/windowPlacement.js.map +1 -1
- package/package.json +13 -13
- package/scripts/verify-node-version.cjs +0 -3
- package/src/ui/dist/assets/{LibraryApp-qbLqcNxM.js → LibraryApp-Bu7hVbt_.js} +1 -1
- package/src/ui/dist/assets/main-CHyx_rEa.css +1 -0
- package/src/ui/dist/assets/main-CuiPb_rl.js +438 -0
- package/src/ui/dist/index.html +2 -2
- package/dist/utils/skills/describe-motion-protocol.d.ts +0 -10
- package/dist/utils/skills/describe-motion-protocol.d.ts.map +0 -1
- package/dist/utils/skills/describe-motion-protocol.js +0 -231
- package/dist/utils/skills/describe-motion-protocol.js.map +0 -1
- package/src/ui/dist/assets/main-BUZjlAHd.css +0 -1
- package/src/ui/dist/assets/main-touv07Dk.js +0 -438
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type VariantReference } from '../types/variant-reference';
|
|
1
2
|
import { z } from 'zod/v3';
|
|
2
3
|
import { ERROR_CODES, type ErrorCode } from './errors';
|
|
3
4
|
export declare const STAGES: readonly ["awaiting_source_plan", "awaiting_briefs", "awaiting_approval", "work_items_ready", "waiting_for_results", "ready", "degraded", "failed", "cancelled"];
|
|
@@ -14,11 +15,6 @@ export interface LeaseRecord {
|
|
|
14
15
|
leaseExpiresAt: number;
|
|
15
16
|
attempt: number;
|
|
16
17
|
}
|
|
17
|
-
/**
|
|
18
|
-
* Minimal descriptor of the element a user selected when commenting/Varying a
|
|
19
|
-
* static_preview variant. Carried into forked work items so the generating
|
|
20
|
-
* agent can locate the element in the inline HTML and scope its change to it.
|
|
21
|
-
*/
|
|
22
18
|
export interface StaticPreviewTargetElement {
|
|
23
19
|
tagName?: string;
|
|
24
20
|
className?: string;
|
|
@@ -26,20 +22,9 @@ export interface StaticPreviewTargetElement {
|
|
|
26
22
|
textContent?: string;
|
|
27
23
|
xpath?: string;
|
|
28
24
|
}
|
|
29
|
-
/** The runtime that actually executed a variant's worker: vendor CLI plus the
|
|
30
|
-
* resolved model/effort labels. Recorded by the executor when the worker
|
|
31
|
-
* finishes; absent while running and for host-agent-executed work (the
|
|
32
|
-
* pre-executor degraded mode), where the host agent's own runtime applies.
|
|
33
|
-
* Surfaced so agents and users can answer "which model built this
|
|
34
|
-
* direction?" from `variants list`/`get` instead of guessing from fidelity. */
|
|
35
25
|
export interface WorkerRuntimeInfo {
|
|
36
26
|
vendor: string;
|
|
37
|
-
/** Resolved model label — a concrete id (claude) or `<vendor>-default`
|
|
38
|
-
* when the tier deliberately omits a model pin (codex/cursor run on the
|
|
39
|
-
* user's own CLI default). */
|
|
40
27
|
model: string;
|
|
41
|
-
/** Effort/reasoning tier when the vendor has one (claude effort, codex
|
|
42
|
-
* reasoning effort). */
|
|
43
28
|
effort?: string;
|
|
44
29
|
}
|
|
45
30
|
export interface WorkItem {
|
|
@@ -53,30 +38,12 @@ export interface WorkItem {
|
|
|
53
38
|
error?: {
|
|
54
39
|
code: ErrorCode | string;
|
|
55
40
|
message: string;
|
|
56
|
-
/** HTTP status from the worker CLI's API failure (e.g. 401/429), when the
|
|
57
|
-
* runtime reported one — preserved so failures stay diagnosable without
|
|
58
|
-
* re-parsing the message text. */
|
|
59
41
|
apiErrorStatus?: number;
|
|
60
42
|
};
|
|
61
43
|
lease?: LeaseRecord;
|
|
62
|
-
/** Set on terminal report by the executor — see {@link WorkerRuntimeInfo}. */
|
|
63
44
|
runtime?: WorkerRuntimeInfo;
|
|
64
45
|
acceptedReports: string[];
|
|
65
|
-
/**
|
|
66
|
-
* When true, the work item is owned by the server (no external lease ever
|
|
67
|
-
* issued, no `request_work` surfacing). Used for `scaffold_base` items in
|
|
68
|
-
* fresh-project sessions where the server runs the actual scaffold +
|
|
69
|
-
* `npm install` in the background and reports completion via
|
|
70
|
-
* `SessionStore.completeInternal`.
|
|
71
|
-
*/
|
|
72
46
|
internal?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* User removed this variant from the UI. Removed items are kept in the
|
|
75
|
-
* session (and persisted to `.rivet/variants/` with status `removed`) but
|
|
76
|
-
* are excluded from the active snapshot, progress/summary accounting, and
|
|
77
|
-
* terminal evaluation — i.e. never rendered again. Orthogonal to `status`:
|
|
78
|
-
* a `succeeded` variant can be removed without losing its result.
|
|
79
|
-
*/
|
|
80
47
|
removed?: boolean;
|
|
81
48
|
}
|
|
82
49
|
export declare const CONTEXT_ASSET_MAX_ITEMS = 12;
|
|
@@ -102,11 +69,6 @@ export declare const designContextEntrySchema: z.ZodDiscriminatedUnion<"kind", [
|
|
|
102
69
|
content: string;
|
|
103
70
|
label: string;
|
|
104
71
|
}>]>;
|
|
105
|
-
/**
|
|
106
|
-
* Role a raw source plays in `design_system` action metadata. Retained because
|
|
107
|
-
* `rivetMetadataSchema` references it; the legacy summary-first
|
|
108
|
-
* `sourceContext`/`sourceIntent` intake shapes that also used it are gone.
|
|
109
|
-
*/
|
|
110
72
|
export declare const sourceRoleSchema: z.ZodEnum<["primary", "inspiration", "competitor"]>;
|
|
111
73
|
export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
112
74
|
transport: z.ZodLiteral<"url">;
|
|
@@ -132,17 +94,48 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
|
|
|
132
94
|
}, "strip", z.ZodTypeAny, {
|
|
133
95
|
path: string;
|
|
134
96
|
transport: "file_path";
|
|
97
|
+
mimeType?: string | undefined;
|
|
135
98
|
label?: string | undefined;
|
|
136
99
|
userIntent?: string | undefined;
|
|
137
|
-
mimeType?: string | undefined;
|
|
138
100
|
}, {
|
|
139
101
|
path: string;
|
|
140
102
|
transport: "file_path";
|
|
103
|
+
mimeType?: string | undefined;
|
|
141
104
|
label?: string | undefined;
|
|
142
105
|
userIntent?: string | undefined;
|
|
143
|
-
mimeType?: string | undefined;
|
|
144
106
|
}>, z.ZodObject<{
|
|
145
107
|
transport: z.ZodLiteral<"upload">;
|
|
108
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
title: z.ZodString;
|
|
111
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
112
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
113
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
114
|
+
hash: z.ZodString;
|
|
115
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
hash: string;
|
|
118
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
119
|
+
}, {
|
|
120
|
+
hash: string;
|
|
121
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
122
|
+
}>>>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
id: string;
|
|
125
|
+
url: string;
|
|
126
|
+
title: string;
|
|
127
|
+
image?: {
|
|
128
|
+
hash: string;
|
|
129
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
130
|
+
} | undefined;
|
|
131
|
+
reason?: string | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
id: string;
|
|
134
|
+
url: string;
|
|
135
|
+
title: string;
|
|
136
|
+
image?: unknown;
|
|
137
|
+
reason?: string | undefined;
|
|
138
|
+
}>, "many">>;
|
|
146
139
|
dataUrl: z.ZodString;
|
|
147
140
|
filename: z.ZodOptional<z.ZodString>;
|
|
148
141
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -152,12 +145,29 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
|
|
|
152
145
|
dataUrl: string;
|
|
153
146
|
label?: string | undefined;
|
|
154
147
|
userIntent?: string | undefined;
|
|
148
|
+
references?: {
|
|
149
|
+
id: string;
|
|
150
|
+
url: string;
|
|
151
|
+
title: string;
|
|
152
|
+
image?: {
|
|
153
|
+
hash: string;
|
|
154
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
155
|
+
} | undefined;
|
|
156
|
+
reason?: string | undefined;
|
|
157
|
+
}[] | undefined;
|
|
155
158
|
filename?: string | undefined;
|
|
156
159
|
}, {
|
|
157
160
|
transport: "upload";
|
|
158
161
|
dataUrl: string;
|
|
159
162
|
label?: string | undefined;
|
|
160
163
|
userIntent?: string | undefined;
|
|
164
|
+
references?: {
|
|
165
|
+
id: string;
|
|
166
|
+
url: string;
|
|
167
|
+
title: string;
|
|
168
|
+
image?: unknown;
|
|
169
|
+
reason?: string | undefined;
|
|
170
|
+
}[] | undefined;
|
|
161
171
|
filename?: string | undefined;
|
|
162
172
|
}>, z.ZodObject<{
|
|
163
173
|
transport: z.ZodLiteral<"directory_path">;
|
|
@@ -176,6 +186,37 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
|
|
|
176
186
|
userIntent?: string | undefined;
|
|
177
187
|
}>, z.ZodObject<{
|
|
178
188
|
transport: z.ZodLiteral<"text">;
|
|
189
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
title: z.ZodString;
|
|
192
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
193
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
194
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
195
|
+
hash: z.ZodString;
|
|
196
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
197
|
+
}, "strip", z.ZodTypeAny, {
|
|
198
|
+
hash: string;
|
|
199
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
200
|
+
}, {
|
|
201
|
+
hash: string;
|
|
202
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
203
|
+
}>>>;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
id: string;
|
|
206
|
+
url: string;
|
|
207
|
+
title: string;
|
|
208
|
+
image?: {
|
|
209
|
+
hash: string;
|
|
210
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
211
|
+
} | undefined;
|
|
212
|
+
reason?: string | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
id: string;
|
|
215
|
+
url: string;
|
|
216
|
+
title: string;
|
|
217
|
+
image?: unknown;
|
|
218
|
+
reason?: string | undefined;
|
|
219
|
+
}>, "many">>;
|
|
179
220
|
content: z.ZodString;
|
|
180
221
|
label: z.ZodOptional<z.ZodString>;
|
|
181
222
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -184,11 +225,28 @@ export declare const rawUserContextInputSchema: z.ZodDiscriminatedUnion<"transpo
|
|
|
184
225
|
transport: "text";
|
|
185
226
|
label?: string | undefined;
|
|
186
227
|
userIntent?: string | undefined;
|
|
228
|
+
references?: {
|
|
229
|
+
id: string;
|
|
230
|
+
url: string;
|
|
231
|
+
title: string;
|
|
232
|
+
image?: {
|
|
233
|
+
hash: string;
|
|
234
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
235
|
+
} | undefined;
|
|
236
|
+
reason?: string | undefined;
|
|
237
|
+
}[] | undefined;
|
|
187
238
|
}, {
|
|
188
239
|
content: string;
|
|
189
240
|
transport: "text";
|
|
190
241
|
label?: string | undefined;
|
|
191
242
|
userIntent?: string | undefined;
|
|
243
|
+
references?: {
|
|
244
|
+
id: string;
|
|
245
|
+
url: string;
|
|
246
|
+
title: string;
|
|
247
|
+
image?: unknown;
|
|
248
|
+
reason?: string | undefined;
|
|
249
|
+
}[] | undefined;
|
|
192
250
|
}>]>;
|
|
193
251
|
export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
194
252
|
id: z.ZodString;
|
|
@@ -223,6 +281,37 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
|
|
|
223
281
|
}>, z.ZodObject<{
|
|
224
282
|
id: z.ZodString;
|
|
225
283
|
transport: z.ZodLiteral<"file">;
|
|
284
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
title: z.ZodString;
|
|
287
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
288
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
289
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
290
|
+
hash: z.ZodString;
|
|
291
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
293
|
+
hash: string;
|
|
294
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
295
|
+
}, {
|
|
296
|
+
hash: string;
|
|
297
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
298
|
+
}>>>;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
id: string;
|
|
301
|
+
url: string;
|
|
302
|
+
title: string;
|
|
303
|
+
image?: {
|
|
304
|
+
hash: string;
|
|
305
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
306
|
+
} | undefined;
|
|
307
|
+
reason?: string | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
id: string;
|
|
310
|
+
url: string;
|
|
311
|
+
title: string;
|
|
312
|
+
image?: unknown;
|
|
313
|
+
reason?: string | undefined;
|
|
314
|
+
}>, "many">>;
|
|
226
315
|
path: z.ZodString;
|
|
227
316
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
228
317
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -232,17 +321,34 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
|
|
|
232
321
|
id: string;
|
|
233
322
|
path: string;
|
|
234
323
|
transport: "file";
|
|
324
|
+
mimeType?: string | undefined;
|
|
235
325
|
label?: string | undefined;
|
|
236
326
|
userIntent?: string | undefined;
|
|
237
|
-
|
|
327
|
+
references?: {
|
|
328
|
+
id: string;
|
|
329
|
+
url: string;
|
|
330
|
+
title: string;
|
|
331
|
+
image?: {
|
|
332
|
+
hash: string;
|
|
333
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
334
|
+
} | undefined;
|
|
335
|
+
reason?: string | undefined;
|
|
336
|
+
}[] | undefined;
|
|
238
337
|
originalFilename?: string | undefined;
|
|
239
338
|
}, {
|
|
240
339
|
id: string;
|
|
241
340
|
path: string;
|
|
242
341
|
transport: "file";
|
|
342
|
+
mimeType?: string | undefined;
|
|
243
343
|
label?: string | undefined;
|
|
244
344
|
userIntent?: string | undefined;
|
|
245
|
-
|
|
345
|
+
references?: {
|
|
346
|
+
id: string;
|
|
347
|
+
url: string;
|
|
348
|
+
title: string;
|
|
349
|
+
image?: unknown;
|
|
350
|
+
reason?: string | undefined;
|
|
351
|
+
}[] | undefined;
|
|
246
352
|
originalFilename?: string | undefined;
|
|
247
353
|
}>, z.ZodObject<{
|
|
248
354
|
id: z.ZodString;
|
|
@@ -265,6 +371,37 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
|
|
|
265
371
|
}>, z.ZodObject<{
|
|
266
372
|
id: z.ZodString;
|
|
267
373
|
transport: z.ZodLiteral<"text">;
|
|
374
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
375
|
+
id: z.ZodString;
|
|
376
|
+
title: z.ZodString;
|
|
377
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
378
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
379
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
380
|
+
hash: z.ZodString;
|
|
381
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
hash: string;
|
|
384
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
385
|
+
}, {
|
|
386
|
+
hash: string;
|
|
387
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
388
|
+
}>>>;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
id: string;
|
|
391
|
+
url: string;
|
|
392
|
+
title: string;
|
|
393
|
+
image?: {
|
|
394
|
+
hash: string;
|
|
395
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
396
|
+
} | undefined;
|
|
397
|
+
reason?: string | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
id: string;
|
|
400
|
+
url: string;
|
|
401
|
+
title: string;
|
|
402
|
+
image?: unknown;
|
|
403
|
+
reason?: string | undefined;
|
|
404
|
+
}>, "many">>;
|
|
268
405
|
path: z.ZodString;
|
|
269
406
|
label: z.ZodOptional<z.ZodString>;
|
|
270
407
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -274,12 +411,29 @@ export declare const rawUserContextSourceSchema: z.ZodDiscriminatedUnion<"transp
|
|
|
274
411
|
transport: "text";
|
|
275
412
|
label?: string | undefined;
|
|
276
413
|
userIntent?: string | undefined;
|
|
414
|
+
references?: {
|
|
415
|
+
id: string;
|
|
416
|
+
url: string;
|
|
417
|
+
title: string;
|
|
418
|
+
image?: {
|
|
419
|
+
hash: string;
|
|
420
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
421
|
+
} | undefined;
|
|
422
|
+
reason?: string | undefined;
|
|
423
|
+
}[] | undefined;
|
|
277
424
|
}, {
|
|
278
425
|
id: string;
|
|
279
426
|
path: string;
|
|
280
427
|
transport: "text";
|
|
281
428
|
label?: string | undefined;
|
|
282
429
|
userIntent?: string | undefined;
|
|
430
|
+
references?: {
|
|
431
|
+
id: string;
|
|
432
|
+
url: string;
|
|
433
|
+
title: string;
|
|
434
|
+
image?: unknown;
|
|
435
|
+
reason?: string | undefined;
|
|
436
|
+
}[] | undefined;
|
|
283
437
|
}>]>;
|
|
284
438
|
export declare const contextAssetInputSchema: z.ZodObject<{
|
|
285
439
|
path: z.ZodString;
|
|
@@ -305,16 +459,16 @@ export declare const stagedContextAssetSchema: z.ZodObject<{
|
|
|
305
459
|
originalFilename: string;
|
|
306
460
|
sizeBytes: number;
|
|
307
461
|
sha256: string;
|
|
308
|
-
label?: string | undefined;
|
|
309
462
|
mimeType?: string | undefined;
|
|
463
|
+
label?: string | undefined;
|
|
310
464
|
}, {
|
|
311
465
|
id: string;
|
|
312
466
|
path: string;
|
|
313
467
|
originalFilename: string;
|
|
314
468
|
sizeBytes: number;
|
|
315
469
|
sha256: string;
|
|
316
|
-
label?: string | undefined;
|
|
317
470
|
mimeType?: string | undefined;
|
|
471
|
+
label?: string | undefined;
|
|
318
472
|
}>;
|
|
319
473
|
export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
320
474
|
source: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
@@ -350,6 +504,37 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
350
504
|
}>, z.ZodObject<{
|
|
351
505
|
id: z.ZodString;
|
|
352
506
|
transport: z.ZodLiteral<"file">;
|
|
507
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
508
|
+
id: z.ZodString;
|
|
509
|
+
title: z.ZodString;
|
|
510
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
511
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
512
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
513
|
+
hash: z.ZodString;
|
|
514
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
515
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
|
+
hash: string;
|
|
517
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
518
|
+
}, {
|
|
519
|
+
hash: string;
|
|
520
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
521
|
+
}>>>;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
id: string;
|
|
524
|
+
url: string;
|
|
525
|
+
title: string;
|
|
526
|
+
image?: {
|
|
527
|
+
hash: string;
|
|
528
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
529
|
+
} | undefined;
|
|
530
|
+
reason?: string | undefined;
|
|
531
|
+
}, {
|
|
532
|
+
id: string;
|
|
533
|
+
url: string;
|
|
534
|
+
title: string;
|
|
535
|
+
image?: unknown;
|
|
536
|
+
reason?: string | undefined;
|
|
537
|
+
}>, "many">>;
|
|
353
538
|
path: z.ZodString;
|
|
354
539
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
355
540
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -359,17 +544,34 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
359
544
|
id: string;
|
|
360
545
|
path: string;
|
|
361
546
|
transport: "file";
|
|
547
|
+
mimeType?: string | undefined;
|
|
362
548
|
label?: string | undefined;
|
|
363
549
|
userIntent?: string | undefined;
|
|
364
|
-
|
|
550
|
+
references?: {
|
|
551
|
+
id: string;
|
|
552
|
+
url: string;
|
|
553
|
+
title: string;
|
|
554
|
+
image?: {
|
|
555
|
+
hash: string;
|
|
556
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
557
|
+
} | undefined;
|
|
558
|
+
reason?: string | undefined;
|
|
559
|
+
}[] | undefined;
|
|
365
560
|
originalFilename?: string | undefined;
|
|
366
561
|
}, {
|
|
367
562
|
id: string;
|
|
368
563
|
path: string;
|
|
369
564
|
transport: "file";
|
|
565
|
+
mimeType?: string | undefined;
|
|
370
566
|
label?: string | undefined;
|
|
371
567
|
userIntent?: string | undefined;
|
|
372
|
-
|
|
568
|
+
references?: {
|
|
569
|
+
id: string;
|
|
570
|
+
url: string;
|
|
571
|
+
title: string;
|
|
572
|
+
image?: unknown;
|
|
573
|
+
reason?: string | undefined;
|
|
574
|
+
}[] | undefined;
|
|
373
575
|
originalFilename?: string | undefined;
|
|
374
576
|
}>, z.ZodObject<{
|
|
375
577
|
id: z.ZodString;
|
|
@@ -392,6 +594,37 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
392
594
|
}>, z.ZodObject<{
|
|
393
595
|
id: z.ZodString;
|
|
394
596
|
transport: z.ZodLiteral<"text">;
|
|
597
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
598
|
+
id: z.ZodString;
|
|
599
|
+
title: z.ZodString;
|
|
600
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
601
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
602
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
603
|
+
hash: z.ZodString;
|
|
604
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
605
|
+
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
hash: string;
|
|
607
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
608
|
+
}, {
|
|
609
|
+
hash: string;
|
|
610
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
611
|
+
}>>>;
|
|
612
|
+
}, "strip", z.ZodTypeAny, {
|
|
613
|
+
id: string;
|
|
614
|
+
url: string;
|
|
615
|
+
title: string;
|
|
616
|
+
image?: {
|
|
617
|
+
hash: string;
|
|
618
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
619
|
+
} | undefined;
|
|
620
|
+
reason?: string | undefined;
|
|
621
|
+
}, {
|
|
622
|
+
id: string;
|
|
623
|
+
url: string;
|
|
624
|
+
title: string;
|
|
625
|
+
image?: unknown;
|
|
626
|
+
reason?: string | undefined;
|
|
627
|
+
}>, "many">>;
|
|
395
628
|
path: z.ZodString;
|
|
396
629
|
label: z.ZodOptional<z.ZodString>;
|
|
397
630
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -401,12 +634,29 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
401
634
|
transport: "text";
|
|
402
635
|
label?: string | undefined;
|
|
403
636
|
userIntent?: string | undefined;
|
|
637
|
+
references?: {
|
|
638
|
+
id: string;
|
|
639
|
+
url: string;
|
|
640
|
+
title: string;
|
|
641
|
+
image?: {
|
|
642
|
+
hash: string;
|
|
643
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
644
|
+
} | undefined;
|
|
645
|
+
reason?: string | undefined;
|
|
646
|
+
}[] | undefined;
|
|
404
647
|
}, {
|
|
405
648
|
id: string;
|
|
406
649
|
path: string;
|
|
407
650
|
transport: "text";
|
|
408
651
|
label?: string | undefined;
|
|
409
652
|
userIntent?: string | undefined;
|
|
653
|
+
references?: {
|
|
654
|
+
id: string;
|
|
655
|
+
url: string;
|
|
656
|
+
title: string;
|
|
657
|
+
image?: unknown;
|
|
658
|
+
reason?: string | undefined;
|
|
659
|
+
}[] | undefined;
|
|
410
660
|
}>]>;
|
|
411
661
|
storage: z.ZodOptional<z.ZodObject<{
|
|
412
662
|
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
@@ -436,9 +686,19 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
436
686
|
id: string;
|
|
437
687
|
path: string;
|
|
438
688
|
transport: "file";
|
|
689
|
+
mimeType?: string | undefined;
|
|
439
690
|
label?: string | undefined;
|
|
440
691
|
userIntent?: string | undefined;
|
|
441
|
-
|
|
692
|
+
references?: {
|
|
693
|
+
id: string;
|
|
694
|
+
url: string;
|
|
695
|
+
title: string;
|
|
696
|
+
image?: {
|
|
697
|
+
hash: string;
|
|
698
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
699
|
+
} | undefined;
|
|
700
|
+
reason?: string | undefined;
|
|
701
|
+
}[] | undefined;
|
|
442
702
|
originalFilename?: string | undefined;
|
|
443
703
|
} | {
|
|
444
704
|
id: string;
|
|
@@ -452,6 +712,16 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
452
712
|
transport: "text";
|
|
453
713
|
label?: string | undefined;
|
|
454
714
|
userIntent?: string | undefined;
|
|
715
|
+
references?: {
|
|
716
|
+
id: string;
|
|
717
|
+
url: string;
|
|
718
|
+
title: string;
|
|
719
|
+
image?: {
|
|
720
|
+
hash: string;
|
|
721
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
722
|
+
} | undefined;
|
|
723
|
+
reason?: string | undefined;
|
|
724
|
+
}[] | undefined;
|
|
455
725
|
};
|
|
456
726
|
storage?: {
|
|
457
727
|
originalFilename?: string | undefined;
|
|
@@ -473,9 +743,16 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
473
743
|
id: string;
|
|
474
744
|
path: string;
|
|
475
745
|
transport: "file";
|
|
746
|
+
mimeType?: string | undefined;
|
|
476
747
|
label?: string | undefined;
|
|
477
748
|
userIntent?: string | undefined;
|
|
478
|
-
|
|
749
|
+
references?: {
|
|
750
|
+
id: string;
|
|
751
|
+
url: string;
|
|
752
|
+
title: string;
|
|
753
|
+
image?: unknown;
|
|
754
|
+
reason?: string | undefined;
|
|
755
|
+
}[] | undefined;
|
|
479
756
|
originalFilename?: string | undefined;
|
|
480
757
|
} | {
|
|
481
758
|
id: string;
|
|
@@ -489,6 +766,13 @@ export declare const storedUserContextSourceRecordSchema: z.ZodObject<{
|
|
|
489
766
|
transport: "text";
|
|
490
767
|
label?: string | undefined;
|
|
491
768
|
userIntent?: string | undefined;
|
|
769
|
+
references?: {
|
|
770
|
+
id: string;
|
|
771
|
+
url: string;
|
|
772
|
+
title: string;
|
|
773
|
+
image?: unknown;
|
|
774
|
+
reason?: string | undefined;
|
|
775
|
+
}[] | undefined;
|
|
492
776
|
};
|
|
493
777
|
storage?: {
|
|
494
778
|
originalFilename?: string | undefined;
|
|
@@ -546,13 +830,6 @@ export declare const rivetMetadataSchema: z.ZodDiscriminatedUnion<"kind", [z.Zod
|
|
|
546
830
|
kind: z.ZodLiteral<"design_system">;
|
|
547
831
|
data: z.ZodObject<{
|
|
548
832
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
549
|
-
/**
|
|
550
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
551
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
552
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
553
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
554
|
-
* extracted-vs-guessed values.
|
|
555
|
-
*/
|
|
556
833
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
557
834
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
558
835
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -728,13 +1005,6 @@ export declare const variantContextBindingSchema: z.ZodDiscriminatedUnion<"kind"
|
|
|
728
1005
|
}>]>;
|
|
729
1006
|
export declare const executionModeSchema: z.ZodEnum<["static_preview", "vite_app"]>;
|
|
730
1007
|
export declare const executionConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
731
|
-
/**
|
|
732
|
-
* One file to copy from an absolute disk path into the generated project.
|
|
733
|
-
* `destination` is project-relative (e.g. `public/assets/avatar.glb`);
|
|
734
|
-
* `referenceAs` is the served path the generated code should use (e.g.
|
|
735
|
-
* `/assets/avatar.glb`). The agent decides asset routing at planning time
|
|
736
|
-
* so MCP can materialize the same layout for every variant.
|
|
737
|
-
*/
|
|
738
1008
|
export declare const assetPlanEntrySchema: z.ZodObject<{
|
|
739
1009
|
source: z.ZodString;
|
|
740
1010
|
destination: z.ZodString;
|
|
@@ -831,6 +1101,37 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
831
1101
|
}>, z.ZodObject<{
|
|
832
1102
|
id: z.ZodString;
|
|
833
1103
|
transport: z.ZodLiteral<"file">;
|
|
1104
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1105
|
+
id: z.ZodString;
|
|
1106
|
+
title: z.ZodString;
|
|
1107
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1108
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1109
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1110
|
+
hash: z.ZodString;
|
|
1111
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
1112
|
+
}, "strip", z.ZodTypeAny, {
|
|
1113
|
+
hash: string;
|
|
1114
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1115
|
+
}, {
|
|
1116
|
+
hash: string;
|
|
1117
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1118
|
+
}>>>;
|
|
1119
|
+
}, "strip", z.ZodTypeAny, {
|
|
1120
|
+
id: string;
|
|
1121
|
+
url: string;
|
|
1122
|
+
title: string;
|
|
1123
|
+
image?: {
|
|
1124
|
+
hash: string;
|
|
1125
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1126
|
+
} | undefined;
|
|
1127
|
+
reason?: string | undefined;
|
|
1128
|
+
}, {
|
|
1129
|
+
id: string;
|
|
1130
|
+
url: string;
|
|
1131
|
+
title: string;
|
|
1132
|
+
image?: unknown;
|
|
1133
|
+
reason?: string | undefined;
|
|
1134
|
+
}>, "many">>;
|
|
834
1135
|
path: z.ZodString;
|
|
835
1136
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
836
1137
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -840,17 +1141,34 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
840
1141
|
id: string;
|
|
841
1142
|
path: string;
|
|
842
1143
|
transport: "file";
|
|
1144
|
+
mimeType?: string | undefined;
|
|
843
1145
|
label?: string | undefined;
|
|
844
1146
|
userIntent?: string | undefined;
|
|
845
|
-
|
|
1147
|
+
references?: {
|
|
1148
|
+
id: string;
|
|
1149
|
+
url: string;
|
|
1150
|
+
title: string;
|
|
1151
|
+
image?: {
|
|
1152
|
+
hash: string;
|
|
1153
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1154
|
+
} | undefined;
|
|
1155
|
+
reason?: string | undefined;
|
|
1156
|
+
}[] | undefined;
|
|
846
1157
|
originalFilename?: string | undefined;
|
|
847
1158
|
}, {
|
|
848
1159
|
id: string;
|
|
849
1160
|
path: string;
|
|
850
1161
|
transport: "file";
|
|
1162
|
+
mimeType?: string | undefined;
|
|
851
1163
|
label?: string | undefined;
|
|
852
1164
|
userIntent?: string | undefined;
|
|
853
|
-
|
|
1165
|
+
references?: {
|
|
1166
|
+
id: string;
|
|
1167
|
+
url: string;
|
|
1168
|
+
title: string;
|
|
1169
|
+
image?: unknown;
|
|
1170
|
+
reason?: string | undefined;
|
|
1171
|
+
}[] | undefined;
|
|
854
1172
|
originalFilename?: string | undefined;
|
|
855
1173
|
}>, z.ZodObject<{
|
|
856
1174
|
id: z.ZodString;
|
|
@@ -873,6 +1191,37 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
873
1191
|
}>, z.ZodObject<{
|
|
874
1192
|
id: z.ZodString;
|
|
875
1193
|
transport: z.ZodLiteral<"text">;
|
|
1194
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1195
|
+
id: z.ZodString;
|
|
1196
|
+
title: z.ZodString;
|
|
1197
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1198
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1199
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1200
|
+
hash: z.ZodString;
|
|
1201
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
1202
|
+
}, "strip", z.ZodTypeAny, {
|
|
1203
|
+
hash: string;
|
|
1204
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1205
|
+
}, {
|
|
1206
|
+
hash: string;
|
|
1207
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1208
|
+
}>>>;
|
|
1209
|
+
}, "strip", z.ZodTypeAny, {
|
|
1210
|
+
id: string;
|
|
1211
|
+
url: string;
|
|
1212
|
+
title: string;
|
|
1213
|
+
image?: {
|
|
1214
|
+
hash: string;
|
|
1215
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1216
|
+
} | undefined;
|
|
1217
|
+
reason?: string | undefined;
|
|
1218
|
+
}, {
|
|
1219
|
+
id: string;
|
|
1220
|
+
url: string;
|
|
1221
|
+
title: string;
|
|
1222
|
+
image?: unknown;
|
|
1223
|
+
reason?: string | undefined;
|
|
1224
|
+
}>, "many">>;
|
|
876
1225
|
path: z.ZodString;
|
|
877
1226
|
label: z.ZodOptional<z.ZodString>;
|
|
878
1227
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -882,12 +1231,29 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
882
1231
|
transport: "text";
|
|
883
1232
|
label?: string | undefined;
|
|
884
1233
|
userIntent?: string | undefined;
|
|
1234
|
+
references?: {
|
|
1235
|
+
id: string;
|
|
1236
|
+
url: string;
|
|
1237
|
+
title: string;
|
|
1238
|
+
image?: {
|
|
1239
|
+
hash: string;
|
|
1240
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1241
|
+
} | undefined;
|
|
1242
|
+
reason?: string | undefined;
|
|
1243
|
+
}[] | undefined;
|
|
885
1244
|
}, {
|
|
886
1245
|
id: string;
|
|
887
1246
|
path: string;
|
|
888
1247
|
transport: "text";
|
|
889
1248
|
label?: string | undefined;
|
|
890
1249
|
userIntent?: string | undefined;
|
|
1250
|
+
references?: {
|
|
1251
|
+
id: string;
|
|
1252
|
+
url: string;
|
|
1253
|
+
title: string;
|
|
1254
|
+
image?: unknown;
|
|
1255
|
+
reason?: string | undefined;
|
|
1256
|
+
}[] | undefined;
|
|
891
1257
|
}>]>, "many">;
|
|
892
1258
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
893
1259
|
id: z.ZodString;
|
|
@@ -919,13 +1285,6 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
919
1285
|
kind: z.ZodLiteral<"design_system">;
|
|
920
1286
|
data: z.ZodObject<{
|
|
921
1287
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
922
|
-
/**
|
|
923
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
924
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
925
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
926
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
927
|
-
* extracted-vs-guessed values.
|
|
928
|
-
*/
|
|
929
1288
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
930
1289
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
931
1290
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1079,16 +1438,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1079
1438
|
originalFilename: string;
|
|
1080
1439
|
sizeBytes: number;
|
|
1081
1440
|
sha256: string;
|
|
1082
|
-
label?: string | undefined;
|
|
1083
1441
|
mimeType?: string | undefined;
|
|
1442
|
+
label?: string | undefined;
|
|
1084
1443
|
}, {
|
|
1085
1444
|
id: string;
|
|
1086
1445
|
path: string;
|
|
1087
1446
|
originalFilename: string;
|
|
1088
1447
|
sizeBytes: number;
|
|
1089
1448
|
sha256: string;
|
|
1090
|
-
label?: string | undefined;
|
|
1091
1449
|
mimeType?: string | undefined;
|
|
1450
|
+
label?: string | undefined;
|
|
1092
1451
|
}>, "many">>;
|
|
1093
1452
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1094
1453
|
kind: z.ZodLiteral<"global">;
|
|
@@ -1184,9 +1543,19 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1184
1543
|
id: string;
|
|
1185
1544
|
path: string;
|
|
1186
1545
|
transport: "file";
|
|
1546
|
+
mimeType?: string | undefined;
|
|
1187
1547
|
label?: string | undefined;
|
|
1188
1548
|
userIntent?: string | undefined;
|
|
1189
|
-
|
|
1549
|
+
references?: {
|
|
1550
|
+
id: string;
|
|
1551
|
+
url: string;
|
|
1552
|
+
title: string;
|
|
1553
|
+
image?: {
|
|
1554
|
+
hash: string;
|
|
1555
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1556
|
+
} | undefined;
|
|
1557
|
+
reason?: string | undefined;
|
|
1558
|
+
}[] | undefined;
|
|
1190
1559
|
originalFilename?: string | undefined;
|
|
1191
1560
|
} | {
|
|
1192
1561
|
id: string;
|
|
@@ -1200,6 +1569,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1200
1569
|
transport: "text";
|
|
1201
1570
|
label?: string | undefined;
|
|
1202
1571
|
userIntent?: string | undefined;
|
|
1572
|
+
references?: {
|
|
1573
|
+
id: string;
|
|
1574
|
+
url: string;
|
|
1575
|
+
title: string;
|
|
1576
|
+
image?: {
|
|
1577
|
+
hash: string;
|
|
1578
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
reason?: string | undefined;
|
|
1581
|
+
}[] | undefined;
|
|
1203
1582
|
})[];
|
|
1204
1583
|
rivetActions: {
|
|
1205
1584
|
id: string;
|
|
@@ -1250,8 +1629,8 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1250
1629
|
originalFilename: string;
|
|
1251
1630
|
sizeBytes: number;
|
|
1252
1631
|
sha256: string;
|
|
1253
|
-
label?: string | undefined;
|
|
1254
1632
|
mimeType?: string | undefined;
|
|
1633
|
+
label?: string | undefined;
|
|
1255
1634
|
}[] | undefined;
|
|
1256
1635
|
bindings?: ({
|
|
1257
1636
|
kind: "global";
|
|
@@ -1295,9 +1674,16 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1295
1674
|
id: string;
|
|
1296
1675
|
path: string;
|
|
1297
1676
|
transport: "file";
|
|
1677
|
+
mimeType?: string | undefined;
|
|
1298
1678
|
label?: string | undefined;
|
|
1299
1679
|
userIntent?: string | undefined;
|
|
1300
|
-
|
|
1680
|
+
references?: {
|
|
1681
|
+
id: string;
|
|
1682
|
+
url: string;
|
|
1683
|
+
title: string;
|
|
1684
|
+
image?: unknown;
|
|
1685
|
+
reason?: string | undefined;
|
|
1686
|
+
}[] | undefined;
|
|
1301
1687
|
originalFilename?: string | undefined;
|
|
1302
1688
|
} | {
|
|
1303
1689
|
id: string;
|
|
@@ -1311,6 +1697,13 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1311
1697
|
transport: "text";
|
|
1312
1698
|
label?: string | undefined;
|
|
1313
1699
|
userIntent?: string | undefined;
|
|
1700
|
+
references?: {
|
|
1701
|
+
id: string;
|
|
1702
|
+
url: string;
|
|
1703
|
+
title: string;
|
|
1704
|
+
image?: unknown;
|
|
1705
|
+
reason?: string | undefined;
|
|
1706
|
+
}[] | undefined;
|
|
1314
1707
|
})[];
|
|
1315
1708
|
rivetActions: {
|
|
1316
1709
|
id: string;
|
|
@@ -1361,8 +1754,8 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1361
1754
|
originalFilename: string;
|
|
1362
1755
|
sizeBytes: number;
|
|
1363
1756
|
sha256: string;
|
|
1364
|
-
label?: string | undefined;
|
|
1365
1757
|
mimeType?: string | undefined;
|
|
1758
|
+
label?: string | undefined;
|
|
1366
1759
|
}[] | undefined;
|
|
1367
1760
|
bindings?: ({
|
|
1368
1761
|
kind: "global";
|
|
@@ -1391,12 +1784,7 @@ export declare const variantContextBundleSchema: z.ZodObject<{
|
|
|
1391
1784
|
}>;
|
|
1392
1785
|
export declare const projectContextExisting: z.ZodObject<{
|
|
1393
1786
|
kind: z.ZodLiteral<"existing">;
|
|
1394
|
-
/** Absolute project path requested for this existing-project run. Present
|
|
1395
|
-
* when callers target a nested project inside a larger git worktree. */
|
|
1396
1787
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
1397
|
-
/** Optional design context supplied by agents/benchmarks for existing
|
|
1398
|
-
* project runs with visual references. Surfaced as DesignMD artifacts and
|
|
1399
|
-
* available to QA gates, but does not trigger a source-plan stage. */
|
|
1400
1788
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1401
1789
|
kind: z.ZodLiteral<"slug">;
|
|
1402
1790
|
slug: z.ZodString;
|
|
@@ -1456,6 +1844,37 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1456
1844
|
}>, z.ZodObject<{
|
|
1457
1845
|
id: z.ZodString;
|
|
1458
1846
|
transport: z.ZodLiteral<"file">;
|
|
1847
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1848
|
+
id: z.ZodString;
|
|
1849
|
+
title: z.ZodString;
|
|
1850
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1851
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1852
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1853
|
+
hash: z.ZodString;
|
|
1854
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
1855
|
+
}, "strip", z.ZodTypeAny, {
|
|
1856
|
+
hash: string;
|
|
1857
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1858
|
+
}, {
|
|
1859
|
+
hash: string;
|
|
1860
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1861
|
+
}>>>;
|
|
1862
|
+
}, "strip", z.ZodTypeAny, {
|
|
1863
|
+
id: string;
|
|
1864
|
+
url: string;
|
|
1865
|
+
title: string;
|
|
1866
|
+
image?: {
|
|
1867
|
+
hash: string;
|
|
1868
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
reason?: string | undefined;
|
|
1871
|
+
}, {
|
|
1872
|
+
id: string;
|
|
1873
|
+
url: string;
|
|
1874
|
+
title: string;
|
|
1875
|
+
image?: unknown;
|
|
1876
|
+
reason?: string | undefined;
|
|
1877
|
+
}>, "many">>;
|
|
1459
1878
|
path: z.ZodString;
|
|
1460
1879
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
1461
1880
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -1465,17 +1884,34 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1465
1884
|
id: string;
|
|
1466
1885
|
path: string;
|
|
1467
1886
|
transport: "file";
|
|
1887
|
+
mimeType?: string | undefined;
|
|
1468
1888
|
label?: string | undefined;
|
|
1469
1889
|
userIntent?: string | undefined;
|
|
1470
|
-
|
|
1890
|
+
references?: {
|
|
1891
|
+
id: string;
|
|
1892
|
+
url: string;
|
|
1893
|
+
title: string;
|
|
1894
|
+
image?: {
|
|
1895
|
+
hash: string;
|
|
1896
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1897
|
+
} | undefined;
|
|
1898
|
+
reason?: string | undefined;
|
|
1899
|
+
}[] | undefined;
|
|
1471
1900
|
originalFilename?: string | undefined;
|
|
1472
1901
|
}, {
|
|
1473
1902
|
id: string;
|
|
1474
1903
|
path: string;
|
|
1475
1904
|
transport: "file";
|
|
1905
|
+
mimeType?: string | undefined;
|
|
1476
1906
|
label?: string | undefined;
|
|
1477
1907
|
userIntent?: string | undefined;
|
|
1478
|
-
|
|
1908
|
+
references?: {
|
|
1909
|
+
id: string;
|
|
1910
|
+
url: string;
|
|
1911
|
+
title: string;
|
|
1912
|
+
image?: unknown;
|
|
1913
|
+
reason?: string | undefined;
|
|
1914
|
+
}[] | undefined;
|
|
1479
1915
|
originalFilename?: string | undefined;
|
|
1480
1916
|
}>, z.ZodObject<{
|
|
1481
1917
|
id: z.ZodString;
|
|
@@ -1498,6 +1934,37 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1498
1934
|
}>, z.ZodObject<{
|
|
1499
1935
|
id: z.ZodString;
|
|
1500
1936
|
transport: z.ZodLiteral<"text">;
|
|
1937
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1938
|
+
id: z.ZodString;
|
|
1939
|
+
title: z.ZodString;
|
|
1940
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
1941
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1942
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
1943
|
+
hash: z.ZodString;
|
|
1944
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
1945
|
+
}, "strip", z.ZodTypeAny, {
|
|
1946
|
+
hash: string;
|
|
1947
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1948
|
+
}, {
|
|
1949
|
+
hash: string;
|
|
1950
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1951
|
+
}>>>;
|
|
1952
|
+
}, "strip", z.ZodTypeAny, {
|
|
1953
|
+
id: string;
|
|
1954
|
+
url: string;
|
|
1955
|
+
title: string;
|
|
1956
|
+
image?: {
|
|
1957
|
+
hash: string;
|
|
1958
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1959
|
+
} | undefined;
|
|
1960
|
+
reason?: string | undefined;
|
|
1961
|
+
}, {
|
|
1962
|
+
id: string;
|
|
1963
|
+
url: string;
|
|
1964
|
+
title: string;
|
|
1965
|
+
image?: unknown;
|
|
1966
|
+
reason?: string | undefined;
|
|
1967
|
+
}>, "many">>;
|
|
1501
1968
|
path: z.ZodString;
|
|
1502
1969
|
label: z.ZodOptional<z.ZodString>;
|
|
1503
1970
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -1507,12 +1974,29 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1507
1974
|
transport: "text";
|
|
1508
1975
|
label?: string | undefined;
|
|
1509
1976
|
userIntent?: string | undefined;
|
|
1977
|
+
references?: {
|
|
1978
|
+
id: string;
|
|
1979
|
+
url: string;
|
|
1980
|
+
title: string;
|
|
1981
|
+
image?: {
|
|
1982
|
+
hash: string;
|
|
1983
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
1984
|
+
} | undefined;
|
|
1985
|
+
reason?: string | undefined;
|
|
1986
|
+
}[] | undefined;
|
|
1510
1987
|
}, {
|
|
1511
1988
|
id: string;
|
|
1512
1989
|
path: string;
|
|
1513
1990
|
transport: "text";
|
|
1514
1991
|
label?: string | undefined;
|
|
1515
1992
|
userIntent?: string | undefined;
|
|
1993
|
+
references?: {
|
|
1994
|
+
id: string;
|
|
1995
|
+
url: string;
|
|
1996
|
+
title: string;
|
|
1997
|
+
image?: unknown;
|
|
1998
|
+
reason?: string | undefined;
|
|
1999
|
+
}[] | undefined;
|
|
1516
2000
|
}>]>, "many">;
|
|
1517
2001
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
1518
2002
|
id: z.ZodString;
|
|
@@ -1544,13 +2028,6 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1544
2028
|
kind: z.ZodLiteral<"design_system">;
|
|
1545
2029
|
data: z.ZodObject<{
|
|
1546
2030
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
1547
|
-
/**
|
|
1548
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
1549
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
1550
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
1551
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
1552
|
-
* extracted-vs-guessed values.
|
|
1553
|
-
*/
|
|
1554
2031
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
1555
2032
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
1556
2033
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1704,16 +2181,16 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1704
2181
|
originalFilename: string;
|
|
1705
2182
|
sizeBytes: number;
|
|
1706
2183
|
sha256: string;
|
|
1707
|
-
label?: string | undefined;
|
|
1708
2184
|
mimeType?: string | undefined;
|
|
2185
|
+
label?: string | undefined;
|
|
1709
2186
|
}, {
|
|
1710
2187
|
id: string;
|
|
1711
2188
|
path: string;
|
|
1712
2189
|
originalFilename: string;
|
|
1713
2190
|
sizeBytes: number;
|
|
1714
2191
|
sha256: string;
|
|
1715
|
-
label?: string | undefined;
|
|
1716
2192
|
mimeType?: string | undefined;
|
|
2193
|
+
label?: string | undefined;
|
|
1717
2194
|
}>, "many">>;
|
|
1718
2195
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1719
2196
|
kind: z.ZodLiteral<"global">;
|
|
@@ -1809,9 +2286,19 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1809
2286
|
id: string;
|
|
1810
2287
|
path: string;
|
|
1811
2288
|
transport: "file";
|
|
2289
|
+
mimeType?: string | undefined;
|
|
1812
2290
|
label?: string | undefined;
|
|
1813
2291
|
userIntent?: string | undefined;
|
|
1814
|
-
|
|
2292
|
+
references?: {
|
|
2293
|
+
id: string;
|
|
2294
|
+
url: string;
|
|
2295
|
+
title: string;
|
|
2296
|
+
image?: {
|
|
2297
|
+
hash: string;
|
|
2298
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2299
|
+
} | undefined;
|
|
2300
|
+
reason?: string | undefined;
|
|
2301
|
+
}[] | undefined;
|
|
1815
2302
|
originalFilename?: string | undefined;
|
|
1816
2303
|
} | {
|
|
1817
2304
|
id: string;
|
|
@@ -1825,6 +2312,16 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1825
2312
|
transport: "text";
|
|
1826
2313
|
label?: string | undefined;
|
|
1827
2314
|
userIntent?: string | undefined;
|
|
2315
|
+
references?: {
|
|
2316
|
+
id: string;
|
|
2317
|
+
url: string;
|
|
2318
|
+
title: string;
|
|
2319
|
+
image?: {
|
|
2320
|
+
hash: string;
|
|
2321
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2322
|
+
} | undefined;
|
|
2323
|
+
reason?: string | undefined;
|
|
2324
|
+
}[] | undefined;
|
|
1828
2325
|
})[];
|
|
1829
2326
|
rivetActions: {
|
|
1830
2327
|
id: string;
|
|
@@ -1875,8 +2372,8 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1875
2372
|
originalFilename: string;
|
|
1876
2373
|
sizeBytes: number;
|
|
1877
2374
|
sha256: string;
|
|
1878
|
-
label?: string | undefined;
|
|
1879
2375
|
mimeType?: string | undefined;
|
|
2376
|
+
label?: string | undefined;
|
|
1880
2377
|
}[] | undefined;
|
|
1881
2378
|
bindings?: ({
|
|
1882
2379
|
kind: "global";
|
|
@@ -1920,9 +2417,16 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1920
2417
|
id: string;
|
|
1921
2418
|
path: string;
|
|
1922
2419
|
transport: "file";
|
|
2420
|
+
mimeType?: string | undefined;
|
|
1923
2421
|
label?: string | undefined;
|
|
1924
2422
|
userIntent?: string | undefined;
|
|
1925
|
-
|
|
2423
|
+
references?: {
|
|
2424
|
+
id: string;
|
|
2425
|
+
url: string;
|
|
2426
|
+
title: string;
|
|
2427
|
+
image?: unknown;
|
|
2428
|
+
reason?: string | undefined;
|
|
2429
|
+
}[] | undefined;
|
|
1926
2430
|
originalFilename?: string | undefined;
|
|
1927
2431
|
} | {
|
|
1928
2432
|
id: string;
|
|
@@ -1936,6 +2440,13 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1936
2440
|
transport: "text";
|
|
1937
2441
|
label?: string | undefined;
|
|
1938
2442
|
userIntent?: string | undefined;
|
|
2443
|
+
references?: {
|
|
2444
|
+
id: string;
|
|
2445
|
+
url: string;
|
|
2446
|
+
title: string;
|
|
2447
|
+
image?: unknown;
|
|
2448
|
+
reason?: string | undefined;
|
|
2449
|
+
}[] | undefined;
|
|
1939
2450
|
})[];
|
|
1940
2451
|
rivetActions: {
|
|
1941
2452
|
id: string;
|
|
@@ -1986,8 +2497,8 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
1986
2497
|
originalFilename: string;
|
|
1987
2498
|
sizeBytes: number;
|
|
1988
2499
|
sha256: string;
|
|
1989
|
-
label?: string | undefined;
|
|
1990
2500
|
mimeType?: string | undefined;
|
|
2501
|
+
label?: string | undefined;
|
|
1991
2502
|
}[] | undefined;
|
|
1992
2503
|
bindings?: ({
|
|
1993
2504
|
kind: "global";
|
|
@@ -2043,9 +2554,19 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2043
2554
|
id: string;
|
|
2044
2555
|
path: string;
|
|
2045
2556
|
transport: "file";
|
|
2557
|
+
mimeType?: string | undefined;
|
|
2046
2558
|
label?: string | undefined;
|
|
2047
2559
|
userIntent?: string | undefined;
|
|
2048
|
-
|
|
2560
|
+
references?: {
|
|
2561
|
+
id: string;
|
|
2562
|
+
url: string;
|
|
2563
|
+
title: string;
|
|
2564
|
+
image?: {
|
|
2565
|
+
hash: string;
|
|
2566
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2567
|
+
} | undefined;
|
|
2568
|
+
reason?: string | undefined;
|
|
2569
|
+
}[] | undefined;
|
|
2049
2570
|
originalFilename?: string | undefined;
|
|
2050
2571
|
} | {
|
|
2051
2572
|
id: string;
|
|
@@ -2059,6 +2580,16 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2059
2580
|
transport: "text";
|
|
2060
2581
|
label?: string | undefined;
|
|
2061
2582
|
userIntent?: string | undefined;
|
|
2583
|
+
references?: {
|
|
2584
|
+
id: string;
|
|
2585
|
+
url: string;
|
|
2586
|
+
title: string;
|
|
2587
|
+
image?: {
|
|
2588
|
+
hash: string;
|
|
2589
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2590
|
+
} | undefined;
|
|
2591
|
+
reason?: string | undefined;
|
|
2592
|
+
}[] | undefined;
|
|
2062
2593
|
})[];
|
|
2063
2594
|
rivetActions: {
|
|
2064
2595
|
id: string;
|
|
@@ -2109,8 +2640,8 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2109
2640
|
originalFilename: string;
|
|
2110
2641
|
sizeBytes: number;
|
|
2111
2642
|
sha256: string;
|
|
2112
|
-
label?: string | undefined;
|
|
2113
2643
|
mimeType?: string | undefined;
|
|
2644
|
+
label?: string | undefined;
|
|
2114
2645
|
}[] | undefined;
|
|
2115
2646
|
bindings?: ({
|
|
2116
2647
|
kind: "global";
|
|
@@ -2166,9 +2697,16 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2166
2697
|
id: string;
|
|
2167
2698
|
path: string;
|
|
2168
2699
|
transport: "file";
|
|
2700
|
+
mimeType?: string | undefined;
|
|
2169
2701
|
label?: string | undefined;
|
|
2170
2702
|
userIntent?: string | undefined;
|
|
2171
|
-
|
|
2703
|
+
references?: {
|
|
2704
|
+
id: string;
|
|
2705
|
+
url: string;
|
|
2706
|
+
title: string;
|
|
2707
|
+
image?: unknown;
|
|
2708
|
+
reason?: string | undefined;
|
|
2709
|
+
}[] | undefined;
|
|
2172
2710
|
originalFilename?: string | undefined;
|
|
2173
2711
|
} | {
|
|
2174
2712
|
id: string;
|
|
@@ -2182,6 +2720,13 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2182
2720
|
transport: "text";
|
|
2183
2721
|
label?: string | undefined;
|
|
2184
2722
|
userIntent?: string | undefined;
|
|
2723
|
+
references?: {
|
|
2724
|
+
id: string;
|
|
2725
|
+
url: string;
|
|
2726
|
+
title: string;
|
|
2727
|
+
image?: unknown;
|
|
2728
|
+
reason?: string | undefined;
|
|
2729
|
+
}[] | undefined;
|
|
2185
2730
|
})[];
|
|
2186
2731
|
rivetActions: {
|
|
2187
2732
|
id: string;
|
|
@@ -2232,8 +2777,8 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2232
2777
|
originalFilename: string;
|
|
2233
2778
|
sizeBytes: number;
|
|
2234
2779
|
sha256: string;
|
|
2235
|
-
label?: string | undefined;
|
|
2236
2780
|
mimeType?: string | undefined;
|
|
2781
|
+
label?: string | undefined;
|
|
2237
2782
|
}[] | undefined;
|
|
2238
2783
|
bindings?: ({
|
|
2239
2784
|
kind: "global";
|
|
@@ -2263,22 +2808,10 @@ export declare const projectContextExisting: z.ZodObject<{
|
|
|
2263
2808
|
}>;
|
|
2264
2809
|
export declare const projectContextFresh: z.ZodObject<{
|
|
2265
2810
|
kind: z.ZodLiteral<"fresh">;
|
|
2266
|
-
/** Where the generated subproject's files live (e.g.
|
|
2267
|
-
* `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
|
|
2268
|
-
* target — the agent reads/writes index.html, src/, etc. here. */
|
|
2269
2811
|
workspacePath: z.ZodString;
|
|
2270
|
-
/** The user's working directory that owns *all* Rivet artifacts for the
|
|
2271
|
-
* session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
|
|
2272
|
-
* generated subprojects, variant history, and create-project manifests.
|
|
2273
|
-
* Distinct from `path.dirname(workspacePath)` because subprojects nest
|
|
2274
|
-
* inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
|
|
2275
|
-
* not the workspace itself. */
|
|
2276
2812
|
workspaceRoot: z.ZodString;
|
|
2277
2813
|
framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
|
|
2278
2814
|
assetSourceRoot: z.ZodOptional<z.ZodString>;
|
|
2279
|
-
/** Per-variant-slot design context. Slug entries resolve bundled catalog
|
|
2280
|
-
* markdown; markdown entries are written directly as `DESIGN.md`. The
|
|
2281
|
-
* order matches code-gen variant slot order. */
|
|
2282
2815
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2283
2816
|
kind: z.ZodLiteral<"slug">;
|
|
2284
2817
|
slug: z.ZodString;
|
|
@@ -2338,6 +2871,37 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2338
2871
|
}>, z.ZodObject<{
|
|
2339
2872
|
id: z.ZodString;
|
|
2340
2873
|
transport: z.ZodLiteral<"file">;
|
|
2874
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2875
|
+
id: z.ZodString;
|
|
2876
|
+
title: z.ZodString;
|
|
2877
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
2878
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2879
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
2880
|
+
hash: z.ZodString;
|
|
2881
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
2882
|
+
}, "strip", z.ZodTypeAny, {
|
|
2883
|
+
hash: string;
|
|
2884
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2885
|
+
}, {
|
|
2886
|
+
hash: string;
|
|
2887
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2888
|
+
}>>>;
|
|
2889
|
+
}, "strip", z.ZodTypeAny, {
|
|
2890
|
+
id: string;
|
|
2891
|
+
url: string;
|
|
2892
|
+
title: string;
|
|
2893
|
+
image?: {
|
|
2894
|
+
hash: string;
|
|
2895
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2896
|
+
} | undefined;
|
|
2897
|
+
reason?: string | undefined;
|
|
2898
|
+
}, {
|
|
2899
|
+
id: string;
|
|
2900
|
+
url: string;
|
|
2901
|
+
title: string;
|
|
2902
|
+
image?: unknown;
|
|
2903
|
+
reason?: string | undefined;
|
|
2904
|
+
}>, "many">>;
|
|
2341
2905
|
path: z.ZodString;
|
|
2342
2906
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
2343
2907
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -2347,17 +2911,34 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2347
2911
|
id: string;
|
|
2348
2912
|
path: string;
|
|
2349
2913
|
transport: "file";
|
|
2914
|
+
mimeType?: string | undefined;
|
|
2350
2915
|
label?: string | undefined;
|
|
2351
2916
|
userIntent?: string | undefined;
|
|
2352
|
-
|
|
2917
|
+
references?: {
|
|
2918
|
+
id: string;
|
|
2919
|
+
url: string;
|
|
2920
|
+
title: string;
|
|
2921
|
+
image?: {
|
|
2922
|
+
hash: string;
|
|
2923
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2924
|
+
} | undefined;
|
|
2925
|
+
reason?: string | undefined;
|
|
2926
|
+
}[] | undefined;
|
|
2353
2927
|
originalFilename?: string | undefined;
|
|
2354
2928
|
}, {
|
|
2355
2929
|
id: string;
|
|
2356
2930
|
path: string;
|
|
2357
2931
|
transport: "file";
|
|
2932
|
+
mimeType?: string | undefined;
|
|
2358
2933
|
label?: string | undefined;
|
|
2359
2934
|
userIntent?: string | undefined;
|
|
2360
|
-
|
|
2935
|
+
references?: {
|
|
2936
|
+
id: string;
|
|
2937
|
+
url: string;
|
|
2938
|
+
title: string;
|
|
2939
|
+
image?: unknown;
|
|
2940
|
+
reason?: string | undefined;
|
|
2941
|
+
}[] | undefined;
|
|
2361
2942
|
originalFilename?: string | undefined;
|
|
2362
2943
|
}>, z.ZodObject<{
|
|
2363
2944
|
id: z.ZodString;
|
|
@@ -2380,6 +2961,37 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2380
2961
|
}>, z.ZodObject<{
|
|
2381
2962
|
id: z.ZodString;
|
|
2382
2963
|
transport: z.ZodLiteral<"text">;
|
|
2964
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2965
|
+
id: z.ZodString;
|
|
2966
|
+
title: z.ZodString;
|
|
2967
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
2968
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2969
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
2970
|
+
hash: z.ZodString;
|
|
2971
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
2972
|
+
}, "strip", z.ZodTypeAny, {
|
|
2973
|
+
hash: string;
|
|
2974
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2975
|
+
}, {
|
|
2976
|
+
hash: string;
|
|
2977
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2978
|
+
}>>>;
|
|
2979
|
+
}, "strip", z.ZodTypeAny, {
|
|
2980
|
+
id: string;
|
|
2981
|
+
url: string;
|
|
2982
|
+
title: string;
|
|
2983
|
+
image?: {
|
|
2984
|
+
hash: string;
|
|
2985
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
2986
|
+
} | undefined;
|
|
2987
|
+
reason?: string | undefined;
|
|
2988
|
+
}, {
|
|
2989
|
+
id: string;
|
|
2990
|
+
url: string;
|
|
2991
|
+
title: string;
|
|
2992
|
+
image?: unknown;
|
|
2993
|
+
reason?: string | undefined;
|
|
2994
|
+
}>, "many">>;
|
|
2383
2995
|
path: z.ZodString;
|
|
2384
2996
|
label: z.ZodOptional<z.ZodString>;
|
|
2385
2997
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -2389,12 +3001,29 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2389
3001
|
transport: "text";
|
|
2390
3002
|
label?: string | undefined;
|
|
2391
3003
|
userIntent?: string | undefined;
|
|
3004
|
+
references?: {
|
|
3005
|
+
id: string;
|
|
3006
|
+
url: string;
|
|
3007
|
+
title: string;
|
|
3008
|
+
image?: {
|
|
3009
|
+
hash: string;
|
|
3010
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3011
|
+
} | undefined;
|
|
3012
|
+
reason?: string | undefined;
|
|
3013
|
+
}[] | undefined;
|
|
2392
3014
|
}, {
|
|
2393
3015
|
id: string;
|
|
2394
3016
|
path: string;
|
|
2395
3017
|
transport: "text";
|
|
2396
3018
|
label?: string | undefined;
|
|
2397
3019
|
userIntent?: string | undefined;
|
|
3020
|
+
references?: {
|
|
3021
|
+
id: string;
|
|
3022
|
+
url: string;
|
|
3023
|
+
title: string;
|
|
3024
|
+
image?: unknown;
|
|
3025
|
+
reason?: string | undefined;
|
|
3026
|
+
}[] | undefined;
|
|
2398
3027
|
}>]>, "many">;
|
|
2399
3028
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
2400
3029
|
id: z.ZodString;
|
|
@@ -2426,13 +3055,6 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2426
3055
|
kind: z.ZodLiteral<"design_system">;
|
|
2427
3056
|
data: z.ZodObject<{
|
|
2428
3057
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
2429
|
-
/**
|
|
2430
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
2431
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
2432
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
2433
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
2434
|
-
* extracted-vs-guessed values.
|
|
2435
|
-
*/
|
|
2436
3058
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
2437
3059
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
2438
3060
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -2586,16 +3208,16 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2586
3208
|
originalFilename: string;
|
|
2587
3209
|
sizeBytes: number;
|
|
2588
3210
|
sha256: string;
|
|
2589
|
-
label?: string | undefined;
|
|
2590
3211
|
mimeType?: string | undefined;
|
|
3212
|
+
label?: string | undefined;
|
|
2591
3213
|
}, {
|
|
2592
3214
|
id: string;
|
|
2593
3215
|
path: string;
|
|
2594
3216
|
originalFilename: string;
|
|
2595
3217
|
sizeBytes: number;
|
|
2596
3218
|
sha256: string;
|
|
2597
|
-
label?: string | undefined;
|
|
2598
3219
|
mimeType?: string | undefined;
|
|
3220
|
+
label?: string | undefined;
|
|
2599
3221
|
}>, "many">>;
|
|
2600
3222
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2601
3223
|
kind: z.ZodLiteral<"global">;
|
|
@@ -2691,9 +3313,19 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2691
3313
|
id: string;
|
|
2692
3314
|
path: string;
|
|
2693
3315
|
transport: "file";
|
|
3316
|
+
mimeType?: string | undefined;
|
|
2694
3317
|
label?: string | undefined;
|
|
2695
3318
|
userIntent?: string | undefined;
|
|
2696
|
-
|
|
3319
|
+
references?: {
|
|
3320
|
+
id: string;
|
|
3321
|
+
url: string;
|
|
3322
|
+
title: string;
|
|
3323
|
+
image?: {
|
|
3324
|
+
hash: string;
|
|
3325
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3326
|
+
} | undefined;
|
|
3327
|
+
reason?: string | undefined;
|
|
3328
|
+
}[] | undefined;
|
|
2697
3329
|
originalFilename?: string | undefined;
|
|
2698
3330
|
} | {
|
|
2699
3331
|
id: string;
|
|
@@ -2707,6 +3339,16 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2707
3339
|
transport: "text";
|
|
2708
3340
|
label?: string | undefined;
|
|
2709
3341
|
userIntent?: string | undefined;
|
|
3342
|
+
references?: {
|
|
3343
|
+
id: string;
|
|
3344
|
+
url: string;
|
|
3345
|
+
title: string;
|
|
3346
|
+
image?: {
|
|
3347
|
+
hash: string;
|
|
3348
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3349
|
+
} | undefined;
|
|
3350
|
+
reason?: string | undefined;
|
|
3351
|
+
}[] | undefined;
|
|
2710
3352
|
})[];
|
|
2711
3353
|
rivetActions: {
|
|
2712
3354
|
id: string;
|
|
@@ -2757,8 +3399,8 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2757
3399
|
originalFilename: string;
|
|
2758
3400
|
sizeBytes: number;
|
|
2759
3401
|
sha256: string;
|
|
2760
|
-
label?: string | undefined;
|
|
2761
3402
|
mimeType?: string | undefined;
|
|
3403
|
+
label?: string | undefined;
|
|
2762
3404
|
}[] | undefined;
|
|
2763
3405
|
bindings?: ({
|
|
2764
3406
|
kind: "global";
|
|
@@ -2802,9 +3444,16 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2802
3444
|
id: string;
|
|
2803
3445
|
path: string;
|
|
2804
3446
|
transport: "file";
|
|
3447
|
+
mimeType?: string | undefined;
|
|
2805
3448
|
label?: string | undefined;
|
|
2806
3449
|
userIntent?: string | undefined;
|
|
2807
|
-
|
|
3450
|
+
references?: {
|
|
3451
|
+
id: string;
|
|
3452
|
+
url: string;
|
|
3453
|
+
title: string;
|
|
3454
|
+
image?: unknown;
|
|
3455
|
+
reason?: string | undefined;
|
|
3456
|
+
}[] | undefined;
|
|
2808
3457
|
originalFilename?: string | undefined;
|
|
2809
3458
|
} | {
|
|
2810
3459
|
id: string;
|
|
@@ -2818,6 +3467,13 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2818
3467
|
transport: "text";
|
|
2819
3468
|
label?: string | undefined;
|
|
2820
3469
|
userIntent?: string | undefined;
|
|
3470
|
+
references?: {
|
|
3471
|
+
id: string;
|
|
3472
|
+
url: string;
|
|
3473
|
+
title: string;
|
|
3474
|
+
image?: unknown;
|
|
3475
|
+
reason?: string | undefined;
|
|
3476
|
+
}[] | undefined;
|
|
2821
3477
|
})[];
|
|
2822
3478
|
rivetActions: {
|
|
2823
3479
|
id: string;
|
|
@@ -2868,8 +3524,8 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2868
3524
|
originalFilename: string;
|
|
2869
3525
|
sizeBytes: number;
|
|
2870
3526
|
sha256: string;
|
|
2871
|
-
label?: string | undefined;
|
|
2872
3527
|
mimeType?: string | undefined;
|
|
3528
|
+
label?: string | undefined;
|
|
2873
3529
|
}[] | undefined;
|
|
2874
3530
|
bindings?: ({
|
|
2875
3531
|
kind: "global";
|
|
@@ -2896,10 +3552,6 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2896
3552
|
userQuestion?: string | undefined;
|
|
2897
3553
|
} | undefined;
|
|
2898
3554
|
}>>;
|
|
2899
|
-
/** Agent-supplied execution plan from `report_source_plan`. Drives the
|
|
2900
|
-
* generation routing decision at approve() time: `static_preview` keeps
|
|
2901
|
-
* the lightweight HTML-only path; `vite_app` provisions a real Vite
|
|
2902
|
-
* worktree per variant and copies any large assets from `assetPlan`. */
|
|
2903
3555
|
executionPlan: z.ZodOptional<z.ZodObject<{
|
|
2904
3556
|
mode: z.ZodEnum<["static_preview", "vite_app"]>;
|
|
2905
3557
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -2984,9 +3636,19 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
2984
3636
|
id: string;
|
|
2985
3637
|
path: string;
|
|
2986
3638
|
transport: "file";
|
|
3639
|
+
mimeType?: string | undefined;
|
|
2987
3640
|
label?: string | undefined;
|
|
2988
3641
|
userIntent?: string | undefined;
|
|
2989
|
-
|
|
3642
|
+
references?: {
|
|
3643
|
+
id: string;
|
|
3644
|
+
url: string;
|
|
3645
|
+
title: string;
|
|
3646
|
+
image?: {
|
|
3647
|
+
hash: string;
|
|
3648
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3649
|
+
} | undefined;
|
|
3650
|
+
reason?: string | undefined;
|
|
3651
|
+
}[] | undefined;
|
|
2990
3652
|
originalFilename?: string | undefined;
|
|
2991
3653
|
} | {
|
|
2992
3654
|
id: string;
|
|
@@ -3000,6 +3662,16 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3000
3662
|
transport: "text";
|
|
3001
3663
|
label?: string | undefined;
|
|
3002
3664
|
userIntent?: string | undefined;
|
|
3665
|
+
references?: {
|
|
3666
|
+
id: string;
|
|
3667
|
+
url: string;
|
|
3668
|
+
title: string;
|
|
3669
|
+
image?: {
|
|
3670
|
+
hash: string;
|
|
3671
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3672
|
+
} | undefined;
|
|
3673
|
+
reason?: string | undefined;
|
|
3674
|
+
}[] | undefined;
|
|
3003
3675
|
})[];
|
|
3004
3676
|
rivetActions: {
|
|
3005
3677
|
id: string;
|
|
@@ -3050,8 +3722,8 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3050
3722
|
originalFilename: string;
|
|
3051
3723
|
sizeBytes: number;
|
|
3052
3724
|
sha256: string;
|
|
3053
|
-
label?: string | undefined;
|
|
3054
3725
|
mimeType?: string | undefined;
|
|
3726
|
+
label?: string | undefined;
|
|
3055
3727
|
}[] | undefined;
|
|
3056
3728
|
bindings?: ({
|
|
3057
3729
|
kind: "global";
|
|
@@ -3122,9 +3794,16 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3122
3794
|
id: string;
|
|
3123
3795
|
path: string;
|
|
3124
3796
|
transport: "file";
|
|
3797
|
+
mimeType?: string | undefined;
|
|
3125
3798
|
label?: string | undefined;
|
|
3126
3799
|
userIntent?: string | undefined;
|
|
3127
|
-
|
|
3800
|
+
references?: {
|
|
3801
|
+
id: string;
|
|
3802
|
+
url: string;
|
|
3803
|
+
title: string;
|
|
3804
|
+
image?: unknown;
|
|
3805
|
+
reason?: string | undefined;
|
|
3806
|
+
}[] | undefined;
|
|
3128
3807
|
originalFilename?: string | undefined;
|
|
3129
3808
|
} | {
|
|
3130
3809
|
id: string;
|
|
@@ -3138,6 +3817,13 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3138
3817
|
transport: "text";
|
|
3139
3818
|
label?: string | undefined;
|
|
3140
3819
|
userIntent?: string | undefined;
|
|
3820
|
+
references?: {
|
|
3821
|
+
id: string;
|
|
3822
|
+
url: string;
|
|
3823
|
+
title: string;
|
|
3824
|
+
image?: unknown;
|
|
3825
|
+
reason?: string | undefined;
|
|
3826
|
+
}[] | undefined;
|
|
3141
3827
|
})[];
|
|
3142
3828
|
rivetActions: {
|
|
3143
3829
|
id: string;
|
|
@@ -3188,8 +3874,8 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3188
3874
|
originalFilename: string;
|
|
3189
3875
|
sizeBytes: number;
|
|
3190
3876
|
sha256: string;
|
|
3191
|
-
label?: string | undefined;
|
|
3192
3877
|
mimeType?: string | undefined;
|
|
3878
|
+
label?: string | undefined;
|
|
3193
3879
|
}[] | undefined;
|
|
3194
3880
|
bindings?: ({
|
|
3195
3881
|
kind: "global";
|
|
@@ -3221,12 +3907,7 @@ export declare const projectContextFresh: z.ZodObject<{
|
|
|
3221
3907
|
}>;
|
|
3222
3908
|
export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3223
3909
|
kind: z.ZodLiteral<"existing">;
|
|
3224
|
-
/** Absolute project path requested for this existing-project run. Present
|
|
3225
|
-
* when callers target a nested project inside a larger git worktree. */
|
|
3226
3910
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
3227
|
-
/** Optional design context supplied by agents/benchmarks for existing
|
|
3228
|
-
* project runs with visual references. Surfaced as DesignMD artifacts and
|
|
3229
|
-
* available to QA gates, but does not trigger a source-plan stage. */
|
|
3230
3911
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3231
3912
|
kind: z.ZodLiteral<"slug">;
|
|
3232
3913
|
slug: z.ZodString;
|
|
@@ -3286,6 +3967,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3286
3967
|
}>, z.ZodObject<{
|
|
3287
3968
|
id: z.ZodString;
|
|
3288
3969
|
transport: z.ZodLiteral<"file">;
|
|
3970
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3971
|
+
id: z.ZodString;
|
|
3972
|
+
title: z.ZodString;
|
|
3973
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
3974
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3975
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
3976
|
+
hash: z.ZodString;
|
|
3977
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
3978
|
+
}, "strip", z.ZodTypeAny, {
|
|
3979
|
+
hash: string;
|
|
3980
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3981
|
+
}, {
|
|
3982
|
+
hash: string;
|
|
3983
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3984
|
+
}>>>;
|
|
3985
|
+
}, "strip", z.ZodTypeAny, {
|
|
3986
|
+
id: string;
|
|
3987
|
+
url: string;
|
|
3988
|
+
title: string;
|
|
3989
|
+
image?: {
|
|
3990
|
+
hash: string;
|
|
3991
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
3992
|
+
} | undefined;
|
|
3993
|
+
reason?: string | undefined;
|
|
3994
|
+
}, {
|
|
3995
|
+
id: string;
|
|
3996
|
+
url: string;
|
|
3997
|
+
title: string;
|
|
3998
|
+
image?: unknown;
|
|
3999
|
+
reason?: string | undefined;
|
|
4000
|
+
}>, "many">>;
|
|
3289
4001
|
path: z.ZodString;
|
|
3290
4002
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
3291
4003
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -3295,17 +4007,34 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3295
4007
|
id: string;
|
|
3296
4008
|
path: string;
|
|
3297
4009
|
transport: "file";
|
|
4010
|
+
mimeType?: string | undefined;
|
|
3298
4011
|
label?: string | undefined;
|
|
3299
4012
|
userIntent?: string | undefined;
|
|
3300
|
-
|
|
4013
|
+
references?: {
|
|
4014
|
+
id: string;
|
|
4015
|
+
url: string;
|
|
4016
|
+
title: string;
|
|
4017
|
+
image?: {
|
|
4018
|
+
hash: string;
|
|
4019
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4020
|
+
} | undefined;
|
|
4021
|
+
reason?: string | undefined;
|
|
4022
|
+
}[] | undefined;
|
|
3301
4023
|
originalFilename?: string | undefined;
|
|
3302
4024
|
}, {
|
|
3303
4025
|
id: string;
|
|
3304
4026
|
path: string;
|
|
3305
4027
|
transport: "file";
|
|
4028
|
+
mimeType?: string | undefined;
|
|
3306
4029
|
label?: string | undefined;
|
|
3307
4030
|
userIntent?: string | undefined;
|
|
3308
|
-
|
|
4031
|
+
references?: {
|
|
4032
|
+
id: string;
|
|
4033
|
+
url: string;
|
|
4034
|
+
title: string;
|
|
4035
|
+
image?: unknown;
|
|
4036
|
+
reason?: string | undefined;
|
|
4037
|
+
}[] | undefined;
|
|
3309
4038
|
originalFilename?: string | undefined;
|
|
3310
4039
|
}>, z.ZodObject<{
|
|
3311
4040
|
id: z.ZodString;
|
|
@@ -3328,6 +4057,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3328
4057
|
}>, z.ZodObject<{
|
|
3329
4058
|
id: z.ZodString;
|
|
3330
4059
|
transport: z.ZodLiteral<"text">;
|
|
4060
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4061
|
+
id: z.ZodString;
|
|
4062
|
+
title: z.ZodString;
|
|
4063
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
4064
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4065
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
4066
|
+
hash: z.ZodString;
|
|
4067
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
4068
|
+
}, "strip", z.ZodTypeAny, {
|
|
4069
|
+
hash: string;
|
|
4070
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4071
|
+
}, {
|
|
4072
|
+
hash: string;
|
|
4073
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4074
|
+
}>>>;
|
|
4075
|
+
}, "strip", z.ZodTypeAny, {
|
|
4076
|
+
id: string;
|
|
4077
|
+
url: string;
|
|
4078
|
+
title: string;
|
|
4079
|
+
image?: {
|
|
4080
|
+
hash: string;
|
|
4081
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4082
|
+
} | undefined;
|
|
4083
|
+
reason?: string | undefined;
|
|
4084
|
+
}, {
|
|
4085
|
+
id: string;
|
|
4086
|
+
url: string;
|
|
4087
|
+
title: string;
|
|
4088
|
+
image?: unknown;
|
|
4089
|
+
reason?: string | undefined;
|
|
4090
|
+
}>, "many">>;
|
|
3331
4091
|
path: z.ZodString;
|
|
3332
4092
|
label: z.ZodOptional<z.ZodString>;
|
|
3333
4093
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -3337,12 +4097,29 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3337
4097
|
transport: "text";
|
|
3338
4098
|
label?: string | undefined;
|
|
3339
4099
|
userIntent?: string | undefined;
|
|
4100
|
+
references?: {
|
|
4101
|
+
id: string;
|
|
4102
|
+
url: string;
|
|
4103
|
+
title: string;
|
|
4104
|
+
image?: {
|
|
4105
|
+
hash: string;
|
|
4106
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4107
|
+
} | undefined;
|
|
4108
|
+
reason?: string | undefined;
|
|
4109
|
+
}[] | undefined;
|
|
3340
4110
|
}, {
|
|
3341
4111
|
id: string;
|
|
3342
4112
|
path: string;
|
|
3343
4113
|
transport: "text";
|
|
3344
4114
|
label?: string | undefined;
|
|
3345
4115
|
userIntent?: string | undefined;
|
|
4116
|
+
references?: {
|
|
4117
|
+
id: string;
|
|
4118
|
+
url: string;
|
|
4119
|
+
title: string;
|
|
4120
|
+
image?: unknown;
|
|
4121
|
+
reason?: string | undefined;
|
|
4122
|
+
}[] | undefined;
|
|
3346
4123
|
}>]>, "many">;
|
|
3347
4124
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
3348
4125
|
id: z.ZodString;
|
|
@@ -3374,13 +4151,6 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3374
4151
|
kind: z.ZodLiteral<"design_system">;
|
|
3375
4152
|
data: z.ZodObject<{
|
|
3376
4153
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
3377
|
-
/**
|
|
3378
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
3379
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
3380
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
3381
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
3382
|
-
* extracted-vs-guessed values.
|
|
3383
|
-
*/
|
|
3384
4154
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
3385
4155
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
3386
4156
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3534,16 +4304,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3534
4304
|
originalFilename: string;
|
|
3535
4305
|
sizeBytes: number;
|
|
3536
4306
|
sha256: string;
|
|
3537
|
-
label?: string | undefined;
|
|
3538
4307
|
mimeType?: string | undefined;
|
|
4308
|
+
label?: string | undefined;
|
|
3539
4309
|
}, {
|
|
3540
4310
|
id: string;
|
|
3541
4311
|
path: string;
|
|
3542
4312
|
originalFilename: string;
|
|
3543
4313
|
sizeBytes: number;
|
|
3544
4314
|
sha256: string;
|
|
3545
|
-
label?: string | undefined;
|
|
3546
4315
|
mimeType?: string | undefined;
|
|
4316
|
+
label?: string | undefined;
|
|
3547
4317
|
}>, "many">>;
|
|
3548
4318
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
3549
4319
|
kind: z.ZodLiteral<"global">;
|
|
@@ -3639,9 +4409,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3639
4409
|
id: string;
|
|
3640
4410
|
path: string;
|
|
3641
4411
|
transport: "file";
|
|
4412
|
+
mimeType?: string | undefined;
|
|
3642
4413
|
label?: string | undefined;
|
|
3643
4414
|
userIntent?: string | undefined;
|
|
3644
|
-
|
|
4415
|
+
references?: {
|
|
4416
|
+
id: string;
|
|
4417
|
+
url: string;
|
|
4418
|
+
title: string;
|
|
4419
|
+
image?: {
|
|
4420
|
+
hash: string;
|
|
4421
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4422
|
+
} | undefined;
|
|
4423
|
+
reason?: string | undefined;
|
|
4424
|
+
}[] | undefined;
|
|
3645
4425
|
originalFilename?: string | undefined;
|
|
3646
4426
|
} | {
|
|
3647
4427
|
id: string;
|
|
@@ -3655,6 +4435,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3655
4435
|
transport: "text";
|
|
3656
4436
|
label?: string | undefined;
|
|
3657
4437
|
userIntent?: string | undefined;
|
|
4438
|
+
references?: {
|
|
4439
|
+
id: string;
|
|
4440
|
+
url: string;
|
|
4441
|
+
title: string;
|
|
4442
|
+
image?: {
|
|
4443
|
+
hash: string;
|
|
4444
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4445
|
+
} | undefined;
|
|
4446
|
+
reason?: string | undefined;
|
|
4447
|
+
}[] | undefined;
|
|
3658
4448
|
})[];
|
|
3659
4449
|
rivetActions: {
|
|
3660
4450
|
id: string;
|
|
@@ -3705,8 +4495,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3705
4495
|
originalFilename: string;
|
|
3706
4496
|
sizeBytes: number;
|
|
3707
4497
|
sha256: string;
|
|
3708
|
-
label?: string | undefined;
|
|
3709
4498
|
mimeType?: string | undefined;
|
|
4499
|
+
label?: string | undefined;
|
|
3710
4500
|
}[] | undefined;
|
|
3711
4501
|
bindings?: ({
|
|
3712
4502
|
kind: "global";
|
|
@@ -3750,9 +4540,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3750
4540
|
id: string;
|
|
3751
4541
|
path: string;
|
|
3752
4542
|
transport: "file";
|
|
4543
|
+
mimeType?: string | undefined;
|
|
3753
4544
|
label?: string | undefined;
|
|
3754
4545
|
userIntent?: string | undefined;
|
|
3755
|
-
|
|
4546
|
+
references?: {
|
|
4547
|
+
id: string;
|
|
4548
|
+
url: string;
|
|
4549
|
+
title: string;
|
|
4550
|
+
image?: unknown;
|
|
4551
|
+
reason?: string | undefined;
|
|
4552
|
+
}[] | undefined;
|
|
3756
4553
|
originalFilename?: string | undefined;
|
|
3757
4554
|
} | {
|
|
3758
4555
|
id: string;
|
|
@@ -3766,6 +4563,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3766
4563
|
transport: "text";
|
|
3767
4564
|
label?: string | undefined;
|
|
3768
4565
|
userIntent?: string | undefined;
|
|
4566
|
+
references?: {
|
|
4567
|
+
id: string;
|
|
4568
|
+
url: string;
|
|
4569
|
+
title: string;
|
|
4570
|
+
image?: unknown;
|
|
4571
|
+
reason?: string | undefined;
|
|
4572
|
+
}[] | undefined;
|
|
3769
4573
|
})[];
|
|
3770
4574
|
rivetActions: {
|
|
3771
4575
|
id: string;
|
|
@@ -3816,8 +4620,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3816
4620
|
originalFilename: string;
|
|
3817
4621
|
sizeBytes: number;
|
|
3818
4622
|
sha256: string;
|
|
3819
|
-
label?: string | undefined;
|
|
3820
4623
|
mimeType?: string | undefined;
|
|
4624
|
+
label?: string | undefined;
|
|
3821
4625
|
}[] | undefined;
|
|
3822
4626
|
bindings?: ({
|
|
3823
4627
|
kind: "global";
|
|
@@ -3873,9 +4677,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3873
4677
|
id: string;
|
|
3874
4678
|
path: string;
|
|
3875
4679
|
transport: "file";
|
|
4680
|
+
mimeType?: string | undefined;
|
|
3876
4681
|
label?: string | undefined;
|
|
3877
4682
|
userIntent?: string | undefined;
|
|
3878
|
-
|
|
4683
|
+
references?: {
|
|
4684
|
+
id: string;
|
|
4685
|
+
url: string;
|
|
4686
|
+
title: string;
|
|
4687
|
+
image?: {
|
|
4688
|
+
hash: string;
|
|
4689
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4690
|
+
} | undefined;
|
|
4691
|
+
reason?: string | undefined;
|
|
4692
|
+
}[] | undefined;
|
|
3879
4693
|
originalFilename?: string | undefined;
|
|
3880
4694
|
} | {
|
|
3881
4695
|
id: string;
|
|
@@ -3889,6 +4703,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3889
4703
|
transport: "text";
|
|
3890
4704
|
label?: string | undefined;
|
|
3891
4705
|
userIntent?: string | undefined;
|
|
4706
|
+
references?: {
|
|
4707
|
+
id: string;
|
|
4708
|
+
url: string;
|
|
4709
|
+
title: string;
|
|
4710
|
+
image?: {
|
|
4711
|
+
hash: string;
|
|
4712
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
4713
|
+
} | undefined;
|
|
4714
|
+
reason?: string | undefined;
|
|
4715
|
+
}[] | undefined;
|
|
3892
4716
|
})[];
|
|
3893
4717
|
rivetActions: {
|
|
3894
4718
|
id: string;
|
|
@@ -3939,8 +4763,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3939
4763
|
originalFilename: string;
|
|
3940
4764
|
sizeBytes: number;
|
|
3941
4765
|
sha256: string;
|
|
3942
|
-
label?: string | undefined;
|
|
3943
4766
|
mimeType?: string | undefined;
|
|
4767
|
+
label?: string | undefined;
|
|
3944
4768
|
}[] | undefined;
|
|
3945
4769
|
bindings?: ({
|
|
3946
4770
|
kind: "global";
|
|
@@ -3996,9 +4820,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
3996
4820
|
id: string;
|
|
3997
4821
|
path: string;
|
|
3998
4822
|
transport: "file";
|
|
4823
|
+
mimeType?: string | undefined;
|
|
3999
4824
|
label?: string | undefined;
|
|
4000
4825
|
userIntent?: string | undefined;
|
|
4001
|
-
|
|
4826
|
+
references?: {
|
|
4827
|
+
id: string;
|
|
4828
|
+
url: string;
|
|
4829
|
+
title: string;
|
|
4830
|
+
image?: unknown;
|
|
4831
|
+
reason?: string | undefined;
|
|
4832
|
+
}[] | undefined;
|
|
4002
4833
|
originalFilename?: string | undefined;
|
|
4003
4834
|
} | {
|
|
4004
4835
|
id: string;
|
|
@@ -4012,6 +4843,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4012
4843
|
transport: "text";
|
|
4013
4844
|
label?: string | undefined;
|
|
4014
4845
|
userIntent?: string | undefined;
|
|
4846
|
+
references?: {
|
|
4847
|
+
id: string;
|
|
4848
|
+
url: string;
|
|
4849
|
+
title: string;
|
|
4850
|
+
image?: unknown;
|
|
4851
|
+
reason?: string | undefined;
|
|
4852
|
+
}[] | undefined;
|
|
4015
4853
|
})[];
|
|
4016
4854
|
rivetActions: {
|
|
4017
4855
|
id: string;
|
|
@@ -4062,8 +4900,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4062
4900
|
originalFilename: string;
|
|
4063
4901
|
sizeBytes: number;
|
|
4064
4902
|
sha256: string;
|
|
4065
|
-
label?: string | undefined;
|
|
4066
4903
|
mimeType?: string | undefined;
|
|
4904
|
+
label?: string | undefined;
|
|
4067
4905
|
}[] | undefined;
|
|
4068
4906
|
bindings?: ({
|
|
4069
4907
|
kind: "global";
|
|
@@ -4092,22 +4930,10 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4092
4930
|
} | undefined;
|
|
4093
4931
|
}>, z.ZodObject<{
|
|
4094
4932
|
kind: z.ZodLiteral<"fresh">;
|
|
4095
|
-
/** Where the generated subproject's files live (e.g.
|
|
4096
|
-
* `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
|
|
4097
|
-
* target — the agent reads/writes index.html, src/, etc. here. */
|
|
4098
4933
|
workspacePath: z.ZodString;
|
|
4099
|
-
/** The user's working directory that owns *all* Rivet artifacts for the
|
|
4100
|
-
* session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
|
|
4101
|
-
* generated subprojects, variant history, and create-project manifests.
|
|
4102
|
-
* Distinct from `path.dirname(workspacePath)` because subprojects nest
|
|
4103
|
-
* inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
|
|
4104
|
-
* not the workspace itself. */
|
|
4105
4934
|
workspaceRoot: z.ZodString;
|
|
4106
4935
|
framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
|
|
4107
4936
|
assetSourceRoot: z.ZodOptional<z.ZodString>;
|
|
4108
|
-
/** Per-variant-slot design context. Slug entries resolve bundled catalog
|
|
4109
|
-
* markdown; markdown entries are written directly as `DESIGN.md`. The
|
|
4110
|
-
* order matches code-gen variant slot order. */
|
|
4111
4937
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
4112
4938
|
kind: z.ZodLiteral<"slug">;
|
|
4113
4939
|
slug: z.ZodString;
|
|
@@ -4167,6 +4993,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4167
4993
|
}>, z.ZodObject<{
|
|
4168
4994
|
id: z.ZodString;
|
|
4169
4995
|
transport: z.ZodLiteral<"file">;
|
|
4996
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4997
|
+
id: z.ZodString;
|
|
4998
|
+
title: z.ZodString;
|
|
4999
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
5000
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5001
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
5002
|
+
hash: z.ZodString;
|
|
5003
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
5004
|
+
}, "strip", z.ZodTypeAny, {
|
|
5005
|
+
hash: string;
|
|
5006
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5007
|
+
}, {
|
|
5008
|
+
hash: string;
|
|
5009
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5010
|
+
}>>>;
|
|
5011
|
+
}, "strip", z.ZodTypeAny, {
|
|
5012
|
+
id: string;
|
|
5013
|
+
url: string;
|
|
5014
|
+
title: string;
|
|
5015
|
+
image?: {
|
|
5016
|
+
hash: string;
|
|
5017
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5018
|
+
} | undefined;
|
|
5019
|
+
reason?: string | undefined;
|
|
5020
|
+
}, {
|
|
5021
|
+
id: string;
|
|
5022
|
+
url: string;
|
|
5023
|
+
title: string;
|
|
5024
|
+
image?: unknown;
|
|
5025
|
+
reason?: string | undefined;
|
|
5026
|
+
}>, "many">>;
|
|
4170
5027
|
path: z.ZodString;
|
|
4171
5028
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
4172
5029
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -4176,17 +5033,34 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4176
5033
|
id: string;
|
|
4177
5034
|
path: string;
|
|
4178
5035
|
transport: "file";
|
|
5036
|
+
mimeType?: string | undefined;
|
|
4179
5037
|
label?: string | undefined;
|
|
4180
5038
|
userIntent?: string | undefined;
|
|
4181
|
-
|
|
5039
|
+
references?: {
|
|
5040
|
+
id: string;
|
|
5041
|
+
url: string;
|
|
5042
|
+
title: string;
|
|
5043
|
+
image?: {
|
|
5044
|
+
hash: string;
|
|
5045
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5046
|
+
} | undefined;
|
|
5047
|
+
reason?: string | undefined;
|
|
5048
|
+
}[] | undefined;
|
|
4182
5049
|
originalFilename?: string | undefined;
|
|
4183
5050
|
}, {
|
|
4184
5051
|
id: string;
|
|
4185
5052
|
path: string;
|
|
4186
5053
|
transport: "file";
|
|
5054
|
+
mimeType?: string | undefined;
|
|
4187
5055
|
label?: string | undefined;
|
|
4188
5056
|
userIntent?: string | undefined;
|
|
4189
|
-
|
|
5057
|
+
references?: {
|
|
5058
|
+
id: string;
|
|
5059
|
+
url: string;
|
|
5060
|
+
title: string;
|
|
5061
|
+
image?: unknown;
|
|
5062
|
+
reason?: string | undefined;
|
|
5063
|
+
}[] | undefined;
|
|
4190
5064
|
originalFilename?: string | undefined;
|
|
4191
5065
|
}>, z.ZodObject<{
|
|
4192
5066
|
id: z.ZodString;
|
|
@@ -4209,6 +5083,37 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4209
5083
|
}>, z.ZodObject<{
|
|
4210
5084
|
id: z.ZodString;
|
|
4211
5085
|
transport: z.ZodLiteral<"text">;
|
|
5086
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5087
|
+
id: z.ZodString;
|
|
5088
|
+
title: z.ZodString;
|
|
5089
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
5090
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5091
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
5092
|
+
hash: z.ZodString;
|
|
5093
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
5094
|
+
}, "strip", z.ZodTypeAny, {
|
|
5095
|
+
hash: string;
|
|
5096
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5097
|
+
}, {
|
|
5098
|
+
hash: string;
|
|
5099
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5100
|
+
}>>>;
|
|
5101
|
+
}, "strip", z.ZodTypeAny, {
|
|
5102
|
+
id: string;
|
|
5103
|
+
url: string;
|
|
5104
|
+
title: string;
|
|
5105
|
+
image?: {
|
|
5106
|
+
hash: string;
|
|
5107
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5108
|
+
} | undefined;
|
|
5109
|
+
reason?: string | undefined;
|
|
5110
|
+
}, {
|
|
5111
|
+
id: string;
|
|
5112
|
+
url: string;
|
|
5113
|
+
title: string;
|
|
5114
|
+
image?: unknown;
|
|
5115
|
+
reason?: string | undefined;
|
|
5116
|
+
}>, "many">>;
|
|
4212
5117
|
path: z.ZodString;
|
|
4213
5118
|
label: z.ZodOptional<z.ZodString>;
|
|
4214
5119
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -4218,12 +5123,29 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4218
5123
|
transport: "text";
|
|
4219
5124
|
label?: string | undefined;
|
|
4220
5125
|
userIntent?: string | undefined;
|
|
5126
|
+
references?: {
|
|
5127
|
+
id: string;
|
|
5128
|
+
url: string;
|
|
5129
|
+
title: string;
|
|
5130
|
+
image?: {
|
|
5131
|
+
hash: string;
|
|
5132
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5133
|
+
} | undefined;
|
|
5134
|
+
reason?: string | undefined;
|
|
5135
|
+
}[] | undefined;
|
|
4221
5136
|
}, {
|
|
4222
5137
|
id: string;
|
|
4223
5138
|
path: string;
|
|
4224
5139
|
transport: "text";
|
|
4225
5140
|
label?: string | undefined;
|
|
4226
5141
|
userIntent?: string | undefined;
|
|
5142
|
+
references?: {
|
|
5143
|
+
id: string;
|
|
5144
|
+
url: string;
|
|
5145
|
+
title: string;
|
|
5146
|
+
image?: unknown;
|
|
5147
|
+
reason?: string | undefined;
|
|
5148
|
+
}[] | undefined;
|
|
4227
5149
|
}>]>, "many">;
|
|
4228
5150
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
4229
5151
|
id: z.ZodString;
|
|
@@ -4255,13 +5177,6 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4255
5177
|
kind: z.ZodLiteral<"design_system">;
|
|
4256
5178
|
data: z.ZodObject<{
|
|
4257
5179
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
4258
|
-
/**
|
|
4259
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
4260
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
4261
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
4262
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
4263
|
-
* extracted-vs-guessed values.
|
|
4264
|
-
*/
|
|
4265
5180
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
4266
5181
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
4267
5182
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4415,16 +5330,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4415
5330
|
originalFilename: string;
|
|
4416
5331
|
sizeBytes: number;
|
|
4417
5332
|
sha256: string;
|
|
4418
|
-
label?: string | undefined;
|
|
4419
5333
|
mimeType?: string | undefined;
|
|
5334
|
+
label?: string | undefined;
|
|
4420
5335
|
}, {
|
|
4421
5336
|
id: string;
|
|
4422
5337
|
path: string;
|
|
4423
5338
|
originalFilename: string;
|
|
4424
5339
|
sizeBytes: number;
|
|
4425
5340
|
sha256: string;
|
|
4426
|
-
label?: string | undefined;
|
|
4427
5341
|
mimeType?: string | undefined;
|
|
5342
|
+
label?: string | undefined;
|
|
4428
5343
|
}>, "many">>;
|
|
4429
5344
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
4430
5345
|
kind: z.ZodLiteral<"global">;
|
|
@@ -4520,9 +5435,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4520
5435
|
id: string;
|
|
4521
5436
|
path: string;
|
|
4522
5437
|
transport: "file";
|
|
5438
|
+
mimeType?: string | undefined;
|
|
4523
5439
|
label?: string | undefined;
|
|
4524
5440
|
userIntent?: string | undefined;
|
|
4525
|
-
|
|
5441
|
+
references?: {
|
|
5442
|
+
id: string;
|
|
5443
|
+
url: string;
|
|
5444
|
+
title: string;
|
|
5445
|
+
image?: {
|
|
5446
|
+
hash: string;
|
|
5447
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5448
|
+
} | undefined;
|
|
5449
|
+
reason?: string | undefined;
|
|
5450
|
+
}[] | undefined;
|
|
4526
5451
|
originalFilename?: string | undefined;
|
|
4527
5452
|
} | {
|
|
4528
5453
|
id: string;
|
|
@@ -4536,6 +5461,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4536
5461
|
transport: "text";
|
|
4537
5462
|
label?: string | undefined;
|
|
4538
5463
|
userIntent?: string | undefined;
|
|
5464
|
+
references?: {
|
|
5465
|
+
id: string;
|
|
5466
|
+
url: string;
|
|
5467
|
+
title: string;
|
|
5468
|
+
image?: {
|
|
5469
|
+
hash: string;
|
|
5470
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5471
|
+
} | undefined;
|
|
5472
|
+
reason?: string | undefined;
|
|
5473
|
+
}[] | undefined;
|
|
4539
5474
|
})[];
|
|
4540
5475
|
rivetActions: {
|
|
4541
5476
|
id: string;
|
|
@@ -4586,8 +5521,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4586
5521
|
originalFilename: string;
|
|
4587
5522
|
sizeBytes: number;
|
|
4588
5523
|
sha256: string;
|
|
4589
|
-
label?: string | undefined;
|
|
4590
5524
|
mimeType?: string | undefined;
|
|
5525
|
+
label?: string | undefined;
|
|
4591
5526
|
}[] | undefined;
|
|
4592
5527
|
bindings?: ({
|
|
4593
5528
|
kind: "global";
|
|
@@ -4631,9 +5566,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4631
5566
|
id: string;
|
|
4632
5567
|
path: string;
|
|
4633
5568
|
transport: "file";
|
|
5569
|
+
mimeType?: string | undefined;
|
|
4634
5570
|
label?: string | undefined;
|
|
4635
5571
|
userIntent?: string | undefined;
|
|
4636
|
-
|
|
5572
|
+
references?: {
|
|
5573
|
+
id: string;
|
|
5574
|
+
url: string;
|
|
5575
|
+
title: string;
|
|
5576
|
+
image?: unknown;
|
|
5577
|
+
reason?: string | undefined;
|
|
5578
|
+
}[] | undefined;
|
|
4637
5579
|
originalFilename?: string | undefined;
|
|
4638
5580
|
} | {
|
|
4639
5581
|
id: string;
|
|
@@ -4647,6 +5589,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4647
5589
|
transport: "text";
|
|
4648
5590
|
label?: string | undefined;
|
|
4649
5591
|
userIntent?: string | undefined;
|
|
5592
|
+
references?: {
|
|
5593
|
+
id: string;
|
|
5594
|
+
url: string;
|
|
5595
|
+
title: string;
|
|
5596
|
+
image?: unknown;
|
|
5597
|
+
reason?: string | undefined;
|
|
5598
|
+
}[] | undefined;
|
|
4650
5599
|
})[];
|
|
4651
5600
|
rivetActions: {
|
|
4652
5601
|
id: string;
|
|
@@ -4697,8 +5646,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4697
5646
|
originalFilename: string;
|
|
4698
5647
|
sizeBytes: number;
|
|
4699
5648
|
sha256: string;
|
|
4700
|
-
label?: string | undefined;
|
|
4701
5649
|
mimeType?: string | undefined;
|
|
5650
|
+
label?: string | undefined;
|
|
4702
5651
|
}[] | undefined;
|
|
4703
5652
|
bindings?: ({
|
|
4704
5653
|
kind: "global";
|
|
@@ -4725,10 +5674,6 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4725
5674
|
userQuestion?: string | undefined;
|
|
4726
5675
|
} | undefined;
|
|
4727
5676
|
}>>;
|
|
4728
|
-
/** Agent-supplied execution plan from `report_source_plan`. Drives the
|
|
4729
|
-
* generation routing decision at approve() time: `static_preview` keeps
|
|
4730
|
-
* the lightweight HTML-only path; `vite_app` provisions a real Vite
|
|
4731
|
-
* worktree per variant and copies any large assets from `assetPlan`. */
|
|
4732
5677
|
executionPlan: z.ZodOptional<z.ZodObject<{
|
|
4733
5678
|
mode: z.ZodEnum<["static_preview", "vite_app"]>;
|
|
4734
5679
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -4813,9 +5758,19 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4813
5758
|
id: string;
|
|
4814
5759
|
path: string;
|
|
4815
5760
|
transport: "file";
|
|
5761
|
+
mimeType?: string | undefined;
|
|
4816
5762
|
label?: string | undefined;
|
|
4817
5763
|
userIntent?: string | undefined;
|
|
4818
|
-
|
|
5764
|
+
references?: {
|
|
5765
|
+
id: string;
|
|
5766
|
+
url: string;
|
|
5767
|
+
title: string;
|
|
5768
|
+
image?: {
|
|
5769
|
+
hash: string;
|
|
5770
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5771
|
+
} | undefined;
|
|
5772
|
+
reason?: string | undefined;
|
|
5773
|
+
}[] | undefined;
|
|
4819
5774
|
originalFilename?: string | undefined;
|
|
4820
5775
|
} | {
|
|
4821
5776
|
id: string;
|
|
@@ -4829,6 +5784,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4829
5784
|
transport: "text";
|
|
4830
5785
|
label?: string | undefined;
|
|
4831
5786
|
userIntent?: string | undefined;
|
|
5787
|
+
references?: {
|
|
5788
|
+
id: string;
|
|
5789
|
+
url: string;
|
|
5790
|
+
title: string;
|
|
5791
|
+
image?: {
|
|
5792
|
+
hash: string;
|
|
5793
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
5794
|
+
} | undefined;
|
|
5795
|
+
reason?: string | undefined;
|
|
5796
|
+
}[] | undefined;
|
|
4832
5797
|
})[];
|
|
4833
5798
|
rivetActions: {
|
|
4834
5799
|
id: string;
|
|
@@ -4879,8 +5844,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4879
5844
|
originalFilename: string;
|
|
4880
5845
|
sizeBytes: number;
|
|
4881
5846
|
sha256: string;
|
|
4882
|
-
label?: string | undefined;
|
|
4883
5847
|
mimeType?: string | undefined;
|
|
5848
|
+
label?: string | undefined;
|
|
4884
5849
|
}[] | undefined;
|
|
4885
5850
|
bindings?: ({
|
|
4886
5851
|
kind: "global";
|
|
@@ -4951,9 +5916,16 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4951
5916
|
id: string;
|
|
4952
5917
|
path: string;
|
|
4953
5918
|
transport: "file";
|
|
5919
|
+
mimeType?: string | undefined;
|
|
4954
5920
|
label?: string | undefined;
|
|
4955
5921
|
userIntent?: string | undefined;
|
|
4956
|
-
|
|
5922
|
+
references?: {
|
|
5923
|
+
id: string;
|
|
5924
|
+
url: string;
|
|
5925
|
+
title: string;
|
|
5926
|
+
image?: unknown;
|
|
5927
|
+
reason?: string | undefined;
|
|
5928
|
+
}[] | undefined;
|
|
4957
5929
|
originalFilename?: string | undefined;
|
|
4958
5930
|
} | {
|
|
4959
5931
|
id: string;
|
|
@@ -4967,6 +5939,13 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
4967
5939
|
transport: "text";
|
|
4968
5940
|
label?: string | undefined;
|
|
4969
5941
|
userIntent?: string | undefined;
|
|
5942
|
+
references?: {
|
|
5943
|
+
id: string;
|
|
5944
|
+
url: string;
|
|
5945
|
+
title: string;
|
|
5946
|
+
image?: unknown;
|
|
5947
|
+
reason?: string | undefined;
|
|
5948
|
+
}[] | undefined;
|
|
4970
5949
|
})[];
|
|
4971
5950
|
rivetActions: {
|
|
4972
5951
|
id: string;
|
|
@@ -5017,8 +5996,8 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
5017
5996
|
originalFilename: string;
|
|
5018
5997
|
sizeBytes: number;
|
|
5019
5998
|
sha256: string;
|
|
5020
|
-
label?: string | undefined;
|
|
5021
5999
|
mimeType?: string | undefined;
|
|
6000
|
+
label?: string | undefined;
|
|
5022
6001
|
}[] | undefined;
|
|
5023
6002
|
bindings?: ({
|
|
5024
6003
|
kind: "global";
|
|
@@ -5050,12 +6029,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
|
|
|
5050
6029
|
}>]>;
|
|
5051
6030
|
export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<Omit<{
|
|
5052
6031
|
kind: z.ZodLiteral<"existing">;
|
|
5053
|
-
/** Absolute project path requested for this existing-project run. Present
|
|
5054
|
-
* when callers target a nested project inside a larger git worktree. */
|
|
5055
6032
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
5056
|
-
/** Optional design context supplied by agents/benchmarks for existing
|
|
5057
|
-
* project runs with visual references. Surfaced as DesignMD artifacts and
|
|
5058
|
-
* available to QA gates, but does not trigger a source-plan stage. */
|
|
5059
6033
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5060
6034
|
kind: z.ZodLiteral<"slug">;
|
|
5061
6035
|
slug: z.ZodString;
|
|
@@ -5115,6 +6089,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5115
6089
|
}>, z.ZodObject<{
|
|
5116
6090
|
id: z.ZodString;
|
|
5117
6091
|
transport: z.ZodLiteral<"file">;
|
|
6092
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6093
|
+
id: z.ZodString;
|
|
6094
|
+
title: z.ZodString;
|
|
6095
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
6096
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6097
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
6098
|
+
hash: z.ZodString;
|
|
6099
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
6100
|
+
}, "strip", z.ZodTypeAny, {
|
|
6101
|
+
hash: string;
|
|
6102
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6103
|
+
}, {
|
|
6104
|
+
hash: string;
|
|
6105
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6106
|
+
}>>>;
|
|
6107
|
+
}, "strip", z.ZodTypeAny, {
|
|
6108
|
+
id: string;
|
|
6109
|
+
url: string;
|
|
6110
|
+
title: string;
|
|
6111
|
+
image?: {
|
|
6112
|
+
hash: string;
|
|
6113
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6114
|
+
} | undefined;
|
|
6115
|
+
reason?: string | undefined;
|
|
6116
|
+
}, {
|
|
6117
|
+
id: string;
|
|
6118
|
+
url: string;
|
|
6119
|
+
title: string;
|
|
6120
|
+
image?: unknown;
|
|
6121
|
+
reason?: string | undefined;
|
|
6122
|
+
}>, "many">>;
|
|
5118
6123
|
path: z.ZodString;
|
|
5119
6124
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
5120
6125
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -5124,17 +6129,34 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5124
6129
|
id: string;
|
|
5125
6130
|
path: string;
|
|
5126
6131
|
transport: "file";
|
|
6132
|
+
mimeType?: string | undefined;
|
|
5127
6133
|
label?: string | undefined;
|
|
5128
6134
|
userIntent?: string | undefined;
|
|
5129
|
-
|
|
6135
|
+
references?: {
|
|
6136
|
+
id: string;
|
|
6137
|
+
url: string;
|
|
6138
|
+
title: string;
|
|
6139
|
+
image?: {
|
|
6140
|
+
hash: string;
|
|
6141
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6142
|
+
} | undefined;
|
|
6143
|
+
reason?: string | undefined;
|
|
6144
|
+
}[] | undefined;
|
|
5130
6145
|
originalFilename?: string | undefined;
|
|
5131
6146
|
}, {
|
|
5132
6147
|
id: string;
|
|
5133
6148
|
path: string;
|
|
5134
6149
|
transport: "file";
|
|
6150
|
+
mimeType?: string | undefined;
|
|
5135
6151
|
label?: string | undefined;
|
|
5136
6152
|
userIntent?: string | undefined;
|
|
5137
|
-
|
|
6153
|
+
references?: {
|
|
6154
|
+
id: string;
|
|
6155
|
+
url: string;
|
|
6156
|
+
title: string;
|
|
6157
|
+
image?: unknown;
|
|
6158
|
+
reason?: string | undefined;
|
|
6159
|
+
}[] | undefined;
|
|
5138
6160
|
originalFilename?: string | undefined;
|
|
5139
6161
|
}>, z.ZodObject<{
|
|
5140
6162
|
id: z.ZodString;
|
|
@@ -5157,6 +6179,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5157
6179
|
}>, z.ZodObject<{
|
|
5158
6180
|
id: z.ZodString;
|
|
5159
6181
|
transport: z.ZodLiteral<"text">;
|
|
6182
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6183
|
+
id: z.ZodString;
|
|
6184
|
+
title: z.ZodString;
|
|
6185
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
6186
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6187
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
6188
|
+
hash: z.ZodString;
|
|
6189
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
6190
|
+
}, "strip", z.ZodTypeAny, {
|
|
6191
|
+
hash: string;
|
|
6192
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6193
|
+
}, {
|
|
6194
|
+
hash: string;
|
|
6195
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6196
|
+
}>>>;
|
|
6197
|
+
}, "strip", z.ZodTypeAny, {
|
|
6198
|
+
id: string;
|
|
6199
|
+
url: string;
|
|
6200
|
+
title: string;
|
|
6201
|
+
image?: {
|
|
6202
|
+
hash: string;
|
|
6203
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6204
|
+
} | undefined;
|
|
6205
|
+
reason?: string | undefined;
|
|
6206
|
+
}, {
|
|
6207
|
+
id: string;
|
|
6208
|
+
url: string;
|
|
6209
|
+
title: string;
|
|
6210
|
+
image?: unknown;
|
|
6211
|
+
reason?: string | undefined;
|
|
6212
|
+
}>, "many">>;
|
|
5160
6213
|
path: z.ZodString;
|
|
5161
6214
|
label: z.ZodOptional<z.ZodString>;
|
|
5162
6215
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -5166,12 +6219,29 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5166
6219
|
transport: "text";
|
|
5167
6220
|
label?: string | undefined;
|
|
5168
6221
|
userIntent?: string | undefined;
|
|
6222
|
+
references?: {
|
|
6223
|
+
id: string;
|
|
6224
|
+
url: string;
|
|
6225
|
+
title: string;
|
|
6226
|
+
image?: {
|
|
6227
|
+
hash: string;
|
|
6228
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6229
|
+
} | undefined;
|
|
6230
|
+
reason?: string | undefined;
|
|
6231
|
+
}[] | undefined;
|
|
5169
6232
|
}, {
|
|
5170
6233
|
id: string;
|
|
5171
6234
|
path: string;
|
|
5172
6235
|
transport: "text";
|
|
5173
6236
|
label?: string | undefined;
|
|
5174
6237
|
userIntent?: string | undefined;
|
|
6238
|
+
references?: {
|
|
6239
|
+
id: string;
|
|
6240
|
+
url: string;
|
|
6241
|
+
title: string;
|
|
6242
|
+
image?: unknown;
|
|
6243
|
+
reason?: string | undefined;
|
|
6244
|
+
}[] | undefined;
|
|
5175
6245
|
}>]>, "many">;
|
|
5176
6246
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
5177
6247
|
id: z.ZodString;
|
|
@@ -5203,13 +6273,6 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5203
6273
|
kind: z.ZodLiteral<"design_system">;
|
|
5204
6274
|
data: z.ZodObject<{
|
|
5205
6275
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
5206
|
-
/**
|
|
5207
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
5208
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
5209
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
5210
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
5211
|
-
* extracted-vs-guessed values.
|
|
5212
|
-
*/
|
|
5213
6276
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
5214
6277
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
5215
6278
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -5363,16 +6426,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5363
6426
|
originalFilename: string;
|
|
5364
6427
|
sizeBytes: number;
|
|
5365
6428
|
sha256: string;
|
|
5366
|
-
label?: string | undefined;
|
|
5367
6429
|
mimeType?: string | undefined;
|
|
6430
|
+
label?: string | undefined;
|
|
5368
6431
|
}, {
|
|
5369
6432
|
id: string;
|
|
5370
6433
|
path: string;
|
|
5371
6434
|
originalFilename: string;
|
|
5372
6435
|
sizeBytes: number;
|
|
5373
6436
|
sha256: string;
|
|
5374
|
-
label?: string | undefined;
|
|
5375
6437
|
mimeType?: string | undefined;
|
|
6438
|
+
label?: string | undefined;
|
|
5376
6439
|
}>, "many">>;
|
|
5377
6440
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5378
6441
|
kind: z.ZodLiteral<"global">;
|
|
@@ -5468,9 +6531,19 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5468
6531
|
id: string;
|
|
5469
6532
|
path: string;
|
|
5470
6533
|
transport: "file";
|
|
6534
|
+
mimeType?: string | undefined;
|
|
5471
6535
|
label?: string | undefined;
|
|
5472
6536
|
userIntent?: string | undefined;
|
|
5473
|
-
|
|
6537
|
+
references?: {
|
|
6538
|
+
id: string;
|
|
6539
|
+
url: string;
|
|
6540
|
+
title: string;
|
|
6541
|
+
image?: {
|
|
6542
|
+
hash: string;
|
|
6543
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6544
|
+
} | undefined;
|
|
6545
|
+
reason?: string | undefined;
|
|
6546
|
+
}[] | undefined;
|
|
5474
6547
|
originalFilename?: string | undefined;
|
|
5475
6548
|
} | {
|
|
5476
6549
|
id: string;
|
|
@@ -5484,6 +6557,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5484
6557
|
transport: "text";
|
|
5485
6558
|
label?: string | undefined;
|
|
5486
6559
|
userIntent?: string | undefined;
|
|
6560
|
+
references?: {
|
|
6561
|
+
id: string;
|
|
6562
|
+
url: string;
|
|
6563
|
+
title: string;
|
|
6564
|
+
image?: {
|
|
6565
|
+
hash: string;
|
|
6566
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6567
|
+
} | undefined;
|
|
6568
|
+
reason?: string | undefined;
|
|
6569
|
+
}[] | undefined;
|
|
5487
6570
|
})[];
|
|
5488
6571
|
rivetActions: {
|
|
5489
6572
|
id: string;
|
|
@@ -5534,8 +6617,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5534
6617
|
originalFilename: string;
|
|
5535
6618
|
sizeBytes: number;
|
|
5536
6619
|
sha256: string;
|
|
5537
|
-
label?: string | undefined;
|
|
5538
6620
|
mimeType?: string | undefined;
|
|
6621
|
+
label?: string | undefined;
|
|
5539
6622
|
}[] | undefined;
|
|
5540
6623
|
bindings?: ({
|
|
5541
6624
|
kind: "global";
|
|
@@ -5579,9 +6662,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5579
6662
|
id: string;
|
|
5580
6663
|
path: string;
|
|
5581
6664
|
transport: "file";
|
|
6665
|
+
mimeType?: string | undefined;
|
|
5582
6666
|
label?: string | undefined;
|
|
5583
6667
|
userIntent?: string | undefined;
|
|
5584
|
-
|
|
6668
|
+
references?: {
|
|
6669
|
+
id: string;
|
|
6670
|
+
url: string;
|
|
6671
|
+
title: string;
|
|
6672
|
+
image?: unknown;
|
|
6673
|
+
reason?: string | undefined;
|
|
6674
|
+
}[] | undefined;
|
|
5585
6675
|
originalFilename?: string | undefined;
|
|
5586
6676
|
} | {
|
|
5587
6677
|
id: string;
|
|
@@ -5595,6 +6685,13 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5595
6685
|
transport: "text";
|
|
5596
6686
|
label?: string | undefined;
|
|
5597
6687
|
userIntent?: string | undefined;
|
|
6688
|
+
references?: {
|
|
6689
|
+
id: string;
|
|
6690
|
+
url: string;
|
|
6691
|
+
title: string;
|
|
6692
|
+
image?: unknown;
|
|
6693
|
+
reason?: string | undefined;
|
|
6694
|
+
}[] | undefined;
|
|
5598
6695
|
})[];
|
|
5599
6696
|
rivetActions: {
|
|
5600
6697
|
id: string;
|
|
@@ -5645,8 +6742,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5645
6742
|
originalFilename: string;
|
|
5646
6743
|
sizeBytes: number;
|
|
5647
6744
|
sha256: string;
|
|
5648
|
-
label?: string | undefined;
|
|
5649
6745
|
mimeType?: string | undefined;
|
|
6746
|
+
label?: string | undefined;
|
|
5650
6747
|
}[] | undefined;
|
|
5651
6748
|
bindings?: ({
|
|
5652
6749
|
kind: "global";
|
|
@@ -5697,22 +6794,10 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5697
6794
|
})[] | undefined;
|
|
5698
6795
|
}>, z.ZodObject<Omit<{
|
|
5699
6796
|
kind: z.ZodLiteral<"fresh">;
|
|
5700
|
-
/** Where the generated subproject's files live (e.g.
|
|
5701
|
-
* `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
|
|
5702
|
-
* target — the agent reads/writes index.html, src/, etc. here. */
|
|
5703
6797
|
workspacePath: z.ZodString;
|
|
5704
|
-
/** The user's working directory that owns *all* Rivet artifacts for the
|
|
5705
|
-
* session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
|
|
5706
|
-
* generated subprojects, variant history, and create-project manifests.
|
|
5707
|
-
* Distinct from `path.dirname(workspacePath)` because subprojects nest
|
|
5708
|
-
* inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
|
|
5709
|
-
* not the workspace itself. */
|
|
5710
6798
|
workspaceRoot: z.ZodString;
|
|
5711
6799
|
framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
|
|
5712
6800
|
assetSourceRoot: z.ZodOptional<z.ZodString>;
|
|
5713
|
-
/** Per-variant-slot design context. Slug entries resolve bundled catalog
|
|
5714
|
-
* markdown; markdown entries are written directly as `DESIGN.md`. The
|
|
5715
|
-
* order matches code-gen variant slot order. */
|
|
5716
6801
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5717
6802
|
kind: z.ZodLiteral<"slug">;
|
|
5718
6803
|
slug: z.ZodString;
|
|
@@ -5772,6 +6857,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5772
6857
|
}>, z.ZodObject<{
|
|
5773
6858
|
id: z.ZodString;
|
|
5774
6859
|
transport: z.ZodLiteral<"file">;
|
|
6860
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6861
|
+
id: z.ZodString;
|
|
6862
|
+
title: z.ZodString;
|
|
6863
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
6864
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6865
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
6866
|
+
hash: z.ZodString;
|
|
6867
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
6868
|
+
}, "strip", z.ZodTypeAny, {
|
|
6869
|
+
hash: string;
|
|
6870
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6871
|
+
}, {
|
|
6872
|
+
hash: string;
|
|
6873
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6874
|
+
}>>>;
|
|
6875
|
+
}, "strip", z.ZodTypeAny, {
|
|
6876
|
+
id: string;
|
|
6877
|
+
url: string;
|
|
6878
|
+
title: string;
|
|
6879
|
+
image?: {
|
|
6880
|
+
hash: string;
|
|
6881
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6882
|
+
} | undefined;
|
|
6883
|
+
reason?: string | undefined;
|
|
6884
|
+
}, {
|
|
6885
|
+
id: string;
|
|
6886
|
+
url: string;
|
|
6887
|
+
title: string;
|
|
6888
|
+
image?: unknown;
|
|
6889
|
+
reason?: string | undefined;
|
|
6890
|
+
}>, "many">>;
|
|
5775
6891
|
path: z.ZodString;
|
|
5776
6892
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
5777
6893
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -5781,17 +6897,34 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5781
6897
|
id: string;
|
|
5782
6898
|
path: string;
|
|
5783
6899
|
transport: "file";
|
|
6900
|
+
mimeType?: string | undefined;
|
|
5784
6901
|
label?: string | undefined;
|
|
5785
6902
|
userIntent?: string | undefined;
|
|
5786
|
-
|
|
6903
|
+
references?: {
|
|
6904
|
+
id: string;
|
|
6905
|
+
url: string;
|
|
6906
|
+
title: string;
|
|
6907
|
+
image?: {
|
|
6908
|
+
hash: string;
|
|
6909
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6910
|
+
} | undefined;
|
|
6911
|
+
reason?: string | undefined;
|
|
6912
|
+
}[] | undefined;
|
|
5787
6913
|
originalFilename?: string | undefined;
|
|
5788
6914
|
}, {
|
|
5789
6915
|
id: string;
|
|
5790
6916
|
path: string;
|
|
5791
6917
|
transport: "file";
|
|
6918
|
+
mimeType?: string | undefined;
|
|
5792
6919
|
label?: string | undefined;
|
|
5793
6920
|
userIntent?: string | undefined;
|
|
5794
|
-
|
|
6921
|
+
references?: {
|
|
6922
|
+
id: string;
|
|
6923
|
+
url: string;
|
|
6924
|
+
title: string;
|
|
6925
|
+
image?: unknown;
|
|
6926
|
+
reason?: string | undefined;
|
|
6927
|
+
}[] | undefined;
|
|
5795
6928
|
originalFilename?: string | undefined;
|
|
5796
6929
|
}>, z.ZodObject<{
|
|
5797
6930
|
id: z.ZodString;
|
|
@@ -5814,6 +6947,37 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5814
6947
|
}>, z.ZodObject<{
|
|
5815
6948
|
id: z.ZodString;
|
|
5816
6949
|
transport: z.ZodLiteral<"text">;
|
|
6950
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6951
|
+
id: z.ZodString;
|
|
6952
|
+
title: z.ZodString;
|
|
6953
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
6954
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
6955
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
6956
|
+
hash: z.ZodString;
|
|
6957
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
6958
|
+
}, "strip", z.ZodTypeAny, {
|
|
6959
|
+
hash: string;
|
|
6960
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6961
|
+
}, {
|
|
6962
|
+
hash: string;
|
|
6963
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6964
|
+
}>>>;
|
|
6965
|
+
}, "strip", z.ZodTypeAny, {
|
|
6966
|
+
id: string;
|
|
6967
|
+
url: string;
|
|
6968
|
+
title: string;
|
|
6969
|
+
image?: {
|
|
6970
|
+
hash: string;
|
|
6971
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6972
|
+
} | undefined;
|
|
6973
|
+
reason?: string | undefined;
|
|
6974
|
+
}, {
|
|
6975
|
+
id: string;
|
|
6976
|
+
url: string;
|
|
6977
|
+
title: string;
|
|
6978
|
+
image?: unknown;
|
|
6979
|
+
reason?: string | undefined;
|
|
6980
|
+
}>, "many">>;
|
|
5817
6981
|
path: z.ZodString;
|
|
5818
6982
|
label: z.ZodOptional<z.ZodString>;
|
|
5819
6983
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -5823,12 +6987,29 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5823
6987
|
transport: "text";
|
|
5824
6988
|
label?: string | undefined;
|
|
5825
6989
|
userIntent?: string | undefined;
|
|
6990
|
+
references?: {
|
|
6991
|
+
id: string;
|
|
6992
|
+
url: string;
|
|
6993
|
+
title: string;
|
|
6994
|
+
image?: {
|
|
6995
|
+
hash: string;
|
|
6996
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
6997
|
+
} | undefined;
|
|
6998
|
+
reason?: string | undefined;
|
|
6999
|
+
}[] | undefined;
|
|
5826
7000
|
}, {
|
|
5827
7001
|
id: string;
|
|
5828
7002
|
path: string;
|
|
5829
7003
|
transport: "text";
|
|
5830
7004
|
label?: string | undefined;
|
|
5831
7005
|
userIntent?: string | undefined;
|
|
7006
|
+
references?: {
|
|
7007
|
+
id: string;
|
|
7008
|
+
url: string;
|
|
7009
|
+
title: string;
|
|
7010
|
+
image?: unknown;
|
|
7011
|
+
reason?: string | undefined;
|
|
7012
|
+
}[] | undefined;
|
|
5832
7013
|
}>]>, "many">;
|
|
5833
7014
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
5834
7015
|
id: z.ZodString;
|
|
@@ -5860,13 +7041,6 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
5860
7041
|
kind: z.ZodLiteral<"design_system">;
|
|
5861
7042
|
data: z.ZodObject<{
|
|
5862
7043
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
5863
|
-
/**
|
|
5864
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
5865
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
5866
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
5867
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
5868
|
-
* extracted-vs-guessed values.
|
|
5869
|
-
*/
|
|
5870
7044
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
5871
7045
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
5872
7046
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -6020,16 +7194,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6020
7194
|
originalFilename: string;
|
|
6021
7195
|
sizeBytes: number;
|
|
6022
7196
|
sha256: string;
|
|
6023
|
-
label?: string | undefined;
|
|
6024
7197
|
mimeType?: string | undefined;
|
|
7198
|
+
label?: string | undefined;
|
|
6025
7199
|
}, {
|
|
6026
7200
|
id: string;
|
|
6027
7201
|
path: string;
|
|
6028
7202
|
originalFilename: string;
|
|
6029
7203
|
sizeBytes: number;
|
|
6030
7204
|
sha256: string;
|
|
6031
|
-
label?: string | undefined;
|
|
6032
7205
|
mimeType?: string | undefined;
|
|
7206
|
+
label?: string | undefined;
|
|
6033
7207
|
}>, "many">>;
|
|
6034
7208
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
6035
7209
|
kind: z.ZodLiteral<"global">;
|
|
@@ -6125,9 +7299,19 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6125
7299
|
id: string;
|
|
6126
7300
|
path: string;
|
|
6127
7301
|
transport: "file";
|
|
7302
|
+
mimeType?: string | undefined;
|
|
6128
7303
|
label?: string | undefined;
|
|
6129
7304
|
userIntent?: string | undefined;
|
|
6130
|
-
|
|
7305
|
+
references?: {
|
|
7306
|
+
id: string;
|
|
7307
|
+
url: string;
|
|
7308
|
+
title: string;
|
|
7309
|
+
image?: {
|
|
7310
|
+
hash: string;
|
|
7311
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7312
|
+
} | undefined;
|
|
7313
|
+
reason?: string | undefined;
|
|
7314
|
+
}[] | undefined;
|
|
6131
7315
|
originalFilename?: string | undefined;
|
|
6132
7316
|
} | {
|
|
6133
7317
|
id: string;
|
|
@@ -6141,6 +7325,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6141
7325
|
transport: "text";
|
|
6142
7326
|
label?: string | undefined;
|
|
6143
7327
|
userIntent?: string | undefined;
|
|
7328
|
+
references?: {
|
|
7329
|
+
id: string;
|
|
7330
|
+
url: string;
|
|
7331
|
+
title: string;
|
|
7332
|
+
image?: {
|
|
7333
|
+
hash: string;
|
|
7334
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7335
|
+
} | undefined;
|
|
7336
|
+
reason?: string | undefined;
|
|
7337
|
+
}[] | undefined;
|
|
6144
7338
|
})[];
|
|
6145
7339
|
rivetActions: {
|
|
6146
7340
|
id: string;
|
|
@@ -6191,8 +7385,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6191
7385
|
originalFilename: string;
|
|
6192
7386
|
sizeBytes: number;
|
|
6193
7387
|
sha256: string;
|
|
6194
|
-
label?: string | undefined;
|
|
6195
7388
|
mimeType?: string | undefined;
|
|
7389
|
+
label?: string | undefined;
|
|
6196
7390
|
}[] | undefined;
|
|
6197
7391
|
bindings?: ({
|
|
6198
7392
|
kind: "global";
|
|
@@ -6236,9 +7430,16 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6236
7430
|
id: string;
|
|
6237
7431
|
path: string;
|
|
6238
7432
|
transport: "file";
|
|
7433
|
+
mimeType?: string | undefined;
|
|
6239
7434
|
label?: string | undefined;
|
|
6240
7435
|
userIntent?: string | undefined;
|
|
6241
|
-
|
|
7436
|
+
references?: {
|
|
7437
|
+
id: string;
|
|
7438
|
+
url: string;
|
|
7439
|
+
title: string;
|
|
7440
|
+
image?: unknown;
|
|
7441
|
+
reason?: string | undefined;
|
|
7442
|
+
}[] | undefined;
|
|
6242
7443
|
originalFilename?: string | undefined;
|
|
6243
7444
|
} | {
|
|
6244
7445
|
id: string;
|
|
@@ -6252,6 +7453,13 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6252
7453
|
transport: "text";
|
|
6253
7454
|
label?: string | undefined;
|
|
6254
7455
|
userIntent?: string | undefined;
|
|
7456
|
+
references?: {
|
|
7457
|
+
id: string;
|
|
7458
|
+
url: string;
|
|
7459
|
+
title: string;
|
|
7460
|
+
image?: unknown;
|
|
7461
|
+
reason?: string | undefined;
|
|
7462
|
+
}[] | undefined;
|
|
6255
7463
|
})[];
|
|
6256
7464
|
rivetActions: {
|
|
6257
7465
|
id: string;
|
|
@@ -6302,8 +7510,8 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6302
7510
|
originalFilename: string;
|
|
6303
7511
|
sizeBytes: number;
|
|
6304
7512
|
sha256: string;
|
|
6305
|
-
label?: string | undefined;
|
|
6306
7513
|
mimeType?: string | undefined;
|
|
7514
|
+
label?: string | undefined;
|
|
6307
7515
|
}[] | undefined;
|
|
6308
7516
|
bindings?: ({
|
|
6309
7517
|
kind: "global";
|
|
@@ -6330,10 +7538,6 @@ export declare const projectContextInputSchema: z.ZodDiscriminatedUnion<"kind",
|
|
|
6330
7538
|
userQuestion?: string | undefined;
|
|
6331
7539
|
} | undefined;
|
|
6332
7540
|
}>>;
|
|
6333
|
-
/** Agent-supplied execution plan from `report_source_plan`. Drives the
|
|
6334
|
-
* generation routing decision at approve() time: `static_preview` keeps
|
|
6335
|
-
* the lightweight HTML-only path; `vite_app` provisions a real Vite
|
|
6336
|
-
* worktree per variant and copies any large assets from `assetPlan`. */
|
|
6337
7541
|
executionPlan: z.ZodOptional<z.ZodObject<{
|
|
6338
7542
|
mode: z.ZodEnum<["static_preview", "vite_app"]>;
|
|
6339
7543
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -6487,8 +7691,6 @@ export type ActiveProjectContext = {
|
|
|
6487
7691
|
sourceCount: number;
|
|
6488
7692
|
isSourceGrounded: boolean;
|
|
6489
7693
|
};
|
|
6490
|
-
/** Compact summary of the agent's execution plan, suitable for chip /
|
|
6491
|
-
* artifact rendering. The full plan stays on the project context. */
|
|
6492
7694
|
executionPlan?: {
|
|
6493
7695
|
mode: ExecutionMode;
|
|
6494
7696
|
confidence: ExecutionConfidence;
|
|
@@ -6512,30 +7714,12 @@ export interface ActiveVariantSnapshot {
|
|
|
6512
7714
|
briefId: string;
|
|
6513
7715
|
label: string;
|
|
6514
7716
|
status: WorkItemStatus;
|
|
6515
|
-
/** TRUE work-item kind — the authoritative routing discriminator. An
|
|
6516
|
-
* existing-project `code_gen` variant materialized as a static preview
|
|
6517
|
-
* DISPLAYS as `preview.kind: 'static_artifact'` but must Vary/apply via
|
|
6518
|
-
* the worktree path; clients key routing off this field, never off the
|
|
6519
|
-
* display preview kind. */
|
|
6520
7717
|
workItemKind?: 'code_gen' | 'static_preview';
|
|
6521
|
-
/** ISO timestamp of when the variant's session was generated, so the UI can
|
|
6522
|
-
* show date metadata on currently-generated variants (mirrors the
|
|
6523
|
-
* `createdAt` shown on persisted history rows). */
|
|
6524
7718
|
createdAt?: string;
|
|
6525
|
-
/** Short localized label for the *run* this variant belongs to —
|
|
6526
|
-
* the intent of the prompt that kicked it off (e.g. "Brighter"). Shared by
|
|
6527
|
-
* every variant in the run; shown on each row so the user can tell which
|
|
6528
|
-
* prompt a direction came from. */
|
|
6529
7719
|
runLabel?: string;
|
|
6530
|
-
/** Correlation id of the UI request that produced this variant (or drives its
|
|
6531
|
-
* in-place refinement) — the originating change batch's agentRunId/traceId.
|
|
6532
|
-
* Lets the UI map its optimistic placeholders to the real variant cards. */
|
|
6533
7720
|
requestId?: string;
|
|
6534
|
-
/** The variant's brief body — a compact, plain-language statement of what
|
|
6535
|
-
* THIS variant changes relative to baseline. Shown under the title. */
|
|
6536
7721
|
description?: string;
|
|
6537
|
-
|
|
6538
|
-
* Lets the UI collapse the matching history row into this live row. */
|
|
7722
|
+
references?: VariantReference[];
|
|
6539
7723
|
adoptedSource?: {
|
|
6540
7724
|
sessionId: string;
|
|
6541
7725
|
variantId: string;
|
|
@@ -6543,25 +7727,10 @@ export interface ActiveVariantSnapshot {
|
|
|
6543
7727
|
design?: VariantDesignSource;
|
|
6544
7728
|
preview?: VariantPreviewSource;
|
|
6545
7729
|
port?: number;
|
|
6546
|
-
/** Number of files the variant's captured diff touches (existing-project
|
|
6547
|
-
* code_gen). Retained in the snapshot for API consumers and commit/history
|
|
6548
|
-
* metadata. */
|
|
6549
7730
|
changedFilesCount?: number;
|
|
6550
7731
|
errorCode?: string;
|
|
6551
|
-
/** Human-readable failure detail for a failed variant (worker exit code +
|
|
6552
|
-
* stderr/result tail). Bounded at source by the executor's capture caps;
|
|
6553
|
-
* present only alongside `errorCode`. */
|
|
6554
7732
|
errorMessage?: string;
|
|
6555
|
-
/** The runtime that executed this variant's worker (vendor/model/effort).
|
|
6556
|
-
* Present once the executor reports completion; absent while running and
|
|
6557
|
-
* for host-agent-executed work. */
|
|
6558
7733
|
runtime?: WorkerRuntimeInfo;
|
|
6559
|
-
/**
|
|
6560
|
-
* Set when a *succeeded* variant has no live preview because its preview dev
|
|
6561
|
-
* server failed to start or was reclaimed after the active-session idle
|
|
6562
|
-
* timeout. Idle previews restart on selection; failed dev-server previews
|
|
6563
|
-
* require an explicit retry without regenerating the direction.
|
|
6564
|
-
*/
|
|
6565
7734
|
previewUnavailable?: {
|
|
6566
7735
|
reason: 'spawn_error' | 'exited' | 'timeout' | 'compile_error' | 'dependency_install_failed' | 'missing_dev_script' | 'missing_static_entry' | 'idle_timeout' | 'unknown';
|
|
6567
7736
|
portInUse?: boolean;
|
|
@@ -6571,16 +7740,8 @@ export interface ActiveVariantSnapshot {
|
|
|
6571
7740
|
workItemId: string;
|
|
6572
7741
|
status: WorkItemStatus;
|
|
6573
7742
|
errorCode?: string;
|
|
6574
|
-
/** Failure detail for a failed refinement — mirrors the top-level
|
|
6575
|
-
* `errorMessage`. */
|
|
6576
7743
|
errorMessage?: string;
|
|
6577
7744
|
};
|
|
6578
|
-
/**
|
|
6579
|
-
* Post-generation output-integrity verdict. Present once the orchestrator
|
|
6580
|
-
* has checked the variant's artifact structure. Surfaced on the chip so the
|
|
6581
|
-
* user can see why a variant is not committable. `not_run` indicates the
|
|
6582
|
-
* check does not apply to this variant kind.
|
|
6583
|
-
*/
|
|
6584
7745
|
qa?: VariantQaResult;
|
|
6585
7746
|
}
|
|
6586
7747
|
export type VariantAssignedWorkspace = {
|
|
@@ -6602,9 +7763,6 @@ export type VariantExecutionMode = (typeof VARIANT_EXECUTION_MODES)[number];
|
|
|
6602
7763
|
export type VariantWorkerDirection = {
|
|
6603
7764
|
label: string;
|
|
6604
7765
|
brief: string;
|
|
6605
|
-
/** Optional host-authored implementation notes for this direction —
|
|
6606
|
-
* richer than the UI-facing label/body (design tokens, motion specs,
|
|
6607
|
-
* constraints). Delivered verbatim to the worker briefing. */
|
|
6608
7766
|
notes?: string;
|
|
6609
7767
|
};
|
|
6610
7768
|
interface HostVariantWorkItemBase {
|
|
@@ -6613,18 +7771,10 @@ interface HostVariantWorkItemBase {
|
|
|
6613
7771
|
kind: WorkItemKind;
|
|
6614
7772
|
status: WorkItemStatus;
|
|
6615
7773
|
leaseId: string;
|
|
6616
|
-
/** Which party holds the lease (e.g. 'rivet-host-agent', 'rivet-executor').
|
|
6617
|
-
* Hosts must never implement items the executor owns. */
|
|
6618
7774
|
leaseOwner?: string;
|
|
6619
7775
|
attempt: number;
|
|
6620
7776
|
leaseExpiresAt: number;
|
|
6621
7777
|
}
|
|
6622
|
-
/**
|
|
6623
|
-
* User-selected design fidelity for a variants run. Maps to the worker tier
|
|
6624
|
-
* that implements each direction (see `hosts/workerDefaults.ts`): `low` is
|
|
6625
|
-
* fast sketch-grade workers, `high` is frontier-model authorship that can
|
|
6626
|
-
* take a few minutes. Absent means the server default (`high`).
|
|
6627
|
-
*/
|
|
6628
7778
|
export type WorkerFidelity = 'low' | 'medium' | 'high';
|
|
6629
7779
|
export declare const isWorkerFidelity: (value: unknown) => value is WorkerFidelity;
|
|
6630
7780
|
export interface WorkspaceContextAsset {
|
|
@@ -6640,7 +7790,6 @@ export interface HostVariantImplementationWorkItemSnapshot extends HostVariantWo
|
|
|
6640
7790
|
workspace: VariantAssignedWorkspace;
|
|
6641
7791
|
mode: VariantExecutionMode;
|
|
6642
7792
|
direction: VariantWorkerDirection;
|
|
6643
|
-
/** User-selected design fidelity for this run (worker tier selector). */
|
|
6644
7793
|
fidelity?: WorkerFidelity;
|
|
6645
7794
|
sourceDirection?: VariantWorkerDirection;
|
|
6646
7795
|
relevantFiles?: string[];
|
|
@@ -6648,16 +7797,11 @@ export interface HostVariantImplementationWorkItemSnapshot extends HostVariantWo
|
|
|
6648
7797
|
target?: Target;
|
|
6649
7798
|
targetElement?: StaticPreviewTargetElement;
|
|
6650
7799
|
contextBundlePath?: string;
|
|
6651
|
-
/** User-provided reference files copied into the context bundle (images,
|
|
6652
|
-
* design sources). Workers should Read these before implementing — they
|
|
6653
|
-
* are the primary visual signal, richer than any prose in the brief. */
|
|
6654
7800
|
contextFiles?: Array<{
|
|
6655
7801
|
path: string;
|
|
6656
7802
|
label?: string;
|
|
6657
7803
|
}>;
|
|
6658
|
-
/** Caller-supplied files already copied into this work item's workspace. */
|
|
6659
7804
|
contextAssets?: WorkspaceContextAsset[];
|
|
6660
|
-
/** Structural output problem the worker must repair on its single retry. */
|
|
6661
7805
|
qaRetry?: {
|
|
6662
7806
|
summary: string;
|
|
6663
7807
|
};
|
|
@@ -6669,24 +7813,11 @@ export interface HostVariantPlanningWorkItemSnapshot extends HostVariantWorkItem
|
|
|
6669
7813
|
outputSchema: unknown;
|
|
6670
7814
|
}
|
|
6671
7815
|
export type HostVariantWorkItemSnapshot = HostVariantImplementationWorkItemSnapshot | HostVariantPlanningWorkItemSnapshot;
|
|
6672
|
-
/**
|
|
6673
|
-
* Kinds of supporting artifact a variants session can surface to the UI.
|
|
6674
|
-
* `design_context` is the only kind populated today (the DESIGN.md used or
|
|
6675
|
-
* generated for a 0→1 run); the other kinds reserve shape for source
|
|
6676
|
-
* research bundles, QA reports, and persisted asset manifests so the
|
|
6677
|
-
* snapshot contract stays stable as those land.
|
|
6678
|
-
*/
|
|
6679
7816
|
export declare const VARIANT_ARTIFACT_KINDS: readonly ["design_context", "source_context", "qa_report", "asset"];
|
|
6680
7817
|
export type VariantArtifactKind = (typeof VARIANT_ARTIFACT_KINDS)[number];
|
|
6681
7818
|
export type VariantArtifactStatus = 'ready' | 'warning' | 'failed';
|
|
6682
7819
|
export type VariantArtifactSource = 'agent_browser' | 'cache' | 'static' | 'manual';
|
|
6683
7820
|
export type VariantArtifactContentType = 'text/markdown' | 'application/json' | 'text/plain';
|
|
6684
|
-
/**
|
|
6685
|
-
* Stable, transport-safe shape for one supporting artifact attached to a
|
|
6686
|
-
* variants session. `design_context` artifacts expose loopback URLs so the
|
|
6687
|
-
* UI can open raw markdown or a rendered DesignMD view without carrying the
|
|
6688
|
-
* full document in every snapshot.
|
|
6689
|
-
*/
|
|
6690
7821
|
export interface VariantSessionArtifact {
|
|
6691
7822
|
id: string;
|
|
6692
7823
|
kind: VariantArtifactKind;
|
|
@@ -6703,23 +7834,16 @@ export interface VariantSessionArtifact {
|
|
|
6703
7834
|
warnings?: string[];
|
|
6704
7835
|
}
|
|
6705
7836
|
export type VariantQaStatus = 'passed' | 'failed' | 'not_run';
|
|
6706
|
-
/**
|
|
6707
|
-
* Categorical result from checking Rivet-owned output integrity.
|
|
6708
|
-
*/
|
|
6709
7837
|
export type VariantQaIssueKind = 'asset_load_failed' | 'console_error' | 'preview_unavailable' | 'output_integrity' | 'verification_unavailable';
|
|
6710
7838
|
export interface VariantQaIssue {
|
|
6711
7839
|
kind: VariantQaIssueKind;
|
|
6712
|
-
/** Artifact reference or diagnostic source location for this issue. */
|
|
6713
7840
|
detail: string;
|
|
6714
|
-
/** Optional human-readable extra context — e.g. HTTP status, error message. */
|
|
6715
7841
|
message?: string;
|
|
6716
7842
|
}
|
|
6717
7843
|
export interface VariantQaResult {
|
|
6718
7844
|
status: VariantQaStatus;
|
|
6719
7845
|
issues: VariantQaIssue[];
|
|
6720
|
-
/** Compact, user-facing summary suitable for chip + prompt rendering. */
|
|
6721
7846
|
summary: string;
|
|
6722
|
-
/** Source of the inspected preview (the URL or marker the runner used). */
|
|
6723
7847
|
checkedSource?: string;
|
|
6724
7848
|
}
|
|
6725
7849
|
export declare const targetSchema: z.ZodObject<{
|
|
@@ -6738,10 +7862,6 @@ export declare const briefSchema: z.ZodObject<{
|
|
|
6738
7862
|
label: z.ZodString;
|
|
6739
7863
|
body: z.ZodString;
|
|
6740
7864
|
notes: z.ZodOptional<z.ZodString>;
|
|
6741
|
-
/**
|
|
6742
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
6743
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
6744
|
-
*/
|
|
6745
7865
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
6746
7866
|
}, "strip", z.ZodTypeAny, {
|
|
6747
7867
|
label: string;
|
|
@@ -6758,6 +7878,37 @@ export declare const briefSchema: z.ZodObject<{
|
|
|
6758
7878
|
}>;
|
|
6759
7879
|
export type Brief = z.infer<typeof briefSchema>;
|
|
6760
7880
|
export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
7881
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7882
|
+
id: z.ZodString;
|
|
7883
|
+
title: z.ZodString;
|
|
7884
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
7885
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7886
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
7887
|
+
hash: z.ZodString;
|
|
7888
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
7889
|
+
}, "strip", z.ZodTypeAny, {
|
|
7890
|
+
hash: string;
|
|
7891
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7892
|
+
}, {
|
|
7893
|
+
hash: string;
|
|
7894
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7895
|
+
}>>>;
|
|
7896
|
+
}, "strip", z.ZodTypeAny, {
|
|
7897
|
+
id: string;
|
|
7898
|
+
url: string;
|
|
7899
|
+
title: string;
|
|
7900
|
+
image?: {
|
|
7901
|
+
hash: string;
|
|
7902
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7903
|
+
} | undefined;
|
|
7904
|
+
reason?: string | undefined;
|
|
7905
|
+
}, {
|
|
7906
|
+
id: string;
|
|
7907
|
+
url: string;
|
|
7908
|
+
title: string;
|
|
7909
|
+
image?: unknown;
|
|
7910
|
+
reason?: string | undefined;
|
|
7911
|
+
}>, "many">>;
|
|
6761
7912
|
contextBundlePath: z.ZodString;
|
|
6762
7913
|
userContext: z.ZodArray<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
6763
7914
|
id: z.ZodString;
|
|
@@ -6792,6 +7943,37 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
6792
7943
|
}>, z.ZodObject<{
|
|
6793
7944
|
id: z.ZodString;
|
|
6794
7945
|
transport: z.ZodLiteral<"file">;
|
|
7946
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7947
|
+
id: z.ZodString;
|
|
7948
|
+
title: z.ZodString;
|
|
7949
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
7950
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7951
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
7952
|
+
hash: z.ZodString;
|
|
7953
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
7954
|
+
}, "strip", z.ZodTypeAny, {
|
|
7955
|
+
hash: string;
|
|
7956
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7957
|
+
}, {
|
|
7958
|
+
hash: string;
|
|
7959
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7960
|
+
}>>>;
|
|
7961
|
+
}, "strip", z.ZodTypeAny, {
|
|
7962
|
+
id: string;
|
|
7963
|
+
url: string;
|
|
7964
|
+
title: string;
|
|
7965
|
+
image?: {
|
|
7966
|
+
hash: string;
|
|
7967
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7968
|
+
} | undefined;
|
|
7969
|
+
reason?: string | undefined;
|
|
7970
|
+
}, {
|
|
7971
|
+
id: string;
|
|
7972
|
+
url: string;
|
|
7973
|
+
title: string;
|
|
7974
|
+
image?: unknown;
|
|
7975
|
+
reason?: string | undefined;
|
|
7976
|
+
}>, "many">>;
|
|
6795
7977
|
path: z.ZodString;
|
|
6796
7978
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
6797
7979
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -6801,17 +7983,34 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
6801
7983
|
id: string;
|
|
6802
7984
|
path: string;
|
|
6803
7985
|
transport: "file";
|
|
7986
|
+
mimeType?: string | undefined;
|
|
6804
7987
|
label?: string | undefined;
|
|
6805
7988
|
userIntent?: string | undefined;
|
|
6806
|
-
|
|
7989
|
+
references?: {
|
|
7990
|
+
id: string;
|
|
7991
|
+
url: string;
|
|
7992
|
+
title: string;
|
|
7993
|
+
image?: {
|
|
7994
|
+
hash: string;
|
|
7995
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
7996
|
+
} | undefined;
|
|
7997
|
+
reason?: string | undefined;
|
|
7998
|
+
}[] | undefined;
|
|
6807
7999
|
originalFilename?: string | undefined;
|
|
6808
8000
|
}, {
|
|
6809
8001
|
id: string;
|
|
6810
8002
|
path: string;
|
|
6811
8003
|
transport: "file";
|
|
8004
|
+
mimeType?: string | undefined;
|
|
6812
8005
|
label?: string | undefined;
|
|
6813
8006
|
userIntent?: string | undefined;
|
|
6814
|
-
|
|
8007
|
+
references?: {
|
|
8008
|
+
id: string;
|
|
8009
|
+
url: string;
|
|
8010
|
+
title: string;
|
|
8011
|
+
image?: unknown;
|
|
8012
|
+
reason?: string | undefined;
|
|
8013
|
+
}[] | undefined;
|
|
6815
8014
|
originalFilename?: string | undefined;
|
|
6816
8015
|
}>, z.ZodObject<{
|
|
6817
8016
|
id: z.ZodString;
|
|
@@ -6834,6 +8033,37 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
6834
8033
|
}>, z.ZodObject<{
|
|
6835
8034
|
id: z.ZodString;
|
|
6836
8035
|
transport: z.ZodLiteral<"text">;
|
|
8036
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8037
|
+
id: z.ZodString;
|
|
8038
|
+
title: z.ZodString;
|
|
8039
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
8040
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8041
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
8042
|
+
hash: z.ZodString;
|
|
8043
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
8044
|
+
}, "strip", z.ZodTypeAny, {
|
|
8045
|
+
hash: string;
|
|
8046
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8047
|
+
}, {
|
|
8048
|
+
hash: string;
|
|
8049
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8050
|
+
}>>>;
|
|
8051
|
+
}, "strip", z.ZodTypeAny, {
|
|
8052
|
+
id: string;
|
|
8053
|
+
url: string;
|
|
8054
|
+
title: string;
|
|
8055
|
+
image?: {
|
|
8056
|
+
hash: string;
|
|
8057
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8058
|
+
} | undefined;
|
|
8059
|
+
reason?: string | undefined;
|
|
8060
|
+
}, {
|
|
8061
|
+
id: string;
|
|
8062
|
+
url: string;
|
|
8063
|
+
title: string;
|
|
8064
|
+
image?: unknown;
|
|
8065
|
+
reason?: string | undefined;
|
|
8066
|
+
}>, "many">>;
|
|
6837
8067
|
path: z.ZodString;
|
|
6838
8068
|
label: z.ZodOptional<z.ZodString>;
|
|
6839
8069
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -6843,12 +8073,29 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
6843
8073
|
transport: "text";
|
|
6844
8074
|
label?: string | undefined;
|
|
6845
8075
|
userIntent?: string | undefined;
|
|
8076
|
+
references?: {
|
|
8077
|
+
id: string;
|
|
8078
|
+
url: string;
|
|
8079
|
+
title: string;
|
|
8080
|
+
image?: {
|
|
8081
|
+
hash: string;
|
|
8082
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8083
|
+
} | undefined;
|
|
8084
|
+
reason?: string | undefined;
|
|
8085
|
+
}[] | undefined;
|
|
6846
8086
|
}, {
|
|
6847
8087
|
id: string;
|
|
6848
8088
|
path: string;
|
|
6849
8089
|
transport: "text";
|
|
6850
8090
|
label?: string | undefined;
|
|
6851
8091
|
userIntent?: string | undefined;
|
|
8092
|
+
references?: {
|
|
8093
|
+
id: string;
|
|
8094
|
+
url: string;
|
|
8095
|
+
title: string;
|
|
8096
|
+
image?: unknown;
|
|
8097
|
+
reason?: string | undefined;
|
|
8098
|
+
}[] | undefined;
|
|
6852
8099
|
}>]>, "many">;
|
|
6853
8100
|
rivetMetadata: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
6854
8101
|
id: z.ZodString;
|
|
@@ -6861,13 +8108,6 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
6861
8108
|
kind: z.ZodLiteral<"design_system">;
|
|
6862
8109
|
data: z.ZodObject<{
|
|
6863
8110
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
6864
|
-
/**
|
|
6865
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
6866
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
6867
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
6868
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
6869
|
-
* extracted-vs-guessed values.
|
|
6870
|
-
*/
|
|
6871
8111
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
6872
8112
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
6873
8113
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -7021,26 +8261,22 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7021
8261
|
originalFilename: string;
|
|
7022
8262
|
sizeBytes: number;
|
|
7023
8263
|
sha256: string;
|
|
7024
|
-
label?: string | undefined;
|
|
7025
8264
|
mimeType?: string | undefined;
|
|
8265
|
+
label?: string | undefined;
|
|
7026
8266
|
}, {
|
|
7027
8267
|
id: string;
|
|
7028
8268
|
path: string;
|
|
7029
8269
|
originalFilename: string;
|
|
7030
8270
|
sizeBytes: number;
|
|
7031
8271
|
sha256: string;
|
|
7032
|
-
label?: string | undefined;
|
|
7033
8272
|
mimeType?: string | undefined;
|
|
8273
|
+
label?: string | undefined;
|
|
7034
8274
|
}>, "many">>;
|
|
7035
8275
|
brief: z.ZodObject<{
|
|
7036
8276
|
briefId: z.ZodString;
|
|
7037
8277
|
label: z.ZodString;
|
|
7038
8278
|
body: z.ZodString;
|
|
7039
8279
|
notes: z.ZodOptional<z.ZodString>;
|
|
7040
|
-
/**
|
|
7041
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
7042
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
7043
|
-
*/
|
|
7044
8280
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7045
8281
|
}, "strip", z.ZodTypeAny, {
|
|
7046
8282
|
label: string;
|
|
@@ -7079,9 +8315,19 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7079
8315
|
id: string;
|
|
7080
8316
|
path: string;
|
|
7081
8317
|
transport: "file";
|
|
8318
|
+
mimeType?: string | undefined;
|
|
7082
8319
|
label?: string | undefined;
|
|
7083
8320
|
userIntent?: string | undefined;
|
|
7084
|
-
|
|
8321
|
+
references?: {
|
|
8322
|
+
id: string;
|
|
8323
|
+
url: string;
|
|
8324
|
+
title: string;
|
|
8325
|
+
image?: {
|
|
8326
|
+
hash: string;
|
|
8327
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8328
|
+
} | undefined;
|
|
8329
|
+
reason?: string | undefined;
|
|
8330
|
+
}[] | undefined;
|
|
7085
8331
|
originalFilename?: string | undefined;
|
|
7086
8332
|
} | {
|
|
7087
8333
|
id: string;
|
|
@@ -7095,6 +8341,16 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7095
8341
|
transport: "text";
|
|
7096
8342
|
label?: string | undefined;
|
|
7097
8343
|
userIntent?: string | undefined;
|
|
8344
|
+
references?: {
|
|
8345
|
+
id: string;
|
|
8346
|
+
url: string;
|
|
8347
|
+
title: string;
|
|
8348
|
+
image?: {
|
|
8349
|
+
hash: string;
|
|
8350
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8351
|
+
} | undefined;
|
|
8352
|
+
reason?: string | undefined;
|
|
8353
|
+
}[] | undefined;
|
|
7098
8354
|
})[];
|
|
7099
8355
|
rivetMetadata: ({
|
|
7100
8356
|
id: string;
|
|
@@ -7132,14 +8388,24 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7132
8388
|
actionId?: string | undefined;
|
|
7133
8389
|
warnings?: string[] | undefined;
|
|
7134
8390
|
})[];
|
|
8391
|
+
references?: {
|
|
8392
|
+
id: string;
|
|
8393
|
+
url: string;
|
|
8394
|
+
title: string;
|
|
8395
|
+
image?: {
|
|
8396
|
+
hash: string;
|
|
8397
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8398
|
+
} | undefined;
|
|
8399
|
+
reason?: string | undefined;
|
|
8400
|
+
}[] | undefined;
|
|
7135
8401
|
contextAssets?: {
|
|
7136
8402
|
id: string;
|
|
7137
8403
|
path: string;
|
|
7138
8404
|
originalFilename: string;
|
|
7139
8405
|
sizeBytes: number;
|
|
7140
8406
|
sha256: string;
|
|
7141
|
-
label?: string | undefined;
|
|
7142
8407
|
mimeType?: string | undefined;
|
|
8408
|
+
label?: string | undefined;
|
|
7143
8409
|
}[] | undefined;
|
|
7144
8410
|
executionMode?: "static_preview" | "vite_app" | undefined;
|
|
7145
8411
|
}, {
|
|
@@ -7165,9 +8431,16 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7165
8431
|
id: string;
|
|
7166
8432
|
path: string;
|
|
7167
8433
|
transport: "file";
|
|
8434
|
+
mimeType?: string | undefined;
|
|
7168
8435
|
label?: string | undefined;
|
|
7169
8436
|
userIntent?: string | undefined;
|
|
7170
|
-
|
|
8437
|
+
references?: {
|
|
8438
|
+
id: string;
|
|
8439
|
+
url: string;
|
|
8440
|
+
title: string;
|
|
8441
|
+
image?: unknown;
|
|
8442
|
+
reason?: string | undefined;
|
|
8443
|
+
}[] | undefined;
|
|
7171
8444
|
originalFilename?: string | undefined;
|
|
7172
8445
|
} | {
|
|
7173
8446
|
id: string;
|
|
@@ -7181,6 +8454,13 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7181
8454
|
transport: "text";
|
|
7182
8455
|
label?: string | undefined;
|
|
7183
8456
|
userIntent?: string | undefined;
|
|
8457
|
+
references?: {
|
|
8458
|
+
id: string;
|
|
8459
|
+
url: string;
|
|
8460
|
+
title: string;
|
|
8461
|
+
image?: unknown;
|
|
8462
|
+
reason?: string | undefined;
|
|
8463
|
+
}[] | undefined;
|
|
7184
8464
|
})[];
|
|
7185
8465
|
rivetMetadata: ({
|
|
7186
8466
|
id: string;
|
|
@@ -7218,29 +8498,28 @@ export declare const variantWorkItemContextSchema: z.ZodObject<{
|
|
|
7218
8498
|
actionId?: string | undefined;
|
|
7219
8499
|
warnings?: string[] | undefined;
|
|
7220
8500
|
})[];
|
|
8501
|
+
references?: {
|
|
8502
|
+
id: string;
|
|
8503
|
+
url: string;
|
|
8504
|
+
title: string;
|
|
8505
|
+
image?: unknown;
|
|
8506
|
+
reason?: string | undefined;
|
|
8507
|
+
}[] | undefined;
|
|
7221
8508
|
contextAssets?: {
|
|
7222
8509
|
id: string;
|
|
7223
8510
|
path: string;
|
|
7224
8511
|
originalFilename: string;
|
|
7225
8512
|
sizeBytes: number;
|
|
7226
8513
|
sha256: string;
|
|
7227
|
-
label?: string | undefined;
|
|
7228
8514
|
mimeType?: string | undefined;
|
|
8515
|
+
label?: string | undefined;
|
|
7229
8516
|
}[] | undefined;
|
|
7230
8517
|
executionMode?: "static_preview" | "vite_app" | undefined;
|
|
7231
8518
|
}>;
|
|
7232
8519
|
export type VariantWorkItemContext = z.infer<typeof variantWorkItemContextSchema>;
|
|
7233
|
-
/**
|
|
7234
|
-
* Inclusive bounds for the number of variants a single propose_variants run
|
|
7235
|
-
* may produce. Exported as named constants so every variant-request intake
|
|
7236
|
-
* path consumes the same source of truth.
|
|
7237
|
-
*/
|
|
7238
8520
|
export declare const VARIANT_COUNT_MIN = 1;
|
|
7239
8521
|
export declare const VARIANT_COUNT_MAX = 12;
|
|
7240
|
-
/** Configurable via RIVET_DEFAULT_VARIANT_COUNT env var. Clamped to [MIN, MAX]. */
|
|
7241
8522
|
export declare const DEFAULT_VARIANT_COUNT: number;
|
|
7242
|
-
/** Optional agent-supplied label for the *run's* intent, shared by every
|
|
7243
|
-
* variant. Keep it to the prompt's core change, not an evocative name. */
|
|
7244
8523
|
export declare const runLabelSchema: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
7245
8524
|
export declare const proposeVariantsInput: {
|
|
7246
8525
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
@@ -7259,12 +8538,7 @@ export declare const proposeVariantsInput: {
|
|
|
7259
8538
|
}>>;
|
|
7260
8539
|
projectContext: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<Omit<{
|
|
7261
8540
|
kind: z.ZodLiteral<"existing">;
|
|
7262
|
-
/** Absolute project path requested for this existing-project run. Present
|
|
7263
|
-
* when callers target a nested project inside a larger git worktree. */
|
|
7264
8541
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
7265
|
-
/** Optional design context supplied by agents/benchmarks for existing
|
|
7266
|
-
* project runs with visual references. Surfaced as DesignMD artifacts and
|
|
7267
|
-
* available to QA gates, but does not trigger a source-plan stage. */
|
|
7268
8542
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
7269
8543
|
kind: z.ZodLiteral<"slug">;
|
|
7270
8544
|
slug: z.ZodString;
|
|
@@ -7324,6 +8598,37 @@ export declare const proposeVariantsInput: {
|
|
|
7324
8598
|
}>, z.ZodObject<{
|
|
7325
8599
|
id: z.ZodString;
|
|
7326
8600
|
transport: z.ZodLiteral<"file">;
|
|
8601
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8602
|
+
id: z.ZodString;
|
|
8603
|
+
title: z.ZodString;
|
|
8604
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
8605
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8606
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
8607
|
+
hash: z.ZodString;
|
|
8608
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
8609
|
+
}, "strip", z.ZodTypeAny, {
|
|
8610
|
+
hash: string;
|
|
8611
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8612
|
+
}, {
|
|
8613
|
+
hash: string;
|
|
8614
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8615
|
+
}>>>;
|
|
8616
|
+
}, "strip", z.ZodTypeAny, {
|
|
8617
|
+
id: string;
|
|
8618
|
+
url: string;
|
|
8619
|
+
title: string;
|
|
8620
|
+
image?: {
|
|
8621
|
+
hash: string;
|
|
8622
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8623
|
+
} | undefined;
|
|
8624
|
+
reason?: string | undefined;
|
|
8625
|
+
}, {
|
|
8626
|
+
id: string;
|
|
8627
|
+
url: string;
|
|
8628
|
+
title: string;
|
|
8629
|
+
image?: unknown;
|
|
8630
|
+
reason?: string | undefined;
|
|
8631
|
+
}>, "many">>;
|
|
7327
8632
|
path: z.ZodString;
|
|
7328
8633
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
7329
8634
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -7333,17 +8638,34 @@ export declare const proposeVariantsInput: {
|
|
|
7333
8638
|
id: string;
|
|
7334
8639
|
path: string;
|
|
7335
8640
|
transport: "file";
|
|
8641
|
+
mimeType?: string | undefined;
|
|
7336
8642
|
label?: string | undefined;
|
|
7337
8643
|
userIntent?: string | undefined;
|
|
7338
|
-
|
|
8644
|
+
references?: {
|
|
8645
|
+
id: string;
|
|
8646
|
+
url: string;
|
|
8647
|
+
title: string;
|
|
8648
|
+
image?: {
|
|
8649
|
+
hash: string;
|
|
8650
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8651
|
+
} | undefined;
|
|
8652
|
+
reason?: string | undefined;
|
|
8653
|
+
}[] | undefined;
|
|
7339
8654
|
originalFilename?: string | undefined;
|
|
7340
8655
|
}, {
|
|
7341
8656
|
id: string;
|
|
7342
8657
|
path: string;
|
|
7343
8658
|
transport: "file";
|
|
8659
|
+
mimeType?: string | undefined;
|
|
7344
8660
|
label?: string | undefined;
|
|
7345
8661
|
userIntent?: string | undefined;
|
|
7346
|
-
|
|
8662
|
+
references?: {
|
|
8663
|
+
id: string;
|
|
8664
|
+
url: string;
|
|
8665
|
+
title: string;
|
|
8666
|
+
image?: unknown;
|
|
8667
|
+
reason?: string | undefined;
|
|
8668
|
+
}[] | undefined;
|
|
7347
8669
|
originalFilename?: string | undefined;
|
|
7348
8670
|
}>, z.ZodObject<{
|
|
7349
8671
|
id: z.ZodString;
|
|
@@ -7366,6 +8688,37 @@ export declare const proposeVariantsInput: {
|
|
|
7366
8688
|
}>, z.ZodObject<{
|
|
7367
8689
|
id: z.ZodString;
|
|
7368
8690
|
transport: z.ZodLiteral<"text">;
|
|
8691
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8692
|
+
id: z.ZodString;
|
|
8693
|
+
title: z.ZodString;
|
|
8694
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
8695
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8696
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
8697
|
+
hash: z.ZodString;
|
|
8698
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
8699
|
+
}, "strip", z.ZodTypeAny, {
|
|
8700
|
+
hash: string;
|
|
8701
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8702
|
+
}, {
|
|
8703
|
+
hash: string;
|
|
8704
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8705
|
+
}>>>;
|
|
8706
|
+
}, "strip", z.ZodTypeAny, {
|
|
8707
|
+
id: string;
|
|
8708
|
+
url: string;
|
|
8709
|
+
title: string;
|
|
8710
|
+
image?: {
|
|
8711
|
+
hash: string;
|
|
8712
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8713
|
+
} | undefined;
|
|
8714
|
+
reason?: string | undefined;
|
|
8715
|
+
}, {
|
|
8716
|
+
id: string;
|
|
8717
|
+
url: string;
|
|
8718
|
+
title: string;
|
|
8719
|
+
image?: unknown;
|
|
8720
|
+
reason?: string | undefined;
|
|
8721
|
+
}>, "many">>;
|
|
7369
8722
|
path: z.ZodString;
|
|
7370
8723
|
label: z.ZodOptional<z.ZodString>;
|
|
7371
8724
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -7375,12 +8728,29 @@ export declare const proposeVariantsInput: {
|
|
|
7375
8728
|
transport: "text";
|
|
7376
8729
|
label?: string | undefined;
|
|
7377
8730
|
userIntent?: string | undefined;
|
|
8731
|
+
references?: {
|
|
8732
|
+
id: string;
|
|
8733
|
+
url: string;
|
|
8734
|
+
title: string;
|
|
8735
|
+
image?: {
|
|
8736
|
+
hash: string;
|
|
8737
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
8738
|
+
} | undefined;
|
|
8739
|
+
reason?: string | undefined;
|
|
8740
|
+
}[] | undefined;
|
|
7378
8741
|
}, {
|
|
7379
8742
|
id: string;
|
|
7380
8743
|
path: string;
|
|
7381
8744
|
transport: "text";
|
|
7382
8745
|
label?: string | undefined;
|
|
7383
8746
|
userIntent?: string | undefined;
|
|
8747
|
+
references?: {
|
|
8748
|
+
id: string;
|
|
8749
|
+
url: string;
|
|
8750
|
+
title: string;
|
|
8751
|
+
image?: unknown;
|
|
8752
|
+
reason?: string | undefined;
|
|
8753
|
+
}[] | undefined;
|
|
7384
8754
|
}>]>, "many">;
|
|
7385
8755
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
7386
8756
|
id: z.ZodString;
|
|
@@ -7412,13 +8782,6 @@ export declare const proposeVariantsInput: {
|
|
|
7412
8782
|
kind: z.ZodLiteral<"design_system">;
|
|
7413
8783
|
data: z.ZodObject<{
|
|
7414
8784
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
7415
|
-
/**
|
|
7416
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
7417
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
7418
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
7419
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
7420
|
-
* extracted-vs-guessed values.
|
|
7421
|
-
*/
|
|
7422
8785
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
7423
8786
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
7424
8787
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -7572,16 +8935,16 @@ export declare const proposeVariantsInput: {
|
|
|
7572
8935
|
originalFilename: string;
|
|
7573
8936
|
sizeBytes: number;
|
|
7574
8937
|
sha256: string;
|
|
7575
|
-
label?: string | undefined;
|
|
7576
8938
|
mimeType?: string | undefined;
|
|
8939
|
+
label?: string | undefined;
|
|
7577
8940
|
}, {
|
|
7578
8941
|
id: string;
|
|
7579
8942
|
path: string;
|
|
7580
8943
|
originalFilename: string;
|
|
7581
8944
|
sizeBytes: number;
|
|
7582
8945
|
sha256: string;
|
|
7583
|
-
label?: string | undefined;
|
|
7584
8946
|
mimeType?: string | undefined;
|
|
8947
|
+
label?: string | undefined;
|
|
7585
8948
|
}>, "many">>;
|
|
7586
8949
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
7587
8950
|
kind: z.ZodLiteral<"global">;
|
|
@@ -7677,9 +9040,19 @@ export declare const proposeVariantsInput: {
|
|
|
7677
9040
|
id: string;
|
|
7678
9041
|
path: string;
|
|
7679
9042
|
transport: "file";
|
|
9043
|
+
mimeType?: string | undefined;
|
|
7680
9044
|
label?: string | undefined;
|
|
7681
9045
|
userIntent?: string | undefined;
|
|
7682
|
-
|
|
9046
|
+
references?: {
|
|
9047
|
+
id: string;
|
|
9048
|
+
url: string;
|
|
9049
|
+
title: string;
|
|
9050
|
+
image?: {
|
|
9051
|
+
hash: string;
|
|
9052
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9053
|
+
} | undefined;
|
|
9054
|
+
reason?: string | undefined;
|
|
9055
|
+
}[] | undefined;
|
|
7683
9056
|
originalFilename?: string | undefined;
|
|
7684
9057
|
} | {
|
|
7685
9058
|
id: string;
|
|
@@ -7693,6 +9066,16 @@ export declare const proposeVariantsInput: {
|
|
|
7693
9066
|
transport: "text";
|
|
7694
9067
|
label?: string | undefined;
|
|
7695
9068
|
userIntent?: string | undefined;
|
|
9069
|
+
references?: {
|
|
9070
|
+
id: string;
|
|
9071
|
+
url: string;
|
|
9072
|
+
title: string;
|
|
9073
|
+
image?: {
|
|
9074
|
+
hash: string;
|
|
9075
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9076
|
+
} | undefined;
|
|
9077
|
+
reason?: string | undefined;
|
|
9078
|
+
}[] | undefined;
|
|
7696
9079
|
})[];
|
|
7697
9080
|
rivetActions: {
|
|
7698
9081
|
id: string;
|
|
@@ -7743,8 +9126,8 @@ export declare const proposeVariantsInput: {
|
|
|
7743
9126
|
originalFilename: string;
|
|
7744
9127
|
sizeBytes: number;
|
|
7745
9128
|
sha256: string;
|
|
7746
|
-
label?: string | undefined;
|
|
7747
9129
|
mimeType?: string | undefined;
|
|
9130
|
+
label?: string | undefined;
|
|
7748
9131
|
}[] | undefined;
|
|
7749
9132
|
bindings?: ({
|
|
7750
9133
|
kind: "global";
|
|
@@ -7788,9 +9171,16 @@ export declare const proposeVariantsInput: {
|
|
|
7788
9171
|
id: string;
|
|
7789
9172
|
path: string;
|
|
7790
9173
|
transport: "file";
|
|
9174
|
+
mimeType?: string | undefined;
|
|
7791
9175
|
label?: string | undefined;
|
|
7792
9176
|
userIntent?: string | undefined;
|
|
7793
|
-
|
|
9177
|
+
references?: {
|
|
9178
|
+
id: string;
|
|
9179
|
+
url: string;
|
|
9180
|
+
title: string;
|
|
9181
|
+
image?: unknown;
|
|
9182
|
+
reason?: string | undefined;
|
|
9183
|
+
}[] | undefined;
|
|
7794
9184
|
originalFilename?: string | undefined;
|
|
7795
9185
|
} | {
|
|
7796
9186
|
id: string;
|
|
@@ -7804,6 +9194,13 @@ export declare const proposeVariantsInput: {
|
|
|
7804
9194
|
transport: "text";
|
|
7805
9195
|
label?: string | undefined;
|
|
7806
9196
|
userIntent?: string | undefined;
|
|
9197
|
+
references?: {
|
|
9198
|
+
id: string;
|
|
9199
|
+
url: string;
|
|
9200
|
+
title: string;
|
|
9201
|
+
image?: unknown;
|
|
9202
|
+
reason?: string | undefined;
|
|
9203
|
+
}[] | undefined;
|
|
7807
9204
|
})[];
|
|
7808
9205
|
rivetActions: {
|
|
7809
9206
|
id: string;
|
|
@@ -7854,8 +9251,8 @@ export declare const proposeVariantsInput: {
|
|
|
7854
9251
|
originalFilename: string;
|
|
7855
9252
|
sizeBytes: number;
|
|
7856
9253
|
sha256: string;
|
|
7857
|
-
label?: string | undefined;
|
|
7858
9254
|
mimeType?: string | undefined;
|
|
9255
|
+
label?: string | undefined;
|
|
7859
9256
|
}[] | undefined;
|
|
7860
9257
|
bindings?: ({
|
|
7861
9258
|
kind: "global";
|
|
@@ -7906,22 +9303,10 @@ export declare const proposeVariantsInput: {
|
|
|
7906
9303
|
})[] | undefined;
|
|
7907
9304
|
}>, z.ZodObject<Omit<{
|
|
7908
9305
|
kind: z.ZodLiteral<"fresh">;
|
|
7909
|
-
/** Where the generated subproject's files live (e.g.
|
|
7910
|
-
* `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
|
|
7911
|
-
* target — the agent reads/writes index.html, src/, etc. here. */
|
|
7912
9306
|
workspacePath: z.ZodString;
|
|
7913
|
-
/** The user's working directory that owns *all* Rivet artifacts for the
|
|
7914
|
-
* session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
|
|
7915
|
-
* generated subprojects, variant history, and create-project manifests.
|
|
7916
|
-
* Distinct from `path.dirname(workspacePath)` because subprojects nest
|
|
7917
|
-
* inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
|
|
7918
|
-
* not the workspace itself. */
|
|
7919
9307
|
workspaceRoot: z.ZodString;
|
|
7920
9308
|
framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
|
|
7921
9309
|
assetSourceRoot: z.ZodOptional<z.ZodString>;
|
|
7922
|
-
/** Per-variant-slot design context. Slug entries resolve bundled catalog
|
|
7923
|
-
* markdown; markdown entries are written directly as `DESIGN.md`. The
|
|
7924
|
-
* order matches code-gen variant slot order. */
|
|
7925
9310
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
7926
9311
|
kind: z.ZodLiteral<"slug">;
|
|
7927
9312
|
slug: z.ZodString;
|
|
@@ -7981,6 +9366,37 @@ export declare const proposeVariantsInput: {
|
|
|
7981
9366
|
}>, z.ZodObject<{
|
|
7982
9367
|
id: z.ZodString;
|
|
7983
9368
|
transport: z.ZodLiteral<"file">;
|
|
9369
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9370
|
+
id: z.ZodString;
|
|
9371
|
+
title: z.ZodString;
|
|
9372
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
9373
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
9374
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
9375
|
+
hash: z.ZodString;
|
|
9376
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
9377
|
+
}, "strip", z.ZodTypeAny, {
|
|
9378
|
+
hash: string;
|
|
9379
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9380
|
+
}, {
|
|
9381
|
+
hash: string;
|
|
9382
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9383
|
+
}>>>;
|
|
9384
|
+
}, "strip", z.ZodTypeAny, {
|
|
9385
|
+
id: string;
|
|
9386
|
+
url: string;
|
|
9387
|
+
title: string;
|
|
9388
|
+
image?: {
|
|
9389
|
+
hash: string;
|
|
9390
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9391
|
+
} | undefined;
|
|
9392
|
+
reason?: string | undefined;
|
|
9393
|
+
}, {
|
|
9394
|
+
id: string;
|
|
9395
|
+
url: string;
|
|
9396
|
+
title: string;
|
|
9397
|
+
image?: unknown;
|
|
9398
|
+
reason?: string | undefined;
|
|
9399
|
+
}>, "many">>;
|
|
7984
9400
|
path: z.ZodString;
|
|
7985
9401
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
7986
9402
|
originalFilename: z.ZodOptional<z.ZodString>;
|
|
@@ -7990,17 +9406,34 @@ export declare const proposeVariantsInput: {
|
|
|
7990
9406
|
id: string;
|
|
7991
9407
|
path: string;
|
|
7992
9408
|
transport: "file";
|
|
9409
|
+
mimeType?: string | undefined;
|
|
7993
9410
|
label?: string | undefined;
|
|
7994
9411
|
userIntent?: string | undefined;
|
|
7995
|
-
|
|
9412
|
+
references?: {
|
|
9413
|
+
id: string;
|
|
9414
|
+
url: string;
|
|
9415
|
+
title: string;
|
|
9416
|
+
image?: {
|
|
9417
|
+
hash: string;
|
|
9418
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9419
|
+
} | undefined;
|
|
9420
|
+
reason?: string | undefined;
|
|
9421
|
+
}[] | undefined;
|
|
7996
9422
|
originalFilename?: string | undefined;
|
|
7997
9423
|
}, {
|
|
7998
9424
|
id: string;
|
|
7999
9425
|
path: string;
|
|
8000
9426
|
transport: "file";
|
|
9427
|
+
mimeType?: string | undefined;
|
|
8001
9428
|
label?: string | undefined;
|
|
8002
9429
|
userIntent?: string | undefined;
|
|
8003
|
-
|
|
9430
|
+
references?: {
|
|
9431
|
+
id: string;
|
|
9432
|
+
url: string;
|
|
9433
|
+
title: string;
|
|
9434
|
+
image?: unknown;
|
|
9435
|
+
reason?: string | undefined;
|
|
9436
|
+
}[] | undefined;
|
|
8004
9437
|
originalFilename?: string | undefined;
|
|
8005
9438
|
}>, z.ZodObject<{
|
|
8006
9439
|
id: z.ZodString;
|
|
@@ -8023,6 +9456,37 @@ export declare const proposeVariantsInput: {
|
|
|
8023
9456
|
}>, z.ZodObject<{
|
|
8024
9457
|
id: z.ZodString;
|
|
8025
9458
|
transport: z.ZodLiteral<"text">;
|
|
9459
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9460
|
+
id: z.ZodString;
|
|
9461
|
+
title: z.ZodString;
|
|
9462
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
9463
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
9464
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
9465
|
+
hash: z.ZodString;
|
|
9466
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
9467
|
+
}, "strip", z.ZodTypeAny, {
|
|
9468
|
+
hash: string;
|
|
9469
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9470
|
+
}, {
|
|
9471
|
+
hash: string;
|
|
9472
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9473
|
+
}>>>;
|
|
9474
|
+
}, "strip", z.ZodTypeAny, {
|
|
9475
|
+
id: string;
|
|
9476
|
+
url: string;
|
|
9477
|
+
title: string;
|
|
9478
|
+
image?: {
|
|
9479
|
+
hash: string;
|
|
9480
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9481
|
+
} | undefined;
|
|
9482
|
+
reason?: string | undefined;
|
|
9483
|
+
}, {
|
|
9484
|
+
id: string;
|
|
9485
|
+
url: string;
|
|
9486
|
+
title: string;
|
|
9487
|
+
image?: unknown;
|
|
9488
|
+
reason?: string | undefined;
|
|
9489
|
+
}>, "many">>;
|
|
8026
9490
|
path: z.ZodString;
|
|
8027
9491
|
label: z.ZodOptional<z.ZodString>;
|
|
8028
9492
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -8032,12 +9496,29 @@ export declare const proposeVariantsInput: {
|
|
|
8032
9496
|
transport: "text";
|
|
8033
9497
|
label?: string | undefined;
|
|
8034
9498
|
userIntent?: string | undefined;
|
|
9499
|
+
references?: {
|
|
9500
|
+
id: string;
|
|
9501
|
+
url: string;
|
|
9502
|
+
title: string;
|
|
9503
|
+
image?: {
|
|
9504
|
+
hash: string;
|
|
9505
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9506
|
+
} | undefined;
|
|
9507
|
+
reason?: string | undefined;
|
|
9508
|
+
}[] | undefined;
|
|
8035
9509
|
}, {
|
|
8036
9510
|
id: string;
|
|
8037
9511
|
path: string;
|
|
8038
9512
|
transport: "text";
|
|
8039
9513
|
label?: string | undefined;
|
|
8040
9514
|
userIntent?: string | undefined;
|
|
9515
|
+
references?: {
|
|
9516
|
+
id: string;
|
|
9517
|
+
url: string;
|
|
9518
|
+
title: string;
|
|
9519
|
+
image?: unknown;
|
|
9520
|
+
reason?: string | undefined;
|
|
9521
|
+
}[] | undefined;
|
|
8041
9522
|
}>]>, "many">;
|
|
8042
9523
|
rivetActions: z.ZodArray<z.ZodObject<{
|
|
8043
9524
|
id: z.ZodString;
|
|
@@ -8069,13 +9550,6 @@ export declare const proposeVariantsInput: {
|
|
|
8069
9550
|
kind: z.ZodLiteral<"design_system">;
|
|
8070
9551
|
data: z.ZodObject<{
|
|
8071
9552
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
8072
|
-
/**
|
|
8073
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
8074
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
8075
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
8076
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
8077
|
-
* extracted-vs-guessed values.
|
|
8078
|
-
*/
|
|
8079
9553
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
8080
9554
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
8081
9555
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -8229,16 +9703,16 @@ export declare const proposeVariantsInput: {
|
|
|
8229
9703
|
originalFilename: string;
|
|
8230
9704
|
sizeBytes: number;
|
|
8231
9705
|
sha256: string;
|
|
8232
|
-
label?: string | undefined;
|
|
8233
9706
|
mimeType?: string | undefined;
|
|
9707
|
+
label?: string | undefined;
|
|
8234
9708
|
}, {
|
|
8235
9709
|
id: string;
|
|
8236
9710
|
path: string;
|
|
8237
9711
|
originalFilename: string;
|
|
8238
9712
|
sizeBytes: number;
|
|
8239
9713
|
sha256: string;
|
|
8240
|
-
label?: string | undefined;
|
|
8241
9714
|
mimeType?: string | undefined;
|
|
9715
|
+
label?: string | undefined;
|
|
8242
9716
|
}>, "many">>;
|
|
8243
9717
|
bindings: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
8244
9718
|
kind: z.ZodLiteral<"global">;
|
|
@@ -8334,9 +9808,19 @@ export declare const proposeVariantsInput: {
|
|
|
8334
9808
|
id: string;
|
|
8335
9809
|
path: string;
|
|
8336
9810
|
transport: "file";
|
|
9811
|
+
mimeType?: string | undefined;
|
|
8337
9812
|
label?: string | undefined;
|
|
8338
9813
|
userIntent?: string | undefined;
|
|
8339
|
-
|
|
9814
|
+
references?: {
|
|
9815
|
+
id: string;
|
|
9816
|
+
url: string;
|
|
9817
|
+
title: string;
|
|
9818
|
+
image?: {
|
|
9819
|
+
hash: string;
|
|
9820
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9821
|
+
} | undefined;
|
|
9822
|
+
reason?: string | undefined;
|
|
9823
|
+
}[] | undefined;
|
|
8340
9824
|
originalFilename?: string | undefined;
|
|
8341
9825
|
} | {
|
|
8342
9826
|
id: string;
|
|
@@ -8350,6 +9834,16 @@ export declare const proposeVariantsInput: {
|
|
|
8350
9834
|
transport: "text";
|
|
8351
9835
|
label?: string | undefined;
|
|
8352
9836
|
userIntent?: string | undefined;
|
|
9837
|
+
references?: {
|
|
9838
|
+
id: string;
|
|
9839
|
+
url: string;
|
|
9840
|
+
title: string;
|
|
9841
|
+
image?: {
|
|
9842
|
+
hash: string;
|
|
9843
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
9844
|
+
} | undefined;
|
|
9845
|
+
reason?: string | undefined;
|
|
9846
|
+
}[] | undefined;
|
|
8353
9847
|
})[];
|
|
8354
9848
|
rivetActions: {
|
|
8355
9849
|
id: string;
|
|
@@ -8400,8 +9894,8 @@ export declare const proposeVariantsInput: {
|
|
|
8400
9894
|
originalFilename: string;
|
|
8401
9895
|
sizeBytes: number;
|
|
8402
9896
|
sha256: string;
|
|
8403
|
-
label?: string | undefined;
|
|
8404
9897
|
mimeType?: string | undefined;
|
|
9898
|
+
label?: string | undefined;
|
|
8405
9899
|
}[] | undefined;
|
|
8406
9900
|
bindings?: ({
|
|
8407
9901
|
kind: "global";
|
|
@@ -8445,9 +9939,16 @@ export declare const proposeVariantsInput: {
|
|
|
8445
9939
|
id: string;
|
|
8446
9940
|
path: string;
|
|
8447
9941
|
transport: "file";
|
|
9942
|
+
mimeType?: string | undefined;
|
|
8448
9943
|
label?: string | undefined;
|
|
8449
9944
|
userIntent?: string | undefined;
|
|
8450
|
-
|
|
9945
|
+
references?: {
|
|
9946
|
+
id: string;
|
|
9947
|
+
url: string;
|
|
9948
|
+
title: string;
|
|
9949
|
+
image?: unknown;
|
|
9950
|
+
reason?: string | undefined;
|
|
9951
|
+
}[] | undefined;
|
|
8451
9952
|
originalFilename?: string | undefined;
|
|
8452
9953
|
} | {
|
|
8453
9954
|
id: string;
|
|
@@ -8461,6 +9962,13 @@ export declare const proposeVariantsInput: {
|
|
|
8461
9962
|
transport: "text";
|
|
8462
9963
|
label?: string | undefined;
|
|
8463
9964
|
userIntent?: string | undefined;
|
|
9965
|
+
references?: {
|
|
9966
|
+
id: string;
|
|
9967
|
+
url: string;
|
|
9968
|
+
title: string;
|
|
9969
|
+
image?: unknown;
|
|
9970
|
+
reason?: string | undefined;
|
|
9971
|
+
}[] | undefined;
|
|
8464
9972
|
})[];
|
|
8465
9973
|
rivetActions: {
|
|
8466
9974
|
id: string;
|
|
@@ -8511,8 +10019,8 @@ export declare const proposeVariantsInput: {
|
|
|
8511
10019
|
originalFilename: string;
|
|
8512
10020
|
sizeBytes: number;
|
|
8513
10021
|
sha256: string;
|
|
8514
|
-
label?: string | undefined;
|
|
8515
10022
|
mimeType?: string | undefined;
|
|
10023
|
+
label?: string | undefined;
|
|
8516
10024
|
}[] | undefined;
|
|
8517
10025
|
bindings?: ({
|
|
8518
10026
|
kind: "global";
|
|
@@ -8539,10 +10047,6 @@ export declare const proposeVariantsInput: {
|
|
|
8539
10047
|
userQuestion?: string | undefined;
|
|
8540
10048
|
} | undefined;
|
|
8541
10049
|
}>>;
|
|
8542
|
-
/** Agent-supplied execution plan from `report_source_plan`. Drives the
|
|
8543
|
-
* generation routing decision at approve() time: `static_preview` keeps
|
|
8544
|
-
* the lightweight HTML-only path; `vite_app` provisions a real Vite
|
|
8545
|
-
* worktree per variant and copies any large assets from `assetPlan`. */
|
|
8546
10050
|
executionPlan: z.ZodOptional<z.ZodObject<{
|
|
8547
10051
|
mode: z.ZodEnum<["static_preview", "vite_app"]>;
|
|
8548
10052
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
@@ -8659,10 +10163,6 @@ export declare const reportVariantBriefsInput: {
|
|
|
8659
10163
|
label: z.ZodString;
|
|
8660
10164
|
body: z.ZodString;
|
|
8661
10165
|
notes: z.ZodOptional<z.ZodString>;
|
|
8662
|
-
/**
|
|
8663
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
8664
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
8665
|
-
*/
|
|
8666
10166
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
8667
10167
|
}, "strip", z.ZodTypeAny, {
|
|
8668
10168
|
label: string;
|
|
@@ -8712,17 +10212,6 @@ export declare const reportVariantBriefsInput: {
|
|
|
8712
10212
|
metadataIds?: string[] | undefined;
|
|
8713
10213
|
}>]>, "many">>;
|
|
8714
10214
|
};
|
|
8715
|
-
/**
|
|
8716
|
-
* Canonical planning artifact reported by the agent in a single tool call.
|
|
8717
|
-
* The agent inspects raw `userContext` natively, selects Rivet actions from
|
|
8718
|
-
* `input.availableActions`, and reports the additive metadata those actions
|
|
8719
|
-
* produce plus the static_preview vs vite_app execution decision. `actions`
|
|
8720
|
-
* and `metadata` are required (each reported action must produce its matching
|
|
8721
|
-
* metadata kind); `bindings` is optional and scopes context per variant slot.
|
|
8722
|
-
* The legacy summary-first fields (`sourceIntent`, `sourceContext`,
|
|
8723
|
-
* `designContexts`) are intentionally absent — derived guidance now comes
|
|
8724
|
-
* from action metadata.
|
|
8725
|
-
*/
|
|
8726
10215
|
export declare const sourcePlanArtifactSchema: z.ZodObject<{
|
|
8727
10216
|
actions: z.ZodArray<z.ZodObject<{
|
|
8728
10217
|
id: z.ZodString;
|
|
@@ -8754,13 +10243,6 @@ export declare const sourcePlanArtifactSchema: z.ZodObject<{
|
|
|
8754
10243
|
kind: z.ZodLiteral<"design_system">;
|
|
8755
10244
|
data: z.ZodObject<{
|
|
8756
10245
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
8757
|
-
/**
|
|
8758
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
8759
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
8760
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
8761
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
8762
|
-
* extracted-vs-guessed values.
|
|
8763
|
-
*/
|
|
8764
10246
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
8765
10247
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
8766
10248
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -9150,13 +10632,6 @@ export declare const reportSourcePlanInput: {
|
|
|
9150
10632
|
kind: z.ZodLiteral<"design_system">;
|
|
9151
10633
|
data: z.ZodObject<{
|
|
9152
10634
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
9153
|
-
/**
|
|
9154
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
9155
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
9156
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
9157
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
9158
|
-
* extracted-vs-guessed values.
|
|
9159
|
-
*/
|
|
9160
10635
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
9161
10636
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
9162
10637
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -9620,16 +11095,6 @@ export type ReportVariantCompleteInput = {
|
|
|
9620
11095
|
title?: string;
|
|
9621
11096
|
description?: string;
|
|
9622
11097
|
};
|
|
9623
|
-
/**
|
|
9624
|
-
* Unified hand-back tool that replaces `report_variant_briefs`,
|
|
9625
|
-
* `report_source_plan`, and `report_variant_complete`. The three share the
|
|
9626
|
-
* lease header (sessionId/workItemId/attempt/leaseId) and differ only by
|
|
9627
|
-
* payload, so they collapse behind a `kind` discriminator — the same pattern
|
|
9628
|
-
* `continue_variants(action=...)` uses. Because `mcp.tool()` takes a flat
|
|
9629
|
-
* ZodRawShape (not a top-level discriminated union), all payload fields are
|
|
9630
|
-
* optional here and the handler validates the per-kind requirements at runtime
|
|
9631
|
-
* (e.g. `kind:'status'` requires `leaseId` + `status`).
|
|
9632
|
-
*/
|
|
9633
11098
|
export declare const reportWorkItemInput: {
|
|
9634
11099
|
kind: z.ZodEnum<["brief", "source_plan", "status"]>;
|
|
9635
11100
|
sessionId: z.ZodString;
|
|
@@ -9641,10 +11106,6 @@ export declare const reportWorkItemInput: {
|
|
|
9641
11106
|
label: z.ZodString;
|
|
9642
11107
|
body: z.ZodString;
|
|
9643
11108
|
notes: z.ZodOptional<z.ZodString>;
|
|
9644
|
-
/**
|
|
9645
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
9646
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
9647
|
-
*/
|
|
9648
11109
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
9649
11110
|
}, "strip", z.ZodTypeAny, {
|
|
9650
11111
|
label: string;
|
|
@@ -9724,13 +11185,6 @@ export declare const reportWorkItemInput: {
|
|
|
9724
11185
|
kind: z.ZodLiteral<"design_system">;
|
|
9725
11186
|
data: z.ZodObject<{
|
|
9726
11187
|
designMarkdown: z.ZodOptional<z.ZodString>;
|
|
9727
|
-
/**
|
|
9728
|
-
* Provenance for the design system: `captured` = derived from rendered
|
|
9729
|
-
* browser evidence (e.g. `capture_design_evidence`); `partial` = some
|
|
9730
|
-
* evidence, gaps filled by inference; `inferred` = no rendered evidence
|
|
9731
|
-
* (static fetch / native inspection only). Keeps DESIGN.md honest about
|
|
9732
|
-
* extracted-vs-guessed values.
|
|
9733
|
-
*/
|
|
9734
11188
|
evidenceStatus: z.ZodOptional<z.ZodEnum<["captured", "partial", "inferred"]>>;
|
|
9735
11189
|
sourceFindings: z.ZodArray<z.ZodString, "many">;
|
|
9736
11190
|
sectionInventory: z.ZodArray<z.ZodString, "many">;
|
|
@@ -10146,20 +11600,11 @@ export type CancelVariantOutput = {
|
|
|
10146
11600
|
message: string;
|
|
10147
11601
|
};
|
|
10148
11602
|
export declare const startVariantsMode: z.ZodEnum<["existing", "zero_to_one"]>;
|
|
10149
|
-
/**
|
|
10150
|
-
* Brief content supplied by the agent through `start_variants`. The server
|
|
10151
|
-
* generates briefIds, so the agent only provides label + body (and an
|
|
10152
|
-
* optional visualReferenceUrl). Shape matches `briefSchema` minus briefId.
|
|
10153
|
-
*/
|
|
10154
11603
|
export declare const startVariantsBriefContent: z.ZodObject<Omit<{
|
|
10155
11604
|
briefId: z.ZodString;
|
|
10156
11605
|
label: z.ZodString;
|
|
10157
11606
|
body: z.ZodString;
|
|
10158
11607
|
notes: z.ZodOptional<z.ZodString>;
|
|
10159
|
-
/**
|
|
10160
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
10161
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
10162
|
-
*/
|
|
10163
11608
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10164
11609
|
}, "briefId">, "strip", z.ZodTypeAny, {
|
|
10165
11610
|
label: string;
|
|
@@ -10187,24 +11632,11 @@ export declare const startVariantsInput: {
|
|
|
10187
11632
|
ref: string;
|
|
10188
11633
|
}>>;
|
|
10189
11634
|
runLabel: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10190
|
-
/**
|
|
10191
|
-
* Per-variant briefs supplied by the agent. When omitted, the server
|
|
10192
|
-
* derives a shared run-intent label per slot from `runLabel` (or the
|
|
10193
|
-
* prompt) — e.g. "Brighter 1", "Brighter 2" — plus the prompt as each
|
|
10194
|
-
* body, identically for fresh and existing runs. UI shows the label/body
|
|
10195
|
-
* as the variant name/description, so the agent should still supply briefs
|
|
10196
|
-
* for distinct, human-readable directions. When `briefs` is provided, its
|
|
10197
|
-
* length determines the variant count (overriding any explicit `count`).
|
|
10198
|
-
*/
|
|
10199
11635
|
briefs: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
10200
11636
|
briefId: z.ZodString;
|
|
10201
11637
|
label: z.ZodString;
|
|
10202
11638
|
body: z.ZodString;
|
|
10203
11639
|
notes: z.ZodOptional<z.ZodString>;
|
|
10204
|
-
/**
|
|
10205
|
-
* Optional per-brief visual reference URL. Uses the same synchronous
|
|
10206
|
-
* network-target guard as inspiration URLs before downstream agents fetch it.
|
|
10207
|
-
*/
|
|
10208
11640
|
visualReferenceUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10209
11641
|
}, "briefId">, "strip", z.ZodTypeAny, {
|
|
10210
11642
|
label: string;
|
|
@@ -10217,18 +11649,9 @@ export declare const startVariantsInput: {
|
|
|
10217
11649
|
notes?: string | undefined;
|
|
10218
11650
|
visualReferenceUrl?: string | undefined;
|
|
10219
11651
|
}>, "many">>;
|
|
10220
|
-
/** Zero-to-one only: framework for the scaffolded project. Defaults to 'vite'. */
|
|
10221
11652
|
framework: z.ZodOptional<z.ZodEnum<["vite"]>>;
|
|
10222
|
-
/** Zero-to-one only: absolute parent directory under which Rivet derives
|
|
10223
|
-
* a slugified project folder. Defaults to the user's home dir. */
|
|
10224
11653
|
destinationParent: z.ZodOptional<z.ZodString>;
|
|
10225
|
-
/** Existing only: absolute path to the project. Defaults to the MCP
|
|
10226
|
-
* server's current working directory. Used to detect framework and
|
|
10227
|
-
* auto-open the visual editor without a separate project-detection call. */
|
|
10228
11654
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
10229
|
-
/** Per-variant-slot design context (slug entries resolve bundled catalog
|
|
10230
|
-
* markdown; markdown entries are written directly as DESIGN.md). Slot order
|
|
10231
|
-
* matches variant order. */
|
|
10232
11655
|
designContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
10233
11656
|
kind: z.ZodLiteral<"slug">;
|
|
10234
11657
|
slug: z.ZodString;
|
|
@@ -10251,12 +11674,6 @@ export declare const startVariantsInput: {
|
|
|
10251
11674
|
content: string;
|
|
10252
11675
|
label: string;
|
|
10253
11676
|
}>]>, "many">>;
|
|
10254
|
-
/** Optional raw sources attached by the caller — inspiration URLs, local
|
|
10255
|
-
* images/videos, uploaded image data URLs, directories, or pasted text.
|
|
10256
|
-
* Rivet stores these as
|
|
10257
|
-
* read-only user context (the variant context bundle) and, for fresh
|
|
10258
|
-
* source-grounded runs, lets source planning decide what metadata actions
|
|
10259
|
-
* to derive. The sole source-intake field. */
|
|
10260
11677
|
userContext: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
|
|
10261
11678
|
transport: z.ZodLiteral<"url">;
|
|
10262
11679
|
url: z.ZodString;
|
|
@@ -10281,17 +11698,48 @@ export declare const startVariantsInput: {
|
|
|
10281
11698
|
}, "strip", z.ZodTypeAny, {
|
|
10282
11699
|
path: string;
|
|
10283
11700
|
transport: "file_path";
|
|
11701
|
+
mimeType?: string | undefined;
|
|
10284
11702
|
label?: string | undefined;
|
|
10285
11703
|
userIntent?: string | undefined;
|
|
10286
|
-
mimeType?: string | undefined;
|
|
10287
11704
|
}, {
|
|
10288
11705
|
path: string;
|
|
10289
11706
|
transport: "file_path";
|
|
11707
|
+
mimeType?: string | undefined;
|
|
10290
11708
|
label?: string | undefined;
|
|
10291
11709
|
userIntent?: string | undefined;
|
|
10292
|
-
mimeType?: string | undefined;
|
|
10293
11710
|
}>, z.ZodObject<{
|
|
10294
11711
|
transport: z.ZodLiteral<"upload">;
|
|
11712
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11713
|
+
id: z.ZodString;
|
|
11714
|
+
title: z.ZodString;
|
|
11715
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
11716
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
11717
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
11718
|
+
hash: z.ZodString;
|
|
11719
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
11720
|
+
}, "strip", z.ZodTypeAny, {
|
|
11721
|
+
hash: string;
|
|
11722
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11723
|
+
}, {
|
|
11724
|
+
hash: string;
|
|
11725
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11726
|
+
}>>>;
|
|
11727
|
+
}, "strip", z.ZodTypeAny, {
|
|
11728
|
+
id: string;
|
|
11729
|
+
url: string;
|
|
11730
|
+
title: string;
|
|
11731
|
+
image?: {
|
|
11732
|
+
hash: string;
|
|
11733
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11734
|
+
} | undefined;
|
|
11735
|
+
reason?: string | undefined;
|
|
11736
|
+
}, {
|
|
11737
|
+
id: string;
|
|
11738
|
+
url: string;
|
|
11739
|
+
title: string;
|
|
11740
|
+
image?: unknown;
|
|
11741
|
+
reason?: string | undefined;
|
|
11742
|
+
}>, "many">>;
|
|
10295
11743
|
dataUrl: z.ZodString;
|
|
10296
11744
|
filename: z.ZodOptional<z.ZodString>;
|
|
10297
11745
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -10301,12 +11749,29 @@ export declare const startVariantsInput: {
|
|
|
10301
11749
|
dataUrl: string;
|
|
10302
11750
|
label?: string | undefined;
|
|
10303
11751
|
userIntent?: string | undefined;
|
|
11752
|
+
references?: {
|
|
11753
|
+
id: string;
|
|
11754
|
+
url: string;
|
|
11755
|
+
title: string;
|
|
11756
|
+
image?: {
|
|
11757
|
+
hash: string;
|
|
11758
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11759
|
+
} | undefined;
|
|
11760
|
+
reason?: string | undefined;
|
|
11761
|
+
}[] | undefined;
|
|
10304
11762
|
filename?: string | undefined;
|
|
10305
11763
|
}, {
|
|
10306
11764
|
transport: "upload";
|
|
10307
11765
|
dataUrl: string;
|
|
10308
11766
|
label?: string | undefined;
|
|
10309
11767
|
userIntent?: string | undefined;
|
|
11768
|
+
references?: {
|
|
11769
|
+
id: string;
|
|
11770
|
+
url: string;
|
|
11771
|
+
title: string;
|
|
11772
|
+
image?: unknown;
|
|
11773
|
+
reason?: string | undefined;
|
|
11774
|
+
}[] | undefined;
|
|
10310
11775
|
filename?: string | undefined;
|
|
10311
11776
|
}>, z.ZodObject<{
|
|
10312
11777
|
transport: z.ZodLiteral<"directory_path">;
|
|
@@ -10325,6 +11790,37 @@ export declare const startVariantsInput: {
|
|
|
10325
11790
|
userIntent?: string | undefined;
|
|
10326
11791
|
}>, z.ZodObject<{
|
|
10327
11792
|
transport: z.ZodLiteral<"text">;
|
|
11793
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11794
|
+
id: z.ZodString;
|
|
11795
|
+
title: z.ZodString;
|
|
11796
|
+
url: z.ZodEffects<z.ZodString, string, string>;
|
|
11797
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
11798
|
+
image: z.ZodCatch<z.ZodOptional<z.ZodObject<{
|
|
11799
|
+
hash: z.ZodString;
|
|
11800
|
+
mimeType: z.ZodEnum<["image/png", "image/jpeg", "image/webp", "image/gif", "image/avif"]>;
|
|
11801
|
+
}, "strip", z.ZodTypeAny, {
|
|
11802
|
+
hash: string;
|
|
11803
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11804
|
+
}, {
|
|
11805
|
+
hash: string;
|
|
11806
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11807
|
+
}>>>;
|
|
11808
|
+
}, "strip", z.ZodTypeAny, {
|
|
11809
|
+
id: string;
|
|
11810
|
+
url: string;
|
|
11811
|
+
title: string;
|
|
11812
|
+
image?: {
|
|
11813
|
+
hash: string;
|
|
11814
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11815
|
+
} | undefined;
|
|
11816
|
+
reason?: string | undefined;
|
|
11817
|
+
}, {
|
|
11818
|
+
id: string;
|
|
11819
|
+
url: string;
|
|
11820
|
+
title: string;
|
|
11821
|
+
image?: unknown;
|
|
11822
|
+
reason?: string | undefined;
|
|
11823
|
+
}>, "many">>;
|
|
10328
11824
|
content: z.ZodString;
|
|
10329
11825
|
label: z.ZodOptional<z.ZodString>;
|
|
10330
11826
|
userIntent: z.ZodOptional<z.ZodString>;
|
|
@@ -10333,21 +11829,31 @@ export declare const startVariantsInput: {
|
|
|
10333
11829
|
transport: "text";
|
|
10334
11830
|
label?: string | undefined;
|
|
10335
11831
|
userIntent?: string | undefined;
|
|
11832
|
+
references?: {
|
|
11833
|
+
id: string;
|
|
11834
|
+
url: string;
|
|
11835
|
+
title: string;
|
|
11836
|
+
image?: {
|
|
11837
|
+
hash: string;
|
|
11838
|
+
mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";
|
|
11839
|
+
} | undefined;
|
|
11840
|
+
reason?: string | undefined;
|
|
11841
|
+
}[] | undefined;
|
|
10336
11842
|
}, {
|
|
10337
11843
|
content: string;
|
|
10338
11844
|
transport: "text";
|
|
10339
11845
|
label?: string | undefined;
|
|
10340
11846
|
userIntent?: string | undefined;
|
|
11847
|
+
references?: {
|
|
11848
|
+
id: string;
|
|
11849
|
+
url: string;
|
|
11850
|
+
title: string;
|
|
11851
|
+
image?: unknown;
|
|
11852
|
+
reason?: string | undefined;
|
|
11853
|
+
}[] | undefined;
|
|
10341
11854
|
}>]>, "many">>;
|
|
10342
11855
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
10343
|
-
/** UI correlation id of the originating change batch (its agentRunId), echoed
|
|
10344
|
-
* back to the agent on a variant-request batch. Stamped onto each spawned
|
|
10345
|
-
* variant so the panel maps its optimistic placeholders to the real cards —
|
|
10346
|
-
* pass it through verbatim. Distinct from `clientRequestId` (MCP-call
|
|
10347
|
-
* idempotency). */
|
|
10348
11856
|
requestId: z.ZodOptional<z.ZodString>;
|
|
10349
|
-
/** Parent variant to seed from when varying an existing code_gen direction.
|
|
10350
|
-
* Pass the batch `target.variantId` when the UI targets a specific variant. */
|
|
10351
11857
|
sourceVariantId: z.ZodOptional<z.ZodString>;
|
|
10352
11858
|
};
|
|
10353
11859
|
export type StartVariantsBriefContent = z.infer<typeof startVariantsBriefContent>;
|
|
@@ -10365,47 +11871,29 @@ export type StartVariantsInput = {
|
|
|
10365
11871
|
clientRequestId?: string;
|
|
10366
11872
|
requestId?: string;
|
|
10367
11873
|
briefs?: StartVariantsBriefContent[];
|
|
10368
|
-
/** Parent variant workItemId to fork from when accumulating a Vary batch. */
|
|
10369
11874
|
sourceVariantId?: string;
|
|
10370
11875
|
};
|
|
10371
|
-
/**
|
|
10372
|
-
* Variant entry in the start_variants response. Carries everything the
|
|
10373
|
-
* agent needs to begin code-gen immediately — no follow-up
|
|
10374
|
-
* continue_variants(request_work) call required.
|
|
10375
|
-
*/
|
|
10376
11876
|
export interface StartedVariantDescriptor {
|
|
10377
11877
|
variantId: string;
|
|
10378
11878
|
briefId: string;
|
|
10379
11879
|
label: string;
|
|
10380
11880
|
status: 'pending';
|
|
10381
|
-
/** Same payload `continue_variants(request_work)` would return per
|
|
10382
|
-
* leased item: kind, attempt, dependsOn, input (with worktreePath),
|
|
10383
|
-
* output_schema. */
|
|
10384
11881
|
workItem: LeasedWorkItemDescriptor;
|
|
10385
11882
|
}
|
|
10386
11883
|
export type StartVariantsOutput = {
|
|
10387
11884
|
sessionId: string;
|
|
10388
11885
|
stage: 'work_items_ready';
|
|
10389
11886
|
mode: 'existing' | 'zero_to_one';
|
|
10390
|
-
/** Lease covers every variant in the `variants` array. The agent
|
|
10391
|
-
* passes this back to `report_variant_complete` for each item. */
|
|
10392
11887
|
leaseId: string;
|
|
10393
11888
|
leaseTtlMs: number;
|
|
10394
11889
|
variants: StartedVariantDescriptor[];
|
|
10395
11890
|
scaffoldBaseWorkItemId: string | null;
|
|
10396
|
-
/** Populated only for zero_to_one: the future project directory. */
|
|
10397
11891
|
destinationPath?: string;
|
|
10398
|
-
/** Populated when the server opened the editor server-side — for
|
|
10399
|
-
* zero_to_one always, for existing when projectPath was provided
|
|
10400
|
-
* or could be detected. */
|
|
10401
11892
|
visualEditor?: VisualEditorAttachment;
|
|
10402
|
-
/** Detected framework / project metadata (existing mode), so the
|
|
10403
|
-
* agent doesn't need a separate project-detection call. */
|
|
10404
11893
|
project?: {
|
|
10405
11894
|
projectPath: string;
|
|
10406
11895
|
framework: string;
|
|
10407
11896
|
};
|
|
10408
|
-
/** FIFO depth of queued variant-request/refine batches at response time. */
|
|
10409
11897
|
pendingVariantRequests?: number;
|
|
10410
11898
|
nextAction: 'report_work_item';
|
|
10411
11899
|
} | {
|
|
@@ -10499,12 +11987,6 @@ export type ReportSourcePlanOutput = {
|
|
|
10499
11987
|
errorCode: ErrorCode;
|
|
10500
11988
|
message: string;
|
|
10501
11989
|
};
|
|
10502
|
-
/**
|
|
10503
|
-
* Depth of the server's variant-request/refine FIFO at response-build time —
|
|
10504
|
-
* AFTER any batch this call just consumed. Surfaced on agent-facing tool
|
|
10505
|
-
* responses so callers can detect stranded batches still queued. Optional so
|
|
10506
|
-
* older call sites that don't populate it stay valid.
|
|
10507
|
-
*/
|
|
10508
11990
|
export type PendingVariantRequestsField = {
|
|
10509
11991
|
pendingVariantRequests?: number;
|
|
10510
11992
|
};
|
|
@@ -10537,13 +12019,7 @@ export type ContinueVariantsOutput = ({
|
|
|
10537
12019
|
} & PendingVariantRequestsField) | ({
|
|
10538
12020
|
stage: 'ready' | 'degraded' | 'failed' | 'cancelled';
|
|
10539
12021
|
summary: TerminalSummary;
|
|
10540
|
-
/** Human-readable retry/continue/cancel prompt populated when any
|
|
10541
|
-
* succeeded-then-QA-failed variant is present in the summary. The
|
|
10542
|
-
* calling agent should surface this directly to the user. */
|
|
10543
12022
|
qaPrompt?: string;
|
|
10544
|
-
/** Per-variant QA verdicts for variants with a `qa` result. Only
|
|
10545
|
-
* variants with a non-`not_run` status are included so the field
|
|
10546
|
-
* stays empty when nothing interesting has happened. */
|
|
10547
12023
|
qa?: Array<{
|
|
10548
12024
|
workItemId: string;
|
|
10549
12025
|
label?: string;
|
|
@@ -10556,26 +12032,14 @@ export type ReportVariantCompleteOutput = {
|
|
|
10556
12032
|
ready: number;
|
|
10557
12033
|
total: number;
|
|
10558
12034
|
};
|
|
10559
|
-
/** Set when THIS reported variant did not pass the QA gate and was
|
|
10560
|
-
* re-queued for its single regeneration. It is no longer counted as
|
|
10561
|
-
* done — the agent MUST re-lease it via
|
|
10562
|
-
* continue_variants(action='request_work'), address the QA notes, then
|
|
10563
|
-
* report_variant_complete again. Absent on a normal "sibling still in
|
|
10564
|
-
* flight" wait, so the agent can tell the two apart. */
|
|
10565
12035
|
regenerate?: true;
|
|
10566
|
-
/** Actionable regeneration instruction to act on (and surface to the
|
|
10567
|
-
* user). Populated alongside `regenerate`. */
|
|
10568
12036
|
qaPrompt?: string;
|
|
10569
|
-
/** The QA verdict that triggered the requeue. */
|
|
10570
12037
|
qa?: Array<{
|
|
10571
12038
|
workItemId: string;
|
|
10572
12039
|
label?: string;
|
|
10573
12040
|
qa: VariantQaResult;
|
|
10574
12041
|
}>;
|
|
10575
12042
|
} | {
|
|
10576
|
-
/** The reported work item was removed/cancelled out from under the agent
|
|
10577
|
-
* (delete-while-loading, cancel_variant, session cancel). Stop this work
|
|
10578
|
-
* item immediately — do NOT retry or re-report it — and move on. */
|
|
10579
12043
|
aborted: true;
|
|
10580
12044
|
stage: Stage;
|
|
10581
12045
|
progress: {
|
|
@@ -10585,7 +12049,6 @@ export type ReportVariantCompleteOutput = {
|
|
|
10585
12049
|
} | {
|
|
10586
12050
|
stage: 'ready' | 'degraded' | 'failed' | 'cancelled';
|
|
10587
12051
|
summary: TerminalSummary;
|
|
10588
|
-
/** See `ContinueVariantsOutput.qaPrompt`. */
|
|
10589
12052
|
qaPrompt?: string;
|
|
10590
12053
|
qa?: Array<{
|
|
10591
12054
|
workItemId: string;
|
|
@@ -10677,11 +12140,8 @@ export type ListPastVariantsOutput = {
|
|
|
10677
12140
|
message: string;
|
|
10678
12141
|
};
|
|
10679
12142
|
export declare const captureDesignEvidenceInput: {
|
|
10680
|
-
/** Correlation only; safe to omit. */
|
|
10681
12143
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
10682
|
-
/** The reference URL to render. */
|
|
10683
12144
|
url: z.ZodString;
|
|
10684
|
-
/** Optional viewport override; defaults to desktop 1440x1000. */
|
|
10685
12145
|
viewport: z.ZodOptional<z.ZodObject<{
|
|
10686
12146
|
width: z.ZodNumber;
|
|
10687
12147
|
height: z.ZodNumber;
|
|
@@ -10701,20 +12161,8 @@ export type CaptureDesignEvidenceInput = {
|
|
|
10701
12161
|
height: number;
|
|
10702
12162
|
};
|
|
10703
12163
|
};
|
|
10704
|
-
/**
|
|
10705
|
-
* On success the tool returns rendered evidence as content blocks (a text block
|
|
10706
|
-
* with the `:root` tokens + computed element styles + fonts, plus a screenshot
|
|
10707
|
-
* image) for the agent to synthesize design_system.data.designMarkdown from —
|
|
10708
|
-
* not a typed JSON payload. This type covers only the unavailable/failed case.
|
|
10709
|
-
*/
|
|
10710
12164
|
export type CaptureDesignEvidenceOutput = {
|
|
10711
12165
|
ok: false;
|
|
10712
|
-
/**
|
|
10713
|
-
* When false, no browser agent is available (server not configured, or
|
|
10714
|
-
* unauthenticated) — inspect the URL natively and report design_system with
|
|
10715
|
-
* `evidenceStatus: 'inferred'`. When true, the agent is enabled but this
|
|
10716
|
-
* render failed; you may retry or fall back.
|
|
10717
|
-
*/
|
|
10718
12166
|
available: boolean;
|
|
10719
12167
|
evidenceStatus: 'inferred';
|
|
10720
12168
|
reason: string;
|
|
@@ -10724,7 +12172,6 @@ export declare const getVariantInput: {
|
|
|
10724
12172
|
projectPath: z.ZodOptional<z.ZodString>;
|
|
10725
12173
|
sessionId: z.ZodString;
|
|
10726
12174
|
variantId: z.ZodString;
|
|
10727
|
-
/** When false, diff body / file list are omitted to keep responses small. */
|
|
10728
12175
|
includeBody: z.ZodOptional<z.ZodBoolean>;
|
|
10729
12176
|
};
|
|
10730
12177
|
export type GetVariantInput = {
|
|
@@ -10741,13 +12188,7 @@ export type GetVariantOutput = {
|
|
|
10741
12188
|
destinationPath?: string;
|
|
10742
12189
|
diff?: string;
|
|
10743
12190
|
files?: string[];
|
|
10744
|
-
/** Top-level DESIGN.md artifact body — present for fresh-project
|
|
10745
|
-
* variants scaffolded with a design context. Omitted when
|
|
10746
|
-
* `includeBody: false`. */
|
|
10747
12191
|
designMarkdown?: string;
|
|
10748
|
-
/** Provenance for the persisted DESIGN.md so callers can render a
|
|
10749
|
-
* recognizable label (e.g. catalog name) without re-resolving the
|
|
10750
|
-
* slug. */
|
|
10751
12192
|
designSource?: {
|
|
10752
12193
|
kind: 'slug' | 'markdown';
|
|
10753
12194
|
label: string;
|
|
@@ -10759,48 +12200,23 @@ export type GetVariantOutput = {
|
|
|
10759
12200
|
errorCode: ErrorCode;
|
|
10760
12201
|
message: string;
|
|
10761
12202
|
};
|
|
10762
|
-
export type VariantPickPayload =
|
|
10763
|
-
/**
|
|
10764
|
-
* Server-internal raw diff payload. Retained so unit tests and callers that
|
|
10765
|
-
* predate server-side apply can still introspect the diff body. The
|
|
10766
|
-
* production commit path applies the diff and records `diff-applied`.
|
|
10767
|
-
*/
|
|
10768
|
-
{
|
|
12203
|
+
export type VariantPickPayload = {
|
|
10769
12204
|
kind: 'diff';
|
|
10770
12205
|
diff: string;
|
|
10771
12206
|
target?: Target;
|
|
10772
12207
|
changedFilesCount: number;
|
|
10773
|
-
}
|
|
10774
|
-
/**
|
|
10775
|
-
* Agent-facing post-apply state for existing-project picks. The variant's
|
|
10776
|
-
* unified diff has already been applied to the user's working tree
|
|
10777
|
-
* (uncommitted). Agents must NOT run `git apply` again — just inform the
|
|
10778
|
-
* user and proceed.
|
|
10779
|
-
*/
|
|
10780
|
-
| {
|
|
12208
|
+
} | {
|
|
10781
12209
|
kind: 'diff-applied';
|
|
10782
12210
|
diff: string;
|
|
10783
12211
|
target?: Target;
|
|
10784
12212
|
changedFilesCount: number;
|
|
10785
12213
|
note: string;
|
|
10786
|
-
}
|
|
10787
|
-
/**
|
|
10788
|
-
* Server-internal pre-materialize state for fresh-project picks. Held while
|
|
10789
|
-
* the orchestrator copies `sourceWorktreePath` to `destinationPath`. Never
|
|
10790
|
-
* crosses to agents — the agent-facing payload is `project-created`.
|
|
10791
|
-
*/
|
|
10792
|
-
| {
|
|
12214
|
+
} | {
|
|
10793
12215
|
kind: 'new-project';
|
|
10794
12216
|
destinationPath: string;
|
|
10795
12217
|
sourceWorktreePath: string;
|
|
10796
12218
|
changedFilesCount: number;
|
|
10797
|
-
}
|
|
10798
|
-
/**
|
|
10799
|
-
* Agent-facing post-materialize state for fresh-project picks. The project
|
|
10800
|
-
* already exists on disk at `destinationPath`; the agent only needs to
|
|
10801
|
-
* optionally install dependencies and continue from there.
|
|
10802
|
-
*/
|
|
10803
|
-
| {
|
|
12219
|
+
} | {
|
|
10804
12220
|
kind: 'project-created';
|
|
10805
12221
|
destinationPath: string;
|
|
10806
12222
|
changedFilesCount: number;
|