rivet-design 0.9.3 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/mcp/agent-variants/SessionStore.d.ts +26 -10
  2. package/dist/mcp/agent-variants/SessionStore.d.ts.map +1 -1
  3. package/dist/mcp/agent-variants/SessionStore.js +189 -44
  4. package/dist/mcp/agent-variants/SessionStore.js.map +1 -1
  5. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts +209 -13
  6. package/dist/mcp/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  7. package/dist/mcp/agent-variants/WorktreeOrchestrator.js +1489 -61
  8. package/dist/mcp/agent-variants/WorktreeOrchestrator.js.map +1 -1
  9. package/dist/mcp/agent-variants/WorktreeOrchestrator.testHelpers.d.ts +65 -0
  10. package/dist/mcp/agent-variants/WorktreeOrchestrator.testHelpers.d.ts.map +1 -0
  11. package/dist/mcp/agent-variants/WorktreeOrchestrator.testHelpers.js +162 -0
  12. package/dist/mcp/agent-variants/WorktreeOrchestrator.testHelpers.js.map +1 -0
  13. package/dist/mcp/agent-variants/contracts.d.ts +1576 -64
  14. package/dist/mcp/agent-variants/contracts.d.ts.map +1 -1
  15. package/dist/mcp/agent-variants/contracts.js +202 -9
  16. package/dist/mcp/agent-variants/contracts.js.map +1 -1
  17. package/dist/mcp/agent-variants/createProjectArtifacts.d.ts +78 -0
  18. package/dist/mcp/agent-variants/createProjectArtifacts.d.ts.map +1 -0
  19. package/dist/mcp/agent-variants/createProjectArtifacts.js +123 -0
  20. package/dist/mcp/agent-variants/createProjectArtifacts.js.map +1 -0
  21. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts +67 -25
  22. package/dist/mcp/agent-variants/createZeroToOneTool.d.ts.map +1 -1
  23. package/dist/mcp/agent-variants/createZeroToOneTool.js +60 -126
  24. package/dist/mcp/agent-variants/createZeroToOneTool.js.map +1 -1
  25. package/dist/mcp/agent-variants/errors.d.ts +1 -1
  26. package/dist/mcp/agent-variants/errors.d.ts.map +1 -1
  27. package/dist/mcp/agent-variants/errors.js +1 -0
  28. package/dist/mcp/agent-variants/errors.js.map +1 -1
  29. package/dist/mcp/agent-variants/index.d.ts +3 -4
  30. package/dist/mcp/agent-variants/index.d.ts.map +1 -1
  31. package/dist/mcp/agent-variants/index.js +2 -2
  32. package/dist/mcp/agent-variants/index.js.map +1 -1
  33. package/dist/mcp/agent-variants/inspirationDesignContext.d.ts +10 -0
  34. package/dist/mcp/agent-variants/inspirationDesignContext.d.ts.map +1 -1
  35. package/dist/mcp/agent-variants/inspirationDesignContext.js +104 -16
  36. package/dist/mcp/agent-variants/inspirationDesignContext.js.map +1 -1
  37. package/dist/mcp/agent-variants/pendingChangesAdapter.d.ts.map +1 -1
  38. package/dist/mcp/agent-variants/pendingChangesAdapter.js +11 -0
  39. package/dist/mcp/agent-variants/pendingChangesAdapter.js.map +1 -1
  40. package/dist/mcp/agent-variants/previewQa.d.ts +61 -0
  41. package/dist/mcp/agent-variants/previewQa.d.ts.map +1 -0
  42. package/dist/mcp/agent-variants/previewQa.js +374 -0
  43. package/dist/mcp/agent-variants/previewQa.js.map +1 -0
  44. package/dist/mcp/agent-variants/sourceContext.d.ts +1 -0
  45. package/dist/mcp/agent-variants/sourceContext.d.ts.map +1 -1
  46. package/dist/mcp/agent-variants/sourceContext.js +28 -3
  47. package/dist/mcp/agent-variants/sourceContext.js.map +1 -1
  48. package/dist/mcp/agent-variants/tools.d.ts +40 -3
  49. package/dist/mcp/agent-variants/tools.d.ts.map +1 -1
  50. package/dist/mcp/agent-variants/tools.js +262 -38
  51. package/dist/mcp/agent-variants/tools.js.map +1 -1
  52. package/dist/mcp/server.d.ts.map +1 -1
  53. package/dist/mcp/server.js +32 -7
  54. package/dist/mcp/server.js.map +1 -1
  55. package/dist/prompts/agentModPrompts.d.ts.map +1 -1
  56. package/dist/prompts/agentModPrompts.js +11 -10
  57. package/dist/prompts/agentModPrompts.js.map +1 -1
  58. package/dist/proxy-middleware/proxy-config.d.ts +2 -2
  59. package/dist/proxy-middleware/proxy-config.d.ts.map +1 -1
  60. package/dist/proxy-middleware/proxy-config.js +66 -22
  61. package/dist/proxy-middleware/proxy-config.js.map +1 -1
  62. package/dist/routes/agentVariants.d.ts +2 -13
  63. package/dist/routes/agentVariants.d.ts.map +1 -1
  64. package/dist/routes/agentVariants.js +156 -2
  65. package/dist/routes/agentVariants.js.map +1 -1
  66. package/dist/server.d.ts.map +1 -1
  67. package/dist/server.js +79 -4
  68. package/dist/server.js.map +1 -1
  69. package/dist/services/ProjectDetectionService.d.ts.map +1 -1
  70. package/dist/services/ProjectDetectionService.js +21 -0
  71. package/dist/services/ProjectDetectionService.js.map +1 -1
  72. package/dist/services/VariantHistoryService.d.ts +117 -0
  73. package/dist/services/VariantHistoryService.d.ts.map +1 -0
  74. package/dist/services/VariantHistoryService.js +385 -0
  75. package/dist/services/VariantHistoryService.js.map +1 -0
  76. package/dist/services/WorktreeManager.d.ts +67 -9
  77. package/dist/services/WorktreeManager.d.ts.map +1 -1
  78. package/dist/services/WorktreeManager.js +209 -26
  79. package/dist/services/WorktreeManager.js.map +1 -1
  80. package/dist/services/agent/AgentCore.d.ts +1 -1
  81. package/dist/services/agent/AgentCore.d.ts.map +1 -1
  82. package/dist/services/agent/AgentCore.js +24 -1
  83. package/dist/services/agent/AgentCore.js.map +1 -1
  84. package/dist/services/agent/AgentModService.d.ts +1 -1
  85. package/dist/services/agent/AgentModService.js +7 -7
  86. package/dist/services/agent/AgentModService.js.map +1 -1
  87. package/dist/services/templates/viteReactTs.d.ts +6 -0
  88. package/dist/services/templates/viteReactTs.d.ts.map +1 -1
  89. package/dist/services/templates/viteReactTs.js +8 -1
  90. package/dist/services/templates/viteReactTs.js.map +1 -1
  91. package/dist/types/change-request-types.d.ts +14 -0
  92. package/dist/types/change-request-types.d.ts.map +1 -1
  93. package/dist/utils/skills/claude-skill.d.ts +1 -1
  94. package/dist/utils/skills/claude-skill.js +2 -2
  95. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  96. package/dist/utils/skills/cursor-rules.js +1 -1
  97. package/dist/utils/skills/shared-variants-protocol.d.ts +1 -1
  98. package/dist/utils/skills/shared-variants-protocol.d.ts.map +1 -1
  99. package/dist/utils/skills/shared-variants-protocol.js +31 -32
  100. package/dist/utils/skills/shared-variants-protocol.js.map +1 -1
  101. package/package.json +4 -5
  102. package/src/ui/dist/assets/main-OdmwI8Od.css +1 -0
  103. package/src/ui/dist/assets/{main-DejhsBWR.js → main-SuZlKEi0.js} +115 -115
  104. package/src/ui/dist/index.html +2 -2
  105. package/src/ui/dist/assets/main-C9jfEp80.css +0 -1
