@vibe-validate/history 0.15.0-rc.5 → 0.15.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/dist/pruner.d.ts.map +1 -1
- package/dist/pruner.js +15 -6
- package/dist/pruner.js.map +1 -1
- package/dist/schemas.d.ts +100 -34
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +6 -2
- package/dist/schemas.js.map +1 -1
- package/package.json +3 -3
package/dist/pruner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruner.d.ts","sourceRoot":"","sources":["../src/pruner.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY7D;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,aAAkB,EAC1B,MAAM,GAAE,OAAe,GACtB,OAAO,CAAC,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"pruner.d.ts","sourceRoot":"","sources":["../src/pruner.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAY7D;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,aAAkB,EAC1B,MAAM,GAAE,OAAe,GACtB,OAAO,CAAC,WAAW,CAAC,CA0DtB;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,MAAM,GAAE,aAAkB,EAC1B,MAAM,GAAE,OAAe,GACtB,OAAO,CAAC,WAAW,CAAC,CA4CtB;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,GAAE,OAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAwCpF;AAED;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,MAAM,GAAE,OAAe,GAAG,OAAO,CAAC,WAAW,CAAC,CAgCpF"}
|
package/dist/pruner.js
CHANGED
|
@@ -44,9 +44,12 @@ export async function pruneHistoryByAge(olderThanDays, config = {}, dryRun = fal
|
|
|
44
44
|
const oldestTimestamp = new Date(oldestRun.timestamp).getTime();
|
|
45
45
|
if (oldestTimestamp < cutoffTime) {
|
|
46
46
|
// All runs in this note are old - delete entire note
|
|
47
|
+
// Note: treeHash is always populated by readHistoryNote (falls back to ref path)
|
|
48
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
49
|
+
const treeHash = note.treeHash;
|
|
47
50
|
if (!dryRun) {
|
|
48
51
|
try {
|
|
49
|
-
execSync(`git notes --ref=${notesRef} remove ${
|
|
52
|
+
execSync(`git notes --ref=${notesRef} remove ${treeHash}`, { ...GIT_OPTIONS, stdio: 'ignore' });
|
|
50
53
|
}
|
|
51
54
|
catch {
|
|
52
55
|
// Ignore errors (note might not exist)
|
|
@@ -54,7 +57,7 @@ export async function pruneHistoryByAge(olderThanDays, config = {}, dryRun = fal
|
|
|
54
57
|
}
|
|
55
58
|
notesPruned++;
|
|
56
59
|
runsPruned += note.runs.length;
|
|
57
|
-
prunedTreeHashes.push(
|
|
60
|
+
prunedTreeHashes.push(treeHash);
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
@@ -86,9 +89,12 @@ export async function pruneAllHistory(config = {}, dryRun = false) {
|
|
|
86
89
|
let runsPruned = 0;
|
|
87
90
|
const prunedTreeHashes = [];
|
|
88
91
|
for (const note of allNotes) {
|
|
92
|
+
// Note: treeHash is always populated by readHistoryNote (falls back to ref path)
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
94
|
+
const treeHash = note.treeHash;
|
|
89
95
|
if (!dryRun) {
|
|
90
96
|
try {
|
|
91
|
-
execSync(`git notes --ref=${notesRef} remove ${
|
|
97
|
+
execSync(`git notes --ref=${notesRef} remove ${treeHash}`, { ...GIT_OPTIONS, stdio: 'ignore' });
|
|
92
98
|
}
|
|
93
99
|
catch {
|
|
94
100
|
// Ignore errors
|
|
@@ -96,7 +102,7 @@ export async function pruneAllHistory(config = {}, dryRun = false) {
|
|
|
96
102
|
}
|
|
97
103
|
notesPruned++;
|
|
98
104
|
runsPruned += note.runs?.length ?? 0;
|
|
99
|
-
prunedTreeHashes.push(
|
|
105
|
+
prunedTreeHashes.push(treeHash);
|
|
100
106
|
}
|
|
101
107
|
return {
|
|
102
108
|
notesPruned,
|
|
@@ -122,9 +128,12 @@ export async function pruneLegacyNotes(dryRun = false) {
|
|
|
122
128
|
try {
|
|
123
129
|
const allNotes = await getAllHistoryNotes(legacyRef);
|
|
124
130
|
for (const note of allNotes) {
|
|
131
|
+
// Note: treeHash is always populated by readHistoryNote (falls back to ref path)
|
|
132
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
133
|
+
const treeHash = note.treeHash;
|
|
125
134
|
if (!dryRun) {
|
|
126
135
|
try {
|
|
127
|
-
execSync(`git notes --ref=${legacyRef} remove ${
|
|
136
|
+
execSync(`git notes --ref=${legacyRef} remove ${treeHash}`, { ...GIT_OPTIONS, stdio: 'ignore' });
|
|
128
137
|
}
|
|
129
138
|
catch {
|
|
130
139
|
// Ignore errors
|
|
@@ -132,7 +141,7 @@ export async function pruneLegacyNotes(dryRun = false) {
|
|
|
132
141
|
}
|
|
133
142
|
notesPruned++;
|
|
134
143
|
runsPruned += note.runs?.length ?? 0;
|
|
135
|
-
prunedTreeHashes.push(
|
|
144
|
+
prunedTreeHashes.push(treeHash);
|
|
136
145
|
}
|
|
137
146
|
}
|
|
138
147
|
catch {
|
package/dist/pruner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pruner.js","sourceRoot":"","sources":["../src/pruner.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,OAAO,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AQ,CACN,uEAAuE,QAAQ,sCAAsC,EACrH,EAAE,GAAG,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,CACpC,CAAC;gBACJ,CAAC;gBAAC,MAAM,CAAC;oBACP,gBAAgB;gBAClB,CAAC;YACH,CAAC;YAED,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;YAC9B,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAED,OAAO;QACL,WAAW;QACX,UAAU,EAAE,WAAW,EAAE,iDAAiD;QAC1E,cAAc,EAAE,CAAC;QACjB,gBAAgB;KACjB,CAAC;AACJ,CAAC"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { z } from 'zod';
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const RunCacheNoteSchema: z.ZodObject<{
|
|
25
25
|
timestamp: z.ZodString;
|
|
26
|
-
treeHash: z.ZodString
|
|
26
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
27
27
|
} & {
|
|
28
28
|
command: z.ZodString;
|
|
29
29
|
exitCode: z.ZodNumber;
|
|
@@ -97,9 +97,7 @@ export declare const RunCacheNoteSchema: z.ZodObject<{
|
|
|
97
97
|
issues: string[];
|
|
98
98
|
confidence: number;
|
|
99
99
|
completeness: number;
|
|
100
|
-
detection
|
|
101
|
-
/** Warn after this many total notes */
|
|
102
|
-
? /** Warn after this many total notes */: {
|
|
100
|
+
detection?: {
|
|
103
101
|
extractor: string;
|
|
104
102
|
confidence: number;
|
|
105
103
|
patterns: string[];
|
|
@@ -186,11 +184,11 @@ export declare const RunCacheNoteSchema: z.ZodObject<{
|
|
|
186
184
|
isCachedResult: z.ZodOptional<z.ZodBoolean>;
|
|
187
185
|
}, "strip", z.ZodTypeAny, {
|
|
188
186
|
timestamp: string;
|
|
189
|
-
treeHash: string;
|
|
190
187
|
command: string;
|
|
191
188
|
exitCode: number;
|
|
192
189
|
durationSecs: number;
|
|
193
190
|
workdir: string;
|
|
191
|
+
treeHash?: string | undefined;
|
|
194
192
|
extraction?: {
|
|
195
193
|
summary: string;
|
|
196
194
|
totalErrors: number;
|
|
@@ -227,11 +225,11 @@ export declare const RunCacheNoteSchema: z.ZodObject<{
|
|
|
227
225
|
isCachedResult?: boolean | undefined;
|
|
228
226
|
}, {
|
|
229
227
|
timestamp: string;
|
|
230
|
-
treeHash: string;
|
|
231
228
|
command: string;
|
|
232
229
|
exitCode: number;
|
|
233
230
|
durationSecs: number;
|
|
234
231
|
workdir: string;
|
|
232
|
+
treeHash?: string | undefined;
|
|
235
233
|
extraction?: {
|
|
236
234
|
summary: string;
|
|
237
235
|
totalErrors: number;
|
|
@@ -293,7 +291,7 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
293
291
|
/** Full validation result (with truncated output) */
|
|
294
292
|
result: z.ZodObject<{
|
|
295
293
|
timestamp: z.ZodString;
|
|
296
|
-
treeHash: z.ZodString
|
|
294
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
297
295
|
} & {
|
|
298
296
|
passed: z.ZodBoolean;
|
|
299
297
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -628,12 +626,29 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
628
626
|
} | undefined;
|
|
629
627
|
}[];
|
|
630
628
|
}>, "many">>;
|
|
631
|
-
|
|
629
|
+
outputFiles: z.ZodOptional<z.ZodObject<{
|
|
630
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
631
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
632
|
+
combined: z.ZodString;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
combined: string;
|
|
635
|
+
stdout?: string | undefined;
|
|
636
|
+
stderr?: string | undefined;
|
|
637
|
+
}, {
|
|
638
|
+
combined: string;
|
|
639
|
+
stdout?: string | undefined;
|
|
640
|
+
stderr?: string | undefined;
|
|
641
|
+
}>>;
|
|
632
642
|
}, "strict", z.ZodTypeAny, {
|
|
633
643
|
timestamp: string;
|
|
634
|
-
treeHash: string;
|
|
635
644
|
passed: boolean;
|
|
645
|
+
treeHash?: string | undefined;
|
|
636
646
|
isCachedResult?: boolean | undefined;
|
|
647
|
+
outputFiles?: {
|
|
648
|
+
combined: string;
|
|
649
|
+
stdout?: string | undefined;
|
|
650
|
+
stderr?: string | undefined;
|
|
651
|
+
} | undefined;
|
|
637
652
|
summary?: string | undefined;
|
|
638
653
|
failedStep?: string | undefined;
|
|
639
654
|
phases?: {
|
|
@@ -682,12 +697,16 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
682
697
|
} | undefined;
|
|
683
698
|
}[];
|
|
684
699
|
}[] | undefined;
|
|
685
|
-
fullLogFile?: string | undefined;
|
|
686
700
|
}, {
|
|
687
701
|
timestamp: string;
|
|
688
|
-
treeHash: string;
|
|
689
702
|
passed: boolean;
|
|
703
|
+
treeHash?: string | undefined;
|
|
690
704
|
isCachedResult?: boolean | undefined;
|
|
705
|
+
outputFiles?: {
|
|
706
|
+
combined: string;
|
|
707
|
+
stdout?: string | undefined;
|
|
708
|
+
stderr?: string | undefined;
|
|
709
|
+
} | undefined;
|
|
691
710
|
summary?: string | undefined;
|
|
692
711
|
failedStep?: string | undefined;
|
|
693
712
|
phases?: {
|
|
@@ -736,7 +755,6 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
736
755
|
} | undefined;
|
|
737
756
|
}[];
|
|
738
757
|
}[] | undefined;
|
|
739
|
-
fullLogFile?: string | undefined;
|
|
740
758
|
}>;
|
|
741
759
|
}, "strip", z.ZodTypeAny, {
|
|
742
760
|
timestamp: string;
|
|
@@ -748,9 +766,14 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
748
766
|
uncommittedChanges: boolean;
|
|
749
767
|
result: {
|
|
750
768
|
timestamp: string;
|
|
751
|
-
treeHash: string;
|
|
752
769
|
passed: boolean;
|
|
770
|
+
treeHash?: string | undefined;
|
|
753
771
|
isCachedResult?: boolean | undefined;
|
|
772
|
+
outputFiles?: {
|
|
773
|
+
combined: string;
|
|
774
|
+
stdout?: string | undefined;
|
|
775
|
+
stderr?: string | undefined;
|
|
776
|
+
} | undefined;
|
|
754
777
|
summary?: string | undefined;
|
|
755
778
|
failedStep?: string | undefined;
|
|
756
779
|
phases?: {
|
|
@@ -799,7 +822,6 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
799
822
|
} | undefined;
|
|
800
823
|
}[];
|
|
801
824
|
}[] | undefined;
|
|
802
|
-
fullLogFile?: string | undefined;
|
|
803
825
|
};
|
|
804
826
|
}, {
|
|
805
827
|
timestamp: string;
|
|
@@ -811,9 +833,14 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
811
833
|
uncommittedChanges: boolean;
|
|
812
834
|
result: {
|
|
813
835
|
timestamp: string;
|
|
814
|
-
treeHash: string;
|
|
815
836
|
passed: boolean;
|
|
837
|
+
treeHash?: string | undefined;
|
|
816
838
|
isCachedResult?: boolean | undefined;
|
|
839
|
+
outputFiles?: {
|
|
840
|
+
combined: string;
|
|
841
|
+
stdout?: string | undefined;
|
|
842
|
+
stderr?: string | undefined;
|
|
843
|
+
} | undefined;
|
|
817
844
|
summary?: string | undefined;
|
|
818
845
|
failedStep?: string | undefined;
|
|
819
846
|
phases?: {
|
|
@@ -862,17 +889,20 @@ export declare const ValidationRunSchema: z.ZodObject<{
|
|
|
862
889
|
} | undefined;
|
|
863
890
|
}[];
|
|
864
891
|
}[] | undefined;
|
|
865
|
-
fullLogFile?: string | undefined;
|
|
866
892
|
};
|
|
867
893
|
}>;
|
|
868
894
|
/**
|
|
869
895
|
* History Note Schema
|
|
870
896
|
*
|
|
871
897
|
* Git note structure stored as YAML in refs/notes/vibe-validate/validate/{treeHash}
|
|
898
|
+
*
|
|
899
|
+
* Note: treeHash is optional because it's encoded in the git notes ref path.
|
|
900
|
+
* The reader will use the ref path value if not present in the note content.
|
|
901
|
+
* Output commands (history, state) should provide treeHash at root level to avoid duplication.
|
|
872
902
|
*/
|
|
873
903
|
export declare const HistoryNoteSchema: z.ZodObject<{
|
|
874
|
-
/** Tree hash this note is attached to */
|
|
875
|
-
treeHash: z.ZodString
|
|
904
|
+
/** Tree hash this note is attached to (optional - inferred from ref path if omitted) */
|
|
905
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
876
906
|
/** Array of validation runs for this tree */
|
|
877
907
|
runs: z.ZodArray<z.ZodObject<{
|
|
878
908
|
/** Unique run ID (run-{timestamp}) */
|
|
@@ -892,7 +922,7 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
892
922
|
/** Full validation result (with truncated output) */
|
|
893
923
|
result: z.ZodObject<{
|
|
894
924
|
timestamp: z.ZodString;
|
|
895
|
-
treeHash: z.ZodString
|
|
925
|
+
treeHash: z.ZodOptional<z.ZodString>;
|
|
896
926
|
} & {
|
|
897
927
|
passed: z.ZodBoolean;
|
|
898
928
|
summary: z.ZodOptional<z.ZodString>;
|
|
@@ -1227,12 +1257,29 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1227
1257
|
} | undefined;
|
|
1228
1258
|
}[];
|
|
1229
1259
|
}>, "many">>;
|
|
1230
|
-
|
|
1260
|
+
outputFiles: z.ZodOptional<z.ZodObject<{
|
|
1261
|
+
stdout: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
stderr: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
combined: z.ZodString;
|
|
1264
|
+
}, "strip", z.ZodTypeAny, {
|
|
1265
|
+
combined: string;
|
|
1266
|
+
stdout?: string | undefined;
|
|
1267
|
+
stderr?: string | undefined;
|
|
1268
|
+
}, {
|
|
1269
|
+
combined: string;
|
|
1270
|
+
stdout?: string | undefined;
|
|
1271
|
+
stderr?: string | undefined;
|
|
1272
|
+
}>>;
|
|
1231
1273
|
}, "strict", z.ZodTypeAny, {
|
|
1232
1274
|
timestamp: string;
|
|
1233
|
-
treeHash: string;
|
|
1234
1275
|
passed: boolean;
|
|
1276
|
+
treeHash?: string | undefined;
|
|
1235
1277
|
isCachedResult?: boolean | undefined;
|
|
1278
|
+
outputFiles?: {
|
|
1279
|
+
combined: string;
|
|
1280
|
+
stdout?: string | undefined;
|
|
1281
|
+
stderr?: string | undefined;
|
|
1282
|
+
} | undefined;
|
|
1236
1283
|
summary?: string | undefined;
|
|
1237
1284
|
failedStep?: string | undefined;
|
|
1238
1285
|
phases?: {
|
|
@@ -1281,12 +1328,16 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1281
1328
|
} | undefined;
|
|
1282
1329
|
}[];
|
|
1283
1330
|
}[] | undefined;
|
|
1284
|
-
fullLogFile?: string | undefined;
|
|
1285
1331
|
}, {
|
|
1286
1332
|
timestamp: string;
|
|
1287
|
-
treeHash: string;
|
|
1288
1333
|
passed: boolean;
|
|
1334
|
+
treeHash?: string | undefined;
|
|
1289
1335
|
isCachedResult?: boolean | undefined;
|
|
1336
|
+
outputFiles?: {
|
|
1337
|
+
combined: string;
|
|
1338
|
+
stdout?: string | undefined;
|
|
1339
|
+
stderr?: string | undefined;
|
|
1340
|
+
} | undefined;
|
|
1290
1341
|
summary?: string | undefined;
|
|
1291
1342
|
failedStep?: string | undefined;
|
|
1292
1343
|
phases?: {
|
|
@@ -1335,7 +1386,6 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1335
1386
|
} | undefined;
|
|
1336
1387
|
}[];
|
|
1337
1388
|
}[] | undefined;
|
|
1338
|
-
fullLogFile?: string | undefined;
|
|
1339
1389
|
}>;
|
|
1340
1390
|
}, "strip", z.ZodTypeAny, {
|
|
1341
1391
|
timestamp: string;
|
|
@@ -1347,9 +1397,14 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1347
1397
|
uncommittedChanges: boolean;
|
|
1348
1398
|
result: {
|
|
1349
1399
|
timestamp: string;
|
|
1350
|
-
treeHash: string;
|
|
1351
1400
|
passed: boolean;
|
|
1401
|
+
treeHash?: string | undefined;
|
|
1352
1402
|
isCachedResult?: boolean | undefined;
|
|
1403
|
+
outputFiles?: {
|
|
1404
|
+
combined: string;
|
|
1405
|
+
stdout?: string | undefined;
|
|
1406
|
+
stderr?: string | undefined;
|
|
1407
|
+
} | undefined;
|
|
1353
1408
|
summary?: string | undefined;
|
|
1354
1409
|
failedStep?: string | undefined;
|
|
1355
1410
|
phases?: {
|
|
@@ -1398,7 +1453,6 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1398
1453
|
} | undefined;
|
|
1399
1454
|
}[];
|
|
1400
1455
|
}[] | undefined;
|
|
1401
|
-
fullLogFile?: string | undefined;
|
|
1402
1456
|
};
|
|
1403
1457
|
}, {
|
|
1404
1458
|
timestamp: string;
|
|
@@ -1410,9 +1464,14 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1410
1464
|
uncommittedChanges: boolean;
|
|
1411
1465
|
result: {
|
|
1412
1466
|
timestamp: string;
|
|
1413
|
-
treeHash: string;
|
|
1414
1467
|
passed: boolean;
|
|
1468
|
+
treeHash?: string | undefined;
|
|
1415
1469
|
isCachedResult?: boolean | undefined;
|
|
1470
|
+
outputFiles?: {
|
|
1471
|
+
combined: string;
|
|
1472
|
+
stdout?: string | undefined;
|
|
1473
|
+
stderr?: string | undefined;
|
|
1474
|
+
} | undefined;
|
|
1416
1475
|
summary?: string | undefined;
|
|
1417
1476
|
failedStep?: string | undefined;
|
|
1418
1477
|
phases?: {
|
|
@@ -1461,11 +1520,9 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1461
1520
|
} | undefined;
|
|
1462
1521
|
}[];
|
|
1463
1522
|
}[] | undefined;
|
|
1464
|
-
fullLogFile?: string | undefined;
|
|
1465
1523
|
};
|
|
1466
1524
|
}>, "many">;
|
|
1467
1525
|
}, "strip", z.ZodTypeAny, {
|
|
1468
|
-
treeHash: string;
|
|
1469
1526
|
runs: {
|
|
1470
1527
|
timestamp: string;
|
|
1471
1528
|
id: string;
|
|
@@ -1476,9 +1533,14 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1476
1533
|
uncommittedChanges: boolean;
|
|
1477
1534
|
result: {
|
|
1478
1535
|
timestamp: string;
|
|
1479
|
-
treeHash: string;
|
|
1480
1536
|
passed: boolean;
|
|
1537
|
+
treeHash?: string | undefined;
|
|
1481
1538
|
isCachedResult?: boolean | undefined;
|
|
1539
|
+
outputFiles?: {
|
|
1540
|
+
combined: string;
|
|
1541
|
+
stdout?: string | undefined;
|
|
1542
|
+
stderr?: string | undefined;
|
|
1543
|
+
} | undefined;
|
|
1482
1544
|
summary?: string | undefined;
|
|
1483
1545
|
failedStep?: string | undefined;
|
|
1484
1546
|
phases?: {
|
|
@@ -1527,11 +1589,10 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1527
1589
|
} | undefined;
|
|
1528
1590
|
}[];
|
|
1529
1591
|
}[] | undefined;
|
|
1530
|
-
fullLogFile?: string | undefined;
|
|
1531
1592
|
};
|
|
1532
1593
|
}[];
|
|
1594
|
+
treeHash?: string | undefined;
|
|
1533
1595
|
}, {
|
|
1534
|
-
treeHash: string;
|
|
1535
1596
|
runs: {
|
|
1536
1597
|
timestamp: string;
|
|
1537
1598
|
id: string;
|
|
@@ -1542,9 +1603,14 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1542
1603
|
uncommittedChanges: boolean;
|
|
1543
1604
|
result: {
|
|
1544
1605
|
timestamp: string;
|
|
1545
|
-
treeHash: string;
|
|
1546
1606
|
passed: boolean;
|
|
1607
|
+
treeHash?: string | undefined;
|
|
1547
1608
|
isCachedResult?: boolean | undefined;
|
|
1609
|
+
outputFiles?: {
|
|
1610
|
+
combined: string;
|
|
1611
|
+
stdout?: string | undefined;
|
|
1612
|
+
stderr?: string | undefined;
|
|
1613
|
+
} | undefined;
|
|
1548
1614
|
summary?: string | undefined;
|
|
1549
1615
|
failedStep?: string | undefined;
|
|
1550
1616
|
phases?: {
|
|
@@ -1593,9 +1659,9 @@ export declare const HistoryNoteSchema: z.ZodObject<{
|
|
|
1593
1659
|
} | undefined;
|
|
1594
1660
|
}[];
|
|
1595
1661
|
}[] | undefined;
|
|
1596
|
-
fullLogFile?: string | undefined;
|
|
1597
1662
|
};
|
|
1598
1663
|
}[];
|
|
1664
|
+
treeHash?: string | undefined;
|
|
1599
1665
|
}>;
|
|
1600
1666
|
/**
|
|
1601
1667
|
* History Configuration Schema
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;gBAGoB,CAAC;gBAAsC,CAAC;kBAGnF,CAAC;gBACL,CAAD;oBAEK,CAAC;mBAAsD,CAAC;oBAC5C,CAAA;;;gBAMH,CAAC;gBACf,CAAC;kBAAwC,CAAC;gBAErB,CAAC;oBAA0C,CAAC;mBAErC,CAAC;oBACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;gBAGoB,CAAC;gBAAsC,CAAC;kBAGnF,CAAC;gBACL,CAAD;oBAEK,CAAC;mBAAsD,CAAC;oBAC5C,CAAA;;;gBAMH,CAAC;gBACf,CAAC;kBAAwC,CAAC;gBAErB,CAAC;oBAA0C,CAAC;mBAErC,CAAC;oBACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAuC3B,CAAF;;;;;;uBAQ8B,CAAC;;;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mB;IAC9B,+BAA+B;;IAG/B,8BAA8B;;QAE5B,wBAAwB;;QAGxB,gCAAgC;;QAGhC,mCAAmC;;;;;;;;;;;IAIrC,uBAAuB;;QAErB,gCAAgC;;QAGhC,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAG9B,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;CAWzB,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -73,10 +73,14 @@ export const ValidationRunSchema = z.object({
|
|
|
73
73
|
* History Note Schema
|
|
74
74
|
*
|
|
75
75
|
* Git note structure stored as YAML in refs/notes/vibe-validate/validate/{treeHash}
|
|
76
|
+
*
|
|
77
|
+
* Note: treeHash is optional because it's encoded in the git notes ref path.
|
|
78
|
+
* The reader will use the ref path value if not present in the note content.
|
|
79
|
+
* Output commands (history, state) should provide treeHash at root level to avoid duplication.
|
|
76
80
|
*/
|
|
77
81
|
export const HistoryNoteSchema = z.object({
|
|
78
|
-
/** Tree hash this note is attached to */
|
|
79
|
-
treeHash: z.string().min(1),
|
|
82
|
+
/** Tree hash this note is attached to (optional - inferred from ref path if omitted) */
|
|
83
|
+
treeHash: z.string().min(1).optional(),
|
|
80
84
|
/** Array of validation runs for this tree */
|
|
81
85
|
runs: z.array(ValidationRunSchema),
|
|
82
86
|
});
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1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AAC;QAClB,gCAAgC;QAChC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAE/C,uCAAuC;QACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KACjD,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC,QAAQ,EAAE,CAAC;AAUd;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE;QACR,GAAG,EAAE,wBAAwB;QAC7B,cAAc,EAAE,EAAE;QAClB,cAAc,EAAE,KAAK;KACtB;IACD,SAAS,EAAE;QACT,aAAa,EAAE,EAAE;QACjB,cAAc,EAAE,IAAI;KACrB;CACO,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibe-validate/history",
|
|
3
|
-
"version": "0.15.0
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Validation history tracking via git notes for vibe-validate",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"yaml": "^2.3.4",
|
|
41
41
|
"zod": "^3.24.1",
|
|
42
|
-
"@vibe-validate/git": "0.15.0
|
|
43
|
-
"@vibe-validate/core": "0.15.0
|
|
42
|
+
"@vibe-validate/git": "0.15.0",
|
|
43
|
+
"@vibe-validate/core": "0.15.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.0.0",
|