@abelxiaoxing/cadence 1.8.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +324 -111
- package/THIRD_PARTY_NOTICES.md +15 -0
- package/agents/design-explorer.md +14 -26
- package/agents/diagnosis-worker.md +14 -25
- package/agents/implementation-worker.md +16 -35
- package/config/.env.example +2 -5
- package/config/workflow-task.example.json +7 -0
- package/docs/remote-access.md +60 -0
- package/docs/reuse-and-distribution.md +44 -0
- package/docs/service-management.md +108 -0
- package/licenses/bundled-web.txt +6245 -0
- package/licenses/pi-web-ui-MIT.txt +21 -0
- package/licenses/pi-web-ui-reuse.md +22 -0
- package/package.json +94 -21
- package/src/index.ts +22 -1807
- package/src/native-build.ts +6 -0
- package/src/native-client.ts +103 -0
- package/src/native-export.ts +58 -0
- package/src/native-history.ts +359 -0
- package/src/operator-cli.mjs +453 -1937
- package/src/plan-proposal.ts +87 -0
- package/src/sdk-worker.mjs +549 -0
- package/src/service/contracts/active.ts +82 -0
- package/src/service/contracts/budget.ts +148 -0
- package/src/service/contracts/build.ts +67 -0
- package/src/service/contracts/capture.ts +48 -0
- package/src/service/contracts/core.ts +33 -0
- package/src/service/contracts/current.ts +261 -0
- package/src/service/contracts/domain.ts +68 -0
- package/src/service/contracts/history.ts +2245 -0
- package/src/service/contracts/models.ts +139 -0
- package/src/service/coordination.ts +862 -0
- package/src/service/private-files.ts +204 -0
- package/src/service-cli.mjs +5592 -0
- package/src/service-client.ts +747 -0
- package/src/service-contract.ts +245 -0
- package/src/service-host.mjs +22382 -0
- package/src/service-http-client.ts +425 -0
- package/src/service-wire.ts +372 -0
- package/src/task-shell.ts +1045 -0
- package/src/task-store.ts +479 -0
- package/src/task-types.ts +184 -0
- package/src/verification-diagnostics.ts +29 -72
- package/src/worker-capture.mjs +1197 -0
- package/src/worker-public.mjs +1753 -0
- package/src/worker-redaction.mjs +608 -0
- package/src/worker-tools.mjs +202 -0
- package/web/dist/assets/KaTeX_AMS-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold.woff +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Bold.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-Bold.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Bold.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic.woff +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Italic.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-Italic.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Italic.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic.woff +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/web/dist/assets/KaTeX_Math-Italic.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-Italic.woff +0 -0
- package/web/dist/assets/KaTeX_Math-Italic.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Script-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Script-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Script-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular.woff2 +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular.ttf +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular.woff +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/web/dist/assets/cadence.css +2 -0
- package/web/dist/assets/cadence.js +7 -0
- package/web/dist/assets/markdown.js +296 -0
- package/web/dist/assets/react.js +9 -0
- package/web/dist/assets/rolldown-runtime.js +1 -0
- package/web/dist/assets/timeline-client.js +41 -0
- package/web/dist/assets/vis-timeline.css +1274 -0
- package/web/dist/assets/vis-timeline.js +32 -0
- package/web/dist/index.html +18 -0
- package/web/dist/manifest.json +505 -0
- package/config/plan-draft.example.json +0 -125
- package/config/plan-draft.multiple-tasks.example.json +0 -375
- package/config/plan-draft.quick.example.json +0 -78
- package/config/routes.example.json +0 -39
- package/prompts/abel-design.md +0 -382
- package/prompts/abel-diagnose.md +0 -71
- package/prompts/abel-implement.md +0 -284
- package/prompts/abel-init.md +0 -52
- package/src/activation.ts +0 -44
- package/src/activity-contracts.ts +0 -82
- package/src/agent-registry.ts +0 -53
- package/src/apply-transaction.ts +0 -1437
- package/src/artifact-store.ts +0 -213
- package/src/build-windows-job.mjs +0 -95
- package/src/candidate-artifact.ts +0 -143
- package/src/candidate-patch.ts +0 -271
- package/src/candidate-workspace.ts +0 -80
- package/src/canonical.ts +0 -16
- package/src/change-contract-schema.ts +0 -191
- package/src/change-contract.ts +0 -324
- package/src/change-verification.ts +0 -1617
- package/src/child-budget.ts +0 -58
- package/src/child-model.ts +0 -142
- package/src/child-session.ts +0 -640
- package/src/contracts.ts +0 -2476
- package/src/control-contracts.ts +0 -382
- package/src/delivery-compiler.ts +0 -1805
- package/src/delivery-revision.ts +0 -42
- package/src/design-control.ts +0 -1299
- package/src/design-diagnostics.ts +0 -181
- package/src/design-journal.ts +0 -1773
- package/src/directory-sync.ts +0 -36
- package/src/durable-contracts.ts +0 -231
- package/src/durable-workflow.ts +0 -978
- package/src/evidence-draft.ts +0 -122
- package/src/execution-profile.ts +0 -64
- package/src/execution-retention.ts +0 -77
- package/src/file-snapshot.ts +0 -163
- package/src/implement-continuation.ts +0 -559
- package/src/implement-graph.ts +0 -690
- package/src/implement-plan.ts +0 -72
- package/src/install-config.d.mts +0 -6
- package/src/isolation-backend.ts +0 -353
- package/src/model-source.ts +0 -22
- package/src/openspec-cli.ts +0 -494
- package/src/operator-cli-entry.mjs +0 -24
- package/src/operator-tools.ts +0 -309
- package/src/package-candidate.ts +0 -227
- package/src/package-delivery.ts +0 -486
- package/src/package-state.ts +0 -320
- package/src/package-verification.ts +0 -635
- package/src/package-workflow.ts +0 -342
- package/src/packet-runtime.ts +0 -570
- package/src/parent-provider.ts +0 -375
- package/src/phase-execution.ts +0 -2259
- package/src/pi-adapter.ts +0 -19
- package/src/plan-draft-summary.ts +0 -527
- package/src/plan-draft.ts +0 -502
- package/src/remove-path.ts +0 -32
- package/src/route-policy.ts +0 -545
- package/src/run-state.ts +0 -420
- package/src/run-store.ts +0 -1179
- package/src/safe-path.ts +0 -77
- package/src/scoped-grep-worker.mjs +0 -23
- package/src/scoped-tools.ts +0 -775
- package/src/single-task-draft.ts +0 -142
- package/src/sqlite-schema.ts +0 -171
- package/src/state-root.ts +0 -215
- package/src/storage-schema.ts +0 -360
- package/src/subagent-activity.ts +0 -1417
- package/src/submit-tool.ts +0 -950
- package/src/task-ledger.ts +0 -1338
- package/src/transport-budget.ts +0 -52
- package/src/verification-capability.ts +0 -1191
- package/src/verification-environment-io.ts +0 -389
- package/src/verification-environment.ts +0 -162
- package/src/verification-identity.ts +0 -77
- package/src/verification-scan.ts +0 -64
- package/src/windows-job-backend.ts +0 -419
- package/src/windows-job.c +0 -149
- package/src/worker-broker.ts +0 -806
- package/src/workflow-engine.ts +0 -28
- package/src/workflow-policy.ts +0 -1679
- package/src/workflow-recovery-policy.ts +0 -97
- package/src/workflow-scheduling.ts +0 -105
- package/src/workflow-state-machine.ts +0 -4355
- package/src/workflow-status.ts +0 -576
- package/src/workspace-io-entry.mjs +0 -76
- package/src/workspace-io-worker.mjs +0 -1312
- package/src/workspace-io.ts +0 -89
- package/src/workspace-store.ts +0 -634
package/src/directory-sync.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { closeSync, constants, fstatSync, fsyncSync, openSync } from "node:fs";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Flush a published directory entry where Node supports it. Windows rejects
|
|
5
|
-
* FlushFileBuffers on Node's read-only directory handle with EPERM. This is
|
|
6
|
-
* specifically a missing directory barrier, NOT permission to ignore file
|
|
7
|
-
* flush, open, close, rename or other I/O errors.
|
|
8
|
-
*
|
|
9
|
-
* Callers must flush file bytes before publishing and retain their integrity
|
|
10
|
-
* checks / write-ahead recovery records. On Windows this provides process-crash
|
|
11
|
-
* recovery, not a POSIX directory-fsync guarantee across sudden power loss.
|
|
12
|
-
*/
|
|
13
|
-
export function syncDirectory(
|
|
14
|
-
directory: string,
|
|
15
|
-
): "synced" | "unsupported-directory-barrier" {
|
|
16
|
-
const descriptor = openSync(directory, constants.O_RDONLY);
|
|
17
|
-
try {
|
|
18
|
-
try {
|
|
19
|
-
fsyncSync(descriptor);
|
|
20
|
-
return "synced";
|
|
21
|
-
} catch (error) {
|
|
22
|
-
const failure = error as NodeJS.ErrnoException | null;
|
|
23
|
-
if (
|
|
24
|
-
process.platform === "win32" &&
|
|
25
|
-
failure?.code === "EPERM" &&
|
|
26
|
-
failure.syscall === "fsync" &&
|
|
27
|
-
fstatSync(descriptor).isDirectory()
|
|
28
|
-
) {
|
|
29
|
-
return "unsupported-directory-barrier";
|
|
30
|
-
}
|
|
31
|
-
throw error;
|
|
32
|
-
}
|
|
33
|
-
} finally {
|
|
34
|
-
closeSync(descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
package/src/durable-contracts.ts
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import type { ArtifactStore } from "./artifact-store.ts";
|
|
2
|
-
import type {
|
|
3
|
-
StructuredVerificationContract,
|
|
4
|
-
VerificationInputObservation,
|
|
5
|
-
} from "./contracts.ts";
|
|
6
|
-
import type { ImplementPlan, PlanTaskDraft } from "./delivery-compiler.ts";
|
|
7
|
-
import type { RoutePolicy, WorkerRoutePolicy } from "./route-policy.ts";
|
|
8
|
-
|
|
9
|
-
import type { ResolvedStateRoot } from "./state-root.ts";
|
|
10
|
-
import type { CandidateArtifactSubmission } from "./submit-tool.ts";
|
|
11
|
-
import type { TaskLedger } from "./task-ledger.ts";
|
|
12
|
-
|
|
13
|
-
import type {
|
|
14
|
-
DurableCandidateProposal,
|
|
15
|
-
DurableVerificationScope,
|
|
16
|
-
RedArtifactCorrection,
|
|
17
|
-
WorkflowAttemptOutcome,
|
|
18
|
-
WorkflowContextRequest,
|
|
19
|
-
WorkflowDeliverySource,
|
|
20
|
-
WorkflowRecoveryFeedback,
|
|
21
|
-
WorkflowVerificationPrerequisite,
|
|
22
|
-
} from "./workflow-policy.ts";
|
|
23
|
-
|
|
24
|
-
import type { WorkspaceStore } from "./workspace-store.ts";
|
|
25
|
-
|
|
26
|
-
export interface DurableResourceInput {
|
|
27
|
-
runId: string;
|
|
28
|
-
deliveryRevision: number;
|
|
29
|
-
plan?: ImplementPlan;
|
|
30
|
-
baselineRevisionId?: string;
|
|
31
|
-
currentWorkspaceRevisionId?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type DurablePhaseVerificationResult =
|
|
35
|
-
| {
|
|
36
|
-
ok: true;
|
|
37
|
-
exitCode: number;
|
|
38
|
-
classification: "expected-red" | "expected-green" | "expected-refactor";
|
|
39
|
-
diagnostic: { kind: "assertion" | "compiler"; id: string };
|
|
40
|
-
}
|
|
41
|
-
| {
|
|
42
|
-
ok: false;
|
|
43
|
-
kind: "paused" | "retryable" | "approval-needed";
|
|
44
|
-
code: string;
|
|
45
|
-
inputObservation?: VerificationInputObservation;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type DurableChangeVerificationResult =
|
|
49
|
-
| {
|
|
50
|
-
ok: true;
|
|
51
|
-
exitCode: 0;
|
|
52
|
-
classification: string;
|
|
53
|
-
failureIdentities?: string[];
|
|
54
|
-
attributionReliable?: boolean;
|
|
55
|
-
}
|
|
56
|
-
| {
|
|
57
|
-
ok: false;
|
|
58
|
-
kind:
|
|
59
|
-
| "artifact"
|
|
60
|
-
| "environment"
|
|
61
|
-
| "verification"
|
|
62
|
-
| "verification-adapter"
|
|
63
|
-
| "approval-boundary"
|
|
64
|
-
| "cancelled";
|
|
65
|
-
code: string;
|
|
66
|
-
failureIdentities?: string[];
|
|
67
|
-
attributionReliable?: boolean;
|
|
68
|
-
inputObservation?: VerificationInputObservation;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export interface DurableVerificationObservation {
|
|
72
|
-
status: "passed" | "failed";
|
|
73
|
-
verificationId: string;
|
|
74
|
-
failureIdentities: string[];
|
|
75
|
-
code?: string;
|
|
76
|
-
attributionReliable?: boolean;
|
|
77
|
-
/** Code-owned comparable verification obligation, excluding display identity. */
|
|
78
|
-
contractIdentity?: string;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export interface DurableVerificationBaseline {
|
|
82
|
-
revisionId: string;
|
|
83
|
-
targetContracts: Array<{
|
|
84
|
-
taskId: string;
|
|
85
|
-
verificationId: string;
|
|
86
|
-
expectedFailure: string;
|
|
87
|
-
}>;
|
|
88
|
-
affected: Array<{
|
|
89
|
-
taskId: string;
|
|
90
|
-
observation: DurableVerificationObservation;
|
|
91
|
-
}>;
|
|
92
|
-
fullSuite: DurableVerificationObservation;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export type DurableObservedVerification =
|
|
96
|
-
| { ok: true; observation: DurableVerificationObservation }
|
|
97
|
-
| {
|
|
98
|
-
ok: false;
|
|
99
|
-
outcome:
|
|
100
|
-
| {
|
|
101
|
-
kind: "paused";
|
|
102
|
-
code: string;
|
|
103
|
-
prerequisite?: WorkflowVerificationPrerequisite;
|
|
104
|
-
}
|
|
105
|
-
| { kind: "approval-needed"; code: string }
|
|
106
|
-
| { kind: "operation-cancelled"; code: "cancelled" };
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type DurableBaselineResult =
|
|
110
|
-
| { ok: true; baseline: DurableVerificationBaseline }
|
|
111
|
-
| Extract<DurableObservedVerification, { ok: false }>;
|
|
112
|
-
|
|
113
|
-
export type DurableAffectedResult =
|
|
114
|
-
| { kind: "verified"; attribution: "none" | "pre-existing" }
|
|
115
|
-
| {
|
|
116
|
-
kind: "repairable";
|
|
117
|
-
attribution: "introduced";
|
|
118
|
-
failureIdentities: string[];
|
|
119
|
-
}
|
|
120
|
-
| Extract<DurableObservedVerification, { ok: false }>["outcome"];
|
|
121
|
-
|
|
122
|
-
export interface DurableWorkflowEngineOptions {
|
|
123
|
-
consumerRoot: string;
|
|
124
|
-
stateRoot: ResolvedStateRoot;
|
|
125
|
-
deliverySource: WorkflowDeliverySource;
|
|
126
|
-
routePolicy: RoutePolicy;
|
|
127
|
-
proposeCandidate(input: {
|
|
128
|
-
runId: string;
|
|
129
|
-
operationId: string;
|
|
130
|
-
deliveryRevision: number;
|
|
131
|
-
taskId: string;
|
|
132
|
-
phase: "red" | "green" | "refactor";
|
|
133
|
-
task: PlanTaskDraft;
|
|
134
|
-
workspaceRoot: string;
|
|
135
|
-
ledgerProjection: unknown;
|
|
136
|
-
candidateArtifact: CandidateArtifactSubmission;
|
|
137
|
-
route: WorkerRoutePolicy;
|
|
138
|
-
repair?: {
|
|
139
|
-
attempt: number;
|
|
140
|
-
attribution: "introduced";
|
|
141
|
-
failureIdentities: string[];
|
|
142
|
-
};
|
|
143
|
-
artifactCorrection?: RedArtifactCorrection;
|
|
144
|
-
contextRequest?: WorkflowContextRequest;
|
|
145
|
-
contextReadPaths?: string[];
|
|
146
|
-
recoveryFeedback?: WorkflowRecoveryFeedback;
|
|
147
|
-
signal: AbortSignal;
|
|
148
|
-
onRequestStart?(): void;
|
|
149
|
-
onHeaders(): void;
|
|
150
|
-
onProgress(): void;
|
|
151
|
-
}): Promise<DurableCandidateProposal>;
|
|
152
|
-
verifyPhase(input: {
|
|
153
|
-
executionWritePaths?: readonly string[];
|
|
154
|
-
runId: string;
|
|
155
|
-
deliveryRevision: number;
|
|
156
|
-
taskId: string;
|
|
157
|
-
phase: "red" | "green" | "refactor";
|
|
158
|
-
root: string;
|
|
159
|
-
verification: StructuredVerificationContract;
|
|
160
|
-
signal: AbortSignal;
|
|
161
|
-
}): Promise<DurablePhaseVerificationResult>;
|
|
162
|
-
verifyChange(input: {
|
|
163
|
-
runId: string;
|
|
164
|
-
deliveryRevision: number;
|
|
165
|
-
root: string;
|
|
166
|
-
plan: ImplementPlan;
|
|
167
|
-
scope?: DurableVerificationScope;
|
|
168
|
-
verification?: StructuredVerificationContract;
|
|
169
|
-
taskId?: string;
|
|
170
|
-
signal: AbortSignal;
|
|
171
|
-
}): Promise<DurableChangeVerificationResult>;
|
|
172
|
-
now?: () => number;
|
|
173
|
-
leaseTtlMs?: number;
|
|
174
|
-
workHardLimit?: number;
|
|
175
|
-
verificationPolicy?: string;
|
|
176
|
-
/** Real process executors must settle cancellation before post-apply cleanup. */
|
|
177
|
-
awaitPostApplySettlement?: boolean;
|
|
178
|
-
verificationEnvironment?(
|
|
179
|
-
plan: ImplementPlan,
|
|
180
|
-
signal: AbortSignal,
|
|
181
|
-
): Promise<string>;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface DurableExecutionResources {
|
|
185
|
-
runId: string;
|
|
186
|
-
root: string;
|
|
187
|
-
plan: ImplementPlan;
|
|
188
|
-
deliveryRevision: number;
|
|
189
|
-
artifacts: ArtifactStore;
|
|
190
|
-
workspaces: WorkspaceStore;
|
|
191
|
-
ledgers: Map<number, TaskLedger>;
|
|
192
|
-
/** Run-shared original-baseline observations, independent of delivery revision. */
|
|
193
|
-
baselineLedger?: TaskLedger;
|
|
194
|
-
baselineRevisionId: string;
|
|
195
|
-
/** Root capture before any authorized boundary expansion; immutable evidence source. */
|
|
196
|
-
originalBaselineRevisionId?: string;
|
|
197
|
-
currentRevisionId: string;
|
|
198
|
-
mergeTail: Promise<void>;
|
|
199
|
-
verificationFact?: object;
|
|
200
|
-
baselinePromises: Map<string | number, Promise<DurableBaselineResult>>;
|
|
201
|
-
environmentIdentity?: string;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
export interface DurablePhaseFact {
|
|
205
|
-
kind: "phase-verified" | "repair-verified";
|
|
206
|
-
phase: "red" | "green" | "refactor";
|
|
207
|
-
isolatedRevisionId: string;
|
|
208
|
-
outputFacts: Array<
|
|
209
|
-
| { path: string; kind: "absent" }
|
|
210
|
-
| { path: string; kind: "file"; hash: string; bytes: number }
|
|
211
|
-
>;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
export interface DurableCandidateCommit {
|
|
215
|
-
artifactHash: string;
|
|
216
|
-
isolatedRevisionId: string;
|
|
217
|
-
exitCode: number;
|
|
218
|
-
classification: "expected-red" | "expected-green" | "expected-refactor";
|
|
219
|
-
diagnostic: { kind: "assertion" | "compiler"; id: string };
|
|
220
|
-
outputFacts: DurablePhaseFact["outputFacts"];
|
|
221
|
-
routeId: string;
|
|
222
|
-
routeFingerprint: string;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
export type DurableRepairResult =
|
|
226
|
-
| { kind: "repair-committed"; commit: DurableCandidateCommit }
|
|
227
|
-
| Exclude<WorkflowAttemptOutcome, { kind: "phase-committed" }>;
|
|
228
|
-
export type PhaseResources = Omit<
|
|
229
|
-
DurableExecutionResources,
|
|
230
|
-
"verificationFact"
|
|
231
|
-
>;
|