@peasant-labs/schema 0.1.0-rc6 → 0.1.0-rc8

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.
@@ -117,6 +117,49 @@ export declare const zAnnotatorSummary: z.ZodObject<{
117
117
  status: z.ZodString;
118
118
  }, z.core.$strip>;
119
119
  export type AnnotatorSummary = z.infer<typeof zAnnotatorSummary>;
120
+ /**
121
+ * Association Conclusion
122
+ *
123
+ * Producer-supplied conclusion for a session-to-commit association: confirmed or candidate
124
+ */
125
+ export declare const zAssociationConclusion: z.ZodEnum<{
126
+ candidate: "candidate";
127
+ confirmed: "confirmed";
128
+ }>;
129
+ export type AssociationConclusion = z.infer<typeof zAssociationConclusion>;
130
+ /**
131
+ * Association Evidence Kind
132
+ *
133
+ * Atomic observation supporting a session-to-commit association
134
+ */
135
+ export declare const zAssociationEvidenceKind: z.ZodEnum<{
136
+ recorded_commit: "recorded_commit";
137
+ touched_file: "touched_file";
138
+ branch_membership: "branch_membership";
139
+ time_window: "time_window";
140
+ }>;
141
+ export type AssociationEvidenceKind = z.infer<typeof zAssociationEvidenceKind>;
142
+ export declare const zAssociationEvidenceObservation: z.ZodObject<{
143
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ kind: z.ZodEnum<{
145
+ recorded_commit: "recorded_commit";
146
+ touched_file: "touched_file";
147
+ branch_membership: "branch_membership";
148
+ time_window: "time_window";
149
+ }>;
150
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
151
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
153
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
154
+ }, z.core.$strip>;
155
+ export type AssociationEvidenceObservation = z.infer<typeof zAssociationEvidenceObservation>;
156
+ /**
157
+ * Association ID
158
+ *
159
+ * Opaque durable Peasant identifier for one session-to-commit association
160
+ */
161
+ export declare const zAssociationID: z.ZodString;
162
+ export type AssociationID = z.infer<typeof zAssociationID>;
120
163
  export declare const zBatchCreateAnnotationsErrorResponse: z.ZodObject<{
121
164
  error: z.ZodString;
122
165
  failingIndex: z.ZodInt;
@@ -242,6 +285,17 @@ export declare const zCommitInfo: z.ZodObject<{
242
285
  message: z.ZodString;
243
286
  }, z.core.$strip>;
244
287
  export type CommitInfo = z.infer<typeof zCommitInfo>;
288
+ /**
289
+ * Confidence
290
+ *
291
+ * Strength of evidence behind a derived relationship: high, medium, or low
292
+ */
293
+ export declare const zConfidence: z.ZodEnum<{
294
+ high: "high";
295
+ low: "low";
296
+ medium: "medium";
297
+ }>;
298
+ export type Confidence = z.infer<typeof zConfidence>;
245
299
  /**
246
300
  * Content Kind
247
301
  *
@@ -534,6 +588,36 @@ export type HealthResponse = z.infer<typeof zHealthResponse>;
534
588
  */
535
589
  export declare const zHostSlug: z.ZodString;
536
590
  export type HostSlug = z.infer<typeof zHostSlug>;
591
+ export declare const zInsightClassification: z.ZodObject<{
592
+ category: z.ZodString;
593
+ cause: z.ZodString;
594
+ resolution: z.ZodString;
595
+ severityLocus: z.ZodString;
596
+ severityScope: z.ZodString;
597
+ }, z.core.$strip>;
598
+ export type InsightClassification = z.infer<typeof zInsightClassification>;
599
+ /**
600
+ * Insight Kind
601
+ *
602
+ * What a SessionInsight observed: a decision, friction, an unusual rate elevation, or a retry loop
603
+ */
604
+ export declare const zInsightKind: z.ZodEnum<{
605
+ decision: "decision";
606
+ friction: "friction";
607
+ unusual: "unusual";
608
+ retry_loop: "retry_loop";
609
+ }>;
610
+ export type InsightKind = z.infer<typeof zInsightKind>;
611
+ /**
612
+ * Insight Provenance
613
+ *
614
+ * How a SessionInsight was produced: mechanical (rule-derived) or mined
615
+ */
616
+ export declare const zInsightProvenance: z.ZodEnum<{
617
+ mechanical: "mechanical";
618
+ mined: "mined";
619
+ }>;
620
+ export type InsightProvenance = z.infer<typeof zInsightProvenance>;
537
621
  /**
538
622
  * Interaction Type
539
623
  *
@@ -574,58 +658,6 @@ export declare const zMapNodeKind: z.ZodEnum<{
574
658
  package: "package";
575
659
  }>;
576
660
  export type MapNodeKind = z.infer<typeof zMapNodeKind>;
577
- export declare const zMapNode: z.ZodObject<{
578
- effortDensity: z.ZodNumber;
579
- fileCount: z.ZodInt;
580
- id: z.ZodString;
581
- kind: z.ZodEnum<{
582
- file: "file";
583
- module: "module";
584
- package: "package";
585
- }>;
586
- language: z.ZodOptional<z.ZodString>;
587
- layer: z.ZodInt;
588
- loc: z.ZodInt;
589
- name: z.ZodString;
590
- order: z.ZodInt;
591
- parent: z.ZodOptional<z.ZodString>;
592
- recordedFiles: z.ZodInt;
593
- totalFiles: z.ZodInt;
594
- touchCount: z.ZodInt;
595
- }, z.core.$strip>;
596
- export type MapNode = z.infer<typeof zMapNode>;
597
- export declare const zMapSlice: z.ZodObject<{
598
- activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
599
- from: z.ZodString;
600
- taskCount: z.ZodInt;
601
- to: z.ZodString;
602
- }, z.core.$strip>>>;
603
- nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
604
- effortDensity: z.ZodNumber;
605
- fileCount: z.ZodInt;
606
- id: z.ZodString;
607
- kind: z.ZodEnum<{
608
- file: "file";
609
- module: "module";
610
- package: "package";
611
- }>;
612
- language: z.ZodOptional<z.ZodString>;
613
- layer: z.ZodInt;
614
- loc: z.ZodInt;
615
- name: z.ZodString;
616
- order: z.ZodInt;
617
- parent: z.ZodOptional<z.ZodString>;
618
- recordedFiles: z.ZodInt;
619
- totalFiles: z.ZodInt;
620
- touchCount: z.ZodInt;
621
- }, z.core.$strip>>>;
622
- structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
623
- count: z.ZodInt;
624
- from: z.ZodString;
625
- to: z.ZodString;
626
- }, z.core.$strip>>>;
627
- }, z.core.$strip>;
628
- export type MapSlice = z.infer<typeof zMapSlice>;
629
661
  /**
630
662
  * Message Type
631
663
  *
@@ -713,6 +745,114 @@ export type ModelInfo = z.infer<typeof zModelInfo>;
713
745
  */
714
746
  export declare const zProjectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
715
747
  export type ProjectHash = z.infer<typeof zProjectHash>;
748
+ export declare const zProjectContext: z.ZodObject<{
749
+ filePath: z.ZodOptional<z.ZodString>;
750
+ hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
751
+ name: z.ZodString;
752
+ }, z.core.$strip>;
753
+ export type ProjectContext = z.infer<typeof zProjectContext>;
754
+ export declare const zProjectResolutionPayload: z.ZodObject<{
755
+ project: z.ZodString;
756
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
757
+ }, z.core.$strip>;
758
+ export type ProjectResolutionPayload = z.infer<typeof zProjectResolutionPayload>;
759
+ export declare const zProjectSummary: z.ZodObject<{
760
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
761
+ openChanges: z.ZodInt;
762
+ project: z.ZodString;
763
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
764
+ recordedFiles: z.ZodInt;
765
+ sessions: z.ZodInt;
766
+ totalFiles: z.ZodInt;
767
+ }, z.core.$strip>;
768
+ export type ProjectSummary = z.infer<typeof zProjectSummary>;
769
+ export declare const zProjectSummariesPayload: z.ZodObject<{
770
+ projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
771
+ lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
772
+ openChanges: z.ZodInt;
773
+ project: z.ZodString;
774
+ projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
775
+ recordedFiles: z.ZodInt;
776
+ sessions: z.ZodInt;
777
+ totalFiles: z.ZodInt;
778
+ }, z.core.$strip>>>;
779
+ }, z.core.$strip>;
780
+ export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
781
+ export declare const zProvenance: z.ZodObject<{
782
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
783
+ function: z.ZodOptional<z.ZodString>;
784
+ method: z.ZodString;
785
+ version: z.ZodOptional<z.ZodString>;
786
+ }, z.core.$strip>;
787
+ export type Provenance = z.infer<typeof zProvenance>;
788
+ export declare const zPublishResponse: z.ZodObject<{
789
+ blobKey: z.ZodString;
790
+ blobSizeBytes: z.ZodCoercedBigInt<unknown>;
791
+ created: z.ZodBoolean;
792
+ publishedAt: z.ZodCoercedBigInt<unknown>;
793
+ transcriptId: z.ZodString;
794
+ updatedAt: z.ZodCoercedBigInt<unknown>;
795
+ }, z.core.$strip>;
796
+ export type PublishResponse = z.infer<typeof zPublishResponse>;
797
+ /**
798
+ * Read Attribution State
799
+ *
800
+ * Whether per-file read attribution is recoverable for a node's editing sessions: complete, partial, or unavailable
801
+ */
802
+ export declare const zReadAttributionState: z.ZodEnum<{
803
+ complete: "complete";
804
+ partial: "partial";
805
+ unavailable: "unavailable";
806
+ }>;
807
+ export type ReadAttributionState = z.infer<typeof zReadAttributionState>;
808
+ /**
809
+ * Read State Grade
810
+ *
811
+ * Ordinal explicit read-state act: none, viewed, reviewed, or reviewed_in_detail
812
+ */
813
+ export declare const zReadStateGrade: z.ZodEnum<{
814
+ none: "none";
815
+ viewed: "viewed";
816
+ reviewed: "reviewed";
817
+ reviewed_in_detail: "reviewed_in_detail";
818
+ }>;
819
+ export type ReadStateGrade = z.infer<typeof zReadStateGrade>;
820
+ export declare const zMapNode: z.ZodObject<{
821
+ agentEditedCount: z.ZodInt;
822
+ attributedRegionCount: z.ZodInt;
823
+ changedRegionCount: z.ZodInt;
824
+ effortDensity: z.ZodNumber;
825
+ fileCount: z.ZodInt;
826
+ id: z.ZodString;
827
+ kind: z.ZodEnum<{
828
+ file: "file";
829
+ module: "module";
830
+ package: "package";
831
+ }>;
832
+ language: z.ZodOptional<z.ZodString>;
833
+ layer: z.ZodInt;
834
+ loc: z.ZodInt;
835
+ name: z.ZodString;
836
+ order: z.ZodInt;
837
+ parent: z.ZodOptional<z.ZodString>;
838
+ readAttribution: z.ZodEnum<{
839
+ complete: "complete";
840
+ partial: "partial";
841
+ unavailable: "unavailable";
842
+ }>;
843
+ readCount: z.ZodInt;
844
+ readState: z.ZodEnum<{
845
+ none: "none";
846
+ viewed: "viewed";
847
+ reviewed: "reviewed";
848
+ reviewed_in_detail: "reviewed_in_detail";
849
+ }>;
850
+ recordedFiles: z.ZodInt;
851
+ reviewedRegionCount: z.ZodInt;
852
+ totalFiles: z.ZodInt;
853
+ touchCount: z.ZodInt;
854
+ }, z.core.$strip>;
855
+ export type MapNode = z.infer<typeof zMapNode>;
716
856
  export declare const zMapGraphPayload: z.ZodObject<{
717
857
  activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
718
858
  from: z.ZodString;
@@ -722,6 +862,9 @@ export declare const zMapGraphPayload: z.ZodObject<{
722
862
  atCommit: z.ZodOptional<z.ZodString>;
723
863
  generatedAtMs: z.ZodCoercedBigInt<unknown>;
724
864
  nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
865
+ agentEditedCount: z.ZodInt;
866
+ attributedRegionCount: z.ZodInt;
867
+ changedRegionCount: z.ZodInt;
725
868
  effortDensity: z.ZodNumber;
726
869
  fileCount: z.ZodInt;
727
870
  id: z.ZodString;
@@ -736,7 +879,20 @@ export declare const zMapGraphPayload: z.ZodObject<{
736
879
  name: z.ZodString;
737
880
  order: z.ZodInt;
738
881
  parent: z.ZodOptional<z.ZodString>;
882
+ readAttribution: z.ZodEnum<{
883
+ complete: "complete";
884
+ partial: "partial";
885
+ unavailable: "unavailable";
886
+ }>;
887
+ readCount: z.ZodInt;
888
+ readState: z.ZodEnum<{
889
+ none: "none";
890
+ viewed: "viewed";
891
+ reviewed: "reviewed";
892
+ reviewed_in_detail: "reviewed_in_detail";
893
+ }>;
739
894
  recordedFiles: z.ZodInt;
895
+ reviewedRegionCount: z.ZodInt;
740
896
  totalFiles: z.ZodInt;
741
897
  touchCount: z.ZodInt;
742
898
  }, z.core.$strip>>>;
@@ -759,55 +915,54 @@ export declare const zMapGraphPayload: z.ZodObject<{
759
915
  }, z.core.$strip>>>;
760
916
  }, z.core.$strip>;
761
917
  export type MapGraphPayload = z.infer<typeof zMapGraphPayload>;
762
- export declare const zProjectContext: z.ZodObject<{
763
- filePath: z.ZodOptional<z.ZodString>;
764
- hash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
765
- name: z.ZodString;
766
- }, z.core.$strip>;
767
- export type ProjectContext = z.infer<typeof zProjectContext>;
768
- export declare const zProjectResolutionPayload: z.ZodObject<{
769
- project: z.ZodString;
770
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
771
- }, z.core.$strip>;
772
- export type ProjectResolutionPayload = z.infer<typeof zProjectResolutionPayload>;
773
- export declare const zProjectSummary: z.ZodObject<{
774
- lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
775
- openChanges: z.ZodInt;
776
- project: z.ZodString;
777
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
778
- recordedFiles: z.ZodInt;
779
- sessions: z.ZodInt;
780
- totalFiles: z.ZodInt;
781
- }, z.core.$strip>;
782
- export type ProjectSummary = z.infer<typeof zProjectSummary>;
783
- export declare const zProjectSummariesPayload: z.ZodObject<{
784
- projects: z.ZodNullable<z.ZodArray<z.ZodObject<{
785
- lastWorkMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
786
- openChanges: z.ZodInt;
787
- project: z.ZodString;
788
- projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
918
+ export declare const zMapSlice: z.ZodObject<{
919
+ activityEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
920
+ from: z.ZodString;
921
+ taskCount: z.ZodInt;
922
+ to: z.ZodString;
923
+ }, z.core.$strip>>>;
924
+ nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
925
+ agentEditedCount: z.ZodInt;
926
+ attributedRegionCount: z.ZodInt;
927
+ changedRegionCount: z.ZodInt;
928
+ effortDensity: z.ZodNumber;
929
+ fileCount: z.ZodInt;
930
+ id: z.ZodString;
931
+ kind: z.ZodEnum<{
932
+ file: "file";
933
+ module: "module";
934
+ package: "package";
935
+ }>;
936
+ language: z.ZodOptional<z.ZodString>;
937
+ layer: z.ZodInt;
938
+ loc: z.ZodInt;
939
+ name: z.ZodString;
940
+ order: z.ZodInt;
941
+ parent: z.ZodOptional<z.ZodString>;
942
+ readAttribution: z.ZodEnum<{
943
+ complete: "complete";
944
+ partial: "partial";
945
+ unavailable: "unavailable";
946
+ }>;
947
+ readCount: z.ZodInt;
948
+ readState: z.ZodEnum<{
949
+ none: "none";
950
+ viewed: "viewed";
951
+ reviewed: "reviewed";
952
+ reviewed_in_detail: "reviewed_in_detail";
953
+ }>;
789
954
  recordedFiles: z.ZodInt;
790
- sessions: z.ZodInt;
955
+ reviewedRegionCount: z.ZodInt;
791
956
  totalFiles: z.ZodInt;
957
+ touchCount: z.ZodInt;
958
+ }, z.core.$strip>>>;
959
+ structureEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
960
+ count: z.ZodInt;
961
+ from: z.ZodString;
962
+ to: z.ZodString;
792
963
  }, z.core.$strip>>>;
793
964
  }, z.core.$strip>;
