ushman-ledger 0.3.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 (101) hide show
  1. package/AGENTS.md +41 -0
  2. package/CHANGELOG.md +23 -0
  3. package/LICENSE.md +21 -0
  4. package/README.md +233 -0
  5. package/dist/archive-journal.d.ts +63 -0
  6. package/dist/archive-journal.d.ts.map +1 -0
  7. package/dist/archive-journal.js +220 -0
  8. package/dist/archive.d.ts +30 -0
  9. package/dist/archive.d.ts.map +1 -0
  10. package/dist/archive.js +117 -0
  11. package/dist/async.d.ts +2 -0
  12. package/dist/async.d.ts.map +1 -0
  13. package/dist/async.js +20 -0
  14. package/dist/blobs.d.ts +10 -0
  15. package/dist/blobs.d.ts.map +1 -0
  16. package/dist/blobs.js +58 -0
  17. package/dist/builders.d.ts +465 -0
  18. package/dist/builders.d.ts.map +1 -0
  19. package/dist/builders.js +73 -0
  20. package/dist/candidate-paths.d.ts +3 -0
  21. package/dist/candidate-paths.d.ts.map +1 -0
  22. package/dist/candidate-paths.js +11 -0
  23. package/dist/cli.d.ts +15 -0
  24. package/dist/cli.d.ts.map +1 -0
  25. package/dist/cli.js +562 -0
  26. package/dist/coverage.d.ts +8 -0
  27. package/dist/coverage.d.ts.map +1 -0
  28. package/dist/coverage.js +128 -0
  29. package/dist/doctor.d.ts +9 -0
  30. package/dist/doctor.d.ts.map +1 -0
  31. package/dist/doctor.js +172 -0
  32. package/dist/handle.d.ts +28 -0
  33. package/dist/handle.d.ts.map +1 -0
  34. package/dist/handle.js +90 -0
  35. package/dist/index.d.ts +11 -0
  36. package/dist/index.d.ts.map +1 -0
  37. package/dist/index.js +9 -0
  38. package/dist/json.d.ts +4 -0
  39. package/dist/json.d.ts.map +1 -0
  40. package/dist/json.js +25 -0
  41. package/dist/lab-min.d.ts +9 -0
  42. package/dist/lab-min.d.ts.map +1 -0
  43. package/dist/lab-min.js +23 -0
  44. package/dist/list.d.ts +582 -0
  45. package/dist/list.d.ts.map +1 -0
  46. package/dist/list.js +139 -0
  47. package/dist/manifest-update.d.ts +13 -0
  48. package/dist/manifest-update.d.ts.map +1 -0
  49. package/dist/manifest-update.js +43 -0
  50. package/dist/note.d.ts +13 -0
  51. package/dist/note.d.ts.map +1 -0
  52. package/dist/note.js +15 -0
  53. package/dist/patch-metadata.d.ts +37 -0
  54. package/dist/patch-metadata.d.ts.map +1 -0
  55. package/dist/patch-metadata.js +300 -0
  56. package/dist/read-index.d.ts +114 -0
  57. package/dist/read-index.d.ts.map +1 -0
  58. package/dist/read-index.js +210 -0
  59. package/dist/record.d.ts +25 -0
  60. package/dist/record.d.ts.map +1 -0
  61. package/dist/record.js +268 -0
  62. package/dist/recovery.d.ts +39 -0
  63. package/dist/recovery.d.ts.map +1 -0
  64. package/dist/recovery.js +189 -0
  65. package/dist/render/analytics-summary.d.ts +58 -0
  66. package/dist/render/analytics-summary.d.ts.map +1 -0
  67. package/dist/render/analytics-summary.js +151 -0
  68. package/dist/render/dependency-graph.d.ts +3 -0
  69. package/dist/render/dependency-graph.d.ts.map +1 -0
  70. package/dist/render/dependency-graph.js +18 -0
  71. package/dist/render/jsonl.d.ts +3 -0
  72. package/dist/render/jsonl.d.ts.map +1 -0
  73. package/dist/render/jsonl.js +8 -0
  74. package/dist/render/retro.d.ts +6 -0
  75. package/dist/render/retro.d.ts.map +1 -0
  76. package/dist/render/retro.js +124 -0
  77. package/dist/render/timeline-html.d.ts +3 -0
  78. package/dist/render/timeline-html.d.ts.map +1 -0
  79. package/dist/render/timeline-html.js +37 -0
  80. package/dist/schema/entry.d.ts +3298 -0
  81. package/dist/schema/entry.d.ts.map +1 -0
  82. package/dist/schema/entry.js +619 -0
  83. package/dist/schema/manifest.d.ts +42 -0
  84. package/dist/schema/manifest.d.ts.map +1 -0
  85. package/dist/schema/manifest.js +27 -0
  86. package/dist/schema/note.d.ts +10 -0
  87. package/dist/schema/note.d.ts.map +1 -0
  88. package/dist/schema/note.js +2 -0
  89. package/dist/storage/filesystem.d.ts +35 -0
  90. package/dist/storage/filesystem.d.ts.map +1 -0
  91. package/dist/storage/filesystem.js +258 -0
  92. package/dist/storage/lock.d.ts +18 -0
  93. package/dist/storage/lock.d.ts.map +1 -0
  94. package/dist/storage/lock.js +224 -0
  95. package/dist/uuid.d.ts +7 -0
  96. package/dist/uuid.d.ts.map +1 -0
  97. package/dist/uuid.js +25 -0
  98. package/dist/version.d.ts +2 -0
  99. package/dist/version.d.ts.map +1 -0
  100. package/dist/version.js +1 -0
  101. package/package.json +73 -0