@@ -1,8 +1,9 @@
1
1
  import type { ChildProcess } from 'child_process';
2
2
  import { AgentVariantsError } from './errors';
3
3
  import { SessionStore, type ApprovedBriefSelection, type ApproveResult, type ProposeArgs, type ProposeResult, type ReportCompleteResult, type RequestWorkResult } from './SessionStore';
4
- import type { ActiveProjectContext, ActiveVariantSnapshot, Brief, DesignContextEntry, ProjectContext, SourceContextArtifact, SourceContextInput, Stage, Target, TerminalSummary, WorkItemStatus } from './contracts';
4
+ import type { ActiveProjectContext, ActiveVariantSnapshot, Brief, DesignContextEntry, ProjectContext, SourceContextInput, Stage, Target, TerminalSummary, VariantQaResult, VariantSessionArtifact, WorkItemStatus } from './contracts';
5
5
  import type { PendingChangesAdapter } from './pendingChangesAdapter';
6
+ import { VariantHistoryService } from '../../services/VariantHistoryService';
6
7
  /**
7
8
  * Subset of WorktreeManager that the orchestrator depends on. Defined as an
8
9
  * interface so unit tests can mock it without spinning up real git/processes.
@@ -13,14 +14,30 @@ import type { PendingChangesAdapter } from './pendingChangesAdapter';
13
14
  export interface WorktreeManagerLike {
14
15
  createWorktrees(sessionId: string, count: number): Promise<string[]>;
15
16
  getDiff(worktreePath: string): Promise<string>;
16
- cleanupSession(sessionId: string): Promise<void>;
17
+ /** Apply a unified diff to a project working tree (no commit). Used by
18
+ * commitVariant to land the chosen variant on the user's branch
19
+ * immediately rather than waiting for an agent to pick up pending-changes. */
20
+ applyDiffToProject?(diff: string, projectPath: string): Promise<void>;
21
+ /** `freshDestinationParent` is required when the session was fresh — it
22
+ * tells WorktreeManager which `<destinationParent>/.rivet-variants/` root
23
+ * the worktrees live under (since fresh worktrees are no longer in /tmp). */
24
+ cleanupSession(sessionId: string, freshDestinationParent?: string): Promise<void>;
17
25
  getFreePort(): Promise<number>;
