@fenglimg/fabric-shared 1.0.0 → 1.1.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/index.d.ts CHANGED
@@ -1,67 +1,99 @@
1
- import { HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
2
- export { AgentsMetaNode, AiLedgerEntry, ClientPaths, FabricConfig, HumanLedgerEntry } from './types/index.js';
1
+ import { AgentsLayer, AgentsTopologyType, AgentsMetaNode, HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
2
+ export { AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry } from './types/index.js';
3
3
  export { Locale, Messages, PROTECTED_TOKENS, ProtectedToken, TranslationKey, Translator, createTranslator, defaultMessages, detectNodeLocale, enMessages, normalizeLocale, zhCNMessages } from './i18n/index.js';
4
4
  import { z } from 'zod';
5
5
 
6
- declare const agentsMetaNodeSchema: z.ZodObject<{
6
+ declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
7
+ declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting"];
8
+ declare const agentsLayerSchema: z.ZodEnum<["L0", "L1", "L2"]>;
9
+ declare const agentsTopologyTypeSchema: z.ZodEnum<["mirror", "cross-cutting"]>;
10
+ type AgentsMetaNodeInput = Omit<AgentsMetaNode, "layer" | "topology_type"> & Partial<Pick<AgentsMetaNode, "layer" | "topology_type">>;
11
+ declare const agentsMetaNodeSchema: z.ZodEffects<z.ZodObject<{
7
12
  file: z.ZodString;
8
13
  scope_glob: z.ZodString;
9
14
  deps: z.ZodArray<z.ZodString, "many">;
10
15
  priority: z.ZodEnum<["high", "medium", "low"]>;
16
+ layer: z.ZodEnum<["L0", "L1", "L2"]>;
17
+ topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
11
18
  hash: z.ZodString;
12
19
  }, "strip", z.ZodTypeAny, {
13
20
  file: string;
14
21
  priority: "high" | "medium" | "low";
15
22
  hash: string;
23
+ layer: "L0" | "L1" | "L2";
24
+ topology_type: "mirror" | "cross-cutting";
16
25
  scope_glob: string;
17
26
  deps: string[];
18
27
  }, {
19
28
  file: string;
20
29
  priority: "high" | "medium" | "low";
21
30
  hash: string;
31
+ layer: "L0" | "L1" | "L2";
32
+ topology_type: "mirror" | "cross-cutting";
22
33
  scope_glob: string;
23
34
  deps: string[];
24
- }>;
35
+ }>, {
36
+ file: string;
37
+ priority: "high" | "medium" | "low";
38
+ hash: string;
39
+ layer: "L0" | "L1" | "L2";
40
+ topology_type: "mirror" | "cross-cutting";
41
+ scope_glob: string;
42
+ deps: string[];
43
+ }, unknown>;
25
44
  declare const agentsMetaSchema: z.ZodObject<{
26
45
  revision: z.ZodString;
27
- nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
46
+ nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
28
47
  file: z.ZodString;
29
48
  scope_glob: z.ZodString;
30
49
  deps: z.ZodArray<z.ZodString, "many">;
31
50
  priority: z.ZodEnum<["high", "medium", "low"]>;
51
+ layer: z.ZodEnum<["L0", "L1", "L2"]>;
52
+ topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
32
53
  hash: z.ZodString;
33
54
  }, "strip", z.ZodTypeAny, {
34
55
  file: string;
35
56
  priority: "high" | "medium" | "low";
36
57
  hash: string;
58
+ layer: "L0" | "L1" | "L2";
59
+ topology_type: "mirror" | "cross-cutting";
37
60
  scope_glob: string;
38
61
  deps: string[];
39
62
  }, {
40
63
  file: string;
41
64
  priority: "high" | "medium" | "low";
42
65
  hash: string;
66
+ layer: "L0" | "L1" | "L2";
67
+ topology_type: "mirror" | "cross-cutting";
43
68
  scope_glob: string;
44
69
  deps: string[];
45
- }>>;
46
- }, "strip", z.ZodTypeAny, {
47
- revision: string;
48
- nodes: Record<string, {
70
+ }>, {
49
71
  file: string;
50
72
  priority: "high" | "medium" | "low";
51
73
  hash: string;
74
+ layer: "L0" | "L1" | "L2";
75
+ topology_type: "mirror" | "cross-cutting";
52
76
  scope_glob: string;
53
77
  deps: string[];
54
- }>;
55
- }, {
78
+ }, unknown>>;
79
+ }, "strip", z.ZodTypeAny, {
56
80
  revision: string;
57
81
  nodes: Record<string, {
58
82
  file: string;
59
83
  priority: "high" | "medium" | "low";
60
84
  hash: string;
85
+ layer: "L0" | "L1" | "L2";
86
+ topology_type: "mirror" | "cross-cutting";
61
87
  scope_glob: string;
62
88
  deps: string[];
63
89
  }>;
90
+ }, {
91
+ revision: string;
92
+ nodes: Record<string, unknown>;
64
93
  }>;
94
+ declare function withDerivedAgentsMetaNodeDefaults(node: AgentsMetaNodeInput): AgentsMetaNode;
95
+ declare function deriveAgentsMetaLayer(file: string): AgentsLayer;
96
+ declare function deriveAgentsMetaTopologyType(file: string): AgentsTopologyType;
65
97
 
66
98
  declare const ledgerSourceSchema: z.ZodEnum<["ai", "human"]>;
67
99
  declare const ledgerQuerySchema: z.ZodObject<{
@@ -299,6 +331,7 @@ declare const humanLockFileSchema: z.ZodObject<{
299
331
  }[] | undefined;
300
332
  }>;
301
333
 
