@planu/cli 8.5.0 → 8.6.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +25 -5
  3. package/dist/sdd-engine/completion-guard.js +2 -3
  4. package/dist/sdd-engine/contracts.d.ts +172 -0
  5. package/dist/sdd-engine/contracts.js +235 -10
  6. package/dist/sdd-engine/evidence-checkpoints.d.ts +6 -0
  7. package/dist/sdd-engine/evidence-checkpoints.js +280 -0
  8. package/dist/sdd-engine/evidence-journal.d.ts +25 -0
  9. package/dist/sdd-engine/evidence-journal.js +326 -0
  10. package/dist/sdd-engine/feature-manifest.d.ts +2 -1
  11. package/dist/sdd-engine/host-rule-pack.d.ts +4 -0
  12. package/dist/sdd-engine/host-rule-pack.js +112 -55
  13. package/dist/sdd-engine/host-skill-reader.d.ts +8 -1
  14. package/dist/sdd-engine/host-skill-reader.js +73 -0
  15. package/dist/sdd-engine/resume-history.d.ts +35 -3
  16. package/dist/sdd-engine/resume-history.js +242 -13
  17. package/dist/sdd-engine/resume-views.d.ts +6 -6
  18. package/dist/sdd-engine/resume-views.js +222 -78
  19. package/dist/sdd-engine/task-content.d.ts +2 -1
  20. package/dist/sdd-engine/tools/compact-result.d.ts +35 -5
  21. package/dist/sdd-engine/tools/compact-result.js +279 -2
  22. package/dist/sdd-engine/tools/execution-tools.js +17 -5
  23. package/dist/sdd-engine/tools/workspace-tools.js +80 -51
  24. package/dist/sdd-engine/trinity-structure.d.ts +2 -2
  25. package/dist/sdd-engine/verification-inputs.d.ts +2 -1
  26. package/dist/sdd-engine/verification-policy.d.ts +2 -1
  27. package/dist/sdd-engine/verification-preflight.d.ts +2 -2
  28. package/dist/sdd-engine/verification-receipts.d.ts +2 -2
  29. package/dist/sdd-engine/verification-runner.d.ts +2 -1
  30. package/dist/types/completion.d.ts +168 -3
  31. package/dist/types/resume-views.d.ts +220 -2
  32. package/dist/types/sdd-engine.d.ts +47 -110
  33. package/dist/types/verification.d.ts +0 -10
  34. package/package.json +13 -13
  35. package/templates/AGENTS.md +2 -0
  36. package/templates/host/planu-sdd.md +2 -0
  37. package/templates/skills/preflight-guardian.md +4 -0
  38. package/templates/skills/reconciler.md +6 -0
  39. package/templates/skills/spec-architect.md +44 -0
  40. package/templates/skills/spec-executor.md +6 -0
  41. package/templates/skills/verification-auditor.md +6 -0
  42. package/dist/sdd-engine/tools/format-result.d.ts +0 -3
  43. package/dist/sdd-engine/tools/format-result.js +0 -22
@@ -1,71 +1,28 @@
1
+ import * as fs from 'node:fs/promises';
2
+ import * as evidenceJournal from './evidence-journal.js';
1
3
  import * as path from 'node:path';
2
- import { getRelockHistory } from './resume-history.js';
4
+ import * as history from './resume-history.js';
3
5
  import { GetActiveTaskInputSchema } from './contracts.js';
4
6
  import { verificationCommand } from './task-window.js';
5
7
  import { homeFallbackFailure } from './workspace-root.js';
6
8
  import { CompletionGuardError, hashArtifact } from './feature-authority.js';
7
9
  import { summarizeTaskContent } from './task-content.js';
