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