package/dist/list.d.ts ADDED
@@ -0,0 +1,582 @@
1
+ import { type LedgerReadIndex, type ManifestEntryLocation } from './read-index.ts';
2
+ import { type LedgerEntry, type LedgerKind, type LedgerPhase } from './schema/entry.ts';
3
+ import type { LedgerManifest } from './schema/manifest.ts';
4
+ export type LedgerFilter = {
5
+ readonly kind?: LedgerKind;
6
+ readonly limit?: number;
7
+ readonly phase?: LedgerPhase;
8
+ readonly since?: string;
9
+ };
10
+ export declare const getOrderedEntryLocations: (manifest: LedgerManifest, readIndex: LedgerReadIndex, filter: LedgerFilter, direction?: "asc" | "desc") => ManifestEntryLocation[];
11
+ export declare const readManifestEntryBatch: ({ allowMissing, entryLocations, workspaceRoot, }: {
12
+ readonly allowMissing?: boolean;
13
+ readonly entryLocations: readonly ManifestEntryLocation[];
14
+ readonly workspaceRoot: string;
15
+ }) => Promise<({
16
+ entry: {
17
+ emitter: {
18
+ tool: string;
19
+ version: string;
20
+ user?: string | undefined;
21
+ };
22
+ id: string;
23
+ links: {
24
+ [x: string]: unknown;
25
+ affectedFiles?: string[] | undefined;
26
+ blobs?: string[] | undefined;
27
+ briefId?: string | undefined;
28
+ correctsLedgerId?: string | undefined;
29
+ gitRef?: string | undefined;
30
+ idempotencyKey?: string | undefined;
31
+ stripDecisionId?: string | undefined;
32
+ supersedesLedgerId?: string | undefined;
33
+ validatorVerdictId?: string | undefined;
34
+ };
35
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
36
+ prevEntryId: string | null;
37
+ schemaVersion: "ushman-ledger-entry/v1";
38
+ summary: string;
39
+ ts: string;
40
+ kind: "correction";
41
+ payload: {
42
+ correctsValidatorResultId?: string | undefined;
43
+ };
44
+ rationale: string;
45
+ _legacy?: true | undefined;
46
+ details?: Record<string, unknown> | undefined;
47
+ } | {
48
+ emitter: {
49
+ tool: string;
50
+ version: string;
51
+ user?: string | undefined;
52
+ };
53
+ id: string;
54
+ links: {
55
+ [x: string]: unknown;
56
+ affectedFiles?: string[] | undefined;
57
+ blobs?: string[] | undefined;
58
+ briefId?: string | undefined;
59
+ correctsLedgerId?: string | undefined;
60
+ gitRef?: string | undefined;
61
+ idempotencyKey?: string | undefined;
62
+ stripDecisionId?: string | undefined;
63
+ supersedesLedgerId?: string | undefined;
64
+ validatorVerdictId?: string | undefined;
65
+ };
66
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
67
+ prevEntryId: string | null;
68
+ schemaVersion: "ushman-ledger-entry/v1";
69
+ summary: string;
70
+ ts: string;
71
+ kind: "tool-invocation";
72
+ _legacy?: true | undefined;
73
+ details?: Record<string, unknown> | undefined;
74
+ args?: string[] | undefined;
75
+ cwd?: string | undefined;
76
+ exitCode?: number | undefined;
77
+ } | {
78
+ emitter: {
79
+ tool: string;
80
+ version: string;
81
+ user?: string | undefined;
82
+ };
83
+ id: string;
84
+ links: {
85
+ [x: string]: unknown;
86
+ affectedFiles?: string[] | undefined;
87
+ blobs?: string[] | undefined;
88
+ briefId?: string | undefined;
89
+ correctsLedgerId?: string | undefined;
90
+ gitRef?: string | undefined;
91
+ idempotencyKey?: string | undefined;
92
+ stripDecisionId?: string | undefined;
93
+ supersedesLedgerId?: string | undefined;
94
+ validatorVerdictId?: string | undefined;
95
+ };
96
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
97
+ prevEntryId: string | null;
98
+ schemaVersion: "ushman-ledger-entry/v1";
99
+ summary: string;
100
+ ts: string;
101
+ diff: {
102
+ addedLines: number;
103
+ blobSha256: string;
104
+ bytes: number;
105
+ removedLines: number;
106
+ };
107
+ payload: {
108
+ diffSha256: string;
109
+ fileSha256After: Record<string, string>;
110
+ fileSha256Before: Record<string, string>;
111
+ hunks: {
112
+ endLine: number;
113
+ path: string;
114
+ startLine: number;
115
+ }[];
116
+ touchedPaths: string[];
117
+ diff?: string | undefined;
118
+ };
119
+ rationale: string;
120
+ agent: {
121
+ name: string;
122
+ sessionId?: string | undefined;
123
+ };
124
+ kind: "agent-patch";
125
+ _legacy?: true | undefined;
126
+ details?: Record<string, unknown> | undefined;
127
+ } | {
128
+ emitter: {
129
+ tool: string;
130
+ version: string;
131
+ user?: string | undefined;
132
+ };
133
+ id: string;
134
+ links: {
135
+ [x: string]: unknown;
136
+ affectedFiles?: string[] | undefined;
137
+ blobs?: string[] | undefined;
138
+ briefId?: string | undefined;
139
+ correctsLedgerId?: string | undefined;
140
+ gitRef?: string | undefined;
141
+ idempotencyKey?: string | undefined;
142
+ stripDecisionId?: string | undefined;
143
+ supersedesLedgerId?: string | undefined;
144
+ validatorVerdictId?: string | undefined;
145
+ };
146
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
147
+ prevEntryId: string | null;
148
+ schemaVersion: "ushman-ledger-entry/v1";
149
+ summary: string;
150
+ ts: string;
151
+ diff: {
152
+ addedLines: number;
153
+ blobSha256: string;
154
+ bytes: number;
155
+ removedLines: number;
156
+ };
157
+ payload: {
158
+ diffSha256: string;
159
+ fileSha256After: Record<string, string>;
160
+ fileSha256Before: Record<string, string>;
161
+ hunks: {
162
+ endLine: number;
163
+ path: string;
164
+ startLine: number;
165
+ }[];
166
+ touchedPaths: string[];
167
+ diff?: string | undefined;
168
+ };
169
+ rationale: string;
170
+ kind: "operator-patch";
171
+ operator: {
172
+ name: string;
173
+ };
174
+ _legacy?: true | undefined;
175
+ details?: Record<string, unknown> | undefined;
176
+ } | {
177
+ emitter: {
178
+ tool: string;
179
+ version: string;
180
+ user?: string | undefined;
181
+ };
182
+ id: string;
183
+ links: {
184
+ [x: string]: unknown;
185
+ affectedFiles?: string[] | undefined;
186
+ blobs?: string[] | undefined;
187
+ briefId?: string | undefined;
188
+ correctsLedgerId?: string | undefined;
189
+ gitRef?: string | undefined;
190
+ idempotencyKey?: string | undefined;
191
+ stripDecisionId?: string | undefined;
192
+ supersedesLedgerId?: string | undefined;
193
+ validatorVerdictId?: string | undefined;
194
+ };
195
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
196
+ prevEntryId: string | null;
197
+ schemaVersion: "ushman-ledger-entry/v1";
198
+ summary: string;
199
+ ts: string;
200
+ kind: "stage-transition";
201
+ payload: {
202
+ endedAt: string;
203
+ exitCode: number;
204
+ stage: "seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize";
205
+ startedAt: string;
206
+ doctorBaselineId?: string | undefined;
207
+ };
208
+ _legacy?: true | undefined;
209
+ details?: Record<string, unknown> | undefined;
210
+ } | {
211
+ emitter: {
212
+ tool: string;
213
+ version: string;
214
+ user?: string | undefined;
215
+ };
216
+ id: string;
217
+ links: {
218
+ [x: string]: unknown;
219
+ affectedFiles?: string[] | undefined;
220
+ blobs?: string[] | undefined;
221
+ briefId?: string | undefined;
222
+ correctsLedgerId?: string | undefined;
223
+ gitRef?: string | undefined;
224
+ idempotencyKey?: string | undefined;
225
+ stripDecisionId?: string | undefined;
226
+ supersedesLedgerId?: string | undefined;
227
+ validatorVerdictId?: string | undefined;
228
+ };
229
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
230
+ prevEntryId: string | null;
231
+ schemaVersion: "ushman-ledger-entry/v1";
232
+ summary: string;
233
+ ts: string;
234
+ kind: "operator-decision";
235
+ payload: {
236
+ action: "bypass-doctor" | "skip-check" | "override-strip-decision" | "override-ship-state" | "manual-parity-assertion" | "ledger-hand-edit" | "escalation";
237
+ rationale: string;
238
+ checkId?: string | undefined;
239
+ };
240
+ _legacy?: true | undefined;
241
+ details?: Record<string, unknown> | undefined;
242
+ body?: Record<string, unknown> | undefined;
243
+ decisionType?: "strip-decision" | "strip-decision-revised" | "vendor-boundary" | "intent-exclusion" | "other" | undefined;
244
+ } | {
245
+ emitter: {
246
+ tool: string;
247
+ version: string;
248
+ user?: string | undefined;
249
+ };
250
+ id: string;
251
+ links: {
252
+ [x: string]: unknown;
253
+ affectedFiles?: string[] | undefined;
254
+ blobs?: string[] | undefined;
255
+ briefId?: string | undefined;
256
+ correctsLedgerId?: string | undefined;
257
+ gitRef?: string | undefined;
258
+ idempotencyKey?: string | undefined;
259
+ stripDecisionId?: string | undefined;
260
+ supersedesLedgerId?: string | undefined;
261
+ validatorVerdictId?: string | undefined;
262
+ };
263
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
264
+ prevEntryId: string | null;
265
+ schemaVersion: "ushman-ledger-entry/v1";
266
+ summary: string;
267
+ ts: string;
268
+ kind: "validator-result";
269
+ payload: {
270
+ id: string;
271
+ };
272
+ validator: "parity" | "characterize" | "equiv" | "verify" | "doctor";
273
+ verdict: "green" | "yellow" | "red";
274
+ _legacy?: true | undefined;
275
+ details?: Record<string, unknown> | undefined;
276
+ metrics?: Record<string, unknown> | undefined;
277
+ resultPath?: string | undefined;
278
+ } | {
279
+ emitter: {
280
+ tool: string;
281
+ version: string;
282
+ user?: string | undefined;
283
+ };
284
+ id: string;
285
+ links: {
286
+ [x: string]: unknown;
287
+ affectedFiles?: string[] | undefined;
288
+ blobs?: string[] | undefined;
289
+ briefId?: string | undefined;
290
+ correctsLedgerId?: string | undefined;
291
+ gitRef?: string | undefined;
292
+ idempotencyKey?: string | undefined;
293
+ stripDecisionId?: string | undefined;
294
+ supersedesLedgerId?: string | undefined;
295
+ validatorVerdictId?: string | undefined;
296
+ };
297
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
298
+ prevEntryId: string | null;
299
+ schemaVersion: "ushman-ledger-entry/v1";
300
+ summary: string;
301
+ ts: string;
302
+ kind: "runtime-event";
303
+ level: "error" | "info" | "warn";
304
+ message: string;
305
+ source: string;
306
+ _legacy?: true | undefined;
307
+ details?: Record<string, unknown> | undefined;
308
+ stripDecisionId?: string | undefined;
309
+ } | {
310
+ emitter: {
311
+ tool: string;
312
+ version: string;
313
+ user?: string | undefined;
314
+ };
315
+ id: string;
316
+ links: {
317
+ [x: string]: unknown;
318
+ affectedFiles?: string[] | undefined;
319
+ blobs?: string[] | undefined;
320
+ briefId?: string | undefined;
321
+ correctsLedgerId?: string | undefined;
322
+ gitRef?: string | undefined;
323
+ idempotencyKey?: string | undefined;
324
+ stripDecisionId?: string | undefined;
325
+ supersedesLedgerId?: string | undefined;
326
+ validatorVerdictId?: string | undefined;
327
+ };
328
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
329
+ prevEntryId: string | null;
330
+ schemaVersion: "ushman-ledger-entry/v1";
331
+ summary: string;
332
+ ts: string;
333
+ body: string;
334
+ kind: "note";
335
+ subkind: "regression" | "automation" | "retro" | "operator" | "tooling-gap";
336
+ _legacy?: true | undefined;
337
+ details?: Record<string, unknown> | undefined;
338
+ } | {
339
+ emitter: {
340
+ tool: string;
341
+ version: string;
342
+ user?: string | undefined;
343
+ };
344
+ id: string;
345
+ links: {
346
+ [x: string]: unknown;
347
+ affectedFiles?: string[] | undefined;
348
+ blobs?: string[] | undefined;
349
+ briefId?: string | undefined;
350
+ correctsLedgerId?: string | undefined;
351
+ gitRef?: string | undefined;
352
+ idempotencyKey?: string | undefined;
353
+ stripDecisionId?: string | undefined;
354
+ supersedesLedgerId?: string | undefined;
355
+ validatorVerdictId?: string | undefined;
356
+ };
357
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
358
+ prevEntryId: string | null;
359
+ schemaVersion: "ushman-ledger-entry/v1";
360
+ summary: string;
361
+ ts: string;
362
+ kind: "strip-decision-reverted";
363
+ payload: {
364
+ rationale: string;
365
+ stripDecisionId: string;
366
+ invalidatedStages?: ("seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize")[] | undefined;
367
+ };
368
+ _legacy?: true | undefined;
369
+ details?: Record<string, unknown> | undefined;
370
+ } | {
371
+ emitter: {
372
+ tool: string;
373
+ version: string;
374
+ user?: string | undefined;
375
+ };
376
+ id: string;
377
+ links: {
378
+ [x: string]: unknown;
379
+ affectedFiles?: string[] | undefined;
380
+ blobs?: string[] | undefined;
381
+ briefId?: string | undefined;
382
+ correctsLedgerId?: string | undefined;
383
+ gitRef?: string | undefined;
384
+ idempotencyKey?: string | undefined;
385
+ stripDecisionId?: string | undefined;
386
+ supersedesLedgerId?: string | undefined;
387
+ validatorVerdictId?: string | undefined;
388
+ };
389
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
390
+ prevEntryId: string | null;
391
+ schemaVersion: "ushman-ledger-entry/v1";
392
+ summary: string;
393
+ ts: string;
394
+ kind: "descope-brief";
395
+ payload: {
396
+ briefId: string;
397
+ reason?: string | undefined;
398
+ round?: number | undefined;
399
+ stripDecisionIds?: string[] | undefined;
400
+ };
401
+ _legacy?: true | undefined;
402
+ details?: Record<string, unknown> | undefined;
403
+ } | {
404
+ emitter: {
405
+ tool: string;
406
+ version: string;
407
+ user?: string | undefined;
408
+ };
409
+ id: string;
410
+ links: {
411
+ [x: string]: unknown;
412
+ affectedFiles?: string[] | undefined;
413
+ blobs?: string[] | undefined;
414
+ briefId?: string | undefined;
415
+ correctsLedgerId?: string | undefined;
416
+ gitRef?: string | undefined;
417
+ idempotencyKey?: string | undefined;
418
+ stripDecisionId?: string | undefined;
419
+ supersedesLedgerId?: string | undefined;
420
+ validatorVerdictId?: string | undefined;
421
+ };
422
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
423
+ prevEntryId: string | null;
424
+ schemaVersion: "ushman-ledger-entry/v1";
425
+ summary: string;
426
+ ts: string;
427
+ kind: "merge-return";
428
+ payload: {
429
+ returnId: string;
430
+ briefId?: string | undefined;
431
+ source?: string | undefined;
432
+ };
433
+ _legacy?: true | undefined;
434
+ details?: Record<string, unknown> | undefined;
435
+ } | {
436
+ emitter: {
437
+ tool: string;
438
+ version: string;
439
+ user?: string | undefined;
440
+ };
441
+ id: string;
442
+ links: {
443
+ [x: string]: unknown;
444
+ affectedFiles?: string[] | undefined;
445
+ blobs?: string[] | undefined;
446
+ briefId?: string | undefined;
447
+ correctsLedgerId?: string | undefined;
448
+ gitRef?: string | undefined;
449
+ idempotencyKey?: string | undefined;
450
+ stripDecisionId?: string | undefined;
451
+ supersedesLedgerId?: string | undefined;
452
+ validatorVerdictId?: string | undefined;
453
+ };
454
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
455
+ prevEntryId: string | null;
456
+ schemaVersion: "ushman-ledger-entry/v1";
457
+ summary: string;
458
+ ts: string;
459
+ kind: "merge-return-rejected";
460
+ payload: {
461
+ returnId: string;
462
+ reason: string;
463
+ briefId?: string | undefined;
464
+ source?: string | undefined;
465
+ };
466
+ _legacy?: true | undefined;
467
+ details?: Record<string, unknown> | undefined;
468
+ } | {
469
+ emitter: {
470
+ tool: string;
471
+ version: string;
472
+ user?: string | undefined;
473
+ };
474
+ id: string;
475
+ links: {
476
+ [x: string]: unknown;
477
+ affectedFiles?: string[] | undefined;
478
+ blobs?: string[] | undefined;
479
+ briefId?: string | undefined;
480
+ correctsLedgerId?: string | undefined;
481
+ gitRef?: string | undefined;
482
+ idempotencyKey?: string | undefined;
483
+ stripDecisionId?: string | undefined;
484
+ supersedesLedgerId?: string | undefined;
485
+ validatorVerdictId?: string | undefined;
486
+ };
487
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
488
+ prevEntryId: string | null;
489
+ schemaVersion: "ushman-ledger-entry/v1";
490
+ summary: string;
491
+ ts: string;
492
+ kind: "revert";
493
+ payload: {
494
+ reason: string;
495
+ targetEntryId?: string | undefined;
496
+ };
497
+ _legacy?: true | undefined;
498
+ details?: Record<string, unknown> | undefined;
499
+ } | {
500
+ emitter: {
501
+ tool: string;
502
+ version: string;
503
+ user?: string | undefined;
504
+ };
505
+ id: string;
506
+ links: {
507
+ [x: string]: unknown;
508
+ affectedFiles?: string[] | undefined;
509
+ blobs?: string[] | undefined;
510
+ briefId?: string | undefined;
511
+ correctsLedgerId?: string | undefined;
512
+ gitRef?: string | undefined;
513
+ idempotencyKey?: string | undefined;
514
+ stripDecisionId?: string | undefined;
515
+ supersedesLedgerId?: string | undefined;
516
+ validatorVerdictId?: string | undefined;
517
+ };
518
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
519
+ prevEntryId: string | null;
520
+ schemaVersion: "ushman-ledger-entry/v1";
521
+ summary: string;
522
+ ts: string;
523
+ kind: "rollback";
524
+ payload: {
525
+ reason: string;
526
+ targetEntryId?: string | undefined;
527
+ targetStage?: "seed" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | undefined;
528
+ };
529
+ _legacy?: true | undefined;
530
+ details?: Record<string, unknown> | undefined;
531
+ } | {
532
+ emitter: {
533
+ tool: string;
534
+ version: string;
535
+ user?: string | undefined;
536
+ };
537
+ id: string;
538
+ links: {
539
+ [x: string]: unknown;
540
+ affectedFiles?: string[] | undefined;
541
+ blobs?: string[] | undefined;
542
+ briefId?: string | undefined;
543
+ correctsLedgerId?: string | undefined;
544
+ gitRef?: string | undefined;
545
+ idempotencyKey?: string | undefined;
546
+ stripDecisionId?: string | undefined;
547
+ supersedesLedgerId?: string | undefined;
548
+ validatorVerdictId?: string | undefined;
549
+ };
550
+ phase: "seed" | "capture" | "intake" | "vendor-extract" | "cleanup" | "parity" | "characterize" | "equiv" | "analyze" | "recover" | "ship" | "migration";
551
+ prevEntryId: string | null;
552
+ schemaVersion: "ushman-ledger-entry/v1";
553
+ summary: string;
554
+ ts: string;
555
+ kind: "rework.test_retired";
556
+ payload: {
557
+ removedBy: "operator" | "descope" | "decompose";
558
+ removedTestPath: string;
559
+ removedTestSymbols: string[];
560
+ sourceSymbolDeletedFrom: string;
561
+ briefId?: string | undefined;
562
+ };
563
+ _legacy?: true | undefined;
564
+ details?: Record<string, unknown> | undefined;
565
+ };
566
+ entryId: string;
567
+ location: {
568
+ phase: LedgerPhase;
569
+ sequence: number;
570
+ };
571
+ } | {
572
+ entry: null;
573
+ entryId: string;
574
+ location: {
575
+ phase: LedgerPhase;
576
+ sequence: number;
577
+ };
578
+ })[]>;
579
+ export declare const iterateEntriesFromManifest: (workspaceRoot: string, manifest: LedgerManifest, readIndex: LedgerReadIndex, filter?: LedgerFilter) => AsyncIterable<LedgerEntry>;
580
+ export declare const listEntries: (workspaceRoot: string, filter?: LedgerFilter) => AsyncIterable<LedgerEntry>;
581
+ export declare const readAllEntries: (workspaceRoot: string, filter?: LedgerFilter) => Promise<LedgerEntry[]>;
582
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","s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