rivet-design 0.9.4 → 0.9.6

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.
Files changed (66) hide show
  1. package/dist/mcp/agent-variants/SessionStore.d.ts +11 -2
  2. package/dist/mcp/agent-variants/SessionStore.d.ts.map +1 -1
  3. package/dist/mcp/agent-variants/SessionStore.js +85 -22
  4. package/dist/mcp/agent-variants/SessionStore.js.map +1 -1
  5. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts +70 -3
  6. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  7. package/dist/mcp/agent-variants/WorktreeOrchestrator.js +790 -132
  8. package/dist/mcp/agent-variants/WorktreeOrchestrator.js.map +1 -1
  9. package/dist/mcp/agent-variants/contracts.d.ts +495 -129
  10. package/dist/mcp/agent-variants/contracts.d.ts.map +1 -1
  11. package/dist/mcp/agent-variants/contracts.js +120 -37
  12. package/dist/mcp/agent-variants/contracts.js.map +1 -1
  13. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts +40 -15
  14. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts.map +1 -1
  15. package/dist/mcp/agent-variants/createZeroToOneTool.js +24 -8
  16. package/dist/mcp/agent-variants/createZeroToOneTool.js.map +1 -1
  17. package/dist/mcp/agent-variants/tools.d.ts +17 -2
  18. package/dist/mcp/agent-variants/tools.d.ts.map +1 -1
  19. package/dist/mcp/agent-variants/tools.js +129 -15
  20. package/dist/mcp/agent-variants/tools.js.map +1 -1
  21. package/dist/mcp/server.d.ts.map +1 -1
  22. package/dist/mcp/server.js +13 -7
  23. package/dist/mcp/server.js.map +1 -1
  24. package/dist/prompts/agentModPrompts.d.ts.map +1 -1
  25. package/dist/prompts/agentModPrompts.js +9 -8
  26. package/dist/prompts/agentModPrompts.js.map +1 -1
  27. package/dist/proxy-middleware/proxy-config.d.ts +2 -2
  28. package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
  29. package/dist/proxy-middleware/proxy-config.js +66 -22
  30. package/dist/proxy-middleware/proxy-config.js.map +1 -1
  31. package/dist/routes/agentVariants.d.ts +2 -13
  32. package/dist/routes/agentVariants.d.ts.map +1 -1
  33. package/dist/routes/agentVariants.js +233 -3
  34. package/dist/routes/agentVariants.js.map +1 -1
  35. package/dist/server.d.ts.map +1 -1
  36. package/dist/server.js +58 -1
  37. package/dist/server.js.map +1 -1
  38. package/dist/services/ProjectDetectionService.d.ts.map +1 -1
  39. package/dist/services/ProjectDetectionService.js +12 -0
  40. package/dist/services/ProjectDetectionService.js.map +1 -1
  41. package/dist/services/VariantHistoryService.d.ts +180 -0
  42. package/dist/services/VariantHistoryService.d.ts.map +1 -0
  43. package/dist/services/VariantHistoryService.js +515 -0
  44. package/dist/services/VariantHistoryService.js.map +1 -0
  45. package/dist/services/agent/AgentCore.d.ts +1 -1
  46. package/dist/services/agent/AgentCore.d.ts.map +1 -1
  47. package/dist/services/agent/AgentCore.js +24 -1
  48. package/dist/services/agent/AgentCore.js.map +1 -1
  49. package/dist/services/agent/AgentModService.d.ts +1 -1
  50. package/dist/services/agent/AgentModService.js +1 -1
  51. package/dist/utils/skills/claude-skill.d.ts +1 -1
  52. package/dist/utils/skills/claude-skill.js +1 -1
  53. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  54. package/dist/utils/skills/cursor-rules.js +1 -1
  55. package/dist/utils/skills/describe-motion-protocol.d.ts +11 -0
  56. package/dist/utils/skills/describe-motion-protocol.d.ts.map +1 -0
  57. package/dist/utils/skills/describe-motion-protocol.js +216 -0
  58. package/dist/utils/skills/describe-motion-protocol.js.map +1 -0
  59. package/dist/utils/skills/shared-variants-protocol.d.ts.map +1 -1
  60. package/dist/utils/skills/shared-variants-protocol.js +23 -17
  61. package/dist/utils/skills/shared-variants-protocol.js.map +1 -1
  62. package/package.json +2 -2
  63. package/src/ui/dist/assets/main-BX1XfsOq.css +1 -0
  64. package/src/ui/dist/assets/{main-CpX7fB64.js → main-CO7W1r28.js} +38 -38
  65. package/src/ui/dist/index.html +2 -2
  66. package/src/ui/dist/assets/main-Qqe2_oMT.css +0 -1
@@ -46,52 +46,93 @@ export declare const projectContextExisting: z.ZodObject<{
46
46
  }>;
47
47
  export declare const sourceIntentRoleSchema: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
48
48
  export declare const sourceIntentConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
49
- export declare const sourceIntentEntrySchema: z.ZodObject<{
50
- url: z.ZodString;
49
+ /**
50
+ * One classified source in the agent's `sourceIntent`. Identified by exactly
51
+ * one of:
52
+ * - `url`: an inspiration URL the user provided
53
+ * - `imageRef`: a stable per-session reference of the form `image:<index>`
54
+ * pointing at an image-kind entry in `sourceArtifacts` (visualBrief or
55
+ * screenshotNotes). Indexed over image-kind artifacts only, so the ref
56
+ * survives reordering of text-only artifacts.
57
+ */
58
+ export declare const sourceIntentEntrySchema: z.ZodEffects<z.ZodObject<{
59
+ url: z.ZodOptional<z.ZodString>;
60
+ imageRef: z.ZodOptional<z.ZodString>;
51
61
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
52
62
  confidence: z.ZodEnum<["low", "medium", "high"]>;
53
63
  reason: z.ZodString;
54
64
  }, "strip", z.ZodTypeAny, {
55
65
  reason: string;
56
- url: string;
57
66
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
58
67
  confidence: "low" | "medium" | "high";
68
+ url?: string | undefined;
69
+ imageRef?: string | undefined;
59
70
  }, {
60
71
  reason: string;
61
- url: string;
62
72
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
63
73
  confidence: "low" | "medium" | "high";
74
+ url?: string | undefined;
75
+ imageRef?: string | undefined;
76
+ }>, {
77
+ reason: string;
78
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
79
+ confidence: "low" | "medium" | "high";
80
+ url?: string | undefined;
81
+ imageRef?: string | undefined;
82
+ }, {
83
+ reason: string;
84
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
85
+ confidence: "low" | "medium" | "high";
86
+ url?: string | undefined;
87
+ imageRef?: string | undefined;
64
88
  }>;
65
89
  export declare const sourceIntentArtifactSchema: z.ZodObject<{
66
- sources: z.ZodArray<z.ZodObject<{
67
- url: z.ZodString;
90
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
91
+ url: z.ZodOptional<z.ZodString>;
92
+ imageRef: z.ZodOptional<z.ZodString>;
68
93
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
69
94
  confidence: z.ZodEnum<["low", "medium", "high"]>;
70
95
  reason: z.ZodString;
71
96
  }, "strip", z.ZodTypeAny, {
72
97
  reason: string;
73
- url: string;
74
98
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
75
99
  confidence: "low" | "medium" | "high";
100
+ url?: string | undefined;
101
+ imageRef?: string | undefined;
102
+ }, {
103
+ reason: string;
104
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
105
+ confidence: "low" | "medium" | "high";
106
+ url?: string | undefined;
107
+ imageRef?: string | undefined;
108
+ }>, {
109
+ reason: string;
110
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
111
+ confidence: "low" | "medium" | "high";
112
+ url?: string | undefined;
113
+ imageRef?: string | undefined;
76
114
  }, {
77
115
  reason: string;
78
- url: string;
79
116
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
80
117
  confidence: "low" | "medium" | "high";
118
+ url?: string | undefined;
119
+ imageRef?: string | undefined;
81
120
  }>, "many">;
82
121
  }, "strip", z.ZodTypeAny, {
83
122
  sources: {
84
123
  reason: string;
85
- url: string;
86
124
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
87
125
  confidence: "low" | "medium" | "high";
126
+ url?: string | undefined;
127
+ imageRef?: string | undefined;
88
128
  }[];
89
129
  }, {
90
130
  sources: {
91
131
  reason: string;
92
- url: string;
93
132
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
94
133
  confidence: "low" | "medium" | "high";
134
+ url?: string | undefined;
135
+ imageRef?: string | undefined;
95
136
  }[];
96
137
  }>;
97
138
  export type SourceIntentRole = z.infer<typeof sourceIntentRoleSchema>;
@@ -120,17 +161,17 @@ export declare const designContextEntrySchema: z.ZodDiscriminatedUnion<"kind", [
120
161
  label: string;
121
162
  content: string;
122
163
  }>]>;