18
26
  startDevServer(worktreePath: string, port: number, cmd: string, args: string[], env: Record<string, string>): Promise<ChildProcess>;
19
27
  stopDevServer(proc: ChildProcess, timeoutMs?: number): Promise<void>;
20
28
  getProjectCwdInWorktree(worktreePath: string): Promise<string>;
21
29
  /** Optional fresh-project scaffold support — present in production but
22
- * optional so unit tests can mock with the minimum surface they need. */
23
- createFreshWorktrees?(sessionId: string, count: number, template: import('../../services/templates/viteReactTs').TemplateBundle, designContext?: ReadonlyArray<DesignContextEntry | undefined>, sourceContext?: SourceContextInput): Promise<string[]>;
30
+ * optional so unit tests can mock with the minimum surface they need.
31
+ * `destinationParent` is the user-supplied workspace parent directory;
32
+ * fresh worktrees are scaffolded under `<destinationParent>/.rivet-variants/`
33
+ * so commit time can be a same-volume rename. */
34
+ createFreshWorktrees?(sessionId: string, count: number, template: import('../../services/templates/viteReactTs').TemplateBundle, designContext: ReadonlyArray<DesignContextEntry | undefined> | undefined, sourceContext: SourceContextInput | undefined, destinationParent: string): Promise<string[]>;
35
+ /** Move a fresh-worktree directory to its history location, preserving
36
+ * contents. Optional on the interface so unit tests can stub partially. */
37
+ moveWorktreeToHistory?(srcWorktreePath: string, historyDir: string, folderName: string): string;
38
+ /** Repoint a worktree's node_modules to a shared install via relative
39
+ * symlink. Optional on the interface so unit tests can stub partially. */
40
+ repointNodeModulesSymlink?(worktreePath: string, sharedNodeModulesAbsPath: string): void;
24
41
  }
