@arii/boomtick-mcp 0.3.3 → 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.
- package/.mcp/schemas/agent.search_ddgs.json +27 -1
- package/.mcp/schemas/boomtick.health.json +12 -1
- package/.mcp/schemas/github.checkout_branch.json +27 -1
- package/.mcp/schemas/github.comment_triage_summary.json +20 -1
- package/.mcp/schemas/github.create_issue.json +40 -1
- package/.mcp/schemas/github.create_pull_request.json +38 -1
- package/.mcp/schemas/github.get_merge_conflict_files.json +20 -1
- package/.mcp/schemas/github.get_pr.json +14 -1
- package/.mcp/schemas/github.get_pr_diff.json +14 -1
- package/.mcp/schemas/github.issue_comment.json +20 -1
- package/.mcp/schemas/github.issue_update.json +105 -1
- package/.mcp/schemas/github.issue_view.json +14 -1
- package/.mcp/schemas/github.open_replacement_pr.json +63 -1
- package/.mcp/schemas/github.search_open_prs.json +47 -1
- package/.mcp/schemas/jules.cancel_session.json +14 -1
- package/.mcp/schemas/jules.create_session.json +40 -1
- package/.mcp/schemas/jules.get_messages.json +14 -1
- package/.mcp/schemas/jules.get_pr.json +14 -1
- package/.mcp/schemas/jules.get_session.json +14 -1
- package/.mcp/schemas/jules.list_sessions.json +32 -1
- package/.mcp/schemas/jules.send_message.json +31 -1
- package/.mcp/schemas/jules.trigger_feedback.json +14 -1
- package/.mcp/schemas/repo.commit_patch.json +35 -1
- package/.mcp/schemas/repo.create_branch.json +20 -1
- package/.mcp/schemas/repo.create_repair_branch.json +33 -1
- package/.mcp/schemas/repo.get_changed_files.json +18 -1
- package/.mcp/schemas/repo.get_command_schema.json +14 -1
- package/.mcp/schemas/repo.get_package_scripts.json +19 -1
- package/.mcp/schemas/repo.get_route_map.json +19 -1
- package/.mcp/schemas/repo.logs.json +27 -1
- package/.mcp/schemas/repo.read_agent_context.json +5 -1
- package/.mcp/schemas/repo.read_ci_logs.json +20 -1
- package/.mcp/schemas/repo.run_lighthouse.json +25 -1
- package/.mcp/schemas/repo.run_playwright.json +32 -1
- package/.mcp/schemas/repo.run_tests.json +41 -1
- package/CHANGELOG.md +23 -0
- package/actions/ai-review/action.yml +8 -3
- package/actions/audit/action.yml +2 -2
- package/actions/ci-validate/action.yml +3 -3
- package/actions/impact-analysis/action.yml +36 -28
- package/actions/lint-typecheck/action.yml +2 -2
- package/actions/run-project-gate/action.yml +11 -3
- package/actions/setup/action.yml +2 -2
- package/actions/test-build/action.yml +2 -2
- package/dist/config.js +2 -4
- package/dist/lib/git.js +1 -3
- package/dist/lib/td-cli.js +27 -0
- package/dist/mcp/server.js +1 -1
- package/dist/tools/contract.js +1085 -151
- package/dist/tools/github.get_pr_diff.js +1 -1
- package/dist/tools/repo.read_agent_context.js +10 -14
- package/dist/tools/repo.read_agent_context.test.js +10 -0
- package/package.json +24 -19
- package/scripts/create_instructions.sh +0 -0
- package/scripts/sync-contracts.ts +216 -6
- package/src/lib/td-cli.ts +35 -0
- package/src/tools/contract.ts +1844 -878
- package/src/tools/github.get_pr_diff.ts +1 -1
- package/src/tools/repo.read_agent_context.test.ts +11 -0
- package/src/tools/repo.read_agent_context.ts +10 -14
- package/start_browsermcp.sh +0 -0
- package/start_github_mcp.sh +0 -0
- package/actions/setup-workspace/action.yml +0 -179
package/dist/tools/contract.js
CHANGED
|
@@ -165,7 +165,7 @@ export const AIFileReviewJsonSchema = {
|
|
|
165
165
|
"title": "AIFileReview",
|
|
166
166
|
"type": "object"
|
|
167
167
|
};
|
|
168
|
-
export const AIFullReviewSchema = z.object({ "
|
|
168
|
+
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).") });
|
|
169
169
|
export const AIFullReviewJsonSchema = {
|
|
170
170
|
"$defs": {
|
|
171
171
|
"AIFileReview": {
|
|
@@ -332,12 +332,12 @@ export const AIFullReviewJsonSchema = {
|
|
|
332
332
|
}
|
|
333
333
|
},
|
|
334
334
|
"properties": {
|
|
335
|
-
"
|
|
335
|
+
"fileReviews": {
|
|
336
336
|
"description": "Per-file review results.",
|
|
337
337
|
"items": {
|
|
338
338
|
"$ref": "#/$defs/AIFileReview"
|
|
339
339
|
},
|
|
340
|
-
"title": "
|
|
340
|
+
"title": "Filereviews",
|
|
341
341
|
"type": "array"
|
|
342
342
|
},
|
|
343
343
|
"reviewComment": {
|
|
@@ -501,6 +501,194 @@ export const AIReviewIssueJsonSchema = {
|
|
|
501
501
|
"title": "AIReviewIssue",
|
|
502
502
|
"type": "object"
|
|
503
503
|
};
|
|
504
|
+
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) });
|
|
505
|
+
export const AIRunLogEntryJsonSchema = {
|
|
506
|
+
"properties": {
|
|
507
|
+
"timestamp": {
|
|
508
|
+
"title": "Timestamp",
|
|
509
|
+
"type": "string"
|
|
510
|
+
},
|
|
511
|
+
"type": {
|
|
512
|
+
"enum": [
|
|
513
|
+
"code-review",
|
|
514
|
+
"visual-review"
|
|
515
|
+
],
|
|
516
|
+
"title": "Type",
|
|
517
|
+
"type": "string"
|
|
518
|
+
},
|
|
519
|
+
"inputTokens": {
|
|
520
|
+
"title": "Inputtokens",
|
|
521
|
+
"type": "integer"
|
|
522
|
+
},
|
|
523
|
+
"outputTokens": {
|
|
524
|
+
"title": "Outputtokens",
|
|
525
|
+
"type": "integer"
|
|
526
|
+
},
|
|
527
|
+
"durationMs": {
|
|
528
|
+
"title": "Durationms",
|
|
529
|
+
"type": "integer"
|
|
530
|
+
},
|
|
531
|
+
"cost": {
|
|
532
|
+
"title": "Cost",
|
|
533
|
+
"type": "number"
|
|
534
|
+
},
|
|
535
|
+
"model": {
|
|
536
|
+
"anyOf": [
|
|
537
|
+
{
|
|
538
|
+
"type": "string"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"type": "null"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"default": null,
|
|
545
|
+
"title": "Model"
|
|
546
|
+
},
|
|
547
|
+
"cacheTokens": {
|
|
548
|
+
"anyOf": [
|
|
549
|
+
{
|
|
550
|
+
"type": "integer"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"type": "null"
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"default": null,
|
|
557
|
+
"title": "Cachetokens"
|
|
558
|
+
},
|
|
559
|
+
"totalTokens": {
|
|
560
|
+
"anyOf": [
|
|
561
|
+
{
|
|
562
|
+
"type": "integer"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"type": "null"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"default": null,
|
|
569
|
+
"title": "Totaltokens"
|
|
570
|
+
},
|
|
571
|
+
"verdict": {
|
|
572
|
+
"anyOf": [
|
|
573
|
+
{
|
|
574
|
+
"type": "string"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "null"
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"default": null,
|
|
581
|
+
"title": "Verdict"
|
|
582
|
+
},
|
|
583
|
+
"pr": {
|
|
584
|
+
"anyOf": [
|
|
585
|
+
{
|
|
586
|
+
"type": "string"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"type": "null"
|
|
590
|
+
}
|
|
591
|
+
],
|
|
592
|
+
"default": null,
|
|
593
|
+
"title": "Pr"
|
|
594
|
+
},
|
|
595
|
+
"route": {
|
|
596
|
+
"anyOf": [
|
|
597
|
+
{
|
|
598
|
+
"type": "string"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"type": "null"
|
|
602
|
+
}
|
|
603
|
+
],
|
|
604
|
+
"default": null,
|
|
605
|
+
"title": "Route"
|
|
606
|
+
},
|
|
607
|
+
"error": {
|
|
608
|
+
"anyOf": [
|
|
609
|
+
{
|
|
610
|
+
"type": "string"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"type": "null"
|
|
614
|
+
}
|
|
615
|
+
],
|
|
616
|
+
"default": null,
|
|
617
|
+
"title": "Error"
|
|
618
|
+
},
|
|
619
|
+
"isTruncated": {
|
|
620
|
+
"anyOf": [
|
|
621
|
+
{
|
|
622
|
+
"type": "boolean"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"type": "null"
|
|
626
|
+
}
|
|
627
|
+
],
|
|
628
|
+
"default": null,
|
|
629
|
+
"title": "Istruncated"
|
|
630
|
+
},
|
|
631
|
+
"parseError": {
|
|
632
|
+
"anyOf": [
|
|
633
|
+
{
|
|
634
|
+
"type": "string"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"type": "null"
|
|
638
|
+
}
|
|
639
|
+
],
|
|
640
|
+
"default": null,
|
|
641
|
+
"title": "Parseerror"
|
|
642
|
+
},
|
|
643
|
+
"rawResponse": {
|
|
644
|
+
"anyOf": [
|
|
645
|
+
{
|
|
646
|
+
"type": "string"
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
"type": "null"
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
"default": null,
|
|
653
|
+
"title": "Rawresponse"
|
|
654
|
+
},
|
|
655
|
+
"findings": {
|
|
656
|
+
"anyOf": [
|
|
657
|
+
{
|
|
658
|
+
"items": {},
|
|
659
|
+
"type": "array"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"type": "null"
|
|
663
|
+
}
|
|
664
|
+
],
|
|
665
|
+
"default": null,
|
|
666
|
+
"title": "Findings"
|
|
667
|
+
},
|
|
668
|
+
"inputChars": {
|
|
669
|
+
"anyOf": [
|
|
670
|
+
{
|
|
671
|
+
"type": "integer"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"type": "null"
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
"default": null,
|
|
678
|
+
"title": "Inputchars"
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
"required": [
|
|
682
|
+
"timestamp",
|
|
683
|
+
"type",
|
|
684
|
+
"inputTokens",
|
|
685
|
+
"outputTokens",
|
|
686
|
+
"durationMs",
|
|
687
|
+
"cost"
|
|
688
|
+
],
|
|
689
|
+
"title": "AIRunLogEntry",
|
|
690
|
+
"type": "object"
|
|
691
|
+
};
|
|
504
692
|
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.") });
|
|
505
693
|
export const AISynthesisReviewJsonSchema = {
|
|
506
694
|
"properties": {
|
|
@@ -530,6 +718,12 @@ export const AISynthesisReviewJsonSchema = {
|
|
|
530
718
|
"title": "AISynthesisReview",
|
|
531
719
|
"type": "object"
|
|
532
720
|
};
|
|
721
|
+
export const CamelCaseModelSchema = z.object({});
|
|
722
|
+
export const CamelCaseModelJsonSchema = {
|
|
723
|
+
"properties": {},
|
|
724
|
+
"title": "CamelCaseModel",
|
|
725
|
+
"type": "object"
|
|
726
|
+
};
|
|
533
727
|
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) });
|
|
534
728
|
export const CheckoutBranchInputJsonSchema = {
|
|
535
729
|
"properties": {
|
|
@@ -558,6 +752,355 @@ export const CheckoutBranchInputJsonSchema = {
|
|
|
558
752
|
"title": "CheckoutBranchInput",
|
|
559
753
|
"type": "object"
|
|
560
754
|
};
|
|
755
|
+
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) });
|
|
756
|
+
export const CodeReviewResultJsonSchema = {
|
|
757
|
+
"$defs": {
|
|
758
|
+
"ReviewFinding": {
|
|
759
|
+
"properties": {
|
|
760
|
+
"id": {
|
|
761
|
+
"title": "Id",
|
|
762
|
+
"type": "string"
|
|
763
|
+
},
|
|
764
|
+
"file": {
|
|
765
|
+
"title": "File",
|
|
766
|
+
"type": "string"
|
|
767
|
+
},
|
|
768
|
+
"issue": {
|
|
769
|
+
"title": "Issue",
|
|
770
|
+
"type": "string"
|
|
771
|
+
},
|
|
772
|
+
"status": {
|
|
773
|
+
"enum": [
|
|
774
|
+
"open",
|
|
775
|
+
"resolved"
|
|
776
|
+
],
|
|
777
|
+
"title": "Status",
|
|
778
|
+
"type": "string"
|
|
779
|
+
},
|
|
780
|
+
"confidence": {
|
|
781
|
+
"enum": [
|
|
782
|
+
"high",
|
|
783
|
+
"medium",
|
|
784
|
+
"low"
|
|
785
|
+
],
|
|
786
|
+
"title": "Confidence",
|
|
787
|
+
"type": "string"
|
|
788
|
+
},
|
|
789
|
+
"severity": {
|
|
790
|
+
"anyOf": [
|
|
791
|
+
{
|
|
792
|
+
"enum": [
|
|
793
|
+
"HIGH",
|
|
794
|
+
"MEDIUM",
|
|
795
|
+
"LOW"
|
|
796
|
+
],
|
|
797
|
+
"type": "string"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"type": "null"
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"default": null,
|
|
804
|
+
"title": "Severity"
|
|
805
|
+
},
|
|
806
|
+
"line": {
|
|
807
|
+
"anyOf": [
|
|
808
|
+
{
|
|
809
|
+
"type": "integer"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"type": "null"
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
"default": null,
|
|
816
|
+
"title": "Line"
|
|
817
|
+
},
|
|
818
|
+
"snippet": {
|
|
819
|
+
"anyOf": [
|
|
820
|
+
{
|
|
821
|
+
"type": "string"
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
"type": "null"
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
"default": null,
|
|
828
|
+
"title": "Snippet"
|
|
829
|
+
},
|
|
830
|
+
"fixSummary": {
|
|
831
|
+
"anyOf": [
|
|
832
|
+
{
|
|
833
|
+
"type": "string"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"type": "null"
|
|
837
|
+
}
|
|
838
|
+
],
|
|
839
|
+
"default": null,
|
|
840
|
+
"title": "Fixsummary"
|
|
841
|
+
},
|
|
842
|
+
"counterexample": {
|
|
843
|
+
"anyOf": [
|
|
844
|
+
{
|
|
845
|
+
"type": "string"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "null"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
851
|
+
"default": null,
|
|
852
|
+
"title": "Counterexample"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"required": [
|
|
856
|
+
"id",
|
|
857
|
+
"file",
|
|
858
|
+
"issue",
|
|
859
|
+
"status",
|
|
860
|
+
"confidence"
|
|
861
|
+
],
|
|
862
|
+
"title": "ReviewFinding",
|
|
863
|
+
"type": "object"
|
|
864
|
+
}
|
|
865
|
+
},
|
|
866
|
+
"properties": {
|
|
867
|
+
"findings": {
|
|
868
|
+
"items": {
|
|
869
|
+
"$ref": "#/$defs/ReviewFinding"
|
|
870
|
+
},
|
|
871
|
+
"title": "Findings",
|
|
872
|
+
"type": "array"
|
|
873
|
+
},
|
|
874
|
+
"feedback": {
|
|
875
|
+
"title": "Feedback",
|
|
876
|
+
"type": "string"
|
|
877
|
+
},
|
|
878
|
+
"role": {
|
|
879
|
+
"title": "Role",
|
|
880
|
+
"type": "string"
|
|
881
|
+
},
|
|
882
|
+
"tokens": {
|
|
883
|
+
"title": "Tokens",
|
|
884
|
+
"type": "integer"
|
|
885
|
+
},
|
|
886
|
+
"cost": {
|
|
887
|
+
"title": "Cost",
|
|
888
|
+
"type": "number"
|
|
889
|
+
},
|
|
890
|
+
"modelName": {
|
|
891
|
+
"title": "Modelname",
|
|
892
|
+
"type": "string"
|
|
893
|
+
},
|
|
894
|
+
"llmVerdict": {
|
|
895
|
+
"enum": [
|
|
896
|
+
"pass",
|
|
897
|
+
"warn",
|
|
898
|
+
"fail"
|
|
899
|
+
],
|
|
900
|
+
"title": "Llmverdict",
|
|
901
|
+
"type": "string"
|
|
902
|
+
},
|
|
903
|
+
"isTruncated": {
|
|
904
|
+
"anyOf": [
|
|
905
|
+
{
|
|
906
|
+
"type": "boolean"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
"type": "null"
|
|
910
|
+
}
|
|
911
|
+
],
|
|
912
|
+
"default": null,
|
|
913
|
+
"title": "Istruncated"
|
|
914
|
+
},
|
|
915
|
+
"inputTokens": {
|
|
916
|
+
"anyOf": [
|
|
917
|
+
{
|
|
918
|
+
"type": "integer"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"type": "null"
|
|
922
|
+
}
|
|
923
|
+
],
|
|
924
|
+
"default": null,
|
|
925
|
+
"title": "Inputtokens"
|
|
926
|
+
},
|
|
927
|
+
"outputTokens": {
|
|
928
|
+
"anyOf": [
|
|
929
|
+
{
|
|
930
|
+
"type": "integer"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"type": "null"
|
|
934
|
+
}
|
|
935
|
+
],
|
|
936
|
+
"default": null,
|
|
937
|
+
"title": "Outputtokens"
|
|
938
|
+
},
|
|
939
|
+
"cacheTokens": {
|
|
940
|
+
"anyOf": [
|
|
941
|
+
{
|
|
942
|
+
"type": "integer"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
"type": "null"
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"default": null,
|
|
949
|
+
"title": "Cachetokens"
|
|
950
|
+
},
|
|
951
|
+
"parseError": {
|
|
952
|
+
"anyOf": [
|
|
953
|
+
{
|
|
954
|
+
"enum": [
|
|
955
|
+
"missing_closing_tag",
|
|
956
|
+
"truncated_json",
|
|
957
|
+
"incomplete_findings",
|
|
958
|
+
"invalid_json"
|
|
959
|
+
],
|
|
960
|
+
"type": "string"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"type": "null"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"default": null,
|
|
967
|
+
"title": "Parseerror"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"required": [
|
|
971
|
+
"feedback",
|
|
972
|
+
"role",
|
|
973
|
+
"tokens",
|
|
974
|
+
"cost",
|
|
975
|
+
"modelName",
|
|
976
|
+
"llmVerdict"
|
|
977
|
+
],
|
|
978
|
+
"title": "CodeReviewResult",
|
|
979
|
+
"type": "object"
|
|
980
|
+
};
|
|
981
|
+
export const CodeReviewStateSchema = z.object({ "findings": z.array(z.any()).optional() });
|
|
982
|
+
export const CodeReviewStateJsonSchema = {
|
|
983
|
+
"$defs": {
|
|
984
|
+
"ReviewFinding": {
|
|
985
|
+
"properties": {
|
|
986
|
+
"id": {
|
|
987
|
+
"title": "Id",
|
|
988
|
+
"type": "string"
|
|
989
|
+
},
|
|
990
|
+
"file": {
|
|
991
|
+
"title": "File",
|
|
992
|
+
"type": "string"
|
|
993
|
+
},
|
|
994
|
+
"issue": {
|
|
995
|
+
"title": "Issue",
|
|
996
|
+
"type": "string"
|
|
997
|
+
},
|
|
998
|
+
"status": {
|
|
999
|
+
"enum": [
|
|
1000
|
+
"open",
|
|
1001
|
+
"resolved"
|
|
1002
|
+
],
|
|
1003
|
+
"title": "Status",
|
|
1004
|
+
"type": "string"
|
|
1005
|
+
},
|
|
1006
|
+
"confidence": {
|
|
1007
|
+
"enum": [
|
|
1008
|
+
"high",
|
|
1009
|
+
"medium",
|
|
1010
|
+
"low"
|
|
1011
|
+
],
|
|
1012
|
+
"title": "Confidence",
|
|
1013
|
+
"type": "string"
|
|
1014
|
+
},
|
|
1015
|
+
"severity": {
|
|
1016
|
+
"anyOf": [
|
|
1017
|
+
{
|
|
1018
|
+
"enum": [
|
|
1019
|
+
"HIGH",
|
|
1020
|
+
"MEDIUM",
|
|
1021
|
+
"LOW"
|
|
1022
|
+
],
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"type": "null"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"default": null,
|
|
1030
|
+
"title": "Severity"
|
|
1031
|
+
},
|
|
1032
|
+
"line": {
|
|
1033
|
+
"anyOf": [
|
|
1034
|
+
{
|
|
1035
|
+
"type": "integer"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"type": "null"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
1041
|
+
"default": null,
|
|
1042
|
+
"title": "Line"
|
|
1043
|
+
},
|
|
1044
|
+
"snippet": {
|
|
1045
|
+
"anyOf": [
|
|
1046
|
+
{
|
|
1047
|
+
"type": "string"
|
|
1048
|
+
},
|
|
1049
|
+
{
|
|
1050
|
+
"type": "null"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"default": null,
|
|
1054
|
+
"title": "Snippet"
|
|
1055
|
+
},
|
|
1056
|
+
"fixSummary": {
|
|
1057
|
+
"anyOf": [
|
|
1058
|
+
{
|
|
1059
|
+
"type": "string"
|
|
1060
|
+
},
|
|
1061
|
+
{
|
|
1062
|
+
"type": "null"
|
|
1063
|
+
}
|
|
1064
|
+
],
|
|
1065
|
+
"default": null,
|
|
1066
|
+
"title": "Fixsummary"
|
|
1067
|
+
},
|
|
1068
|
+
"counterexample": {
|
|
1069
|
+
"anyOf": [
|
|
1070
|
+
{
|
|
1071
|
+
"type": "string"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
"type": "null"
|
|
1075
|
+
}
|
|
1076
|
+
],
|
|
1077
|
+
"default": null,
|
|
1078
|
+
"title": "Counterexample"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
"required": [
|
|
1082
|
+
"id",
|
|
1083
|
+
"file",
|
|
1084
|
+
"issue",
|
|
1085
|
+
"status",
|
|
1086
|
+
"confidence"
|
|
1087
|
+
],
|
|
1088
|
+
"title": "ReviewFinding",
|
|
1089
|
+
"type": "object"
|
|
1090
|
+
}
|
|
1091
|
+
},
|
|
1092
|
+
"properties": {
|
|
1093
|
+
"findings": {
|
|
1094
|
+
"items": {
|
|
1095
|
+
"$ref": "#/$defs/ReviewFinding"
|
|
1096
|
+
},
|
|
1097
|
+
"title": "Findings",
|
|
1098
|
+
"type": "array"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"title": "CodeReviewState",
|
|
1102
|
+
"type": "object"
|
|
1103
|
+
};
|
|
561
1104
|
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.") });
|
|
562
1105
|
export const CommentTriageSummaryInputJsonSchema = {
|
|
563
1106
|
"properties": {
|
|
@@ -690,8 +1233,8 @@ export const CreateIssueResponseJsonSchema = {
|
|
|
690
1233
|
"title": "Title",
|
|
691
1234
|
"type": "string"
|
|
692
1235
|
},
|
|
693
|
-
"
|
|
694
|
-
"title": "
|
|
1236
|
+
"htmlUrl": {
|
|
1237
|
+
"title": "Htmlurl",
|
|
695
1238
|
"type": "string"
|
|
696
1239
|
},
|
|
697
1240
|
"state": {
|
|
@@ -702,7 +1245,7 @@ export const CreateIssueResponseJsonSchema = {
|
|
|
702
1245
|
"required": [
|
|
703
1246
|
"number",
|
|
704
1247
|
"title",
|
|
705
|
-
"
|
|
1248
|
+
"htmlUrl",
|
|
706
1249
|
"state"
|
|
707
1250
|
],
|
|
708
1251
|
"title": "IssueSummary",
|
|
@@ -1025,7 +1568,7 @@ export const IssueCommentInputJsonSchema = {
|
|
|
1025
1568
|
"title": "IssueCommentInput",
|
|
1026
1569
|
"type": "object"
|
|
1027
1570
|
};
|
|
1028
|
-
export const IssueSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "
|
|
1571
|
+
export const IssueSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "htmlUrl": z.string(), "state": z.string() });
|
|
1029
1572
|
export const IssueSummaryJsonSchema = {
|
|
1030
1573
|
"properties": {
|
|
1031
1574
|
"number": {
|
|
@@ -1036,8 +1579,8 @@ export const IssueSummaryJsonSchema = {
|
|
|
1036
1579
|
"title": "Title",
|
|
1037
1580
|
"type": "string"
|
|
1038
1581
|
},
|
|
1039
|
-
"
|
|
1040
|
-
"title": "
|
|
1582
|
+
"htmlUrl": {
|
|
1583
|
+
"title": "Htmlurl",
|
|
1041
1584
|
"type": "string"
|
|
1042
1585
|
},
|
|
1043
1586
|
"state": {
|
|
@@ -1048,13 +1591,13 @@ export const IssueSummaryJsonSchema = {
|
|
|
1048
1591
|
"required": [
|
|
1049
1592
|
"number",
|
|
1050
1593
|
"title",
|
|
1051
|
-
"
|
|
1594
|
+
"htmlUrl",
|
|
1052
1595
|
"state"
|
|
1053
1596
|
],
|
|
1054
1597
|
"title": "IssueSummary",
|
|
1055
1598
|
"type": "object"
|
|
1056
1599
|
};
|
|
1057
|
-
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.
|
|
1600
|
+
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) });
|
|
1058
1601
|
export const IssueUpdateInputJsonSchema = {
|
|
1059
1602
|
"properties": {
|
|
1060
1603
|
"issueNumber": {
|
|
@@ -1139,6 +1682,10 @@ export const IssueUpdateInputJsonSchema = {
|
|
|
1139
1682
|
"state": {
|
|
1140
1683
|
"anyOf": [
|
|
1141
1684
|
{
|
|
1685
|
+
"enum": [
|
|
1686
|
+
"open",
|
|
1687
|
+
"closed"
|
|
1688
|
+
],
|
|
1142
1689
|
"type": "string"
|
|
1143
1690
|
},
|
|
1144
1691
|
{
|
|
@@ -1146,7 +1693,7 @@ export const IssueUpdateInputJsonSchema = {
|
|
|
1146
1693
|
}
|
|
1147
1694
|
],
|
|
1148
1695
|
"default": null,
|
|
1149
|
-
"description": "The state to set the issue to
|
|
1696
|
+
"description": "The state to set the issue to.",
|
|
1150
1697
|
"title": "State"
|
|
1151
1698
|
}
|
|
1152
1699
|
},
|
|
@@ -1169,8 +1716,8 @@ export const IssueUpdateResponseJsonSchema = {
|
|
|
1169
1716
|
"title": "Title",
|
|
1170
1717
|
"type": "string"
|
|
1171
1718
|
},
|
|
1172
|
-
"
|
|
1173
|
-
"title": "
|
|
1719
|
+
"htmlUrl": {
|
|
1720
|
+
"title": "Htmlurl",
|
|
1174
1721
|
"type": "string"
|
|
1175
1722
|
},
|
|
1176
1723
|
"state": {
|
|
@@ -1181,7 +1728,7 @@ export const IssueUpdateResponseJsonSchema = {
|
|
|
1181
1728
|
"required": [
|
|
1182
1729
|
"number",
|
|
1183
1730
|
"title",
|
|
1184
|
-
"
|
|
1731
|
+
"htmlUrl",
|
|
1185
1732
|
"state"
|
|
1186
1733
|
],
|
|
1187
1734
|
"title": "IssueSummary",
|
|
@@ -1390,7 +1937,7 @@ export const OpenReplacementPrInputJsonSchema = {
|
|
|
1390
1937
|
"title": "OpenReplacementPrInput",
|
|
1391
1938
|
"type": "object"
|
|
1392
1939
|
};
|
|
1393
|
-
export const PRCommentSchema = z.object({ "user": z.string(), "body": z.string(), "
|
|
1940
|
+
export const PRCommentSchema = z.object({ "user": z.string(), "body": z.string(), "createdAt": z.string() });
|
|
1394
1941
|
export const PRCommentJsonSchema = {
|
|
1395
1942
|
"properties": {
|
|
1396
1943
|
"user": {
|
|
@@ -1401,15 +1948,15 @@ export const PRCommentJsonSchema = {
|
|
|
1401
1948
|
"title": "Body",
|
|
1402
1949
|
"type": "string"
|
|
1403
1950
|
},
|
|
1404
|
-
"
|
|
1405
|
-
"title": "
|
|
1951
|
+
"createdAt": {
|
|
1952
|
+
"title": "Createdat",
|
|
1406
1953
|
"type": "string"
|
|
1407
1954
|
}
|
|
1408
1955
|
},
|
|
1409
1956
|
"required": [
|
|
1410
1957
|
"user",
|
|
1411
1958
|
"body",
|
|
1412
|
-
"
|
|
1959
|
+
"createdAt"
|
|
1413
1960
|
],
|
|
1414
1961
|
"title": "PRComment",
|
|
1415
1962
|
"type": "object"
|
|
@@ -1505,6 +2052,39 @@ export const PRSummaryJsonSchema = {
|
|
|
1505
2052
|
"title": "PRSummary",
|
|
1506
2053
|
"type": "object"
|
|
1507
2054
|
};
|
|
2055
|
+
export const PrDiffResponseSchema = z.object({ "prNumber": z.number().int(), "files": z.array(z.record(z.string(), z.any())), "diffText": z.string(), "isTruncated": z.boolean() });
|
|
2056
|
+
export const PrDiffResponseJsonSchema = {
|
|
2057
|
+
"properties": {
|
|
2058
|
+
"prNumber": {
|
|
2059
|
+
"title": "Prnumber",
|
|
2060
|
+
"type": "integer"
|
|
2061
|
+
},
|
|
2062
|
+
"files": {
|
|
2063
|
+
"items": {
|
|
2064
|
+
"additionalProperties": true,
|
|
2065
|
+
"type": "object"
|
|
2066
|
+
},
|
|
2067
|
+
"title": "Files",
|
|
2068
|
+
"type": "array"
|
|
2069
|
+
},
|
|
2070
|
+
"diffText": {
|
|
2071
|
+
"title": "Difftext",
|
|
2072
|
+
"type": "string"
|
|
2073
|
+
},
|
|
2074
|
+
"isTruncated": {
|
|
2075
|
+
"title": "Istruncated",
|
|
2076
|
+
"type": "boolean"
|
|
2077
|
+
}
|
|
2078
|
+
},
|
|
2079
|
+
"required": [
|
|
2080
|
+
"prNumber",
|
|
2081
|
+
"files",
|
|
2082
|
+
"diffText",
|
|
2083
|
+
"isTruncated"
|
|
2084
|
+
],
|
|
2085
|
+
"title": "PrDiffResponse",
|
|
2086
|
+
"type": "object"
|
|
2087
|
+
};
|
|
1508
2088
|
export const ReadAgentContextInputSchema = z.object({});
|
|
1509
2089
|
export const ReadAgentContextInputJsonSchema = {
|
|
1510
2090
|
"properties": {},
|
|
@@ -1548,7 +2128,7 @@ export const ReadPRCommentsInputJsonSchema = {
|
|
|
1548
2128
|
"title": "ReadPRCommentsInput",
|
|
1549
2129
|
"type": "object"
|
|
1550
2130
|
};
|
|
1551
|
-
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(), "
|
|
2131
|
+
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() });
|
|
1552
2132
|
export const ReadPRCommentsResponseJsonSchema = {
|
|
1553
2133
|
"$defs": {
|
|
1554
2134
|
"IssueSummary": {
|
|
@@ -1557,153 +2137,436 @@ export const ReadPRCommentsResponseJsonSchema = {
|
|
|
1557
2137
|
"title": "Number",
|
|
1558
2138
|
"type": "integer"
|
|
1559
2139
|
},
|
|
1560
|
-
"title": {
|
|
1561
|
-
"title": "Title",
|
|
1562
|
-
"type": "string"
|
|
1563
|
-
},
|
|
1564
|
-
"
|
|
1565
|
-
"title": "
|
|
2140
|
+
"title": {
|
|
2141
|
+
"title": "Title",
|
|
2142
|
+
"type": "string"
|
|
2143
|
+
},
|
|
2144
|
+
"htmlUrl": {
|
|
2145
|
+
"title": "Htmlurl",
|
|
2146
|
+
"type": "string"
|
|
2147
|
+
},
|
|
2148
|
+
"state": {
|
|
2149
|
+
"title": "State",
|
|
2150
|
+
"type": "string"
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
"required": [
|
|
2154
|
+
"number",
|
|
2155
|
+
"title",
|
|
2156
|
+
"htmlUrl",
|
|
2157
|
+
"state"
|
|
2158
|
+
],
|
|
2159
|
+
"title": "IssueSummary",
|
|
2160
|
+
"type": "object"
|
|
2161
|
+
},
|
|
2162
|
+
"PRComment": {
|
|
2163
|
+
"properties": {
|
|
2164
|
+
"user": {
|
|
2165
|
+
"title": "User",
|
|
2166
|
+
"type": "string"
|
|
2167
|
+
},
|
|
2168
|
+
"body": {
|
|
2169
|
+
"title": "Body",
|
|
2170
|
+
"type": "string"
|
|
2171
|
+
},
|
|
2172
|
+
"createdAt": {
|
|
2173
|
+
"title": "Createdat",
|
|
2174
|
+
"type": "string"
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
"required": [
|
|
2178
|
+
"user",
|
|
2179
|
+
"body",
|
|
2180
|
+
"createdAt"
|
|
2181
|
+
],
|
|
2182
|
+
"title": "PRComment",
|
|
2183
|
+
"type": "object"
|
|
2184
|
+
},
|
|
2185
|
+
"ReviewComment": {
|
|
2186
|
+
"properties": {
|
|
2187
|
+
"user": {
|
|
2188
|
+
"title": "User",
|
|
2189
|
+
"type": "string"
|
|
2190
|
+
},
|
|
2191
|
+
"path": {
|
|
2192
|
+
"title": "Path",
|
|
2193
|
+
"type": "string"
|
|
2194
|
+
},
|
|
2195
|
+
"line": {
|
|
2196
|
+
"anyOf": [
|
|
2197
|
+
{
|
|
2198
|
+
"type": "integer"
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"type": "null"
|
|
2202
|
+
}
|
|
2203
|
+
],
|
|
2204
|
+
"default": null,
|
|
2205
|
+
"title": "Line"
|
|
2206
|
+
},
|
|
2207
|
+
"body": {
|
|
2208
|
+
"title": "Body",
|
|
2209
|
+
"type": "string"
|
|
2210
|
+
},
|
|
2211
|
+
"createdAt": {
|
|
2212
|
+
"title": "Createdat",
|
|
2213
|
+
"type": "string"
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2216
|
+
"required": [
|
|
2217
|
+
"user",
|
|
2218
|
+
"path",
|
|
2219
|
+
"body",
|
|
2220
|
+
"createdAt"
|
|
2221
|
+
],
|
|
2222
|
+
"title": "ReviewComment",
|
|
2223
|
+
"type": "object"
|
|
2224
|
+
}
|
|
2225
|
+
},
|
|
2226
|
+
"properties": {
|
|
2227
|
+
"status": {
|
|
2228
|
+
"default": "success",
|
|
2229
|
+
"title": "Status",
|
|
2230
|
+
"type": "string"
|
|
2231
|
+
},
|
|
2232
|
+
"message": {
|
|
2233
|
+
"anyOf": [
|
|
2234
|
+
{
|
|
2235
|
+
"type": "string"
|
|
2236
|
+
},
|
|
2237
|
+
{
|
|
2238
|
+
"type": "null"
|
|
2239
|
+
}
|
|
2240
|
+
],
|
|
2241
|
+
"default": null,
|
|
2242
|
+
"title": "Message"
|
|
2243
|
+
},
|
|
2244
|
+
"data": {
|
|
2245
|
+
"anyOf": [
|
|
2246
|
+
{},
|
|
2247
|
+
{
|
|
2248
|
+
"type": "null"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"default": null,
|
|
2252
|
+
"title": "Data"
|
|
2253
|
+
},
|
|
2254
|
+
"pr": {
|
|
2255
|
+
"$ref": "#/$defs/IssueSummary"
|
|
2256
|
+
},
|
|
2257
|
+
"comments": {
|
|
2258
|
+
"items": {
|
|
2259
|
+
"$ref": "#/$defs/PRComment"
|
|
2260
|
+
},
|
|
2261
|
+
"title": "Comments",
|
|
2262
|
+
"type": "array"
|
|
2263
|
+
},
|
|
2264
|
+
"reviewComments": {
|
|
2265
|
+
"items": {
|
|
2266
|
+
"$ref": "#/$defs/ReviewComment"
|
|
2267
|
+
},
|
|
2268
|
+
"title": "Reviewcomments",
|
|
2269
|
+
"type": "array"
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
"required": [
|
|
2273
|
+
"pr"
|
|
2274
|
+
],
|
|
2275
|
+
"title": "ReadPRCommentsResponse",
|
|
2276
|
+
"type": "object"
|
|
2277
|
+
};
|
|
2278
|
+
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) });
|
|
2279
|
+
export const RepoLogsInputJsonSchema = {
|
|
2280
|
+
"properties": {
|
|
2281
|
+
"prNumber": {
|
|
2282
|
+
"description": "The number of the pull request to stream logs for.",
|
|
2283
|
+
"title": "Prnumber",
|
|
2284
|
+
"type": "integer"
|
|
2285
|
+
},
|
|
2286
|
+
"grep": {
|
|
2287
|
+
"anyOf": [
|
|
2288
|
+
{
|
|
2289
|
+
"type": "string"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"type": "null"
|
|
2293
|
+
}
|
|
2294
|
+
],
|
|
2295
|
+
"default": null,
|
|
2296
|
+
"description": "Optional pattern to filter log lines.",
|
|
2297
|
+
"title": "Grep"
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
"required": [
|
|
2301
|
+
"prNumber"
|
|
2302
|
+
],
|
|
2303
|
+
"title": "RepoLogsInput",
|
|
2304
|
+
"type": "object"
|
|
2305
|
+
};
|
|
2306
|
+
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() });
|
|
2307
|
+
export const ReviewCommentJsonSchema = {
|
|
2308
|
+
"properties": {
|
|
2309
|
+
"user": {
|
|
2310
|
+
"title": "User",
|
|
2311
|
+
"type": "string"
|
|
2312
|
+
},
|
|
2313
|
+
"path": {
|
|
2314
|
+
"title": "Path",
|
|
2315
|
+
"type": "string"
|
|
2316
|
+
},
|
|
2317
|
+
"line": {
|
|
2318
|
+
"anyOf": [
|
|
2319
|
+
{
|
|
2320
|
+
"type": "integer"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"type": "null"
|
|
2324
|
+
}
|
|
2325
|
+
],
|
|
2326
|
+
"default": null,
|
|
2327
|
+
"title": "Line"
|
|
2328
|
+
},
|
|
2329
|
+
"body": {
|
|
2330
|
+
"title": "Body",
|
|
2331
|
+
"type": "string"
|
|
2332
|
+
},
|
|
2333
|
+
"createdAt": {
|
|
2334
|
+
"title": "Createdat",
|
|
2335
|
+
"type": "string"
|
|
2336
|
+
}
|
|
2337
|
+
},
|
|
2338
|
+
"required": [
|
|
2339
|
+
"user",
|
|
2340
|
+
"path",
|
|
2341
|
+
"body",
|
|
2342
|
+
"createdAt"
|
|
2343
|
+
],
|
|
2344
|
+
"title": "ReviewComment",
|
|
2345
|
+
"type": "object"
|
|
2346
|
+
};
|
|
2347
|
+
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) });
|
|
2348
|
+
export const ReviewFindingJsonSchema = {
|
|
2349
|
+
"properties": {
|
|
2350
|
+
"id": {
|
|
2351
|
+
"title": "Id",
|
|
2352
|
+
"type": "string"
|
|
2353
|
+
},
|
|
2354
|
+
"file": {
|
|
2355
|
+
"title": "File",
|
|
2356
|
+
"type": "string"
|
|
2357
|
+
},
|
|
2358
|
+
"issue": {
|
|
2359
|
+
"title": "Issue",
|
|
2360
|
+
"type": "string"
|
|
2361
|
+
},
|
|
2362
|
+
"status": {
|
|
2363
|
+
"enum": [
|
|
2364
|
+
"open",
|
|
2365
|
+
"resolved"
|
|
2366
|
+
],
|
|
2367
|
+
"title": "Status",
|
|
2368
|
+
"type": "string"
|
|
2369
|
+
},
|
|
2370
|
+
"confidence": {
|
|
2371
|
+
"enum": [
|
|
2372
|
+
"high",
|
|
2373
|
+
"medium",
|
|
2374
|
+
"low"
|
|
2375
|
+
],
|
|
2376
|
+
"title": "Confidence",
|
|
2377
|
+
"type": "string"
|
|
2378
|
+
},
|
|
2379
|
+
"severity": {
|
|
2380
|
+
"anyOf": [
|
|
2381
|
+
{
|
|
2382
|
+
"enum": [
|
|
2383
|
+
"HIGH",
|
|
2384
|
+
"MEDIUM",
|
|
2385
|
+
"LOW"
|
|
2386
|
+
],
|
|
2387
|
+
"type": "string"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
"type": "null"
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
"default": null,
|
|
2394
|
+
"title": "Severity"
|
|
2395
|
+
},
|
|
2396
|
+
"line": {
|
|
2397
|
+
"anyOf": [
|
|
2398
|
+
{
|
|
2399
|
+
"type": "integer"
|
|
2400
|
+
},
|
|
2401
|
+
{
|
|
2402
|
+
"type": "null"
|
|
2403
|
+
}
|
|
2404
|
+
],
|
|
2405
|
+
"default": null,
|
|
2406
|
+
"title": "Line"
|
|
2407
|
+
},
|
|
2408
|
+
"snippet": {
|
|
2409
|
+
"anyOf": [
|
|
2410
|
+
{
|
|
1566
2411
|
"type": "string"
|
|
1567
2412
|
},
|
|
1568
|
-
|
|
1569
|
-
"
|
|
1570
|
-
"type": "string"
|
|
2413
|
+
{
|
|
2414
|
+
"type": "null"
|
|
1571
2415
|
}
|
|
1572
|
-
},
|
|
1573
|
-
"required": [
|
|
1574
|
-
"number",
|
|
1575
|
-
"title",
|
|
1576
|
-
"html_url",
|
|
1577
|
-
"state"
|
|
1578
2416
|
],
|
|
1579
|
-
"
|
|
1580
|
-
"
|
|
2417
|
+
"default": null,
|
|
2418
|
+
"title": "Snippet"
|
|
1581
2419
|
},
|
|
1582
|
-
"
|
|
1583
|
-
"
|
|
1584
|
-
|
|
1585
|
-
"title": "User",
|
|
2420
|
+
"fixSummary": {
|
|
2421
|
+
"anyOf": [
|
|
2422
|
+
{
|
|
1586
2423
|
"type": "string"
|
|
1587
2424
|
},
|
|
1588
|
-
|
|
1589
|
-
"
|
|
2425
|
+
{
|
|
2426
|
+
"type": "null"
|
|
2427
|
+
}
|
|
2428
|
+
],
|
|
2429
|
+
"default": null,
|
|
2430
|
+
"title": "Fixsummary"
|
|
2431
|
+
},
|
|
2432
|
+
"counterexample": {
|
|
2433
|
+
"anyOf": [
|
|
2434
|
+
{
|
|
1590
2435
|
"type": "string"
|
|
1591
2436
|
},
|
|
1592
|
-
|
|
1593
|
-
"
|
|
1594
|
-
"type": "string"
|
|
2437
|
+
{
|
|
2438
|
+
"type": "null"
|
|
1595
2439
|
}
|
|
1596
|
-
},
|
|
1597
|
-
"required": [
|
|
1598
|
-
"user",
|
|
1599
|
-
"body",
|
|
1600
|
-
"created_at"
|
|
1601
2440
|
],
|
|
1602
|
-
"
|
|
1603
|
-
"
|
|
1604
|
-
}
|
|
1605
|
-
|
|
2441
|
+
"default": null,
|
|
2442
|
+
"title": "Counterexample"
|
|
2443
|
+
}
|
|
2444
|
+
},
|
|
2445
|
+
"required": [
|
|
2446
|
+
"id",
|
|
2447
|
+
"file",
|
|
2448
|
+
"issue",
|
|
2449
|
+
"status",
|
|
2450
|
+
"confidence"
|
|
2451
|
+
],
|
|
2452
|
+
"title": "ReviewFinding",
|
|
2453
|
+
"type": "object"
|
|
2454
|
+
};
|
|
2455
|
+
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) });
|
|
2456
|
+
export const RouteReviewJsonSchema = {
|
|
2457
|
+
"$defs": {
|
|
2458
|
+
"VisualReviewFinding": {
|
|
1606
2459
|
"properties": {
|
|
1607
|
-
"
|
|
1608
|
-
"title": "
|
|
2460
|
+
"id": {
|
|
2461
|
+
"title": "Id",
|
|
1609
2462
|
"type": "string"
|
|
1610
2463
|
},
|
|
1611
|
-
"
|
|
1612
|
-
"title": "
|
|
2464
|
+
"route": {
|
|
2465
|
+
"title": "Route",
|
|
1613
2466
|
"type": "string"
|
|
1614
2467
|
},
|
|
1615
|
-
"
|
|
2468
|
+
"issue": {
|
|
2469
|
+
"title": "Issue",
|
|
2470
|
+
"type": "string"
|
|
2471
|
+
},
|
|
2472
|
+
"status": {
|
|
2473
|
+
"enum": [
|
|
2474
|
+
"open",
|
|
2475
|
+
"resolved"
|
|
2476
|
+
],
|
|
2477
|
+
"title": "Status",
|
|
2478
|
+
"type": "string"
|
|
2479
|
+
},
|
|
2480
|
+
"fixSummary": {
|
|
1616
2481
|
"anyOf": [
|
|
1617
2482
|
{
|
|
1618
|
-
"type": "
|
|
2483
|
+
"type": "string"
|
|
1619
2484
|
},
|
|
1620
2485
|
{
|
|
1621
2486
|
"type": "null"
|
|
1622
2487
|
}
|
|
1623
2488
|
],
|
|
1624
2489
|
"default": null,
|
|
1625
|
-
"title": "
|
|
1626
|
-
},
|
|
1627
|
-
"body": {
|
|
1628
|
-
"title": "Body",
|
|
1629
|
-
"type": "string"
|
|
1630
|
-
},
|
|
1631
|
-
"created_at": {
|
|
1632
|
-
"title": "Created At",
|
|
1633
|
-
"type": "string"
|
|
2490
|
+
"title": "Fixsummary"
|
|
1634
2491
|
}
|
|
1635
2492
|
},
|
|
1636
2493
|
"required": [
|
|
1637
|
-
"
|
|
1638
|
-
"
|
|
1639
|
-
"
|
|
1640
|
-
"
|
|
2494
|
+
"id",
|
|
2495
|
+
"route",
|
|
2496
|
+
"issue",
|
|
2497
|
+
"status"
|
|
1641
2498
|
],
|
|
1642
|
-
"title": "
|
|
2499
|
+
"title": "VisualReviewFinding",
|
|
1643
2500
|
"type": "object"
|
|
1644
2501
|
}
|
|
1645
2502
|
},
|
|
1646
2503
|
"properties": {
|
|
1647
|
-
"
|
|
1648
|
-
"
|
|
1649
|
-
"title": "Status",
|
|
2504
|
+
"route": {
|
|
2505
|
+
"title": "Route",
|
|
1650
2506
|
"type": "string"
|
|
1651
2507
|
},
|
|
1652
|
-
"
|
|
2508
|
+
"severity": {
|
|
2509
|
+
"enum": [
|
|
2510
|
+
"LOW",
|
|
2511
|
+
"MEDIUM",
|
|
2512
|
+
"HIGH"
|
|
2513
|
+
],
|
|
2514
|
+
"title": "Severity",
|
|
2515
|
+
"type": "string"
|
|
2516
|
+
},
|
|
2517
|
+
"differencePercent": {
|
|
2518
|
+
"title": "Differencepercent",
|
|
2519
|
+
"type": "number"
|
|
2520
|
+
},
|
|
2521
|
+
"feedback": {
|
|
2522
|
+
"title": "Feedback",
|
|
2523
|
+
"type": "string"
|
|
2524
|
+
},
|
|
2525
|
+
"tokens": {
|
|
2526
|
+
"title": "Tokens",
|
|
2527
|
+
"type": "integer"
|
|
2528
|
+
},
|
|
2529
|
+
"cost": {
|
|
2530
|
+
"title": "Cost",
|
|
2531
|
+
"type": "number"
|
|
2532
|
+
},
|
|
2533
|
+
"inputTokens": {
|
|
1653
2534
|
"anyOf": [
|
|
1654
2535
|
{
|
|
1655
|
-
"type": "
|
|
2536
|
+
"type": "integer"
|
|
1656
2537
|
},
|
|
1657
2538
|
{
|
|
1658
2539
|
"type": "null"
|
|
1659
2540
|
}
|
|
1660
2541
|
],
|
|
1661
2542
|
"default": null,
|
|
1662
|
-
"title": "
|
|
2543
|
+
"title": "Inputtokens"
|
|
1663
2544
|
},
|
|
1664
|
-
"
|
|
2545
|
+
"outputTokens": {
|
|
1665
2546
|
"anyOf": [
|
|
1666
|
-
{
|
|
2547
|
+
{
|
|
2548
|
+
"type": "integer"
|
|
2549
|
+
},
|
|
1667
2550
|
{
|
|
1668
2551
|
"type": "null"
|
|
1669
2552
|
}
|
|
1670
2553
|
],
|
|
1671
2554
|
"default": null,
|
|
1672
|
-
"title": "
|
|
1673
|
-
},
|
|
1674
|
-
"pr": {
|
|
1675
|
-
"$ref": "#/$defs/IssueSummary"
|
|
1676
|
-
},
|
|
1677
|
-
"comments": {
|
|
1678
|
-
"items": {
|
|
1679
|
-
"$ref": "#/$defs/PRComment"
|
|
1680
|
-
},
|
|
1681
|
-
"title": "Comments",
|
|
1682
|
-
"type": "array"
|
|
2555
|
+
"title": "Outputtokens"
|
|
1683
2556
|
},
|
|
1684
|
-
"
|
|
1685
|
-
"
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
"title": "ReadPRCommentsResponse",
|
|
1696
|
-
"type": "object"
|
|
1697
|
-
};
|
|
1698
|
-
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) });
|
|
1699
|
-
export const RepoLogsInputJsonSchema = {
|
|
1700
|
-
"properties": {
|
|
1701
|
-
"prNumber": {
|
|
1702
|
-
"description": "The number of the pull request to stream logs for.",
|
|
1703
|
-
"title": "Prnumber",
|
|
1704
|
-
"type": "integer"
|
|
2557
|
+
"cacheTokens": {
|
|
2558
|
+
"anyOf": [
|
|
2559
|
+
{
|
|
2560
|
+
"type": "integer"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
"type": "null"
|
|
2564
|
+
}
|
|
2565
|
+
],
|
|
2566
|
+
"default": null,
|
|
2567
|
+
"title": "Cachetokens"
|
|
1705
2568
|
},
|
|
1706
|
-
"
|
|
2569
|
+
"modelName": {
|
|
1707
2570
|
"anyOf": [
|
|
1708
2571
|
{
|
|
1709
2572
|
"type": "string"
|
|
@@ -1713,55 +2576,74 @@ export const RepoLogsInputJsonSchema = {
|
|
|
1713
2576
|
}
|
|
1714
2577
|
],
|
|
1715
2578
|
"default": null,
|
|
1716
|
-
"
|
|
1717
|
-
"title": "Grep"
|
|
1718
|
-
}
|
|
1719
|
-
},
|
|
1720
|
-
"required": [
|
|
1721
|
-
"prNumber"
|
|
1722
|
-
],
|
|
1723
|
-
"title": "RepoLogsInput",
|
|
1724
|
-
"type": "object"
|
|
1725
|
-
};
|
|
1726
|
-
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() });
|
|
1727
|
-
export const ReviewCommentJsonSchema = {
|
|
1728
|
-
"properties": {
|
|
1729
|
-
"user": {
|
|
1730
|
-
"title": "User",
|
|
1731
|
-
"type": "string"
|
|
2579
|
+
"title": "Modelname"
|
|
1732
2580
|
},
|
|
1733
|
-
"
|
|
1734
|
-
"
|
|
1735
|
-
|
|
2581
|
+
"llmVerdict": {
|
|
2582
|
+
"anyOf": [
|
|
2583
|
+
{
|
|
2584
|
+
"enum": [
|
|
2585
|
+
"pass",
|
|
2586
|
+
"fail",
|
|
2587
|
+
"warn"
|
|
2588
|
+
],
|
|
2589
|
+
"type": "string"
|
|
2590
|
+
},
|
|
2591
|
+
{
|
|
2592
|
+
"type": "null"
|
|
2593
|
+
}
|
|
2594
|
+
],
|
|
2595
|
+
"default": null,
|
|
2596
|
+
"title": "Llmverdict"
|
|
1736
2597
|
},
|
|
1737
|
-
"
|
|
2598
|
+
"findings": {
|
|
1738
2599
|
"anyOf": [
|
|
1739
2600
|
{
|
|
1740
|
-
"
|
|
2601
|
+
"items": {
|
|
2602
|
+
"$ref": "#/$defs/VisualReviewFinding"
|
|
2603
|
+
},
|
|
2604
|
+
"type": "array"
|
|
1741
2605
|
},
|
|
1742
2606
|
{
|
|
1743
2607
|
"type": "null"
|
|
1744
2608
|
}
|
|
1745
2609
|
],
|
|
1746
2610
|
"default": null,
|
|
1747
|
-
"title": "
|
|
2611
|
+
"title": "Findings"
|
|
1748
2612
|
},
|
|
1749
|
-
"
|
|
1750
|
-
"
|
|
1751
|
-
|
|
2613
|
+
"isTruncated": {
|
|
2614
|
+
"anyOf": [
|
|
2615
|
+
{
|
|
2616
|
+
"type": "boolean"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"type": "null"
|
|
2620
|
+
}
|
|
2621
|
+
],
|
|
2622
|
+
"default": null,
|
|
2623
|
+
"title": "Istruncated"
|
|
1752
2624
|
},
|
|
1753
|
-
"
|
|
1754
|
-
"
|
|
1755
|
-
|
|
2625
|
+
"role": {
|
|
2626
|
+
"anyOf": [
|
|
2627
|
+
{
|
|
2628
|
+
"type": "string"
|
|
2629
|
+
},
|
|
2630
|
+
{
|
|
2631
|
+
"type": "null"
|
|
2632
|
+
}
|
|
2633
|
+
],
|
|
2634
|
+
"default": null,
|
|
2635
|
+
"title": "Role"
|
|
1756
2636
|
}
|
|
1757
2637
|
},
|
|
1758
2638
|
"required": [
|
|
1759
|
-
"
|
|
1760
|
-
"
|
|
1761
|
-
"
|
|
1762
|
-
"
|
|
2639
|
+
"route",
|
|
2640
|
+
"severity",
|
|
2641
|
+
"differencePercent",
|
|
2642
|
+
"feedback",
|
|
2643
|
+
"tokens",
|
|
2644
|
+
"cost"
|
|
1763
2645
|
],
|
|
1764
|
-
"title": "
|
|
2646
|
+
"title": "RouteReview",
|
|
1765
2647
|
"type": "object"
|
|
1766
2648
|
};
|
|
1767
2649
|
export const RunLighthouseInputSchema = z.object({ "route": z.string().describe("The route to audit (default: '/').").default("/"), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree to run the audit in.").default(null) });
|
|
@@ -1893,18 +2775,25 @@ export const SearchDdgsInputJsonSchema = {
|
|
|
1893
2775
|
"title": "SearchDdgsInput",
|
|
1894
2776
|
"type": "object"
|
|
1895
2777
|
};
|
|
1896
|
-
export const SearchPRsInputSchema = z.object({ "state": z.
|
|
2778
|
+
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) });
|
|
1897
2779
|
export const SearchPRsInputJsonSchema = {
|
|
1898
2780
|
"properties": {
|
|
1899
2781
|
"state": {
|
|
1900
2782
|
"default": "open",
|
|
1901
|
-
"description": "The state of the PRs to search for
|
|
2783
|
+
"description": "The state of the PRs to search for.",
|
|
2784
|
+
"enum": [
|
|
2785
|
+
"open",
|
|
2786
|
+
"closed",
|
|
2787
|
+
"all"
|
|
2788
|
+
],
|
|
1902
2789
|
"title": "State",
|
|
1903
2790
|
"type": "string"
|
|
1904
2791
|
},
|
|
1905
2792
|
"limit": {
|
|
1906
2793
|
"default": 100,
|
|
1907
2794
|
"description": "The maximum number of PRs to return (default: 100, range: 1-100).",
|
|
2795
|
+
"maximum": 100,
|
|
2796
|
+
"minimum": 1,
|
|
1908
2797
|
"title": "Limit",
|
|
1909
2798
|
"type": "integer"
|
|
1910
2799
|
},
|
|
@@ -2067,3 +2956,48 @@ export const SearchPRsResponseJsonSchema = {
|
|
|
2067
2956
|
"title": "SearchPRsResponse",
|
|
2068
2957
|
"type": "object"
|
|
2069
2958
|
};
|
|
2959
|
+
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) });
|
|
2960
|
+
export const VisualReviewFindingJsonSchema = {
|
|
2961
|
+
"properties": {
|
|
2962
|
+
"id": {
|
|
2963
|
+
"title": "Id",
|
|
2964
|
+
"type": "string"
|
|
2965
|
+
},
|
|
2966
|
+
"route": {
|
|
2967
|
+
"title": "Route",
|
|
2968
|
+
"type": "string"
|
|
2969
|
+
},
|
|
2970
|
+
"issue": {
|
|
2971
|
+
"title": "Issue",
|
|
2972
|
+
"type": "string"
|
|
2973
|
+
},
|
|
2974
|
+
"status": {
|
|
2975
|
+
"enum": [
|
|
2976
|
+
"open",
|
|
2977
|
+
"resolved"
|
|
2978
|
+
],
|
|
2979
|
+
"title": "Status",
|
|
2980
|
+
"type": "string"
|
|
2981
|
+
},
|
|
2982
|
+
"fixSummary": {
|
|
2983
|
+
"anyOf": [
|
|
2984
|
+
{
|
|
2985
|
+
"type": "string"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"type": "null"
|
|
2989
|
+
}
|
|
2990
|
+
],
|
|
2991
|
+
"default": null,
|
|
2992
|
+
"title": "Fixsummary"
|
|
2993
|
+
}
|
|
2994
|
+
},
|
|
2995
|
+
"required": [
|
|
2996
|
+
"id",
|
|
2997
|
+
"route",
|
|
2998
|
+
"issue",
|
|
2999
|
+
"status"
|
|
3000
|
+
],
|
|
3001
|
+
"title": "VisualReviewFinding",
|
|
3002
|
+
"type": "object"
|
|
3003
|
+
};
|