123
- export declare const sourceArtifactKindSchema: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
164
+ export declare const sourceArtifactKindSchema: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
124
165
  export declare const sourceArtifactInputSchema: z.ZodObject<{
125
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
166
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
126
167
  label: z.ZodString;
127
168
  content: z.ZodString;
128
169
  }, "strip", z.ZodTypeAny, {
129
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
170
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
130
171
  label: string;
131
172
  content: string;
132
173
  }, {
133
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
174
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
134
175
  label: string;
135
176
  content: string;
136
177
  }>;
@@ -197,15 +238,15 @@ export declare const sourceContextInputSchema: z.ZodObject<{
197
238
  sourceUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
198
239
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
199
240
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
200
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
241
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
201
242
  label: z.ZodString;
202
243
  content: z.ZodString;
203
244
  }, "strip", z.ZodTypeAny, {
204
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
245
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
205
246
  label: string;
206
247
  content: string;
207
248
  }, {
208
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
249
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
209
250
  label: string;
210
251
  content: string;
211
252
  }>, "many">>;
@@ -255,35 +296,52 @@ export declare const sourceContextInputSchema: z.ZodObject<{
255
296
  risks?: string[] | undefined;
256
297
  }>>;
257
298
  sourceIntent: z.ZodOptional<z.ZodObject<{
258
- sources: z.ZodArray<z.ZodObject<{
259
- url: z.ZodString;
299
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
300
+ url: z.ZodOptional<z.ZodString>;
301
+ imageRef: z.ZodOptional<z.ZodString>;
260
302
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
261
303
  confidence: z.ZodEnum<["low", "medium", "high"]>;
262
304
  reason: z.ZodString;
263
305
  }, "strip", z.ZodTypeAny, {
264
306
  reason: string;
265
- url: string;
266
307
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
267
308
  confidence: "low" | "medium" | "high";
309
+ url?: string | undefined;
310
+ imageRef?: string | undefined;
311
+ }, {
312
+ reason: string;
313
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
314
+ confidence: "low" | "medium" | "high";
315
+ url?: string | undefined;
316
+ imageRef?: string | undefined;
317
+ }>, {
318
+ reason: string;
319
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
320
+ confidence: "low" | "medium" | "high";
321
+ url?: string | undefined;
322
+ imageRef?: string | undefined;
268
323
  }, {
269
324
  reason: string;
270
- url: string;
271
325
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
272
326
  confidence: "low" | "medium" | "high";
327
+ url?: string | undefined;
328
+ imageRef?: string | undefined;
273
329
  }>, "many">;
274
330
  }, "strip", z.ZodTypeAny, {
275
331
  sources: {
276
332
  reason: string;
277
- url: string;
278
333
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
279
334
  confidence: "low" | "medium" | "high";
335
+ url?: string | undefined;
336
+ imageRef?: string | undefined;
280
337
  }[];
281
338
  }, {
282
339
  sources: {
283
340
  reason: string;
284
- url: string;
285
341
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
286
342
  confidence: "low" | "medium" | "high";
343
+ url?: string | undefined;
344
+ imageRef?: string | undefined;
287
345
  }[];
288
346
  }>>;
289
347
  designDecision: z.ZodOptional<z.ZodEnum<["let_rivet_choose", "go_custom"]>>;
