@arii/boomtick-mcp 0.3.5 → 0.3.6

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.
@@ -170,7 +170,7 @@ export const AIFileReviewJsonSchema = {
170
170
  "type": "object"
171
171
  } as const;
172
172
 
173
- export const AIFullReviewSchema = z.object({ "file_reviews": z.array(z.any()).describe("Per-file review results.").optional(), "reviewComment": z.string().describe("Overall summary comment for the PR."), "labels": z.array(z.string()).describe("Suggested labels for the PR.").optional(), "recommendation": z.string().describe("Final recommendation (Approved, Not Approved, etc).") });
173
+ export const AIFullReviewSchema = z.object({ "fileReviews": z.array(z.any()).describe("Per-file review results.").optional(), "reviewComment": z.string().describe("Overall summary comment for the PR."), "labels": z.array(z.string()).describe("Suggested labels for the PR.").optional(), "recommendation": z.string().describe("Final recommendation (Approved, Not Approved, etc).") });
174
174
 
175
175
  export type AIFullReview = z.infer<typeof AIFullReviewSchema>;
176
176
 
@@ -340,12 +340,12 @@ export const AIFullReviewJsonSchema = {
340
340
  }
341
341
  },
342
342
  "properties": {
343
- "file_reviews": {
343
+ "fileReviews": {
344
344
  "description": "Per-file review results.",
345
345
  "items": {
346
346
  "$ref": "#/$defs/AIFileReview"
347
347
  },
348
- "title": "File Reviews",
348
+ "title": "Filereviews",
349
349
  "type": "array"
350
350
  },
351
351
  "reviewComment": {
@@ -514,51 +514,1044 @@ export const AIReviewIssueJsonSchema = {
514
514
  "type": "object"
515
515
  } as const;
516
516
 
517
+ export const AIRunLogEntrySchema = z.object({ "timestamp": z.string(), "type": z.enum(["code-review","visual-review"]), "inputTokens": z.number().int(), "outputTokens": z.number().int(), "durationMs": z.number().int(), "cost": z.number(), "model": z.union([z.string(), z.null()]).default(null), "cacheTokens": z.union([z.number().int(), z.null()]).default(null), "totalTokens": z.union([z.number().int(), z.null()]).default(null), "verdict": z.union([z.string(), z.null()]).default(null), "pr": z.union([z.string(), z.null()]).default(null), "route": z.union([z.string(), z.null()]).default(null), "error": z.union([z.string(), z.null()]).default(null), "isTruncated": z.union([z.boolean(), z.null()]).default(null), "parseError": z.union([z.string(), z.null()]).default(null), "rawResponse": z.union([z.string(), z.null()]).default(null), "findings": z.union([z.array(z.any()), z.null()]).default(null), "inputChars": z.union([z.number().int(), z.null()]).default(null) });
518
+
519
+ export type AIRunLogEntry = z.infer<typeof AIRunLogEntrySchema>;
520
+
521
+ export const AIRunLogEntryJsonSchema = {
522
+ "properties": {
523
+ "timestamp": {
524
+ "title": "Timestamp",
525
+ "type": "string"
526
+ },
527
+ "type": {
528
+ "enum": [
529
+ "code-review",
530
+ "visual-review"
531
+ ],
532
+ "title": "Type",
533
+ "type": "string"
534
+ },
535
+ "inputTokens": {
536
+ "title": "Inputtokens",
537
+ "type": "integer"
538
+ },
539
+ "outputTokens": {
540
+ "title": "Outputtokens",
541
+ "type": "integer"
542
+ },
543
+ "durationMs": {
544
+ "title": "Durationms",
545
+ "type": "integer"
546
+ },
547
+ "cost": {
548
+ "title": "Cost",
549
+ "type": "number"
550
+ },
551
+ "model": {
552
+ "anyOf": [
553
+ {
554
+ "type": "string"
555
+ },
556
+ {
557
+ "type": "null"
558
+ }
559
+ ],
560
+ "default": null,
561
+ "title": "Model"
562
+ },
563
+ "cacheTokens": {
564
+ "anyOf": [
565
+ {
566
+ "type": "integer"
567
+ },
568
+ {
569
+ "type": "null"
570
+ }
571
+ ],
572
+ "default": null,
573
+ "title": "Cachetokens"
574
+ },
575
+ "totalTokens": {
576
+ "anyOf": [
577
+ {
578
+ "type": "integer"
579
+ },
580
+ {
581
+ "type": "null"
582
+ }
583
+ ],
584
+ "default": null,
585
+ "title": "Totaltokens"
586
+ },
587
+ "verdict": {
588
+ "anyOf": [
589
+ {
590
+ "type": "string"
591
+ },
592
+ {
593
+ "type": "null"
594
+ }
595
+ ],
596
+ "default": null,
597
+ "title": "Verdict"
598
+ },
599
+ "pr": {
600
+ "anyOf": [
601
+ {
602
+ "type": "string"
603
+ },
604
+ {
605
+ "type": "null"
606
+ }
607
+ ],
608
+ "default": null,
609
+ "title": "Pr"
610
+ },
611
+ "route": {
612
+ "anyOf": [
613
+ {
614
+ "type": "string"
615
+ },
616
+ {
617
+ "type": "null"
618
+ }
619
+ ],
620
+ "default": null,
621
+ "title": "Route"
622
+ },
623
+ "error": {
624
+ "anyOf": [
625
+ {
626
+ "type": "string"
627
+ },
628
+ {
629
+ "type": "null"
630
+ }
631
+ ],
632
+ "default": null,
633
+ "title": "Error"
634
+ },
635
+ "isTruncated": {
636
+ "anyOf": [
637
+ {
638
+ "type": "boolean"
639
+ },
640
+ {
641
+ "type": "null"
642
+ }
643
+ ],
644
+ "default": null,
645
+ "title": "Istruncated"
646
+ },
647
+ "parseError": {
648
+ "anyOf": [
649
+ {
650
+ "type": "string"
651
+ },
652
+ {
653
+ "type": "null"
654
+ }
655
+ ],
656
+ "default": null,
657
+ "title": "Parseerror"
658
+ },
659
+ "rawResponse": {
660
+ "anyOf": [
661
+ {
662
+ "type": "string"
663
+ },
664
+ {
665
+ "type": "null"
666
+ }
667
+ ],
668
+ "default": null,
669
+ "title": "Rawresponse"
670
+ },
671
+ "findings": {
672
+ "anyOf": [
673
+ {
674
+ "items": {},
675
+ "type": "array"
676
+ },
677
+ {
678
+ "type": "null"
679
+ }
680
+ ],
681
+ "default": null,
682
+ "title": "Findings"
683
+ },
684
+ "inputChars": {
685
+ "anyOf": [
686
+ {
687
+ "type": "integer"
688
+ },
689
+ {
690
+ "type": "null"
691
+ }
692
+ ],
693
+ "default": null,
694
+ "title": "Inputchars"
695
+ }
696
+ },
697
+ "required": [
698
+ "timestamp",
699
+ "type",
700
+ "inputTokens",
701
+ "outputTokens",
702
+ "durationMs",
703
+ "cost"
704
+ ],
705
+ "title": "AIRunLogEntry",
706
+ "type": "object"
707
+ } as const;
708
+
517
709
  export const AISynthesisReviewSchema = z.object({ "reviewComment": z.string().describe("Overall summary comment for the PR."), "labels": z.array(z.string()).describe("Suggested labels for the PR.").optional(), "recommendation": z.string().describe("Final recommendation.") });
518
710
 
519
711
  export type AISynthesisReview = z.infer<typeof AISynthesisReviewSchema>;
520
712
 
521
- export const AISynthesisReviewJsonSchema = {
713
+ export const AISynthesisReviewJsonSchema = {
714
+ "properties": {
715
+ "reviewComment": {
716
+ "description": "Overall summary comment for the PR.",
717
+ "title": "Reviewcomment",
718
+ "type": "string"
719
+ },
720
+ "labels": {
721
+ "description": "Suggested labels for the PR.",
722
+ "items": {
723
+ "type": "string"
724
+ },
725
+ "title": "Labels",
726
+ "type": "array"
727
+ },
728
+ "recommendation": {
729
+ "description": "Final recommendation.",
730
+ "title": "Recommendation",
731
+ "type": "string"
732
+ }
733
+ },
734
+ "required": [
735
+ "reviewComment",
736
+ "recommendation"
737
+ ],
738
+ "title": "AISynthesisReview",
739
+ "type": "object"
740
+ } as const;
741
+
742
+ export const CamelCaseModelSchema = z.object({});
743
+
744
+ export type CamelCaseModel = z.infer<typeof CamelCaseModelSchema>;
745
+
746
+ export const CamelCaseModelJsonSchema = {
747
+ "properties": {},
748
+ "title": "CamelCaseModel",
749
+ "type": "object"
750
+ } as const;
751
+
752
+ export const CheckoutBranchInputSchema = z.object({ "branch": z.string().describe("The name of the branch to checkout."), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree to perform the checkout in.").default(null) });
753
+
754
+ export type CheckoutBranchInput = z.infer<typeof CheckoutBranchInputSchema>;
755
+
756
+ export const CheckoutBranchInputJsonSchema = {
757
+ "properties": {
758
+ "branch": {
759
+ "description": "The name of the branch to checkout.",
760
+ "title": "Branch",
761
+ "type": "string"
762
+ },
763
+ "worktreePath": {
764
+ "anyOf": [
765
+ {
766
+ "type": "string"
767
+ },
768
+ {
769
+ "type": "null"
770
+ }
771
+ ],
772
+ "default": null,
773
+ "description": "Optional path to the worktree to perform the checkout in.",
774
+ "title": "Worktreepath"
775
+ }
776
+ },
777
+ "required": [
778
+ "branch"
779
+ ],
780
+ "title": "CheckoutBranchInput",
781
+ "type": "object"
782
+ } as const;
783
+
784
+ export const CodeReviewResultSchema = z.object({ "findings": z.array(z.any()).optional(), "feedback": z.string(), "role": z.string(), "tokens": z.number().int(), "cost": z.number(), "modelName": z.string(), "llmVerdict": z.enum(["pass","warn","fail"]), "isTruncated": z.union([z.boolean(), z.null()]).default(null), "inputTokens": z.union([z.number().int(), z.null()]).default(null), "outputTokens": z.union([z.number().int(), z.null()]).default(null), "cacheTokens": z.union([z.number().int(), z.null()]).default(null), "parseError": z.union([z.enum(["missing_closing_tag","truncated_json","incomplete_findings","invalid_json"]), z.null()]).default(null) });
785
+
786
+ export type CodeReviewResult = z.infer<typeof CodeReviewResultSchema>;
787
+
788
+ export const CodeReviewResultJsonSchema = {
789
+ "$defs": {
790
+ "ReviewFinding": {
791
+ "properties": {
792
+ "id": {
793
+ "title": "Id",
794
+ "type": "string"
795
+ },
796
+ "file": {
797
+ "title": "File",
798
+ "type": "string"
799
+ },
800
+ "issue": {
801
+ "title": "Issue",
802
+ "type": "string"
803
+ },
804
+ "status": {
805
+ "enum": [
806
+ "open",
807
+ "resolved"
808
+ ],
809
+ "title": "Status",
810
+ "type": "string"
811
+ },
812
+ "confidence": {
813
+ "enum": [
814
+ "high",
815
+ "medium",
816
+ "low"
817
+ ],
818
+ "title": "Confidence",
819
+ "type": "string"
820
+ },
821
+ "severity": {
822
+ "anyOf": [
823
+ {
824
+ "enum": [
825
+ "HIGH",
826
+ "MEDIUM",
827
+ "LOW"
828
+ ],
829
+ "type": "string"
830
+ },
831
+ {
832
+ "type": "null"
833
+ }
834
+ ],
835
+ "default": null,
836
+ "title": "Severity"
837
+ },
838
+ "line": {
839
+ "anyOf": [
840
+ {
841
+ "type": "integer"
842
+ },
843
+ {
844
+ "type": "null"
845
+ }
846
+ ],
847
+ "default": null,
848
+ "title": "Line"
849
+ },
850
+ "snippet": {
851
+ "anyOf": [
852
+ {
853
+ "type": "string"
854
+ },
855
+ {
856
+ "type": "null"
857
+ }
858
+ ],
859
+ "default": null,
860
+ "title": "Snippet"
861
+ },
862
+ "fixSummary": {
863
+ "anyOf": [
864
+ {
865
+ "type": "string"
866
+ },
867
+ {
868
+ "type": "null"
869
+ }
870
+ ],
871
+ "default": null,
872
+ "title": "Fixsummary"
873
+ },
874
+ "counterexample": {
875
+ "anyOf": [
876
+ {
877
+ "type": "string"
878
+ },
879
+ {
880
+ "type": "null"
881
+ }
882
+ ],
883
+ "default": null,
884
+ "title": "Counterexample"
885
+ }
886
+ },
887
+ "required": [
888
+ "id",
889
+ "file",
890
+ "issue",
891
+ "status",
892
+ "confidence"
893
+ ],
894
+ "title": "ReviewFinding",
895
+ "type": "object"
896
+ }
897
+ },
898
+ "properties": {
899
+ "findings": {
900
+ "items": {
901
+ "$ref": "#/$defs/ReviewFinding"
902
+ },
903
+ "title": "Findings",
904
+ "type": "array"
905
+ },
906
+ "feedback": {
907
+ "title": "Feedback",
908
+ "type": "string"
909
+ },
910
+ "role": {
911
+ "title": "Role",
912
+ "type": "string"
913
+ },
914
+ "tokens": {
915
+ "title": "Tokens",
916
+ "type": "integer"
917
+ },
918
+ "cost": {
919
+ "title": "Cost",
920
+ "type": "number"
921
+ },
922
+ "modelName": {
923
+ "title": "Modelname",
924
+ "type": "string"
925
+ },
926
+ "llmVerdict": {
927
+ "enum": [
928
+ "pass",
929
+ "warn",
930
+ "fail"
931
+ ],
932
+ "title": "Llmverdict",
933
+ "type": "string"
934
+ },
935
+ "isTruncated": {
936
+ "anyOf": [
937
+ {
938
+ "type": "boolean"
939
+ },
940
+ {
941
+ "type": "null"
942
+ }
943
+ ],
944
+ "default": null,
945
+ "title": "Istruncated"
946
+ },
947
+ "inputTokens": {
948
+ "anyOf": [
949
+ {
950
+ "type": "integer"
951
+ },
952
+ {
953
+ "type": "null"
954
+ }
955
+ ],
956
+ "default": null,
957
+ "title": "Inputtokens"
958
+ },
959
+ "outputTokens": {
960
+ "anyOf": [
961
+ {
962
+ "type": "integer"
963
+ },
964
+ {
965
+ "type": "null"
966
+ }
967
+ ],
968
+ "default": null,
969
+ "title": "Outputtokens"
970
+ },
971
+ "cacheTokens": {
972
+ "anyOf": [
973
+ {
974
+ "type": "integer"
975
+ },
976
+ {
977
+ "type": "null"
978
+ }
979
+ ],
980
+ "default": null,
981
+ "title": "Cachetokens"
982
+ },
983
+ "parseError": {
984
+ "anyOf": [
985
+ {
986
+ "enum": [
987
+ "missing_closing_tag",
988
+ "truncated_json",
989
+ "incomplete_findings",
990
+ "invalid_json"
991
+ ],
992
+ "type": "string"
993
+ },
994
+ {
995
+ "type": "null"
996
+ }
997
+ ],
998
+ "default": null,
999
+ "title": "Parseerror"
1000
+ }
1001
+ },
1002
+ "required": [
1003
+ "feedback",
1004
+ "role",
1005
+ "tokens",
1006
+ "cost",
1007
+ "modelName",
1008
+ "llmVerdict"
1009
+ ],
1010
+ "title": "CodeReviewResult",
1011
+ "type": "object"
1012
+ } as const;
1013
+
1014
+ export const CodeReviewStateSchema = z.object({ "findings": z.array(z.any()).optional() });
1015
+
1016
+ export type CodeReviewState = z.infer<typeof CodeReviewStateSchema>;
1017
+
1018
+ export const CodeReviewStateJsonSchema = {
1019
+ "$defs": {
1020
+ "ReviewFinding": {
1021
+ "properties": {
1022
+ "id": {
1023
+ "title": "Id",
1024
+ "type": "string"
1025
+ },
1026
+ "file": {
1027
+ "title": "File",
1028
+ "type": "string"
1029
+ },
1030
+ "issue": {
1031
+ "title": "Issue",
1032
+ "type": "string"
1033
+ },
1034
+ "status": {
1035
+ "enum": [
1036
+ "open",
1037
+ "resolved"
1038
+ ],
1039
+ "title": "Status",
1040
+ "type": "string"
1041
+ },
1042
+ "confidence": {
1043
+ "enum": [
1044
+ "high",
1045
+ "medium",
1046
+ "low"
1047
+ ],
1048
+ "title": "Confidence",
1049
+ "type": "string"
1050
+ },
1051
+ "severity": {
1052
+ "anyOf": [
1053
+ {
1054
+ "enum": [
1055
+ "HIGH",
1056
+ "MEDIUM",
1057
+ "LOW"
1058
+ ],
1059
+ "type": "string"
1060
+ },
1061
+ {
1062
+ "type": "null"
1063
+ }
1064
+ ],
1065
+ "default": null,
1066
+ "title": "Severity"
1067
+ },
1068
+ "line": {
1069
+ "anyOf": [
1070
+ {
1071
+ "type": "integer"
1072
+ },
1073
+ {
1074
+ "type": "null"
1075
+ }
1076
+ ],
1077
+ "default": null,
1078
+ "title": "Line"
1079
+ },
1080
+ "snippet": {
1081
+ "anyOf": [
1082
+ {
1083
+ "type": "string"
1084
+ },
1085
+ {
1086
+ "type": "null"
1087
+ }
1088
+ ],
1089
+ "default": null,
1090
+ "title": "Snippet"
1091
+ },
1092
+ "fixSummary": {
1093
+ "anyOf": [
1094
+ {
1095
+ "type": "string"
1096
+ },
1097
+ {
1098
+ "type": "null"
1099
+ }
1100
+ ],
1101
+ "default": null,
1102
+ "title": "Fixsummary"
1103
+ },
1104
+ "counterexample": {
1105
+ "anyOf": [
1106
+ {
1107
+ "type": "string"
1108
+ },
1109
+ {
1110
+ "type": "null"
1111
+ }
1112
+ ],
1113
+ "default": null,
1114
+ "title": "Counterexample"
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "id",
1119
+ "file",
1120
+ "issue",
1121
+ "status",
1122
+ "confidence"
1123
+ ],
1124
+ "title": "ReviewFinding",
1125
+ "type": "object"
1126
+ }
1127
+ },
1128
+ "properties": {
1129
+ "findings": {
1130
+ "items": {
1131
+ "$ref": "#/$defs/ReviewFinding"
1132
+ },
1133
+ "title": "Findings",
1134
+ "type": "array"
1135
+ }
1136
+ },
1137
+ "title": "CodeReviewState",
1138
+ "type": "object"
1139
+ } as const;
1140
+
1141
+ export const CommentTriageSummaryInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the original PR to comment on."), "body": z.string().describe("The content of the comment.") });
1142
+
1143
+ export type CommentTriageSummaryInput = z.infer<typeof CommentTriageSummaryInputSchema>;
1144
+
1145
+ export const CommentTriageSummaryInputJsonSchema = {
1146
+ "properties": {
1147
+ "prNumber": {
1148
+ "description": "The number of the original PR to comment on.",
1149
+ "title": "Prnumber",
1150
+ "type": "integer"
1151
+ },
1152
+ "body": {
1153
+ "description": "The content of the comment.",
1154
+ "title": "Body",
1155
+ "type": "string"
1156
+ }
1157
+ },
1158
+ "required": [
1159
+ "prNumber",
1160
+ "body"
1161
+ ],
1162
+ "title": "CommentTriageSummaryInput",
1163
+ "type": "object"
1164
+ } as const;
1165
+
1166
+ export const CommitPatchInputSchema = z.object({ "worktreePath": z.string().describe("Path to the worktree where changes are made."), "message": z.string().describe("Commit message."), "allowedFiles": z.array(z.string()).describe("List of files that are allowed to be committed."), "writeMode": z.boolean().describe("Safety gate: Must be true to perform the commit.") });
1167
+
1168
+ export type CommitPatchInput = z.infer<typeof CommitPatchInputSchema>;
1169
+
1170
+ export const CommitPatchInputJsonSchema = {
1171
+ "properties": {
1172
+ "worktreePath": {
1173
+ "description": "Path to the worktree where changes are made.",
1174
+ "title": "Worktreepath",
1175
+ "type": "string"
1176
+ },
1177
+ "message": {
1178
+ "description": "Commit message.",
1179
+ "title": "Message",
1180
+ "type": "string"
1181
+ },
1182
+ "allowedFiles": {
1183
+ "description": "List of files that are allowed to be committed.",
1184
+ "items": {
1185
+ "type": "string"
1186
+ },
1187
+ "title": "Allowedfiles",
1188
+ "type": "array"
1189
+ },
1190
+ "writeMode": {
1191
+ "description": "Safety gate: Must be true to perform the commit.",
1192
+ "title": "Writemode",
1193
+ "type": "boolean"
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "worktreePath",
1198
+ "message",
1199
+ "allowedFiles",
1200
+ "writeMode"
1201
+ ],
1202
+ "title": "CommitPatchInput",
1203
+ "type": "object"
1204
+ } as const;
1205
+
1206
+ export const CreateBranchInputSchema = z.object({ "branchName": z.string().describe("The name of the new branch"), "baseBranch": z.string().describe("Branch to branch off from").default("main") });
1207
+
1208
+ export type CreateBranchInput = z.infer<typeof CreateBranchInputSchema>;
1209
+
1210
+ export const CreateBranchInputJsonSchema = {
1211
+ "properties": {
1212
+ "branchName": {
1213
+ "description": "The name of the new branch",
1214
+ "title": "Branchname",
1215
+ "type": "string"
1216
+ },
1217
+ "baseBranch": {
1218
+ "default": "main",
1219
+ "description": "Branch to branch off from",
1220
+ "title": "Basebranch",
1221
+ "type": "string"
1222
+ }
1223
+ },
1224
+ "required": [
1225
+ "branchName"
1226
+ ],
1227
+ "title": "CreateBranchInput",
1228
+ "type": "object"
1229
+ } as const;
1230
+
1231
+ export const CreateIssueInputSchema = z.object({ "title": z.string().min(1), "body": z.union([z.string().min(1), z.null()]).default(null), "file": z.union([z.string().min(1), z.null()]).default(null) });
1232
+
1233
+ export type CreateIssueInput = z.infer<typeof CreateIssueInputSchema>;
1234
+
1235
+ export const CreateIssueInputJsonSchema = {
1236
+ "properties": {
1237
+ "title": {
1238
+ "minLength": 1,
1239
+ "title": "Title",
1240
+ "type": "string"
1241
+ },
1242
+ "body": {
1243
+ "anyOf": [
1244
+ {
1245
+ "minLength": 1,
1246
+ "type": "string"
1247
+ },
1248
+ {
1249
+ "type": "null"
1250
+ }
1251
+ ],
1252
+ "default": null,
1253
+ "title": "Body"
1254
+ },
1255
+ "file": {
1256
+ "anyOf": [
1257
+ {
1258
+ "minLength": 1,
1259
+ "type": "string"
1260
+ },
1261
+ {
1262
+ "type": "null"
1263
+ }
1264
+ ],
1265
+ "default": null,
1266
+ "title": "File"
1267
+ }
1268
+ },
1269
+ "required": [
1270
+ "title"
1271
+ ],
1272
+ "title": "CreateIssueInput",
1273
+ "type": "object"
1274
+ } as const;
1275
+
1276
+ export const CreateIssueResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "issue": z.union([z.any(), z.null()]).default(null) });
1277
+
1278
+ export type CreateIssueResponse = z.infer<typeof CreateIssueResponseSchema>;
1279
+
1280
+ export const CreateIssueResponseJsonSchema = {
1281
+ "$defs": {
1282
+ "IssueSummary": {
1283
+ "properties": {
1284
+ "number": {
1285
+ "title": "Number",
1286
+ "type": "integer"
1287
+ },
1288
+ "title": {
1289
+ "title": "Title",
1290
+ "type": "string"
1291
+ },
1292
+ "htmlUrl": {
1293
+ "title": "Htmlurl",
1294
+ "type": "string"
1295
+ },
1296
+ "state": {
1297
+ "title": "State",
1298
+ "type": "string"
1299
+ }
1300
+ },
1301
+ "required": [
1302
+ "number",
1303
+ "title",
1304
+ "htmlUrl",
1305
+ "state"
1306
+ ],
1307
+ "title": "IssueSummary",
1308
+ "type": "object"
1309
+ }
1310
+ },
1311
+ "properties": {
1312
+ "status": {
1313
+ "default": "success",
1314
+ "title": "Status",
1315
+ "type": "string"
1316
+ },
1317
+ "message": {
1318
+ "anyOf": [
1319
+ {
1320
+ "type": "string"
1321
+ },
1322
+ {
1323
+ "type": "null"
1324
+ }
1325
+ ],
1326
+ "default": null,
1327
+ "title": "Message"
1328
+ },
1329
+ "data": {
1330
+ "anyOf": [
1331
+ {},
1332
+ {
1333
+ "type": "null"
1334
+ }
1335
+ ],
1336
+ "default": null,
1337
+ "title": "Data"
1338
+ },
1339
+ "issue": {
1340
+ "anyOf": [
1341
+ {
1342
+ "$ref": "#/$defs/IssueSummary"
1343
+ },
1344
+ {
1345
+ "type": "null"
1346
+ }
1347
+ ],
1348
+ "default": null
1349
+ }
1350
+ },
1351
+ "title": "CreateIssueResponse",
1352
+ "type": "object"
1353
+ } as const;
1354
+
1355
+ export const CreateJulesSessionInputSchema = z.object({ "task": z.string().describe("The instructions for Jules."), "branch": z.union([z.string(), z.null()]).describe("The base branch to start from (e.g., 'main').").default(null), "pr": z.union([z.number().int(), z.null()]).describe("The PR number to use as the base branch context.").default(null) });
1356
+
1357
+ export type CreateJulesSessionInput = z.infer<typeof CreateJulesSessionInputSchema>;
1358
+
1359
+ export const CreateJulesSessionInputJsonSchema = {
1360
+ "properties": {
1361
+ "task": {
1362
+ "description": "The instructions for Jules.",
1363
+ "title": "Task",
1364
+ "type": "string"
1365
+ },
1366
+ "branch": {
1367
+ "anyOf": [
1368
+ {
1369
+ "type": "string"
1370
+ },
1371
+ {
1372
+ "type": "null"
1373
+ }
1374
+ ],
1375
+ "default": null,
1376
+ "description": "The base branch to start from (e.g., 'main').",
1377
+ "title": "Branch"
1378
+ },
1379
+ "pr": {
1380
+ "anyOf": [
1381
+ {
1382
+ "type": "integer"
1383
+ },
1384
+ {
1385
+ "type": "null"
1386
+ }
1387
+ ],
1388
+ "default": null,
1389
+ "description": "The PR number to use as the base branch context.",
1390
+ "title": "Pr"
1391
+ }
1392
+ },
1393
+ "required": [
1394
+ "task"
1395
+ ],
1396
+ "title": "CreateJulesSessionInput",
1397
+ "type": "object"
1398
+ } as const;
1399
+
1400
+ export const CreatePullRequestInputSchema = z.object({ "title": z.string().describe("PR Title."), "body": z.string().describe("Description of changes."), "head": z.string().describe("The branch containing changes to merge."), "base": z.string().describe("The target branch to merge into.").default("main"), "draft": z.boolean().describe("Whether to create the PR as a draft.").default(false) });
1401
+
1402
+ export type CreatePullRequestInput = z.infer<typeof CreatePullRequestInputSchema>;
1403
+
1404
+ export const CreatePullRequestInputJsonSchema = {
1405
+ "properties": {
1406
+ "title": {
1407
+ "description": "PR Title.",
1408
+ "title": "Title",
1409
+ "type": "string"
1410
+ },
1411
+ "body": {
1412
+ "description": "Description of changes.",
1413
+ "title": "Body",
1414
+ "type": "string"
1415
+ },
1416
+ "head": {
1417
+ "description": "The branch containing changes to merge.",
1418
+ "title": "Head",
1419
+ "type": "string"
1420
+ },
1421
+ "base": {
1422
+ "default": "main",
1423
+ "description": "The target branch to merge into.",
1424
+ "title": "Base",
1425
+ "type": "string"
1426
+ },
1427
+ "draft": {
1428
+ "default": false,
1429
+ "description": "Whether to create the PR as a draft.",
1430
+ "title": "Draft",
1431
+ "type": "boolean"
1432
+ }
1433
+ },
1434
+ "required": [
1435
+ "title",
1436
+ "body",
1437
+ "head"
1438
+ ],
1439
+ "title": "CreatePullRequestInput",
1440
+ "type": "object"
1441
+ } as const;
1442
+
1443
+ export const CreateRepairBranchInputSchema = z.object({ "prNumber": z.number().int().describe("The original pull request number to repair."), "repairBranchName": z.union([z.string(), z.null()]).describe("Optional custom name for the new repair branch.").default(null), "writeMode": z.boolean().describe("Safety gate: Must be true to perform branch creation and worktree setup.") });
1444
+
1445
+ export type CreateRepairBranchInput = z.infer<typeof CreateRepairBranchInputSchema>;
1446
+
1447
+ export const CreateRepairBranchInputJsonSchema = {
1448
+ "properties": {
1449
+ "prNumber": {
1450
+ "description": "The original pull request number to repair.",
1451
+ "title": "Prnumber",
1452
+ "type": "integer"
1453
+ },
1454
+ "repairBranchName": {
1455
+ "anyOf": [
1456
+ {
1457
+ "type": "string"
1458
+ },
1459
+ {
1460
+ "type": "null"
1461
+ }
1462
+ ],
1463
+ "default": null,
1464
+ "description": "Optional custom name for the new repair branch.",
1465
+ "title": "Repairbranchname"
1466
+ },
1467
+ "writeMode": {
1468
+ "description": "Safety gate: Must be true to perform branch creation and worktree setup.",
1469
+ "title": "Writemode",
1470
+ "type": "boolean"
1471
+ }
1472
+ },
1473
+ "required": [
1474
+ "prNumber",
1475
+ "writeMode"
1476
+ ],
1477
+ "title": "CreateRepairBranchInput",
1478
+ "type": "object"
1479
+ } as const;
1480
+
1481
+ export const GetChangedFilesInputSchema = z.object({ "base": z.string().describe("The base ref to compare from (default: 'main').").default("main"), "head": z.string().describe("The head ref to compare to (default: 'HEAD').").default("HEAD") });
1482
+
1483
+ export type GetChangedFilesInput = z.infer<typeof GetChangedFilesInputSchema>;
1484
+
1485
+ export const GetChangedFilesInputJsonSchema = {
1486
+ "properties": {
1487
+ "base": {
1488
+ "default": "main",
1489
+ "description": "The base ref to compare from (default: 'main').",
1490
+ "title": "Base",
1491
+ "type": "string"
1492
+ },
1493
+ "head": {
1494
+ "default": "HEAD",
1495
+ "description": "The head ref to compare to (default: 'HEAD').",
1496
+ "title": "Head",
1497
+ "type": "string"
1498
+ }
1499
+ },
1500
+ "title": "GetChangedFilesInput",
1501
+ "type": "object"
1502
+ } as const;
1503
+
1504
+ export const GetCommandSchemaInputSchema = z.object({ "commandPath": z.string().describe("The CLI command path to retrieve the schema for (e.g. 'gh audit-pr')") });
1505
+
1506
+ export type GetCommandSchemaInput = z.infer<typeof GetCommandSchemaInputSchema>;
1507
+
1508
+ export const GetCommandSchemaInputJsonSchema = {
1509
+ "properties": {
1510
+ "commandPath": {
1511
+ "description": "The CLI command path to retrieve the schema for (e.g. 'gh audit-pr')",
1512
+ "title": "Commandpath",
1513
+ "type": "string"
1514
+ }
1515
+ },
1516
+ "required": [
1517
+ "commandPath"
1518
+ ],
1519
+ "title": "GetCommandSchemaInput",
1520
+ "type": "object"
1521
+ } as const;
1522
+
1523
+ export const GetMergeConflictFilesInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to check for conflicts."), "baseBranch": z.string().describe("The base branch to check against (default: 'main').").default("main") });
1524
+
1525
+ export type GetMergeConflictFilesInput = z.infer<typeof GetMergeConflictFilesInputSchema>;
1526
+
1527
+ export const GetMergeConflictFilesInputJsonSchema = {
522
1528
  "properties": {
523
- "reviewComment": {
524
- "description": "Overall summary comment for the PR.",
525
- "title": "Reviewcomment",
526
- "type": "string"
527
- },
528
- "labels": {
529
- "description": "Suggested labels for the PR.",
530
- "items": {
531
- "type": "string"
532
- },
533
- "title": "Labels",
534
- "type": "array"
1529
+ "prNumber": {
1530
+ "description": "The number of the pull request to check for conflicts.",
1531
+ "title": "Prnumber",
1532
+ "type": "integer"
535
1533
  },
536
- "recommendation": {
537
- "description": "Final recommendation.",
538
- "title": "Recommendation",
1534
+ "baseBranch": {
1535
+ "default": "main",
1536
+ "description": "The base branch to check against (default: 'main').",
1537
+ "title": "Basebranch",
539
1538
  "type": "string"
540
1539
  }
541
1540
  },
542
1541
  "required": [
543
- "reviewComment",
544
- "recommendation"
1542
+ "prNumber"
545
1543
  ],
546
- "title": "AISynthesisReview",
1544
+ "title": "GetMergeConflictFilesInput",
547
1545
  "type": "object"
548
1546
  } as const;
549
1547
 
550
- export const CheckoutBranchInputSchema = z.object({ "branch": z.string().describe("The name of the branch to checkout."), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree to perform the checkout in.").default(null) });
1548
+ export const GetPackageScriptsInputSchema = z.object({ "filter": z.union([z.string(), z.null()]).describe("Optional glob pattern to filter script names.").default(null) });
551
1549
 
552
- export type CheckoutBranchInput = z.infer<typeof CheckoutBranchInputSchema>;
1550
+ export type GetPackageScriptsInput = z.infer<typeof GetPackageScriptsInputSchema>;
553
1551
 
554
- export const CheckoutBranchInputJsonSchema = {
1552
+ export const GetPackageScriptsInputJsonSchema = {
555
1553
  "properties": {
556
- "branch": {
557
- "description": "The name of the branch to checkout.",
558
- "title": "Branch",
559
- "type": "string"
560
- },
561
- "worktreePath": {
1554
+ "filter": {
562
1555
  "anyOf": [
563
1556
  {
564
1557
  "type": "string"
@@ -568,135 +1561,243 @@ export const CheckoutBranchInputJsonSchema = {
568
1561
  }
569
1562
  ],
570
1563
  "default": null,
571
- "description": "Optional path to the worktree to perform the checkout in.",
572
- "title": "Worktreepath"
1564
+ "description": "Optional glob pattern to filter script names.",
1565
+ "title": "Filter"
1566
+ }
1567
+ },
1568
+ "title": "GetPackageScriptsInput",
1569
+ "type": "object"
1570
+ } as const;
1571
+
1572
+ export const GetPrDiffInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to get the diff for.") });
1573
+
1574
+ export type GetPrDiffInput = z.infer<typeof GetPrDiffInputSchema>;
1575
+
1576
+ export const GetPrDiffInputJsonSchema = {
1577
+ "properties": {
1578
+ "prNumber": {
1579
+ "description": "The number of the pull request to get the diff for.",
1580
+ "title": "Prnumber",
1581
+ "type": "integer"
573
1582
  }
574
1583
  },
575
1584
  "required": [
576
- "branch"
1585
+ "prNumber"
577
1586
  ],
578
- "title": "CheckoutBranchInput",
1587
+ "title": "GetPrDiffInput",
579
1588
  "type": "object"
580
1589
  } as const;
581
1590
 
582
- export const CommentTriageSummaryInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the original PR to comment on."), "body": z.string().describe("The content of the comment.") });
1591
+ export const GetPrInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the PR to view.") });
583
1592
 
584
- export type CommentTriageSummaryInput = z.infer<typeof CommentTriageSummaryInputSchema>;
1593
+ export type GetPrInput = z.infer<typeof GetPrInputSchema>;
585
1594
 
586
- export const CommentTriageSummaryInputJsonSchema = {
1595
+ export const GetPrInputJsonSchema = {
587
1596
  "properties": {
588
1597
  "prNumber": {
589
- "description": "The number of the original PR to comment on.",
1598
+ "description": "The number of the PR to view.",
590
1599
  "title": "Prnumber",
591
1600
  "type": "integer"
592
- },
593
- "body": {
594
- "description": "The content of the comment.",
595
- "title": "Body",
596
- "type": "string"
597
1601
  }
598
1602
  },
599
1603
  "required": [
600
- "prNumber",
601
- "body"
1604
+ "prNumber"
602
1605
  ],
603
- "title": "CommentTriageSummaryInput",
1606
+ "title": "GetPrInput",
604
1607
  "type": "object"
605
1608
  } as const;
606
1609
 
607
- export const CommitPatchInputSchema = z.object({ "worktreePath": z.string().describe("Path to the worktree where changes are made."), "message": z.string().describe("Commit message."), "allowedFiles": z.array(z.string()).describe("List of files that are allowed to be committed."), "writeMode": z.boolean().describe("Safety gate: Must be true to perform the commit.") });
1610
+ export const GetRouteMapInputSchema = z.object({ "includeStatic": z.union([z.boolean(), z.null()]).describe("Whether to include static assets in the route map.").default(null) });
608
1611
 
609
- export type CommitPatchInput = z.infer<typeof CommitPatchInputSchema>;
1612
+ export type GetRouteMapInput = z.infer<typeof GetRouteMapInputSchema>;
610
1613
 
611
- export const CommitPatchInputJsonSchema = {
1614
+ export const GetRouteMapInputJsonSchema = {
612
1615
  "properties": {
613
- "worktreePath": {
614
- "description": "Path to the worktree where changes are made.",
615
- "title": "Worktreepath",
616
- "type": "string"
1616
+ "includeStatic": {
1617
+ "anyOf": [
1618
+ {
1619
+ "type": "boolean"
1620
+ },
1621
+ {
1622
+ "type": "null"
1623
+ }
1624
+ ],
1625
+ "default": null,
1626
+ "description": "Whether to include static assets in the route map.",
1627
+ "title": "Includestatic"
1628
+ }
1629
+ },
1630
+ "title": "GetRouteMapInput",
1631
+ "type": "object"
1632
+ } as const;
1633
+
1634
+ export const HealthCheckInputSchema = z.object({ "checkDeep": z.boolean().describe("Whether to perform a deep health check including external dependencies.").default(false) });
1635
+
1636
+ export type HealthCheckInput = z.infer<typeof HealthCheckInputSchema>;
1637
+
1638
+ export const HealthCheckInputJsonSchema = {
1639
+ "properties": {
1640
+ "checkDeep": {
1641
+ "default": false,
1642
+ "description": "Whether to perform a deep health check including external dependencies.",
1643
+ "title": "Checkdeep",
1644
+ "type": "boolean"
1645
+ }
1646
+ },
1647
+ "title": "HealthCheckInput",
1648
+ "type": "object"
1649
+ } as const;
1650
+
1651
+ export const IssueCommentInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to comment on."), "body": z.string().describe("The content of the comment.") });
1652
+
1653
+ export type IssueCommentInput = z.infer<typeof IssueCommentInputSchema>;
1654
+
1655
+ export const IssueCommentInputJsonSchema = {
1656
+ "properties": {
1657
+ "issueNumber": {
1658
+ "description": "The number of the issue to comment on.",
1659
+ "title": "Issuenumber",
1660
+ "type": "integer"
617
1661
  },
618
- "message": {
619
- "description": "Commit message.",
620
- "title": "Message",
1662
+ "body": {
1663
+ "description": "The content of the comment.",
1664
+ "title": "Body",
621
1665
  "type": "string"
622
- },
623
- "allowedFiles": {
624
- "description": "List of files that are allowed to be committed.",
625
- "items": {
626
- "type": "string"
627
- },
628
- "title": "Allowedfiles",
629
- "type": "array"
630
- },
631
- "writeMode": {
632
- "description": "Safety gate: Must be true to perform the commit.",
633
- "title": "Writemode",
634
- "type": "boolean"
635
1666
  }
636
1667
  },
637
1668
  "required": [
638
- "worktreePath",
639
- "message",
640
- "allowedFiles",
641
- "writeMode"
1669
+ "issueNumber",
1670
+ "body"
642
1671
  ],
643
- "title": "CommitPatchInput",
1672
+ "title": "IssueCommentInput",
644
1673
  "type": "object"
645
1674
  } as const;
646
1675
 
647
- export const CreateBranchInputSchema = z.object({ "branchName": z.string().describe("The name of the new branch"), "baseBranch": z.string().describe("Branch to branch off from").default("main") });
1676
+ export const IssueSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "htmlUrl": z.string(), "state": z.string() });
648
1677
 
649
- export type CreateBranchInput = z.infer<typeof CreateBranchInputSchema>;
1678
+ export type IssueSummary = z.infer<typeof IssueSummarySchema>;
650
1679
 
651
- export const CreateBranchInputJsonSchema = {
1680
+ export const IssueSummaryJsonSchema = {
652
1681
  "properties": {
653
- "branchName": {
654
- "description": "The name of the new branch",
655
- "title": "Branchname",
1682
+ "number": {
1683
+ "title": "Number",
1684
+ "type": "integer"
1685
+ },
1686
+ "title": {
1687
+ "title": "Title",
656
1688
  "type": "string"
657
1689
  },
658
- "baseBranch": {
659
- "default": "main",
660
- "description": "Branch to branch off from",
661
- "title": "Basebranch",
1690
+ "htmlUrl": {
1691
+ "title": "Htmlurl",
1692
+ "type": "string"
1693
+ },
1694
+ "state": {
1695
+ "title": "State",
662
1696
  "type": "string"
663
1697
  }
664
1698
  },
665
1699
  "required": [
666
- "branchName"
1700
+ "number",
1701
+ "title",
1702
+ "htmlUrl",
1703
+ "state"
667
1704
  ],
668
- "title": "CreateBranchInput",
1705
+ "title": "IssueSummary",
669
1706
  "type": "object"
670
1707
  } as const;
671
1708
 
672
- export const CreateIssueInputSchema = z.object({ "title": z.string().min(1), "body": z.union([z.string().min(1), z.null()]).default(null), "file": z.union([z.string().min(1), z.null()]).default(null) });
1709
+ export const IssueUpdateInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to update."), "body": z.union([z.string(), z.null()]).describe("The new body content for the issue.").default(null), "file": z.union([z.string(), z.null()]).describe("Path to file containing new issue body.").default(null), "labels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to set.").default(null), "addLabels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to add.").default(null), "removeLabels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to remove.").default(null), "state": z.union([z.enum(["open","closed"]), z.null()]).describe("The state to set the issue to.").default(null) });
673
1710
 
674
- export type CreateIssueInput = z.infer<typeof CreateIssueInputSchema>;
1711
+ export type IssueUpdateInput = z.infer<typeof IssueUpdateInputSchema>;
675
1712
 
676
- export const CreateIssueInputJsonSchema = {
1713
+ export const IssueUpdateInputJsonSchema = {
677
1714
  "properties": {
678
- "title": {
679
- "minLength": 1,
680
- "title": "Title",
681
- "type": "string"
1715
+ "issueNumber": {
1716
+ "description": "The number of the issue to update.",
1717
+ "title": "Issuenumber",
1718
+ "type": "integer"
1719
+ },
1720
+ "body": {
1721
+ "anyOf": [
1722
+ {
1723
+ "type": "string"
1724
+ },
1725
+ {
1726
+ "type": "null"
1727
+ }
1728
+ ],
1729
+ "default": null,
1730
+ "description": "The new body content for the issue.",
1731
+ "title": "Body"
1732
+ },
1733
+ "file": {
1734
+ "anyOf": [
1735
+ {
1736
+ "type": "string"
1737
+ },
1738
+ {
1739
+ "type": "null"
1740
+ }
1741
+ ],
1742
+ "default": null,
1743
+ "description": "Path to file containing new issue body.",
1744
+ "title": "File"
1745
+ },
1746
+ "labels": {
1747
+ "anyOf": [
1748
+ {
1749
+ "items": {
1750
+ "type": "string"
1751
+ },
1752
+ "type": "array"
1753
+ },
1754
+ {
1755
+ "type": "null"
1756
+ }
1757
+ ],
1758
+ "default": null,
1759
+ "description": "Comma-separated list of labels to set.",
1760
+ "title": "Labels"
1761
+ },
1762
+ "addLabels": {
1763
+ "anyOf": [
1764
+ {
1765
+ "items": {
1766
+ "type": "string"
1767
+ },
1768
+ "type": "array"
1769
+ },
1770
+ {
1771
+ "type": "null"
1772
+ }
1773
+ ],
1774
+ "default": null,
1775
+ "description": "Comma-separated list of labels to add.",
1776
+ "title": "Addlabels"
682
1777
  },
683
- "body": {
1778
+ "removeLabels": {
684
1779
  "anyOf": [
685
1780
  {
686
- "minLength": 1,
687
- "type": "string"
1781
+ "items": {
1782
+ "type": "string"
1783
+ },
1784
+ "type": "array"
688
1785
  },
689
1786
  {
690
1787
  "type": "null"
691
1788
  }
692
1789
  ],
693
1790
  "default": null,
694
- "title": "Body"
1791
+ "description": "Comma-separated list of labels to remove.",
1792
+ "title": "Removelabels"
695
1793
  },
696
- "file": {
1794
+ "state": {
697
1795
  "anyOf": [
698
1796
  {
699
- "minLength": 1,
1797
+ "enum": [
1798
+ "open",
1799
+ "closed"
1800
+ ],
700
1801
  "type": "string"
701
1802
  },
702
1803
  {
@@ -704,21 +1805,22 @@ export const CreateIssueInputJsonSchema = {
704
1805
  }
705
1806
  ],
706
1807
  "default": null,
707
- "title": "File"
1808
+ "description": "The state to set the issue to.",
1809
+ "title": "State"
708
1810
  }
709
1811
  },
710
1812
  "required": [
711
- "title"
1813
+ "issueNumber"
712
1814
  ],
713
- "title": "CreateIssueInput",
1815
+ "title": "IssueUpdateInput",
714
1816
  "type": "object"
715
1817
  } as const;
716
1818
 
717
- export const CreateIssueResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "issue": z.union([z.any(), z.null()]).default(null) });
1819
+ export const IssueUpdateResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "issue": z.union([z.any(), z.null()]).default(null) });
718
1820
 
719
- export type CreateIssueResponse = z.infer<typeof CreateIssueResponseSchema>;
1821
+ export type IssueUpdateResponse = z.infer<typeof IssueUpdateResponseSchema>;
720
1822
 
721
- export const CreateIssueResponseJsonSchema = {
1823
+ export const IssueUpdateResponseJsonSchema = {
722
1824
  "$defs": {
723
1825
  "IssueSummary": {
724
1826
  "properties": {
@@ -730,8 +1832,8 @@ export const CreateIssueResponseJsonSchema = {
730
1832
  "title": "Title",
731
1833
  "type": "string"
732
1834
  },
733
- "html_url": {
734
- "title": "Html Url",
1835
+ "htmlUrl": {
1836
+ "title": "Htmlurl",
735
1837
  "type": "string"
736
1838
  },
737
1839
  "state": {
@@ -742,7 +1844,7 @@ export const CreateIssueResponseJsonSchema = {
742
1844
  "required": [
743
1845
  "number",
744
1846
  "title",
745
- "html_url",
1847
+ "htmlUrl",
746
1848
  "state"
747
1849
  ],
748
1850
  "title": "IssueSummary",
@@ -776,389 +1878,252 @@ export const CreateIssueResponseJsonSchema = {
776
1878
  ],
777
1879
  "default": null,
778
1880
  "title": "Data"
779
- },
780
- "issue": {
781
- "anyOf": [
782
- {
783
- "$ref": "#/$defs/IssueSummary"
784
- },
785
- {
786
- "type": "null"
787
- }
788
- ],
789
- "default": null
790
- }
791
- },
792
- "title": "CreateIssueResponse",
793
- "type": "object"
794
- } as const;
795
-
796
- export const CreateJulesSessionInputSchema = z.object({ "task": z.string().describe("The instructions for Jules."), "branch": z.union([z.string(), z.null()]).describe("The base branch to start from (e.g., 'main').").default(null), "pr": z.union([z.number().int(), z.null()]).describe("The PR number to use as the base branch context.").default(null) });
797
-
798
- export type CreateJulesSessionInput = z.infer<typeof CreateJulesSessionInputSchema>;
799
-
800
- export const CreateJulesSessionInputJsonSchema = {
801
- "properties": {
802
- "task": {
803
- "description": "The instructions for Jules.",
804
- "title": "Task",
805
- "type": "string"
806
- },
807
- "branch": {
808
- "anyOf": [
809
- {
810
- "type": "string"
811
- },
812
- {
813
- "type": "null"
814
- }
815
- ],
816
- "default": null,
817
- "description": "The base branch to start from (e.g., 'main').",
818
- "title": "Branch"
819
- },
820
- "pr": {
821
- "anyOf": [
822
- {
823
- "type": "integer"
824
- },
825
- {
826
- "type": "null"
827
- }
828
- ],
829
- "default": null,
830
- "description": "The PR number to use as the base branch context.",
831
- "title": "Pr"
832
- }
833
- },
834
- "required": [
835
- "task"
836
- ],
837
- "title": "CreateJulesSessionInput",
838
- "type": "object"
839
- } as const;
840
-
841
- export const CreatePullRequestInputSchema = z.object({ "title": z.string().describe("PR Title."), "body": z.string().describe("Description of changes."), "head": z.string().describe("The branch containing changes to merge."), "base": z.string().describe("The target branch to merge into.").default("main"), "draft": z.boolean().describe("Whether to create the PR as a draft.").default(false) });
842
-
843
- export type CreatePullRequestInput = z.infer<typeof CreatePullRequestInputSchema>;
844
-
845
- export const CreatePullRequestInputJsonSchema = {
846
- "properties": {
847
- "title": {
848
- "description": "PR Title.",
849
- "title": "Title",
850
- "type": "string"
851
- },
852
- "body": {
853
- "description": "Description of changes.",
854
- "title": "Body",
855
- "type": "string"
856
- },
857
- "head": {
858
- "description": "The branch containing changes to merge.",
859
- "title": "Head",
860
- "type": "string"
861
- },
862
- "base": {
863
- "default": "main",
864
- "description": "The target branch to merge into.",
865
- "title": "Base",
866
- "type": "string"
867
- },
868
- "draft": {
869
- "default": false,
870
- "description": "Whether to create the PR as a draft.",
871
- "title": "Draft",
872
- "type": "boolean"
873
- }
874
- },
875
- "required": [
876
- "title",
877
- "body",
878
- "head"
879
- ],
880
- "title": "CreatePullRequestInput",
881
- "type": "object"
882
- } as const;
883
-
884
- export const CreateRepairBranchInputSchema = z.object({ "prNumber": z.number().int().describe("The original pull request number to repair."), "repairBranchName": z.union([z.string(), z.null()]).describe("Optional custom name for the new repair branch.").default(null), "writeMode": z.boolean().describe("Safety gate: Must be true to perform branch creation and worktree setup.") });
885
-
886
- export type CreateRepairBranchInput = z.infer<typeof CreateRepairBranchInputSchema>;
887
-
888
- export const CreateRepairBranchInputJsonSchema = {
889
- "properties": {
890
- "prNumber": {
891
- "description": "The original pull request number to repair.",
892
- "title": "Prnumber",
893
- "type": "integer"
894
- },
895
- "repairBranchName": {
896
- "anyOf": [
897
- {
898
- "type": "string"
899
- },
900
- {
901
- "type": "null"
902
- }
903
- ],
904
- "default": null,
905
- "description": "Optional custom name for the new repair branch.",
906
- "title": "Repairbranchname"
907
- },
908
- "writeMode": {
909
- "description": "Safety gate: Must be true to perform branch creation and worktree setup.",
910
- "title": "Writemode",
911
- "type": "boolean"
912
- }
913
- },
914
- "required": [
915
- "prNumber",
916
- "writeMode"
917
- ],
918
- "title": "CreateRepairBranchInput",
919
- "type": "object"
920
- } as const;
921
-
922
- export const GetChangedFilesInputSchema = z.object({ "base": z.string().describe("The base ref to compare from (default: 'main').").default("main"), "head": z.string().describe("The head ref to compare to (default: 'HEAD').").default("HEAD") });
923
-
924
- export type GetChangedFilesInput = z.infer<typeof GetChangedFilesInputSchema>;
925
-
926
- export const GetChangedFilesInputJsonSchema = {
927
- "properties": {
928
- "base": {
929
- "default": "main",
930
- "description": "The base ref to compare from (default: 'main').",
931
- "title": "Base",
932
- "type": "string"
933
- },
934
- "head": {
935
- "default": "HEAD",
936
- "description": "The head ref to compare to (default: 'HEAD').",
937
- "title": "Head",
938
- "type": "string"
939
- }
940
- },
941
- "title": "GetChangedFilesInput",
942
- "type": "object"
943
- } as const;
944
-
945
- export const GetCommandSchemaInputSchema = z.object({ "commandPath": z.string().describe("The CLI command path to retrieve the schema for (e.g. 'gh audit-pr')") });
946
-
947
- export type GetCommandSchemaInput = z.infer<typeof GetCommandSchemaInputSchema>;
948
-
949
- export const GetCommandSchemaInputJsonSchema = {
950
- "properties": {
951
- "commandPath": {
952
- "description": "The CLI command path to retrieve the schema for (e.g. 'gh audit-pr')",
953
- "title": "Commandpath",
954
- "type": "string"
955
- }
956
- },
957
- "required": [
958
- "commandPath"
959
- ],
960
- "title": "GetCommandSchemaInput",
961
- "type": "object"
962
- } as const;
963
-
964
- export const GetMergeConflictFilesInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to check for conflicts."), "baseBranch": z.string().describe("The base branch to check against (default: 'main').").default("main") });
965
-
966
- export type GetMergeConflictFilesInput = z.infer<typeof GetMergeConflictFilesInputSchema>;
967
-
968
- export const GetMergeConflictFilesInputJsonSchema = {
969
- "properties": {
970
- "prNumber": {
971
- "description": "The number of the pull request to check for conflicts.",
972
- "title": "Prnumber",
973
- "type": "integer"
974
- },
975
- "baseBranch": {
976
- "default": "main",
977
- "description": "The base branch to check against (default: 'main').",
978
- "title": "Basebranch",
979
- "type": "string"
980
- }
981
- },
982
- "required": [
983
- "prNumber"
984
- ],
985
- "title": "GetMergeConflictFilesInput",
986
- "type": "object"
987
- } as const;
988
-
989
- export const GetPackageScriptsInputSchema = z.object({ "filter": z.union([z.string(), z.null()]).describe("Optional glob pattern to filter script names.").default(null) });
990
-
991
- export type GetPackageScriptsInput = z.infer<typeof GetPackageScriptsInputSchema>;
992
-
993
- export const GetPackageScriptsInputJsonSchema = {
994
- "properties": {
995
- "filter": {
1881
+ },
1882
+ "issue": {
996
1883
  "anyOf": [
997
1884
  {
998
- "type": "string"
1885
+ "$ref": "#/$defs/IssueSummary"
999
1886
  },
1000
1887
  {
1001
1888
  "type": "null"
1002
1889
  }
1003
1890
  ],
1004
- "default": null,
1005
- "description": "Optional glob pattern to filter script names.",
1006
- "title": "Filter"
1891
+ "default": null
1007
1892
  }
1008
1893
  },
1009
- "title": "GetPackageScriptsInput",
1894
+ "title": "IssueUpdateResponse",
1010
1895
  "type": "object"
1011
1896
  } as const;
1012
1897
 
1013
- export const GetPrDiffInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to get the diff for.") });
1898
+ export const IssueViewInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to view.") });
1014
1899
 
1015
- export type GetPrDiffInput = z.infer<typeof GetPrDiffInputSchema>;
1900
+ export type IssueViewInput = z.infer<typeof IssueViewInputSchema>;
1016
1901
 
1017
- export const GetPrDiffInputJsonSchema = {
1902
+ export const IssueViewInputJsonSchema = {
1018
1903
  "properties": {
1019
- "prNumber": {
1020
- "description": "The number of the pull request to get the diff for.",
1021
- "title": "Prnumber",
1904
+ "issueNumber": {
1905
+ "description": "The number of the issue to view.",
1906
+ "title": "Issuenumber",
1022
1907
  "type": "integer"
1023
1908
  }
1024
1909
  },
1025
1910
  "required": [
1026
- "prNumber"
1911
+ "issueNumber"
1027
1912
  ],
1028
- "title": "GetPrDiffInput",
1913
+ "title": "IssueViewInput",
1029
1914
  "type": "object"
1030
1915
  } as const;
1031
1916
 
1032
- export const GetPrInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the PR to view.") });
1917
+ export const JulesListSessionsInputSchema = z.object({ "pageSize": z.union([z.number().int(), z.null()]).describe("Maximum number of sessions to return.").default(null), "pageToken": z.union([z.string(), z.null()]).describe("Token for pagination.").default(null) });
1033
1918
 
1034
- export type GetPrInput = z.infer<typeof GetPrInputSchema>;
1919
+ export type JulesListSessionsInput = z.infer<typeof JulesListSessionsInputSchema>;
1035
1920
 
1036
- export const GetPrInputJsonSchema = {
1921
+ export const JulesListSessionsInputJsonSchema = {
1037
1922
  "properties": {
1038
- "prNumber": {
1039
- "description": "The number of the PR to view.",
1040
- "title": "Prnumber",
1041
- "type": "integer"
1923
+ "pageSize": {
1924
+ "anyOf": [
1925
+ {
1926
+ "type": "integer"
1927
+ },
1928
+ {
1929
+ "type": "null"
1930
+ }
1931
+ ],
1932
+ "default": null,
1933
+ "description": "Maximum number of sessions to return.",
1934
+ "title": "Pagesize"
1935
+ },
1936
+ "pageToken": {
1937
+ "anyOf": [
1938
+ {
1939
+ "type": "string"
1940
+ },
1941
+ {
1942
+ "type": "null"
1943
+ }
1944
+ ],
1945
+ "default": null,
1946
+ "description": "Token for pagination.",
1947
+ "title": "Pagetoken"
1042
1948
  }
1043
1949
  },
1044
- "required": [
1045
- "prNumber"
1046
- ],
1047
- "title": "GetPrInput",
1950
+ "title": "JulesListSessionsInput",
1048
1951
  "type": "object"
1049
1952
  } as const;
1050
1953
 
1051
- export const GetRouteMapInputSchema = z.object({ "includeStatic": z.union([z.boolean(), z.null()]).describe("Whether to include static assets in the route map.").default(null) });
1954
+ export const JulesSendMessageInputSchema = z.object({ "sessionId": z.union([z.string(), z.array(z.string())]).describe("The unique ID or IDs of the Jules session(s)."), "message": z.string().min(1).describe("The message content to send.") });
1052
1955
 
1053
- export type GetRouteMapInput = z.infer<typeof GetRouteMapInputSchema>;
1956
+ export type JulesSendMessageInput = z.infer<typeof JulesSendMessageInputSchema>;
1054
1957
 
1055
- export const GetRouteMapInputJsonSchema = {
1958
+ export const JulesSendMessageInputJsonSchema = {
1056
1959
  "properties": {
1057
- "includeStatic": {
1960
+ "sessionId": {
1058
1961
  "anyOf": [
1059
1962
  {
1060
- "type": "boolean"
1963
+ "type": "string"
1061
1964
  },
1062
1965
  {
1063
- "type": "null"
1966
+ "items": {
1967
+ "type": "string"
1968
+ },
1969
+ "type": "array"
1064
1970
  }
1065
1971
  ],
1066
- "default": null,
1067
- "description": "Whether to include static assets in the route map.",
1068
- "title": "Includestatic"
1972
+ "description": "The unique ID or IDs of the Jules session(s).",
1973
+ "title": "Sessionid"
1974
+ },
1975
+ "message": {
1976
+ "description": "The message content to send.",
1977
+ "minLength": 1,
1978
+ "title": "Message",
1979
+ "type": "string"
1069
1980
  }
1070
1981
  },
1071
- "title": "GetRouteMapInput",
1982
+ "required": [
1983
+ "sessionId",
1984
+ "message"
1985
+ ],
1986
+ "title": "JulesSendMessageInput",
1072
1987
  "type": "object"
1073
1988
  } as const;
1074
1989
 
1075
- export const HealthCheckInputSchema = z.object({ "checkDeep": z.boolean().describe("Whether to perform a deep health check including external dependencies.").default(false) });
1990
+ export const JulesSessionIdInputSchema = z.object({ "sessionId": z.string().describe("The unique ID of the Jules session.") });
1076
1991
 
1077
- export type HealthCheckInput = z.infer<typeof HealthCheckInputSchema>;
1992
+ export type JulesSessionIdInput = z.infer<typeof JulesSessionIdInputSchema>;
1078
1993
 
1079
- export const HealthCheckInputJsonSchema = {
1994
+ export const JulesSessionIdInputJsonSchema = {
1080
1995
  "properties": {
1081
- "checkDeep": {
1082
- "default": false,
1083
- "description": "Whether to perform a deep health check including external dependencies.",
1084
- "title": "Checkdeep",
1085
- "type": "boolean"
1996
+ "sessionId": {
1997
+ "description": "The unique ID of the Jules session.",
1998
+ "title": "Sessionid",
1999
+ "type": "string"
1086
2000
  }
1087
2001
  },
1088
- "title": "HealthCheckInput",
2002
+ "required": [
2003
+ "sessionId"
2004
+ ],
2005
+ "title": "JulesSessionIdInput",
1089
2006
  "type": "object"
1090
2007
  } as const;
1091
2008
 
1092
- export const IssueCommentInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to comment on."), "body": z.string().describe("The content of the comment.") });
2009
+ export const OpenReplacementPrInputSchema = z.object({ "originalPrNumber": z.number().int().describe("The number of the pull request being replaced."), "repairBranch": z.string().describe("The branch containing the fixes."), "baseBranch": z.string().describe("The branch to merge the fixes into."), "title": z.string().describe("The title of the new PR."), "body": z.string().describe("The body/description of the new PR."), "draft": z.boolean().describe("Whether to create the PR as a draft (default: true).").default(true), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree where the PR is created from.").default(null), "pushMode": z.boolean().describe("Safety gate: Must be true to push the branch and open the PR.") });
1093
2010
 
1094
- export type IssueCommentInput = z.infer<typeof IssueCommentInputSchema>;
2011
+ export type OpenReplacementPrInput = z.infer<typeof OpenReplacementPrInputSchema>;
1095
2012
 
1096
- export const IssueCommentInputJsonSchema = {
2013
+ export const OpenReplacementPrInputJsonSchema = {
1097
2014
  "properties": {
1098
- "issueNumber": {
1099
- "description": "The number of the issue to comment on.",
1100
- "title": "Issuenumber",
2015
+ "originalPrNumber": {
2016
+ "description": "The number of the pull request being replaced.",
2017
+ "title": "Originalprnumber",
1101
2018
  "type": "integer"
1102
2019
  },
2020
+ "repairBranch": {
2021
+ "description": "The branch containing the fixes.",
2022
+ "title": "Repairbranch",
2023
+ "type": "string"
2024
+ },
2025
+ "baseBranch": {
2026
+ "description": "The branch to merge the fixes into.",
2027
+ "title": "Basebranch",
2028
+ "type": "string"
2029
+ },
2030
+ "title": {
2031
+ "description": "The title of the new PR.",
2032
+ "title": "Title",
2033
+ "type": "string"
2034
+ },
1103
2035
  "body": {
1104
- "description": "The content of the comment.",
2036
+ "description": "The body/description of the new PR.",
1105
2037
  "title": "Body",
1106
2038
  "type": "string"
2039
+ },
2040
+ "draft": {
2041
+ "default": true,
2042
+ "description": "Whether to create the PR as a draft (default: true).",
2043
+ "title": "Draft",
2044
+ "type": "boolean"
2045
+ },
2046
+ "worktreePath": {
2047
+ "anyOf": [
2048
+ {
2049
+ "type": "string"
2050
+ },
2051
+ {
2052
+ "type": "null"
2053
+ }
2054
+ ],
2055
+ "default": null,
2056
+ "description": "Optional path to the worktree where the PR is created from.",
2057
+ "title": "Worktreepath"
2058
+ },
2059
+ "pushMode": {
2060
+ "description": "Safety gate: Must be true to push the branch and open the PR.",
2061
+ "title": "Pushmode",
2062
+ "type": "boolean"
1107
2063
  }
1108
2064
  },
1109
2065
  "required": [
1110
- "issueNumber",
1111
- "body"
2066
+ "originalPrNumber",
2067
+ "repairBranch",
2068
+ "baseBranch",
2069
+ "title",
2070
+ "body",
2071
+ "pushMode"
1112
2072
  ],
1113
- "title": "IssueCommentInput",
2073
+ "title": "OpenReplacementPrInput",
1114
2074
  "type": "object"
1115
2075
  } as const;
1116
2076
 
1117
- export const IssueSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "html_url": z.string(), "state": z.string() });
2077
+ export const PRCommentSchema = z.object({ "user": z.string(), "body": z.string(), "createdAt": z.string() });
1118
2078
 
1119
- export type IssueSummary = z.infer<typeof IssueSummarySchema>;
2079
+ export type PRComment = z.infer<typeof PRCommentSchema>;
1120
2080
 
1121
- export const IssueSummaryJsonSchema = {
2081
+ export const PRCommentJsonSchema = {
1122
2082
  "properties": {
1123
- "number": {
1124
- "title": "Number",
1125
- "type": "integer"
1126
- },
1127
- "title": {
1128
- "title": "Title",
2083
+ "user": {
2084
+ "title": "User",
1129
2085
  "type": "string"
1130
2086
  },
1131
- "html_url": {
1132
- "title": "Html Url",
2087
+ "body": {
2088
+ "title": "Body",
1133
2089
  "type": "string"
1134
2090
  },
1135
- "state": {
1136
- "title": "State",
2091
+ "createdAt": {
2092
+ "title": "Createdat",
1137
2093
  "type": "string"
1138
2094
  }
1139
2095
  },
1140
2096
  "required": [
1141
- "number",
1142
- "title",
1143
- "html_url",
1144
- "state"
2097
+ "user",
2098
+ "body",
2099
+ "createdAt"
1145
2100
  ],
1146
- "title": "IssueSummary",
2101
+ "title": "PRComment",
1147
2102
  "type": "object"
1148
2103
  } as const;
1149
2104
 
1150
- export const IssueUpdateInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to update."), "body": z.union([z.string(), z.null()]).describe("The new body content for the issue.").default(null), "file": z.union([z.string(), z.null()]).describe("Path to file containing new issue body.").default(null), "labels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to set.").default(null), "addLabels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to add.").default(null), "removeLabels": z.union([z.array(z.string()), z.null()]).describe("Comma-separated list of labels to remove.").default(null), "state": z.union([z.string(), z.null()]).describe("The state to set the issue to (open or closed).").default(null) });
2105
+ export const PRSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "author": z.record(z.string(), z.string()).optional(), "headRefName": z.union([z.string(), z.null()]).default(null), "baseRefName": z.union([z.string(), z.null()]).default(null), "isDraft": z.boolean().default(false), "mergeStateStatus": z.union([z.string(), z.null()]).default(null), "updatedAt": z.union([z.string(), z.null()]).default(null), "url": z.union([z.string(), z.null()]).default(null) });
1151
2106
 
1152
- export type IssueUpdateInput = z.infer<typeof IssueUpdateInputSchema>;
2107
+ export type PRSummary = z.infer<typeof PRSummarySchema>;
1153
2108
 
1154
- export const IssueUpdateInputJsonSchema = {
2109
+ export const PRSummaryJsonSchema = {
1155
2110
  "properties": {
1156
- "issueNumber": {
1157
- "description": "The number of the issue to update.",
1158
- "title": "Issuenumber",
2111
+ "number": {
2112
+ "title": "Number",
1159
2113
  "type": "integer"
1160
2114
  },
1161
- "body": {
2115
+ "title": {
2116
+ "title": "Title",
2117
+ "type": "string"
2118
+ },
2119
+ "author": {
2120
+ "additionalProperties": {
2121
+ "type": "string"
2122
+ },
2123
+ "title": "Author",
2124
+ "type": "object"
2125
+ },
2126
+ "headRefName": {
1162
2127
  "anyOf": [
1163
2128
  {
1164
2129
  "type": "string"
@@ -1168,10 +2133,9 @@ export const IssueUpdateInputJsonSchema = {
1168
2133
  }
1169
2134
  ],
1170
2135
  "default": null,
1171
- "description": "The new body content for the issue.",
1172
- "title": "Body"
2136
+ "title": "Headrefname"
1173
2137
  },
1174
- "file": {
2138
+ "baseRefName": {
1175
2139
  "anyOf": [
1176
2140
  {
1177
2141
  "type": "string"
@@ -1181,58 +2145,38 @@ export const IssueUpdateInputJsonSchema = {
1181
2145
  }
1182
2146
  ],
1183
2147
  "default": null,
1184
- "description": "Path to file containing new issue body.",
1185
- "title": "File"
2148
+ "title": "Baserefname"
1186
2149
  },
1187
- "labels": {
1188
- "anyOf": [
1189
- {
1190
- "items": {
1191
- "type": "string"
1192
- },
1193
- "type": "array"
1194
- },
1195
- {
1196
- "type": "null"
1197
- }
1198
- ],
1199
- "default": null,
1200
- "description": "Comma-separated list of labels to set.",
1201
- "title": "Labels"
2150
+ "isDraft": {
2151
+ "default": false,
2152
+ "title": "Isdraft",
2153
+ "type": "boolean"
1202
2154
  },
1203
- "addLabels": {
2155
+ "mergeStateStatus": {
1204
2156
  "anyOf": [
1205
2157
  {
1206
- "items": {
1207
- "type": "string"
1208
- },
1209
- "type": "array"
2158
+ "type": "string"
1210
2159
  },
1211
2160
  {
1212
2161
  "type": "null"
1213
2162
  }
1214
2163
  ],
1215
2164
  "default": null,
1216
- "description": "Comma-separated list of labels to add.",
1217
- "title": "Addlabels"
2165
+ "title": "Mergestatestatus"
1218
2166
  },
1219
- "removeLabels": {
2167
+ "updatedAt": {
1220
2168
  "anyOf": [
1221
2169
  {
1222
- "items": {
1223
- "type": "string"
1224
- },
1225
- "type": "array"
2170
+ "type": "string"
1226
2171
  },
1227
2172
  {
1228
2173
  "type": "null"
1229
2174
  }
1230
2175
  ],
1231
2176
  "default": null,
1232
- "description": "Comma-separated list of labels to remove.",
1233
- "title": "Removelabels"
2177
+ "title": "Updatedat"
1234
2178
  },
1235
- "state": {
2179
+ "url": {
1236
2180
  "anyOf": [
1237
2181
  {
1238
2182
  "type": "string"
@@ -1242,22 +2186,114 @@ export const IssueUpdateInputJsonSchema = {
1242
2186
  }
1243
2187
  ],
1244
2188
  "default": null,
1245
- "description": "The state to set the issue to (open or closed).",
1246
- "title": "State"
2189
+ "title": "Url"
1247
2190
  }
1248
2191
  },
1249
2192
  "required": [
1250
- "issueNumber"
2193
+ "number",
2194
+ "title"
1251
2195
  ],
1252
- "title": "IssueUpdateInput",
2196
+ "title": "PRSummary",
1253
2197
  "type": "object"
1254
2198
  } as const;
1255
2199
 
1256
- export const IssueUpdateResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "issue": z.union([z.any(), z.null()]).default(null) });
2200
+ export const PrDiffResponseSchema = z.object({ "prNumber": z.number().int(), "files": z.array(z.record(z.string(), z.any())), "diffText": z.string(), "isTruncated": z.boolean() });
1257
2201
 
1258
- export type IssueUpdateResponse = z.infer<typeof IssueUpdateResponseSchema>;
2202
+ export type PrDiffResponse = z.infer<typeof PrDiffResponseSchema>;
1259
2203
 
1260
- export const IssueUpdateResponseJsonSchema = {
2204
+ export const PrDiffResponseJsonSchema = {
2205
+ "properties": {
2206
+ "prNumber": {
2207
+ "title": "Prnumber",
2208
+ "type": "integer"
2209
+ },
2210
+ "files": {
2211
+ "items": {
2212
+ "additionalProperties": true,
2213
+ "type": "object"
2214
+ },
2215
+ "title": "Files",
2216
+ "type": "array"
2217
+ },
2218
+ "diffText": {
2219
+ "title": "Difftext",
2220
+ "type": "string"
2221
+ },
2222
+ "isTruncated": {
2223
+ "title": "Istruncated",
2224
+ "type": "boolean"
2225
+ }
2226
+ },
2227
+ "required": [
2228
+ "prNumber",
2229
+ "files",
2230
+ "diffText",
2231
+ "isTruncated"
2232
+ ],
2233
+ "title": "PrDiffResponse",
2234
+ "type": "object"
2235
+ } as const;
2236
+
2237
+ export const ReadAgentContextInputSchema = z.object({});
2238
+
2239
+ export type ReadAgentContextInput = z.infer<typeof ReadAgentContextInputSchema>;
2240
+
2241
+ export const ReadAgentContextInputJsonSchema = {
2242
+ "properties": {},
2243
+ "title": "ReadAgentContextInput",
2244
+ "type": "object"
2245
+ } as const;
2246
+
2247
+ export const ReadCiLogsInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to read logs for."), "all": z.boolean().describe("Include logs for successful runs (default: false).").default(false) });
2248
+
2249
+ export type ReadCiLogsInput = z.infer<typeof ReadCiLogsInputSchema>;
2250
+
2251
+ export const ReadCiLogsInputJsonSchema = {
2252
+ "properties": {
2253
+ "prNumber": {
2254
+ "description": "The number of the pull request to read logs for.",
2255
+ "title": "Prnumber",
2256
+ "type": "integer"
2257
+ },
2258
+ "all": {
2259
+ "default": false,
2260
+ "description": "Include logs for successful runs (default: false).",
2261
+ "title": "All",
2262
+ "type": "boolean"
2263
+ }
2264
+ },
2265
+ "required": [
2266
+ "prNumber"
2267
+ ],
2268
+ "title": "ReadCiLogsInput",
2269
+ "type": "object"
2270
+ } as const;
2271
+
2272
+ export const ReadPRCommentsInputSchema = z.object({ "prNumber": z.number().int().gt(0).describe("The PR number to fetch comments for.") });
2273
+
2274
+ export type ReadPRCommentsInput = z.infer<typeof ReadPRCommentsInputSchema>;
2275
+
2276
+ export const ReadPRCommentsInputJsonSchema = {
2277
+ "properties": {
2278
+ "prNumber": {
2279
+ "description": "The PR number to fetch comments for.",
2280
+ "exclusiveMinimum": 0,
2281
+ "title": "Prnumber",
2282
+ "type": "integer"
2283
+ }
2284
+ },
2285
+ "required": [
2286
+ "prNumber"
2287
+ ],
2288
+ "title": "ReadPRCommentsInput",
2289
+ "type": "object"
2290
+ } as const;
2291
+
2292
+ export const ReadPRCommentsResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "pr": z.any(), "comments": z.array(z.any()).optional(), "reviewComments": z.array(z.any()).optional() });
2293
+
2294
+ export type ReadPRCommentsResponse = z.infer<typeof ReadPRCommentsResponseSchema>;
2295
+
2296
+ export const ReadPRCommentsResponseJsonSchema = {
1261
2297
  "$defs": {
1262
2298
  "IssueSummary": {
1263
2299
  "properties": {
@@ -1269,8 +2305,8 @@ export const IssueUpdateResponseJsonSchema = {
1269
2305
  "title": "Title",
1270
2306
  "type": "string"
1271
2307
  },
1272
- "html_url": {
1273
- "title": "Html Url",
2308
+ "htmlUrl": {
2309
+ "title": "Htmlurl",
1274
2310
  "type": "string"
1275
2311
  },
1276
2312
  "state": {
@@ -1281,96 +2317,83 @@ export const IssueUpdateResponseJsonSchema = {
1281
2317
  "required": [
1282
2318
  "number",
1283
2319
  "title",
1284
- "html_url",
2320
+ "htmlUrl",
1285
2321
  "state"
1286
2322
  ],
1287
2323
  "title": "IssueSummary",
1288
2324
  "type": "object"
1289
- }
1290
- },
1291
- "properties": {
1292
- "status": {
1293
- "default": "success",
1294
- "title": "Status",
1295
- "type": "string"
1296
2325
  },
1297
- "message": {
1298
- "anyOf": [
1299
- {
2326
+ "PRComment": {
2327
+ "properties": {
2328
+ "user": {
2329
+ "title": "User",
1300
2330
  "type": "string"
1301
2331
  },
1302
- {
1303
- "type": "null"
1304
- }
1305
- ],
1306
- "default": null,
1307
- "title": "Message"
1308
- },
1309
- "data": {
1310
- "anyOf": [
1311
- {},
1312
- {
1313
- "type": "null"
2332
+ "body": {
2333
+ "title": "Body",
2334
+ "type": "string"
2335
+ },
2336
+ "createdAt": {
2337
+ "title": "Createdat",
2338
+ "type": "string"
1314
2339
  }
2340
+ },
2341
+ "required": [
2342
+ "user",
2343
+ "body",
2344
+ "createdAt"
1315
2345
  ],
1316
- "default": null,
1317
- "title": "Data"
2346
+ "title": "PRComment",
2347
+ "type": "object"
1318
2348
  },
1319
- "issue": {
1320
- "anyOf": [
1321
- {
1322
- "$ref": "#/$defs/IssueSummary"
2349
+ "ReviewComment": {
2350
+ "properties": {
2351
+ "user": {
2352
+ "title": "User",
2353
+ "type": "string"
1323
2354
  },
1324
- {
1325
- "type": "null"
2355
+ "path": {
2356
+ "title": "Path",
2357
+ "type": "string"
2358
+ },
2359
+ "line": {
2360
+ "anyOf": [
2361
+ {
2362
+ "type": "integer"
2363
+ },
2364
+ {
2365
+ "type": "null"
2366
+ }
2367
+ ],
2368
+ "default": null,
2369
+ "title": "Line"
2370
+ },
2371
+ "body": {
2372
+ "title": "Body",
2373
+ "type": "string"
2374
+ },
2375
+ "createdAt": {
2376
+ "title": "Createdat",
2377
+ "type": "string"
1326
2378
  }
2379
+ },
2380
+ "required": [
2381
+ "user",
2382
+ "path",
2383
+ "body",
2384
+ "createdAt"
1327
2385
  ],
1328
- "default": null
1329
- }
1330
- },
1331
- "title": "IssueUpdateResponse",
1332
- "type": "object"
1333
- } as const;
1334
-
1335
- export const IssueViewInputSchema = z.object({ "issueNumber": z.number().int().describe("The number of the issue to view.") });
1336
-
1337
- export type IssueViewInput = z.infer<typeof IssueViewInputSchema>;
1338
-
1339
- export const IssueViewInputJsonSchema = {
1340
- "properties": {
1341
- "issueNumber": {
1342
- "description": "The number of the issue to view.",
1343
- "title": "Issuenumber",
1344
- "type": "integer"
2386
+ "title": "ReviewComment",
2387
+ "type": "object"
1345
2388
  }
1346
2389
  },
1347
- "required": [
1348
- "issueNumber"
1349
- ],
1350
- "title": "IssueViewInput",
1351
- "type": "object"
1352
- } as const;
1353
-
1354
- export const JulesListSessionsInputSchema = z.object({ "pageSize": z.union([z.number().int(), z.null()]).describe("Maximum number of sessions to return.").default(null), "pageToken": z.union([z.string(), z.null()]).describe("Token for pagination.").default(null) });
1355
-
1356
- export type JulesListSessionsInput = z.infer<typeof JulesListSessionsInputSchema>;
1357
-
1358
- export const JulesListSessionsInputJsonSchema = {
1359
2390
  "properties": {
1360
- "pageSize": {
1361
- "anyOf": [
1362
- {
1363
- "type": "integer"
1364
- },
1365
- {
1366
- "type": "null"
1367
- }
1368
- ],
1369
- "default": null,
1370
- "description": "Maximum number of sessions to return.",
1371
- "title": "Pagesize"
2391
+ "status": {
2392
+ "default": "success",
2393
+ "title": "Status",
2394
+ "type": "string"
1372
2395
  },
1373
- "pageToken": {
2396
+ "message": {
1374
2397
  "anyOf": [
1375
2398
  {
1376
2399
  "type": "string"
@@ -1380,107 +2403,55 @@ export const JulesListSessionsInputJsonSchema = {
1380
2403
  }
1381
2404
  ],
1382
2405
  "default": null,
1383
- "description": "Token for pagination.",
1384
- "title": "Pagetoken"
1385
- }
1386
- },
1387
- "title": "JulesListSessionsInput",
1388
- "type": "object"
1389
- } as const;
1390
-
1391
- export const JulesSendMessageInputSchema = z.object({ "sessionId": z.union([z.string(), z.array(z.string())]).describe("The unique ID or IDs of the Jules session(s)."), "message": z.string().min(1).describe("The message content to send.") });
1392
-
1393
- export type JulesSendMessageInput = z.infer<typeof JulesSendMessageInputSchema>;
1394
-
1395
- export const JulesSendMessageInputJsonSchema = {
1396
- "properties": {
1397
- "sessionId": {
1398
- "anyOf": [
1399
- {
1400
- "type": "string"
1401
- },
2406
+ "title": "Message"
2407
+ },
2408
+ "data": {
2409
+ "anyOf": [
2410
+ {},
1402
2411
  {
1403
- "items": {
1404
- "type": "string"
1405
- },
1406
- "type": "array"
2412
+ "type": "null"
1407
2413
  }
1408
2414
  ],
1409
- "description": "The unique ID or IDs of the Jules session(s).",
1410
- "title": "Sessionid"
2415
+ "default": null,
2416
+ "title": "Data"
1411
2417
  },
1412
- "message": {
1413
- "description": "The message content to send.",
1414
- "minLength": 1,
1415
- "title": "Message",
1416
- "type": "string"
1417
- }
1418
- },
1419
- "required": [
1420
- "sessionId",
1421
- "message"
1422
- ],
1423
- "title": "JulesSendMessageInput",
1424
- "type": "object"
1425
- } as const;
1426
-
1427
- export const JulesSessionIdInputSchema = z.object({ "sessionId": z.string().describe("The unique ID of the Jules session.") });
1428
-
1429
- export type JulesSessionIdInput = z.infer<typeof JulesSessionIdInputSchema>;
1430
-
1431
- export const JulesSessionIdInputJsonSchema = {
1432
- "properties": {
1433
- "sessionId": {
1434
- "description": "The unique ID of the Jules session.",
1435
- "title": "Sessionid",
1436
- "type": "string"
2418
+ "pr": {
2419
+ "$ref": "#/$defs/IssueSummary"
2420
+ },
2421
+ "comments": {
2422
+ "items": {
2423
+ "$ref": "#/$defs/PRComment"
2424
+ },
2425
+ "title": "Comments",
2426
+ "type": "array"
2427
+ },
2428
+ "reviewComments": {
2429
+ "items": {
2430
+ "$ref": "#/$defs/ReviewComment"
2431
+ },
2432
+ "title": "Reviewcomments",
2433
+ "type": "array"
1437
2434
  }
1438
2435
  },
1439
2436
  "required": [
1440
- "sessionId"
2437
+ "pr"
1441
2438
  ],
1442
- "title": "JulesSessionIdInput",
2439
+ "title": "ReadPRCommentsResponse",
1443
2440
  "type": "object"
1444
2441
  } as const;
1445
2442
 
1446
- export const OpenReplacementPrInputSchema = z.object({ "originalPrNumber": z.number().int().describe("The number of the pull request being replaced."), "repairBranch": z.string().describe("The branch containing the fixes."), "baseBranch": z.string().describe("The branch to merge the fixes into."), "title": z.string().describe("The title of the new PR."), "body": z.string().describe("The body/description of the new PR."), "draft": z.boolean().describe("Whether to create the PR as a draft (default: true).").default(true), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree where the PR is created from.").default(null), "pushMode": z.boolean().describe("Safety gate: Must be true to push the branch and open the PR.") });
2443
+ export const RepoLogsInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to stream logs for."), "grep": z.union([z.string(), z.null()]).describe("Optional pattern to filter log lines.").default(null) });
1447
2444
 
1448
- export type OpenReplacementPrInput = z.infer<typeof OpenReplacementPrInputSchema>;
2445
+ export type RepoLogsInput = z.infer<typeof RepoLogsInputSchema>;
1449
2446
 
1450
- export const OpenReplacementPrInputJsonSchema = {
2447
+ export const RepoLogsInputJsonSchema = {
1451
2448
  "properties": {
1452
- "originalPrNumber": {
1453
- "description": "The number of the pull request being replaced.",
1454
- "title": "Originalprnumber",
2449
+ "prNumber": {
2450
+ "description": "The number of the pull request to stream logs for.",
2451
+ "title": "Prnumber",
1455
2452
  "type": "integer"
1456
2453
  },
1457
- "repairBranch": {
1458
- "description": "The branch containing the fixes.",
1459
- "title": "Repairbranch",
1460
- "type": "string"
1461
- },
1462
- "baseBranch": {
1463
- "description": "The branch to merge the fixes into.",
1464
- "title": "Basebranch",
1465
- "type": "string"
1466
- },
1467
- "title": {
1468
- "description": "The title of the new PR.",
1469
- "title": "Title",
1470
- "type": "string"
1471
- },
1472
- "body": {
1473
- "description": "The body/description of the new PR.",
1474
- "title": "Body",
1475
- "type": "string"
1476
- },
1477
- "draft": {
1478
- "default": true,
1479
- "description": "Whether to create the PR as a draft (default: true).",
1480
- "title": "Draft",
1481
- "type": "boolean"
1482
- },
1483
- "worktreePath": {
2454
+ "grep": {
1484
2455
  "anyOf": [
1485
2456
  {
1486
2457
  "type": "string"
@@ -1490,91 +2461,105 @@ export const OpenReplacementPrInputJsonSchema = {
1490
2461
  }
1491
2462
  ],
1492
2463
  "default": null,
1493
- "description": "Optional path to the worktree where the PR is created from.",
1494
- "title": "Worktreepath"
1495
- },
1496
- "pushMode": {
1497
- "description": "Safety gate: Must be true to push the branch and open the PR.",
1498
- "title": "Pushmode",
1499
- "type": "boolean"
2464
+ "description": "Optional pattern to filter log lines.",
2465
+ "title": "Grep"
1500
2466
  }
1501
2467
  },
1502
2468
  "required": [
1503
- "originalPrNumber",
1504
- "repairBranch",
1505
- "baseBranch",
1506
- "title",
1507
- "body",
1508
- "pushMode"
2469
+ "prNumber"
1509
2470
  ],
1510
- "title": "OpenReplacementPrInput",
2471
+ "title": "RepoLogsInput",
1511
2472
  "type": "object"
1512
2473
  } as const;
1513
2474
 
1514
- export const PRCommentSchema = z.object({ "user": z.string(), "body": z.string(), "created_at": z.string() });
2475
+ export const ReviewCommentSchema = z.object({ "user": z.string(), "path": z.string(), "line": z.union([z.number().int(), z.null()]).default(null), "body": z.string(), "createdAt": z.string() });
1515
2476
 
1516
- export type PRComment = z.infer<typeof PRCommentSchema>;
2477
+ export type ReviewComment = z.infer<typeof ReviewCommentSchema>;
1517
2478
 
1518
- export const PRCommentJsonSchema = {
2479
+ export const ReviewCommentJsonSchema = {
1519
2480
  "properties": {
1520
2481
  "user": {
1521
2482
  "title": "User",
1522
2483
  "type": "string"
1523
2484
  },
2485
+ "path": {
2486
+ "title": "Path",
2487
+ "type": "string"
2488
+ },
2489
+ "line": {
2490
+ "anyOf": [
2491
+ {
2492
+ "type": "integer"
2493
+ },
2494
+ {
2495
+ "type": "null"
2496
+ }
2497
+ ],
2498
+ "default": null,
2499
+ "title": "Line"
2500
+ },
1524
2501
  "body": {
1525
2502
  "title": "Body",
1526
2503
  "type": "string"
1527
2504
  },
1528
- "created_at": {
1529
- "title": "Created At",
2505
+ "createdAt": {
2506
+ "title": "Createdat",
1530
2507
  "type": "string"
1531
2508
  }
1532
2509
  },
1533
2510
  "required": [
1534
2511
  "user",
2512
+ "path",
1535
2513
  "body",
1536
- "created_at"
2514
+ "createdAt"
1537
2515
  ],
1538
- "title": "PRComment",
2516
+ "title": "ReviewComment",
1539
2517
  "type": "object"
1540
2518
  } as const;
1541
2519
 
1542
- export const PRSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "author": z.record(z.string(), z.string()).optional(), "headRefName": z.union([z.string(), z.null()]).default(null), "baseRefName": z.union([z.string(), z.null()]).default(null), "isDraft": z.boolean().default(false), "mergeStateStatus": z.union([z.string(), z.null()]).default(null), "updatedAt": z.union([z.string(), z.null()]).default(null), "url": z.union([z.string(), z.null()]).default(null) });
2520
+ export const ReviewFindingSchema = z.object({ "id": z.string(), "file": z.string(), "issue": z.string(), "status": z.enum(["open","resolved"]), "confidence": z.enum(["high","medium","low"]), "severity": z.union([z.enum(["HIGH","MEDIUM","LOW"]), z.null()]).default(null), "line": z.union([z.number().int(), z.null()]).default(null), "snippet": z.union([z.string(), z.null()]).default(null), "fixSummary": z.union([z.string(), z.null()]).default(null), "counterexample": z.union([z.string(), z.null()]).default(null) });
1543
2521
 
1544
- export type PRSummary = z.infer<typeof PRSummarySchema>;
2522
+ export type ReviewFinding = z.infer<typeof ReviewFindingSchema>;
1545
2523
 
1546
- export const PRSummaryJsonSchema = {
2524
+ export const ReviewFindingJsonSchema = {
1547
2525
  "properties": {
1548
- "number": {
1549
- "title": "Number",
1550
- "type": "integer"
2526
+ "id": {
2527
+ "title": "Id",
2528
+ "type": "string"
1551
2529
  },
1552
- "title": {
1553
- "title": "Title",
2530
+ "file": {
2531
+ "title": "File",
1554
2532
  "type": "string"
1555
2533
  },
1556
- "author": {
1557
- "additionalProperties": {
1558
- "type": "string"
1559
- },
1560
- "title": "Author",
1561
- "type": "object"
2534
+ "issue": {
2535
+ "title": "Issue",
2536
+ "type": "string"
1562
2537
  },
1563
- "headRefName": {
1564
- "anyOf": [
1565
- {
1566
- "type": "string"
1567
- },
1568
- {
1569
- "type": "null"
1570
- }
2538
+ "status": {
2539
+ "enum": [
2540
+ "open",
2541
+ "resolved"
1571
2542
  ],
1572
- "default": null,
1573
- "title": "Headrefname"
2543
+ "title": "Status",
2544
+ "type": "string"
1574
2545
  },
1575
- "baseRefName": {
2546
+ "confidence": {
2547
+ "enum": [
2548
+ "high",
2549
+ "medium",
2550
+ "low"
2551
+ ],
2552
+ "title": "Confidence",
2553
+ "type": "string"
2554
+ },
2555
+ "severity": {
1576
2556
  "anyOf": [
1577
2557
  {
2558
+ "enum": [
2559
+ "HIGH",
2560
+ "MEDIUM",
2561
+ "LOW"
2562
+ ],
1578
2563
  "type": "string"
1579
2564
  },
1580
2565
  {
@@ -1582,26 +2567,21 @@ export const PRSummaryJsonSchema = {
1582
2567
  }
1583
2568
  ],
1584
2569
  "default": null,
1585
- "title": "Baserefname"
1586
- },
1587
- "isDraft": {
1588
- "default": false,
1589
- "title": "Isdraft",
1590
- "type": "boolean"
2570
+ "title": "Severity"
1591
2571
  },
1592
- "mergeStateStatus": {
2572
+ "line": {
1593
2573
  "anyOf": [
1594
2574
  {
1595
- "type": "string"
2575
+ "type": "integer"
1596
2576
  },
1597
2577
  {
1598
2578
  "type": "null"
1599
2579
  }
1600
2580
  ],
1601
2581
  "default": null,
1602
- "title": "Mergestatestatus"
2582
+ "title": "Line"
1603
2583
  },
1604
- "updatedAt": {
2584
+ "snippet": {
1605
2585
  "anyOf": [
1606
2586
  {
1607
2587
  "type": "string"
@@ -1611,9 +2591,9 @@ export const PRSummaryJsonSchema = {
1611
2591
  }
1612
2592
  ],
1613
2593
  "default": null,
1614
- "title": "Updatedat"
2594
+ "title": "Snippet"
1615
2595
  },
1616
- "url": {
2596
+ "fixSummary": {
1617
2597
  "anyOf": [
1618
2598
  {
1619
2599
  "type": "string"
@@ -1623,235 +2603,150 @@ export const PRSummaryJsonSchema = {
1623
2603
  }
1624
2604
  ],
1625
2605
  "default": null,
1626
- "title": "Url"
1627
- }
1628
- },
1629
- "required": [
1630
- "number",
1631
- "title"
1632
- ],
1633
- "title": "PRSummary",
1634
- "type": "object"
1635
- } as const;
1636
-
1637
- export const ReadAgentContextInputSchema = z.object({});
1638
-
1639
- export type ReadAgentContextInput = z.infer<typeof ReadAgentContextInputSchema>;
1640
-
1641
- export const ReadAgentContextInputJsonSchema = {
1642
- "properties": {},
1643
- "title": "ReadAgentContextInput",
1644
- "type": "object"
1645
- } as const;
1646
-
1647
- export const ReadCiLogsInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to read logs for."), "all": z.boolean().describe("Include logs for successful runs (default: false).").default(false) });
1648
-
1649
- export type ReadCiLogsInput = z.infer<typeof ReadCiLogsInputSchema>;
1650
-
1651
- export const ReadCiLogsInputJsonSchema = {
1652
- "properties": {
1653
- "prNumber": {
1654
- "description": "The number of the pull request to read logs for.",
1655
- "title": "Prnumber",
1656
- "type": "integer"
1657
- },
1658
- "all": {
1659
- "default": false,
1660
- "description": "Include logs for successful runs (default: false).",
1661
- "title": "All",
1662
- "type": "boolean"
1663
- }
1664
- },
1665
- "required": [
1666
- "prNumber"
1667
- ],
1668
- "title": "ReadCiLogsInput",
1669
- "type": "object"
1670
- } as const;
1671
-
1672
- export const ReadPRCommentsInputSchema = z.object({ "prNumber": z.number().int().gt(0).describe("The PR number to fetch comments for.") });
1673
-
1674
- export type ReadPRCommentsInput = z.infer<typeof ReadPRCommentsInputSchema>;
1675
-
1676
- export const ReadPRCommentsInputJsonSchema = {
1677
- "properties": {
1678
- "prNumber": {
1679
- "description": "The PR number to fetch comments for.",
1680
- "exclusiveMinimum": 0,
1681
- "title": "Prnumber",
1682
- "type": "integer"
2606
+ "title": "Fixsummary"
2607
+ },
2608
+ "counterexample": {
2609
+ "anyOf": [
2610
+ {
2611
+ "type": "string"
2612
+ },
2613
+ {
2614
+ "type": "null"
2615
+ }
2616
+ ],
2617
+ "default": null,
2618
+ "title": "Counterexample"
1683
2619
  }
1684
2620
  },
1685
2621
  "required": [
1686
- "prNumber"
2622
+ "id",
2623
+ "file",
2624
+ "issue",
2625
+ "status",
2626
+ "confidence"
1687
2627
  ],
1688
- "title": "ReadPRCommentsInput",
2628
+ "title": "ReviewFinding",
1689
2629
  "type": "object"
1690
2630
  } as const;
1691
2631
 
1692
- export const ReadPRCommentsResponseSchema = z.object({ "status": z.string().default("success"), "message": z.union([z.string(), z.null()]).default(null), "data": z.union([z.any(), z.null()]).default(null), "pr": z.any(), "comments": z.array(z.any()).optional(), "review_comments": z.array(z.any()).optional() });
2632
+ export const RouteReviewSchema = z.object({ "route": z.string(), "severity": z.enum(["LOW","MEDIUM","HIGH"]), "differencePercent": z.number(), "feedback": z.string(), "tokens": z.number().int(), "cost": z.number(), "inputTokens": z.union([z.number().int(), z.null()]).default(null), "outputTokens": z.union([z.number().int(), z.null()]).default(null), "cacheTokens": z.union([z.number().int(), z.null()]).default(null), "modelName": z.union([z.string(), z.null()]).default(null), "llmVerdict": z.union([z.enum(["pass","fail","warn"]), z.null()]).default(null), "findings": z.union([z.array(z.any()), z.null()]).default(null), "isTruncated": z.union([z.boolean(), z.null()]).default(null), "role": z.union([z.string(), z.null()]).default(null) });
1693
2633
 
1694
- export type ReadPRCommentsResponse = z.infer<typeof ReadPRCommentsResponseSchema>;
2634
+ export type RouteReview = z.infer<typeof RouteReviewSchema>;
1695
2635
 
1696
- export const ReadPRCommentsResponseJsonSchema = {
2636
+ export const RouteReviewJsonSchema = {
1697
2637
  "$defs": {
1698
- "IssueSummary": {
1699
- "properties": {
1700
- "number": {
1701
- "title": "Number",
1702
- "type": "integer"
1703
- },
1704
- "title": {
1705
- "title": "Title",
1706
- "type": "string"
1707
- },
1708
- "html_url": {
1709
- "title": "Html Url",
1710
- "type": "string"
1711
- },
1712
- "state": {
1713
- "title": "State",
1714
- "type": "string"
1715
- }
1716
- },
1717
- "required": [
1718
- "number",
1719
- "title",
1720
- "html_url",
1721
- "state"
1722
- ],
1723
- "title": "IssueSummary",
1724
- "type": "object"
1725
- },
1726
- "PRComment": {
2638
+ "VisualReviewFinding": {
1727
2639
  "properties": {
1728
- "user": {
1729
- "title": "User",
2640
+ "id": {
2641
+ "title": "Id",
1730
2642
  "type": "string"
1731
2643
  },
1732
- "body": {
1733
- "title": "Body",
2644
+ "route": {
2645
+ "title": "Route",
1734
2646
  "type": "string"
1735
2647
  },
1736
- "created_at": {
1737
- "title": "Created At",
1738
- "type": "string"
1739
- }
1740
- },
1741
- "required": [
1742
- "user",
1743
- "body",
1744
- "created_at"
1745
- ],
1746
- "title": "PRComment",
1747
- "type": "object"
1748
- },
1749
- "ReviewComment": {
1750
- "properties": {
1751
- "user": {
1752
- "title": "User",
2648
+ "issue": {
2649
+ "title": "Issue",
1753
2650
  "type": "string"
1754
2651
  },
1755
- "path": {
1756
- "title": "Path",
2652
+ "status": {
2653
+ "enum": [
2654
+ "open",
2655
+ "resolved"
2656
+ ],
2657
+ "title": "Status",
1757
2658
  "type": "string"
1758
2659
  },
1759
- "line": {
2660
+ "fixSummary": {
1760
2661
  "anyOf": [
1761
2662
  {
1762
- "type": "integer"
2663
+ "type": "string"
1763
2664
  },
1764
2665
  {
1765
2666
  "type": "null"
1766
2667
  }
1767
2668
  ],
1768
2669
  "default": null,
1769
- "title": "Line"
1770
- },
1771
- "body": {
1772
- "title": "Body",
1773
- "type": "string"
1774
- },
1775
- "created_at": {
1776
- "title": "Created At",
1777
- "type": "string"
2670
+ "title": "Fixsummary"
1778
2671
  }
1779
2672
  },
1780
2673
  "required": [
1781
- "user",
1782
- "path",
1783
- "body",
1784
- "created_at"
2674
+ "id",
2675
+ "route",
2676
+ "issue",
2677
+ "status"
1785
2678
  ],
1786
- "title": "ReviewComment",
2679
+ "title": "VisualReviewFinding",
1787
2680
  "type": "object"
1788
2681
  }
1789
2682
  },
1790
2683
  "properties": {
1791
- "status": {
1792
- "default": "success",
1793
- "title": "Status",
2684
+ "route": {
2685
+ "title": "Route",
1794
2686
  "type": "string"
1795
2687
  },
1796
- "message": {
2688
+ "severity": {
2689
+ "enum": [
2690
+ "LOW",
2691
+ "MEDIUM",
2692
+ "HIGH"
2693
+ ],
2694
+ "title": "Severity",
2695
+ "type": "string"
2696
+ },
2697
+ "differencePercent": {
2698
+ "title": "Differencepercent",
2699
+ "type": "number"
2700
+ },
2701
+ "feedback": {
2702
+ "title": "Feedback",
2703
+ "type": "string"
2704
+ },
2705
+ "tokens": {
2706
+ "title": "Tokens",
2707
+ "type": "integer"
2708
+ },
2709
+ "cost": {
2710
+ "title": "Cost",
2711
+ "type": "number"
2712
+ },
2713
+ "inputTokens": {
1797
2714
  "anyOf": [
1798
2715
  {
1799
- "type": "string"
2716
+ "type": "integer"
1800
2717
  },
1801
2718
  {
1802
2719
  "type": "null"
1803
2720
  }
1804
2721
  ],
1805
2722
  "default": null,
1806
- "title": "Message"
2723
+ "title": "Inputtokens"
1807
2724
  },
1808
- "data": {
2725
+ "outputTokens": {
1809
2726
  "anyOf": [
1810
- {},
2727
+ {
2728
+ "type": "integer"
2729
+ },
1811
2730
  {
1812
2731
  "type": "null"
1813
2732
  }
1814
2733
  ],
1815
2734
  "default": null,
1816
- "title": "Data"
1817
- },
1818
- "pr": {
1819
- "$ref": "#/$defs/IssueSummary"
1820
- },
1821
- "comments": {
1822
- "items": {
1823
- "$ref": "#/$defs/PRComment"
1824
- },
1825
- "title": "Comments",
1826
- "type": "array"
2735
+ "title": "Outputtokens"
1827
2736
  },
1828
- "review_comments": {
1829
- "items": {
1830
- "$ref": "#/$defs/ReviewComment"
1831
- },
1832
- "title": "Review Comments",
1833
- "type": "array"
1834
- }
1835
- },
1836
- "required": [
1837
- "pr"
1838
- ],
1839
- "title": "ReadPRCommentsResponse",
1840
- "type": "object"
1841
- } as const;
1842
-
1843
- export const RepoLogsInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to stream logs for."), "grep": z.union([z.string(), z.null()]).describe("Optional pattern to filter log lines.").default(null) });
1844
-
1845
- export type RepoLogsInput = z.infer<typeof RepoLogsInputSchema>;
1846
-
1847
- export const RepoLogsInputJsonSchema = {
1848
- "properties": {
1849
- "prNumber": {
1850
- "description": "The number of the pull request to stream logs for.",
1851
- "title": "Prnumber",
1852
- "type": "integer"
2737
+ "cacheTokens": {
2738
+ "anyOf": [
2739
+ {
2740
+ "type": "integer"
2741
+ },
2742
+ {
2743
+ "type": "null"
2744
+ }
2745
+ ],
2746
+ "default": null,
2747
+ "title": "Cachetokens"
1853
2748
  },
1854
- "grep": {
2749
+ "modelName": {
1855
2750
  "anyOf": [
1856
2751
  {
1857
2752
  "type": "string"
@@ -1861,59 +2756,74 @@ export const RepoLogsInputJsonSchema = {
1861
2756
  }
1862
2757
  ],
1863
2758
  "default": null,
1864
- "description": "Optional pattern to filter log lines.",
1865
- "title": "Grep"
1866
- }
1867
- },
1868
- "required": [
1869
- "prNumber"
1870
- ],
1871
- "title": "RepoLogsInput",
1872
- "type": "object"
1873
- } as const;
1874
-
1875
- export const ReviewCommentSchema = z.object({ "user": z.string(), "path": z.string(), "line": z.union([z.number().int(), z.null()]).default(null), "body": z.string(), "created_at": z.string() });
1876
-
1877
- export type ReviewComment = z.infer<typeof ReviewCommentSchema>;
1878
-
1879
- export const ReviewCommentJsonSchema = {
1880
- "properties": {
1881
- "user": {
1882
- "title": "User",
1883
- "type": "string"
2759
+ "title": "Modelname"
1884
2760
  },
1885
- "path": {
1886
- "title": "Path",
1887
- "type": "string"
2761
+ "llmVerdict": {
2762
+ "anyOf": [
2763
+ {
2764
+ "enum": [
2765
+ "pass",
2766
+ "fail",
2767
+ "warn"
2768
+ ],
2769
+ "type": "string"
2770
+ },
2771
+ {
2772
+ "type": "null"
2773
+ }
2774
+ ],
2775
+ "default": null,
2776
+ "title": "Llmverdict"
1888
2777
  },
1889
- "line": {
2778
+ "findings": {
1890
2779
  "anyOf": [
1891
2780
  {
1892
- "type": "integer"
2781
+ "items": {
2782
+ "$ref": "#/$defs/VisualReviewFinding"
2783
+ },
2784
+ "type": "array"
1893
2785
  },
1894
2786
  {
1895
2787
  "type": "null"
1896
2788
  }
1897
2789
  ],
1898
2790
  "default": null,
1899
- "title": "Line"
2791
+ "title": "Findings"
1900
2792
  },
1901
- "body": {
1902
- "title": "Body",
1903
- "type": "string"
2793
+ "isTruncated": {
2794
+ "anyOf": [
2795
+ {
2796
+ "type": "boolean"
2797
+ },
2798
+ {
2799
+ "type": "null"
2800
+ }
2801
+ ],
2802
+ "default": null,
2803
+ "title": "Istruncated"
1904
2804
  },
1905
- "created_at": {
1906
- "title": "Created At",
1907
- "type": "string"
2805
+ "role": {
2806
+ "anyOf": [
2807
+ {
2808
+ "type": "string"
2809
+ },
2810
+ {
2811
+ "type": "null"
2812
+ }
2813
+ ],
2814
+ "default": null,
2815
+ "title": "Role"
1908
2816
  }
1909
2817
  },
1910
2818
  "required": [
1911
- "user",
1912
- "path",
1913
- "body",
1914
- "created_at"
2819
+ "route",
2820
+ "severity",
2821
+ "differencePercent",
2822
+ "feedback",
2823
+ "tokens",
2824
+ "cost"
1915
2825
  ],
1916
- "title": "ReviewComment",
2826
+ "title": "RouteReview",
1917
2827
  "type": "object"
1918
2828
  } as const;
1919
2829
 
@@ -2062,7 +2972,7 @@ export const SearchDdgsInputJsonSchema = {
2062
2972
  "type": "object"
2063
2973
  } as const;
2064
2974
 
2065
- export const SearchPRsInputSchema = z.object({ "state": z.string().describe("The state of the PRs to search for (open, closed, all).").default("open"), "limit": z.number().int().describe("The maximum number of PRs to return (default: 100, range: 1-100).").default(100), "includeDrafts": z.boolean().describe("Whether to include draft PRs in the results.").default(true), "labels": z.union([z.array(z.string()), z.null()]).describe("Filter PRs by labels.").default(null) });
2975
+ export const SearchPRsInputSchema = z.object({ "state": z.enum(["open","closed","all"]).describe("The state of the PRs to search for.").default("open"), "limit": z.number().int().gte(1).lte(100).describe("The maximum number of PRs to return (default: 100, range: 1-100).").default(100), "includeDrafts": z.boolean().describe("Whether to include draft PRs in the results.").default(true), "labels": z.union([z.array(z.string()), z.null()]).describe("Filter PRs by labels.").default(null) });
2066
2976
 
2067
2977
  export type SearchPRsInput = z.infer<typeof SearchPRsInputSchema>;
2068
2978
 
@@ -2070,13 +2980,20 @@ export const SearchPRsInputJsonSchema = {
2070
2980
  "properties": {
2071
2981
  "state": {
2072
2982
  "default": "open",
2073
- "description": "The state of the PRs to search for (open, closed, all).",
2983
+ "description": "The state of the PRs to search for.",
2984
+ "enum": [
2985
+ "open",
2986
+ "closed",
2987
+ "all"
2988
+ ],
2074
2989
  "title": "State",
2075
2990
  "type": "string"
2076
2991
  },
2077
2992
  "limit": {
2078
2993
  "default": 100,
2079
2994
  "description": "The maximum number of PRs to return (default: 100, range: 1-100).",
2995
+ "maximum": 100,
2996
+ "minimum": 1,
2080
2997
  "title": "Limit",
2081
2998
  "type": "integer"
2082
2999
  },
@@ -2243,3 +3160,52 @@ export const SearchPRsResponseJsonSchema = {
2243
3160
  "title": "SearchPRsResponse",
2244
3161
  "type": "object"
2245
3162
  } as const;
3163
+
3164
+ export const VisualReviewFindingSchema = z.object({ "id": z.string(), "route": z.string(), "issue": z.string(), "status": z.enum(["open","resolved"]), "fixSummary": z.union([z.string(), z.null()]).default(null) });
3165
+
3166
+ export type VisualReviewFinding = z.infer<typeof VisualReviewFindingSchema>;
3167
+
3168
+ export const VisualReviewFindingJsonSchema = {
3169
+ "properties": {
3170
+ "id": {
3171
+ "title": "Id",
3172
+ "type": "string"
3173
+ },
3174
+ "route": {
3175
+ "title": "Route",
3176
+ "type": "string"
3177
+ },
3178
+ "issue": {
3179
+ "title": "Issue",
3180
+ "type": "string"
3181
+ },
3182
+ "status": {
3183
+ "enum": [
3184
+ "open",
3185
+ "resolved"
3186
+ ],
3187
+ "title": "Status",
3188
+ "type": "string"
3189
+ },
3190
+ "fixSummary": {
3191
+ "anyOf": [
3192
+ {
3193
+ "type": "string"
3194
+ },
3195
+ {
3196
+ "type": "null"
3197
+ }
3198
+ ],
3199
+ "default": null,
3200
+ "title": "Fixsummary"
3201
+ }
3202
+ },
3203
+ "required": [
3204
+ "id",
3205
+ "route",
3206
+ "issue",
3207
+ "status"
3208
+ ],
3209
+ "title": "VisualReviewFinding",
3210
+ "type": "object"
3211
+ } as const;