rivet-design 0.13.5 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-variants/SessionStore.d.ts +11 -1
- package/dist/agent-variants/SessionStore.d.ts.map +1 -1
- package/dist/agent-variants/SessionStore.js +8 -1
- package/dist/agent-variants/SessionStore.js.map +1 -1
- package/dist/agent-variants/WorkerExecutorService.d.ts +140 -0
- package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -0
- package/dist/agent-variants/WorkerExecutorService.js +496 -0
- package/dist/agent-variants/WorkerExecutorService.js.map +1 -0
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +11 -0
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +28 -1
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/contracts.d.ts +20 -0
- package/dist/agent-variants/contracts.d.ts.map +1 -1
- package/dist/agent-variants/contracts.js +4 -2
- package/dist/agent-variants/contracts.js.map +1 -1
- package/dist/agent-variants/directionAuthoring.d.ts +36 -0
- package/dist/agent-variants/directionAuthoring.d.ts.map +1 -0
- package/dist/agent-variants/directionAuthoring.js +348 -0
- package/dist/agent-variants/directionAuthoring.js.map +1 -0
- package/dist/agent-variants/videoKeyframes.d.ts +19 -0
- package/dist/agent-variants/videoKeyframes.d.ts.map +1 -0
- package/dist/agent-variants/videoKeyframes.js +109 -0
- package/dist/agent-variants/videoKeyframes.js.map +1 -0
- package/dist/agent-variants/workItemBriefing.d.ts +3 -1
- package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
- package/dist/agent-variants/workItemBriefing.js +34 -2
- package/dist/agent-variants/workItemBriefing.js.map +1 -1
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +44 -11
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/variants.d.ts.map +1 -1
- package/dist/cli/commands/variants.js +222 -4
- package/dist/cli/commands/variants.js.map +1 -1
- package/dist/cli/hostWorkNextAction.d.ts.map +1 -1
- package/dist/cli/hostWorkNextAction.js +6 -1
- package/dist/cli/hostWorkNextAction.js.map +1 -1
- package/dist/hosts/workerDefaults.d.ts +42 -0
- package/dist/hosts/workerDefaults.d.ts.map +1 -1
- package/dist/hosts/workerDefaults.js +40 -1
- package/dist/hosts/workerDefaults.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +32 -10
- package/dist/index.js.map +1 -1
- package/dist/install/globalBootstrap.d.ts +47 -0
- package/dist/install/globalBootstrap.d.ts.map +1 -0
- package/dist/install/globalBootstrap.js +106 -0
- package/dist/install/globalBootstrap.js.map +1 -0
- package/dist/install/harnesses.d.ts +5 -4
- package/dist/install/harnesses.d.ts.map +1 -1
- package/dist/install/harnesses.js +8 -8
- package/dist/install/harnesses.js.map +1 -1
- package/dist/install/mcpRegistration.d.ts +17 -1
- package/dist/install/mcpRegistration.d.ts.map +1 -1
- package/dist/install/mcpRegistration.js +44 -14
- package/dist/install/mcpRegistration.js.map +1 -1
- package/dist/routes/agentVariants.d.ts.map +1 -1
- package/dist/routes/agentVariants.js +25 -0
- package/dist/routes/agentVariants.js.map +1 -1
- package/dist/services/VariantGenerationService.d.ts +36 -1
- package/dist/services/VariantGenerationService.d.ts.map +1 -1
- package/dist/services/VariantGenerationService.js +331 -16
- package/dist/services/VariantGenerationService.js.map +1 -1
- package/dist/services/VariantRunService.d.ts +8 -0
- package/dist/services/VariantRunService.d.ts.map +1 -1
- package/dist/services/VariantRunService.js +29 -5
- package/dist/services/VariantRunService.js.map +1 -1
- package/dist/services/VariantsRuntime.d.ts.map +1 -1
- package/dist/services/VariantsRuntime.js +9 -0
- package/dist/services/VariantsRuntime.js.map +1 -1
- package/dist/types/change-request-types.d.ts +17 -0
- package/dist/types/change-request-types.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.d.ts +2 -2
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +2 -2
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +7 -5
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/cursor-rules.d.ts +1 -1
- package/dist/utils/skills/cursor-rules.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ui/dist/assets/{main-Ct4AXMqD.js → main-C-8Mff7k.js} +51 -51
- package/src/ui/dist/assets/main-CobdEReL.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/main-Dyos9I29.css +0 -1
|
@@ -674,6 +674,20 @@ class AgentVariantsOrchestrator {
|
|
|
674
674
|
...(hostWork.length > 0 ? { hostWork } : {}),
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
+
/** User reference files stored in the work item's context bundle (uploaded
|
|
678
|
+
* or copied local images). Surfaced on the snapshot so briefings can point
|
|
679
|
+
* workers at the files directly — one Read instead of a bundle walk. */
|
|
680
|
+
static contextFilesOf(context) {
|
|
681
|
+
const files = (context?.userContext ?? [])
|
|
682
|
+
.filter((source) => source.transport === 'file')
|
|
683
|
+
.map((source) => ({
|
|
684
|
+
path: source.path,
|
|
685
|
+
...(source.label ?? source.originalFilename
|
|
686
|
+
? { label: source.label ?? source.originalFilename }
|
|
687
|
+
: {}),
|
|
688
|
+
}));
|
|
689
|
+
return files.length > 0 ? { contextFiles: files } : undefined;
|
|
690
|
+
}
|
|
677
691
|
getHostWork(sessionId) {
|
|
678
692
|
return this.store.getHostWork(sessionId).map((item) => {
|
|
679
693
|
const kind = item.kind;
|
|
@@ -703,6 +717,7 @@ class AgentVariantsOrchestrator {
|
|
|
703
717
|
kind,
|
|
704
718
|
status: item.status,
|
|
705
719
|
leaseId: item.leaseId,
|
|
720
|
+
leaseOwner: item.leaseOwner,
|
|
706
721
|
attempt: item.attempt,
|
|
707
722
|
leaseExpiresAt: item.leaseExpiresAt,
|
|
708
723
|
workspace,
|
|
@@ -712,6 +727,7 @@ class AgentVariantsOrchestrator {
|
|
|
712
727
|
brief: input.briefBody ?? input.instruction ?? 'Create this variant',
|
|
713
728
|
...(input.briefNotes ? { notes: input.briefNotes } : {}),
|
|
714
729
|
},
|
|
730
|
+
...(input.fidelity ? { fidelity: input.fidelity } : {}),
|
|
715
731
|
...(sourceLabel && sourceBody
|
|
716
732
|
? { sourceDirection: { label: sourceLabel, brief: sourceBody } }
|
|
717
733
|
: {}),
|
|
@@ -724,6 +740,7 @@ class AgentVariantsOrchestrator {
|
|
|
724
740
|
...(input.context?.contextBundlePath
|
|
725
741
|
? { contextBundlePath: input.context.contextBundlePath }
|
|
726
742
|
: {}),
|
|
743
|
+
...(AgentVariantsOrchestrator.contextFilesOf(input.context) ?? {}),
|
|
727
744
|
completion: kind === 'code_gen'
|
|
728
745
|
? { kind: 'worktree_diff' }
|
|
729
746
|
: { kind: 'static_artifact' },
|
|
@@ -1908,7 +1925,12 @@ class AgentVariantsOrchestrator {
|
|
|
1908
1925
|
// here, so this guard is an internal invariant. Existing-project sessions
|
|
1909
1926
|
// keep the single-call path even with a bundle — they have no source_plan
|
|
1910
1927
|
// stage, and the bundle's raw context is threaded straight into code_gen.
|
|
1911
|
-
|
|
1928
|
+
// Brief-driven fresh starts are exempt for the same reason: the caller
|
|
1929
|
+
// already did its source research when it authored the briefs, so the
|
|
1930
|
+
// bundle is raw worker context (reference images), not research input.
|
|
1931
|
+
const isSourceGrounded = projectContext.kind === 'fresh' &&
|
|
1932
|
+
Boolean(projectContext.variantContext) &&
|
|
1933
|
+
!args.briefs?.length;
|
|
1912
1934
|
if (isSourceGrounded) {
|
|
1913
1935
|
throw new errors_1.AgentVariantsError('INVALID_STAGE_ACTION', 'Source-grounded sessions must run through the source-research flow (propose), not the single-call startUnified path.');
|
|
1914
1936
|
}
|
|
@@ -1991,6 +2013,10 @@ class AgentVariantsOrchestrator {
|
|
|
1991
2013
|
relevantFiles: args.relevantFiles,
|
|
1992
2014
|
projectContext,
|
|
1993
2015
|
runLabel: args.runLabel,
|
|
2016
|
+
...(args.fidelity ? { fidelity: args.fidelity } : {}),
|
|
2017
|
+
// Briefs land via reportBriefs immediately below — never enter the
|
|
2018
|
+
// source-plan stage, even for a fresh session carrying a bundle.
|
|
2019
|
+
hasPreparedBriefs: true,
|
|
1994
2020
|
...(args.sessionId ? { sessionId: args.sessionId } : {}),
|
|
1995
2021
|
});
|
|
1996
2022
|
if (proposeResult.stage !== 'awaiting_briefs' ||
|
|
@@ -2397,6 +2423,7 @@ class AgentVariantsOrchestrator {
|
|
|
2397
2423
|
tokensIn: args.tokensIn ?? null,
|
|
2398
2424
|
tokensOut: args.tokensOut ?? null,
|
|
2399
2425
|
model: args.model ?? null,
|
|
2426
|
+
costUsd: args.costUsd ?? null,
|
|
2400
2427
|
outputBytes,
|
|
2401
2428
|
});
|
|
2402
2429
|
const refinementTelemetry = this.refinementTelemetryForWorkItem({
|