@mmnto/totem 1.81.1 → 1.82.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/compiler-schema.d.ts +511 -734
- package/dist/compiler-schema.d.ts.map +1 -1
- package/dist/compiler-schema.js +72 -2
- package/dist/compiler-schema.js.map +1 -1
- package/dist/compiler-schema.test.js +42 -3
- package/dist/compiler-schema.test.js.map +1 -1
- package/dist/compiler.d.ts +1 -1
- package/dist/compiler.d.ts.map +1 -1
- package/dist/compiler.js +1 -1
- package/dist/compiler.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/spine/authored-rule.d.ts +136 -306
- package/dist/spine/authored-rule.d.ts.map +1 -1
- package/dist/spine/authored-rule.js +7 -3
- package/dist/spine/authored-rule.js.map +1 -1
- package/dist/spine/authoring-ledger.d.ts +24 -9
- package/dist/spine/authoring-ledger.d.ts.map +1 -1
- package/dist/spine/authoring-ledger.js +22 -7
- package/dist/spine/authoring-ledger.js.map +1 -1
- package/dist/spine/authoring-ledger.test.js +13 -1
- package/dist/spine/authoring-ledger.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -176,99 +176,53 @@ export declare const AuthoredRuleRecordSchema: z.ZodObject<{
|
|
|
176
176
|
matchedSpan: string;
|
|
177
177
|
contentHash: string;
|
|
178
178
|
}>, "many">;
|
|
179
|
-
negativeFixtures: z.ZodOptional<z.ZodArray<z.
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
negativeFixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
180
|
+
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
181
|
+
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
182
|
+
nearMissSource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
182
183
|
kind: z.ZodLiteral<"lesson">;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
goodExample: z.ZodEffects<z.ZodString, string, string>;
|
|
184
|
+
example: z.ZodEffects<z.ZodString, string, string>;
|
|
185
|
+
lessonRef: z.ZodOptional<z.ZodString>;
|
|
186
186
|
}, "strict", z.ZodTypeAny, {
|
|
187
187
|
kind: "lesson";
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
goodExample: string;
|
|
188
|
+
example: string;
|
|
189
|
+
lessonRef?: string | undefined;
|
|
191
190
|
}, {
|
|
192
191
|
kind: "lesson";
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
goodExample: string;
|
|
192
|
+
example: string;
|
|
193
|
+
lessonRef?: string | undefined;
|
|
196
194
|
}>, z.ZodObject<{
|
|
197
195
|
kind: z.ZodLiteral<"commit">;
|
|
198
|
-
|
|
199
|
-
mergeCommitSha: z.ZodString;
|
|
196
|
+
commitSha: z.ZodString;
|
|
200
197
|
}, "strict", z.ZodTypeAny, {
|
|
201
198
|
kind: "commit";
|
|
202
|
-
|
|
203
|
-
mergeCommitSha: string;
|
|
199
|
+
commitSha: string;
|
|
204
200
|
}, {
|
|
205
201
|
kind: "commit";
|
|
206
|
-
|
|
207
|
-
mergeCommitSha: string;
|
|
202
|
+
commitSha: string;
|
|
208
203
|
}>]>;
|
|
209
|
-
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
210
|
-
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
211
|
-
contentHash: z.ZodEffects<z.ZodString, string, string>;
|
|
212
204
|
}, "strict", z.ZodTypeAny, {
|
|
213
|
-
pr: number;
|
|
214
|
-
preimageSource: {
|
|
215
|
-
kind: "lesson";
|
|
216
|
-
lessonRef: string;
|
|
217
|
-
badExample: string;
|
|
218
|
-
goodExample: string;
|
|
219
|
-
} | {
|
|
220
|
-
kind: "commit";
|
|
221
|
-
preimageCommitSha: string;
|
|
222
|
-
mergeCommitSha: string;
|
|
223
|
-
};
|
|
224
|
-
filePath: string;
|
|
225
|
-
matchedSpan: string;
|
|
226
|
-
contentHash: string;
|
|
227
|
-
}, {
|
|
228
|
-
pr: number;
|
|
229
|
-
preimageSource: {
|
|
230
|
-
kind: "lesson";
|
|
231
|
-
lessonRef: string;
|
|
232
|
-
badExample: string;
|
|
233
|
-
goodExample: string;
|
|
234
|
-
} | {
|
|
235
|
-
kind: "commit";
|
|
236
|
-
preimageCommitSha: string;
|
|
237
|
-
mergeCommitSha: string;
|
|
238
|
-
};
|
|
239
205
|
filePath: string;
|
|
240
206
|
matchedSpan: string;
|
|
241
|
-
|
|
242
|
-
}>, {
|
|
243
|
-
pr: number;
|
|
244
|
-
preimageSource: {
|
|
207
|
+
nearMissSource: {
|
|
245
208
|
kind: "lesson";
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
goodExample: string;
|
|
209
|
+
example: string;
|
|
210
|
+
lessonRef?: string | undefined;
|
|
249
211
|
} | {
|
|
250
212
|
kind: "commit";
|
|
251
|
-
|
|
252
|
-
mergeCommitSha: string;
|
|
213
|
+
commitSha: string;
|
|
253
214
|
};
|
|
215
|
+
}, {
|
|
254
216
|
filePath: string;
|
|
255
217
|
matchedSpan: string;
|
|
256
|
-
|
|
257
|
-
}, {
|
|
258
|
-
pr: number;
|
|
259
|
-
preimageSource: {
|
|
218
|
+
nearMissSource: {
|
|
260
219
|
kind: "lesson";
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
goodExample: string;
|
|
220
|
+
example: string;
|
|
221
|
+
lessonRef?: string | undefined;
|
|
264
222
|
} | {
|
|
265
223
|
kind: "commit";
|
|
266
|
-
|
|
267
|
-
mergeCommitSha: string;
|
|
224
|
+
commitSha: string;
|
|
268
225
|
};
|
|
269
|
-
filePath: string;
|
|
270
|
-
matchedSpan: string;
|
|
271
|
-
contentHash: string;
|
|
272
226
|
}>, "many">>;
|
|
273
227
|
}, "strip", z.ZodTypeAny, {
|
|
274
228
|
kind: "authored";
|
|
@@ -292,20 +246,16 @@ export declare const AuthoredRuleRecordSchema: z.ZodObject<{
|
|
|
292
246
|
contentHash: string;
|
|
293
247
|
}[];
|
|
294
248
|
negativeFixtures?: {
|
|
295
|
-
|
|
296
|
-
|
|
249
|
+
filePath: string;
|
|
250
|
+
matchedSpan: string;
|
|
251
|
+
nearMissSource: {
|
|
297
252
|
kind: "lesson";
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
goodExample: string;
|
|
253
|
+
example: string;
|
|
254
|
+
lessonRef?: string | undefined;
|
|
301
255
|
} | {
|
|
302
256
|
kind: "commit";
|
|
303
|
-
|
|
304
|
-
mergeCommitSha: string;
|
|
257
|
+
commitSha: string;
|
|
305
258
|
};
|
|
306
|
-
filePath: string;
|
|
307
|
-
matchedSpan: string;
|
|
308
|
-
contentHash: string;
|
|
309
259
|
}[] | undefined;
|
|
310
260
|
}, {
|
|
311
261
|
kind: "authored";
|
|
@@ -329,20 +279,16 @@ export declare const AuthoredRuleRecordSchema: z.ZodObject<{
|
|
|
329
279
|
contentHash: string;
|
|
330
280
|
}[];
|
|
331
281
|
negativeFixtures?: {
|
|
332
|
-
|
|
333
|
-
|
|
282
|
+
filePath: string;
|
|
283
|
+
matchedSpan: string;
|
|
284
|
+
nearMissSource: {
|
|
334
285
|
kind: "lesson";
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
goodExample: string;
|
|
286
|
+
example: string;
|
|
287
|
+
lessonRef?: string | undefined;
|
|
338
288
|
} | {
|
|
339
289
|
kind: "commit";
|
|
340
|
-
|
|
341
|
-
mergeCommitSha: string;
|
|
290
|
+
commitSha: string;
|
|
342
291
|
};
|
|
343
|
-
filePath: string;
|
|
344
|
-
matchedSpan: string;
|
|
345
|
-
contentHash: string;
|
|
346
292
|
}[] | undefined;
|
|
347
293
|
}>;
|
|
348
294
|
/** INDEPENDENTLY established (§3) — the author never sets this; the check does. */
|
|
@@ -418,20 +364,16 @@ export declare const AuthoredRuleRecordSchema: z.ZodObject<{
|
|
|
418
364
|
contentHash: string;
|
|
419
365
|
}[];
|
|
420
366
|
negativeFixtures?: {
|
|
421
|
-
|
|
422
|
-
|
|
367
|
+
filePath: string;
|
|
368
|
+
matchedSpan: string;
|
|
369
|
+
nearMissSource: {
|
|
423
370
|
kind: "lesson";
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
goodExample: string;
|
|
371
|
+
example: string;
|
|
372
|
+
lessonRef?: string | undefined;
|
|
427
373
|
} | {
|
|
428
374
|
kind: "commit";
|
|
429
|
-
|
|
430
|
-
mergeCommitSha: string;
|
|
375
|
+
commitSha: string;
|
|
431
376
|
};
|
|
432
|
-
filePath: string;
|
|
433
|
-
matchedSpan: string;
|
|
434
|
-
contentHash: string;
|
|
435
377
|
}[] | undefined;
|
|
436
378
|
};
|
|
437
379
|
unverified: true;
|
|
@@ -474,20 +416,16 @@ export declare const AuthoredRuleRecordSchema: z.ZodObject<{
|
|
|
474
416
|
contentHash: string;
|
|
475
417
|
}[];
|
|
476
418
|
negativeFixtures?: {
|
|
477
|
-
|
|
478
|
-
|
|
419
|
+
filePath: string;
|
|
420
|
+
matchedSpan: string;
|
|
421
|
+
nearMissSource: {
|
|
479
422
|
kind: "lesson";
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
goodExample: string;
|
|
423
|
+
example: string;
|
|
424
|
+
lessonRef?: string | undefined;
|
|
483
425
|
} | {
|
|
484
426
|
kind: "commit";
|
|
485
|
-
|
|
486
|
-
mergeCommitSha: string;
|
|
427
|
+
commitSha: string;
|
|
487
428
|
};
|
|
488
|
-
filePath: string;
|
|
489
|
-
matchedSpan: string;
|
|
490
|
-
contentHash: string;
|
|
491
429
|
}[] | undefined;
|
|
492
430
|
};
|
|
493
431
|
unverified: true;
|
|
@@ -629,100 +567,58 @@ export declare const AuthoredRuleInputSchema: z.ZodObject<{
|
|
|
629
567
|
matchedSpan: string;
|
|
630
568
|
contentHash: string;
|
|
631
569
|
}>, "many">;
|
|
632
|
-
/**
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
570
|
+
/**
|
|
571
|
+
* Declared SILENCE-ONLY near-misses the rule must stay silent on (feeds §6
|
|
572
|
+
* `controls.negative[]`). The `nearMissSource` shape (strategy#770) — one side,
|
|
573
|
+
* no bad/good pair, no `pr` — NOT the positiveFixtures fixture shape.
|
|
574
|
+
*/
|
|
575
|
+
negativeFixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
576
|
+
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
577
|
+
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
578
|
+
nearMissSource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
636
579
|
kind: z.ZodLiteral<"lesson">;
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
goodExample: z.ZodEffects<z.ZodString, string, string>;
|
|
580
|
+
example: z.ZodEffects<z.ZodString, string, string>;
|
|
581
|
+
lessonRef: z.ZodOptional<z.ZodString>;
|
|
640
582
|
}, "strict", z.ZodTypeAny, {
|
|
641
583
|
kind: "lesson";
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
goodExample: string;
|
|
584
|
+
example: string;
|
|
585
|
+
lessonRef?: string | undefined;
|
|
645
586
|
}, {
|
|
646
587
|
kind: "lesson";
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
goodExample: string;
|
|
588
|
+
example: string;
|
|
589
|
+
lessonRef?: string | undefined;
|
|
650
590
|
}>, z.ZodObject<{
|
|
651
591
|
kind: z.ZodLiteral<"commit">;
|
|
652
|
-
|
|
653
|
-
mergeCommitSha: z.ZodString;
|
|
592
|
+
commitSha: z.ZodString;
|
|
654
593
|
}, "strict", z.ZodTypeAny, {
|
|
655
594
|
kind: "commit";
|
|
656
|
-
|
|
657
|
-
mergeCommitSha: string;
|
|
595
|
+
commitSha: string;
|
|
658
596
|
}, {
|
|
659
597
|
kind: "commit";
|
|
660
|
-
|
|
661
|
-
mergeCommitSha: string;
|
|
598
|
+
commitSha: string;
|
|
662
599
|
}>]>;
|
|
663
|
-
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
664
|
-
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
665
|
-
contentHash: z.ZodEffects<z.ZodString, string, string>;
|
|
666
600
|
}, "strict", z.ZodTypeAny, {
|
|
667
|
-
pr: number;
|
|
668
|
-
preimageSource: {
|
|
669
|
-
kind: "lesson";
|
|
670
|
-
lessonRef: string;
|
|
671
|
-
badExample: string;
|
|
672
|
-
goodExample: string;
|
|
673
|
-
} | {
|
|
674
|
-
kind: "commit";
|
|
675
|
-
preimageCommitSha: string;
|
|
676
|
-
mergeCommitSha: string;
|
|
677
|
-
};
|
|
678
|
-
filePath: string;
|
|
679
|
-
matchedSpan: string;
|
|
680
|
-
contentHash: string;
|
|
681
|
-
}, {
|
|
682
|
-
pr: number;
|
|
683
|
-
preimageSource: {
|
|
684
|
-
kind: "lesson";
|
|
685
|
-
lessonRef: string;
|
|
686
|
-
badExample: string;
|
|
687
|
-
goodExample: string;
|
|
688
|
-
} | {
|
|
689
|
-
kind: "commit";
|
|
690
|
-
preimageCommitSha: string;
|
|
691
|
-
mergeCommitSha: string;
|
|
692
|
-
};
|
|
693
601
|
filePath: string;
|
|
694
602
|
matchedSpan: string;
|
|
695
|
-
|
|
696
|
-
}>, {
|
|
697
|
-
pr: number;
|
|
698
|
-
preimageSource: {
|
|
603
|
+
nearMissSource: {
|
|
699
604
|
kind: "lesson";
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
goodExample: string;
|
|
605
|
+
example: string;
|
|
606
|
+
lessonRef?: string | undefined;
|
|
703
607
|
} | {
|
|
704
608
|
kind: "commit";
|
|
705
|
-
|
|
706
|
-
mergeCommitSha: string;
|
|
609
|
+
commitSha: string;
|
|
707
610
|
};
|
|
611
|
+
}, {
|
|
708
612
|
filePath: string;
|
|
709
613
|
matchedSpan: string;
|
|
710
|
-
|
|
711
|
-
}, {
|
|
712
|
-
pr: number;
|
|
713
|
-
preimageSource: {
|
|
614
|
+
nearMissSource: {
|
|
714
615
|
kind: "lesson";
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
goodExample: string;
|
|
616
|
+
example: string;
|
|
617
|
+
lessonRef?: string | undefined;
|
|
718
618
|
} | {
|
|
719
619
|
kind: "commit";
|
|
720
|
-
|
|
721
|
-
mergeCommitSha: string;
|
|
620
|
+
commitSha: string;
|
|
722
621
|
};
|
|
723
|
-
filePath: string;
|
|
724
|
-
matchedSpan: string;
|
|
725
|
-
contentHash: string;
|
|
726
622
|
}>, "many">>;
|
|
727
623
|
/**
|
|
728
624
|
* Accelerant lineage (§7). Optional in the YAML; the reader defaults an
|
|
@@ -772,20 +668,16 @@ export declare const AuthoredRuleInputSchema: z.ZodObject<{
|
|
|
772
668
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
773
669
|
structuralClass: string;
|
|
774
670
|
negativeFixtures?: {
|
|
775
|
-
|
|
776
|
-
|
|
671
|
+
filePath: string;
|
|
672
|
+
matchedSpan: string;
|
|
673
|
+
nearMissSource: {
|
|
777
674
|
kind: "lesson";
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
goodExample: string;
|
|
675
|
+
example: string;
|
|
676
|
+
lessonRef?: string | undefined;
|
|
781
677
|
} | {
|
|
782
678
|
kind: "commit";
|
|
783
|
-
|
|
784
|
-
mergeCommitSha: string;
|
|
679
|
+
commitSha: string;
|
|
785
680
|
};
|
|
786
|
-
filePath: string;
|
|
787
|
-
matchedSpan: string;
|
|
788
|
-
contentHash: string;
|
|
789
681
|
}[] | undefined;
|
|
790
682
|
origin?: {
|
|
791
683
|
kind: "from-scratch";
|
|
@@ -818,20 +710,16 @@ export declare const AuthoredRuleInputSchema: z.ZodObject<{
|
|
|
818
710
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
819
711
|
structuralClass: string;
|
|
820
712
|
negativeFixtures?: {
|
|
821
|
-
|
|
822
|
-
|
|
713
|
+
filePath: string;
|
|
714
|
+
matchedSpan: string;
|
|
715
|
+
nearMissSource: {
|
|
823
716
|
kind: "lesson";
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
goodExample: string;
|
|
717
|
+
example: string;
|
|
718
|
+
lessonRef?: string | undefined;
|
|
827
719
|
} | {
|
|
828
720
|
kind: "commit";
|
|
829
|
-
|
|
830
|
-
mergeCommitSha: string;
|
|
721
|
+
commitSha: string;
|
|
831
722
|
};
|
|
832
|
-
filePath: string;
|
|
833
|
-
matchedSpan: string;
|
|
834
|
-
contentHash: string;
|
|
835
723
|
}[] | undefined;
|
|
836
724
|
origin?: {
|
|
837
725
|
kind: "from-scratch";
|
|
@@ -983,100 +871,58 @@ export declare const AuthoredRulesFileSchema: z.ZodObject<{
|
|
|
983
871
|
matchedSpan: string;
|
|
984
872
|
contentHash: string;
|
|
985
873
|
}>, "many">;
|
|
986
|
-
/**
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
874
|
+
/**
|
|
875
|
+
* Declared SILENCE-ONLY near-misses the rule must stay silent on (feeds §6
|
|
876
|
+
* `controls.negative[]`). The `nearMissSource` shape (strategy#770) — one side,
|
|
877
|
+
* no bad/good pair, no `pr` — NOT the positiveFixtures fixture shape.
|
|
878
|
+
*/
|
|
879
|
+
negativeFixtures: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
880
|
+
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
881
|
+
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
882
|
+
nearMissSource: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
990
883
|
kind: z.ZodLiteral<"lesson">;
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
goodExample: z.ZodEffects<z.ZodString, string, string>;
|
|
884
|
+
example: z.ZodEffects<z.ZodString, string, string>;
|
|
885
|
+
lessonRef: z.ZodOptional<z.ZodString>;
|
|
994
886
|
}, "strict", z.ZodTypeAny, {
|
|
995
887
|
kind: "lesson";
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
goodExample: string;
|
|
888
|
+
example: string;
|
|
889
|
+
lessonRef?: string | undefined;
|
|
999
890
|
}, {
|
|
1000
891
|
kind: "lesson";
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
goodExample: string;
|
|
892
|
+
example: string;
|
|
893
|
+
lessonRef?: string | undefined;
|
|
1004
894
|
}>, z.ZodObject<{
|
|
1005
895
|
kind: z.ZodLiteral<"commit">;
|
|
1006
|
-
|
|
1007
|
-
mergeCommitSha: z.ZodString;
|
|
896
|
+
commitSha: z.ZodString;
|
|
1008
897
|
}, "strict", z.ZodTypeAny, {
|
|
1009
898
|
kind: "commit";
|
|
1010
|
-
|
|
1011
|
-
mergeCommitSha: string;
|
|
899
|
+
commitSha: string;
|
|
1012
900
|
}, {
|
|
1013
901
|
kind: "commit";
|
|
1014
|
-
|
|
1015
|
-
mergeCommitSha: string;
|
|
902
|
+
commitSha: string;
|
|
1016
903
|
}>]>;
|
|
1017
|
-
filePath: z.ZodEffects<z.ZodString, string, string>;
|
|
1018
|
-
matchedSpan: z.ZodEffects<z.ZodString, string, string>;
|
|
1019
|
-
contentHash: z.ZodEffects<z.ZodString, string, string>;
|
|
1020
904
|
}, "strict", z.ZodTypeAny, {
|
|
1021
|
-
pr: number;
|
|
1022
|
-
preimageSource: {
|
|
1023
|
-
kind: "lesson";
|
|
1024
|
-
lessonRef: string;
|
|
1025
|
-
badExample: string;
|
|
1026
|
-
goodExample: string;
|
|
1027
|
-
} | {
|
|
1028
|
-
kind: "commit";
|
|
1029
|
-
preimageCommitSha: string;
|
|
1030
|
-
mergeCommitSha: string;
|
|
1031
|
-
};
|
|
1032
905
|
filePath: string;
|
|
1033
906
|
matchedSpan: string;
|
|
1034
|
-
|
|
1035
|
-
}, {
|
|
1036
|
-
pr: number;
|
|
1037
|
-
preimageSource: {
|
|
907
|
+
nearMissSource: {
|
|
1038
908
|
kind: "lesson";
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
goodExample: string;
|
|
909
|
+
example: string;
|
|
910
|
+
lessonRef?: string | undefined;
|
|
1042
911
|
} | {
|
|
1043
912
|
kind: "commit";
|
|
1044
|
-
|
|
1045
|
-
mergeCommitSha: string;
|
|
1046
|
-
};
|
|
1047
|
-
filePath: string;
|
|
1048
|
-
matchedSpan: string;
|
|
1049
|
-
contentHash: string;
|
|
1050
|
-
}>, {
|
|
1051
|
-
pr: number;
|
|
1052
|
-
preimageSource: {
|
|
1053
|
-
kind: "lesson";
|
|
1054
|
-
lessonRef: string;
|
|
1055
|
-
badExample: string;
|
|
1056
|
-
goodExample: string;
|
|
1057
|
-
} | {
|
|
1058
|
-
kind: "commit";
|
|
1059
|
-
preimageCommitSha: string;
|
|
1060
|
-
mergeCommitSha: string;
|
|
913
|
+
commitSha: string;
|
|
1061
914
|
};
|
|
915
|
+
}, {
|
|
1062
916
|
filePath: string;
|
|
1063
917
|
matchedSpan: string;
|
|
1064
|
-
|
|
1065
|
-
}, {
|
|
1066
|
-
pr: number;
|
|
1067
|
-
preimageSource: {
|
|
918
|
+
nearMissSource: {
|
|
1068
919
|
kind: "lesson";
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
goodExample: string;
|
|
920
|
+
example: string;
|
|
921
|
+
lessonRef?: string | undefined;
|
|
1072
922
|
} | {
|
|
1073
923
|
kind: "commit";
|
|
1074
|
-
|
|
1075
|
-
mergeCommitSha: string;
|
|
924
|
+
commitSha: string;
|
|
1076
925
|
};
|
|
1077
|
-
filePath: string;
|
|
1078
|
-
matchedSpan: string;
|
|
1079
|
-
contentHash: string;
|
|
1080
926
|
}>, "many">>;
|
|
1081
927
|
/**
|
|
1082
928
|
* Accelerant lineage (§7). Optional in the YAML; the reader defaults an
|
|
@@ -1126,20 +972,16 @@ export declare const AuthoredRulesFileSchema: z.ZodObject<{
|
|
|
1126
972
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
1127
973
|
structuralClass: string;
|
|
1128
974
|
negativeFixtures?: {
|
|
1129
|
-
|
|
1130
|
-
|
|
975
|
+
filePath: string;
|
|
976
|
+
matchedSpan: string;
|
|
977
|
+
nearMissSource: {
|
|
1131
978
|
kind: "lesson";
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
goodExample: string;
|
|
979
|
+
example: string;
|
|
980
|
+
lessonRef?: string | undefined;
|
|
1135
981
|
} | {
|
|
1136
982
|
kind: "commit";
|
|
1137
|
-
|
|
1138
|
-
mergeCommitSha: string;
|
|
983
|
+
commitSha: string;
|
|
1139
984
|
};
|
|
1140
|
-
filePath: string;
|
|
1141
|
-
matchedSpan: string;
|
|
1142
|
-
contentHash: string;
|
|
1143
985
|
}[] | undefined;
|
|
1144
986
|
origin?: {
|
|
1145
987
|
kind: "from-scratch";
|
|
@@ -1172,20 +1014,16 @@ export declare const AuthoredRulesFileSchema: z.ZodObject<{
|
|
|
1172
1014
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
1173
1015
|
structuralClass: string;
|
|
1174
1016
|
negativeFixtures?: {
|
|
1175
|
-
|
|
1176
|
-
|
|
1017
|
+
filePath: string;
|
|
1018
|
+
matchedSpan: string;
|
|
1019
|
+
nearMissSource: {
|
|
1177
1020
|
kind: "lesson";
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
goodExample: string;
|
|
1021
|
+
example: string;
|
|
1022
|
+
lessonRef?: string | undefined;
|
|
1181
1023
|
} | {
|
|
1182
1024
|
kind: "commit";
|
|
1183
|
-
|
|
1184
|
-
mergeCommitSha: string;
|
|
1025
|
+
commitSha: string;
|
|
1185
1026
|
};
|
|
1186
|
-
filePath: string;
|
|
1187
|
-
matchedSpan: string;
|
|
1188
|
-
contentHash: string;
|
|
1189
1027
|
}[] | undefined;
|
|
1190
1028
|
origin?: {
|
|
1191
1029
|
kind: "from-scratch";
|
|
@@ -1220,20 +1058,16 @@ export declare const AuthoredRulesFileSchema: z.ZodObject<{
|
|
|
1220
1058
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
1221
1059
|
structuralClass: string;
|
|
1222
1060
|
negativeFixtures?: {
|
|
1223
|
-
|
|
1224
|
-
|
|
1061
|
+
filePath: string;
|
|
1062
|
+
matchedSpan: string;
|
|
1063
|
+
nearMissSource: {
|
|
1225
1064
|
kind: "lesson";
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
goodExample: string;
|
|
1065
|
+
example: string;
|
|
1066
|
+
lessonRef?: string | undefined;
|
|
1229
1067
|
} | {
|
|
1230
1068
|
kind: "commit";
|
|
1231
|
-
|
|
1232
|
-
mergeCommitSha: string;
|
|
1069
|
+
commitSha: string;
|
|
1233
1070
|
};
|
|
1234
|
-
filePath: string;
|
|
1235
|
-
matchedSpan: string;
|
|
1236
|
-
contentHash: string;
|
|
1237
1071
|
}[] | undefined;
|
|
1238
1072
|
origin?: {
|
|
1239
1073
|
kind: "from-scratch";
|
|
@@ -1271,20 +1105,16 @@ export declare const AuthoredRulesFileSchema: z.ZodObject<{
|
|
|
1271
1105
|
declaredEngine: "regex" | "ast" | "ast-grep";
|
|
1272
1106
|
structuralClass: string;
|
|
1273
1107
|
negativeFixtures?: {
|
|
1274
|
-
|
|
1275
|
-
|
|
1108
|
+
filePath: string;
|
|
1109
|
+
matchedSpan: string;
|
|
1110
|
+
nearMissSource: {
|
|
1276
1111
|
kind: "lesson";
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
goodExample: string;
|
|
1112
|
+
example: string;
|
|
1113
|
+
lessonRef?: string | undefined;
|
|
1280
1114
|
} | {
|
|
1281
1115
|
kind: "commit";
|
|
1282
|
-
|
|
1283
|
-
mergeCommitSha: string;
|
|
1116
|
+
commitSha: string;
|
|
1284
1117
|
};
|
|
1285
|
-
filePath: string;
|
|
1286
|
-
matchedSpan: string;
|
|
1287
|
-
contentHash: string;
|
|
1288
1118
|
}[] | undefined;
|
|
1289
1119
|
origin?: {
|
|
1290
1120
|
kind: "from-scratch";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authored-rule.d.ts","sourceRoot":"","sources":["../../src/spine/authored-rule.ts"],"names":[],"mappings":"AAmBA,OAAO,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