25
42
  /**
26
43
  * Per-session resolved environment. Used to populate destinationPath on the
@@ -43,6 +60,19 @@ export interface ProjectEnvironment {
43
60
  env: Record<string, string>;
44
61
  };
45
62
  }
63
+ /**
64
+ * Runs preview QA against a static_preview variant before the orchestrator
65
+ * marks it as succeeded. Default implementation in
66
+ * `defaultPreviewQaRunner` performs static asset reachability checks via
67
+ * the global `fetch`. Tests inject a deterministic stub so they can
68
+ * exercise QA-pass, asset-failure, and runtime/console failure paths
69
+ * without network or browser dependencies.
70
+ */
71
+ export type PreviewQaRunner = (args: {
72
+ sessionId: string;
73
+ workItemId: string;
74
+ html: string;
75
+ }) => Promise<VariantQaResult>;
46
76
  export interface OrchestratorDeps {
47
77
  store: SessionStore;
48
78
  worktreeManager: WorktreeManagerLike;
@@ -57,6 +87,22 @@ export interface OrchestratorDeps {
57
87
  * initializes a fresh git repo. Defaults to a real fs.cp + simpleGit
58
88
  * implementation; tests inject a stub. */
59
89
  materializeProject?: (sourceWorktreePath: string, destinationPath: string) => Promise<void>;
90
+ /** Override the preview QA runner. See `PreviewQaRunner` for the contract. */
91
+ previewQaRunner?: PreviewQaRunner;
92
+ /** Retarget the iframe proxy to a different dev-server port (or back to the
93
+ * default upstream when `null`). Used by `commitVariant` on the fresh
94
+ * vite_app rename path: after the chosen variant is renamed into
95
+ * destinationPath, the orchestrator spawns a fresh dev server there and
96
+ * retargets so the iframe stays live instead of flashing "preview
97
+ * disconnected." Optional — tests can omit, and production wires it to
98
+ * `SessionBridgeService.switchPreviewPort`. */
99
+ switchPreviewPort?: (port: number | null) => void;
100
+ /** Local persistence for the variant-history feature. Writes every
101
+ * completed code_gen variant (and committed/rejected fresh-project
102
+ * variants) into `<projectPath>/.rivet/variants/` so the desktop UI and
103
+ * MCP `list_past_variants` tool can surface prior runs. Optional in the
104
+ * constructor for tests; production wires a real instance. */
105
+ variantHistory?: VariantHistoryService;
60
106
  }
61
107
  /**
62
108
  * Minimal telemetry surface the orchestrator depends on. Decoupled from
@@ -145,6 +191,10 @@ export type ActiveSnapshot = {
145
191
  /** For fresh sessions, the user-facing destination path the materialize
146
192
  * step will land at. Undefined for existing-project sessions. */
147
193
  destinationPath?: string;
194
+ /** Supporting artifacts the agent used or generated for this session
195
+ * (e.g. the DESIGN.md inspirations for a 0→1 run). Surfaced under the
196
+ * variants list so the user can inspect the hidden MCP context. */
197
+ artifacts?: VariantSessionArtifact[];
148
198
  };
