@fenglimg/fabric-shared 1.7.0 → 1.8.0-rc.2
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/chunk-3SZRB42B.js +90 -0
- package/dist/{chunk-5H2PVNB2.js → chunk-BLXHC5HA.js} +30 -10
- package/dist/chunk-GI6L6VTT.js +176 -0
- package/dist/chunk-KV27CZH3.js +223 -0
- package/dist/errors/index.d.ts +65 -0
- package/dist/errors/index.js +30 -0
- package/dist/i18n/index.js +1 -1
- package/dist/index.d.ts +718 -254
- package/dist/index.js +354 -309
- package/dist/node/atomic-write.d.ts +14 -0
- package/dist/node/atomic-write.js +60 -0
- package/dist/node/bootstrap-guide.d.ts +12 -0
- package/dist/node/bootstrap-guide.js +52 -0
- package/dist/node/mcp-payload-guard.d.ts +16 -0
- package/dist/node/mcp-payload-guard.js +40 -0
- package/dist/node.js +3 -172
- package/dist/schemas/api-contracts.d.ts +883 -0
- package/dist/schemas/api-contracts.js +36 -0
- package/dist/types/index.d.ts +6 -4
- package/package.json +28 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { AgentsMetaNode, AgentsIdentitySource, AgentsLayer, AgentsTopologyType, HumanLockEntry, AgentsMeta, LedgerEntry } from './types/index.js';
|
|
2
|
-
export { AgentsActivationTier, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, RuleDescription, RuleDescriptionIndexItem } from './types/index.js';
|
|
2
|
+
export { AgentsActivationTier, AgentsMetaNodeActivation, AiLedgerEntry, AuditMode, ClientPaths, FabricConfig, HumanLedgerEntry, McpPayloadLimits, RuleDescription, RuleDescriptionIndexItem } 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
|
+
export { annotateIntentRequestSchema, getRulesAnnotations, getRulesInputSchema, getRulesOutputSchema, historyStateQuerySchema, humanLockApproveRequestSchema, humanLockFileParamsSchema, ledgerQuerySchema, ledgerSourceSchema, planContextAnnotations, planContextInputSchema, planContextOutputSchema, ruleSectionsAnnotations, ruleSectionsInputSchema, ruleSectionsOutputSchema, structuredWarningSchema } from './schemas/api-contracts.js';
|
|
5
6
|
|
|
6
7
|
declare const AGENTS_META_LAYERS: readonly ["L0", "L1", "L2"];
|
|
7
8
|
declare const AGENTS_META_TOPOLOGY_TYPES: readonly ["mirror", "cross-cutting", "domain", "local", "global"];
|
|
@@ -517,67 +518,6 @@ type RuleTestLink = z.infer<typeof ruleTestLinkSchema>;
|
|
|
517
518
|
type RuleTestOrphanAnnotation = z.infer<typeof ruleTestOrphanAnnotationSchema>;
|
|
518
519
|
type RuleTestIndex = z.infer<typeof ruleTestIndexSchema>;
|
|
519
520
|
|
|
520
|
-
declare const ledgerSourceSchema: z.ZodEnum<["ai", "human"]>;
|
|
521
|
-
declare const ledgerQuerySchema: z.ZodObject<{
|
|
522
|
-
source: z.ZodOptional<z.ZodEnum<["ai", "human"]>>;
|
|
523
|
-
since: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
524
|
-
}, "strip", z.ZodTypeAny, {
|
|
525
|
-
source?: "ai" | "human" | undefined;
|
|
526
|
-
since?: number | undefined;
|
|
527
|
-
}, {
|
|
528
|
-
source?: "ai" | "human" | undefined;
|
|
529
|
-
since?: unknown;
|
|
530
|
-
}>;
|
|
531
|
-
declare const historyStateQuerySchema: z.ZodEffects<z.ZodObject<{
|
|
532
|
-
ledger_id: z.ZodOptional<z.ZodString>;
|
|
533
|
-
ts: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
534
|
-
}, "strip", z.ZodTypeAny, {
|
|
535
|
-
ledger_id?: string | undefined;
|
|
536
|
-
ts?: number | undefined;
|
|
537
|
-
}, {
|
|
538
|
-
ledger_id?: string | undefined;
|
|
539
|
-
ts?: unknown;
|
|
540
|
-
}>, {
|
|
541
|
-
ledger_id?: string | undefined;
|
|
542
|
-
ts?: number | undefined;
|
|
543
|
-
}, {
|
|
544
|
-
ledger_id?: string | undefined;
|
|
545
|
-
ts?: unknown;
|
|
546
|
-
}>;
|
|
547
|
-
declare const humanLockApproveRequestSchema: z.ZodObject<{
|
|
548
|
-
file: z.ZodString;
|
|
549
|
-
start_line: z.ZodNumber;
|
|
550
|
-
end_line: z.ZodNumber;
|
|
551
|
-
new_hash: z.ZodString;
|
|
552
|
-
}, "strip", z.ZodTypeAny, {
|
|
553
|
-
file: string;
|
|
554
|
-
start_line: number;
|
|
555
|
-
end_line: number;
|
|
556
|
-
new_hash: string;
|
|
557
|
-
}, {
|
|
558
|
-
file: string;
|
|
559
|
-
start_line: number;
|
|
560
|
-
end_line: number;
|
|
561
|
-
new_hash: string;
|
|
562
|
-
}>;
|
|
563
|
-
declare const humanLockFileParamsSchema: z.ZodObject<{
|
|
564
|
-
file: z.ZodString;
|
|
565
|
-
}, "strip", z.ZodTypeAny, {
|
|
566
|
-
file: string;
|
|
567
|
-
}, {
|
|
568
|
-
file: string;
|
|
569
|
-
}>;
|
|
570
|
-
declare const annotateIntentRequestSchema: z.ZodObject<{
|
|
571
|
-
ledger_entry_id: z.ZodString;
|
|
572
|
-
annotation: z.ZodString;
|
|
573
|
-
}, "strip", z.ZodTypeAny, {
|
|
574
|
-
ledger_entry_id: string;
|
|
575
|
-
annotation: string;
|
|
576
|
-
}, {
|
|
577
|
-
ledger_entry_id: string;
|
|
578
|
-
annotation: string;
|
|
579
|
-
}>;
|
|
580
|
-
|
|
581
521
|
declare const aiLedgerEntrySchema: z.ZodObject<{
|
|
582
522
|
source: z.ZodLiteral<"ai">;
|
|
583
523
|
commit_sha: z.ZodOptional<z.ZodString>;
|
|
@@ -586,16 +526,16 @@ declare const aiLedgerEntrySchema: z.ZodObject<{
|
|
|
586
526
|
intent: z.ZodString;
|
|
587
527
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
588
528
|
}, "strip", z.ZodTypeAny, {
|
|
529
|
+
intent: string;
|
|
589
530
|
source: "ai";
|
|
590
531
|
ts: number;
|
|
591
|
-
intent: string;
|
|
592
532
|
affected_paths: string[];
|
|
593
533
|
commit_sha?: string | undefined;
|
|
594
534
|
id?: string | undefined;
|
|
595
535
|
}, {
|
|
536
|
+
intent: string;
|
|
596
537
|
source: "ai";
|
|
597
538
|
ts: number;
|
|
598
|
-
intent: string;
|
|
599
539
|
affected_paths: string[];
|
|
600
540
|
commit_sha?: string | undefined;
|
|
601
541
|
id?: string | undefined;
|
|
@@ -611,9 +551,9 @@ declare const humanLedgerEntrySchema: z.ZodObject<{
|
|
|
611
551
|
intent: z.ZodString;
|
|
612
552
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
613
553
|
}, "strip", z.ZodTypeAny, {
|
|
554
|
+
intent: string;
|
|
614
555
|
source: "human";
|
|
615
556
|
ts: number;
|
|
616
|
-
intent: string;
|
|
617
557
|
affected_paths: string[];
|
|
618
558
|
parent_sha: string;
|
|
619
559
|
diff_stat: string;
|
|
@@ -621,9 +561,9 @@ declare const humanLedgerEntrySchema: z.ZodObject<{
|
|
|
621
561
|
id?: string | undefined;
|
|
622
562
|
parent_ledger_entry_id?: string | undefined;
|
|
623
563
|
}, {
|
|
564
|
+
intent: string;
|
|
624
565
|
source: "human";
|
|
625
566
|
ts: number;
|
|
626
|
-
intent: string;
|
|
627
567
|
affected_paths: string[];
|
|
628
568
|
parent_sha: string;
|
|
629
569
|
diff_stat: string;
|
|
@@ -639,16 +579,16 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
639
579
|
intent: z.ZodString;
|
|
640
580
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
641
581
|
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
intent: string;
|
|
642
583
|
source: "ai";
|
|
643
584
|
ts: number;
|
|
644
|
-
intent: string;
|
|
645
585
|
affected_paths: string[];
|
|
646
586
|
commit_sha?: string | undefined;
|
|
647
587
|
id?: string | undefined;
|
|
648
588
|
}, {
|
|
589
|
+
intent: string;
|
|
649
590
|
source: "ai";
|
|
650
591
|
ts: number;
|
|
651
|
-
intent: string;
|
|
652
592
|
affected_paths: string[];
|
|
653
593
|
commit_sha?: string | undefined;
|
|
654
594
|
id?: string | undefined;
|
|
@@ -663,9 +603,9 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
663
603
|
intent: z.ZodString;
|
|
664
604
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
665
605
|
}, "strip", z.ZodTypeAny, {
|
|
606
|
+
intent: string;
|
|
666
607
|
source: "human";
|
|
667
608
|
ts: number;
|
|
668
|
-
intent: string;
|
|
669
609
|
affected_paths: string[];
|
|
670
610
|
parent_sha: string;
|
|
671
611
|
diff_stat: string;
|
|
@@ -673,9 +613,9 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
673
613
|
id?: string | undefined;
|
|
674
614
|
parent_ledger_entry_id?: string | undefined;
|
|
675
615
|
}, {
|
|
616
|
+
intent: string;
|
|
676
617
|
source: "human";
|
|
677
618
|
ts: number;
|
|
678
|
-
intent: string;
|
|
679
619
|
affected_paths: string[];
|
|
680
620
|
parent_sha: string;
|
|
681
621
|
diff_stat: string;
|
|
@@ -683,16 +623,16 @@ declare const ledgerEntrySchema: z.ZodEffects<z.ZodDiscriminatedUnion<"source",
|
|
|
683
623
|
id?: string | undefined;
|
|
684
624
|
parent_ledger_entry_id?: string | undefined;
|
|
685
625
|
}>]>, {
|
|
626
|
+
intent: string;
|
|
686
627
|
source: "ai";
|
|
687
628
|
ts: number;
|
|
688
|
-
intent: string;
|
|
689
629
|
affected_paths: string[];
|
|
690
630
|
commit_sha?: string | undefined;
|
|
691
631
|
id?: string | undefined;
|
|
692
632
|
} | {
|
|
633
|
+
intent: string;
|
|
693
634
|
source: "human";
|
|
694
635
|
ts: number;
|
|
695
|
-
intent: string;
|
|
696
636
|
affected_paths: string[];
|
|
697
637
|
parent_sha: string;
|
|
698
638
|
diff_stat: string;
|
|
@@ -758,85 +698,89 @@ declare const clientPathsSchema: z.ZodObject<{
|
|
|
758
698
|
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
759
699
|
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
760
700
|
cursor: z.ZodOptional<z.ZodString>;
|
|
761
|
-
windsurf: z.ZodOptional<z.ZodString>;
|
|
762
|
-
rooCode: z.ZodOptional<z.ZodString>;
|
|
763
|
-
geminiCLI: z.ZodOptional<z.ZodString>;
|
|
764
701
|
codexCLI: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
703
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
704
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
705
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
706
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
707
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
708
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
709
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
710
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
711
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
712
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
713
|
+
declare const mcpPayloadLimitsSchema: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
715
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
765
716
|
}, "strip", z.ZodTypeAny, {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
cursor?: string | undefined;
|
|
769
|
-
windsurf?: string | undefined;
|
|
770
|
-
rooCode?: string | undefined;
|
|
771
|
-
geminiCLI?: string | undefined;
|
|
772
|
-
codexCLI?: string | undefined;
|
|
717
|
+
warnBytes?: number | undefined;
|
|
718
|
+
hardBytes?: number | undefined;
|
|
773
719
|
}, {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
windsurf?: string | undefined;
|
|
778
|
-
rooCode?: string | undefined;
|
|
779
|
-
geminiCLI?: string | undefined;
|
|
780
|
-
codexCLI?: string | undefined;
|
|
781
|
-
}>;
|
|
720
|
+
warnBytes?: number | undefined;
|
|
721
|
+
hardBytes?: number | undefined;
|
|
722
|
+
}>>;
|
|
782
723
|
declare const fabricConfigSchema: z.ZodObject<{
|
|
783
724
|
clientPaths: z.ZodOptional<z.ZodObject<{
|
|
784
725
|
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
785
726
|
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
786
727
|
cursor: z.ZodOptional<z.ZodString>;
|
|
787
|
-
windsurf: z.ZodOptional<z.ZodString>;
|
|
788
|
-
rooCode: z.ZodOptional<z.ZodString>;
|
|
789
|
-
geminiCLI: z.ZodOptional<z.ZodString>;
|
|
790
728
|
codexCLI: z.ZodOptional<z.ZodString>;
|
|
791
|
-
}, "
|
|
792
|
-
claudeCodeCLI
|
|
793
|
-
claudeCodeDesktop
|
|
794
|
-
cursor
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
cursor?: string | undefined;
|
|
803
|
-
windsurf?: string | undefined;
|
|
804
|
-
rooCode?: string | undefined;
|
|
805
|
-
geminiCLI?: string | undefined;
|
|
806
|
-
codexCLI?: string | undefined;
|
|
807
|
-
}>>;
|
|
729
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
730
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
731
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
732
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
733
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
734
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
735
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
736
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
737
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
738
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
739
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
808
740
|
externalFixturePath: z.ZodOptional<z.ZodString>;
|
|
809
741
|
scanIgnores: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
810
742
|
auditMode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
811
743
|
audit_mode: z.ZodOptional<z.ZodEnum<["strict", "warn", "off"]>>;
|
|
744
|
+
mcpPayloadLimits: z.ZodOptional<z.ZodObject<{
|
|
745
|
+
warnBytes: z.ZodOptional<z.ZodNumber>;
|
|
746
|
+
hardBytes: z.ZodOptional<z.ZodNumber>;
|
|
747
|
+
}, "strip", z.ZodTypeAny, {
|
|
748
|
+
warnBytes?: number | undefined;
|
|
749
|
+
hardBytes?: number | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
warnBytes?: number | undefined;
|
|
752
|
+
hardBytes?: number | undefined;
|
|
753
|
+
}>>;
|
|
812
754
|
}, "strip", z.ZodTypeAny, {
|
|
813
|
-
clientPaths?: {
|
|
814
|
-
claudeCodeCLI
|
|
815
|
-
claudeCodeDesktop
|
|
816
|
-
cursor
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
geminiCLI?: string | undefined;
|
|
820
|
-
codexCLI?: string | undefined;
|
|
821
|
-
} | undefined;
|
|
755
|
+
clientPaths?: z.objectOutputType<{
|
|
756
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
757
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
758
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
759
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
760
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
822
761
|
externalFixturePath?: string | undefined;
|
|
823
762
|
scanIgnores?: string[] | undefined;
|
|
824
763
|
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
825
764
|
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
claudeCodeDesktop?: string | undefined;
|
|
830
|
-
cursor?: string | undefined;
|
|
831
|
-
windsurf?: string | undefined;
|
|
832
|
-
rooCode?: string | undefined;
|
|
833
|
-
geminiCLI?: string | undefined;
|
|
834
|
-
codexCLI?: string | undefined;
|
|
765
|
+
mcpPayloadLimits?: {
|
|
766
|
+
warnBytes?: number | undefined;
|
|
767
|
+
hardBytes?: number | undefined;
|
|
835
768
|
} | undefined;
|
|
769
|
+
}, {
|
|
770
|
+
clientPaths?: z.objectInputType<{
|
|
771
|
+
claudeCodeCLI: z.ZodOptional<z.ZodString>;
|
|
772
|
+
claudeCodeDesktop: z.ZodOptional<z.ZodString>;
|
|
773
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
774
|
+
codexCLI: z.ZodOptional<z.ZodString>;
|
|
775
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
836
776
|
externalFixturePath?: string | undefined;
|
|
837
777
|
scanIgnores?: string[] | undefined;
|
|
838
778
|
auditMode?: "strict" | "warn" | "off" | undefined;
|
|
839
779
|
audit_mode?: "strict" | "warn" | "off" | undefined;
|
|
780
|
+
mcpPayloadLimits?: {
|
|
781
|
+
warnBytes?: number | undefined;
|
|
782
|
+
hardBytes?: number | undefined;
|
|
783
|
+
} | undefined;
|
|
840
784
|
}>;
|
|
841
785
|
|
|
842
786
|
interface ForensicCodeSample {
|
|
@@ -938,12 +882,12 @@ declare const forensicEvidenceAnchorSchema: z.ZodObject<{
|
|
|
938
882
|
snippet: z.ZodString;
|
|
939
883
|
}, "strip", z.ZodTypeAny, {
|
|
940
884
|
file: string;
|
|
941
|
-
snippet: string;
|
|
942
885
|
line: string;
|
|
886
|
+
snippet: string;
|
|
943
887
|
}, {
|
|
944
888
|
file: string;
|
|
945
|
-
snippet: string;
|
|
946
889
|
line: string;
|
|
890
|
+
snippet: string;
|
|
947
891
|
}>;
|
|
948
892
|
declare const forensicAssertionCoverageSchema: z.ZodObject<{
|
|
949
893
|
ratio: z.ZodNumber;
|
|
@@ -971,12 +915,12 @@ declare const forensicAssertionSchema: z.ZodObject<{
|
|
|
971
915
|
snippet: z.ZodString;
|
|
972
916
|
}, "strip", z.ZodTypeAny, {
|
|
973
917
|
file: string;
|
|
974
|
-
snippet: string;
|
|
975
918
|
line: string;
|
|
919
|
+
snippet: string;
|
|
976
920
|
}, {
|
|
977
921
|
file: string;
|
|
978
|
-
snippet: string;
|
|
979
922
|
line: string;
|
|
923
|
+
snippet: string;
|
|
980
924
|
}>, "many">;
|
|
981
925
|
coverage: z.ZodObject<{
|
|
982
926
|
ratio: z.ZodNumber;
|
|
@@ -1002,8 +946,8 @@ declare const forensicAssertionSchema: z.ZodObject<{
|
|
|
1002
946
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1003
947
|
evidence: {
|
|
1004
948
|
file: string;
|
|
1005
|
-
snippet: string;
|
|
1006
949
|
line: string;
|
|
950
|
+
snippet: string;
|
|
1007
951
|
}[];
|
|
1008
952
|
coverage: {
|
|
1009
953
|
ratio: number;
|
|
@@ -1019,8 +963,8 @@ declare const forensicAssertionSchema: z.ZodObject<{
|
|
|
1019
963
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1020
964
|
evidence: {
|
|
1021
965
|
file: string;
|
|
1022
|
-
snippet: string;
|
|
1023
966
|
line: string;
|
|
967
|
+
snippet: string;
|
|
1024
968
|
}[];
|
|
1025
969
|
coverage: {
|
|
1026
970
|
ratio: number;
|
|
@@ -1189,12 +1133,12 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1189
1133
|
snippet: z.ZodString;
|
|
1190
1134
|
}, "strip", z.ZodTypeAny, {
|
|
1191
1135
|
file: string;
|
|
1192
|
-
snippet: string;
|
|
1193
1136
|
line: string;
|
|
1137
|
+
snippet: string;
|
|
1194
1138
|
}, {
|
|
1195
1139
|
file: string;
|
|
1196
|
-
snippet: string;
|
|
1197
1140
|
line: string;
|
|
1141
|
+
snippet: string;
|
|
1198
1142
|
}>, "many">;
|
|
1199
1143
|
coverage: z.ZodObject<{
|
|
1200
1144
|
ratio: z.ZodNumber;
|
|
@@ -1220,8 +1164,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1220
1164
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1221
1165
|
evidence: {
|
|
1222
1166
|
file: string;
|
|
1223
|
-
snippet: string;
|
|
1224
1167
|
line: string;
|
|
1168
|
+
snippet: string;
|
|
1225
1169
|
}[];
|
|
1226
1170
|
coverage: {
|
|
1227
1171
|
ratio: number;
|
|
@@ -1237,8 +1181,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1237
1181
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1238
1182
|
evidence: {
|
|
1239
1183
|
file: string;
|
|
1240
|
-
snippet: string;
|
|
1241
1184
|
line: string;
|
|
1185
|
+
snippet: string;
|
|
1242
1186
|
}[];
|
|
1243
1187
|
coverage: {
|
|
1244
1188
|
ratio: number;
|
|
@@ -1321,8 +1265,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1321
1265
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1322
1266
|
evidence: {
|
|
1323
1267
|
file: string;
|
|
1324
|
-
snippet: string;
|
|
1325
1268
|
line: string;
|
|
1269
|
+
snippet: string;
|
|
1326
1270
|
}[];
|
|
1327
1271
|
coverage: {
|
|
1328
1272
|
ratio: number;
|
|
@@ -1383,8 +1327,8 @@ declare const forensicReportSchema: z.ZodObject<{
|
|
|
1383
1327
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
1384
1328
|
evidence: {
|
|
1385
1329
|
file: string;
|
|
1386
|
-
snippet: string;
|
|
1387
1330
|
line: string;
|
|
1331
|
+
snippet: string;
|
|
1388
1332
|
}[];
|
|
1389
1333
|
coverage: {
|
|
1390
1334
|
ratio: number;
|
|
@@ -2171,16 +2115,16 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2171
2115
|
intent: z.ZodString;
|
|
2172
2116
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
2173
2117
|
}, "strip", z.ZodTypeAny, {
|
|
2118
|
+
intent: string;
|
|
2174
2119
|
source: "ai";
|
|
2175
2120
|
ts: number;
|
|
2176
|
-
intent: string;
|
|
2177
2121
|
affected_paths: string[];
|
|
2178
2122
|
commit_sha?: string | undefined;
|
|
2179
2123
|
id?: string | undefined;
|
|
2180
2124
|
}, {
|
|
2125
|
+
intent: string;
|
|
2181
2126
|
source: "ai";
|
|
2182
2127
|
ts: number;
|
|
2183
|
-
intent: string;
|
|
2184
2128
|
affected_paths: string[];
|
|
2185
2129
|
commit_sha?: string | undefined;
|
|
2186
2130
|
id?: string | undefined;
|
|
@@ -2195,9 +2139,9 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2195
2139
|
intent: z.ZodString;
|
|
2196
2140
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
2197
2141
|
}, "strip", z.ZodTypeAny, {
|
|
2142
|
+
intent: string;
|
|
2198
2143
|
source: "human";
|
|
2199
2144
|
ts: number;
|
|
2200
|
-
intent: string;
|
|
2201
2145
|
affected_paths: string[];
|
|
2202
2146
|
parent_sha: string;
|
|
2203
2147
|
diff_stat: string;
|
|
@@ -2205,9 +2149,9 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2205
2149
|
id?: string | undefined;
|
|
2206
2150
|
parent_ledger_entry_id?: string | undefined;
|
|
2207
2151
|
}, {
|
|
2152
|
+
intent: string;
|
|
2208
2153
|
source: "human";
|
|
2209
2154
|
ts: number;
|
|
2210
|
-
intent: string;
|
|
2211
2155
|
affected_paths: string[];
|
|
2212
2156
|
parent_sha: string;
|
|
2213
2157
|
diff_stat: string;
|
|
@@ -2215,16 +2159,16 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2215
2159
|
id?: string | undefined;
|
|
2216
2160
|
parent_ledger_entry_id?: string | undefined;
|
|
2217
2161
|
}>]>, {
|
|
2162
|
+
intent: string;
|
|
2218
2163
|
source: "ai";
|
|
2219
2164
|
ts: number;
|
|
2220
|
-
intent: string;
|
|
2221
2165
|
affected_paths: string[];
|
|
2222
2166
|
commit_sha?: string | undefined;
|
|
2223
2167
|
id?: string | undefined;
|
|
2224
2168
|
} | {
|
|
2169
|
+
intent: string;
|
|
2225
2170
|
source: "human";
|
|
2226
2171
|
ts: number;
|
|
2227
|
-
intent: string;
|
|
2228
2172
|
affected_paths: string[];
|
|
2229
2173
|
parent_sha: string;
|
|
2230
2174
|
diff_stat: string;
|
|
@@ -2235,16 +2179,16 @@ declare const ledgerAppendedEventSchema: z.ZodObject<{
|
|
|
2235
2179
|
}, "strip", z.ZodTypeAny, {
|
|
2236
2180
|
type: "ledger:appended";
|
|
2237
2181
|
payload: {
|
|
2182
|
+
intent: string;
|
|
2238
2183
|
source: "ai";
|
|
2239
2184
|
ts: number;
|
|
2240
|
-
intent: string;
|
|
2241
2185
|
affected_paths: string[];
|
|
2242
2186
|
commit_sha?: string | undefined;
|
|
2243
2187
|
id?: string | undefined;
|
|
2244
2188
|
} | {
|
|
2189
|
+
intent: string;
|
|
2245
2190
|
source: "human";
|
|
2246
2191
|
ts: number;
|
|
2247
|
-
intent: string;
|
|
2248
2192
|
affected_paths: string[];
|
|
2249
2193
|
parent_sha: string;
|
|
2250
2194
|
diff_stat: string;
|
|
@@ -2335,12 +2279,12 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2335
2279
|
snippet: z.ZodString;
|
|
2336
2280
|
}, "strip", z.ZodTypeAny, {
|
|
2337
2281
|
file: string;
|
|
2338
|
-
snippet: string;
|
|
2339
2282
|
line: string;
|
|
2283
|
+
snippet: string;
|
|
2340
2284
|
}, {
|
|
2341
2285
|
file: string;
|
|
2342
|
-
snippet: string;
|
|
2343
2286
|
line: string;
|
|
2287
|
+
snippet: string;
|
|
2344
2288
|
}>, "many">;
|
|
2345
2289
|
coverage: z.ZodObject<{
|
|
2346
2290
|
ratio: z.ZodNumber;
|
|
@@ -2366,8 +2310,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2366
2310
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2367
2311
|
evidence: {
|
|
2368
2312
|
file: string;
|
|
2369
|
-
snippet: string;
|
|
2370
2313
|
line: string;
|
|
2314
|
+
snippet: string;
|
|
2371
2315
|
}[];
|
|
2372
2316
|
coverage: {
|
|
2373
2317
|
ratio: number;
|
|
@@ -2383,8 +2327,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2383
2327
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2384
2328
|
evidence: {
|
|
2385
2329
|
file: string;
|
|
2386
|
-
snippet: string;
|
|
2387
2330
|
line: string;
|
|
2331
|
+
snippet: string;
|
|
2388
2332
|
}[];
|
|
2389
2333
|
coverage: {
|
|
2390
2334
|
ratio: number;
|
|
@@ -2467,8 +2411,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2467
2411
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2468
2412
|
evidence: {
|
|
2469
2413
|
file: string;
|
|
2470
|
-
snippet: string;
|
|
2471
2414
|
line: string;
|
|
2415
|
+
snippet: string;
|
|
2472
2416
|
}[];
|
|
2473
2417
|
coverage: {
|
|
2474
2418
|
ratio: number;
|
|
@@ -2529,8 +2473,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2529
2473
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2530
2474
|
evidence: {
|
|
2531
2475
|
file: string;
|
|
2532
|
-
snippet: string;
|
|
2533
2476
|
line: string;
|
|
2477
|
+
snippet: string;
|
|
2534
2478
|
}[];
|
|
2535
2479
|
coverage: {
|
|
2536
2480
|
ratio: number;
|
|
@@ -2594,8 +2538,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2594
2538
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2595
2539
|
evidence: {
|
|
2596
2540
|
file: string;
|
|
2597
|
-
snippet: string;
|
|
2598
2541
|
line: string;
|
|
2542
|
+
snippet: string;
|
|
2599
2543
|
}[];
|
|
2600
2544
|
coverage: {
|
|
2601
2545
|
ratio: number;
|
|
@@ -2659,8 +2603,8 @@ declare const driftDetectedEventSchema: z.ZodObject<{
|
|
|
2659
2603
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
2660
2604
|
evidence: {
|
|
2661
2605
|
file: string;
|
|
2662
|
-
snippet: string;
|
|
2663
2606
|
line: string;
|
|
2607
|
+
snippet: string;
|
|
2664
2608
|
}[];
|
|
2665
2609
|
coverage: {
|
|
2666
2610
|
ratio: number;
|
|
@@ -3080,16 +3024,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3080
3024
|
intent: z.ZodString;
|
|
3081
3025
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
3082
3026
|
}, "strip", z.ZodTypeAny, {
|
|
3027
|
+
intent: string;
|
|
3083
3028
|
source: "ai";
|
|
3084
3029
|
ts: number;
|
|
3085
|
-
intent: string;
|
|
3086
3030
|
affected_paths: string[];
|
|
3087
3031
|
commit_sha?: string | undefined;
|
|
3088
3032
|
id?: string | undefined;
|
|
3089
3033
|
}, {
|
|
3034
|
+
intent: string;
|
|
3090
3035
|
source: "ai";
|
|
3091
3036
|
ts: number;
|
|
3092
|
-
intent: string;
|
|
3093
3037
|
affected_paths: string[];
|
|
3094
3038
|
commit_sha?: string | undefined;
|
|
3095
3039
|
id?: string | undefined;
|
|
@@ -3104,9 +3048,9 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3104
3048
|
intent: z.ZodString;
|
|
3105
3049
|
affected_paths: z.ZodArray<z.ZodString, "many">;
|
|
3106
3050
|
}, "strip", z.ZodTypeAny, {
|
|
3051
|
+
intent: string;
|
|
3107
3052
|
source: "human";
|
|
3108
3053
|
ts: number;
|
|
3109
|
-
intent: string;
|
|
3110
3054
|
affected_paths: string[];
|
|
3111
3055
|
parent_sha: string;
|
|
3112
3056
|
diff_stat: string;
|
|
@@ -3114,9 +3058,9 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3114
3058
|
id?: string | undefined;
|
|
3115
3059
|
parent_ledger_entry_id?: string | undefined;
|
|
3116
3060
|
}, {
|
|
3061
|
+
intent: string;
|
|
3117
3062
|
source: "human";
|
|
3118
3063
|
ts: number;
|
|
3119
|
-
intent: string;
|
|
3120
3064
|
affected_paths: string[];
|
|
3121
3065
|
parent_sha: string;
|
|
3122
3066
|
diff_stat: string;
|
|
@@ -3124,16 +3068,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3124
3068
|
id?: string | undefined;
|
|
3125
3069
|
parent_ledger_entry_id?: string | undefined;
|
|
3126
3070
|
}>]>, {
|
|
3071
|
+
intent: string;
|
|
3127
3072
|
source: "ai";
|
|
3128
3073
|
ts: number;
|
|
3129
|
-
intent: string;
|
|
3130
3074
|
affected_paths: string[];
|
|
3131
3075
|
commit_sha?: string | undefined;
|
|
3132
3076
|
id?: string | undefined;
|
|
3133
3077
|
} | {
|
|
3078
|
+
intent: string;
|
|
3134
3079
|
source: "human";
|
|
3135
3080
|
ts: number;
|
|
3136
|
-
intent: string;
|
|
3137
3081
|
affected_paths: string[];
|
|
3138
3082
|
parent_sha: string;
|
|
3139
3083
|
diff_stat: string;
|
|
@@ -3144,16 +3088,16 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3144
3088
|
}, "strip", z.ZodTypeAny, {
|
|
3145
3089
|
type: "ledger:appended";
|
|
3146
3090
|
payload: {
|
|
3091
|
+
intent: string;
|
|
3147
3092
|
source: "ai";
|
|
3148
3093
|
ts: number;
|
|
3149
|
-
intent: string;
|
|
3150
3094
|
affected_paths: string[];
|
|
3151
3095
|
commit_sha?: string | undefined;
|
|
3152
3096
|
id?: string | undefined;
|
|
3153
3097
|
} | {
|
|
3098
|
+
intent: string;
|
|
3154
3099
|
source: "human";
|
|
3155
3100
|
ts: number;
|
|
3156
|
-
intent: string;
|
|
3157
3101
|
affected_paths: string[];
|
|
3158
3102
|
parent_sha: string;
|
|
3159
3103
|
diff_stat: string;
|
|
@@ -3243,12 +3187,12 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3243
3187
|
snippet: z.ZodString;
|
|
3244
3188
|
}, "strip", z.ZodTypeAny, {
|
|
3245
3189
|
file: string;
|
|
3246
|
-
snippet: string;
|
|
3247
3190
|
line: string;
|
|
3191
|
+
snippet: string;
|
|
3248
3192
|
}, {
|
|
3249
3193
|
file: string;
|
|
3250
|
-
snippet: string;
|
|
3251
3194
|
line: string;
|
|
3195
|
+
snippet: string;
|
|
3252
3196
|
}>, "many">;
|
|
3253
3197
|
coverage: z.ZodObject<{
|
|
3254
3198
|
ratio: z.ZodNumber;
|
|
@@ -3274,8 +3218,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3274
3218
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3275
3219
|
evidence: {
|
|
3276
3220
|
file: string;
|
|
3277
|
-
snippet: string;
|
|
3278
3221
|
line: string;
|
|
3222
|
+
snippet: string;
|
|
3279
3223
|
}[];
|
|
3280
3224
|
coverage: {
|
|
3281
3225
|
ratio: number;
|
|
@@ -3291,8 +3235,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3291
3235
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3292
3236
|
evidence: {
|
|
3293
3237
|
file: string;
|
|
3294
|
-
snippet: string;
|
|
3295
3238
|
line: string;
|
|
3239
|
+
snippet: string;
|
|
3296
3240
|
}[];
|
|
3297
3241
|
coverage: {
|
|
3298
3242
|
ratio: number;
|
|
@@ -3375,8 +3319,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3375
3319
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3376
3320
|
evidence: {
|
|
3377
3321
|
file: string;
|
|
3378
|
-
snippet: string;
|
|
3379
3322
|
line: string;
|
|
3323
|
+
snippet: string;
|
|
3380
3324
|
}[];
|
|
3381
3325
|
coverage: {
|
|
3382
3326
|
ratio: number;
|
|
@@ -3437,8 +3381,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3437
3381
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3438
3382
|
evidence: {
|
|
3439
3383
|
file: string;
|
|
3440
|
-
snippet: string;
|
|
3441
3384
|
line: string;
|
|
3385
|
+
snippet: string;
|
|
3442
3386
|
}[];
|
|
3443
3387
|
coverage: {
|
|
3444
3388
|
ratio: number;
|
|
@@ -3502,8 +3446,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3502
3446
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3503
3447
|
evidence: {
|
|
3504
3448
|
file: string;
|
|
3505
|
-
snippet: string;
|
|
3506
3449
|
line: string;
|
|
3450
|
+
snippet: string;
|
|
3507
3451
|
}[];
|
|
3508
3452
|
coverage: {
|
|
3509
3453
|
ratio: number;
|
|
@@ -3567,8 +3511,8 @@ declare const fabricEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3567
3511
|
confidence: "HIGH" | "MEDIUM" | "LOW";
|
|
3568
3512
|
evidence: {
|
|
3569
3513
|
file: string;
|
|
3570
|
-
snippet: string;
|
|
3571
3514
|
line: string;
|
|
3515
|
+
snippet: string;
|
|
3572
3516
|
}[];
|
|
3573
3517
|
coverage: {
|
|
3574
3518
|
ratio: number;
|
|
@@ -3616,38 +3560,38 @@ declare const ruleContextPlannedEventSchema: z.ZodObject<{
|
|
|
3616
3560
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3617
3561
|
}, "strip", z.ZodTypeAny, {
|
|
3618
3562
|
schema_version: 1;
|
|
3563
|
+
required_stable_ids: string[];
|
|
3564
|
+
ai_selectable_stable_ids: string[];
|
|
3619
3565
|
ts: number;
|
|
3620
3566
|
id: string;
|
|
3621
3567
|
kind: "fabric-event";
|
|
3622
3568
|
event_type: "rule_context_planned";
|
|
3623
3569
|
target_paths: string[];
|
|
3624
|
-
required_stable_ids: string[];
|
|
3625
|
-
ai_selectable_stable_ids: string[];
|
|
3626
3570
|
final_stable_ids: string[];
|
|
3571
|
+
known_tech?: string[] | undefined;
|
|
3627
3572
|
intent?: string | undefined;
|
|
3628
|
-
selection_token?: string | undefined;
|
|
3629
3573
|
client_hash?: string | undefined;
|
|
3630
|
-
known_tech?: string[] | undefined;
|
|
3631
|
-
diagnostics?: unknown[] | undefined;
|
|
3632
3574
|
correlation_id?: string | undefined;
|
|
3633
3575
|
session_id?: string | undefined;
|
|
3576
|
+
selection_token?: string | undefined;
|
|
3577
|
+
diagnostics?: unknown[] | undefined;
|
|
3634
3578
|
}, {
|
|
3635
3579
|
schema_version: 1;
|
|
3580
|
+
required_stable_ids: string[];
|
|
3581
|
+
ai_selectable_stable_ids: string[];
|
|
3636
3582
|
ts: number;
|
|
3637
3583
|
id: string;
|
|
3638
3584
|
kind: "fabric-event";
|
|
3639
3585
|
event_type: "rule_context_planned";
|
|
3640
3586
|
target_paths: string[];
|
|
3641
|
-
required_stable_ids: string[];
|
|
3642
|
-
ai_selectable_stable_ids: string[];
|
|
3643
3587
|
final_stable_ids: string[];
|
|
3588
|
+
known_tech?: string[] | undefined;
|
|
3644
3589
|
intent?: string | undefined;
|
|
3645
|
-
selection_token?: string | undefined;
|
|
3646
3590
|
client_hash?: string | undefined;
|
|
3647
|
-
known_tech?: string[] | undefined;
|
|
3648
|
-
diagnostics?: unknown[] | undefined;
|
|
3649
3591
|
correlation_id?: string | undefined;
|
|
3650
3592
|
session_id?: string | undefined;
|
|
3593
|
+
selection_token?: string | undefined;
|
|
3594
|
+
diagnostics?: unknown[] | undefined;
|
|
3651
3595
|
}>;
|
|
3652
3596
|
declare const ruleSelectionEventSchema: z.ZodObject<{
|
|
3653
3597
|
event_type: z.ZodLiteral<"rule_selection">;
|
|
@@ -3668,34 +3612,34 @@ declare const ruleSelectionEventSchema: z.ZodObject<{
|
|
|
3668
3612
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3669
3613
|
}, "strip", z.ZodTypeAny, {
|
|
3670
3614
|
schema_version: 1;
|
|
3615
|
+
selection_token: string;
|
|
3616
|
+
required_stable_ids: string[];
|
|
3617
|
+
ai_selectable_stable_ids: string[];
|
|
3618
|
+
ai_selected_stable_ids: string[];
|
|
3619
|
+
ai_selection_reasons: Record<string, string>;
|
|
3671
3620
|
ts: number;
|
|
3672
3621
|
id: string;
|
|
3673
3622
|
kind: "fabric-event";
|
|
3674
3623
|
event_type: "rule_selection";
|
|
3675
3624
|
target_paths: string[];
|
|
3676
|
-
required_stable_ids: string[];
|
|
3677
|
-
ai_selectable_stable_ids: string[];
|
|
3678
3625
|
final_stable_ids: string[];
|
|
3679
|
-
selection_token: string;
|
|
3680
|
-
ai_selected_stable_ids: string[];
|
|
3681
|
-
ai_selection_reasons: Record<string, string>;
|
|
3682
3626
|
rejected_stable_ids: string[];
|
|
3683
3627
|
ignored_stable_ids: string[];
|
|
3684
3628
|
correlation_id?: string | undefined;
|
|
3685
3629
|
session_id?: string | undefined;
|
|
3686
3630
|
}, {
|
|
3687
3631
|
schema_version: 1;
|
|
3632
|
+
selection_token: string;
|
|
3633
|
+
required_stable_ids: string[];
|
|
3634
|
+
ai_selectable_stable_ids: string[];
|
|
3635
|
+
ai_selected_stable_ids: string[];
|
|
3636
|
+
ai_selection_reasons: Record<string, string>;
|
|
3688
3637
|
ts: number;
|
|
3689
3638
|
id: string;
|
|
3690
3639
|
kind: "fabric-event";
|
|
3691
3640
|
event_type: "rule_selection";
|
|
3692
3641
|
target_paths: string[];
|
|
3693
|
-
required_stable_ids: string[];
|
|
3694
|
-
ai_selectable_stable_ids: string[];
|
|
3695
3642
|
final_stable_ids: string[];
|
|
3696
|
-
selection_token: string;
|
|
3697
|
-
ai_selected_stable_ids: string[];
|
|
3698
|
-
ai_selection_reasons: Record<string, string>;
|
|
3699
3643
|
rejected_stable_ids: string[];
|
|
3700
3644
|
ignored_stable_ids: string[];
|
|
3701
3645
|
correlation_id?: string | undefined;
|
|
@@ -3717,32 +3661,32 @@ declare const ruleSectionsFetchedEventSchema: z.ZodObject<{
|
|
|
3717
3661
|
session_id: z.ZodOptional<z.ZodString>;
|
|
3718
3662
|
}, "strip", z.ZodTypeAny, {
|
|
3719
3663
|
schema_version: 1;
|
|
3664
|
+
selection_token: string;
|
|
3665
|
+
ai_selected_stable_ids: string[];
|
|
3720
3666
|
ts: number;
|
|
3721
3667
|
id: string;
|
|
3722
3668
|
kind: "fabric-event";
|
|
3723
3669
|
event_type: "rule_sections_fetched";
|
|
3724
3670
|
final_stable_ids: string[];
|
|
3725
|
-
selection_token: string;
|
|
3726
|
-
ai_selected_stable_ids: string[];
|
|
3727
3671
|
requested_sections: string[];
|
|
3728
|
-
target_paths?: string[] | undefined;
|
|
3729
|
-
diagnostics?: unknown[] | undefined;
|
|
3730
3672
|
correlation_id?: string | undefined;
|
|
3731
3673
|
session_id?: string | undefined;
|
|
3674
|
+
diagnostics?: unknown[] | undefined;
|
|
3675
|
+
target_paths?: string[] | undefined;
|
|
3732
3676
|
}, {
|
|
3733
3677
|
schema_version: 1;
|
|
3678
|
+
selection_token: string;
|
|
3679
|
+
ai_selected_stable_ids: string[];
|
|
3734
3680
|
ts: number;
|
|
3735
3681
|
id: string;
|
|
3736
3682
|
kind: "fabric-event";
|
|
3737
3683
|
event_type: "rule_sections_fetched";
|
|
3738
3684
|
final_stable_ids: string[];
|
|
3739
|
-
selection_token: string;
|
|
3740
|
-
ai_selected_stable_ids: string[];
|
|
3741
3685
|
requested_sections: string[];
|
|
3742
|
-
target_paths?: string[] | undefined;
|
|
3743
|
-
diagnostics?: unknown[] | undefined;
|
|
3744
3686
|
correlation_id?: string | undefined;
|
|
3745
3687
|
session_id?: string | undefined;
|
|
3688
|
+
diagnostics?: unknown[] | undefined;
|
|
3689
|
+
target_paths?: string[] | undefined;
|
|
3746
3690
|
}>;
|
|
3747
3691
|
declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
3748
3692
|
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
@@ -3768,41 +3712,41 @@ declare const editIntentCheckedEventSchema: z.ZodObject<{
|
|
|
3768
3712
|
path: string;
|
|
3769
3713
|
ledger_entry_id: string;
|
|
3770
3714
|
schema_version: 1;
|
|
3715
|
+
intent: string;
|
|
3771
3716
|
ts: number;
|
|
3772
3717
|
id: string;
|
|
3773
|
-
intent: string;
|
|
3774
3718
|
kind: "fabric-event";
|
|
3775
3719
|
event_type: "edit_intent_checked";
|
|
3776
3720
|
compliant: boolean;
|
|
3777
3721
|
matched_rule_context_ts: number | null;
|
|
3778
3722
|
window_ms: number;
|
|
3723
|
+
correlation_id?: string | undefined;
|
|
3724
|
+
session_id?: string | undefined;
|
|
3779
3725
|
annotation?: string | undefined;
|
|
3780
3726
|
commit_sha?: string | undefined;
|
|
3781
3727
|
parent_sha?: string | undefined;
|
|
3782
3728
|
parent_ledger_entry_id?: string | undefined;
|
|
3783
3729
|
diff_stat?: string | undefined;
|
|
3784
|
-
correlation_id?: string | undefined;
|
|
3785
|
-
session_id?: string | undefined;
|
|
3786
3730
|
ledger_source?: "ai" | "human" | undefined;
|
|
3787
3731
|
}, {
|
|
3788
3732
|
path: string;
|
|
3789
3733
|
ledger_entry_id: string;
|
|
3790
3734
|
schema_version: 1;
|
|
3735
|
+
intent: string;
|
|
3791
3736
|
ts: number;
|
|
3792
3737
|
id: string;
|
|
3793
|
-
intent: string;
|
|
3794
3738
|
kind: "fabric-event";
|
|
3795
3739
|
event_type: "edit_intent_checked";
|
|
3796
3740
|
compliant: boolean;
|
|
3797
3741
|
matched_rule_context_ts: number | null;
|
|
3798
3742
|
window_ms: number;
|
|
3743
|
+
correlation_id?: string | undefined;
|
|
3744
|
+
session_id?: string | undefined;
|
|
3799
3745
|
annotation?: string | undefined;
|
|
3800
3746
|
commit_sha?: string | undefined;
|
|
3801
3747
|
parent_sha?: string | undefined;
|
|
3802
3748
|
parent_ledger_entry_id?: string | undefined;
|
|
3803
3749
|
diff_stat?: string | undefined;
|
|
3804
|
-
correlation_id?: string | undefined;
|
|
3805
|
-
session_id?: string | undefined;
|
|
3806
3750
|
ledger_source?: "ai" | "human" | undefined;
|
|
3807
3751
|
}>;
|
|
3808
3752
|
declare const ruleDriftDetectedEventSchema: z.ZodObject<{
|
|
@@ -3891,9 +3835,9 @@ declare const ruleBaselineAcceptedEventSchema: z.ZodObject<{
|
|
|
3891
3835
|
event_type: "rule_baseline_accepted";
|
|
3892
3836
|
accepted_stable_ids: string[];
|
|
3893
3837
|
previous_revision?: string | undefined;
|
|
3894
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3895
3838
|
correlation_id?: string | undefined;
|
|
3896
3839
|
session_id?: string | undefined;
|
|
3840
|
+
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3897
3841
|
}, {
|
|
3898
3842
|
revision: string;
|
|
3899
3843
|
schema_version: 1;
|
|
@@ -3903,9 +3847,9 @@ declare const ruleBaselineAcceptedEventSchema: z.ZodObject<{
|
|
|
3903
3847
|
event_type: "rule_baseline_accepted";
|
|
3904
3848
|
accepted_stable_ids: string[];
|
|
3905
3849
|
previous_revision?: string | undefined;
|
|
3906
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3907
3850
|
correlation_id?: string | undefined;
|
|
3908
3851
|
session_id?: string | undefined;
|
|
3852
|
+
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
3909
3853
|
}>;
|
|
3910
3854
|
declare const baselineSyncedEventSchema: z.ZodObject<{
|
|
3911
3855
|
event_type: z.ZodLiteral<"baseline_synced">;
|
|
@@ -3981,14 +3925,274 @@ declare const mcpEventLedgerEventSchema: z.ZodObject<{
|
|
|
3981
3925
|
correlation_id?: string | undefined;
|
|
3982
3926
|
session_id?: string | undefined;
|
|
3983
3927
|
}>;
|
|
3984
|
-
declare const
|
|
3985
|
-
event_type: z.ZodLiteral<"
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3928
|
+
declare const reapplyCompletedEventSchema: z.ZodObject<{
|
|
3929
|
+
event_type: z.ZodLiteral<"reapply_completed">;
|
|
3930
|
+
preserved_ledger: z.ZodBoolean;
|
|
3931
|
+
preserved_meta: z.ZodBoolean;
|
|
3932
|
+
rules_count: z.ZodNumber;
|
|
3933
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
3934
|
+
id: z.ZodString;
|
|
3935
|
+
ts: z.ZodNumber;
|
|
3936
|
+
schema_version: z.ZodLiteral<1>;
|
|
3937
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3938
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
3939
|
+
}, "strip", z.ZodTypeAny, {
|
|
3940
|
+
schema_version: 1;
|
|
3941
|
+
ts: number;
|
|
3942
|
+
id: string;
|
|
3943
|
+
kind: "fabric-event";
|
|
3944
|
+
event_type: "reapply_completed";
|
|
3945
|
+
preserved_ledger: boolean;
|
|
3946
|
+
preserved_meta: boolean;
|
|
3947
|
+
rules_count: number;
|
|
3948
|
+
correlation_id?: string | undefined;
|
|
3949
|
+
session_id?: string | undefined;
|
|
3950
|
+
}, {
|
|
3951
|
+
schema_version: 1;
|
|
3952
|
+
ts: number;
|
|
3953
|
+
id: string;
|
|
3954
|
+
kind: "fabric-event";
|
|
3955
|
+
event_type: "reapply_completed";
|
|
3956
|
+
preserved_ledger: boolean;
|
|
3957
|
+
preserved_meta: boolean;
|
|
3958
|
+
rules_count: number;
|
|
3959
|
+
correlation_id?: string | undefined;
|
|
3960
|
+
session_id?: string | undefined;
|
|
3961
|
+
}>;
|
|
3962
|
+
declare const eventLedgerTruncatedEventSchema: z.ZodObject<{
|
|
3963
|
+
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
3964
|
+
byte_offset: z.ZodNumber;
|
|
3965
|
+
byte_length: z.ZodNumber;
|
|
3966
|
+
corrupted_path: z.ZodString;
|
|
3967
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
3968
|
+
id: z.ZodString;
|
|
3969
|
+
ts: z.ZodNumber;
|
|
3970
|
+
schema_version: z.ZodLiteral<1>;
|
|
3971
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
3973
|
+
}, "strip", z.ZodTypeAny, {
|
|
3974
|
+
schema_version: 1;
|
|
3975
|
+
ts: number;
|
|
3976
|
+
id: string;
|
|
3977
|
+
kind: "fabric-event";
|
|
3978
|
+
event_type: "event_ledger_truncated";
|
|
3979
|
+
byte_offset: number;
|
|
3980
|
+
byte_length: number;
|
|
3981
|
+
corrupted_path: string;
|
|
3982
|
+
correlation_id?: string | undefined;
|
|
3983
|
+
session_id?: string | undefined;
|
|
3984
|
+
}, {
|
|
3985
|
+
schema_version: 1;
|
|
3986
|
+
ts: number;
|
|
3987
|
+
id: string;
|
|
3988
|
+
kind: "fabric-event";
|
|
3989
|
+
event_type: "event_ledger_truncated";
|
|
3990
|
+
byte_offset: number;
|
|
3991
|
+
byte_length: number;
|
|
3992
|
+
corrupted_path: string;
|
|
3993
|
+
correlation_id?: string | undefined;
|
|
3994
|
+
session_id?: string | undefined;
|
|
3995
|
+
}>;
|
|
3996
|
+
declare const mcpConfigMigratedEventSchema: z.ZodObject<{
|
|
3997
|
+
event_type: z.ZodLiteral<"mcp_config_migrated">;
|
|
3998
|
+
source: z.ZodLiteral<"doctor_fix">;
|
|
3999
|
+
removed_from: z.ZodString;
|
|
4000
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4001
|
+
id: z.ZodString;
|
|
4002
|
+
ts: z.ZodNumber;
|
|
4003
|
+
schema_version: z.ZodLiteral<1>;
|
|
4004
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4005
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4006
|
+
}, "strip", z.ZodTypeAny, {
|
|
4007
|
+
schema_version: 1;
|
|
4008
|
+
source: "doctor_fix";
|
|
4009
|
+
ts: number;
|
|
4010
|
+
id: string;
|
|
4011
|
+
kind: "fabric-event";
|
|
4012
|
+
event_type: "mcp_config_migrated";
|
|
4013
|
+
removed_from: string;
|
|
4014
|
+
correlation_id?: string | undefined;
|
|
4015
|
+
session_id?: string | undefined;
|
|
4016
|
+
}, {
|
|
4017
|
+
schema_version: 1;
|
|
4018
|
+
source: "doctor_fix";
|
|
4019
|
+
ts: number;
|
|
4020
|
+
id: string;
|
|
4021
|
+
kind: "fabric-event";
|
|
4022
|
+
event_type: "mcp_config_migrated";
|
|
4023
|
+
removed_from: string;
|
|
4024
|
+
correlation_id?: string | undefined;
|
|
4025
|
+
session_id?: string | undefined;
|
|
4026
|
+
}>;
|
|
4027
|
+
declare const metaReconciledOnStartupEventSchema: z.ZodObject<{
|
|
4028
|
+
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
4029
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4030
|
+
duration_ms: z.ZodNumber;
|
|
4031
|
+
source: z.ZodLiteral<"reconcileRules">;
|
|
4032
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4033
|
+
id: z.ZodString;
|
|
4034
|
+
ts: z.ZodNumber;
|
|
4035
|
+
schema_version: z.ZodLiteral<1>;
|
|
4036
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4037
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4038
|
+
}, "strip", z.ZodTypeAny, {
|
|
4039
|
+
schema_version: 1;
|
|
4040
|
+
source: "reconcileRules";
|
|
4041
|
+
ts: number;
|
|
4042
|
+
id: string;
|
|
4043
|
+
kind: "fabric-event";
|
|
4044
|
+
event_type: "meta_reconciled_on_startup";
|
|
4045
|
+
reconciled_files: string[];
|
|
4046
|
+
duration_ms: number;
|
|
4047
|
+
correlation_id?: string | undefined;
|
|
4048
|
+
session_id?: string | undefined;
|
|
4049
|
+
}, {
|
|
4050
|
+
schema_version: 1;
|
|
4051
|
+
source: "reconcileRules";
|
|
4052
|
+
ts: number;
|
|
4053
|
+
id: string;
|
|
4054
|
+
kind: "fabric-event";
|
|
4055
|
+
event_type: "meta_reconciled_on_startup";
|
|
4056
|
+
reconciled_files: string[];
|
|
4057
|
+
duration_ms: number;
|
|
4058
|
+
correlation_id?: string | undefined;
|
|
4059
|
+
session_id?: string | undefined;
|
|
4060
|
+
}>;
|
|
4061
|
+
declare const metaReconciledEventSchema: z.ZodObject<{
|
|
4062
|
+
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
4063
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4064
|
+
duration_ms: z.ZodNumber;
|
|
4065
|
+
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
4066
|
+
source: z.ZodLiteral<"reconcileRules">;
|
|
4067
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4068
|
+
id: z.ZodString;
|
|
4069
|
+
ts: z.ZodNumber;
|
|
4070
|
+
schema_version: z.ZodLiteral<1>;
|
|
4071
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4072
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4073
|
+
}, "strip", z.ZodTypeAny, {
|
|
4074
|
+
schema_version: 1;
|
|
4075
|
+
source: "reconcileRules";
|
|
4076
|
+
ts: number;
|
|
4077
|
+
id: string;
|
|
4078
|
+
kind: "fabric-event";
|
|
4079
|
+
event_type: "meta_reconciled";
|
|
4080
|
+
reconciled_files: string[];
|
|
4081
|
+
duration_ms: number;
|
|
4082
|
+
trigger: "manual" | "doctor";
|
|
4083
|
+
correlation_id?: string | undefined;
|
|
4084
|
+
session_id?: string | undefined;
|
|
4085
|
+
}, {
|
|
4086
|
+
schema_version: 1;
|
|
4087
|
+
source: "reconcileRules";
|
|
4088
|
+
ts: number;
|
|
4089
|
+
id: string;
|
|
4090
|
+
kind: "fabric-event";
|
|
4091
|
+
event_type: "meta_reconciled";
|
|
4092
|
+
reconciled_files: string[];
|
|
4093
|
+
duration_ms: number;
|
|
4094
|
+
trigger: "manual" | "doctor";
|
|
4095
|
+
correlation_id?: string | undefined;
|
|
4096
|
+
session_id?: string | undefined;
|
|
4097
|
+
}>;
|
|
4098
|
+
declare const claudeSkillPathMigratedEventSchema: z.ZodObject<{
|
|
4099
|
+
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
4100
|
+
from: z.ZodString;
|
|
4101
|
+
to: z.ZodString;
|
|
4102
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4103
|
+
id: z.ZodString;
|
|
4104
|
+
ts: z.ZodNumber;
|
|
4105
|
+
schema_version: z.ZodLiteral<1>;
|
|
4106
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4107
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4108
|
+
}, "strip", z.ZodTypeAny, {
|
|
4109
|
+
schema_version: 1;
|
|
4110
|
+
ts: number;
|
|
4111
|
+
id: string;
|
|
4112
|
+
kind: "fabric-event";
|
|
4113
|
+
event_type: "claude_skill_path_migrated";
|
|
4114
|
+
from: string;
|
|
4115
|
+
to: string;
|
|
4116
|
+
correlation_id?: string | undefined;
|
|
4117
|
+
session_id?: string | undefined;
|
|
4118
|
+
}, {
|
|
4119
|
+
schema_version: 1;
|
|
4120
|
+
ts: number;
|
|
4121
|
+
id: string;
|
|
4122
|
+
kind: "fabric-event";
|
|
4123
|
+
event_type: "claude_skill_path_migrated";
|
|
4124
|
+
from: string;
|
|
4125
|
+
to: string;
|
|
4126
|
+
correlation_id?: string | undefined;
|
|
4127
|
+
session_id?: string | undefined;
|
|
4128
|
+
}>;
|
|
4129
|
+
declare const claudeHookPathMigratedEventSchema: z.ZodObject<{
|
|
4130
|
+
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
4131
|
+
from: z.ZodString;
|
|
4132
|
+
to: z.ZodString;
|
|
4133
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4134
|
+
id: z.ZodString;
|
|
4135
|
+
ts: z.ZodNumber;
|
|
4136
|
+
schema_version: z.ZodLiteral<1>;
|
|
4137
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
}, "strip", z.ZodTypeAny, {
|
|
4140
|
+
schema_version: 1;
|
|
4141
|
+
ts: number;
|
|
4142
|
+
id: string;
|
|
4143
|
+
kind: "fabric-event";
|
|
4144
|
+
event_type: "claude_hook_path_migrated";
|
|
4145
|
+
from: string;
|
|
4146
|
+
to: string;
|
|
4147
|
+
correlation_id?: string | undefined;
|
|
4148
|
+
session_id?: string | undefined;
|
|
4149
|
+
}, {
|
|
4150
|
+
schema_version: 1;
|
|
4151
|
+
ts: number;
|
|
4152
|
+
id: string;
|
|
4153
|
+
kind: "fabric-event";
|
|
4154
|
+
event_type: "claude_hook_path_migrated";
|
|
4155
|
+
from: string;
|
|
4156
|
+
to: string;
|
|
4157
|
+
correlation_id?: string | undefined;
|
|
4158
|
+
session_id?: string | undefined;
|
|
4159
|
+
}>;
|
|
4160
|
+
declare const legacyClientPathPresentEventSchema: z.ZodObject<{
|
|
4161
|
+
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4162
|
+
removed: z.ZodArray<z.ZodString, "many">;
|
|
4163
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4164
|
+
id: z.ZodString;
|
|
4165
|
+
ts: z.ZodNumber;
|
|
4166
|
+
schema_version: z.ZodLiteral<1>;
|
|
4167
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4168
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4169
|
+
}, "strip", z.ZodTypeAny, {
|
|
4170
|
+
schema_version: 1;
|
|
4171
|
+
ts: number;
|
|
4172
|
+
id: string;
|
|
4173
|
+
kind: "fabric-event";
|
|
4174
|
+
event_type: "legacy_client_path_present";
|
|
4175
|
+
removed: string[];
|
|
4176
|
+
correlation_id?: string | undefined;
|
|
4177
|
+
session_id?: string | undefined;
|
|
4178
|
+
}, {
|
|
4179
|
+
schema_version: 1;
|
|
4180
|
+
ts: number;
|
|
4181
|
+
id: string;
|
|
4182
|
+
kind: "fabric-event";
|
|
4183
|
+
event_type: "legacy_client_path_present";
|
|
4184
|
+
removed: string[];
|
|
4185
|
+
correlation_id?: string | undefined;
|
|
4186
|
+
session_id?: string | undefined;
|
|
4187
|
+
}>;
|
|
4188
|
+
declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
4189
|
+
event_type: z.ZodLiteral<"rule_context_planned">;
|
|
4190
|
+
target_paths: z.ZodArray<z.ZodString, "many">;
|
|
4191
|
+
required_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4192
|
+
ai_selectable_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4193
|
+
final_stable_ids: z.ZodArray<z.ZodString, "many">;
|
|
4194
|
+
selection_token: z.ZodOptional<z.ZodString>;
|
|
4195
|
+
client_hash: z.ZodOptional<z.ZodString>;
|
|
3992
4196
|
intent: z.ZodOptional<z.ZodString>;
|
|
3993
4197
|
known_tech: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3994
4198
|
diagnostics: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -4000,38 +4204,38 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4000
4204
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4001
4205
|
}, "strip", z.ZodTypeAny, {
|
|
4002
4206
|
schema_version: 1;
|
|
4207
|
+
required_stable_ids: string[];
|
|
4208
|
+
ai_selectable_stable_ids: string[];
|
|
4003
4209
|
ts: number;
|
|
4004
4210
|
id: string;
|
|
4005
4211
|
kind: "fabric-event";
|
|
4006
4212
|
event_type: "rule_context_planned";
|
|
4007
4213
|
target_paths: string[];
|
|
4008
|
-
required_stable_ids: string[];
|
|
4009
|
-
ai_selectable_stable_ids: string[];
|
|
4010
4214
|
final_stable_ids: string[];
|
|
4215
|
+
known_tech?: string[] | undefined;
|
|
4011
4216
|
intent?: string | undefined;
|
|
4012
|
-
selection_token?: string | undefined;
|
|
4013
4217
|
client_hash?: string | undefined;
|
|
4014
|
-
known_tech?: string[] | undefined;
|
|
4015
|
-
diagnostics?: unknown[] | undefined;
|
|
4016
4218
|
correlation_id?: string | undefined;
|
|
4017
4219
|
session_id?: string | undefined;
|
|
4220
|
+
selection_token?: string | undefined;
|
|
4221
|
+
diagnostics?: unknown[] | undefined;
|
|
4018
4222
|
}, {
|
|
4019
4223
|
schema_version: 1;
|
|
4224
|
+
required_stable_ids: string[];
|
|
4225
|
+
ai_selectable_stable_ids: string[];
|
|
4020
4226
|
ts: number;
|
|
4021
4227
|
id: string;
|
|
4022
4228
|
kind: "fabric-event";
|
|
4023
4229
|
event_type: "rule_context_planned";
|
|
4024
4230
|
target_paths: string[];
|
|
4025
|
-
required_stable_ids: string[];
|
|
4026
|
-
ai_selectable_stable_ids: string[];
|
|
4027
4231
|
final_stable_ids: string[];
|
|
4232
|
+
known_tech?: string[] | undefined;
|
|
4028
4233
|
intent?: string | undefined;
|
|
4029
|
-
selection_token?: string | undefined;
|
|
4030
4234
|
client_hash?: string | undefined;
|
|
4031
|
-
known_tech?: string[] | undefined;
|
|
4032
|
-
diagnostics?: unknown[] | undefined;
|
|
4033
4235
|
correlation_id?: string | undefined;
|
|
4034
4236
|
session_id?: string | undefined;
|
|
4237
|
+
selection_token?: string | undefined;
|
|
4238
|
+
diagnostics?: unknown[] | undefined;
|
|
4035
4239
|
}>, z.ZodObject<{
|
|
4036
4240
|
event_type: z.ZodLiteral<"rule_selection">;
|
|
4037
4241
|
selection_token: z.ZodString;
|
|
@@ -4051,34 +4255,34 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4051
4255
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4052
4256
|
}, "strip", z.ZodTypeAny, {
|
|
4053
4257
|
schema_version: 1;
|
|
4258
|
+
selection_token: string;
|
|
4259
|
+
required_stable_ids: string[];
|
|
4260
|
+
ai_selectable_stable_ids: string[];
|
|
4261
|
+
ai_selected_stable_ids: string[];
|
|
4262
|
+
ai_selection_reasons: Record<string, string>;
|
|
4054
4263
|
ts: number;
|
|
4055
4264
|
id: string;
|
|
4056
4265
|
kind: "fabric-event";
|
|
4057
4266
|
event_type: "rule_selection";
|
|
4058
4267
|
target_paths: string[];
|
|
4059
|
-
required_stable_ids: string[];
|
|
4060
|
-
ai_selectable_stable_ids: string[];
|
|
4061
4268
|
final_stable_ids: string[];
|
|
4062
|
-
selection_token: string;
|
|
4063
|
-
ai_selected_stable_ids: string[];
|
|
4064
|
-
ai_selection_reasons: Record<string, string>;
|
|
4065
4269
|
rejected_stable_ids: string[];
|
|
4066
4270
|
ignored_stable_ids: string[];
|
|
4067
4271
|
correlation_id?: string | undefined;
|
|
4068
4272
|
session_id?: string | undefined;
|
|
4069
4273
|
}, {
|
|
4070
4274
|
schema_version: 1;
|
|
4275
|
+
selection_token: string;
|
|
4276
|
+
required_stable_ids: string[];
|
|
4277
|
+
ai_selectable_stable_ids: string[];
|
|
4278
|
+
ai_selected_stable_ids: string[];
|
|
4279
|
+
ai_selection_reasons: Record<string, string>;
|
|
4071
4280
|
ts: number;
|
|
4072
4281
|
id: string;
|
|
4073
4282
|
kind: "fabric-event";
|
|
4074
4283
|
event_type: "rule_selection";
|
|
4075
4284
|
target_paths: string[];
|
|
4076
|
-
required_stable_ids: string[];
|
|
4077
|
-
ai_selectable_stable_ids: string[];
|
|
4078
4285
|
final_stable_ids: string[];
|
|
4079
|
-
selection_token: string;
|
|
4080
|
-
ai_selected_stable_ids: string[];
|
|
4081
|
-
ai_selection_reasons: Record<string, string>;
|
|
4082
4286
|
rejected_stable_ids: string[];
|
|
4083
4287
|
ignored_stable_ids: string[];
|
|
4084
4288
|
correlation_id?: string | undefined;
|
|
@@ -4099,32 +4303,32 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4099
4303
|
session_id: z.ZodOptional<z.ZodString>;
|
|
4100
4304
|
}, "strip", z.ZodTypeAny, {
|
|
4101
4305
|
schema_version: 1;
|
|
4306
|
+
selection_token: string;
|
|
4307
|
+
ai_selected_stable_ids: string[];
|
|
4102
4308
|
ts: number;
|
|
4103
4309
|
id: string;
|
|
4104
4310
|
kind: "fabric-event";
|
|
4105
4311
|
event_type: "rule_sections_fetched";
|
|
4106
4312
|
final_stable_ids: string[];
|
|
4107
|
-
selection_token: string;
|
|
4108
|
-
ai_selected_stable_ids: string[];
|
|
4109
4313
|
requested_sections: string[];
|
|
4110
|
-
target_paths?: string[] | undefined;
|
|
4111
|
-
diagnostics?: unknown[] | undefined;
|
|
4112
4314
|
correlation_id?: string | undefined;
|
|
4113
4315
|
session_id?: string | undefined;
|
|
4316
|
+
diagnostics?: unknown[] | undefined;
|
|
4317
|
+
target_paths?: string[] | undefined;
|
|
4114
4318
|
}, {
|
|
4115
4319
|
schema_version: 1;
|
|
4320
|
+
selection_token: string;
|
|
4321
|
+
ai_selected_stable_ids: string[];
|
|
4116
4322
|
ts: number;
|
|
4117
4323
|
id: string;
|
|
4118
4324
|
kind: "fabric-event";
|
|
4119
4325
|
event_type: "rule_sections_fetched";
|
|
4120
4326
|
final_stable_ids: string[];
|
|
4121
|
-
selection_token: string;
|
|
4122
|
-
ai_selected_stable_ids: string[];
|
|
4123
4327
|
requested_sections: string[];
|
|
4124
|
-
target_paths?: string[] | undefined;
|
|
4125
|
-
diagnostics?: unknown[] | undefined;
|
|
4126
4328
|
correlation_id?: string | undefined;
|
|
4127
4329
|
session_id?: string | undefined;
|
|
4330
|
+
diagnostics?: unknown[] | undefined;
|
|
4331
|
+
target_paths?: string[] | undefined;
|
|
4128
4332
|
}>, z.ZodObject<{
|
|
4129
4333
|
event_type: z.ZodLiteral<"edit_intent_checked">;
|
|
4130
4334
|
path: z.ZodString;
|
|
@@ -4149,41 +4353,41 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4149
4353
|
path: string;
|
|
4150
4354
|
ledger_entry_id: string;
|
|
4151
4355
|
schema_version: 1;
|
|
4356
|
+
intent: string;
|
|
4152
4357
|
ts: number;
|
|
4153
4358
|
id: string;
|
|
4154
|
-
intent: string;
|
|
4155
4359
|
kind: "fabric-event";
|
|
4156
4360
|
event_type: "edit_intent_checked";
|
|
4157
4361
|
compliant: boolean;
|
|
4158
4362
|
matched_rule_context_ts: number | null;
|
|
4159
4363
|
window_ms: number;
|
|
4364
|
+
correlation_id?: string | undefined;
|
|
4365
|
+
session_id?: string | undefined;
|
|
4160
4366
|
annotation?: string | undefined;
|
|
4161
4367
|
commit_sha?: string | undefined;
|
|
4162
4368
|
parent_sha?: string | undefined;
|
|
4163
4369
|
parent_ledger_entry_id?: string | undefined;
|
|
4164
4370
|
diff_stat?: string | undefined;
|
|
4165
|
-
correlation_id?: string | undefined;
|
|
4166
|
-
session_id?: string | undefined;
|
|
4167
4371
|
ledger_source?: "ai" | "human" | undefined;
|
|
4168
4372
|
}, {
|
|
4169
4373
|
path: string;
|
|
4170
4374
|
ledger_entry_id: string;
|
|
4171
4375
|
schema_version: 1;
|
|
4376
|
+
intent: string;
|
|
4172
4377
|
ts: number;
|
|
4173
4378
|
id: string;
|
|
4174
|
-
intent: string;
|
|
4175
4379
|
kind: "fabric-event";
|
|
4176
4380
|
event_type: "edit_intent_checked";
|
|
4177
4381
|
compliant: boolean;
|
|
4178
4382
|
matched_rule_context_ts: number | null;
|
|
4179
4383
|
window_ms: number;
|
|
4384
|
+
correlation_id?: string | undefined;
|
|
4385
|
+
session_id?: string | undefined;
|
|
4180
4386
|
annotation?: string | undefined;
|
|
4181
4387
|
commit_sha?: string | undefined;
|
|
4182
4388
|
parent_sha?: string | undefined;
|
|
4183
4389
|
parent_ledger_entry_id?: string | undefined;
|
|
4184
4390
|
diff_stat?: string | undefined;
|
|
4185
|
-
correlation_id?: string | undefined;
|
|
4186
|
-
session_id?: string | undefined;
|
|
4187
4391
|
ledger_source?: "ai" | "human" | undefined;
|
|
4188
4392
|
}>, z.ZodObject<{
|
|
4189
4393
|
event_type: z.ZodLiteral<"rule_drift_detected">;
|
|
@@ -4270,9 +4474,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4270
4474
|
event_type: "rule_baseline_accepted";
|
|
4271
4475
|
accepted_stable_ids: string[];
|
|
4272
4476
|
previous_revision?: string | undefined;
|
|
4273
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4274
4477
|
correlation_id?: string | undefined;
|
|
4275
4478
|
session_id?: string | undefined;
|
|
4479
|
+
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4276
4480
|
}, {
|
|
4277
4481
|
revision: string;
|
|
4278
4482
|
schema_version: 1;
|
|
@@ -4282,9 +4486,9 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4282
4486
|
event_type: "rule_baseline_accepted";
|
|
4283
4487
|
accepted_stable_ids: string[];
|
|
4284
4488
|
previous_revision?: string | undefined;
|
|
4285
|
-
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4286
4489
|
correlation_id?: string | undefined;
|
|
4287
4490
|
session_id?: string | undefined;
|
|
4491
|
+
source?: "doctor_fix" | "sync_meta" | undefined;
|
|
4288
4492
|
}>, z.ZodObject<{
|
|
4289
4493
|
event_type: z.ZodLiteral<"baseline_synced">;
|
|
4290
4494
|
revision: z.ZodString;
|
|
@@ -4357,6 +4561,258 @@ declare const eventLedgerEventSchema: z.ZodDiscriminatedUnion<"event_type", [z.Z
|
|
|
4357
4561
|
message?: unknown;
|
|
4358
4562
|
correlation_id?: string | undefined;
|
|
4359
4563
|
session_id?: string | undefined;
|
|
4564
|
+
}>, z.ZodObject<{
|
|
4565
|
+
event_type: z.ZodLiteral<"reapply_completed">;
|
|
4566
|
+
preserved_ledger: z.ZodBoolean;
|
|
4567
|
+
preserved_meta: z.ZodBoolean;
|
|
4568
|
+
rules_count: z.ZodNumber;
|
|
4569
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4570
|
+
id: z.ZodString;
|
|
4571
|
+
ts: z.ZodNumber;
|
|
4572
|
+
schema_version: z.ZodLiteral<1>;
|
|
4573
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4574
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4575
|
+
}, "strip", z.ZodTypeAny, {
|
|
4576
|
+
schema_version: 1;
|
|
4577
|
+
ts: number;
|
|
4578
|
+
id: string;
|
|
4579
|
+
kind: "fabric-event";
|
|
4580
|
+
event_type: "reapply_completed";
|
|
4581
|
+
preserved_ledger: boolean;
|
|
4582
|
+
preserved_meta: boolean;
|
|
4583
|
+
rules_count: number;
|
|
4584
|
+
correlation_id?: string | undefined;
|
|
4585
|
+
session_id?: string | undefined;
|
|
4586
|
+
}, {
|
|
4587
|
+
schema_version: 1;
|
|
4588
|
+
ts: number;
|
|
4589
|
+
id: string;
|
|
4590
|
+
kind: "fabric-event";
|
|
4591
|
+
event_type: "reapply_completed";
|
|
4592
|
+
preserved_ledger: boolean;
|
|
4593
|
+
preserved_meta: boolean;
|
|
4594
|
+
rules_count: number;
|
|
4595
|
+
correlation_id?: string | undefined;
|
|
4596
|
+
session_id?: string | undefined;
|
|
4597
|
+
}>, z.ZodObject<{
|
|
4598
|
+
event_type: z.ZodLiteral<"event_ledger_truncated">;
|
|
4599
|
+
byte_offset: z.ZodNumber;
|
|
4600
|
+
byte_length: z.ZodNumber;
|
|
4601
|
+
corrupted_path: z.ZodString;
|
|
4602
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4603
|
+
id: z.ZodString;
|
|
4604
|
+
ts: z.ZodNumber;
|
|
4605
|
+
schema_version: z.ZodLiteral<1>;
|
|
4606
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4607
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4608
|
+
}, "strip", z.ZodTypeAny, {
|
|
4609
|
+
schema_version: 1;
|
|
4610
|
+
ts: number;
|
|
4611
|
+
id: string;
|
|
4612
|
+
kind: "fabric-event";
|
|
4613
|
+
event_type: "event_ledger_truncated";
|
|
4614
|
+
byte_offset: number;
|
|
4615
|
+
byte_length: number;
|
|
4616
|
+
corrupted_path: string;
|
|
4617
|
+
correlation_id?: string | undefined;
|
|
4618
|
+
session_id?: string | undefined;
|
|
4619
|
+
}, {
|
|
4620
|
+
schema_version: 1;
|
|
4621
|
+
ts: number;
|
|
4622
|
+
id: string;
|
|
4623
|
+
kind: "fabric-event";
|
|
4624
|
+
event_type: "event_ledger_truncated";
|
|
4625
|
+
byte_offset: number;
|
|
4626
|
+
byte_length: number;
|
|
4627
|
+
corrupted_path: string;
|
|
4628
|
+
correlation_id?: string | undefined;
|
|
4629
|
+
session_id?: string | undefined;
|
|
4630
|
+
}>, z.ZodObject<{
|
|
4631
|
+
event_type: z.ZodLiteral<"mcp_config_migrated">;
|
|
4632
|
+
source: z.ZodLiteral<"doctor_fix">;
|
|
4633
|
+
removed_from: z.ZodString;
|
|
4634
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4635
|
+
id: z.ZodString;
|
|
4636
|
+
ts: z.ZodNumber;
|
|
4637
|
+
schema_version: z.ZodLiteral<1>;
|
|
4638
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4640
|
+
}, "strip", z.ZodTypeAny, {
|
|
4641
|
+
schema_version: 1;
|
|
4642
|
+
source: "doctor_fix";
|
|
4643
|
+
ts: number;
|
|
4644
|
+
id: string;
|
|
4645
|
+
kind: "fabric-event";
|
|
4646
|
+
event_type: "mcp_config_migrated";
|
|
4647
|
+
removed_from: string;
|
|
4648
|
+
correlation_id?: string | undefined;
|
|
4649
|
+
session_id?: string | undefined;
|
|
4650
|
+
}, {
|
|
4651
|
+
schema_version: 1;
|
|
4652
|
+
source: "doctor_fix";
|
|
4653
|
+
ts: number;
|
|
4654
|
+
id: string;
|
|
4655
|
+
kind: "fabric-event";
|
|
4656
|
+
event_type: "mcp_config_migrated";
|
|
4657
|
+
removed_from: string;
|
|
4658
|
+
correlation_id?: string | undefined;
|
|
4659
|
+
session_id?: string | undefined;
|
|
4660
|
+
}>, z.ZodObject<{
|
|
4661
|
+
event_type: z.ZodLiteral<"meta_reconciled_on_startup">;
|
|
4662
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4663
|
+
duration_ms: z.ZodNumber;
|
|
4664
|
+
source: z.ZodLiteral<"reconcileRules">;
|
|
4665
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4666
|
+
id: z.ZodString;
|
|
4667
|
+
ts: z.ZodNumber;
|
|
4668
|
+
schema_version: z.ZodLiteral<1>;
|
|
4669
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4670
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4671
|
+
}, "strip", z.ZodTypeAny, {
|
|
4672
|
+
schema_version: 1;
|
|
4673
|
+
source: "reconcileRules";
|
|
4674
|
+
ts: number;
|
|
4675
|
+
id: string;
|
|
4676
|
+
kind: "fabric-event";
|
|
4677
|
+
event_type: "meta_reconciled_on_startup";
|
|
4678
|
+
reconciled_files: string[];
|
|
4679
|
+
duration_ms: number;
|
|
4680
|
+
correlation_id?: string | undefined;
|
|
4681
|
+
session_id?: string | undefined;
|
|
4682
|
+
}, {
|
|
4683
|
+
schema_version: 1;
|
|
4684
|
+
source: "reconcileRules";
|
|
4685
|
+
ts: number;
|
|
4686
|
+
id: string;
|
|
4687
|
+
kind: "fabric-event";
|
|
4688
|
+
event_type: "meta_reconciled_on_startup";
|
|
4689
|
+
reconciled_files: string[];
|
|
4690
|
+
duration_ms: number;
|
|
4691
|
+
correlation_id?: string | undefined;
|
|
4692
|
+
session_id?: string | undefined;
|
|
4693
|
+
}>, z.ZodObject<{
|
|
4694
|
+
event_type: z.ZodLiteral<"meta_reconciled">;
|
|
4695
|
+
reconciled_files: z.ZodArray<z.ZodString, "many">;
|
|
4696
|
+
duration_ms: z.ZodNumber;
|
|
4697
|
+
trigger: z.ZodEnum<["doctor", "manual"]>;
|
|
4698
|
+
source: z.ZodLiteral<"reconcileRules">;
|
|
4699
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4700
|
+
id: z.ZodString;
|
|
4701
|
+
ts: z.ZodNumber;
|
|
4702
|
+
schema_version: z.ZodLiteral<1>;
|
|
4703
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4704
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4705
|
+
}, "strip", z.ZodTypeAny, {
|
|
4706
|
+
schema_version: 1;
|
|
4707
|
+
source: "reconcileRules";
|
|
4708
|
+
ts: number;
|
|
4709
|
+
id: string;
|
|
4710
|
+
kind: "fabric-event";
|
|
4711
|
+
event_type: "meta_reconciled";
|
|
4712
|
+
reconciled_files: string[];
|
|
4713
|
+
duration_ms: number;
|
|
4714
|
+
trigger: "manual" | "doctor";
|
|
4715
|
+
correlation_id?: string | undefined;
|
|
4716
|
+
session_id?: string | undefined;
|
|
4717
|
+
}, {
|
|
4718
|
+
schema_version: 1;
|
|
4719
|
+
source: "reconcileRules";
|
|
4720
|
+
ts: number;
|
|
4721
|
+
id: string;
|
|
4722
|
+
kind: "fabric-event";
|
|
4723
|
+
event_type: "meta_reconciled";
|
|
4724
|
+
reconciled_files: string[];
|
|
4725
|
+
duration_ms: number;
|
|
4726
|
+
trigger: "manual" | "doctor";
|
|
4727
|
+
correlation_id?: string | undefined;
|
|
4728
|
+
session_id?: string | undefined;
|
|
4729
|
+
}>, z.ZodObject<{
|
|
4730
|
+
event_type: z.ZodLiteral<"claude_skill_path_migrated">;
|
|
4731
|
+
from: z.ZodString;
|
|
4732
|
+
to: z.ZodString;
|
|
4733
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4734
|
+
id: z.ZodString;
|
|
4735
|
+
ts: z.ZodNumber;
|
|
4736
|
+
schema_version: z.ZodLiteral<1>;
|
|
4737
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4738
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
}, "strip", z.ZodTypeAny, {
|
|
4740
|
+
schema_version: 1;
|
|
4741
|
+
ts: number;
|
|
4742
|
+
id: string;
|
|
4743
|
+
kind: "fabric-event";
|
|
4744
|
+
event_type: "claude_skill_path_migrated";
|
|
4745
|
+
from: string;
|
|
4746
|
+
to: string;
|
|
4747
|
+
correlation_id?: string | undefined;
|
|
4748
|
+
session_id?: string | undefined;
|
|
4749
|
+
}, {
|
|
4750
|
+
schema_version: 1;
|
|
4751
|
+
ts: number;
|
|
4752
|
+
id: string;
|
|
4753
|
+
kind: "fabric-event";
|
|
4754
|
+
event_type: "claude_skill_path_migrated";
|
|
4755
|
+
from: string;
|
|
4756
|
+
to: string;
|
|
4757
|
+
correlation_id?: string | undefined;
|
|
4758
|
+
session_id?: string | undefined;
|
|
4759
|
+
}>, z.ZodObject<{
|
|
4760
|
+
event_type: z.ZodLiteral<"claude_hook_path_migrated">;
|
|
4761
|
+
from: z.ZodString;
|
|
4762
|
+
to: z.ZodString;
|
|
4763
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4764
|
+
id: z.ZodString;
|
|
4765
|
+
ts: z.ZodNumber;
|
|
4766
|
+
schema_version: z.ZodLiteral<1>;
|
|
4767
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4768
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4769
|
+
}, "strip", z.ZodTypeAny, {
|
|
4770
|
+
schema_version: 1;
|
|
4771
|
+
ts: number;
|
|
4772
|
+
id: string;
|
|
4773
|
+
kind: "fabric-event";
|
|
4774
|
+
event_type: "claude_hook_path_migrated";
|
|
4775
|
+
from: string;
|
|
4776
|
+
to: string;
|
|
4777
|
+
correlation_id?: string | undefined;
|
|
4778
|
+
session_id?: string | undefined;
|
|
4779
|
+
}, {
|
|
4780
|
+
schema_version: 1;
|
|
4781
|
+
ts: number;
|
|
4782
|
+
id: string;
|
|
4783
|
+
kind: "fabric-event";
|
|
4784
|
+
event_type: "claude_hook_path_migrated";
|
|
4785
|
+
from: string;
|
|
4786
|
+
to: string;
|
|
4787
|
+
correlation_id?: string | undefined;
|
|
4788
|
+
session_id?: string | undefined;
|
|
4789
|
+
}>, z.ZodObject<{
|
|
4790
|
+
event_type: z.ZodLiteral<"legacy_client_path_present">;
|
|
4791
|
+
removed: z.ZodArray<z.ZodString, "many">;
|
|
4792
|
+
kind: z.ZodLiteral<"fabric-event">;
|
|
4793
|
+
id: z.ZodString;
|
|
4794
|
+
ts: z.ZodNumber;
|
|
4795
|
+
schema_version: z.ZodLiteral<1>;
|
|
4796
|
+
correlation_id: z.ZodOptional<z.ZodString>;
|
|
4797
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
4798
|
+
}, "strip", z.ZodTypeAny, {
|
|
4799
|
+
schema_version: 1;
|
|
4800
|
+
ts: number;
|
|
4801
|
+
id: string;
|
|
4802
|
+
kind: "fabric-event";
|
|
4803
|
+
event_type: "legacy_client_path_present";
|
|
4804
|
+
removed: string[];
|
|
4805
|
+
correlation_id?: string | undefined;
|
|
4806
|
+
session_id?: string | undefined;
|
|
4807
|
+
}, {
|
|
4808
|
+
schema_version: 1;
|
|
4809
|
+
ts: number;
|
|
4810
|
+
id: string;
|
|
4811
|
+
kind: "fabric-event";
|
|
4812
|
+
event_type: "legacy_client_path_present";
|
|
4813
|
+
removed: string[];
|
|
4814
|
+
correlation_id?: string | undefined;
|
|
4815
|
+
session_id?: string | undefined;
|
|
4360
4816
|
}>]>;
|
|
4361
4817
|
type RuleContextPlannedEvent = z.infer<typeof ruleContextPlannedEventSchema>;
|
|
4362
4818
|
type RuleSelectionEvent = z.infer<typeof ruleSelectionEventSchema>;
|
|
@@ -4366,9 +4822,17 @@ type RuleDriftDetectedEvent = z.infer<typeof ruleDriftDetectedEventSchema>;
|
|
|
4366
4822
|
type RuleBaselineAcceptedEvent = z.infer<typeof ruleBaselineAcceptedEventSchema>;
|
|
4367
4823
|
type BaselineSyncedEvent = z.infer<typeof baselineSyncedEventSchema>;
|
|
4368
4824
|
type McpEventLedgerEvent = z.infer<typeof mcpEventLedgerEventSchema>;
|
|
4369
|
-
type
|
|
4825
|
+
type ReapplyCompletedEvent = z.infer<typeof reapplyCompletedEventSchema>;
|
|
4826
|
+
type EventLedgerTruncatedEvent = z.infer<typeof eventLedgerTruncatedEventSchema>;
|
|
4827
|
+
type McpConfigMigratedEvent = z.infer<typeof mcpConfigMigratedEventSchema>;
|
|
4828
|
+
type MetaReconciledOnStartupEvent = z.infer<typeof metaReconciledOnStartupEventSchema>;
|
|
4829
|
+
type MetaReconciledEvent = z.infer<typeof metaReconciledEventSchema>;
|
|
4830
|
+
type ClaudeSkillPathMigratedEvent = z.infer<typeof claudeSkillPathMigratedEventSchema>;
|
|
4831
|
+
type ClaudeHookPathMigratedEvent = z.infer<typeof claudeHookPathMigratedEventSchema>;
|
|
4832
|
+
type LegacyClientPathPresentEvent = z.infer<typeof legacyClientPathPresentEventSchema>;
|
|
4833
|
+
type EventLedgerEvent = RuleContextPlannedEvent | RuleSelectionEvent | RuleSectionsFetchedEvent | EditIntentCheckedEvent | RuleDriftDetectedEvent | RuleBaselineAcceptedEvent | BaselineSyncedEvent | McpEventLedgerEvent | ReapplyCompletedEvent | EventLedgerTruncatedEvent | McpConfigMigratedEvent | MetaReconciledOnStartupEvent | MetaReconciledEvent | ClaudeSkillPathMigratedEvent | ClaudeHookPathMigratedEvent | LegacyClientPathPresentEvent;
|
|
4370
4834
|
type EventLedgerEventType = EventLedgerEvent["event_type"];
|
|
4371
4835
|
type EventLedgerEventInputFor<T extends EventLedgerEvent> = T extends EventLedgerEvent ? Omit<T, "kind" | "id" | "ts" | "schema_version" | "correlation_id" | "session_id"> & Partial<Pick<T, "id" | "ts" | "correlation_id" | "session_id">> : never;
|
|
4372
4836
|
type EventLedgerEventInput = EventLedgerEventInputFor<EventLedgerEvent>;
|
|
4373
4837
|
|
|
4374
|
-
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type BaselineSyncedEvent, type CandidateFileEntry, type CandidateFileFamily, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, 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 McpEventLedgerEvent, type MetaUpdatedEvent, RULE_TEST_INDEX_SCHEMA_VERSION, type RuleBaselineAcceptedEvent, type RuleContextPlannedEvent, type RuleDriftDetectedEvent, type RuleSectionsFetchedEvent, type RuleSelectionEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema,
|
|
4838
|
+
export { AGENTS_META_IDENTITY_SOURCES, AGENTS_META_LAYERS, AGENTS_META_TOPOLOGY_TYPES, AgentsIdentitySource, AgentsLayer, AgentsMeta, AgentsMetaNode, AgentsTopologyType, type BaselineSyncedEvent, type CandidateFileEntry, type CandidateFileFamily, type ClaudeHookPathMigratedEvent, type ClaudeSkillPathMigratedEvent, type DriftDetectedEvent, type EditIntentCheckedEvent, type EventLedgerEvent, type EventLedgerEventInput, type EventLedgerEventType, type EventLedgerTruncatedEvent, 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 LegacyClientPathPresentEvent, type LockApprovedEvent, type LockDriftEvent, type McpConfigMigratedEvent, type McpEventLedgerEvent, type MetaReconciledEvent, type MetaReconciledOnStartupEvent, type MetaUpdatedEvent, RULE_TEST_INDEX_SCHEMA_VERSION, type ReapplyCompletedEvent, type RuleBaselineAcceptedEvent, type RuleContextPlannedEvent, type RuleDriftDetectedEvent, type RuleSectionsFetchedEvent, type RuleSelectionEvent, type RuleTestIndex, type RuleTestLink, type RuleTestOrphanAnnotation, agentsIdentitySourceSchema, agentsLayerSchema, agentsMetaNodeSchema, agentsMetaSchema, agentsTopologyTypeSchema, aiLedgerEntrySchema, auditModeSchema, baselineSyncedEventSchema, candidateFileEntrySchema, claudeHookPathMigratedEventSchema, claudeSkillPathMigratedEventSchema, clientPathsSchema, deriveAgentsMetaIdentitySource, deriveAgentsMetaLayer, deriveAgentsMetaStableId, deriveAgentsMetaTopologyType, driftDetectedEventSchema, editIntentCheckedEventSchema, eventLedgerEventSchema, eventLedgerTruncatedEventSchema, fabricConfigSchema, fabricEventSchema, forensicAssertionCoverageSchema, forensicAssertionSchema, forensicCodeSampleSchema, forensicEntryPointSchema, forensicEvidenceAnchorSchema, forensicFrameworkSchema, forensicReadmeSchema, forensicReportSchema, forensicSamplingBudgetSchema, forensicTopologySchema, humanLedgerEntrySchema, humanLockEntrySchema, humanLockFileSchema, initContextDomainGroupSchema, initContextFrameworkSchema, initContextInterviewTrailEntrySchema, initContextInvariantConfidenceSnapshotSchema, initContextInvariantSchema, initContextSchema, initContextSourceEvidenceSchema, ledgerAppendedEventSchema, ledgerEntrySchema, legacyClientPathPresentEventSchema, lockApprovedEventSchema, lockDriftEventSchema, mcpConfigMigratedEventSchema, mcpEventLedgerEventSchema, mcpPayloadLimitsSchema, metaReconciledEventSchema, metaReconciledOnStartupEventSchema, metaUpdatedEventSchema, reapplyCompletedEventSchema, ruleBaselineAcceptedEventSchema, ruleContextPlannedEventSchema, ruleDescriptionIndexItemSchema, ruleDescriptionSchema, ruleDriftDetectedEventSchema, ruleSectionsFetchedEventSchema, ruleSelectionEventSchema, ruleTestIndexSchema, ruleTestLinkSchema, ruleTestOrphanAnnotationSchema, withDerivedAgentsMetaNodeDefaults };
|