@@ -291,7 +349,7 @@ export declare const sourceContextInputSchema: z.ZodObject<{
291
349
  sourceUrls?: string[] | undefined;
292
350
  preserveBrand?: boolean | undefined;
293
351
  sourceArtifacts?: {
294
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
352
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
295
353
  label: string;
296
354
  content: string;
297
355
  }[] | undefined;
@@ -311,9 +369,10 @@ export declare const sourceContextInputSchema: z.ZodObject<{
311
369
  sourceIntent?: {
312
370
  sources: {
313
371
  reason: string;
314
- url: string;
315
372
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
316
373
  confidence: "low" | "medium" | "high";
374
+ url?: string | undefined;
375
+ imageRef?: string | undefined;
317
376
  }[];
318
377
  } | undefined;
319
378
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -321,7 +380,7 @@ export declare const sourceContextInputSchema: z.ZodObject<{
321
380
  sourceUrls?: string[] | undefined;
322
381
  preserveBrand?: boolean | undefined;
323
382
  sourceArtifacts?: {
324
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
383
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
325
384
  label: string;
326
385
  content: string;
327
386
  }[] | undefined;
@@ -341,9 +400,10 @@ export declare const sourceContextInputSchema: z.ZodObject<{
341
400
  sourceIntent?: {
342
401
  sources: {
343
402
  reason: string;
344
- url: string;
345
403
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
346
404
  confidence: "low" | "medium" | "high";
405
+ url?: string | undefined;
406
+ imageRef?: string | undefined;
347
407
  }[];
348
408
  } | undefined;
349
409
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -418,7 +478,17 @@ export type AssetPlanEntry = z.infer<typeof assetPlanEntrySchema>;
418
478
  export type ExecutionCapabilityPlan = z.infer<typeof executionCapabilityPlanSchema>;
419
479
  export declare const projectContextFresh: z.ZodObject<{
420
480
  kind: z.ZodLiteral<"fresh">;
481
+ /** Where the generated subproject's files live (e.g.
482
+ * `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
483
+ * target — the agent reads/writes index.html, src/, etc. here. */
421
484
  workspacePath: z.ZodString;
485
+ /** The user's working directory that owns *all* Rivet artifacts for the
486
+ * session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
487
+ * generated subprojects, variant history, and create-project manifests.
488
+ * Distinct from `path.dirname(workspacePath)` because subprojects nest
489
+ * inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
490
+ * not the workspace itself. */
491
+ workspaceRoot: z.ZodString;
422
492
  framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
423
493
  assetSourceRoot: z.ZodOptional<z.ZodString>;
424
494
  /** Per-variant-slot design context. Slug entries resolve bundled catalog
@@ -450,15 +520,15 @@ export declare const projectContextFresh: z.ZodObject<{
450
520
  sourceUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
451
521
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
452
522
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
453
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
523
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
454
524
  label: z.ZodString;
455
525
  content: z.ZodString;
456
526
  }, "strip", z.ZodTypeAny, {
457
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
527
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
458
528
  label: string;
459
529
  content: string;
460
530
  }, {
461
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
531
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
462
532
  label: string;
463
533
  content: string;
464
534
  }>, "many">>;
@@ -508,35 +578,52 @@ export declare const projectContextFresh: z.ZodObject<{
508
578
  risks?: string[] | undefined;
509
579
  }>>;
510
580
  sourceIntent: z.ZodOptional<z.ZodObject<{
511
- sources: z.ZodArray<z.ZodObject<{
512
- url: z.ZodString;
581
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
582
+ url: z.ZodOptional<z.ZodString>;
583
+ imageRef: z.ZodOptional<z.ZodString>;
513
584
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
514
585
  confidence: z.ZodEnum<["low", "medium", "high"]>;
515
586
  reason: z.ZodString;
516
587
  }, "strip", z.ZodTypeAny, {
517
588
  reason: string;
518
- url: string;
519
589
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
520
590
  confidence: "low" | "medium" | "high";
591
+ url?: string | undefined;
592
+ imageRef?: string | undefined;
593
+ }, {
594
+ reason: string;
595
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
596
+ confidence: "low" | "medium" | "high";
597
+ url?: string | undefined;
598
+ imageRef?: string | undefined;
599
+ }>, {
600
+ reason: string;
601
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
602
+ confidence: "low" | "medium" | "high";
603
+ url?: string | undefined;
604
+ imageRef?: string | undefined;
521
605
  }, {
522
606
  reason: string;
523
- url: string;
524
607
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
525
608
  confidence: "low" | "medium" | "high";
609
+ url?: string | undefined;
610
+ imageRef?: string | undefined;
526
611
  }>, "many">;
527
612
  }, "strip", z.ZodTypeAny, {
528
613
  sources: {
529
614
  reason: string;
530
- url: string;
531
615
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
532
616
  confidence: "low" | "medium" | "high";
617
+ url?: string | undefined;
618
+ imageRef?: string | undefined;
533
619
  }[];
534
620
  }, {
535
621
  sources: {
536
622
  reason: string;
537
- url: string;
538
623
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
539
624
  confidence: "low" | "medium" | "high";
625
+ url?: string | undefined;
626
+ imageRef?: string | undefined;
540
627
  }[];
541
628
  }>>;
542
629
  designDecision: z.ZodOptional<z.ZodEnum<["let_rivet_choose", "go_custom"]>>;
@@ -544,7 +631,7 @@ export declare const projectContextFresh: z.ZodObject<{
544
631
  sourceUrls?: string[] | undefined;
545
632
  preserveBrand?: boolean | undefined;
546
633
  sourceArtifacts?: {
547
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
634
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
548
635
  label: string;
549
636
  content: string;
550
637
  }[] | undefined;
@@ -564,9 +651,10 @@ export declare const projectContextFresh: z.ZodObject<{
564
651
  sourceIntent?: {
565
652
  sources: {
566
653
  reason: string;
567
- url: string;
568
654
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
569
655
  confidence: "low" | "medium" | "high";
656
+ url?: string | undefined;
657
+ imageRef?: string | undefined;
570
658
  }[];
571
659
  } | undefined;
572
660
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -574,7 +662,7 @@ export declare const projectContextFresh: z.ZodObject<{
574
662
  sourceUrls?: string[] | undefined;
575
663
  preserveBrand?: boolean | undefined;
576
664
  sourceArtifacts?: {
577
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
665
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
578
666
  label: string;
579
667
  content: string;
580
668
  }[] | undefined;
@@ -594,9 +682,10 @@ export declare const projectContextFresh: z.ZodObject<{
594
682
  sourceIntent?: {
595
683
  sources: {
596
684
  reason: string;
597
- url: string;
598
685
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
599
686
  confidence: "low" | "medium" | "high";
687
+ url?: string | undefined;
688
+ imageRef?: string | undefined;
600
689
  }[];
601
690
  } | undefined;
602
691
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -650,6 +739,7 @@ export declare const projectContextFresh: z.ZodObject<{
650
739
  }, "strip", z.ZodTypeAny, {
651
740
  kind: "fresh";
652
741
  workspacePath: string;
742
+ workspaceRoot: string;
653
743
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
654
744
  assetSourceRoot?: string | undefined;
655
745
  designContext?: ({
@@ -664,7 +754,7 @@ export declare const projectContextFresh: z.ZodObject<{
664
754
  sourceUrls?: string[] | undefined;
665
755
  preserveBrand?: boolean | undefined;
666
756
  sourceArtifacts?: {
667
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
757
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
668
758
  label: string;
669
759
  content: string;
670
760
  }[] | undefined;
@@ -684,9 +774,10 @@ export declare const projectContextFresh: z.ZodObject<{
684
774
  sourceIntent?: {
685
775
  sources: {
686
776
  reason: string;
687
- url: string;
688
777
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
689
778
  confidence: "low" | "medium" | "high";
779
+ url?: string | undefined;
780
+ imageRef?: string | undefined;
690
781
  }[];
691
782
  } | undefined;
692
783
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -706,6 +797,7 @@ export declare const projectContextFresh: z.ZodObject<{
706
797
  }, {
707
798
  kind: "fresh";
708
799
  workspacePath: string;
800
+ workspaceRoot: string;
709
801
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
710
802
  assetSourceRoot?: string | undefined;
711
803
  designContext?: ({
@@ -720,7 +812,7 @@ export declare const projectContextFresh: z.ZodObject<{
720
812
  sourceUrls?: string[] | undefined;
721
813
  preserveBrand?: boolean | undefined;
722
814
  sourceArtifacts?: {
723
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
815
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
724
816
  label: string;
725
817
  content: string;
726
818
  }[] | undefined;
@@ -740,9 +832,10 @@ export declare const projectContextFresh: z.ZodObject<{
740
832
  sourceIntent?: {
741
833
  sources: {
742
834
  reason: string;
743
- url: string;
744
835
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
745
836
  confidence: "low" | "medium" | "high";
837
+ url?: string | undefined;
838
+ imageRef?: string | undefined;
746
839
  }[];
747
840
  } | undefined;
748
841
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -768,7 +861,17 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
768
861
  kind: "existing";
769
862
  }>, z.ZodObject<{
770
863
  kind: z.ZodLiteral<"fresh">;
864
+ /** Where the generated subproject's files live (e.g.
865
+ * `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
866
+ * target — the agent reads/writes index.html, src/, etc. here. */
771
867
  workspacePath: z.ZodString;
868
+ /** The user's working directory that owns *all* Rivet artifacts for the
869
+ * session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
870
+ * generated subprojects, variant history, and create-project manifests.
871
+ * Distinct from `path.dirname(workspacePath)` because subprojects nest
872
+ * inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
873
+ * not the workspace itself. */
874
+ workspaceRoot: z.ZodString;
772
875
  framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
773
876
  assetSourceRoot: z.ZodOptional<z.ZodString>;
774
877
  /** Per-variant-slot design context. Slug entries resolve bundled catalog
@@ -800,15 +903,15 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
800
903
  sourceUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
801
904
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
802
905
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
803
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
906
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
804
907
  label: z.ZodString;
805
908
  content: z.ZodString;
806
909
  }, "strip", z.ZodTypeAny, {
807
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
910
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
808
911
  label: string;
809
912
  content: string;
810
913
  }, {
811
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
914
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
812
915
  label: string;
813
916
  content: string;
814
917
  }>, "many">>;
@@ -858,35 +961,52 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
858
961
  risks?: string[] | undefined;
859
962
  }>>;
860
963
  sourceIntent: z.ZodOptional<z.ZodObject<{
861
- sources: z.ZodArray<z.ZodObject<{
862
- url: z.ZodString;
964
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
965
+ url: z.ZodOptional<z.ZodString>;
966
+ imageRef: z.ZodOptional<z.ZodString>;
863
967
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
864
968
  confidence: z.ZodEnum<["low", "medium", "high"]>;
865
969
  reason: z.ZodString;
866
970
  }, "strip", z.ZodTypeAny, {
867
971
  reason: string;
868
- url: string;
869
972
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
870
973
  confidence: "low" | "medium" | "high";
974
+ url?: string | undefined;
975
+ imageRef?: string | undefined;
871
976
  }, {
872
977
  reason: string;
873
- url: string;
874
978
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
875
979
  confidence: "low" | "medium" | "high";
980
+ url?: string | undefined;
981
+ imageRef?: string | undefined;
982
+ }>, {
983
+ reason: string;
984
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
985
+ confidence: "low" | "medium" | "high";
986
+ url?: string | undefined;
987
+ imageRef?: string | undefined;
988
+ }, {
989
+ reason: string;
990
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
991
+ confidence: "low" | "medium" | "high";
992
+ url?: string | undefined;
993
+ imageRef?: string | undefined;
876
994
  }>, "many">;
877
995
  }, "strip", z.ZodTypeAny, {
878
996
  sources: {
879
997
  reason: string;
880
- url: string;
881
998
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
882
999
  confidence: "low" | "medium" | "high";
1000
+ url?: string | undefined;
1001
+ imageRef?: string | undefined;
883
1002
  }[];
884
1003
  }, {
885
1004
  sources: {
886
1005
  reason: string;
887
- url: string;
888
1006
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
889
1007
  confidence: "low" | "medium" | "high";
1008
+ url?: string | undefined;
1009
+ imageRef?: string | undefined;
890
1010
  }[];
891
1011
  }>>;
892
1012
  designDecision: z.ZodOptional<z.ZodEnum<["let_rivet_choose", "go_custom"]>>;
@@ -894,7 +1014,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
894
1014
  sourceUrls?: string[] | undefined;
895
1015
  preserveBrand?: boolean | undefined;
896
1016
  sourceArtifacts?: {
897
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1017
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
898
1018
  label: string;
899
1019
  content: string;
900
1020
  }[] | undefined;
@@ -914,9 +1034,10 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
914
1034
  sourceIntent?: {
915
1035
  sources: {
916
1036
  reason: string;
917
- url: string;
918
1037
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
919
1038
  confidence: "low" | "medium" | "high";
1039
+ url?: string | undefined;
1040
+ imageRef?: string | undefined;
920
1041
  }[];
921
1042
  } | undefined;
922
1043
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -924,7 +1045,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
924
1045
  sourceUrls?: string[] | undefined;
925
1046
  preserveBrand?: boolean | undefined;
926
1047
  sourceArtifacts?: {
927
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1048
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
928
1049
  label: string;
929
1050
  content: string;
930
1051
  }[] | undefined;
@@ -944,9 +1065,10 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
944
1065
  sourceIntent?: {
945
1066
  sources: {
946
1067
  reason: string;
947
- url: string;
948
1068
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
949
1069
  confidence: "low" | "medium" | "high";
1070
+ url?: string | undefined;
1071
+ imageRef?: string | undefined;
950
1072
  }[];
951
1073
  } | undefined;
952
1074
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1000,6 +1122,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1000
1122
  }, "strip", z.ZodTypeAny, {
1001
1123
  kind: "fresh";
1002
1124
  workspacePath: string;
1125
+ workspaceRoot: string;
1003
1126
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
1004
1127
  assetSourceRoot?: string | undefined;
1005
1128
  designContext?: ({
@@ -1014,7 +1137,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1014
1137
  sourceUrls?: string[] | undefined;
1015
1138
  preserveBrand?: boolean | undefined;
1016
1139
  sourceArtifacts?: {
1017
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1140
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1018
1141
  label: string;
1019
1142
  content: string;
1020
1143
  }[] | undefined;
@@ -1034,9 +1157,10 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1034
1157
  sourceIntent?: {
1035
1158
  sources: {
1036
1159
  reason: string;
1037
- url: string;
1038
1160
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1039
1161
  confidence: "low" | "medium" | "high";
1162
+ url?: string | undefined;
1163
+ imageRef?: string | undefined;
1040
1164
  }[];
1041
1165
  } | undefined;
1042
1166
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1056,6 +1180,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1056
1180
  }, {
1057
1181
  kind: "fresh";
1058
1182
  workspacePath: string;
1183
+ workspaceRoot: string;
1059
1184
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
1060
1185
  assetSourceRoot?: string | undefined;
1061
1186
  designContext?: ({
@@ -1070,7 +1195,7 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1070
1195
  sourceUrls?: string[] | undefined;
1071
1196
  preserveBrand?: boolean | undefined;
1072
1197
  sourceArtifacts?: {
1073
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1198
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1074
1199
  label: string;
1075
1200
  content: string;
1076
1201
  }[] | undefined;
@@ -1090,9 +1215,10 @@ export declare const projectContextSchema: z.ZodDiscriminatedUnion<"kind", [z.Zo
1090
1215
  sourceIntent?: {
1091
1216
  sources: {
1092
1217
  reason: string;
1093
- url: string;
1094
1218
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1095
1219
  confidence: "low" | "medium" | "high";
1220
+ url?: string | undefined;
1221
+ imageRef?: string | undefined;
1096
1222
  }[];
1097
1223
  } | undefined;
1098
1224
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1136,6 +1262,7 @@ export type ActiveProjectContext = {
1136
1262
  } | {
1137
1263
  kind: 'fresh';
1138
1264
  workspacePath: string;
1265
+ workspaceRoot: string;
1139
1266
  framework?: 'vite' | 'next' | 'astro' | 'remix';
1140
1267
  designContext?: Array<{
1141
1268
  kind: 'slug';
@@ -1201,9 +1328,9 @@ export type VariantArtifactSource = 'agent_browser' | 'cache' | 'static' | 'manu
1201
1328
  export type VariantArtifactContentType = 'text/markdown' | 'application/json' | 'text/plain';
1202
1329
  /**
1203
1330
  * Stable, transport-safe shape for one supporting artifact attached to a
1204
- * variants session. For `design_context` artifacts the full markdown
1205
- * content is required (the UI renders it inline); other kinds may omit
1206
- * `content` and surface metadata only.
1331
+ * variants session. `design_context` artifacts expose loopback URLs so the
1332
+ * UI can open raw markdown or a rendered DesignMD view without carrying the
1333
+ * full document in every snapshot.
1207
1334
  */
1208
1335
  export interface VariantSessionArtifact {
1209
1336
  id: string;
@@ -1215,6 +1342,8 @@ export interface VariantSessionArtifact {
1215
1342
  source?: VariantArtifactSource;
1216
1343
  contentType?: VariantArtifactContentType;
1217
1344
  content?: string;
1345
+ rawUrl?: string;
1346
+ viewUrl?: string;
1218
1347
  path?: string;
1219
1348
  warnings?: string[];
1220
1349
  }
@@ -1304,7 +1433,17 @@ export declare const proposeVariantsInput: {
1304
1433
  kind: "existing";
1305
1434
  }>, z.ZodObject<{
1306
1435
  kind: z.ZodLiteral<"fresh">;
1436
+ /** Where the generated subproject's files live (e.g.
1437
+ * `fable-eng-demo/.rivet/marketing-clone/`). This is the materialize
1438
+ * target — the agent reads/writes index.html, src/, etc. here. */
1307
1439
  workspacePath: z.ZodString;
1440
+ /** The user's working directory that owns *all* Rivet artifacts for the
1441
+ * session (e.g. `fable-eng-demo`). `<workspaceRoot>/.rivet/` holds
1442
+ * generated subprojects, variant history, and create-project manifests.
1443
+ * Distinct from `path.dirname(workspacePath)` because subprojects nest
1444
+ * inside `.rivet/` — the dirname would resolve to the `.rivet` dir,
1445
+ * not the workspace itself. */
1446
+ workspaceRoot: z.ZodString;
1308
1447
  framework: z.ZodOptional<z.ZodEnum<["vite", "next", "astro", "remix"]>>;
1309
1448
  assetSourceRoot: z.ZodOptional<z.ZodString>;
1310
1449
  /** Per-variant-slot design context. Slug entries resolve bundled catalog
@@ -1336,15 +1475,15 @@ export declare const proposeVariantsInput: {
1336
1475
  sourceUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1337
1476
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
1338
1477
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1339
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
1478
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
1340
1479
  label: z.ZodString;
1341
1480
  content: z.ZodString;
1342
1481
  }, "strip", z.ZodTypeAny, {
1343
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1482
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1344
1483
  label: string;
1345
1484
  content: string;
1346
1485
  }, {
1347
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1486
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1348
1487
  label: string;
1349
1488
  content: string;
1350
1489
  }>, "many">>;
@@ -1394,35 +1533,52 @@ export declare const proposeVariantsInput: {
1394
1533
  risks?: string[] | undefined;
1395
1534
  }>>;
1396
1535
  sourceIntent: z.ZodOptional<z.ZodObject<{
1397
- sources: z.ZodArray<z.ZodObject<{
1398
- url: z.ZodString;
1536
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
1537
+ url: z.ZodOptional<z.ZodString>;
1538
+ imageRef: z.ZodOptional<z.ZodString>;
1399
1539
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
1400
1540
  confidence: z.ZodEnum<["low", "medium", "high"]>;
1401
1541
  reason: z.ZodString;
1402
1542
  }, "strip", z.ZodTypeAny, {
1403
1543
  reason: string;
1404
- url: string;
1405
1544
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1406
1545
  confidence: "low" | "medium" | "high";
1546
+ url?: string | undefined;
1547
+ imageRef?: string | undefined;
1407
1548
  }, {
1408
1549
  reason: string;
1409
- url: string;
1410
1550
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1411
1551
  confidence: "low" | "medium" | "high";
1552
+ url?: string | undefined;
1553
+ imageRef?: string | undefined;
1554
+ }>, {
1555
+ reason: string;
1556
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1557
+ confidence: "low" | "medium" | "high";
1558
+ url?: string | undefined;
1559
+ imageRef?: string | undefined;
1560
+ }, {
1561
+ reason: string;
1562
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1563
+ confidence: "low" | "medium" | "high";
1564
+ url?: string | undefined;
1565
+ imageRef?: string | undefined;
1412
1566
  }>, "many">;
1413
1567
  }, "strip", z.ZodTypeAny, {
1414
1568
  sources: {
1415
1569
  reason: string;
1416
- url: string;
1417
1570
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1418
1571
  confidence: "low" | "medium" | "high";
1572
+ url?: string | undefined;
1573
+ imageRef?: string | undefined;
1419
1574
  }[];
1420
1575
  }, {
1421
1576
  sources: {
1422
1577
  reason: string;
1423
- url: string;
1424
1578
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1425
1579
  confidence: "low" | "medium" | "high";
1580
+ url?: string | undefined;
1581
+ imageRef?: string | undefined;
1426
1582
  }[];
1427
1583
  }>>;
1428
1584
  designDecision: z.ZodOptional<z.ZodEnum<["let_rivet_choose", "go_custom"]>>;
@@ -1430,7 +1586,7 @@ export declare const proposeVariantsInput: {
1430
1586
  sourceUrls?: string[] | undefined;
1431
1587
  preserveBrand?: boolean | undefined;
1432
1588
  sourceArtifacts?: {
1433
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1589
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1434
1590
  label: string;
1435
1591
  content: string;
1436
1592
  }[] | undefined;
@@ -1450,9 +1606,10 @@ export declare const proposeVariantsInput: {
1450
1606
  sourceIntent?: {
1451
1607
  sources: {
1452
1608
  reason: string;
1453
- url: string;
1454
1609
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1455
1610
  confidence: "low" | "medium" | "high";
1611
+ url?: string | undefined;
1612
+ imageRef?: string | undefined;
1456
1613
  }[];
1457
1614
  } | undefined;
1458
1615
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1460,7 +1617,7 @@ export declare const proposeVariantsInput: {
1460
1617
  sourceUrls?: string[] | undefined;
1461
1618
  preserveBrand?: boolean | undefined;
1462
1619
  sourceArtifacts?: {
1463
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1620
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1464
1621
  label: string;
1465
1622
  content: string;
1466
1623
  }[] | undefined;
@@ -1480,9 +1637,10 @@ export declare const proposeVariantsInput: {
1480
1637
  sourceIntent?: {
1481
1638
  sources: {
1482
1639
  reason: string;
1483
- url: string;
1484
1640
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1485
1641
  confidence: "low" | "medium" | "high";
1642
+ url?: string | undefined;
1643
+ imageRef?: string | undefined;
1486
1644
  }[];
1487
1645
  } | undefined;
1488
1646
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1536,6 +1694,7 @@ export declare const proposeVariantsInput: {
1536
1694
  }, "strip", z.ZodTypeAny, {
1537
1695
  kind: "fresh";
1538
1696
  workspacePath: string;
1697
+ workspaceRoot: string;
1539
1698
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
1540
1699
  assetSourceRoot?: string | undefined;
1541
1700
  designContext?: ({
@@ -1550,7 +1709,7 @@ export declare const proposeVariantsInput: {
1550
1709
  sourceUrls?: string[] | undefined;
1551
1710
  preserveBrand?: boolean | undefined;
1552
1711
  sourceArtifacts?: {
1553
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1712
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1554
1713
  label: string;
1555
1714
  content: string;
1556
1715
  }[] | undefined;
@@ -1570,9 +1729,10 @@ export declare const proposeVariantsInput: {
1570
1729
  sourceIntent?: {
1571
1730
  sources: {
1572
1731
  reason: string;
1573
- url: string;
1574
1732
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1575
1733
  confidence: "low" | "medium" | "high";
1734
+ url?: string | undefined;
1735
+ imageRef?: string | undefined;
1576
1736
  }[];
1577
1737
  } | undefined;
1578
1738
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1592,6 +1752,7 @@ export declare const proposeVariantsInput: {
1592
1752
  }, {
1593
1753
  kind: "fresh";
1594
1754
  workspacePath: string;
1755
+ workspaceRoot: string;
1595
1756
  framework?: "next" | "vite" | "remix" | "astro" | undefined;
1596
1757
  assetSourceRoot?: string | undefined;
1597
1758
  designContext?: ({
@@ -1606,7 +1767,7 @@ export declare const proposeVariantsInput: {
1606
1767
  sourceUrls?: string[] | undefined;
1607
1768
  preserveBrand?: boolean | undefined;
1608
1769
  sourceArtifacts?: {
1609
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
1770
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
1610
1771
  label: string;
1611
1772
  content: string;
1612
1773
  }[] | undefined;
@@ -1626,9 +1787,10 @@ export declare const proposeVariantsInput: {
1626
1787
  sourceIntent?: {
1627
1788
  sources: {
1628
1789
  reason: string;
1629
- url: string;
1630
1790
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1631
1791
  confidence: "low" | "medium" | "high";
1792
+ url?: string | undefined;
1793
+ imageRef?: string | undefined;
1632
1794
  }[];
1633
1795
  } | undefined;
1634
1796
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -1681,18 +1843,38 @@ export declare const reportVariantBriefsInput: {
1681
1843
  visualReferenceUrl?: string | undefined;
1682
1844
  }>, "many">;
1683
1845
  };
1684
- declare const browserDesignContextSchema: z.ZodObject<{
1685
- url: z.ZodString;
1846
+ /**
1847
+ * One agent-extracted DESIGN.md, keyed by exactly one of:
1848
+ * - `url`: the inspiration URL the agent fetched via browser extraction
1849
+ * - `imageRef`: a stable `image:<index>` reference matching an image-kind
1850
+ * entry in the session's `sourceArtifacts` (see `buildImageRefs` in
1851
+ * SessionStore for index semantics)
1852
+ */
1853
+ declare const browserDesignContextSchema: z.ZodEffects<z.ZodObject<{
1854
+ url: z.ZodOptional<z.ZodString>;
1855
+ imageRef: z.ZodOptional<z.ZodString>;
1686
1856
  label: z.ZodString;
1687
1857
  markdown: z.ZodString;
1688
1858
  }, "strip", z.ZodTypeAny, {
1689
1859
  markdown: string;
1690
- url: string;
1691
1860
  label: string;
1861
+ url?: string | undefined;
1862
+ imageRef?: string | undefined;
1863
+ }, {
1864
+ markdown: string;
1865
+ label: string;
1866
+ url?: string | undefined;
1867
+ imageRef?: string | undefined;
1868
+ }>, {
1869
+ markdown: string;
1870
+ label: string;
1871
+ url?: string | undefined;
1872
+ imageRef?: string | undefined;
1692
1873
  }, {
1693
1874
  markdown: string;
1694
- url: string;
1695
1875
  label: string;
1876
+ url?: string | undefined;
1877
+ imageRef?: string | undefined;
1696
1878
  }>;
1697
1879
  /**
1698
1880
  * Consolidated planning artifact reported by the agent in a single tool call.
@@ -1704,35 +1886,52 @@ declare const browserDesignContextSchema: z.ZodObject<{
1704
1886
  */
1705
1887
  export declare const sourcePlanArtifactSchema: z.ZodObject<{
1706
1888
  sourceIntent: z.ZodObject<{
1707
- sources: z.ZodArray<z.ZodObject<{
1708
- url: z.ZodString;
1889
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
1890
+ url: z.ZodOptional<z.ZodString>;
1891
+ imageRef: z.ZodOptional<z.ZodString>;
1709
1892
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
1710
1893
  confidence: z.ZodEnum<["low", "medium", "high"]>;
1711
1894
  reason: z.ZodString;
1712
1895
  }, "strip", z.ZodTypeAny, {
1713
1896
  reason: string;
1714
- url: string;
1715
1897
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1716
1898
  confidence: "low" | "medium" | "high";
1899
+ url?: string | undefined;
1900
+ imageRef?: string | undefined;
1717
1901
  }, {
1718
1902
  reason: string;
1719
- url: string;
1720
1903
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1721
1904
  confidence: "low" | "medium" | "high";
1905
+ url?: string | undefined;
1906
+ imageRef?: string | undefined;
1907
+ }>, {
1908
+ reason: string;
1909
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1910
+ confidence: "low" | "medium" | "high";
1911
+ url?: string | undefined;
1912
+ imageRef?: string | undefined;
1913
+ }, {
1914
+ reason: string;
1915
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1916
+ confidence: "low" | "medium" | "high";
1917
+ url?: string | undefined;
1918
+ imageRef?: string | undefined;
1722
1919
  }>, "many">;
1723
1920
  }, "strip", z.ZodTypeAny, {
1724
1921
  sources: {
1725
1922
  reason: string;
1726
- url: string;
1727
1923
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1728
1924
  confidence: "low" | "medium" | "high";
1925
+ url?: string | undefined;
1926
+ imageRef?: string | undefined;
1729
1927
  }[];
1730
1928
  }, {
1731
1929
  sources: {
1732
1930
  reason: string;
1733
- url: string;
1734
1931
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1735
1932
  confidence: "low" | "medium" | "high";
1933
+ url?: string | undefined;
1934
+ imageRef?: string | undefined;
1736
1935
  }[];
1737
1936
  }>;
1738
1937
  sourceContext: z.ZodObject<{
@@ -1780,18 +1979,31 @@ export declare const sourcePlanArtifactSchema: z.ZodObject<{
1780
1979
  screenshotReferences?: string[] | undefined;
1781
1980
  risks?: string[] | undefined;
1782
1981
  }>;
1783
- designContexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1784
- url: z.ZodString;
1982
+ designContexts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1983
+ url: z.ZodOptional<z.ZodString>;
1984
+ imageRef: z.ZodOptional<z.ZodString>;
1785
1985
  label: z.ZodString;
1786
1986
  markdown: z.ZodString;
1787
1987
  }, "strip", z.ZodTypeAny, {
1788
1988
  markdown: string;
1789
- url: string;
1790
1989
  label: string;
1990
+ url?: string | undefined;
1991
+ imageRef?: string | undefined;
1791
1992
  }, {
1792
1993
  markdown: string;
1793
- url: string;
1794
1994
  label: string;
1995
+ url?: string | undefined;
1996
+ imageRef?: string | undefined;
1997
+ }>, {
1998
+ markdown: string;
1999
+ label: string;
2000
+ url?: string | undefined;
2001
+ imageRef?: string | undefined;
2002
+ }, {
2003
+ markdown: string;
2004
+ label: string;
2005
+ url?: string | undefined;
2006
+ imageRef?: string | undefined;
1795
2007
  }>, "many">>;
1796
2008
  executionPlan: z.ZodObject<{
1797
2009
  mode: z.ZodEnum<["static_preview", "vite_app"]>;
@@ -1839,9 +2051,10 @@ export declare const sourcePlanArtifactSchema: z.ZodObject<{
1839
2051
  sourceIntent: {
1840
2052
  sources: {
1841
2053
  reason: string;
1842
- url: string;
1843
2054
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1844
2055
  confidence: "low" | "medium" | "high";
2056
+ url?: string | undefined;
2057
+ imageRef?: string | undefined;
1845
2058
  }[];
1846
2059
  };
1847
2060
  sourceContext: {
@@ -1871,16 +2084,18 @@ export declare const sourcePlanArtifactSchema: z.ZodObject<{
1871
2084
  };
1872
2085
  designContexts?: {
1873
2086
  markdown: string;
1874
- url: string;
1875
2087
  label: string;
2088
+ url?: string | undefined;
2089
+ imageRef?: string | undefined;
1876
2090
  }[] | undefined;
1877
2091
  }, {
1878
2092
  sourceIntent: {
1879
2093
  sources: {
1880
2094
  reason: string;
1881
- url: string;
1882
2095
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1883
2096
  confidence: "low" | "medium" | "high";
2097
+ url?: string | undefined;
2098
+ imageRef?: string | undefined;
1884
2099
  }[];
1885
2100
  };
1886
2101
  sourceContext: {
@@ -1910,8 +2125,9 @@ export declare const sourcePlanArtifactSchema: z.ZodObject<{
1910
2125
  };
1911
2126
  designContexts?: {
1912
2127
  markdown: string;
1913
- url: string;
1914
2128
  label: string;
2129
+ url?: string | undefined;
2130
+ imageRef?: string | undefined;
1915
2131
  }[] | undefined;
1916
2132
  }>;
1917
2133
  export type SourcePlanArtifact = z.infer<typeof sourcePlanArtifactSchema>;
@@ -1923,35 +2139,52 @@ export declare const reportSourcePlanInput: {
1923
2139
  leaseId: z.ZodString;
1924
2140
  sourcePlan: z.ZodObject<{
1925
2141
  sourceIntent: z.ZodObject<{
1926
- sources: z.ZodArray<z.ZodObject<{
1927
- url: z.ZodString;
2142
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
2143
+ url: z.ZodOptional<z.ZodString>;
2144
+ imageRef: z.ZodOptional<z.ZodString>;
1928
2145
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
1929
2146
  confidence: z.ZodEnum<["low", "medium", "high"]>;
1930
2147
  reason: z.ZodString;
1931
2148
  }, "strip", z.ZodTypeAny, {
1932
2149
  reason: string;
1933
- url: string;
1934
2150
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1935
2151
  confidence: "low" | "medium" | "high";
2152
+ url?: string | undefined;
2153
+ imageRef?: string | undefined;
1936
2154
  }, {
1937
2155
  reason: string;
1938
- url: string;
1939
2156
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1940
2157
  confidence: "low" | "medium" | "high";
2158
+ url?: string | undefined;
2159
+ imageRef?: string | undefined;
2160
+ }>, {
2161
+ reason: string;
2162
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2163
+ confidence: "low" | "medium" | "high";
2164
+ url?: string | undefined;
2165
+ imageRef?: string | undefined;
2166
+ }, {
2167
+ reason: string;
2168
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2169
+ confidence: "low" | "medium" | "high";
2170
+ url?: string | undefined;
2171
+ imageRef?: string | undefined;
1941
2172
  }>, "many">;
1942
2173
  }, "strip", z.ZodTypeAny, {
1943
2174
  sources: {
1944
2175
  reason: string;
1945
- url: string;
1946
2176
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1947
2177
  confidence: "low" | "medium" | "high";
2178
+ url?: string | undefined;
2179
+ imageRef?: string | undefined;
1948
2180
  }[];
1949
2181
  }, {
1950
2182
  sources: {
1951
2183
  reason: string;
1952
- url: string;
1953
2184
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
1954
2185
  confidence: "low" | "medium" | "high";
2186
+ url?: string | undefined;
2187
+ imageRef?: string | undefined;
1955
2188
  }[];
1956
2189
  }>;
1957
2190
  sourceContext: z.ZodObject<{
@@ -1999,18 +2232,31 @@ export declare const reportSourcePlanInput: {
1999
2232
  screenshotReferences?: string[] | undefined;
2000
2233
  risks?: string[] | undefined;
2001
2234
  }>;
2002
- designContexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2003
- url: z.ZodString;
2235
+ designContexts: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2236
+ url: z.ZodOptional<z.ZodString>;
2237
+ imageRef: z.ZodOptional<z.ZodString>;
2004
2238
  label: z.ZodString;
2005
2239
  markdown: z.ZodString;
2006
2240
  }, "strip", z.ZodTypeAny, {
2007
2241
  markdown: string;
2008
- url: string;
2009
2242
  label: string;
2243
+ url?: string | undefined;
2244
+ imageRef?: string | undefined;
2010
2245
  }, {
2011
2246
  markdown: string;
2012
- url: string;
2013
2247
  label: string;
2248
+ url?: string | undefined;
2249
+ imageRef?: string | undefined;
2250
+ }>, {
2251
+ markdown: string;
2252
+ label: string;
2253
+ url?: string | undefined;
2254
+ imageRef?: string | undefined;
2255
+ }, {
2256
+ markdown: string;
2257
+ label: string;
2258
+ url?: string | undefined;
2259
+ imageRef?: string | undefined;
2014
2260
  }>, "many">>;
2015
2261
  executionPlan: z.ZodObject<{
2016
2262
  mode: z.ZodEnum<["static_preview", "vite_app"]>;
@@ -2058,9 +2304,10 @@ export declare const reportSourcePlanInput: {
2058
2304
  sourceIntent: {
2059
2305
  sources: {
2060
2306
  reason: string;
2061
- url: string;
2062
2307
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2063
2308
  confidence: "low" | "medium" | "high";
2309
+ url?: string | undefined;
2310
+ imageRef?: string | undefined;
2064
2311
  }[];
2065
2312
  };
2066
2313
  sourceContext: {
@@ -2090,16 +2337,18 @@ export declare const reportSourcePlanInput: {
2090
2337
  };
2091
2338
  designContexts?: {
2092
2339
  markdown: string;
2093
- url: string;
2094
2340
  label: string;
2341
+ url?: string | undefined;
2342
+ imageRef?: string | undefined;
2095
2343
  }[] | undefined;
2096
2344
  }, {
2097
2345
  sourceIntent: {
2098
2346
  sources: {
2099
2347
  reason: string;
2100
- url: string;
2101
2348
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2102
2349
  confidence: "low" | "medium" | "high";
2350
+ url?: string | undefined;
2351
+ imageRef?: string | undefined;
2103
2352
  }[];
2104
2353
  };
2105
2354
  sourceContext: {
@@ -2129,8 +2378,9 @@ export declare const reportSourcePlanInput: {
2129
2378
  };
2130
2379
  designContexts?: {
2131
2380
  markdown: string;
2132
- url: string;
2133
2381
  label: string;
2382
+ url?: string | undefined;
2383
+ imageRef?: string | undefined;
2134
2384
  }[] | undefined;
2135
2385
  }>;
2136
2386
  };
@@ -2284,15 +2534,15 @@ export declare const extractInspirationContextInput: {
2284
2534
  urls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2285
2535
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
2286
2536
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2287
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
2537
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
2288
2538
  label: z.ZodString;
2289
2539
  content: z.ZodString;
2290
2540
  }, "strip", z.ZodTypeAny, {
2291
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2541
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2292
2542
  label: string;
2293
2543
  content: string;
2294
2544
  }, {
2295
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2545
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2296
2546
  label: string;
2297
2547
  content: string;
2298
2548
  }>, "many">>;
@@ -2457,15 +2707,15 @@ export declare const startVariantsInput: {
2457
2707
  sourceUrls: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2458
2708
  preserveBrand: z.ZodOptional<z.ZodBoolean>;
2459
2709
  sourceArtifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2460
- kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes"]>;
2710
+ kind: z.ZodEnum<["urlText", "siteBrief", "visualBrief", "screenshotNotes", "motionBrief"]>;
2461
2711
  label: z.ZodString;
2462
2712
  content: z.ZodString;
2463
2713
  }, "strip", z.ZodTypeAny, {
2464
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2714
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2465
2715
  label: string;
2466
2716
  content: string;
2467
2717
  }, {
2468
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2718
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2469
2719
  label: string;
2470
2720
  content: string;
2471
2721
  }>, "many">>;
@@ -2515,35 +2765,52 @@ export declare const startVariantsInput: {
2515
2765
  risks?: string[] | undefined;
2516
2766
  }>>;
2517
2767
  sourceIntent: z.ZodOptional<z.ZodObject<{
2518
- sources: z.ZodArray<z.ZodObject<{
2519
- url: z.ZodString;
2768
+ sources: z.ZodArray<z.ZodEffects<z.ZodObject<{
2769
+ url: z.ZodOptional<z.ZodString>;
2770
+ imageRef: z.ZodOptional<z.ZodString>;
2520
2771
  role: z.ZodEnum<["design_source", "interaction_reference", "asset_source", "content_reference", "other"]>;
2521
2772
  confidence: z.ZodEnum<["low", "medium", "high"]>;
2522
2773
  reason: z.ZodString;
2523
2774
  }, "strip", z.ZodTypeAny, {
2524
2775
  reason: string;
2525
- url: string;
2526
2776
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2527
2777
  confidence: "low" | "medium" | "high";
2778
+ url?: string | undefined;
2779
+ imageRef?: string | undefined;
2528
2780
  }, {
2529
2781
  reason: string;
2530
- url: string;
2531
2782
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2532
2783
  confidence: "low" | "medium" | "high";
2784
+ url?: string | undefined;
2785
+ imageRef?: string | undefined;
2786
+ }>, {
2787
+ reason: string;
2788
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2789
+ confidence: "low" | "medium" | "high";
2790
+ url?: string | undefined;
2791
+ imageRef?: string | undefined;
2792
+ }, {
2793
+ reason: string;
2794
+ role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2795
+ confidence: "low" | "medium" | "high";
2796
+ url?: string | undefined;
2797
+ imageRef?: string | undefined;
2533
2798
  }>, "many">;
2534
2799
  }, "strip", z.ZodTypeAny, {
2535
2800
  sources: {
2536
2801
  reason: string;
2537
- url: string;
2538
2802
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2539
2803
  confidence: "low" | "medium" | "high";
2804
+ url?: string | undefined;
2805
+ imageRef?: string | undefined;
2540
2806
  }[];
2541
2807
  }, {
2542
2808
  sources: {
2543
2809
  reason: string;
2544
- url: string;
2545
2810
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2546
2811
  confidence: "low" | "medium" | "high";
2812
+ url?: string | undefined;
2813
+ imageRef?: string | undefined;
2547
2814
  }[];
2548
2815
  }>>;
2549
2816
  designDecision: z.ZodOptional<z.ZodEnum<["let_rivet_choose", "go_custom"]>>;
@@ -2551,7 +2818,7 @@ export declare const startVariantsInput: {
2551
2818
  sourceUrls?: string[] | undefined;
2552
2819
  preserveBrand?: boolean | undefined;
2553
2820
  sourceArtifacts?: {
2554
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2821
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2555
2822
  label: string;
2556
2823
  content: string;
2557
2824
  }[] | undefined;
@@ -2571,9 +2838,10 @@ export declare const startVariantsInput: {
2571
2838
  sourceIntent?: {
2572
2839
  sources: {
2573
2840
  reason: string;
2574
- url: string;
2575
2841
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2576
2842
  confidence: "low" | "medium" | "high";
2843
+ url?: string | undefined;
2844
+ imageRef?: string | undefined;
2577
2845
  }[];
2578
2846
  } | undefined;
2579
2847
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -2581,7 +2849,7 @@ export declare const startVariantsInput: {
2581
2849
  sourceUrls?: string[] | undefined;
2582
2850
  preserveBrand?: boolean | undefined;
2583
2851
  sourceArtifacts?: {
2584
- kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes";
2852
+ kind: "urlText" | "siteBrief" | "visualBrief" | "screenshotNotes" | "motionBrief";
2585
2853
  label: string;
2586
2854
  content: string;
2587
2855
  }[] | undefined;
@@ -2601,9 +2869,10 @@ export declare const startVariantsInput: {
2601
2869
  sourceIntent?: {
2602
2870
  sources: {
2603
2871
  reason: string;
2604
- url: string;
2605
2872
  role: "other" | "design_source" | "interaction_reference" | "asset_source" | "content_reference";
2606
2873
  confidence: "low" | "medium" | "high";
2874
+ url?: string | undefined;
2875
+ imageRef?: string | undefined;
2607
2876
  }[];
2608
2877
  } | undefined;
2609
2878
  designDecision?: "let_rivet_choose" | "go_custom" | undefined;
@@ -2811,6 +3080,103 @@ export interface TerminalSummary {
2811
3080
  label?: string;
2812
3081
  }>;
2813
3082
  }
3083
+ export declare const variantHistoryStatusSchema: z.ZodEnum<["completed", "committed", "rejected", "cancelled"]>;
3084
+ export declare const listPastVariantsInput: {
3085
+ projectPath: z.ZodOptional<z.ZodString>;
3086
+ limit: z.ZodOptional<z.ZodNumber>;
3087
+ status: z.ZodOptional<z.ZodEnum<["completed", "committed", "rejected", "cancelled"]>>;
3088
+ };
3089
+ export type ListPastVariantsInput = {
3090
+ projectPath?: string;
3091
+ limit?: number;
3092
+ status?: z.infer<typeof variantHistoryStatusSchema>;
3093
+ };
3094
+ export type PastVariantArtifact = {
3095
+ kind: 'diff';
3096
+ diffPath: 'diff.patch';
3097
+ filesPath?: 'files';
3098
+ } | {
3099
+ kind: 'project';
3100
+ filesPath: 'files';
3101
+ runnablePath?: string;
3102
+ };
3103
+ export type PastVariantPreview = {
3104
+ kind: 'static';
3105
+ rootPath: 'files';
3106
+ entryPath: string;
3107
+ } | {
3108
+ kind: 'dev-server';
3109
+ rootPath: 'files';
3110
+ command: {
3111
+ cwd: string;
3112
+ packageManager: string;
3113
+ script: string;
3114
+ };
3115
+ runnablePath?: string;
3116
+ } | {
3117
+ kind: 'none';
3118
+ reason: 'diff_only' | 'missing_entry' | 'unsupported';
3119
+ };
3120
+ export interface PastVariantSummary {
3121
+ sessionId: string;
3122
+ variantId: string;
3123
+ label: string;
3124
+ brief: string;
3125
+ kind: 'diff' | 'project-created';
3126
+ status: z.infer<typeof variantHistoryStatusSchema>;
3127
+ createdAt: string;
3128
+ statusChangedAt: string;
3129
+ changedFilesCount: number;
3130
+ artifact: PastVariantArtifact;
3131
+ preview: PastVariantPreview;
3132
+ }
3133
+ export type ListPastVariantsOutput = {
3134
+ projectPath: string;
3135
+ variants: PastVariantSummary[];
3136
+ } | {
3137
+ stage: 'failed';
3138
+ errorCode: ErrorCode;
3139
+ message: string;
3140
+ };
3141
+ export declare const getVariantInput: {
3142
+ projectPath: z.ZodOptional<z.ZodString>;
3143
+ sessionId: z.ZodString;
3144
+ variantId: z.ZodString;
3145
+ /** When false, diff body / file list are omitted to keep responses small. */
3146
+ includeBody: z.ZodOptional<z.ZodBoolean>;
3147
+ };
3148
+ export type GetVariantInput = {
3149
+ projectPath?: string;
3150
+ sessionId: string;
3151
+ variantId: string;
3152
+ includeBody?: boolean;
3153
+ };
3154
+ export type GetVariantOutput = {
3155
+ projectPath: string;
3156
+ variant: PastVariantSummary & {
3157
+ sessionPrompt: string;
3158
+ baseSha?: string;
3159
+ destinationPath?: string;
3160
+ diff?: string;
3161
+ files?: string[];
3162
+ /** Top-level DESIGN.md artifact body — present for fresh-project
3163
+ * variants scaffolded with a design context. Omitted when
3164
+ * `includeBody: false`. */
3165
+ designMarkdown?: string;
3166
+ /** Provenance for the persisted DESIGN.md so callers can render a
3167
+ * recognizable label (e.g. catalog name) without re-resolving the
3168
+ * slug. */
3169
+ designSource?: {
3170
+ kind: 'slug' | 'markdown';
3171
+ label: string;
3172
+ slug?: string;
3173
+ };
3174
+ };
3175
+ } | {
3176
+ stage: 'failed';
3177
+ errorCode: ErrorCode;
3178
+ message: string;
3179
+ };
2814
3180
  export type VariantPickPayload =
2815
3181
  /**
2816
3182
  * Server-internal raw diff payload. Retained so unit tests and callers that