149
199
  /**
150
200
  * Wraps SessionStore for the operations that have side effects: approve
@@ -166,7 +216,30 @@ export declare class AgentVariantsOrchestrator {
166
216
  private readonly telemetry;
167
217
  private readonly installDependencies;
168
218
  private readonly materializeProject;
219
+ private readonly previewQaRunner;
220
+ private readonly switchPreviewPort;
221
+ private readonly variantHistory;
169
222
  private readonly resources;
223
+ /**
224
+ * Committed dev servers from prior sessions that survived teardown. The
225
+ * orchestrator outlives any single session — once a new session starts, the
226
+ * prior committed dev server is no longer needed (the next session opens
227
+ * its own preview chip), so stop it before the new session's first preview
228
+ * goes live. Keyed by sessionId for diagnostics; values are kept alive
229
+ * intentionally between commit and next `propose` / `shutdown`.
230
+ */
231
+ private readonly lingeringCommittedDevServers;
232
+ /**
233
+ * Per-session in-flight commit chain. Two overlapping commitVariant calls
234
+ * would otherwise both pass the `getVariantPick` idempotency check (the
235
+ * pick isn't recorded until after `applyDiffToProject`) and double-invoke
236
+ * `git apply` — which corrupts the working tree on the second run. The
237
+ * chain serializes commits per session so the second caller waits for the
238
+ * first to finish and then hits the idempotency check (returning
239
+ * `duplicate: true` for the same variantId, or `PENDING_CHANGE_CONFLICT`
240
+ * for a different one).
241
+ */
242
+ private readonly inflightCommits;
170
243
  /** Most recent agent-variants sessionId — read by the iframe chip via
171
244
  * GET /api/variants/active. Cleared on cancel or commit. */
172
245
  private activeSessionId;
@@ -192,14 +265,8 @@ export declare class AgentVariantsOrchestrator {
192
265
  }): {
193
266
  briefs: Brief[];
194
267
  };