8
- import { captureVerificationRoot } from './verification-inputs.js';
9
- import { assertGuardAbsent, assessVerificationPreflight, captureReadSnapshot, revalidateReadSnapshot, } from './verification-preflight.js';
10
- import { compactFailure, compactReadError, formatCompactResult } from './tools/compact-result.js';
11
- class InvalidResumeHistoryError extends Error {
12
- }
13
- function contractReference(snapshot) {
14
- const locked = snapshot.locked;
15
- return locked
16
- ? {
17
- specSha256: hashArtifact(locked.specContent),
18
- planSha256: hashArtifact(locked.planContent),
19
- tasksSha256: hashArtifact(locked.tasksContent),
20
- lockSha256: hashArtifact(locked.lockContent),
21
- }
22
- : null;
23
- }
24
- function historyReference(snapshot) {
25
- const locked = snapshot.locked;
26
- if (!locked) {
27
- return null;
28
- }
29
- const raw = JSON.parse(locked.lockContent);
30
- const history = raw.relockHistory;
31
- if (history !== undefined && !Array.isArray(history)) {
32
- throw new InvalidResumeHistoryError();
33
- }
34
- const count = Array.isArray(history) ? history.length : 0;
35
- return {
36
- count,
37
- lockSha256: hashArtifact(locked.lockContent),
38
- firstCursor: count ? { snapshotSha256: locked.digest, startIndex: count - 1 } : null,
39
- };
10
+ import { captureVerificationRoot, revalidateVerificationInputs } from './verification-inputs.js';
11
+ import * as preflight from './verification-preflight.js';
12
+ import * as compact from './tools/compact-result.js';
13
+ class InvalidCompactIdentifierError extends Error {
40
14
  }
41
15
  function checkpoint(snapshot, summary, assessment) {
42
- const presentation = checkpointPresentation(snapshot, summary, assessment);
43
- const evidence = assessment?.evidence;
44
- return {
45
- version: 1,
46
- featureId: path.basename(snapshot.feature),
47
- progress: summary.progress,
48
- ...presentation,
49
- contract: contractReference(snapshot),
50
- candidate: evidence
51
- ? {
52
- workspaceSha256: evidence.workspaceSha256,
53
- candidateSha256: evidence.candidateSha256,
54
- observedSha256: evidence.observedSha256,
55
- }
56
- : null,
57
- gates: assessment?.preflight.gates ?? [],
58
- history: historyReference(snapshot),
59
- };
16
+ return compact.resumeProjection(path.basename(snapshot.feature), summary.progress, checkpointPresentation(snapshot, summary, assessment), history.contractReference(snapshot), assessment, history.historyRef(snapshot));
60
17
  }
61
18
  function checkpointStatus(snapshot, summary) {
62
19
  if (!snapshot.locked) {
63
20
  return 'unlocked';
64
21
  }
65
- if (!summary.progress.total) {
66
- return 'no_tasks';
22
+ if (summary.progress.total) {
23
+ return summary.current.success && summary.current.data.activeTask ? 'active' : 'complete';
67
24
  }
68
- return summary.current.success && summary.current.data.activeTask ? 'active' : 'complete';
25
+ return 'no_tasks';
69
26
  }
70
27
  function checkpointPresentation(snapshot, summary, assessment) {
71
28
  const status = checkpointStatus(snapshot, summary);
@@ -94,56 +51,243 @@ function validIdentifier(id) {
94
51
  }
95
52
  export async function getResumeCheckpoint(tasksPath, workspaceRoot, extractCommand, receipts, scopedPolicy, signal) {
96
53
  try {
97
- const root = await captureVerificationRoot(workspaceRoot);
98
- const snapshot = await captureReadSnapshot(path.dirname(tasksPath), root);
99
- await assertGuardAbsent(snapshot.feature);
100
- const summary = summarizeTaskContent(snapshot.artifacts['tasks.md']?.content ?? '', extractCommand);
101
- const active = summary.current.success ? summary.current.data.activeTask : null;
102
- if (!validIdentifier(path.basename(snapshot.feature)) ||
103
- (active && !validIdentifier(active.taskId))) {
104
- return compactFailure('compact_identifier_invalid');
105
- }
106
- const assessment = snapshot.locked && active
107
- ? await assessVerificationPreflight(snapshot.locked, root, workspaceRoot, active, receipts, scopedPolicy, signal)
108
- : undefined;
54
+ const core = await captureCore(tasksPath, workspaceRoot, extractCommand);
55
+ const assessment = await assessCore(core, workspaceRoot, receipts, scopedPolicy, signal);
56
+ const { root, snapshot, summary } = core;
109
57
  const resume = checkpoint(snapshot, summary, assessment);
110
58
  if (signal?.aborted) {
111
59
  throw new CompletionGuardError('cancelled', 'Compact read was cancelled.');
112
60
  }
113
- await revalidateReadSnapshot(snapshot, root, workspaceRoot);
61
+ await preflight.revalidateReadSnapshot(snapshot, root, workspaceRoot);
114
62
  if (signal?.aborted) {
115
- return compactFailure('cancelled', 'ERR_VERIFICATION_FAILED');
63
+ return compact.compactFailure('cancelled', 'ERR_VERIFICATION_FAILED');
116
64
  }
117
65
  return { success: true, data: { resume } };
118
66
  }
119
67
  catch (error) {
120
- return error instanceof InvalidResumeHistoryError
121
- ? compactFailure('history_invalid')
122
- : compactReadError(error);
68
+ if (error instanceof InvalidCompactIdentifierError) {
69
+ return compact.compactFailure('compact_identifier_invalid');
70
+ }
71
+ return error instanceof history.InvalidHistoryError
72
+ ? compact.compactFailure('history_invalid')
73
+ : compact.compactReadError(error);
123
74
  }
124
75
  }
125
76
  export async function getResumeToolResult(rawArgs, workspace, policy, signal) {
126
77
  try {
127
78
  const parsed = GetActiveTaskInputSchema.safeParse(rawArgs);
128
79
  if (!parsed.success) {
129
- return formatCompactResult(compactFailure('compact_input_invalid'));
80
+ return compact.formatCompactResult(compact.compactFailure('compact_input_invalid'));
130
81
  }
131
82
  const args = parsed.data;
132
83
  if (!validIdentifier(args.feature_id)) {
133
- return formatCompactResult(compactFailure('compact_identifier_invalid'));
84
+ return compact.formatCompactResult(compact.compactFailure('compact_identifier_invalid'));
85
+ }
86
+ const newView = ['execution_window', 'execution_detail', 'evidence_history'].includes(args.view ?? '');
87
+ const capability = newView ? evidenceJournal.checkpointCapability() : null;
88
+ if (newView && !capability) {
89
+ throw new compact.CheckpointCapabilityError();
134
90
  }
135
91
  const resolved = await workspace.resolve();
136
92
  if (homeFallbackFailure(resolved, 'sdd_get_active_task')) {
137
- return formatCompactResult(compactFailure('workspace_unresolved', 'ERR_WORKSPACE_UNRESOLVED'));
93
+ return compact.formatCompactResult(compact.compactFailure('workspace_unresolved', 'ERR_WORKSPACE_UNRESOLVED'));
138
94
  }
139
95
  const tasksPath = path.join(resolved.sddDir, 'features', args.feature_id, 'tasks.md');
140
- if (args.view === 'relock_history') {
141
- return formatCompactResult(await getRelockHistory(tasksPath, resolved.workspaceRoot, args.history_cursor, signal));
96
+ let result;
97
+ if (capability) {
98
+ result = await getExecutionView(args, {
99
+ tasksPath,
100
+ workspaceRoot: resolved.workspaceRoot,
101
+ capability,
102
+ scopedPolicy: policy?.mode === 'scoped' ? policy : undefined,
103
+ signal,
104
+ });
105
+ }
106
+ else if (args.view === 'relock_history') {
107
+ result = await history.getRelockHistory(tasksPath, resolved.workspaceRoot, args.history_cursor, signal);
108
+ }
109
+ else {
110
+ result = await getResumeCheckpoint(tasksPath, resolved.workspaceRoot, verificationCommand, args.verification_receipts, policy?.mode === 'scoped' ? policy : undefined, signal);
111
+ }
112
+ return compact.formatCompactResult(result);
113
+ }
114
+ catch (error) {
115
+ return compact.formatCompactResult(compact.compactReadError(error));
116
+ }
117
+ }
118
+ async function proveUnlockedJournalAbsent(feature) {
119
+ try {
120
+ await fs.lstat(path.join(feature, '.evidence-checkpoints.jsonl'));
121
+ throw new compact.CheckpointError('checkpoint_requires_lock');
122
+ }
123
+ catch (error) {
124
+ if (error.code !== 'ENOENT') {
125
+ throw error;
126
+ }
127
+ }
128
+ }
129
+ async function captureCore(tasksPath, workspaceRoot, extractCommand) {
130
+ const root = await captureVerificationRoot(workspaceRoot);
131
+ const snapshot = await preflight.captureReadSnapshot(path.dirname(tasksPath), root);
132
+ await preflight.assertGuardAbsent(snapshot.feature);
133
+ const summary = summarizeTaskContent(snapshot.artifacts['tasks.md']?.content ?? '', extractCommand);
134
+ const active = summary.current.success ? summary.current.data.activeTask : null;
135
+ if (!validIdentifier(path.basename(snapshot.feature)) ||
136
+ (active && !validIdentifier(active.taskId))) {
137
+ throw new InvalidCompactIdentifierError();
138
+ }
139
+ return { root, snapshot, summary, active };
140
+ }
141
+ async function assessCore(core, workspaceRoot, receipts, policy, signal) {
142
+ return core.snapshot.locked && core.active
143
+ ? preflight.assessVerificationPreflight(core.snapshot.locked, core.root, workspaceRoot, core.active, receipts, policy, signal)
144
+ : undefined;
145
+ }
146
+ async function compactCapture(args, context) {
147
+ const { tasksPath, workspaceRoot, capability, scopedPolicy, signal } = context;
148
+ const startSeq = args.evidence_cursor?.startSeq;
149
+ const core = await captureCore(tasksPath, workspaceRoot, verificationCommand);
150
+ const { root, snapshot } = core;
151
+ const records = [];
152
+ let journal = null;
153
+ let authority = null;
154
+ let assessment;
155
+ if (snapshot.locked) {
156
+ evidenceJournal.requireOwnedSnapshot(snapshot.locked, capability);
157
+ authority = evidenceJournal.evidenceAuthoritySha256(snapshot.locked, root);
158
+ assessment = await assessCore(core, workspaceRoot, args.verification_receipts, scopedPolicy, signal);
159
+ const capture = await evidenceJournal.captureJournal(snapshot.locked, root, capability, (record) => {
160
+ if (startSeq === undefined || record.seq <= startSeq) {
161
+ records.push(record);
162
+ if (records.length > 8) {
163
+ records.shift();
164
+ }
165
+ }
166
+ });
167
+ journal = capture.reference;
168
+ }
169
+ else {
170
+ await proveUnlockedJournalAbsent(snapshot.feature);
171
+ }
172
+ return { ...core, assessment, authority, journal, records };
173
+ }
174
+ async function revalidateCompact(c, context) {
175
+ const { workspaceRoot, capability, signal } = context;
176
+ if (signal?.aborted) {
177
+ throw new CompletionGuardError('cancelled', 'Compact read was cancelled.');
178
+ }
179
+ if (c.assessment?.inputs) {
180
+ await revalidateVerificationInputs(c.assessment.inputs, signal);
181
+ }
182
+ if (c.snapshot.locked) {
183
+ const again = await evidenceJournal.captureJournal(c.snapshot.locked, c.root, capability);
184
+ if (JSON.stringify(again.reference) !== JSON.stringify(c.journal)) {
185
+ throw new CompletionGuardError('contract_drift', 'Compact authority changed.');
186
+ }
187
+ }
188
+ else {
189
+ await proveUnlockedJournalAbsent(c.snapshot.feature);
190
+ }
191
+ await preflight.revalidateReadSnapshot(c.snapshot, c.root, workspaceRoot);
192
+ if (signal?.aborted) {
193
+ throw new CompletionGuardError('cancelled', 'Compact read was cancelled.');
194
+ }
195
+ }
196
+ async function getExecutionView(args, context) {
197
+ try {
198
+ const cursor = args.execution_cursor;
199
+ const historyCursor = args.evidence_cursor;
200
+ if (args.view === 'execution_detail' && (!cursor || cursor.offset < 0)) {
201
+ return compact.compactFailure('detail_cursor_invalid', 'ERR_INVALID_SLICE');
202
+ }
203
+ if (args.view === 'evidence_history' && historyCursor && historyCursor.startSeq < 1) {
204
+ return compact.compactFailure('journal_cursor_invalid', 'ERR_INVALID_SLICE');
142
205
  }
143
- return formatCompactResult(await getResumeCheckpoint(tasksPath, resolved.workspaceRoot, verificationCommand, args.verification_receipts, policy?.mode === 'scoped' ? policy : undefined, signal));
206
+ const c = await compactCapture(args, context);
207
+ const result = selectExecutionResult(args, c);
208
+ if (result.success) {
209
+ await revalidateCompact(c, context);
210
+ }
211
+ return result;
144
212
  }
145
213
  catch (error) {
146
- return formatCompactResult(compactReadError(error));
214
+ if (error instanceof InvalidCompactIdentifierError) {
215
+ return compact.compactFailure('compact_identifier_invalid');
216
+ }
217
+ if (error instanceof history.InvalidHistoryError) {
218
+ return compact.compactFailure('history_invalid');
219
+ }
220
+ return error instanceof compact.CheckpointError && error.reason === 'checkpoint_requires_lock'
221
+ ? compact.compactFailure('unlocked', 'ERR_SPEC_NOT_LOCKED')
222
+ : compact.executionReadError(error);
147
223
  }
148
224
  }
225
+ function selectExecutionResult(args, c) {
226
+ if (args.view === 'execution_window') {
227
+ const resume = checkpoint(c.snapshot, c.summary, c.assessment);
228
+ return compact.executionWindowResult(executionWindow(c, resume));
229
+ }
230
+ if (!c.authority) {
231
+ return compact.compactFailure('unlocked', 'ERR_SPEC_NOT_LOCKED');
232
+ }
233
+ return args.view === 'execution_detail' && args.execution_cursor
234
+ ? selectDetail(c, args.execution_cursor)
235
+ : selectEvidenceHistory(c, c.authority, args.evidence_cursor);
236
+ }
237
+ function selectDetail(c, cursor) {
238
+ if (cursor.snapshotSha256 !== c.authority ||
239
+ cursor.journalSnapshotSha256 !== (c.journal?.snapshotSha256 ?? null)) {
240
+ return compact.compactFailure('detail_cursor_stale', 'ERR_INVALID_SLICE');
241
+ }
242
+ const content = history.sections(c).texts[cursor.section];
243
+ if (hashArtifact(content) !== cursor.contentSha256) {
244
+ return compact.compactFailure('detail_cursor_stale', 'ERR_INVALID_SLICE');
245
+ }
246
+ const page = history.detailPage(path.basename(c.snapshot.feature), cursor, content);
247
+ return page
248
+ ? { success: true, data: { executionDetail: page } }
249
+ : compact.compactFailure('detail_cursor_invalid', 'ERR_INVALID_SLICE');
250
+ }
251
+ function selectEvidenceHistory(c, authority, cursor) {
252
+ if (cursor &&
253
+ (cursor.snapshotSha256 !== c.authority ||
254
+ cursor.journalSnapshotSha256 !== c.journal?.snapshotSha256 ||
255
+ cursor.headSha256 !== c.journal.headSha256)) {
256
+ return compact.compactFailure('journal_cursor_stale', 'ERR_INVALID_SLICE');
257
+ }
258
+ if (cursor && (!c.journal || cursor.startSeq > c.journal.count)) {
259
+ return compact.compactFailure('journal_cursor_invalid', 'ERR_INVALID_SLICE');
260
+ }
261
+ const page = compact.journalPage(path.basename(c.snapshot.feature), authority, c.journal, c.records, cursor?.startSeq ?? c.journal?.count ?? 0);
262
+ return page
263
+ ? { success: true, data: { evidenceHistory: page } }
264
+ : compact.compactFailure('journal_cursor_invalid', 'ERR_INVALID_SLICE');
265
+ }
266
+ function executionWindow(c, resume) {
267
+ const last = c.records.at(-1);
268
+ const data = history.sections(c);
269
+ return {
270
+ version: 1,
271
+ featureId: resume.featureId,
272
+ status: resume.status,
273
+ progress: resume.progress,
274
+ task: resume.task,
275
+ snapshotSha256: c.authority,
276
+ contract: resume.contract,
277
+ candidate: resume.candidate,
278
+ verification: {
279
+ readiness: resume.readiness,
280
+ integration: resume.integration,
281
+ nextAction: resume.nextAction,
282
+ gateCounts: history.gateCounts(resume),
283
+ blockerReasons: resume.blockers.map((b) => b.reason),
284
+ },
285
+ scope: history.scopeProjection(c, data),
286
+ taskDetail: history.detailCursor(c, 'active_task', data.texts.active_task),
287
+ verificationDetail: history.detailCursor(c, 'verification', data.texts.verification),
288
+ delta: history.deltaProjection(resume, last),
289
+ journal: history.journalProjection(c, last),
290
+ relocks: history.relockProjection(c, resume),
291
+ };
292
+ }
149
293
  //# sourceMappingURL=resume-views.js.map
@@ -1,4 +1,5 @@
1
- import type { ActiveTaskResult, FeatureSummary, SddResult, TaskBlock } from '../types/sdd-engine.js';
1
+ import type { TaskBlock } from '../types/completion.js';
2
+ import type { ActiveTaskResult, FeatureSummary, SddResult } from '../types/sdd-engine.js';
2
3
  export declare function activeTaskFromContent(content: string, extractCommand: (markdown: string) => string | null): SddResult<ActiveTaskResult>;
3
4
  export declare function summarizeTaskContent(content: string, extractCommand: (markdown: string) => string | null): {
4
5
  current: SddResult<ActiveTaskResult>;
@@ -1,6 +1,36 @@
1
- import type { ErrorCode, SddResult, ToolResult } from '../../types/sdd-engine.js';
2
- import type { CompactFailureReason } from '../../types/resume-views.js';
3
- export declare function compactFailure(reason: CompactFailureReason, code?: ErrorCode): SddResult<never>;
4
- export declare function compactReadError(error: unknown): SddResult<never>;
5
- export declare function formatCompactResult<T>(result: SddResult<T>): ToolResult;
1
+ import type { CheckpointFailureReason, CompletionSnapshot } from '../../types/completion.js';
2
+ import type * as engineTypes from '../../types/sdd-engine.js';
3
+ import type * as resumeTypes from '../../types/resume-views.js';
4
+ export declare function compactFailure(reason: resumeTypes.CompactFailureReason, code?: engineTypes.ErrorCode): engineTypes.SddResult<never>;
5
+ export declare function compactReadError(error: unknown): engineTypes.SddResult<never>;
6
+ export declare function formatCompactResult<T>(result: engineTypes.SddResult<T>): engineTypes.ToolResult;
7
+ export declare function formatResult<T>(result: engineTypes.SddResult<T>): engineTypes.ToolResult;
8
+ export declare class CheckpointCapabilityError extends Error {
9
+ }
10
+ export declare function checkpointCapabilityFailure(trigger?: string): engineTypes.SddResult<never>;
11
+ export declare class CheckpointError extends Error {
12
+ readonly reason: CheckpointFailureReason;
13
+ readonly code: engineTypes.ErrorCode;
14
+ readonly nextAction?: string;
15
+ constructor(reason: CheckpointFailureReason);
16
+ }
17
+ export declare function checkpointError(reason: CheckpointFailureReason, trigger?: string): engineTypes.SddResult<never>;
18
+ export declare function checkpointSuccess(seq: number, recordSha256: string, journal: engineTypes.CheckpointJournalReference): engineTypes.SddResult<{
19
+ checkpoint: engineTypes.EvidenceCheckpointResult;
20
+ }>;
21
+ export declare function checkpointException(error: unknown, capabilityUnavailable: boolean): engineTypes.SddResult<never>;
22
+ export declare function checkpointOpenUnsupported(error: unknown): boolean;
23
+ export declare function checkpointUnsupported(error: unknown): boolean;
24
+ export declare function checkpointOpenDenied(error: unknown): boolean;
25
+ export declare function checkpointRevalidationError(error: unknown): never;
26
+ export declare function checkpointInitialLockError(error: unknown): never;
27
+ export declare function checkpointDirectoryError(): never;
28
+ export declare function checkpointAcquireIoError(error: unknown): boolean;
29
+ export declare function checkpointGuardInspectionError(error: unknown): never;
30
+ export declare function journalPage(featureId: string, snapshotSha256: string, journal: engineTypes.CheckpointJournalReference | null, records: resumeTypes.EvidenceCheckpointRecord[], startSeq: number): resumeTypes.EvidenceHistoryPage | null;
31
+ export declare function detailEnvelope(featureId: string, cursor: engineTypes.ExecutionDetailCursor, bytes: Buffer, end: number): resumeTypes.ExecutionDetailPage;
32
+ export declare function resumeProjection(featureId: string, progress: resumeTypes.ResumeCheckpoint['progress'], presentation: resumeTypes.ResumePresentation, contract: resumeTypes.ResumeCheckpoint['contract'], assessment: resumeTypes.PreflightAssessment | undefined, history: resumeTypes.ResumeHistory): resumeTypes.ResumeCheckpoint;
33
+ export declare function executionWindowResult(window: resumeTypes.ExecutionWindow): engineTypes.SddResult<unknown>;
34
+ export declare function historyRef(locked: CompletionSnapshot, count: number): resumeTypes.ResumeHistory;
35
+ export declare function executionReadError(error: unknown): engineTypes.SddResult<never>;
6
36
  //# sourceMappingURL=compact-result.d.ts.map