794
- export type ProjectSummariesPayload = z.infer<typeof zProjectSummariesPayload>;
795
- export declare const zProvenance: z.ZodObject<{
796
- details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
797
- function: z.ZodOptional<z.ZodString>;
798
- method: z.ZodString;
799
- version: z.ZodOptional<z.ZodString>;
800
- }, z.core.$strip>;
801
- export type Provenance = z.infer<typeof zProvenance>;
802
- export declare const zPublishResponse: z.ZodObject<{
803
- blobKey: z.ZodString;
804
- blobSizeBytes: z.ZodCoercedBigInt<unknown>;
805
- created: z.ZodBoolean;
806
- publishedAt: z.ZodCoercedBigInt<unknown>;
807
- transcriptId: z.ZodString;
808
- updatedAt: z.ZodCoercedBigInt<unknown>;
809
- }, z.core.$strip>;
810
- export type PublishResponse = z.infer<typeof zPublishResponse>;
965
+ export type MapSlice = z.infer<typeof zMapSlice>;
811
966
  export declare const zRedactionInfo: z.ZodObject<{
812
967
  applied: z.ZodBoolean;
813
968
  content_hash_at_redact: z.ZodOptional<z.ZodString>;
@@ -823,6 +978,31 @@ export declare const zReviewSuggestion: z.ZodObject<{
823
978
  suggestedPrompt: z.ZodString;
824
979
  }, z.core.$strip>;
825
980
  export type ReviewSuggestion = z.infer<typeof zReviewSuggestion>;
981
+ /**
982
+ * Rewrite Method
983
+ *
984
+ * Mechanism the resolver used to map a ghost commit to its successor
985
+ */
986
+ export declare const zRewriteMethod: z.ZodEnum<{
987
+ none: "none";
988
+ hash: "hash";
989
+ patch_id: "patch_id";
990
+ author_identity: "author_identity";
991
+ message_embedded: "message_embedded";
992
+ temporal: "temporal";
993
+ }>;
994
+ export type RewriteMethod = z.infer<typeof zRewriteMethod>;
995
+ /**
996
+ * Rewrite Resolution
997
+ *
998
+ * Whether a ledger-observed commit hash is live, was rewritten, or could not be resolved
999
+ */
1000
+ export declare const zRewriteResolution: z.ZodEnum<{
1001
+ live: "live";
1002
+ rewritten: "rewritten";
1003
+ unresolved: "unresolved";
1004
+ }>;
1005
+ export type RewriteResolution = z.infer<typeof zRewriteResolution>;
826
1006
  /**
827
1007
  * Role
828
1008
  *
@@ -920,7 +1100,67 @@ export type ServerMessage = z.infer<typeof zServerMessage>;
920
1100
  */
921
1101
  export declare const zSessionID: z.ZodString;
922
1102
  export type SessionID = z.infer<typeof zSessionID>;
1103
+ export declare const zInsightEvidence: z.ZodObject<{
1104
+ commitHash: z.ZodOptional<z.ZodString>;
1105
+ entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1106
+ file: z.ZodOptional<z.ZodString>;
1107
+ sessionId: z.ZodString;
1108
+ }, z.core.$strip>;
1109
+ export type InsightEvidence = z.infer<typeof zInsightEvidence>;
1110
+ export declare const zSessionAssociation: z.ZodObject<{
1111
+ conclusion: z.ZodEnum<{
1112
+ candidate: "candidate";
1113
+ confirmed: "confirmed";
1114
+ }>;
1115
+ confidence: z.ZodEnum<{
1116
+ high: "high";
1117
+ low: "low";
1118
+ medium: "medium";
1119
+ }>;
1120
+ evidence: z.ZodArray<z.ZodObject<{
1121
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1122
+ kind: z.ZodEnum<{
1123
+ recorded_commit: "recorded_commit";
1124
+ touched_file: "touched_file";
1125
+ branch_membership: "branch_membership";
1126
+ time_window: "time_window";
1127
+ }>;
1128
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1131
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1132
+ }, z.core.$strip>>;
1133
+ id: z.ZodString;
1134
+ sessionId: z.ZodString;
1135
+ }, z.core.$strip>;
1136
+ export type SessionAssociation = z.infer<typeof zSessionAssociation>;
923
1137
  export declare const zCommitRef: z.ZodObject<{
1138
+ associations: z.ZodArray<z.ZodObject<{
1139
+ conclusion: z.ZodEnum<{
1140
+ candidate: "candidate";
1141
+ confirmed: "confirmed";
1142
+ }>;
1143
+ confidence: z.ZodEnum<{
1144
+ high: "high";
1145
+ low: "low";
1146
+ medium: "medium";
1147
+ }>;
1148
+ evidence: z.ZodArray<z.ZodObject<{
1149
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ kind: z.ZodEnum<{
1151
+ recorded_commit: "recorded_commit";
1152
+ touched_file: "touched_file";
1153
+ branch_membership: "branch_membership";
1154
+ time_window: "time_window";
1155
+ }>;
1156
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1157
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1158
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1159
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1160
+ }, z.core.$strip>>;
1161
+ id: z.ZodString;
1162
+ sessionId: z.ZodString;
1163
+ }, z.core.$strip>>;
924
1164
  hasSession: z.ZodBoolean;
925
1165
  hash: z.ZodString;
926
1166
  sessionIds: z.ZodArray<z.ZodString>;
@@ -928,12 +1168,98 @@ export declare const zCommitRef: z.ZodObject<{
928
1168
  timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
929
1169
  }, z.core.$strip>;
930
1170
  export type CommitRef = z.infer<typeof zCommitRef>;
1171
+ export declare const zRewrittenCommit: z.ZodObject<{
1172
+ associations: z.ZodArray<z.ZodObject<{
1173
+ conclusion: z.ZodEnum<{
1174
+ candidate: "candidate";
1175
+ confirmed: "confirmed";
1176
+ }>;
1177
+ confidence: z.ZodEnum<{
1178
+ high: "high";
1179
+ low: "low";
1180
+ medium: "medium";
1181
+ }>;
1182
+ evidence: z.ZodArray<z.ZodObject<{
1183
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1184
+ kind: z.ZodEnum<{
1185
+ recorded_commit: "recorded_commit";
1186
+ touched_file: "touched_file";
1187
+ branch_membership: "branch_membership";
1188
+ time_window: "time_window";
1189
+ }>;
1190
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1191
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1192
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1193
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1194
+ }, z.core.$strip>>;
1195
+ id: z.ZodString;
1196
+ sessionId: z.ZodString;
1197
+ }, z.core.$strip>>;
1198
+ authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1199
+ confidence: z.ZodEnum<{
1200
+ high: "high";
1201
+ low: "low";
1202
+ medium: "medium";
1203
+ }>;
1204
+ ghostHash: z.ZodString;
1205
+ method: z.ZodEnum<{
1206
+ none: "none";
1207
+ hash: "hash";
1208
+ patch_id: "patch_id";
1209
+ author_identity: "author_identity";
1210
+ message_embedded: "message_embedded";
1211
+ temporal: "temporal";
1212
+ }>;
1213
+ resolution: z.ZodEnum<{
1214
+ live: "live";
1215
+ rewritten: "rewritten";
1216
+ unresolved: "unresolved";
1217
+ }>;
1218
+ sessionIds: z.ZodArray<z.ZodString>;
1219
+ subject: z.ZodString;
1220
+ successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ }, z.core.$strip>;
1222
+ export type RewrittenCommit = z.infer<typeof zRewrittenCommit>;
931
1223
  export declare const zSessionIdentity: z.ZodObject<{
932
1224
  parentUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
1225
  schemaVersion: z.ZodInt;
934
1226
  sessionId: z.ZodString;
935
1227
  }, z.core.$strip>;
936
1228
  export type SessionIdentity = z.infer<typeof zSessionIdentity>;
1229
+ export declare const zSessionInsight: z.ZodObject<{
1230
+ classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1231
+ category: z.ZodString;
1232
+ cause: z.ZodString;
1233
+ resolution: z.ZodString;
1234
+ severityLocus: z.ZodString;
1235
+ severityScope: z.ZodString;
1236
+ }, z.core.$strip>>>;
1237
+ confidence: z.ZodEnum<{
1238
+ high: "high";
1239
+ low: "low";
1240
+ medium: "medium";
1241
+ }>;
1242
+ evidence: z.ZodArray<z.ZodObject<{
1243
+ commitHash: z.ZodOptional<z.ZodString>;
1244
+ entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1245
+ file: z.ZodOptional<z.ZodString>;
1246
+ sessionId: z.ZodString;
1247
+ }, z.core.$strip>>;
1248
+ kind: z.ZodEnum<{
1249
+ decision: "decision";
1250
+ friction: "friction";
1251
+ unusual: "unusual";
1252
+ retry_loop: "retry_loop";
1253
+ }>;
1254
+ provenance: z.ZodEnum<{
1255
+ mechanical: "mechanical";
1256
+ mined: "mined";
1257
+ }>;
1258
+ subjects: z.ZodArray<z.ZodString>;
1259
+ summary: z.ZodOptional<z.ZodString>;
1260
+ title: z.ZodString;
1261
+ }, z.core.$strip>;
1262
+ export type SessionInsight = z.infer<typeof zSessionInsight>;
937
1263
  /**
938
1264
  * Session Outcome
939
1265
  *
@@ -1115,13 +1441,15 @@ export type SubagentRef = z.infer<typeof zSubagentRef>;
1115
1441
  /**
1116
1442
  * Target Kind
1117
1443
  *
1118
- * What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, or project-level
1444
+ * What is being annotated: session-level, entry-level (turn/tool call), meta-annotation, project-level, a specific file version (content-hash keyed read-state receipt), or a durable session-to-commit association
1119
1445
  */
1120
1446
  export declare const zTargetKind: z.ZodEnum<{
1121
1447
  session: "session";
1122
1448
  annotation: "annotation";
1123
1449
  project: "project";
1124
1450
  entry: "entry";
1451
+ file_version: "file_version";
1452
+ association: "association";
1125
1453
  }>;
1126
1454
  export type TargetKind = z.infer<typeof zTargetKind>;
1127
1455
  export declare const zAnnotationPushItem: z.ZodObject<{
@@ -1149,6 +1477,8 @@ export declare const zAnnotationPushItem: z.ZodObject<{
1149
1477
  annotation: "annotation";
1150
1478
  project: "project";
1151
1479
  entry: "entry";
1480
+ file_version: "file_version";
1481
+ association: "association";
1152
1482
  }>;
1153
1483
  typeId: z.ZodString;
1154
1484
  value: z.ZodString;
@@ -1180,6 +1510,8 @@ export declare const zAnnotationPushRequest: z.ZodObject<{
1180
1510
  annotation: "annotation";
1181
1511
  project: "project";
1182
1512
  entry: "entry";
1513
+ file_version: "file_version";
1514
+ association: "association";
1183
1515
  }>;
1184
1516
  typeId: z.ZodString;
1185
1517
  value: z.ZodString;
@@ -1208,13 +1540,18 @@ export declare const zAnnotationSummary: z.ZodObject<{
1208
1540
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
1541
  supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
1542
  targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1543
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1544
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
1545
  targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1212
1546
  targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1547
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1213
1548
  targetKind: z.ZodEnum<{
1214
1549
  session: "session";
1215
1550
  annotation: "annotation";
1216
1551
  project: "project";
1217
1552
  entry: "entry";
1553
+ file_version: "file_version";
1554
+ association: "association";
1218
1555
  }>;
1219
1556
  targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1220
1557
  targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1245,13 +1582,18 @@ export declare const zAnnotationsPayload: z.ZodObject<{
1245
1582
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1246
1583
  supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1247
1584
  targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1585
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1586
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1248
1587
  targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1249
1588
  targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1589
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1250
1590
  targetKind: z.ZodEnum<{
1251
1591
  session: "session";
1252
1592
  annotation: "annotation";
1253
1593
  project: "project";
1254
1594
  entry: "entry";
1595
+ file_version: "file_version";
1596
+ association: "association";
1255
1597
  }>;
1256
1598
  targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1257
1599
  targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1290,13 +1632,18 @@ export declare const zPullAnnotation: z.ZodObject<{
1290
1632
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1291
1633
  supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1292
1634
  targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1635
+ targetAssociationId: z.ZodOptional<z.ZodString>;
1636
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1293
1637
  targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1294
1638
  targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1639
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
1640
  targetKind: z.ZodOptional<z.ZodEnum<{
1296
1641
  session: "session";
1297
1642
  annotation: "annotation";
1298
1643
  project: "project";
1299
1644
  entry: "entry";
1645
+ file_version: "file_version";
1646
+ association: "association";
1300
1647
  }>>;
1301
1648
  targetProjectHash: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>;
1302
1649
  targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1330,13 +1677,18 @@ export declare const zQualitySession: z.ZodObject<{
1330
1677
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1331
1678
  supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1332
1679
  targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1680
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1681
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1333
1682
  targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1334
1683
  targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1684
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1335
1685
  targetKind: z.ZodEnum<{
1336
1686
  session: "session";
1337
1687
  annotation: "annotation";
1338
1688
  project: "project";
1339
1689
  entry: "entry";
1690
+ file_version: "file_version";
1691
+ association: "association";
1340
1692
  }>;
1341
1693
  targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1342
1694
  targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1391,13 +1743,18 @@ export declare const zQualityPayload: z.ZodObject<{
1391
1743
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1392
1744
  supersededBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1393
1745
  targetAnnotationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1746
+ targetAssociationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1747
+ targetContentHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1394
1748
  targetEntryEndIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1395
1749
  targetEntryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1750
+ targetFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1396
1751
  targetKind: z.ZodEnum<{
1397
1752
  session: "session";
1398
1753
  annotation: "annotation";
1399
1754
  project: "project";
1400
1755
  entry: "entry";
1756
+ file_version: "file_version";
1757
+ association: "association";
1401
1758
  }>;
1402
1759
  targetProjectHash: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">>>;
1403
1760
  targetSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1433,6 +1790,7 @@ export declare const zTaskSummary: z.ZodObject<{
1433
1790
  labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1434
1791
  outcome: z.ZodOptional<z.ZodString>;
1435
1792
  readCount: z.ZodInt;
1793
+ readFiles: z.ZodArray<z.ZodString>;
1436
1794
  retryLoop: z.ZodBoolean;
1437
1795
  sessionId: z.ZodString;
1438
1796
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1453,6 +1811,7 @@ export declare const zChangeSession: z.ZodObject<{
1453
1811
  labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1454
1812
  outcome: z.ZodOptional<z.ZodString>;
1455
1813
  readCount: z.ZodInt;
1814
+ readFiles: z.ZodArray<z.ZodString>;
1456
1815
  retryLoop: z.ZodBoolean;
1457
1816
  sessionId: z.ZodString;
1458
1817
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1464,6 +1823,39 @@ export type ChangeSession = z.infer<typeof zChangeSession>;
1464
1823
  export declare const zMapNodeDetailPayload: z.ZodObject<{
1465
1824
  costUsd: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1466
1825
  dependsOn: z.ZodNullable<z.ZodArray<z.ZodString>>;
1826
+ insights: z.ZodArray<z.ZodObject<{
1827
+ classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1828
+ category: z.ZodString;
1829
+ cause: z.ZodString;
1830
+ resolution: z.ZodString;
1831
+ severityLocus: z.ZodString;
1832
+ severityScope: z.ZodString;
1833
+ }, z.core.$strip>>>;
1834
+ confidence: z.ZodEnum<{
1835
+ high: "high";
1836
+ low: "low";
1837
+ medium: "medium";
1838
+ }>;
1839
+ evidence: z.ZodArray<z.ZodObject<{
1840
+ commitHash: z.ZodOptional<z.ZodString>;
1841
+ entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1842
+ file: z.ZodOptional<z.ZodString>;
1843
+ sessionId: z.ZodString;
1844
+ }, z.core.$strip>>;
1845
+ kind: z.ZodEnum<{
1846
+ decision: "decision";
1847
+ friction: "friction";
1848
+ unusual: "unusual";
1849
+ retry_loop: "retry_loop";
1850
+ }>;
1851
+ provenance: z.ZodEnum<{
1852
+ mechanical: "mechanical";
1853
+ mined: "mined";
1854
+ }>;
1855
+ subjects: z.ZodArray<z.ZodString>;
1856
+ summary: z.ZodOptional<z.ZodString>;
1857
+ title: z.ZodString;
1858
+ }, z.core.$strip>>;
1467
1859
  kind: z.ZodEnum<{
1468
1860
  file: "file";
1469
1861
  module: "module";
@@ -1475,6 +1867,32 @@ export declare const zMapNodeDetailPayload: z.ZodObject<{
1475
1867
  path: z.ZodString;
1476
1868
  reEdits: z.ZodInt;
1477
1869
  recentCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
1870
+ associations: z.ZodArray<z.ZodObject<{
1871
+ conclusion: z.ZodEnum<{
1872
+ candidate: "candidate";
1873
+ confirmed: "confirmed";
1874
+ }>;
1875
+ confidence: z.ZodEnum<{
1876
+ high: "high";
1877
+ low: "low";
1878
+ medium: "medium";
1879
+ }>;
1880
+ evidence: z.ZodArray<z.ZodObject<{
1881
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1882
+ kind: z.ZodEnum<{
1883
+ recorded_commit: "recorded_commit";
1884
+ touched_file: "touched_file";
1885
+ branch_membership: "branch_membership";
1886
+ time_window: "time_window";
1887
+ }>;
1888
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1891
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1892
+ }, z.core.$strip>>;
1893
+ id: z.ZodString;
1894
+ sessionId: z.ZodString;
1895
+ }, z.core.$strip>>;
1478
1896
  hasSession: z.ZodBoolean;
1479
1897
  hash: z.ZodString;
1480
1898
  sessionIds: z.ZodArray<z.ZodString>;
@@ -1483,6 +1901,57 @@ export declare const zMapNodeDetailPayload: z.ZodObject<{
1483
1901
  }, z.core.$strip>>>;
1484
1902
  recordedFiles: z.ZodInt;
1485
1903
  retryLoops: z.ZodInt;
1904
+ rewrittenCommits: z.ZodArray<z.ZodObject<{
1905
+ associations: z.ZodArray<z.ZodObject<{
1906
+ conclusion: z.ZodEnum<{
1907
+ candidate: "candidate";
1908
+ confirmed: "confirmed";
1909
+ }>;
1910
+ confidence: z.ZodEnum<{
1911
+ high: "high";
1912
+ low: "low";
1913
+ medium: "medium";
1914
+ }>;
1915
+ evidence: z.ZodArray<z.ZodObject<{
1916
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1917
+ kind: z.ZodEnum<{
1918
+ recorded_commit: "recorded_commit";
1919
+ touched_file: "touched_file";
1920
+ branch_membership: "branch_membership";
1921
+ time_window: "time_window";
1922
+ }>;
1923
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1924
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1925
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1926
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1927
+ }, z.core.$strip>>;
1928
+ id: z.ZodString;
1929
+ sessionId: z.ZodString;
1930
+ }, z.core.$strip>>;
1931
+ authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1932
+ confidence: z.ZodEnum<{
1933
+ high: "high";
1934
+ low: "low";
1935
+ medium: "medium";
1936
+ }>;
1937
+ ghostHash: z.ZodString;
1938
+ method: z.ZodEnum<{
1939
+ none: "none";
1940
+ hash: "hash";
1941
+ patch_id: "patch_id";
1942
+ author_identity: "author_identity";
1943
+ message_embedded: "message_embedded";
1944
+ temporal: "temporal";
1945
+ }>;
1946
+ resolution: z.ZodEnum<{
1947
+ live: "live";
1948
+ rewritten: "rewritten";
1949
+ unresolved: "unresolved";
1950
+ }>;
1951
+ sessionIds: z.ZodArray<z.ZodString>;
1952
+ subject: z.ZodString;
1953
+ successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1954
+ }, z.core.$strip>>;
1486
1955
  sessionCount: z.ZodInt;
1487
1956
  shapedBy: z.ZodNullable<z.ZodArray<z.ZodObject<{
1488
1957
  editedFiles: z.ZodNullable<z.ZodArray<z.ZodString>>;
@@ -1490,6 +1959,7 @@ export declare const zMapNodeDetailPayload: z.ZodObject<{
1490
1959
  labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1491
1960
  outcome: z.ZodOptional<z.ZodString>;
1492
1961
  readCount: z.ZodInt;
1962
+ readFiles: z.ZodArray<z.ZodString>;
1493
1963
  retryLoop: z.ZodBoolean;
1494
1964
  sessionId: z.ZodString;
1495
1965
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1509,6 +1979,7 @@ export declare const zProjectTasksPayload: z.ZodObject<{
1509
1979
  labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
1510
1980
  outcome: z.ZodOptional<z.ZodString>;
1511
1981
  readCount: z.ZodInt;
1982
+ readFiles: z.ZodArray<z.ZodString>;
1512
1983
  retryLoop: z.ZodBoolean;
1513
1984
  sessionId: z.ZodString;
1514
1985
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -1553,6 +2024,32 @@ export declare const zReviewListPayload: z.ZodObject<{
1553
2024
  defaultBranch: z.ZodOptional<z.ZodString>;
1554
2025
  projectHash: z.core.$ZodBranded<z.ZodString, "ProjectHash", "out">;
1555
2026
  recentCommits: z.ZodArray<z.ZodObject<{
2027
+ associations: z.ZodArray<z.ZodObject<{
2028
+ conclusion: z.ZodEnum<{
2029
+ candidate: "candidate";
2030
+ confirmed: "confirmed";
2031
+ }>;
2032
+ confidence: z.ZodEnum<{
2033
+ high: "high";
2034
+ low: "low";
2035
+ medium: "medium";
2036
+ }>;
2037
+ evidence: z.ZodArray<z.ZodObject<{
2038
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2039
+ kind: z.ZodEnum<{
2040
+ recorded_commit: "recorded_commit";
2041
+ touched_file: "touched_file";
2042
+ branch_membership: "branch_membership";
2043
+ time_window: "time_window";
2044
+ }>;
2045
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2046
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2047
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2048
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2049
+ }, z.core.$strip>>;
2050
+ id: z.ZodString;
2051
+ sessionId: z.ZodString;
2052
+ }, z.core.$strip>>;
1556
2053
  hasSession: z.ZodBoolean;
1557
2054
  hash: z.ZodString;
1558
2055
  sessionIds: z.ZodArray<z.ZodString>;
@@ -1560,6 +2057,57 @@ export declare const zReviewListPayload: z.ZodObject<{
1560
2057
  timeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
1561
2058
  }, z.core.$strip>>;
1562
2059
  repoFound: z.ZodBoolean;
2060
+ rewrittenCommits: z.ZodArray<z.ZodObject<{
2061
+ associations: z.ZodArray<z.ZodObject<{
2062
+ conclusion: z.ZodEnum<{
2063
+ candidate: "candidate";
2064
+ confirmed: "confirmed";
2065
+ }>;
2066
+ confidence: z.ZodEnum<{
2067
+ high: "high";
2068
+ low: "low";
2069
+ medium: "medium";
2070
+ }>;
2071
+ evidence: z.ZodArray<z.ZodObject<{
2072
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2073
+ kind: z.ZodEnum<{
2074
+ recorded_commit: "recorded_commit";
2075
+ touched_file: "touched_file";
2076
+ branch_membership: "branch_membership";
2077
+ time_window: "time_window";
2078
+ }>;
2079
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2080
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2081
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2082
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2083
+ }, z.core.$strip>>;
2084
+ id: z.ZodString;
2085
+ sessionId: z.ZodString;
2086
+ }, z.core.$strip>>;
2087
+ authorTimeMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2088
+ confidence: z.ZodEnum<{
2089
+ high: "high";
2090
+ low: "low";
2091
+ medium: "medium";
2092
+ }>;
2093
+ ghostHash: z.ZodString;
2094
+ method: z.ZodEnum<{
2095
+ none: "none";
2096
+ hash: "hash";
2097
+ patch_id: "patch_id";
2098
+ author_identity: "author_identity";
2099
+ message_embedded: "message_embedded";
2100
+ temporal: "temporal";
2101
+ }>;
2102
+ resolution: z.ZodEnum<{
2103
+ live: "live";
2104
+ rewritten: "rewritten";
2105
+ unresolved: "unresolved";
2106
+ }>;
2107
+ sessionIds: z.ZodArray<z.ZodString>;
2108
+ subject: z.ZodString;
2109
+ successorHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2110
+ }, z.core.$strip>>;
1563
2111
  sessions: z.ZodArray<z.ZodObject<{
1564
2112
  harness: z.ZodEnum<{
1565
2113
  cursor: "cursor";
@@ -2330,6 +2878,39 @@ export declare const zChangeDetailPayload: z.ZodObject<{
2330
2878
  label: z.ZodString;
2331
2879
  sessions: z.ZodInt;
2332
2880
  }, z.core.$strip>>>;
2881
+ insights: z.ZodArray<z.ZodObject<{
2882
+ classification: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2883
+ category: z.ZodString;
2884
+ cause: z.ZodString;
2885
+ resolution: z.ZodString;
2886
+ severityLocus: z.ZodString;
2887
+ severityScope: z.ZodString;
2888
+ }, z.core.$strip>>>;
2889
+ confidence: z.ZodEnum<{
2890
+ high: "high";
2891
+ low: "low";
2892
+ medium: "medium";
2893
+ }>;
2894
+ evidence: z.ZodArray<z.ZodObject<{
2895
+ commitHash: z.ZodOptional<z.ZodString>;
2896
+ entryIndex: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2897
+ file: z.ZodOptional<z.ZodString>;
2898
+ sessionId: z.ZodString;
2899
+ }, z.core.$strip>>;
2900
+ kind: z.ZodEnum<{
2901
+ decision: "decision";
2902
+ friction: "friction";
2903
+ unusual: "unusual";
2904
+ retry_loop: "retry_loop";
2905
+ }>;
2906
+ provenance: z.ZodEnum<{
2907
+ mechanical: "mechanical";
2908
+ mined: "mined";
2909
+ }>;
2910
+ subjects: z.ZodArray<z.ZodString>;
2911
+ summary: z.ZodOptional<z.ZodString>;
2912
+ title: z.ZodString;
2913
+ }, z.core.$strip>>;
2333
2914
  linesAdded: z.ZodInt;
2334
2915
  linesRemoved: z.ZodInt;
2335
2916
  newEdges: z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -2352,6 +2933,9 @@ export declare const zChangeDetailPayload: z.ZodObject<{
2352
2933
  to: z.ZodString;
2353
2934
  }, z.core.$strip>>>;
2354
2935
  nodes: z.ZodNullable<z.ZodArray<z.ZodObject<{
2936
+ agentEditedCount: z.ZodInt;
2937
+ attributedRegionCount: z.ZodInt;
2938
+ changedRegionCount: z.ZodInt;
2355
2939
  effortDensity: z.ZodNumber;
2356
2940
  fileCount: z.ZodInt;
2357
2941
  id: z.ZodString;
@@ -2366,7 +2950,20 @@ export declare const zChangeDetailPayload: z.ZodObject<{
2366
2950
  name: z.ZodString;
2367
2951
  order: z.ZodInt;
2368
2952
  parent: z.ZodOptional<z.ZodString>;
2953
+ readAttribution: z.ZodEnum<{
2954
+ complete: "complete";
2955
+ partial: "partial";
2956
+ unavailable: "unavailable";
2957
+ }>;
2958
+ readCount: z.ZodInt;
2959
+ readState: z.ZodEnum<{
2960
+ none: "none";
2961
+ viewed: "viewed";
2962
+ reviewed: "reviewed";
2963
+ reviewed_in_detail: "reviewed_in_detail";
2964
+ }>;
2369
2965
  recordedFiles: z.ZodInt;
2966
+ reviewedRegionCount: z.ZodInt;
2370
2967
  totalFiles: z.ZodInt;
2371
2968
  touchCount: z.ZodInt;
2372
2969
  }, z.core.$strip>>>;
@@ -2377,6 +2974,32 @@ export declare const zChangeDetailPayload: z.ZodObject<{
2377
2974
  }, z.core.$strip>>>;
2378
2975
  }, z.core.$strip>;
2379
2976
  unrecordedCommits: z.ZodNullable<z.ZodArray<z.ZodObject<{
2977
+ associations: z.ZodArray<z.ZodObject<{
2978
+ conclusion: z.ZodEnum<{
2979
+ candidate: "candidate";
2980
+ confirmed: "confirmed";
2981
+ }>;
2982
+ confidence: z.ZodEnum<{
2983
+ high: "high";
2984
+ low: "low";
2985
+ medium: "medium";
2986
+ }>;
2987
+ evidence: z.ZodArray<z.ZodObject<{
2988
+ branchName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2989
+ kind: z.ZodEnum<{
2990
+ recorded_commit: "recorded_commit";
2991
+ touched_file: "touched_file";
2992
+ branch_membership: "branch_membership";
2993
+ time_window: "time_window";
2994
+ }>;
2995
+ recordedCommitHash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2996
+ touchedFilePath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2997
+ windowEndMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2998
+ windowStartMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2999
+ }, z.core.$strip>>;
3000
+ id: z.ZodString;
3001
+ sessionId: z.ZodString;
3002
+ }, z.core.$strip>>;
2380
3003
  hasSession: z.ZodBoolean;
2381
3004
  hash: z.ZodString;
2382
3005
  sessionIds: z.ZodArray<z.ZodString>;
@@ -2411,6 +3034,7 @@ export declare const zChangeDetailPayload: z.ZodObject<{
2411
3034
  labels: z.ZodNullable<z.ZodArray<z.ZodString>>;
2412
3035
  outcome: z.ZodOptional<z.ZodString>;
2413
3036
  readCount: z.ZodInt;
3037
+ readFiles: z.ZodArray<z.ZodString>;
2414
3038
  retryLoop: z.ZodBoolean;
2415
3039
  sessionId: z.ZodString;
2416
3040
  startMs: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
@@ -2451,6 +3075,8 @@ export declare const zAnnotationTypeSummary: z.ZodObject<{
2451
3075
  annotation: "annotation";
2452
3076
  project: "project";
2453
3077
  entry: "entry";
3078
+ file_version: "file_version";
3079
+ association: "association";
2454
3080
  }>>>;
2455
3081
  class: z.ZodString;
2456
3082
  description: z.ZodOptional<z.ZodString>;
@@ -2501,6 +3127,8 @@ export declare const zTaxonomyFamilyNode: z.ZodObject<{
2501
3127
  annotation: "annotation";
2502
3128
  project: "project";
2503
3129
  entry: "entry";
3130
+ file_version: "file_version";
3131
+ association: "association";
2504
3132
  }>>>;
2505
3133
  class: z.ZodString;
2506
3134
  description: z.ZodOptional<z.ZodString>;
@@ -2554,6 +3182,8 @@ export declare const zTaxonomyNode: z.ZodObject<{
2554
3182
  annotation: "annotation";
2555
3183
  project: "project";
2556
3184
  entry: "entry";
3185
+ file_version: "file_version";
3186
+ association: "association";
2557
3187
  }>>>;
2558
3188
  class: z.ZodString;
2559
3189
  description: z.ZodOptional<z.ZodString>;