195
- reportSourceContext(args: {
196
- sessionId: string;
197
- workItemId: string;
198
- attempt: number;
199
- leaseId: string;
200
- sourceContext: SourceContextArtifact;
201
- }): {
202
- briefWorkItem: import("./contracts").WorkItem;
268
+ reportSourcePlan(args: import('./SessionStore').ReportSourcePlanArgs): {
269
+ briefWorkItem: import('./contracts').WorkItem;
203
270
  };
204
271
  requestWork(args: {
205
272
  sessionId: string;
@@ -256,6 +323,11 @@ export declare class AgentVariantsOrchestrator {
256
323
  * back to the agent in the same response — saving a separate
257
324
  * continue_variants(request_work) round-trip. */
258
325
  leaseOwner?: string;
326
+ /** Per-variant briefs supplied by the agent (label + body, optional
327
+ * visualReferenceUrl). When provided, briefs.length overrides any
328
+ * explicit count. When absent, the server stubs generic
329
+ * "Variant N" labels and a copy of the prompt as each body. */
330
+ briefs?: import('./contracts').StartVariantsBriefContent[];
259
331
  }): Promise<{
260
332
  sessionId: string;
261
333
  variants: Array<{
@@ -324,13 +396,19 @@ export declare class AgentVariantsOrchestrator {
324
396
  enqueued: boolean;
325
397
  duplicate: boolean;
326
398
  changedFilesCount: number;
327
- payloadKind?: 'diff' | 'project-created';
399
+ payloadKind?: 'diff' | 'diff-applied' | 'project-created';
328
400
  destinationPath?: string;
329
401
  }>;
402
+ private commitVariantImpl;
330
403
  cleanupCommittedSession(sessionId: string): Promise<void>;
331
404
  /**
332
405
  * Ensure the user-facing destination path can receive the new project.
333
406
  * Rejects when the path exists and is non-empty.
407
+ *
408
+ * `.rivet/` (pre-commit snapshots + history manifests) and `.gitignore`
409
+ * (written by VariantHistoryService.ensureGitignore when variants persist
410
+ * at success time) are both tolerated — neither is user-authored content
411
+ * that would be clobbered by the materialize step.
334
412
  */
335
413
  private assertDestinationAvailable;
336
414
  /** Read the captured diff for a code-gen variant, if available. */
@@ -362,15 +440,133 @@ export declare class AgentVariantsOrchestrator {
362
440
  * mark scaffold_base failed via `failInternal` and emit telemetry.
363
441
  */
364
442
  private runBackgroundInstall;
443
+ /**
444
+ * Gate `succeeded` reports for `static_preview` items through preview QA
445
+ * before they reach the store. Returns either `null` (caller continues
446
+ * with the original args — non-static-preview report, non-succeeded
447
+ * status, no parseable HTML, or QA passed) or an override carrying a
448
+ * `failed` rewrite of the report. The QA result is also memoized on the
449
+ * session resources so `getVariants` can surface it.
450
+ *
451
+ * Only fresh-project sessions go through this gate today; existing-
452
+ * project `code_gen` variants produce a diff with no preview document
453
+ * to inspect, so they skip QA and behave exactly as before.
454
+ */
455
+ private evaluateQaForReport;
365
456
  private handleSucceededReport;
457
+ /**
458
+ * Persist a completed existing-project code_gen variant into
459
+ * `<env.projectPath>/.rivet/variants/<sessionId>/<variantId>/`. Called from
460
+ * `handleSucceededReport` once the worktree diff has been captured but
461
+ * before the user picks. Status is `completed` until `commitVariant` or a
462
+ * cancellation transitions it.
463
+ */
464
+ private persistCompletedExistingVariant;
465
+ /**
466
+ * Persist a completed fresh-project variant into
467
+ * `<projectContext.workspacePath>/.rivet/variants/<sessionId>/<variantId>/`.
468
+ * Called from `handleSucceededReport` right after the per-variant snapshot
469
+ * lands on disk — for static_preview that's the `.rivet/<slug>/` snapshot
470
+ * dir; for vite_app fresh variants it's the worktree itself. Status starts
471
+ * as 'completed' and transitions to 'committed' / 'rejected' / 'cancelled'
472
+ * via `markStatus` at commit or teardown time.
473
+ *
474
+ * Running at success time (rather than commit time) means the history panel
475
+ * populates live as variants generate — including when the user never picks
476
+ * one. Mirrors the existing-project persistCompletedExistingVariant flow.
477
+ */
478
+ private persistCompletedFreshVariant;
479
+ /**
480
+ * At commit time, flip persisted variant manifests to terminal statuses
481
+ * ('committed' for the chosen, 'rejected' for the rest). Both existing- and
482
+ * fresh-project variants have already been persisted at code_gen success
483
+ * time, so this is a pure status update — no source-dir copy required.
484
+ * Also records the destination path on the chosen variant so history can
485
+ * surface "this variant became <path>".
486
+ */
487
+ private persistVariantHistoryAtCommit;
488
+ /**
489
+ * Flip persisted variant manifests to status='cancelled' for every variant
490
+ * in the session that was already snapshotted to disk. Fresh- and existing-
491
+ * project variants both persist at success time now, so both need their
492
+ * manifests flipped here. Best-effort — missing manifests are silently
493
+ * skipped by VariantHistoryService.markStatus.
494
+ */
495
+ private markPersistedVariantsCancelled;
496
+ private markPersistedVariantCancelled;
497
+ /**
498
+ * Resolve the project path that owns `.rivet/variants/` for a session.
499
+ * Existing sessions: the user's project (via `resolveEnv`). Fresh sessions:
500
+ * the *workspace root*, which is the parent of `workspacePath` — variants
501
+ * accumulate there across sessions instead of being scattered under each
502
+ * subproject. Must match what `persistCompletedFreshVariant` writes to.
503
+ */
504
+ private resolveHistoryProjectPath;
505
+ private readManifest;
366
506
  /**
367
507
  * Resolve dev server invocation for a worktree. Fresh-project worktrees
368
508
  * always use the Vite template's npm command at the worktree root; existing
369
509
  * projects defer to the user's framework/packageManager config.
370
510
  */
371
511
  private resolveDevServer;
512
+ /**
513
+ * After the chosen variant has been renamed into `destinationPath`, move
514
+ * each unchosen sibling worktree into a `<destinationParent>/<slug>-variants/NN-<label>/`
515
+ * folder and repoint its `node_modules` symlink at the chosen project's
516
+ * real install. Writes a manifest documenting all 5 variants (the chosen
517
+ * one with `folder: null` and `chosenPath: '../<slug>'`).
518
+ *
519
+ * Sets `vitePreservedSiblings = true` on session resources so the
520
+ * subsequent teardown skips `cleanupFreshWorktrees` (which would otherwise
521
+ * delete the just-preserved history). Dev servers still get stopped.
522
+ */
523
+ private preserveUnchosenVariants;
524
+ /**
525
+ * Rename `sourceWorktreePath` into `destinationPath`, then replace the
526
+ * worktree's `.git` with a fresh-history init + initial commit. Matches
527
+ * the historical materializeProject behavior of "user sees a fresh repo
528
+ * at destinationPath" so we don't surprise them with a `rivet: variant
529
+ * baseline` commit they didn't intend.
530
+ *
531
+ * The rename is the load-bearing operation: it moves the entire variant
532
+ * tree (template files + materialized node_modules) in O(1) when the
533
+ * source and destination share a volume. The git reset that follows is
534
+ * best-effort housekeeping; a failure there leaves files in place.
535
+ */
536
+ private renameWorktreeIntoDestination;
537
+ /**
538
+ * Stop every variant dev server currently running for `resources`. Clears
539
+ * the `devServerProcess` / `port` fields on each record so subsequent
540
+ * teardown logic doesn't try to stop them a second time. Called from
541
+ * `commitVariant` (vite_app rename path) BEFORE the worktree directory is
542
+ * renamed — leaving Vite alive across the rename leaks empty `.vite/`
543
+ * stub dirs at the old paths.
544
+ */
545
+ private stopAllDevServersForSession;
546
+ /**
547
+ * Spawn a fresh dev server at the user-facing destinationPath and retarget
548
+ * the proxy so the iframe stays live across commit. Stores the process on
549
+ * `resources.committedDevServer` so teardown can hand it off to the
550
+ * lingering registry instead of killing it. Best-effort: a failure here is
551
+ * non-fatal — the commit still succeeds; the user just has to run
552
+ * `npm run dev` themselves to bring the preview back.
553
+ */
554
+ private startCommittedDevServer;
555
+ /**
556
+ * Stop any committed dev servers that were left alive past their session's
557
+ * teardown. Called at the start of a new `propose` (so the next session's
558
+ * preview doesn't compete with stale processes) and exposed for explicit
559
+ * shutdown hooks. Best-effort: per-server failures are logged but don't
560
+ * propagate.
561
+ */
562
+ private stopLingeringCommittedDevServers;
372
563
  private teardownSession;
373
564
  private ensureResources;
374
565
  }
566
+ export declare function buildStaticPreviewDocument(input: {
567
+ html: string;
568
+ css?: string;
569
+ js?: string;
570
+ }): string;
375
571
  export type { AgentVariantsError };
376
572
  //# sourceMappingURL=WorktreeOrchestrator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorktreeOrchestrator.d.ts","sourceRoot":"","sources":["../../../src/mcp/agent-variants/WorktreeOrchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAOlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,KAAK,EACL,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,eAAe,EAGf,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V,QAAQ,EAAE,OAAO,CAAC;QAClB,SAAS,EAAE,OAAO,CAAC;QACnB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,iBAAiB,CAAC;QACzC,eAAe,CAAC,EAAE,MAAM,CAAC;KAC1B,CAAC;IAiKI,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/D;;;OAGG;IACH,OAAO,CAAC,0BAA0B;IAUlC,mEAAmE;IACnE,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;YAM1D,kBAAkB;IAahC;;;;OAIG;YACW,0BAA0B;IAgCxC;;;;;;;;;;;;OAYG;YACW,uBAAuB;IAgFrC;;;;OAIG;YACW,oBAAoB;YA2DpB,qBAAqB;IAmGnC;;;;OAIG;YACW,gBAAgB;YAwChB,eAAe;IAsC7B,OAAO,CAAC,eAAe;CAgBxB;AA8VD,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"WorktreeOrchestrator.d.ts","sourceRoot":"","sources":["../../../src/mcp/agent-variants/WorktreeOrchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AASlD,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAU9C,OAAO,EACL,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAErB,KAAK,EACL,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,KAAK,EACL,MAAM,EACN,eAAe,EAGf,eAAe,EACf,sBAAsB,EACtB,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,OAA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