|
25 | 25 | */ |
26 | 26 |
|
27 | 27 | import type { Json } from "@executablemd/durable-streams"; |
28 | | -import type { InheritedEventProvenance } from "../lifecycle/history.ts"; |
29 | | -import type { DocumentExecutionRecord, WorkflowRunRecord } from "../storage/record.ts"; |
30 | | -import type { AgentSessionRecord } from "../deno/workspace/agent-sessions.ts"; |
31 | | -import type { RetainedAnswer } from "../deno/answers.ts"; |
| 28 | +import type { InheritedEventProvenance } from "../../lifecycle/history.ts"; |
| 29 | +import type { DocumentExecutionRecord, WorkflowRunRecord } from "../../storage/record.ts"; |
| 30 | +import type { XmdArtifactFrontier } from "../../lifecycle/export.ts"; |
| 31 | +import type { AgentSessionRecord } from "../workspace/agent-sessions.ts"; |
| 32 | +import type { RetainedAnswer } from "../answers.ts"; |
32 | 33 | import type { |
33 | 34 | RetainedBlob, |
34 | 35 | RetainedManifest, |
35 | 36 | RetainedRepository, |
36 | 37 | RetainedWorktree, |
37 | | -} from "../deno/fork-source.ts"; |
38 | | -import type { StoredWorkspaceRoot } from "../deno/workspace/manifest.ts"; |
| 38 | +} from "../fork-source.ts"; |
| 39 | +import type { StoredWorkspaceRoot } from "../workspace/manifest.ts"; |
39 | 40 |
|
40 | | -/** |
41 | | - * The exact committed boundary this artifact records. |
42 | | - * |
43 | | - * The final committed event is absent for a run whose journal is empty, which |
44 | | - * is a run that was created and never appended to. The current Workspace root |
45 | | - * is the run's own current-root pointer at that boundary and is recorded once, |
46 | | - * here: writing it a second time beside the roots would make one fact into two |
47 | | - * records that a tampered file could set against each other. |
48 | | - */ |
49 | | -export interface XmdArtifactFrontier { |
50 | | - readonly sourceRunId: string; |
51 | | - readonly finalEventId?: string; |
52 | | - readonly currentWorkspaceRootId: string; |
53 | | -} |
| 41 | +/** The boundary the lifecycle chose, as the shape every record here is about. */ |
| 42 | +export type { XmdArtifactFrontier }; |
54 | 43 |
|
55 | 44 | /** The lineage of the fork the source run itself was, when it was one. */ |
56 | 45 | export interface XmdArtifactForkLineage { |
|
0 commit comments