334
+ declare const auditModeSchema: z.ZodEnum<["strict", "warn", "off"]>;
302
335
  declare const clientPathsSchema: z.ZodObject<{
303
336
  claudeCodeCLI: z.ZodOptional<z.ZodString>;
304
337
  claudeCodeDesktop: z.ZodOptional<z.ZodString>;
@@ -352,6 +385,8 @@ declare const fabricConfigSchema: z.ZodObject<{
352
385
  }>>;
353
386
  externalFixturePath: z.ZodOptional<z.ZodString>;
354
387
  scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
388
+ auditMode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
389
+ audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
355
390
  }, "strip", z.ZodTypeAny, {
356
391
  clientPaths?: {
357
392
  claudeCodeCLI?: string | undefined;
@@ -364,6 +399,8 @@ declare const fabricConfigSchema: z.ZodObject<{
364
399
  } | undefined;
365
400
  externalFixturePath?: string | undefined;
366
401
  scanIgnores?: string[] | undefined;
402
+ auditMode?: "strict" | "warn" | "off" | undefined;
403
+ audit_mode?: "strict" | "warn" | "off" | undefined;
367
404
  }, {
368
405
  clientPaths?: {
369
406
  claudeCodeCLI?: string | undefined;
@@ -376,6 +413,8 @@ declare const fabricConfigSchema: z.ZodObject<{
376
413
  } | undefined;
377
414
  externalFixturePath?: string | undefined;
378
415
  scanIgnores?: string[] | undefined;
416
+ auditMode?: "strict" | "warn" | "off" | undefined;
417
+ audit_mode?: "strict" | "warn" | "off" | undefined;
379
418
  }>;
380
419
 
381
420
  interface ForensicCodeSample {
@@ -384,6 +423,28 @@ interface ForensicCodeSample {
384
423
  snippet: string;
385
424
  pattern_hint: string;
386
425
  }
426
+ interface ForensicEvidenceAnchor {
427
+ file: string;
428
+ line: string;
429
+ snippet: string;
430
+ }
431
+ interface ForensicAssertionCoverage {
432
+ ratio: number;
433
+ total: number;
434
+ matched: number;
435
+ co_occurring_patterns: string[];
436
+ }
437
+ type ForensicAssertionType = "framework" | "pattern" | "invariant" | "domain";
438
+ type ForensicAssertionConfidence = "HIGH" | "MEDIUM" | "LOW";
439
+ interface ForensicAssertion {
440
+ type: ForensicAssertionType;
441
+ statement: string;
442
+ confidence: ForensicAssertionConfidence;
443
+ evidence: ForensicEvidenceAnchor[];
444
+ coverage: ForensicAssertionCoverage;
445
+ proposed_rule?: string;
446
+ alternatives?: string[];
447
+ }
387
448
  interface ForensicTopology {
388
449
  total_files: number;
389
450
  by_ext: Record<string, number>;
@@ -406,6 +467,16 @@ interface ForensicReadme {
406
467
  line_count: number;
407
468
  has_contributing: boolean;
408
469
  }
470
+ type CandidateFileFamily = "entry" | "component" | "config" | "test" | "domain";
471
+ interface CandidateFileEntry {
472
+ path: string;
473
+ family: CandidateFileFamily;
474
+ rationale: string;
475
+ }
476
+ interface ForensicSamplingBudget {
477
+ max_files: 15;
478
+ max_lines_per_file: 100;
479
+ }
409
480
  interface ForensicReport {
410
481
  version: string;
411
482
  generated_at: string;
@@ -416,8 +487,12 @@ interface ForensicReport {
416
487
  topology: ForensicTopology;
417
488
  entry_points: ForensicEntryPoint[];
418
489
  code_samples: ForensicCodeSample[];
490
+ assertions: ForensicAssertion[];
491
+ candidate_files: CandidateFileEntry[];
492
+ sampling_budget: ForensicSamplingBudget;
419
493
  readme: ForensicReadme;
420
- recommendations_for_skill: string[];
494
+ /** @deprecated Transitional migration field. Prefer assertions[]. */
495
+ recommendations_for_skill?: string[];
421
496
  }
422
497
  declare const forensicCodeSampleSchema: z.ZodObject<{
423
498
  path: z.ZodString;
@@ -435,6 +510,105 @@ declare const forensicCodeSampleSchema: z.ZodObject<{
435
510
  snippet: string;
436
511
  pattern_hint: string;
437
512
  }>;
513
+ declare const forensicEvidenceAnchorSchema: z.ZodObject<{
514
+ file: z.ZodString;
515
+ line: z.ZodString;
516
+ snippet: z.ZodString;
517
+ }, "strip", z.ZodTypeAny, {
518
+ file: string;
519
+ snippet: string;
520
+ line: string;
521
+ }, {
522
+ file: string;
523
+ snippet: string;
524
+ line: string;
525
+ }>;
526
+ declare const forensicAssertionCoverageSchema: z.ZodObject<{
527
+ ratio: z.ZodNumber;
528
+ total: z.ZodNumber;
529
+ matched: z.ZodNumber;
530
+ co_occurring_patterns: z.ZodArray<z.ZodString, "many">;
531
+ }, "strip", z.ZodTypeAny, {
532
+ ratio: number;
533
+ total: number;
534
+ matched: number;
535
+ co_occurring_patterns: string[];
536
+ }, {
537
+ ratio: number;
538
+ total: number;
539
+ matched: number;
540
+ co_occurring_patterns: string[];
541
+ }>;
542
+ declare const forensicAssertionSchema: z.ZodObject<{
543
+ type: z.ZodEnum<["framework", "pattern", "invariant", "domain"]>;
544
+ statement: z.ZodString;
545
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
546
+ evidence: z.ZodArray<z.ZodObject<{
547
+ file: z.ZodString;
548
+ line: z.ZodString;
549
+ snippet: z.ZodString;
550
+ }, "strip", z.ZodTypeAny, {
551
+ file: string;
552
+ snippet: string;
553
+ line: string;
554
+ }, {
555
+ file: string;
556
+ snippet: string;
557
+ line: string;
558
+ }>, "many">;
559
+ coverage: z.ZodObject<{
560
+ ratio: z.ZodNumber;
561
+ total: z.ZodNumber;
562
+ matched: z.ZodNumber;
563
+ co_occurring_patterns: z.ZodArray<z.ZodString, "many">;
564
+ }, "strip", z.ZodTypeAny, {
565
+ ratio: number;
566
+ total: number;
567
+ matched: number;
568
+ co_occurring_patterns: string[];
569
+ }, {
570
+ ratio: number;
571
+ total: number;
572
+ matched: number;
573
+ co_occurring_patterns: string[];
574
+ }>;
575
+ proposed_rule: z.ZodOptional<z.ZodString>;
576
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
577
+ }, "strip", z.ZodTypeAny, {
578
+ type: "framework" | "pattern" | "invariant" | "domain";
579
+ statement: string;
580
+ confidence: "HIGH" | "MEDIUM" | "LOW";
581
+ evidence: {
582
+ file: string;
583
+ snippet: string;
584
+ line: string;
585
+ }[];
586
+ coverage: {
587
+ ratio: number;
588
+ total: number;
589
+ matched: number;
590
+ co_occurring_patterns: string[];
591
+ };
592
+ proposed_rule?: string | undefined;
593
+ alternatives?: string[] | undefined;
594
+ }, {
595
+ type: "framework" | "pattern" | "invariant" | "domain";
596
+ statement: string;
597
+ confidence: "HIGH" | "MEDIUM" | "LOW";
598
+ evidence: {
599
+ file: string;
600
+ snippet: string;
601
+ line: string;
602
+ }[];
603
+ coverage: {
604
+ ratio: number;
605
+ total: number;
606
+ matched: number;
607
+ co_occurring_patterns: string[];
608
+ };
609
+ proposed_rule?: string | undefined;
610
+ alternatives?: string[] | undefined;
611
+ }>;
438
612
  declare const forensicTopologySchema: z.ZodObject<{
439
613
  total_files: z.ZodNumber;
440
614
  by_ext: z.ZodRecord<z.ZodString, z.ZodNumber>;
@@ -470,15 +644,15 @@ declare const forensicFrameworkSchema: z.ZodObject<{
470
644
  subkind: z.ZodString;
471
645
  evidence: z.ZodArray<z.ZodString, "many">;
472
646
  }, "strip", z.ZodTypeAny, {
647
+ evidence: string[];
473
648
  kind: string;
474
649
  version: string;
475
650
  subkind: string;
476
- evidence: string[];
477
651
  }, {
652
+ evidence: string[];
478
653
  kind: string;
479
654
  version: string;
480
655
  subkind: string;
481
- evidence: string[];
482
656
  }>;
483
657
  declare const forensicReadmeSchema: z.ZodObject<{
484
658
  quality: z.ZodEnum<["missing", "stub", "ok"]>;
@@ -493,6 +667,29 @@ declare const forensicReadmeSchema: z.ZodObject<{
493
667
  line_count: number;
494
668
  has_contributing: boolean;
495
669
  }>;
670
+ declare const candidateFileEntrySchema: z.ZodObject<{
671
+ path: z.ZodString;
672
+ family: z.ZodEnum<["entry", "component", "config", "test", "domain"]>;
673
+ rationale: z.ZodString;
674
+ }, "strip", z.ZodTypeAny, {
675
+ path: string;
676
+ family: "domain" | "entry" | "component" | "config" | "test";
677
+ rationale: string;
678
+ }, {
679
+ path: string;
680
+ family: "domain" | "entry" | "component" | "config" | "test";
681
+ rationale: string;
682
+ }>;
683
+ declare const forensicSamplingBudgetSchema: z.ZodObject<{
684
+ max_files: z.ZodLiteral<15>;
685
+ max_lines_per_file: z.ZodLiteral<100>;
686
+ }, "strip", z.ZodTypeAny, {
687
+ max_files: 15;
688
+ max_lines_per_file: 100;
689
+ }, {
690
+ max_files: 15;
691
+ max_lines_per_file: 100;
692
+ }>;
496
693
  declare const forensicReportSchema: z.ZodObject<{
497
694
  version: z.ZodString;
498
695
  generated_at: z.ZodString;
@@ -505,15 +702,15 @@ declare const forensicReportSchema: z.ZodObject<{
505
702
  subkind: z.ZodString;
506
703
  evidence: z.ZodArray<z.ZodString, "many">;
507
704
  }, "strip", z.ZodTypeAny, {
705
+ evidence: string[];
508
706
  kind: string;
509
707
  version: string;
510
708
  subkind: string;
511
- evidence: string[];
512
709
  }, {
710
+ evidence: string[];
513
711
  kind: string;
514
712
  version: string;
515
713
  subkind: string;
516
- evidence: string[];
517
714
  }>;
518
715
  topology: z.ZodObject<{
519
716
  total_files: z.ZodNumber;
@@ -560,6 +757,99 @@ declare const forensicReportSchema: z.ZodObject<{
560
757
  snippet: string;
561
758
  pattern_hint: string;
562
759
  }>, "many">;
760
+ assertions: z.ZodArray<z.ZodObject<{
761
+ type: z.ZodEnum<["framework", "pattern", "invariant", "domain"]>;
762
+ statement: z.ZodString;
763
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
764
+ evidence: z.ZodArray<z.ZodObject<{
765
+ file: z.ZodString;
766
+ line: z.ZodString;
767
+ snippet: z.ZodString;
768
+ }, "strip", z.ZodTypeAny, {
769
+ file: string;
770
+ snippet: string;
771
+ line: string;
772
+ }, {
773
+ file: string;
774
+ snippet: string;
775
+ line: string;
776
+ }>, "many">;
777
+ coverage: z.ZodObject<{
778
+ ratio: z.ZodNumber;
779
+ total: z.ZodNumber;
780
+ matched: z.ZodNumber;
781
+ co_occurring_patterns: z.ZodArray<z.ZodString, "many">;
782
+ }, "strip", z.ZodTypeAny, {
783
+ ratio: number;
784
+ total: number;
785
+ matched: number;
786
+ co_occurring_patterns: string[];
787
+ }, {
788
+ ratio: number;
789
+ total: number;
790
+ matched: number;
791
+ co_occurring_patterns: string[];
792
+ }>;
793
+ proposed_rule: z.ZodOptional<z.ZodString>;
794
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
795
+ }, "strip", z.ZodTypeAny, {
796
+ type: "framework" | "pattern" | "invariant" | "domain";
797
+ statement: string;
798
+ confidence: "HIGH" | "MEDIUM" | "LOW";
799
+ evidence: {
800
+ file: string;
801
+ snippet: string;
802
+ line: string;
803
+ }[];
804
+ coverage: {
805
+ ratio: number;
806
+ total: number;
807
+ matched: number;
808
+ co_occurring_patterns: string[];
809
+ };
810
+ proposed_rule?: string | undefined;
811
+ alternatives?: string[] | undefined;
812
+ }, {
813
+ type: "framework" | "pattern" | "invariant" | "domain";
814
+ statement: string;
815
+ confidence: "HIGH" | "MEDIUM" | "LOW";
816
+ evidence: {
817
+ file: string;
818
+ snippet: string;
819
+ line: string;
820
+ }[];
821
+ coverage: {
822
+ ratio: number;
823
+ total: number;
824
+ matched: number;
825
+ co_occurring_patterns: string[];
826
+ };
827
+ proposed_rule?: string | undefined;
828
+ alternatives?: string[] | undefined;
829
+ }>, "many">;
830
+ candidate_files: z.ZodArray<z.ZodObject<{
831
+ path: z.ZodString;
832
+ family: z.ZodEnum<["entry", "component", "config", "test", "domain"]>;
833
+ rationale: z.ZodString;
834
+ }, "strip", z.ZodTypeAny, {
835
+ path: string;
836
+ family: "domain" | "entry" | "component" | "config" | "test";
837
+ rationale: string;
838
+ }, {
839
+ path: string;
840
+ family: "domain" | "entry" | "component" | "config" | "test";
841
+ rationale: string;
842
+ }>, "many">;
843
+ sampling_budget: z.ZodObject<{
844
+ max_files: z.ZodLiteral<15>;
845
+ max_lines_per_file: z.ZodLiteral<100>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ max_files: 15;
848
+ max_lines_per_file: 100;
849
+ }, {
850
+ max_files: 15;
851
+ max_lines_per_file: 100;
852
+ }>;
563
853
  readme: z.ZodObject<{
564
854
  quality: z.ZodEnum<["missing", "stub", "ok"]>;
565
855
  line_count: z.ZodNumber;
@@ -573,19 +863,19 @@ declare const forensicReportSchema: z.ZodObject<{
573
863
  line_count: number;
574
864
  has_contributing: boolean;
575
865
  }>;
576
- recommendations_for_skill: z.ZodArray<z.ZodString, "many">;
866
+ recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
577
867
  }, "strip", z.ZodTypeAny, {
578
- version: string;
579
- generated_at: string;
580
- generated_by: string;
581
- target: string;
582
- project_name: string;
583
868
  framework: {
869
+ evidence: string[];
584
870
  kind: string;
585
871
  version: string;
586
872
  subkind: string;
587
- evidence: string[];
588
873
  };
874
+ version: string;
875
+ generated_at: string;
876
+ generated_by: string;
877
+ target: string;
878
+ project_name: string;
589
879
  topology: {
590
880
  total_files: number;
591
881
  by_ext: Record<string, number>;
@@ -603,24 +893,51 @@ declare const forensicReportSchema: z.ZodObject<{
603
893
  snippet: string;
604
894
  pattern_hint: string;
605
895
  }[];
896
+ assertions: {
897
+ type: "framework" | "pattern" | "invariant" | "domain";
898
+ statement: string;
899
+ confidence: "HIGH" | "MEDIUM" | "LOW";
900
+ evidence: {
901
+ file: string;
902
+ snippet: string;
903
+ line: string;
904
+ }[];
905
+ coverage: {
906
+ ratio: number;
907
+ total: number;
908
+ matched: number;
909
+ co_occurring_patterns: string[];
910
+ };
911
+ proposed_rule?: string | undefined;
912
+ alternatives?: string[] | undefined;
913
+ }[];
914
+ candidate_files: {
915
+ path: string;
916
+ family: "domain" | "entry" | "component" | "config" | "test";
917
+ rationale: string;
918
+ }[];
919
+ sampling_budget: {
920
+ max_files: 15;
921
+ max_lines_per_file: 100;
922
+ };
606
923
  readme: {
607
924
  quality: "missing" | "ok" | "stub";
608
925
  line_count: number;
609
926
  has_contributing: boolean;
610
927
  };
611
- recommendations_for_skill: string[];
928
+ recommendations_for_skill?: string[] | undefined;
612
929
  }, {
613
- version: string;
614
- generated_at: string;
615
- generated_by: string;
616
- target: string;
617
- project_name: string;
618
930
  framework: {
931
+ evidence: string[];
619
932
  kind: string;
620
933
  version: string;
621
934
  subkind: string;
622
- evidence: string[];
623
935
  };
936
+ version: string;
937
+ generated_at: string;
938
+ generated_by: string;
939
+ target: string;
940
+ project_name: string;
624
941
  topology: {
625
942
  total_files: number;
626
943
  by_ext: Record<string, number>;
@@ -638,12 +955,39 @@ declare const forensicReportSchema: z.ZodObject<{
638
955
  snippet: string;
639
956
  pattern_hint: string;
640
957
  }[];
958
+ assertions: {
959
+ type: "framework" | "pattern" | "invariant" | "domain";
960
+ statement: string;
961
+ confidence: "HIGH" | "MEDIUM" | "LOW";
962
+ evidence: {
963
+ file: string;
964
+ snippet: string;
965
+ line: string;
966
+ }[];
967
+ coverage: {
968
+ ratio: number;
969
+ total: number;
970
+ matched: number;
971
+ co_occurring_patterns: string[];
972
+ };
973
+ proposed_rule?: string | undefined;
974
+ alternatives?: string[] | undefined;
975
+ }[];
976
+ candidate_files: {
977
+ path: string;
978
+ family: "domain" | "entry" | "component" | "config" | "test";
979
+ rationale: string;
980
+ }[];
981
+ sampling_budget: {
982
+ max_files: 15;
983
+ max_lines_per_file: 100;
984
+ };
641
985
  readme: {
642
986
  quality: "missing" | "ok" | "stub";
643
987
  line_count: number;
644
988
  has_contributing: boolean;
645
989
  };
646
- recommendations_for_skill: string[];
990
+ recommendations_for_skill?: string[] | undefined;
647
991
  }>;
648
992
 
649
993
  interface InitContextFramework {
@@ -651,20 +995,34 @@ interface InitContextFramework {
651
995
  version: string;
652
996
  subkind: string;
653
997
  }
998
+ interface InitContextInvariantConfidenceSnapshot {
999
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1000
+ evidence_refs: string[];
1001
+ }
1002
+ interface InitContextSourceEvidence {
1003
+ file: string;
1004
+ lines: string;
1005
+ }
654
1006
  interface InitContextInvariant {
655
1007
  type: "ban" | "require" | "protect";
656
1008
  rule: string;
657
1009
  rationale?: string;
1010
+ confidence_snapshot?: InitContextInvariantConfidenceSnapshot;
1011
+ source_evidence?: InitContextSourceEvidence[];
658
1012
  }
659
1013
  interface InitContextDomainGroup {
660
1014
  name: string;
661
1015
  paths: string[];
662
1016
  summary?: string;
1017
+ topology_type?: "mirror" | "cross-cutting";
1018
+ target_path?: string;
663
1019
  }
664
1020
  interface InitContextInterviewTrailEntry {
665
1021
  phase: string;
666
1022
  question: string;
667
1023
  answer: string;
1024
+ presentation?: string;
1025
+ user_corrections?: string[];
668
1026
  }
669
1027
  interface InitContext {
670
1028
  framework: InitContextFramework;
@@ -687,44 +1045,112 @@ declare const initContextFrameworkSchema: z.ZodObject<{
687
1045
  version: string;
688
1046
  subkind: string;
689
1047
  }>;
1048
+ declare const initContextInvariantConfidenceSnapshotSchema: z.ZodObject<{
1049
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
1050
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1051
+ }, "strip", z.ZodTypeAny, {
1052
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1053
+ evidence_refs: string[];
1054
+ }, {
1055
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1056
+ evidence_refs: string[];
1057
+ }>;
1058
+ declare const initContextSourceEvidenceSchema: z.ZodObject<{
1059
+ file: z.ZodString;
1060
+ lines: z.ZodString;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ file: string;
1063
+ lines: string;
1064
+ }, {
1065
+ file: string;
1066
+ lines: string;
1067
+ }>;
690
1068
  declare const initContextInvariantSchema: z.ZodObject<{
691
1069
  type: z.ZodEnum<["ban", "require", "protect"]>;
692
1070
  rule: z.ZodString;
693
1071
  rationale: z.ZodOptional<z.ZodString>;
1072
+ confidence_snapshot: z.ZodOptional<z.ZodObject<{
1073
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
1074
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1077
+ evidence_refs: string[];
1078
+ }, {
1079
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1080
+ evidence_refs: string[];
1081
+ }>>;
1082
+ source_evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
1083
+ file: z.ZodString;
1084
+ lines: z.ZodString;
1085
+ }, "strip", z.ZodTypeAny, {
1086
+ file: string;
1087
+ lines: string;
1088
+ }, {
1089
+ file: string;
1090
+ lines: string;
1091
+ }>, "many">>;
694
1092
  }, "strip", z.ZodTypeAny, {
695
1093
  type: "ban" | "require" | "protect";
696
1094
  rule: string;
697
1095
  rationale?: string | undefined;
1096
+ confidence_snapshot?: {
1097
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1098
+ evidence_refs: string[];
1099
+ } | undefined;
1100
+ source_evidence?: {
1101
+ file: string;
1102
+ lines: string;
1103
+ }[] | undefined;
698
1104
  }, {
699
1105
  type: "ban" | "require" | "protect";
700
1106
  rule: string;
701
1107
  rationale?: string | undefined;
1108
+ confidence_snapshot?: {
1109
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1110
+ evidence_refs: string[];
1111
+ } | undefined;
1112
+ source_evidence?: {
1113
+ file: string;
1114
+ lines: string;
1115
+ }[] | undefined;
702
1116
  }>;
703
1117
  declare const initContextDomainGroupSchema: z.ZodObject<{
704
1118
  name: z.ZodString;
705
1119
  paths: z.ZodArray<z.ZodString, "many">;
706
1120
  summary: z.ZodOptional<z.ZodString>;
1121
+ topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
1122
+ target_path: z.ZodOptional<z.ZodString>;
707
1123
  }, "strip", z.ZodTypeAny, {
708
1124
  paths: string[];
709
1125
  name: string;
1126
+ topology_type?: "mirror" | "cross-cutting" | undefined;
710
1127
  summary?: string | undefined;
1128
+ target_path?: string | undefined;
711
1129
  }, {
712
1130
  paths: string[];
713
1131
  name: string;
1132
+ topology_type?: "mirror" | "cross-cutting" | undefined;
714
1133
  summary?: string | undefined;
1134
+ target_path?: string | undefined;
715
1135
  }>;
716
1136
  declare const initContextInterviewTrailEntrySchema: z.ZodObject<{
717
1137
  phase: z.ZodString;
718
1138
  question: z.ZodString;
719
1139
  answer: z.ZodString;
1140
+ presentation: z.ZodOptional<z.ZodString>;
1141
+ user_corrections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
720
1142
  }, "strip", z.ZodTypeAny, {
721
1143
  phase: string;
722
1144
  question: string;
723
1145
  answer: string;
1146
+ presentation?: string | undefined;
1147
+ user_corrections?: string[] | undefined;
724
1148
  }, {
725
1149
  phase: string;
726
1150
  question: string;
727
1151
  answer: string;
1152
+ presentation?: string | undefined;
1153
+ user_corrections?: string[] | undefined;
728
1154
  }>;
729
1155
  declare const initContextSchema: z.ZodObject<{
730
1156
  framework: z.ZodObject<{
@@ -745,40 +1171,88 @@ declare const initContextSchema: z.ZodObject<{
745
1171
  type: z.ZodEnum<["ban", "require", "protect"]>;
746
1172
  rule: z.ZodString;
747
1173
  rationale: z.ZodOptional<z.ZodString>;
1174
+ confidence_snapshot: z.ZodOptional<z.ZodObject<{
1175
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
1176
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
1177
+ }, "strip", z.ZodTypeAny, {
1178
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1179
+ evidence_refs: string[];
1180
+ }, {
1181
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1182
+ evidence_refs: string[];
1183
+ }>>;
1184
+ source_evidence: z.ZodOptional<z.ZodArray<z.ZodObject<{
1185
+ file: z.ZodString;
1186
+ lines: z.ZodString;
1187
+ }, "strip", z.ZodTypeAny, {
1188
+ file: string;
1189
+ lines: string;
1190
+ }, {
1191
+ file: string;
1192
+ lines: string;
1193
+ }>, "many">>;
748
1194
  }, "strip", z.ZodTypeAny, {
749
1195
  type: "ban" | "require" | "protect";
750
1196
  rule: string;
751
1197
  rationale?: string | undefined;
1198
+ confidence_snapshot?: {
1199
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1200
+ evidence_refs: string[];
1201
+ } | undefined;
1202
+ source_evidence?: {
1203
+ file: string;
1204
+ lines: string;
1205
+ }[] | undefined;
752
1206
  }, {
753
1207
  type: "ban" | "require" | "protect";
754
1208
  rule: string;
755
1209
  rationale?: string | undefined;
1210
+ confidence_snapshot?: {
1211
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1212
+ evidence_refs: string[];
1213
+ } | undefined;
1214
+ source_evidence?: {
1215
+ file: string;
1216
+ lines: string;
1217
+ }[] | undefined;
756
1218
  }>, "many">;
757
1219
  domain_groups: z.ZodArray<z.ZodObject<{
758
1220
  name: z.ZodString;
759
1221
  paths: z.ZodArray<z.ZodString, "many">;
760
1222
  summary: z.ZodOptional<z.ZodString>;
1223
+ topology_type: z.ZodOptional<z.ZodEnum<["mirror", "cross-cutting"]>>;
1224
+ target_path: z.ZodOptional<z.ZodString>;
761
1225
  }, "strip", z.ZodTypeAny, {
762
1226
  paths: string[];
763
1227
  name: string;
1228
+ topology_type?: "mirror" | "cross-cutting" | undefined;
764
1229
  summary?: string | undefined;
1230
+ target_path?: string | undefined;
765
1231
  }, {
766
1232
  paths: string[];
767
1233
  name: string;
1234
+ topology_type?: "mirror" | "cross-cutting" | undefined;
768
1235
  summary?: string | undefined;
1236
+ target_path?: string | undefined;
769
1237
  }>, "many">;
770
1238
  interview_trail: z.ZodArray<z.ZodObject<{
771
1239
  phase: z.ZodString;
772
1240
  question: z.ZodString;
773
1241
  answer: z.ZodString;
1242
+ presentation: z.ZodOptional<z.ZodString>;
1243
+ user_corrections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
774
1244
  }, "strip", z.ZodTypeAny, {
775
1245
  phase: string;
776
1246
  question: string;
777
1247
  answer: string;
1248
+ presentation?: string | undefined;
1249
+ user_corrections?: string[] | undefined;
778
1250
  }, {
779
1251
  phase: string;
780
1252
  question: string;
781
1253
  answer: string;
1254
+ presentation?: string | undefined;
1255
+ user_corrections?: string[] | undefined;
782
1256
  }>, "many">;
783
1257
  forensic_ref: z.ZodString;
784
1258
  }, "strip", z.ZodTypeAny, {
@@ -792,16 +1266,28 @@ declare const initContextSchema: z.ZodObject<{
792
1266
  type: "ban" | "require" | "protect";
793
1267
  rule: string;
794
1268
  rationale?: string | undefined;
1269
+ confidence_snapshot?: {
1270
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1271
+ evidence_refs: string[];
1272
+ } | undefined;
1273
+ source_evidence?: {
1274
+ file: string;
1275
+ lines: string;
1276
+ }[] | undefined;
795
1277
  }[];
796
1278
  domain_groups: {
797
1279
  paths: string[];
798
1280
  name: string;
1281
+ topology_type?: "mirror" | "cross-cutting" | undefined;
799
1282
  summary?: string | undefined;
1283
+ target_path?: string | undefined;
800
1284
  }[];
801
1285
  interview_trail: {
802
1286
  phase: string;
803
1287
  question: string;
804
1288
  answer: string;
1289
+ presentation?: string | undefined;
1290
+ user_corrections?: string[] | undefined;
805
1291
  }[];
806
1292
  forensic_ref: string;
807
1293
  }, {
@@ -815,16 +1301,28 @@ declare const initContextSchema: z.ZodObject<{
815
1301
  type: "ban" | "require" | "protect";
816
1302
  rule: string;
817
1303
  rationale?: string | undefined;
1304
+ confidence_snapshot?: {
1305
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1306
+ evidence_refs: string[];
1307
+ } | undefined;
1308
+ source_evidence?: {
1309
+ file: string;
1310
+ lines: string;
1311
+ }[] | undefined;
818
1312
  }[];
819
1313
  domain_groups: {
820
1314
  paths: string[];
821
1315
  name: string;
1316
+ topology_type?: "mirror" | "cross-cutting" | undefined;
822
1317
  summary?: string | undefined;
1318
+ target_path?: string | undefined;
823
1319
  }[];
824
1320
  interview_trail: {
825
1321
  phase: string;
826
1322
  question: string;
827
1323
  answer: string;
1324
+ presentation?: string | undefined;
1325
+ user_corrections?: string[] | undefined;
828
1326
  }[];
829
1327
  forensic_ref: string;
830
1328
  }>;
@@ -860,43 +1358,53 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
860
1358
  type: z.ZodLiteral<"meta:updated">;
861
1359
  payload: z.ZodObject<{
862
1360
  revision: z.ZodString;
863
- nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
1361
+ nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
864
1362
  file: z.ZodString;
865
1363
  scope_glob: z.ZodString;
866
1364
  deps: z.ZodArray<z.ZodString, "many">;
867
1365
  priority: z.ZodEnum<["high", "medium", "low"]>;
1366
+ layer: z.ZodEnum<["L0", "L1", "L2"]>;
1367
+ topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
868
1368
  hash: z.ZodString;
869
1369
  }, "strip", z.ZodTypeAny, {
870
1370
  file: string;
871
1371
  priority: "high" | "medium" | "low";
872
1372
  hash: string;
1373
+ layer: "L0" | "L1" | "L2";
1374
+ topology_type: "mirror" | "cross-cutting";
873
1375
  scope_glob: string;
874
1376
  deps: string[];
875
1377
  }, {
876
1378
  file: string;
877
1379
  priority: "high" | "medium" | "low";
878
1380
  hash: string;
1381
+ layer: "L0" | "L1" | "L2";
1382
+ topology_type: "mirror" | "cross-cutting";
879
1383
  scope_glob: string;
880
1384
  deps: string[];
881
- }>>;
882
- }, "strip", z.ZodTypeAny, {
883
- revision: string;
884
- nodes: Record<string, {
1385
+ }>, {
885
1386
  file: string;
886
1387
  priority: "high" | "medium" | "low";
887
1388
  hash: string;
1389
+ layer: "L0" | "L1" | "L2";
1390
+ topology_type: "mirror" | "cross-cutting";
888
1391
  scope_glob: string;
889
1392
  deps: string[];
890
- }>;
891
- }, {
1393
+ }, unknown>>;
1394
+ }, "strip", z.ZodTypeAny, {
892
1395
  revision: string;
893
1396
  nodes: Record<string, {
894
1397
  file: string;
895
1398
  priority: "high" | "medium" | "low";
896
1399
  hash: string;
1400
+ layer: "L0" | "L1" | "L2";
1401
+ topology_type: "mirror" | "cross-cutting";
897
1402
  scope_glob: string;
898
1403
  deps: string[];
899
1404
  }>;
1405
+ }, {
1406
+ revision: string;
1407
+ nodes: Record<string, unknown>;
900
1408
  }>;
901
1409
  }, "strip", z.ZodTypeAny, {
902
1410
  type: "meta:updated";
@@ -906,6 +1414,8 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
906
1414
  file: string;
907
1415
  priority: "high" | "medium" | "low";
908
1416
  hash: string;
1417
+ layer: "L0" | "L1" | "L2";
1418
+ topology_type: "mirror" | "cross-cutting";
909
1419
  scope_glob: string;
910
1420
  deps: string[];
911
1421
  }>;
@@ -914,13 +1424,7 @@ declare const metaUpdatedEventSchema: z.ZodObject<{
914
1424
  type: "meta:updated";
915
1425
  payload: {
916
1426
  revision: string;
917
- nodes: Record<string, {
918
- file: string;
919
- priority: "high" | "medium" | "low";
920
- hash: string;
921
- scope_glob: string;
922
- deps: string[];
923
- }>;
1427
+ nodes: Record<string, unknown>;
924
1428
  };
925
1429
  }>;
926
1430
  declare const lockDriftEventSchema: z.ZodObject<{
@@ -1222,15 +1726,15 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1222
1726
  subkind: z.ZodString;
1223
1727
  evidence: z.ZodArray<z.ZodString, "many">;
1224
1728
  }, "strip", z.ZodTypeAny, {
1729
+ evidence: string[];
1225
1730
  kind: string;
1226
1731
  version: string;
1227
1732
  subkind: string;
1228
- evidence: string[];
1229
1733
  }, {
1734
+ evidence: string[];
1230
1735
  kind: string;
1231
1736
  version: string;
1232
1737
  subkind: string;
1233
- evidence: string[];
1234
1738
  }>;
1235
1739
  topology: z.ZodObject<{
1236
1740
  total_files: z.ZodNumber;
@@ -1277,6 +1781,99 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1277
1781
  snippet: string;
1278
1782
  pattern_hint: string;
1279
1783
  }>, "many">;
1784
+ assertions: z.ZodArray<z.ZodObject<{
1785
+ type: z.ZodEnum<["framework", "pattern", "invariant", "domain"]>;
1786
+ statement: z.ZodString;
1787
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
1788
+ evidence: z.ZodArray<z.ZodObject<{
1789
+ file: z.ZodString;
1790
+ line: z.ZodString;
1791
+ snippet: z.ZodString;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ file: string;
1794
+ snippet: string;
1795
+ line: string;
1796
+ }, {
1797
+ file: string;
1798
+ snippet: string;
1799
+ line: string;
1800
+ }>, "many">;
1801
+ coverage: z.ZodObject<{
1802
+ ratio: z.ZodNumber;
1803
+ total: z.ZodNumber;
1804
+ matched: z.ZodNumber;
1805
+ co_occurring_patterns: z.ZodArray<z.ZodString, "many">;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ ratio: number;
1808
+ total: number;
1809
+ matched: number;
1810
+ co_occurring_patterns: string[];
1811
+ }, {
1812
+ ratio: number;
1813
+ total: number;
1814
+ matched: number;
1815
+ co_occurring_patterns: string[];
1816
+ }>;
1817
+ proposed_rule: z.ZodOptional<z.ZodString>;
1818
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1819
+ }, "strip", z.ZodTypeAny, {
1820
+ type: "framework" | "pattern" | "invariant" | "domain";
1821
+ statement: string;
1822
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1823
+ evidence: {
1824
+ file: string;
1825
+ snippet: string;
1826
+ line: string;
1827
+ }[];
1828
+ coverage: {
1829
+ ratio: number;
1830
+ total: number;
1831
+ matched: number;
1832
+ co_occurring_patterns: string[];
1833
+ };
1834
+ proposed_rule?: string | undefined;
1835
+ alternatives?: string[] | undefined;
1836
+ }, {
1837
+ type: "framework" | "pattern" | "invariant" | "domain";
1838
+ statement: string;
1839
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1840
+ evidence: {
1841
+ file: string;
1842
+ snippet: string;
1843
+ line: string;
1844
+ }[];
1845
+ coverage: {
1846
+ ratio: number;
1847
+ total: number;
1848
+ matched: number;
1849
+ co_occurring_patterns: string[];
1850
+ };
1851
+ proposed_rule?: string | undefined;
1852
+ alternatives?: string[] | undefined;
1853
+ }>, "many">;
1854
+ candidate_files: z.ZodArray<z.ZodObject<{
1855
+ path: z.ZodString;
1856
+ family: z.ZodEnum<["entry", "component", "config", "test", "domain"]>;
1857
+ rationale: z.ZodString;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ path: string;
1860
+ family: "domain" | "entry" | "component" | "config" | "test";
1861
+ rationale: string;
1862
+ }, {
1863
+ path: string;
1864
+ family: "domain" | "entry" | "component" | "config" | "test";
1865
+ rationale: string;
1866
+ }>, "many">;
1867
+ sampling_budget: z.ZodObject<{
1868
+ max_files: z.ZodLiteral<15>;
1869
+ max_lines_per_file: z.ZodLiteral<100>;
1870
+ }, "strip", z.ZodTypeAny, {
1871
+ max_files: 15;
1872
+ max_lines_per_file: 100;
1873
+ }, {
1874
+ max_files: 15;
1875
+ max_lines_per_file: 100;
1876
+ }>;
1280
1877
  readme: z.ZodObject<{
1281
1878
  quality: z.ZodEnum<["missing", "stub", "ok"]>;
1282
1879
  line_count: z.ZodNumber;
@@ -1290,19 +1887,19 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1290
1887
  line_count: number;
1291
1888
  has_contributing: boolean;
1292
1889
  }>;
1293
- recommendations_for_skill: z.ZodArray<z.ZodString, "many">;
1890
+ recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1294
1891
  }, "strip", z.ZodTypeAny, {
1295
- version: string;
1296
- generated_at: string;
1297
- generated_by: string;
1298
- target: string;
1299
- project_name: string;
1300
1892
  framework: {
1893
+ evidence: string[];
1301
1894
  kind: string;
1302
1895
  version: string;
1303
1896
  subkind: string;
1304
- evidence: string[];
1305
1897
  };
1898
+ version: string;
1899
+ generated_at: string;
1900
+ generated_by: string;
1901
+ target: string;
1902
+ project_name: string;
1306
1903
  topology: {
1307
1904
  total_files: number;
1308
1905
  by_ext: Record<string, number>;
@@ -1320,24 +1917,51 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1320
1917
  snippet: string;
1321
1918
  pattern_hint: string;
1322
1919
  }[];
1920
+ assertions: {
1921
+ type: "framework" | "pattern" | "invariant" | "domain";
1922
+ statement: string;
1923
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1924
+ evidence: {
1925
+ file: string;
1926
+ snippet: string;
1927
+ line: string;
1928
+ }[];
1929
+ coverage: {
1930
+ ratio: number;
1931
+ total: number;
1932
+ matched: number;
1933
+ co_occurring_patterns: string[];
1934
+ };
1935
+ proposed_rule?: string | undefined;
1936
+ alternatives?: string[] | undefined;
1937
+ }[];
1938
+ candidate_files: {
1939
+ path: string;
1940
+ family: "domain" | "entry" | "component" | "config" | "test";
1941
+ rationale: string;
1942
+ }[];
1943
+ sampling_budget: {
1944
+ max_files: 15;
1945
+ max_lines_per_file: 100;
1946
+ };
1323
1947
  readme: {
1324
1948
  quality: "missing" | "ok" | "stub";
1325
1949
  line_count: number;
1326
1950
  has_contributing: boolean;
1327
1951
  };
1328
- recommendations_for_skill: string[];
1952
+ recommendations_for_skill?: string[] | undefined;
1329
1953
  }, {
1330
- version: string;
1331
- generated_at: string;
1332
- generated_by: string;
1333
- target: string;
1334
- project_name: string;
1335
1954
  framework: {
1955
+ evidence: string[];
1336
1956
  kind: string;
1337
1957
  version: string;
1338
1958
  subkind: string;
1339
- evidence: string[];
1340
1959
  };
1960
+ version: string;
1961
+ generated_at: string;
1962
+ generated_by: string;
1963
+ target: string;
1964
+ project_name: string;
1341
1965
  topology: {
1342
1966
  total_files: number;
1343
1967
  by_ext: Record<string, number>;
@@ -1355,27 +1979,54 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1355
1979
  snippet: string;
1356
1980
  pattern_hint: string;
1357
1981
  }[];
1982
+ assertions: {
1983
+ type: "framework" | "pattern" | "invariant" | "domain";
1984
+ statement: string;
1985
+ confidence: "HIGH" | "MEDIUM" | "LOW";
1986
+ evidence: {
1987
+ file: string;
1988
+ snippet: string;
1989
+ line: string;
1990
+ }[];
1991
+ coverage: {
1992
+ ratio: number;
1993
+ total: number;
1994
+ matched: number;
1995
+ co_occurring_patterns: string[];
1996
+ };
1997
+ proposed_rule?: string | undefined;
1998
+ alternatives?: string[] | undefined;
1999
+ }[];
2000
+ candidate_files: {
2001
+ path: string;
2002
+ family: "domain" | "entry" | "component" | "config" | "test";
2003
+ rationale: string;
2004
+ }[];
2005
+ sampling_budget: {
2006
+ max_files: 15;
2007
+ max_lines_per_file: 100;
2008
+ };
1358
2009
  readme: {
1359
2010
  quality: "missing" | "ok" | "stub";
1360
2011
  line_count: number;
1361
2012
  has_contributing: boolean;
1362
2013
  };
1363
- recommendations_for_skill: string[];
2014
+ recommendations_for_skill?: string[] | undefined;
1364
2015
  }>;
1365
2016
  }, "strip", z.ZodTypeAny, {
1366
2017
  type: "drift:detected";
1367
2018
  payload: {
1368
- version: string;
1369
- generated_at: string;
1370
- generated_by: string;
1371
- target: string;
1372
- project_name: string;
1373
2019
  framework: {
2020
+ evidence: string[];
1374
2021
  kind: string;
1375
2022
  version: string;
1376
2023
  subkind: string;
1377
- evidence: string[];
1378
2024
  };
2025
+ version: string;
2026
+ generated_at: string;
2027
+ generated_by: string;
2028
+ target: string;
2029
+ project_name: string;
1379
2030
  topology: {
1380
2031
  total_files: number;
1381
2032
  by_ext: Record<string, number>;
@@ -1393,27 +2044,54 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1393
2044
  snippet: string;
1394
2045
  pattern_hint: string;
1395
2046
  }[];
2047
+ assertions: {
2048
+ type: "framework" | "pattern" | "invariant" | "domain";
2049
+ statement: string;
2050
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2051
+ evidence: {
2052
+ file: string;
2053
+ snippet: string;
2054
+ line: string;
2055
+ }[];
2056
+ coverage: {
2057
+ ratio: number;
2058
+ total: number;
2059
+ matched: number;
2060
+ co_occurring_patterns: string[];
2061
+ };
2062
+ proposed_rule?: string | undefined;
2063
+ alternatives?: string[] | undefined;
2064
+ }[];
2065
+ candidate_files: {
2066
+ path: string;
2067
+ family: "domain" | "entry" | "component" | "config" | "test";
2068
+ rationale: string;
2069
+ }[];
2070
+ sampling_budget: {
2071
+ max_files: 15;
2072
+ max_lines_per_file: 100;
2073
+ };
1396
2074
  readme: {
1397
2075
  quality: "missing" | "ok" | "stub";
1398
2076
  line_count: number;
1399
2077
  has_contributing: boolean;
1400
2078
  };
1401
- recommendations_for_skill: string[];
2079
+ recommendations_for_skill?: string[] | undefined;
1402
2080
  };
1403
2081
  }, {
1404
2082
  type: "drift:detected";
1405
2083
  payload: {
1406
- version: string;
1407
- generated_at: string;
1408
- generated_by: string;
1409
- target: string;
1410
- project_name: string;
1411
2084
  framework: {
2085
+ evidence: string[];
1412
2086
  kind: string;
1413
2087
  version: string;
1414
2088
  subkind: string;
1415
- evidence: string[];
1416
2089
  };
2090
+ version: string;
2091
+ generated_at: string;
2092
+ generated_by: string;
2093
+ target: string;
2094
+ project_name: string;
1417
2095
  topology: {
1418
2096
  total_files: number;
1419
2097
  by_ext: Record<string, number>;
@@ -1431,55 +2109,92 @@ declare const driftDetectedEventSchema: z.ZodObject<{
1431
2109
  snippet: string;
1432
2110
  pattern_hint: string;
1433
2111
  }[];
2112
+ assertions: {
2113
+ type: "framework" | "pattern" | "invariant" | "domain";
2114
+ statement: string;
2115
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2116
+ evidence: {
2117
+ file: string;
2118
+ snippet: string;
2119
+ line: string;
2120
+ }[];
2121
+ coverage: {
2122
+ ratio: number;
2123
+ total: number;
2124
+ matched: number;
2125
+ co_occurring_patterns: string[];
2126
+ };
2127
+ proposed_rule?: string | undefined;
2128
+ alternatives?: string[] | undefined;
2129
+ }[];
2130
+ candidate_files: {
2131
+ path: string;
2132
+ family: "domain" | "entry" | "component" | "config" | "test";
2133
+ rationale: string;
2134
+ }[];
2135
+ sampling_budget: {
2136
+ max_files: 15;
2137
+ max_lines_per_file: 100;
2138
+ };
1434
2139
  readme: {
1435
2140
  quality: "missing" | "ok" | "stub";
1436
2141
  line_count: number;
1437
2142
  has_contributing: boolean;
1438
2143
  };
1439
- recommendations_for_skill: string[];
2144
+ recommendations_for_skill?: string[] | undefined;
1440
2145
  };
1441
2146
  }>;
1442
2147
  declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1443
2148
  type: z.ZodLiteral<"meta:updated">;
1444
2149
  payload: z.ZodObject<{
1445
2150
  revision: z.ZodString;
1446
- nodes: z.ZodRecord<z.ZodString, z.ZodObject<{
2151
+ nodes: z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
1447
2152
  file: z.ZodString;
1448
2153
  scope_glob: z.ZodString;
1449
2154
  deps: z.ZodArray<z.ZodString, "many">;
1450
2155
  priority: z.ZodEnum<["high", "medium", "low"]>;
2156
+ layer: z.ZodEnum<["L0", "L1", "L2"]>;
2157
+ topology_type: z.ZodEnum<["mirror", "cross-cutting"]>;
1451
2158
  hash: z.ZodString;
1452
2159
  }, "strip", z.ZodTypeAny, {
1453
2160
  file: string;
1454
2161
  priority: "high" | "medium" | "low";
1455
2162
  hash: string;
2163
+ layer: "L0" | "L1" | "L2";
2164
+ topology_type: "mirror" | "cross-cutting";
1456
2165
  scope_glob: string;
1457
2166
  deps: string[];
1458
2167
  }, {
1459
2168
  file: string;
1460
2169
  priority: "high" | "medium" | "low";
1461
2170
  hash: string;
2171
+ layer: "L0" | "L1" | "L2";
2172
+ topology_type: "mirror" | "cross-cutting";
1462
2173
  scope_glob: string;
1463
2174
  deps: string[];
1464
- }>>;
1465
- }, "strip", z.ZodTypeAny, {
1466
- revision: string;
1467
- nodes: Record<string, {
2175
+ }>, {
1468
2176
  file: string;
1469
2177
  priority: "high" | "medium" | "low";
1470
2178
  hash: string;
2179
+ layer: "L0" | "L1" | "L2";
2180
+ topology_type: "mirror" | "cross-cutting";
1471
2181
  scope_glob: string;
1472
2182
  deps: string[];
1473
- }>;
1474
- }, {
2183
+ }, unknown>>;
2184
+ }, "strip", z.ZodTypeAny, {
1475
2185
  revision: string;
1476
2186
  nodes: Record<string, {
1477
2187
  file: string;
1478
2188
  priority: "high" | "medium" | "low";
1479
2189
  hash: string;
2190
+ layer: "L0" | "L1" | "L2";
2191
+ topology_type: "mirror" | "cross-cutting";
1480
2192
  scope_glob: string;
1481
2193
  deps: string[];
1482
2194
  }>;
2195
+ }, {
2196
+ revision: string;
2197
+ nodes: Record<string, unknown>;
1483
2198
  }>;
1484
2199
  }, "strip", z.ZodTypeAny, {
1485
2200
  type: "meta:updated";
@@ -1489,6 +2204,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1489
2204
  file: string;
1490
2205
  priority: "high" | "medium" | "low";
1491
2206
  hash: string;
2207
+ layer: "L0" | "L1" | "L2";
2208
+ topology_type: "mirror" | "cross-cutting";
1492
2209
  scope_glob: string;
1493
2210
  deps: string[];
1494
2211
  }>;
@@ -1497,13 +2214,7 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1497
2214
  type: "meta:updated";
1498
2215
  payload: {
1499
2216
  revision: string;
1500
- nodes: Record<string, {
1501
- file: string;
1502
- priority: "high" | "medium" | "low";
1503
- hash: string;
1504
- scope_glob: string;
1505
- deps: string[];
1506
- }>;
2217
+ nodes: Record<string, unknown>;
1507
2218
  };
1508
2219
  }>, z.ZodObject<{
1509
2220
  type: z.ZodLiteral<"lock:drift">;
@@ -1801,15 +2512,15 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1801
2512
  subkind: z.ZodString;
1802
2513
  evidence: z.ZodArray<z.ZodString, "many">;
1803
2514
  }, "strip", z.ZodTypeAny, {
2515
+ evidence: string[];
1804
2516
  kind: string;
1805
2517
  version: string;
1806
2518
  subkind: string;
1807
- evidence: string[];
1808
2519
  }, {
2520
+ evidence: string[];
1809
2521
  kind: string;
1810
2522
  version: string;
1811
2523
  subkind: string;
1812
- evidence: string[];
1813
2524
  }>;
1814
2525
  topology: z.ZodObject<{
1815
2526
  total_files: z.ZodNumber;
@@ -1856,6 +2567,99 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1856
2567
  snippet: string;
1857
2568
  pattern_hint: string;
1858
2569
  }>, "many">;
2570
+ assertions: z.ZodArray<z.ZodObject<{
2571
+ type: z.ZodEnum<["framework", "pattern", "invariant", "domain"]>;
2572
+ statement: z.ZodString;
2573
+ confidence: z.ZodEnum<["HIGH", "MEDIUM", "LOW"]>;
2574
+ evidence: z.ZodArray<z.ZodObject<{
2575
+ file: z.ZodString;
2576
+ line: z.ZodString;
2577
+ snippet: z.ZodString;
2578
+ }, "strip", z.ZodTypeAny, {
2579
+ file: string;
2580
+ snippet: string;
2581
+ line: string;
2582
+ }, {
2583
+ file: string;
2584
+ snippet: string;
2585
+ line: string;
2586
+ }>, "many">;
2587
+ coverage: z.ZodObject<{
2588
+ ratio: z.ZodNumber;
2589
+ total: z.ZodNumber;
2590
+ matched: z.ZodNumber;
2591
+ co_occurring_patterns: z.ZodArray<z.ZodString, "many">;
2592
+ }, "strip", z.ZodTypeAny, {
2593
+ ratio: number;
2594
+ total: number;
2595
+ matched: number;
2596
+ co_occurring_patterns: string[];
2597
+ }, {
2598
+ ratio: number;
2599
+ total: number;
2600
+ matched: number;
2601
+ co_occurring_patterns: string[];
2602
+ }>;
2603
+ proposed_rule: z.ZodOptional<z.ZodString>;
2604
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2605
+ }, "strip", z.ZodTypeAny, {
2606
+ type: "framework" | "pattern" | "invariant" | "domain";
2607
+ statement: string;
2608
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2609
+ evidence: {
2610
+ file: string;
2611
+ snippet: string;
2612
+ line: string;
2613
+ }[];
2614
+ coverage: {
2615
+ ratio: number;
2616
+ total: number;
2617
+ matched: number;
2618
+ co_occurring_patterns: string[];
2619
+ };
2620
+ proposed_rule?: string | undefined;
2621
+ alternatives?: string[] | undefined;
2622
+ }, {
2623
+ type: "framework" | "pattern" | "invariant" | "domain";
2624
+ statement: string;
2625
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2626
+ evidence: {
2627
+ file: string;
2628
+ snippet: string;
2629
+ line: string;
2630
+ }[];
2631
+ coverage: {
2632
+ ratio: number;
2633
+ total: number;
2634
+ matched: number;
2635
+ co_occurring_patterns: string[];
2636
+ };
2637
+ proposed_rule?: string | undefined;
2638
+ alternatives?: string[] | undefined;
2639
+ }>, "many">;
2640
+ candidate_files: z.ZodArray<z.ZodObject<{
2641
+ path: z.ZodString;
2642
+ family: z.ZodEnum<["entry", "component", "config", "test", "domain"]>;
2643
+ rationale: z.ZodString;
2644
+ }, "strip", z.ZodTypeAny, {
2645
+ path: string;
2646
+ family: "domain" | "entry" | "component" | "config" | "test";
2647
+ rationale: string;
2648
+ }, {
2649
+ path: string;
2650
+ family: "domain" | "entry" | "component" | "config" | "test";
2651
+ rationale: string;
2652
+ }>, "many">;
2653
+ sampling_budget: z.ZodObject<{
2654
+ max_files: z.ZodLiteral<15>;
2655
+ max_lines_per_file: z.ZodLiteral<100>;
2656
+ }, "strip", z.ZodTypeAny, {
2657
+ max_files: 15;
2658
+ max_lines_per_file: 100;
2659
+ }, {
2660
+ max_files: 15;
2661
+ max_lines_per_file: 100;
2662
+ }>;
1859
2663
  readme: z.ZodObject<{
1860
2664
  quality: z.ZodEnum<["missing", "stub", "ok"]>;
1861
2665
  line_count: z.ZodNumber;
@@ -1869,19 +2673,19 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1869
2673
  line_count: number;
1870
2674
  has_contributing: boolean;
1871
2675
  }>;
1872
- recommendations_for_skill: z.ZodArray<z.ZodString, "many">;
2676
+ recommendations_for_skill: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1873
2677
  }, "strip", z.ZodTypeAny, {
1874
- version: string;
1875
- generated_at: string;
1876
- generated_by: string;
1877
- target: string;
1878
- project_name: string;
1879
2678
  framework: {
2679
+ evidence: string[];
1880
2680
  kind: string;
1881
2681
  version: string;
1882
2682
  subkind: string;
1883
- evidence: string[];
1884
2683
  };
2684
+ version: string;
2685
+ generated_at: string;
2686
+ generated_by: string;
2687
+ target: string;
2688
+ project_name: string;
1885
2689
  topology: {
1886
2690
  total_files: number;
1887
2691
  by_ext: Record<string, number>;
@@ -1899,24 +2703,51 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1899
2703
  snippet: string;
1900
2704
  pattern_hint: string;
1901
2705
  }[];
2706
+ assertions: {
2707
+ type: "framework" | "pattern" | "invariant" | "domain";
2708
+ statement: string;
2709
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2710
+ evidence: {
2711
+ file: string;
2712
+ snippet: string;
2713
+ line: string;
2714
+ }[];
2715
+ coverage: {
2716
+ ratio: number;
2717
+ total: number;
2718
+ matched: number;
2719
+ co_occurring_patterns: string[];
2720
+ };
2721
+ proposed_rule?: string | undefined;
2722
+ alternatives?: string[] | undefined;
2723
+ }[];
2724
+ candidate_files: {
2725
+ path: string;
2726
+ family: "domain" | "entry" | "component" | "config" | "test";
2727
+ rationale: string;
2728
+ }[];
2729
+ sampling_budget: {
2730
+ max_files: 15;
2731
+ max_lines_per_file: 100;
2732
+ };
1902
2733
  readme: {
1903
2734
  quality: "missing" | "ok" | "stub";
1904
2735
  line_count: number;
1905
2736
  has_contributing: boolean;
1906
2737
  };
1907
- recommendations_for_skill: string[];
2738
+ recommendations_for_skill?: string[] | undefined;
1908
2739
  }, {
1909
- version: string;
1910
- generated_at: string;
1911
- generated_by: string;
1912
- target: string;
1913
- project_name: string;
1914
2740
  framework: {
2741
+ evidence: string[];
1915
2742
  kind: string;
1916
2743
  version: string;
1917
2744
  subkind: string;
1918
- evidence: string[];
1919
2745
  };
2746
+ version: string;
2747
+ generated_at: string;
2748
+ generated_by: string;
2749
+ target: string;
2750
+ project_name: string;
1920
2751
  topology: {
1921
2752
  total_files: number;
1922
2753
  by_ext: Record<string, number>;
@@ -1934,27 +2765,54 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1934
2765
  snippet: string;
1935
2766
  pattern_hint: string;
1936
2767
  }[];
2768
+ assertions: {
2769
+ type: "framework" | "pattern" | "invariant" | "domain";
2770
+ statement: string;
2771
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2772
+ evidence: {
2773
+ file: string;
2774
+ snippet: string;
2775
+ line: string;
2776
+ }[];
2777
+ coverage: {
2778
+ ratio: number;
2779
+ total: number;
2780
+ matched: number;
2781
+ co_occurring_patterns: string[];
2782
+ };
2783
+ proposed_rule?: string | undefined;
2784
+ alternatives?: string[] | undefined;
2785
+ }[];
2786
+ candidate_files: {
2787
+ path: string;
2788
+ family: "domain" | "entry" | "component" | "config" | "test";
2789
+ rationale: string;
2790
+ }[];
2791
+ sampling_budget: {
2792
+ max_files: 15;
2793
+ max_lines_per_file: 100;
2794
+ };
1937
2795
  readme: {
1938
2796
  quality: "missing" | "ok" | "stub";
1939
2797
  line_count: number;
1940
2798
  has_contributing: boolean;
1941
2799
  };
1942
- recommendations_for_skill: string[];
2800
+ recommendations_for_skill?: string[] | undefined;
1943
2801
  }>;
1944
2802
  }, "strip", z.ZodTypeAny, {
1945
2803
  type: "drift:detected";
1946
2804
  payload: {
1947
- version: string;
1948
- generated_at: string;
1949
- generated_by: string;
1950
- target: string;
1951
- project_name: string;
1952
2805
  framework: {
2806
+ evidence: string[];
1953
2807
  kind: string;
1954
2808
  version: string;
1955
2809
  subkind: string;
1956
- evidence: string[];
1957
2810
  };
2811
+ version: string;
2812
+ generated_at: string;
2813
+ generated_by: string;
2814
+ target: string;
2815
+ project_name: string;
1958
2816
  topology: {
1959
2817
  total_files: number;
1960
2818
  by_ext: Record<string, number>;
@@ -1972,27 +2830,54 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1972
2830
  snippet: string;
1973
2831
  pattern_hint: string;
1974
2832
  }[];
2833
+ assertions: {
2834
+ type: "framework" | "pattern" | "invariant" | "domain";
2835
+ statement: string;
2836
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2837
+ evidence: {
2838
+ file: string;
2839
+ snippet: string;
2840
+ line: string;
2841
+ }[];
2842
+ coverage: {
2843
+ ratio: number;
2844
+ total: number;
2845
+ matched: number;
2846
+ co_occurring_patterns: string[];
2847
+ };
2848
+ proposed_rule?: string | undefined;
2849
+ alternatives?: string[] | undefined;
2850
+ }[];
2851
+ candidate_files: {
2852
+ path: string;
2853
+ family: "domain" | "entry" | "component" | "config" | "test";
2854
+ rationale: string;
2855
+ }[];
2856
+ sampling_budget: {
2857
+ max_files: 15;
2858
+ max_lines_per_file: 100;
2859
+ };
1975
2860
  readme: {
1976
2861
  quality: "missing" | "ok" | "stub";
1977
2862
  line_count: number;
1978
2863
  has_contributing: boolean;
1979
2864
  };
1980
- recommendations_for_skill: string[];
2865
+ recommendations_for_skill?: string[] | undefined;
1981
2866
  };
1982
2867
  }, {
1983
2868
  type: "drift:detected";
1984
2869
  payload: {
1985
- version: string;
1986
- generated_at: string;
1987
- generated_by: string;
1988
- target: string;
1989
- project_name: string;
1990
2870
  framework: {
2871
+ evidence: string[];
1991
2872
  kind: string;
1992
2873
  version: string;
1993
2874
  subkind: string;
1994
- evidence: string[];
1995
2875
  };
2876
+ version: string;
2877
+ generated_at: string;
2878
+ generated_by: string;
2879
+ target: string;
2880
+ project_name: string;
1996
2881
  topology: {
1997
2882
  total_files: number;
1998
2883
  by_ext: Record<string, number>;
@@ -2010,21 +2895,40 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2010
2895
  snippet: string;
2011
2896
  pattern_hint: string;
2012
2897
  }[];
2898
+ assertions: {
2899
+ type: "framework" | "pattern" | "invariant" | "domain";
2900
+ statement: string;
2901
+ confidence: "HIGH" | "MEDIUM" | "LOW";
2902
+ evidence: {
2903
+ file: string;
2904
+ snippet: string;
2905
+ line: string;
2906
+ }[];
2907
+ coverage: {
2908
+ ratio: number;
2909
+ total: number;
2910
+ matched: number;
2911
+ co_occurring_patterns: string[];
2912
+ };
2913
+ proposed_rule?: string | undefined;
2914
+ alternatives?: string[] | undefined;
2915
+ }[];
2916
+ candidate_files: {
2917
+ path: string;
2918
+ family: "domain" | "entry" | "component" | "config" | "test";
2919
+ rationale: string;
2920
+ }[];
2921
+ sampling_budget: {
2922
+ max_files: 15;
2923
+ max_lines_per_file: 100;
2924
+ };
2013
2925
  readme: {
2014
2926
  quality: "missing" | "ok" | "stub";
2015
2927
  line_count: number;
2016
2928
  has_contributing: boolean;
2017
2929
  };
2018
- recommendations_for_skill: string[];
2930
+ recommendations_for_skill?: string[] | undefined;
2019
2931
  };
2020
2932
  }>]>;
2021
2933
 
2022
- type FrameworkInfo = {
2023
- kind: "vite" | "next" | "react" | "vue" | "cocos-creator" | "rust" | "python" | "unknown";
2024
- version: string;
2025
- subkind: string;
2026
- evidence: string[];
2027
- };
2028
- declare function detectFramework(root: string): FrameworkInfo;
2029
-
2030
- export { AgentsMeta, type DriftDetectedEvent, type FabricEvent, type ForensicCodeSample, type ForensicEntryPoint, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicTopology, type FrameworkInfo, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type MetaUpdatedEvent, agentsMetaNodeSchema, agentsMetaSchema, aiLedgerEntrySchema, annotateIntentRequestSchema, clientPathsSchema, detectFramework, driftDetectedEventSchema, fabricConfigSchema, fabricEventSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicTopologySchema, historyStateQuerySchema, humanLedgerEntrySchema, humanLockApproveRequestSchema, humanLockEntrySchema, humanLockFileParamsSchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantSchema, initContextSchema, ledgerAppendedEventSchema, ledgerEntrySchema, ledgerQuerySchema, ledgerSourceSchema, lockApprovedEventSchema, lockDriftEventSchema, metaUpdatedEventSchema };
2934
+ export { AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type CandidateFileEntry, type CandidateFileFamily, type DriftDetectedEvent, type FabricEvent, type ForensicAssertion, type ForensicAssertionConfidence, type ForensicAssertionCoverage, type ForensicAssertionType, type ForensicCodeSample, type ForensicEntryPoint, type ForensicEvidenceAnchor, type ForensicFramework, type ForensicReadme, type ForensicReport, type ForensicSamplingBudget, type ForensicTopology, HumanLockEntry, type HumanLockFile, type InitContext, type InitContextDomainGroup, type InitContextFramework, type InitContextInterviewTrailEntry, type InitContextInvariant, type InitContextInvariantConfidenceSnapshot, type InitContextSourceEvidence, type LedgerAppendedEvent, LedgerEntry, type LockApprovedEvent, type LockDriftEvent, type MetaUpdatedEvent, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, annotateIntentRequestSchema, auditModeSchema, candidateFileEntrySchema, clientPathsSchema, deriveAgentsMetaLayer, deriveAgentsMetaTopologyType, driftDetectedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, historyStateQuerySchema, humanLedgerEntrySchema, humanLockApproveRequestSchema, humanLockEntrySchema, humanLockFileParamsSchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, ledgerQuerySchema, ledgerSourceSchema, lockApprovedEventSchema, lockDriftEventSchema, metaUpdatedEventSchema, withDerivedAgentsMetaNodeDefaults };