@arii/boomtick-mcp 0.3.3
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/.env.example +6 -0
- package/.mcp/schemas/agent.search_ddgs.json +1 -0
- package/.mcp/schemas/boomtick.health.json +1 -0
- package/.mcp/schemas/github.checkout_branch.json +1 -0
- package/.mcp/schemas/github.comment_triage_summary.json +1 -0
- package/.mcp/schemas/github.create_issue.json +1 -0
- package/.mcp/schemas/github.create_pull_request.json +1 -0
- package/.mcp/schemas/github.get_merge_conflict_files.json +1 -0
- package/.mcp/schemas/github.get_pr.json +1 -0
- package/.mcp/schemas/github.get_pr_diff.json +1 -0
- package/.mcp/schemas/github.issue_comment.json +1 -0
- package/.mcp/schemas/github.issue_update.json +1 -0
- package/.mcp/schemas/github.issue_view.json +1 -0
- package/.mcp/schemas/github.open_replacement_pr.json +1 -0
- package/.mcp/schemas/github.search_open_prs.json +1 -0
- package/.mcp/schemas/jules.cancel_session.json +1 -0
- package/.mcp/schemas/jules.create_session.json +1 -0
- package/.mcp/schemas/jules.get_messages.json +1 -0
- package/.mcp/schemas/jules.get_pr.json +1 -0
- package/.mcp/schemas/jules.get_session.json +1 -0
- package/.mcp/schemas/jules.list_sessions.json +1 -0
- package/.mcp/schemas/jules.send_message.json +1 -0
- package/.mcp/schemas/jules.trigger_feedback.json +1 -0
- package/.mcp/schemas/repo.commit_patch.json +1 -0
- package/.mcp/schemas/repo.create_branch.json +1 -0
- package/.mcp/schemas/repo.create_repair_branch.json +1 -0
- package/.mcp/schemas/repo.get_changed_files.json +1 -0
- package/.mcp/schemas/repo.get_command_schema.json +1 -0
- package/.mcp/schemas/repo.get_package_scripts.json +1 -0
- package/.mcp/schemas/repo.get_route_map.json +1 -0
- package/.mcp/schemas/repo.logs.json +1 -0
- package/.mcp/schemas/repo.read_agent_context.json +1 -0
- package/.mcp/schemas/repo.read_ci_logs.json +1 -0
- package/.mcp/schemas/repo.run_lighthouse.json +1 -0
- package/.mcp/schemas/repo.run_playwright.json +1 -0
- package/.mcp/schemas/repo.run_tests.json +1 -0
- package/CHANGELOG.md +50 -0
- package/README.md +108 -0
- package/actions/ai-review/action.yml +15 -0
- package/actions/audit/action.yml +37 -0
- package/actions/ci-validate/action.yml +9 -0
- package/actions/impact-analysis/action.yml +385 -0
- package/actions/lint-typecheck/action.yml +19 -0
- package/actions/run-project-gate/action.yml +163 -0
- package/actions/setup/action.yml +15 -0
- package/actions/setup-workspace/action.yml +179 -0
- package/actions/test-build/action.yml +71 -0
- package/actions/update-pr-comment/action.yml +101 -0
- package/dist/config.js +110 -0
- package/dist/evals/run-evals.js +38 -0
- package/dist/index.js +10 -0
- package/dist/lib/error_utils.js +8 -0
- package/dist/lib/git.js +33 -0
- package/dist/lib/result.js +21 -0
- package/dist/lib/shell.js +91 -0
- package/dist/lib/shell.test.js +10 -0
- package/dist/lib/td-cli.js +27 -0
- package/dist/lib/test-utils.js +20 -0
- package/dist/mcp/definitions.js +242 -0
- package/dist/mcp/server.js +317 -0
- package/dist/mcp/tools.js +18 -0
- package/dist/tools/contract.js +2069 -0
- package/dist/tools/ddgs.search.js +50 -0
- package/dist/tools/ddgs.search.test.js +67 -0
- package/dist/tools/ddgs_search.py +23 -0
- package/dist/tools/github.checkout_branch.js +20 -0
- package/dist/tools/github.comment_triage_summary.js +25 -0
- package/dist/tools/github.create_issue.js +28 -0
- package/dist/tools/github.create_issue.test.js +54 -0
- package/dist/tools/github.create_pull_request.js +44 -0
- package/dist/tools/github.get_merge_conflict_files.js +26 -0
- package/dist/tools/github.get_pr.js +18 -0
- package/dist/tools/github.get_pr_diff.js +24 -0
- package/dist/tools/github.issue_comment.js +24 -0
- package/dist/tools/github.issue_update.js +29 -0
- package/dist/tools/github.issue_view.js +28 -0
- package/dist/tools/github.open_replacement_pr.js +41 -0
- package/dist/tools/github.search_open_prs.js +31 -0
- package/dist/tools/github.search_open_prs.test.js +51 -0
- package/dist/tools/jules/cancel-session.js +20 -0
- package/dist/tools/jules/create-session.js +20 -0
- package/dist/tools/jules/create-session.test.js +99 -0
- package/dist/tools/jules/get-messages.js +19 -0
- package/dist/tools/jules/get-messages.test.js +45 -0
- package/dist/tools/jules/get-pr.js +14 -0
- package/dist/tools/jules/get-pr.test.js +37 -0
- package/dist/tools/jules/get-session.js +10 -0
- package/dist/tools/jules/list-sessions.js +43 -0
- package/dist/tools/jules/send-message.js +22 -0
- package/dist/tools/jules/send-message.test.js +56 -0
- package/dist/tools/jules/shared.js +26 -0
- package/dist/tools/jules/trigger-feedback.js +16 -0
- package/dist/tools/jules/trigger-feedback.test.js +42 -0
- package/dist/tools/repo.commit_patch.js +33 -0
- package/dist/tools/repo.create_branch.js +21 -0
- package/dist/tools/repo.create_branch.test.js +42 -0
- package/dist/tools/repo.create_repair_branch.js +38 -0
- package/dist/tools/repo.get_changed_files.js +21 -0
- package/dist/tools/repo.get_command_schema.js +27 -0
- package/dist/tools/repo.get_package_scripts.js +35 -0
- package/dist/tools/repo.get_package_scripts.test.js +39 -0
- package/dist/tools/repo.get_route_map.js +37 -0
- package/dist/tools/repo.logs.js +16 -0
- package/dist/tools/repo.read_agent_context.js +20 -0
- package/dist/tools/repo.read_ci_logs.js +18 -0
- package/dist/tools/repo.run_lighthouse.js +37 -0
- package/dist/tools/repo.run_playwright.js +29 -0
- package/dist/tools/repo.run_tests.js +43 -0
- package/dist/tools/types.js +1 -0
- package/docs/testing.md +73 -0
- package/package.json +45 -0
- package/scripts/create_instructions.sh +42 -0
- package/scripts/export-mcp-schema.ts +7 -0
- package/scripts/sync-contracts.ts +74 -0
- package/scripts/sync-mcp-schemas.ts +97 -0
- package/src/agents/conflict-scout.prompt.md +20 -0
- package/src/agents/pr-consolidation.prompt.md +32 -0
- package/src/agents/pr-writer.prompt.md +13 -0
- package/src/agents/repair-agent.prompt.md +18 -0
- package/src/agents/repo-context.prompt.md +20 -0
- package/src/agents/verifier-agent.prompt.md +22 -0
- package/src/config.ts +113 -0
- package/src/evals/fixtures/merge-conflict-simple/README.md +0 -0
- package/src/evals/run-evals.ts +40 -0
- package/src/index.ts +12 -0
- package/src/lib/error_utils.ts +8 -0
- package/src/lib/git.ts +41 -0
- package/src/lib/result.ts +28 -0
- package/src/lib/shell.test.ts +11 -0
- package/src/lib/shell.ts +118 -0
- package/src/lib/td-cli.ts +38 -0
- package/src/lib/test-utils.ts +23 -0
- package/src/mcp/definitions.ts +278 -0
- package/src/mcp/server.ts +359 -0
- package/src/mcp/tools.ts +20 -0
- package/src/tools/contract.ts +2245 -0
- package/src/tools/ddgs.search.test.ts +92 -0
- package/src/tools/ddgs.search.ts +58 -0
- package/src/tools/ddgs_search.py +23 -0
- package/src/tools/github.checkout_branch.ts +25 -0
- package/src/tools/github.comment_triage_summary.ts +30 -0
- package/src/tools/github.create_issue.test.ts +63 -0
- package/src/tools/github.create_issue.ts +34 -0
- package/src/tools/github.create_pull_request.ts +50 -0
- package/src/tools/github.get_merge_conflict_files.ts +31 -0
- package/src/tools/github.get_pr.ts +24 -0
- package/src/tools/github.get_pr_diff.ts +29 -0
- package/src/tools/github.issue_comment.ts +31 -0
- package/src/tools/github.issue_update.ts +31 -0
- package/src/tools/github.issue_view.ts +35 -0
- package/src/tools/github.open_replacement_pr.ts +48 -0
- package/src/tools/github.search_open_prs.test.ts +60 -0
- package/src/tools/github.search_open_prs.ts +40 -0
- package/src/tools/jules/cancel-session.ts +26 -0
- package/src/tools/jules/create-session.test.ts +114 -0
- package/src/tools/jules/create-session.ts +24 -0
- package/src/tools/jules/get-messages.test.ts +52 -0
- package/src/tools/jules/get-messages.ts +24 -0
- package/src/tools/jules/get-pr.test.ts +43 -0
- package/src/tools/jules/get-pr.ts +17 -0
- package/src/tools/jules/get-session.ts +12 -0
- package/src/tools/jules/list-sessions.ts +50 -0
- package/src/tools/jules/send-message.test.ts +66 -0
- package/src/tools/jules/send-message.ts +27 -0
- package/src/tools/jules/shared.ts +28 -0
- package/src/tools/jules/trigger-feedback.test.ts +50 -0
- package/src/tools/jules/trigger-feedback.ts +21 -0
- package/src/tools/repo.commit_patch.ts +41 -0
- package/src/tools/repo.create_branch.test.ts +55 -0
- package/src/tools/repo.create_branch.ts +29 -0
- package/src/tools/repo.create_repair_branch.ts +47 -0
- package/src/tools/repo.get_changed_files.ts +26 -0
- package/src/tools/repo.get_command_schema.ts +30 -0
- package/src/tools/repo.get_package_scripts.test.ts +51 -0
- package/src/tools/repo.get_package_scripts.ts +36 -0
- package/src/tools/repo.get_route_map.ts +41 -0
- package/src/tools/repo.logs.ts +21 -0
- package/src/tools/repo.read_agent_context.ts +22 -0
- package/src/tools/repo.read_ci_logs.ts +21 -0
- package/src/tools/repo.run_lighthouse.ts +40 -0
- package/src/tools/repo.run_playwright.ts +35 -0
- package/src/tools/repo.run_tests.ts +47 -0
- package/src/tools/types.ts +8 -0
- package/start_browsermcp.sh +14 -0
- package/start_github_mcp.sh +6 -0
- package/tsconfig.json +15 -0
- package/vitest.config.ts +9 -0
|
@@ -0,0 +1,2245 @@
|
|
|
1
|
+
// Automatically generated by sync-contracts.ts. Do not edit manually.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
export const AIFileReviewSchema = z.object({ "file": z.string().describe("The path of the file being reviewed."), "issues": z.array(z.any()).describe("List of findings in this file.").optional(), "verdict": z.string().describe("The verdict for this file (ok, needs_changes, blocking).") });
|
|
5
|
+
|
|
6
|
+
export type AIFileReview = z.infer<typeof AIFileReviewSchema>;
|
|
7
|
+
|
|
8
|
+
export const AIFileReviewJsonSchema = {
|
|
9
|
+
"$defs": {
|
|
10
|
+
"AIReviewIssue": {
|
|
11
|
+
"properties": {
|
|
12
|
+
"id": {
|
|
13
|
+
"anyOf": [
|
|
14
|
+
{
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "null"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"default": null,
|
|
22
|
+
"description": "Unique identifier for the finding.",
|
|
23
|
+
"title": "Id"
|
|
24
|
+
},
|
|
25
|
+
"line": {
|
|
26
|
+
"anyOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "integer"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "null"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"default": null,
|
|
35
|
+
"description": "Line number where the issue occurs.",
|
|
36
|
+
"title": "Line"
|
|
37
|
+
},
|
|
38
|
+
"file": {
|
|
39
|
+
"anyOf": [
|
|
40
|
+
{
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "null"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"default": null,
|
|
48
|
+
"description": "File path (if not already scoped by AIFileReview).",
|
|
49
|
+
"title": "File"
|
|
50
|
+
},
|
|
51
|
+
"severity": {
|
|
52
|
+
"description": "The severity level.",
|
|
53
|
+
"enum": [
|
|
54
|
+
"error",
|
|
55
|
+
"warn",
|
|
56
|
+
"info"
|
|
57
|
+
],
|
|
58
|
+
"title": "Severity",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"issue": {
|
|
62
|
+
"anyOf": [
|
|
63
|
+
{
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "null"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"default": null,
|
|
71
|
+
"description": "Description of the issue (alternative to 'comment').",
|
|
72
|
+
"title": "Issue"
|
|
73
|
+
},
|
|
74
|
+
"comment": {
|
|
75
|
+
"anyOf": [
|
|
76
|
+
{
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "null"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"default": null,
|
|
84
|
+
"description": "Description of the issue.",
|
|
85
|
+
"title": "Comment"
|
|
86
|
+
},
|
|
87
|
+
"status": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "null"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"default": "open",
|
|
97
|
+
"description": "Status of the finding.",
|
|
98
|
+
"title": "Status"
|
|
99
|
+
},
|
|
100
|
+
"confidence": {
|
|
101
|
+
"description": "Confidence level of the AI.",
|
|
102
|
+
"enum": [
|
|
103
|
+
"high",
|
|
104
|
+
"medium",
|
|
105
|
+
"low"
|
|
106
|
+
],
|
|
107
|
+
"title": "Confidence",
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"counterexample": {
|
|
111
|
+
"anyOf": [
|
|
112
|
+
{
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "null"
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
"default": null,
|
|
120
|
+
"description": "Example of how to fix or why it fails.",
|
|
121
|
+
"title": "Counterexample"
|
|
122
|
+
},
|
|
123
|
+
"snippet": {
|
|
124
|
+
"anyOf": [
|
|
125
|
+
{
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"type": "null"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"default": null,
|
|
133
|
+
"description": "The exact code snippet from the diff.",
|
|
134
|
+
"title": "Snippet"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"severity",
|
|
139
|
+
"confidence"
|
|
140
|
+
],
|
|
141
|
+
"title": "AIReviewIssue",
|
|
142
|
+
"type": "object"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"properties": {
|
|
146
|
+
"file": {
|
|
147
|
+
"description": "The path of the file being reviewed.",
|
|
148
|
+
"title": "File",
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"issues": {
|
|
152
|
+
"description": "List of findings in this file.",
|
|
153
|
+
"items": {
|
|
154
|
+
"$ref": "#/$defs/AIReviewIssue"
|
|
155
|
+
},
|
|
156
|
+
"title": "Issues",
|
|
157
|
+
"type": "array"
|
|
158
|
+
},
|
|
159
|
+
"verdict": {
|
|
160
|
+
"description": "The verdict for this file (ok, needs_changes, blocking).",
|
|
161
|
+
"title": "Verdict",
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"required": [
|
|
166
|
+
"file",
|
|
167
|
+
"verdict"
|
|
168
|
+
],
|
|
169
|
+
"title": "AIFileReview",
|
|
170
|
+
"type": "object"
|
|
171
|
+
} as const;
|
|
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).") });
|
|
174
|
+
|
|
175
|
+
export type AIFullReview = z.infer<typeof AIFullReviewSchema>;
|
|
176
|
+
|
|
177
|
+
export const AIFullReviewJsonSchema = {
|
|
178
|
+
"$defs": {
|
|
179
|
+
"AIFileReview": {
|
|
180
|
+
"properties": {
|
|
181
|
+
"file": {
|
|
182
|
+
"description": "The path of the file being reviewed.",
|
|
183
|
+
"title": "File",
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"issues": {
|
|
187
|
+
"description": "List of findings in this file.",
|
|
188
|
+
"items": {
|
|
189
|
+
"$ref": "#/$defs/AIReviewIssue"
|
|
190
|
+
},
|
|
191
|
+
"title": "Issues",
|
|
192
|
+
"type": "array"
|
|
193
|
+
},
|
|
194
|
+
"verdict": {
|
|
195
|
+
"description": "The verdict for this file (ok, needs_changes, blocking).",
|
|
196
|
+
"title": "Verdict",
|
|
197
|
+
"type": "string"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"required": [
|
|
201
|
+
"file",
|
|
202
|
+
"verdict"
|
|
203
|
+
],
|
|
204
|
+
"title": "AIFileReview",
|
|
205
|
+
"type": "object"
|
|
206
|
+
},
|
|
207
|
+
"AIReviewIssue": {
|
|
208
|
+
"properties": {
|
|
209
|
+
"id": {
|
|
210
|
+
"anyOf": [
|
|
211
|
+
{
|
|
212
|
+
"type": "string"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "null"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"default": null,
|
|
219
|
+
"description": "Unique identifier for the finding.",
|
|
220
|
+
"title": "Id"
|
|
221
|
+
},
|
|
222
|
+
"line": {
|
|
223
|
+
"anyOf": [
|
|
224
|
+
{
|
|
225
|
+
"type": "integer"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"type": "null"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"default": null,
|
|
232
|
+
"description": "Line number where the issue occurs.",
|
|
233
|
+
"title": "Line"
|
|
234
|
+
},
|
|
235
|
+
"file": {
|
|
236
|
+
"anyOf": [
|
|
237
|
+
{
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"type": "null"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"default": null,
|
|
245
|
+
"description": "File path (if not already scoped by AIFileReview).",
|
|
246
|
+
"title": "File"
|
|
247
|
+
},
|
|
248
|
+
"severity": {
|
|
249
|
+
"description": "The severity level.",
|
|
250
|
+
"enum": [
|
|
251
|
+
"error",
|
|
252
|
+
"warn",
|
|
253
|
+
"info"
|
|
254
|
+
],
|
|
255
|
+
"title": "Severity",
|
|
256
|
+
"type": "string"
|
|
257
|
+
},
|
|
258
|
+
"issue": {
|
|
259
|
+
"anyOf": [
|
|
260
|
+
{
|
|
261
|
+
"type": "string"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "null"
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
"default": null,
|
|
268
|
+
"description": "Description of the issue (alternative to 'comment').",
|
|
269
|
+
"title": "Issue"
|
|
270
|
+
},
|
|
271
|
+
"comment": {
|
|
272
|
+
"anyOf": [
|
|
273
|
+
{
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"type": "null"
|
|
278
|
+
}
|
|
279
|
+
],
|
|
280
|
+
"default": null,
|
|
281
|
+
"description": "Description of the issue.",
|
|
282
|
+
"title": "Comment"
|
|
283
|
+
},
|
|
284
|
+
"status": {
|
|
285
|
+
"anyOf": [
|
|
286
|
+
{
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"type": "null"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"default": "open",
|
|
294
|
+
"description": "Status of the finding.",
|
|
295
|
+
"title": "Status"
|
|
296
|
+
},
|
|
297
|
+
"confidence": {
|
|
298
|
+
"description": "Confidence level of the AI.",
|
|
299
|
+
"enum": [
|
|
300
|
+
"high",
|
|
301
|
+
"medium",
|
|
302
|
+
"low"
|
|
303
|
+
],
|
|
304
|
+
"title": "Confidence",
|
|
305
|
+
"type": "string"
|
|
306
|
+
},
|
|
307
|
+
"counterexample": {
|
|
308
|
+
"anyOf": [
|
|
309
|
+
{
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"type": "null"
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
"default": null,
|
|
317
|
+
"description": "Example of how to fix or why it fails.",
|
|
318
|
+
"title": "Counterexample"
|
|
319
|
+
},
|
|
320
|
+
"snippet": {
|
|
321
|
+
"anyOf": [
|
|
322
|
+
{
|
|
323
|
+
"type": "string"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"type": "null"
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"default": null,
|
|
330
|
+
"description": "The exact code snippet from the diff.",
|
|
331
|
+
"title": "Snippet"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
"required": [
|
|
335
|
+
"severity",
|
|
336
|
+
"confidence"
|
|
337
|
+
],
|
|
338
|
+
"title": "AIReviewIssue",
|
|
339
|
+
"type": "object"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"properties": {
|
|
343
|
+
"file_reviews": {
|
|
344
|
+
"description": "Per-file review results.",
|
|
345
|
+
"items": {
|
|
346
|
+
"$ref": "#/$defs/AIFileReview"
|
|
347
|
+
},
|
|
348
|
+
"title": "File Reviews",
|
|
349
|
+
"type": "array"
|
|
350
|
+
},
|
|
351
|
+
"reviewComment": {
|
|
352
|
+
"description": "Overall summary comment for the PR.",
|
|
353
|
+
"title": "Reviewcomment",
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
"labels": {
|
|
357
|
+
"description": "Suggested labels for the PR.",
|
|
358
|
+
"items": {
|
|
359
|
+
"type": "string"
|
|
360
|
+
},
|
|
361
|
+
"title": "Labels",
|
|
362
|
+
"type": "array"
|
|
363
|
+
},
|
|
364
|
+
"recommendation": {
|
|
365
|
+
"description": "Final recommendation (Approved, Not Approved, etc).",
|
|
366
|
+
"title": "Recommendation",
|
|
367
|
+
"type": "string"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"required": [
|
|
371
|
+
"reviewComment",
|
|
372
|
+
"recommendation"
|
|
373
|
+
],
|
|
374
|
+
"title": "AIFullReview",
|
|
375
|
+
"type": "object"
|
|
376
|
+
} as const;
|
|
377
|
+
|
|
378
|
+
export const AIReviewIssueSchema = z.object({ "id": z.union([z.string(), z.null()]).describe("Unique identifier for the finding.").default(null), "line": z.union([z.number().int(), z.null()]).describe("Line number where the issue occurs.").default(null), "file": z.union([z.string(), z.null()]).describe("File path (if not already scoped by AIFileReview).").default(null), "severity": z.enum(["error","warn","info"]).describe("The severity level."), "issue": z.union([z.string(), z.null()]).describe("Description of the issue (alternative to 'comment').").default(null), "comment": z.union([z.string(), z.null()]).describe("Description of the issue.").default(null), "status": z.union([z.string(), z.null()]).describe("Status of the finding.").default("open"), "confidence": z.enum(["high","medium","low"]).describe("Confidence level of the AI."), "counterexample": z.union([z.string(), z.null()]).describe("Example of how to fix or why it fails.").default(null), "snippet": z.union([z.string(), z.null()]).describe("The exact code snippet from the diff.").default(null) });
|
|
379
|
+
|
|
380
|
+
export type AIReviewIssue = z.infer<typeof AIReviewIssueSchema>;
|
|
381
|
+
|
|
382
|
+
export const AIReviewIssueJsonSchema = {
|
|
383
|
+
"properties": {
|
|
384
|
+
"id": {
|
|
385
|
+
"anyOf": [
|
|
386
|
+
{
|
|
387
|
+
"type": "string"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"type": "null"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
"default": null,
|
|
394
|
+
"description": "Unique identifier for the finding.",
|
|
395
|
+
"title": "Id"
|
|
396
|
+
},
|
|
397
|
+
"line": {
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"type": "integer"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "null"
|
|
404
|
+
}
|
|
405
|
+
],
|
|
406
|
+
"default": null,
|
|
407
|
+
"description": "Line number where the issue occurs.",
|
|
408
|
+
"title": "Line"
|
|
409
|
+
},
|
|
410
|
+
"file": {
|
|
411
|
+
"anyOf": [
|
|
412
|
+
{
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"type": "null"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"default": null,
|
|
420
|
+
"description": "File path (if not already scoped by AIFileReview).",
|
|
421
|
+
"title": "File"
|
|
422
|
+
},
|
|
423
|
+
"severity": {
|
|
424
|
+
"description": "The severity level.",
|
|
425
|
+
"enum": [
|
|
426
|
+
"error",
|
|
427
|
+
"warn",
|
|
428
|
+
"info"
|
|
429
|
+
],
|
|
430
|
+
"title": "Severity",
|
|
431
|
+
"type": "string"
|
|
432
|
+
},
|
|
433
|
+
"issue": {
|
|
434
|
+
"anyOf": [
|
|
435
|
+
{
|
|
436
|
+
"type": "string"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"type": "null"
|
|
440
|
+
}
|
|
441
|
+
],
|
|
442
|
+
"default": null,
|
|
443
|
+
"description": "Description of the issue (alternative to 'comment').",
|
|
444
|
+
"title": "Issue"
|
|
445
|
+
},
|
|
446
|
+
"comment": {
|
|
447
|
+
"anyOf": [
|
|
448
|
+
{
|
|
449
|
+
"type": "string"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"type": "null"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"default": null,
|
|
456
|
+
"description": "Description of the issue.",
|
|
457
|
+
"title": "Comment"
|
|
458
|
+
},
|
|
459
|
+
"status": {
|
|
460
|
+
"anyOf": [
|
|
461
|
+
{
|
|
462
|
+
"type": "string"
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"type": "null"
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"default": "open",
|
|
469
|
+
"description": "Status of the finding.",
|
|
470
|
+
"title": "Status"
|
|
471
|
+
},
|
|
472
|
+
"confidence": {
|
|
473
|
+
"description": "Confidence level of the AI.",
|
|
474
|
+
"enum": [
|
|
475
|
+
"high",
|
|
476
|
+
"medium",
|
|
477
|
+
"low"
|
|
478
|
+
],
|
|
479
|
+
"title": "Confidence",
|
|
480
|
+
"type": "string"
|
|
481
|
+
},
|
|
482
|
+
"counterexample": {
|
|
483
|
+
"anyOf": [
|
|
484
|
+
{
|
|
485
|
+
"type": "string"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "null"
|
|
489
|
+
}
|
|
490
|
+
],
|
|
491
|
+
"default": null,
|
|
492
|
+
"description": "Example of how to fix or why it fails.",
|
|
493
|
+
"title": "Counterexample"
|
|
494
|
+
},
|
|
495
|
+
"snippet": {
|
|
496
|
+
"anyOf": [
|
|
497
|
+
{
|
|
498
|
+
"type": "string"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"type": "null"
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
"default": null,
|
|
505
|
+
"description": "The exact code snippet from the diff.",
|
|
506
|
+
"title": "Snippet"
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"required": [
|
|
510
|
+
"severity",
|
|
511
|
+
"confidence"
|
|
512
|
+
],
|
|
513
|
+
"title": "AIReviewIssue",
|
|
514
|
+
"type": "object"
|
|
515
|
+
} as const;
|
|
516
|
+
|
|
517
|
+
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
|
+
|
|
519
|
+
export type AISynthesisReview = z.infer<typeof AISynthesisReviewSchema>;
|
|
520
|
+
|
|
521
|
+
export const AISynthesisReviewJsonSchema = {
|
|
522
|
+
"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"
|
|
535
|
+
},
|
|
536
|
+
"recommendation": {
|
|
537
|
+
"description": "Final recommendation.",
|
|
538
|
+
"title": "Recommendation",
|
|
539
|
+
"type": "string"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"required": [
|
|
543
|
+
"reviewComment",
|
|
544
|
+
"recommendation"
|
|
545
|
+
],
|
|
546
|
+
"title": "AISynthesisReview",
|
|
547
|
+
"type": "object"
|
|
548
|
+
} as const;
|
|
549
|
+
|
|
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) });
|
|
551
|
+
|
|
552
|
+
export type CheckoutBranchInput = z.infer<typeof CheckoutBranchInputSchema>;
|
|
553
|
+
|
|
554
|
+
export const CheckoutBranchInputJsonSchema = {
|
|
555
|
+
"properties": {
|
|
556
|
+
"branch": {
|
|
557
|
+
"description": "The name of the branch to checkout.",
|
|
558
|
+
"title": "Branch",
|
|
559
|
+
"type": "string"
|
|
560
|
+
},
|
|
561
|
+
"worktreePath": {
|
|
562
|
+
"anyOf": [
|
|
563
|
+
{
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"type": "null"
|
|
568
|
+
}
|
|
569
|
+
],
|
|
570
|
+
"default": null,
|
|
571
|
+
"description": "Optional path to the worktree to perform the checkout in.",
|
|
572
|
+
"title": "Worktreepath"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
"required": [
|
|
576
|
+
"branch"
|
|
577
|
+
],
|
|
578
|
+
"title": "CheckoutBranchInput",
|
|
579
|
+
"type": "object"
|
|
580
|
+
} as const;
|
|
581
|
+
|
|
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.") });
|
|
583
|
+
|
|
584
|
+
export type CommentTriageSummaryInput = z.infer<typeof CommentTriageSummaryInputSchema>;
|
|
585
|
+
|
|
586
|
+
export const CommentTriageSummaryInputJsonSchema = {
|
|
587
|
+
"properties": {
|
|
588
|
+
"prNumber": {
|
|
589
|
+
"description": "The number of the original PR to comment on.",
|
|
590
|
+
"title": "Prnumber",
|
|
591
|
+
"type": "integer"
|
|
592
|
+
},
|
|
593
|
+
"body": {
|
|
594
|
+
"description": "The content of the comment.",
|
|
595
|
+
"title": "Body",
|
|
596
|
+
"type": "string"
|
|
597
|
+
}
|
|
598
|
+
},
|
|
599
|
+
"required": [
|
|
600
|
+
"prNumber",
|
|
601
|
+
"body"
|
|
602
|
+
],
|
|
603
|
+
"title": "CommentTriageSummaryInput",
|
|
604
|
+
"type": "object"
|
|
605
|
+
} as const;
|
|
606
|
+
|
|
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.") });
|
|
608
|
+
|
|
609
|
+
export type CommitPatchInput = z.infer<typeof CommitPatchInputSchema>;
|
|
610
|
+
|
|
611
|
+
export const CommitPatchInputJsonSchema = {
|
|
612
|
+
"properties": {
|
|
613
|
+
"worktreePath": {
|
|
614
|
+
"description": "Path to the worktree where changes are made.",
|
|
615
|
+
"title": "Worktreepath",
|
|
616
|
+
"type": "string"
|
|
617
|
+
},
|
|
618
|
+
"message": {
|
|
619
|
+
"description": "Commit message.",
|
|
620
|
+
"title": "Message",
|
|
621
|
+
"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
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"required": [
|
|
638
|
+
"worktreePath",
|
|
639
|
+
"message",
|
|
640
|
+
"allowedFiles",
|
|
641
|
+
"writeMode"
|
|
642
|
+
],
|
|
643
|
+
"title": "CommitPatchInput",
|
|
644
|
+
"type": "object"
|
|
645
|
+
} as const;
|
|
646
|
+
|
|
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") });
|
|
648
|
+
|
|
649
|
+
export type CreateBranchInput = z.infer<typeof CreateBranchInputSchema>;
|
|
650
|
+
|
|
651
|
+
export const CreateBranchInputJsonSchema = {
|
|
652
|
+
"properties": {
|
|
653
|
+
"branchName": {
|
|
654
|
+
"description": "The name of the new branch",
|
|
655
|
+
"title": "Branchname",
|
|
656
|
+
"type": "string"
|
|
657
|
+
},
|
|
658
|
+
"baseBranch": {
|
|
659
|
+
"default": "main",
|
|
660
|
+
"description": "Branch to branch off from",
|
|
661
|
+
"title": "Basebranch",
|
|
662
|
+
"type": "string"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"required": [
|
|
666
|
+
"branchName"
|
|
667
|
+
],
|
|
668
|
+
"title": "CreateBranchInput",
|
|
669
|
+
"type": "object"
|
|
670
|
+
} as const;
|
|
671
|
+
|
|
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) });
|
|
673
|
+
|
|
674
|
+
export type CreateIssueInput = z.infer<typeof CreateIssueInputSchema>;
|
|
675
|
+
|
|
676
|
+
export const CreateIssueInputJsonSchema = {
|
|
677
|
+
"properties": {
|
|
678
|
+
"title": {
|
|
679
|
+
"minLength": 1,
|
|
680
|
+
"title": "Title",
|
|
681
|
+
"type": "string"
|
|
682
|
+
},
|
|
683
|
+
"body": {
|
|
684
|
+
"anyOf": [
|
|
685
|
+
{
|
|
686
|
+
"minLength": 1,
|
|
687
|
+
"type": "string"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"type": "null"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
"default": null,
|
|
694
|
+
"title": "Body"
|
|
695
|
+
},
|
|
696
|
+
"file": {
|
|
697
|
+
"anyOf": [
|
|
698
|
+
{
|
|
699
|
+
"minLength": 1,
|
|
700
|
+
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"type": "null"
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
"default": null,
|
|
707
|
+
"title": "File"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"required": [
|
|
711
|
+
"title"
|
|
712
|
+
],
|
|
713
|
+
"title": "CreateIssueInput",
|
|
714
|
+
"type": "object"
|
|
715
|
+
} as const;
|
|
716
|
+
|
|
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) });
|
|
718
|
+
|
|
719
|
+
export type CreateIssueResponse = z.infer<typeof CreateIssueResponseSchema>;
|
|
720
|
+
|
|
721
|
+
export const CreateIssueResponseJsonSchema = {
|
|
722
|
+
"$defs": {
|
|
723
|
+
"IssueSummary": {
|
|
724
|
+
"properties": {
|
|
725
|
+
"number": {
|
|
726
|
+
"title": "Number",
|
|
727
|
+
"type": "integer"
|
|
728
|
+
},
|
|
729
|
+
"title": {
|
|
730
|
+
"title": "Title",
|
|
731
|
+
"type": "string"
|
|
732
|
+
},
|
|
733
|
+
"html_url": {
|
|
734
|
+
"title": "Html Url",
|
|
735
|
+
"type": "string"
|
|
736
|
+
},
|
|
737
|
+
"state": {
|
|
738
|
+
"title": "State",
|
|
739
|
+
"type": "string"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"required": [
|
|
743
|
+
"number",
|
|
744
|
+
"title",
|
|
745
|
+
"html_url",
|
|
746
|
+
"state"
|
|
747
|
+
],
|
|
748
|
+
"title": "IssueSummary",
|
|
749
|
+
"type": "object"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"properties": {
|
|
753
|
+
"status": {
|
|
754
|
+
"default": "success",
|
|
755
|
+
"title": "Status",
|
|
756
|
+
"type": "string"
|
|
757
|
+
},
|
|
758
|
+
"message": {
|
|
759
|
+
"anyOf": [
|
|
760
|
+
{
|
|
761
|
+
"type": "string"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "null"
|
|
765
|
+
}
|
|
766
|
+
],
|
|
767
|
+
"default": null,
|
|
768
|
+
"title": "Message"
|
|
769
|
+
},
|
|
770
|
+
"data": {
|
|
771
|
+
"anyOf": [
|
|
772
|
+
{},
|
|
773
|
+
{
|
|
774
|
+
"type": "null"
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"default": null,
|
|
778
|
+
"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": {
|
|
996
|
+
"anyOf": [
|
|
997
|
+
{
|
|
998
|
+
"type": "string"
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
"type": "null"
|
|
1002
|
+
}
|
|
1003
|
+
],
|
|
1004
|
+
"default": null,
|
|
1005
|
+
"description": "Optional glob pattern to filter script names.",
|
|
1006
|
+
"title": "Filter"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"title": "GetPackageScriptsInput",
|
|
1010
|
+
"type": "object"
|
|
1011
|
+
} as const;
|
|
1012
|
+
|
|
1013
|
+
export const GetPrDiffInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the pull request to get the diff for.") });
|
|
1014
|
+
|
|
1015
|
+
export type GetPrDiffInput = z.infer<typeof GetPrDiffInputSchema>;
|
|
1016
|
+
|
|
1017
|
+
export const GetPrDiffInputJsonSchema = {
|
|
1018
|
+
"properties": {
|
|
1019
|
+
"prNumber": {
|
|
1020
|
+
"description": "The number of the pull request to get the diff for.",
|
|
1021
|
+
"title": "Prnumber",
|
|
1022
|
+
"type": "integer"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
"required": [
|
|
1026
|
+
"prNumber"
|
|
1027
|
+
],
|
|
1028
|
+
"title": "GetPrDiffInput",
|
|
1029
|
+
"type": "object"
|
|
1030
|
+
} as const;
|
|
1031
|
+
|
|
1032
|
+
export const GetPrInputSchema = z.object({ "prNumber": z.number().int().describe("The number of the PR to view.") });
|
|
1033
|
+
|
|
1034
|
+
export type GetPrInput = z.infer<typeof GetPrInputSchema>;
|
|
1035
|
+
|
|
1036
|
+
export const GetPrInputJsonSchema = {
|
|
1037
|
+
"properties": {
|
|
1038
|
+
"prNumber": {
|
|
1039
|
+
"description": "The number of the PR to view.",
|
|
1040
|
+
"title": "Prnumber",
|
|
1041
|
+
"type": "integer"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"required": [
|
|
1045
|
+
"prNumber"
|
|
1046
|
+
],
|
|
1047
|
+
"title": "GetPrInput",
|
|
1048
|
+
"type": "object"
|
|
1049
|
+
} as const;
|
|
1050
|
+
|
|
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) });
|
|
1052
|
+
|
|
1053
|
+
export type GetRouteMapInput = z.infer<typeof GetRouteMapInputSchema>;
|
|
1054
|
+
|
|
1055
|
+
export const GetRouteMapInputJsonSchema = {
|
|
1056
|
+
"properties": {
|
|
1057
|
+
"includeStatic": {
|
|
1058
|
+
"anyOf": [
|
|
1059
|
+
{
|
|
1060
|
+
"type": "boolean"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"type": "null"
|
|
1064
|
+
}
|
|
1065
|
+
],
|
|
1066
|
+
"default": null,
|
|
1067
|
+
"description": "Whether to include static assets in the route map.",
|
|
1068
|
+
"title": "Includestatic"
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"title": "GetRouteMapInput",
|
|
1072
|
+
"type": "object"
|
|
1073
|
+
} as const;
|
|
1074
|
+
|
|
1075
|
+
export const HealthCheckInputSchema = z.object({ "checkDeep": z.boolean().describe("Whether to perform a deep health check including external dependencies.").default(false) });
|
|
1076
|
+
|
|
1077
|
+
export type HealthCheckInput = z.infer<typeof HealthCheckInputSchema>;
|
|
1078
|
+
|
|
1079
|
+
export const HealthCheckInputJsonSchema = {
|
|
1080
|
+
"properties": {
|
|
1081
|
+
"checkDeep": {
|
|
1082
|
+
"default": false,
|
|
1083
|
+
"description": "Whether to perform a deep health check including external dependencies.",
|
|
1084
|
+
"title": "Checkdeep",
|
|
1085
|
+
"type": "boolean"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
"title": "HealthCheckInput",
|
|
1089
|
+
"type": "object"
|
|
1090
|
+
} as const;
|
|
1091
|
+
|
|
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.") });
|
|
1093
|
+
|
|
1094
|
+
export type IssueCommentInput = z.infer<typeof IssueCommentInputSchema>;
|
|
1095
|
+
|
|
1096
|
+
export const IssueCommentInputJsonSchema = {
|
|
1097
|
+
"properties": {
|
|
1098
|
+
"issueNumber": {
|
|
1099
|
+
"description": "The number of the issue to comment on.",
|
|
1100
|
+
"title": "Issuenumber",
|
|
1101
|
+
"type": "integer"
|
|
1102
|
+
},
|
|
1103
|
+
"body": {
|
|
1104
|
+
"description": "The content of the comment.",
|
|
1105
|
+
"title": "Body",
|
|
1106
|
+
"type": "string"
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
"required": [
|
|
1110
|
+
"issueNumber",
|
|
1111
|
+
"body"
|
|
1112
|
+
],
|
|
1113
|
+
"title": "IssueCommentInput",
|
|
1114
|
+
"type": "object"
|
|
1115
|
+
} as const;
|
|
1116
|
+
|
|
1117
|
+
export const IssueSummarySchema = z.object({ "number": z.number().int(), "title": z.string(), "html_url": z.string(), "state": z.string() });
|
|
1118
|
+
|
|
1119
|
+
export type IssueSummary = z.infer<typeof IssueSummarySchema>;
|
|
1120
|
+
|
|
1121
|
+
export const IssueSummaryJsonSchema = {
|
|
1122
|
+
"properties": {
|
|
1123
|
+
"number": {
|
|
1124
|
+
"title": "Number",
|
|
1125
|
+
"type": "integer"
|
|
1126
|
+
},
|
|
1127
|
+
"title": {
|
|
1128
|
+
"title": "Title",
|
|
1129
|
+
"type": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"html_url": {
|
|
1132
|
+
"title": "Html Url",
|
|
1133
|
+
"type": "string"
|
|
1134
|
+
},
|
|
1135
|
+
"state": {
|
|
1136
|
+
"title": "State",
|
|
1137
|
+
"type": "string"
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"required": [
|
|
1141
|
+
"number",
|
|
1142
|
+
"title",
|
|
1143
|
+
"html_url",
|
|
1144
|
+
"state"
|
|
1145
|
+
],
|
|
1146
|
+
"title": "IssueSummary",
|
|
1147
|
+
"type": "object"
|
|
1148
|
+
} as const;
|
|
1149
|
+
|
|
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) });
|
|
1151
|
+
|
|
1152
|
+
export type IssueUpdateInput = z.infer<typeof IssueUpdateInputSchema>;
|
|
1153
|
+
|
|
1154
|
+
export const IssueUpdateInputJsonSchema = {
|
|
1155
|
+
"properties": {
|
|
1156
|
+
"issueNumber": {
|
|
1157
|
+
"description": "The number of the issue to update.",
|
|
1158
|
+
"title": "Issuenumber",
|
|
1159
|
+
"type": "integer"
|
|
1160
|
+
},
|
|
1161
|
+
"body": {
|
|
1162
|
+
"anyOf": [
|
|
1163
|
+
{
|
|
1164
|
+
"type": "string"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"type": "null"
|
|
1168
|
+
}
|
|
1169
|
+
],
|
|
1170
|
+
"default": null,
|
|
1171
|
+
"description": "The new body content for the issue.",
|
|
1172
|
+
"title": "Body"
|
|
1173
|
+
},
|
|
1174
|
+
"file": {
|
|
1175
|
+
"anyOf": [
|
|
1176
|
+
{
|
|
1177
|
+
"type": "string"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"type": "null"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"default": null,
|
|
1184
|
+
"description": "Path to file containing new issue body.",
|
|
1185
|
+
"title": "File"
|
|
1186
|
+
},
|
|
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"
|
|
1202
|
+
},
|
|
1203
|
+
"addLabels": {
|
|
1204
|
+
"anyOf": [
|
|
1205
|
+
{
|
|
1206
|
+
"items": {
|
|
1207
|
+
"type": "string"
|
|
1208
|
+
},
|
|
1209
|
+
"type": "array"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"type": "null"
|
|
1213
|
+
}
|
|
1214
|
+
],
|
|
1215
|
+
"default": null,
|
|
1216
|
+
"description": "Comma-separated list of labels to add.",
|
|
1217
|
+
"title": "Addlabels"
|
|
1218
|
+
},
|
|
1219
|
+
"removeLabels": {
|
|
1220
|
+
"anyOf": [
|
|
1221
|
+
{
|
|
1222
|
+
"items": {
|
|
1223
|
+
"type": "string"
|
|
1224
|
+
},
|
|
1225
|
+
"type": "array"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"type": "null"
|
|
1229
|
+
}
|
|
1230
|
+
],
|
|
1231
|
+
"default": null,
|
|
1232
|
+
"description": "Comma-separated list of labels to remove.",
|
|
1233
|
+
"title": "Removelabels"
|
|
1234
|
+
},
|
|
1235
|
+
"state": {
|
|
1236
|
+
"anyOf": [
|
|
1237
|
+
{
|
|
1238
|
+
"type": "string"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"type": "null"
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
"default": null,
|
|
1245
|
+
"description": "The state to set the issue to (open or closed).",
|
|
1246
|
+
"title": "State"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
"required": [
|
|
1250
|
+
"issueNumber"
|
|
1251
|
+
],
|
|
1252
|
+
"title": "IssueUpdateInput",
|
|
1253
|
+
"type": "object"
|
|
1254
|
+
} as const;
|
|
1255
|
+
|
|
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) });
|
|
1257
|
+
|
|
1258
|
+
export type IssueUpdateResponse = z.infer<typeof IssueUpdateResponseSchema>;
|
|
1259
|
+
|
|
1260
|
+
export const IssueUpdateResponseJsonSchema = {
|
|
1261
|
+
"$defs": {
|
|
1262
|
+
"IssueSummary": {
|
|
1263
|
+
"properties": {
|
|
1264
|
+
"number": {
|
|
1265
|
+
"title": "Number",
|
|
1266
|
+
"type": "integer"
|
|
1267
|
+
},
|
|
1268
|
+
"title": {
|
|
1269
|
+
"title": "Title",
|
|
1270
|
+
"type": "string"
|
|
1271
|
+
},
|
|
1272
|
+
"html_url": {
|
|
1273
|
+
"title": "Html Url",
|
|
1274
|
+
"type": "string"
|
|
1275
|
+
},
|
|
1276
|
+
"state": {
|
|
1277
|
+
"title": "State",
|
|
1278
|
+
"type": "string"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
"required": [
|
|
1282
|
+
"number",
|
|
1283
|
+
"title",
|
|
1284
|
+
"html_url",
|
|
1285
|
+
"state"
|
|
1286
|
+
],
|
|
1287
|
+
"title": "IssueSummary",
|
|
1288
|
+
"type": "object"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"properties": {
|
|
1292
|
+
"status": {
|
|
1293
|
+
"default": "success",
|
|
1294
|
+
"title": "Status",
|
|
1295
|
+
"type": "string"
|
|
1296
|
+
},
|
|
1297
|
+
"message": {
|
|
1298
|
+
"anyOf": [
|
|
1299
|
+
{
|
|
1300
|
+
"type": "string"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"type": "null"
|
|
1304
|
+
}
|
|
1305
|
+
],
|
|
1306
|
+
"default": null,
|
|
1307
|
+
"title": "Message"
|
|
1308
|
+
},
|
|
1309
|
+
"data": {
|
|
1310
|
+
"anyOf": [
|
|
1311
|
+
{},
|
|
1312
|
+
{
|
|
1313
|
+
"type": "null"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1316
|
+
"default": null,
|
|
1317
|
+
"title": "Data"
|
|
1318
|
+
},
|
|
1319
|
+
"issue": {
|
|
1320
|
+
"anyOf": [
|
|
1321
|
+
{
|
|
1322
|
+
"$ref": "#/$defs/IssueSummary"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"type": "null"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
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"
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
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
|
+
"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"
|
|
1372
|
+
},
|
|
1373
|
+
"pageToken": {
|
|
1374
|
+
"anyOf": [
|
|
1375
|
+
{
|
|
1376
|
+
"type": "string"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"type": "null"
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
"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
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"items": {
|
|
1404
|
+
"type": "string"
|
|
1405
|
+
},
|
|
1406
|
+
"type": "array"
|
|
1407
|
+
}
|
|
1408
|
+
],
|
|
1409
|
+
"description": "The unique ID or IDs of the Jules session(s).",
|
|
1410
|
+
"title": "Sessionid"
|
|
1411
|
+
},
|
|
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"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
"required": [
|
|
1440
|
+
"sessionId"
|
|
1441
|
+
],
|
|
1442
|
+
"title": "JulesSessionIdInput",
|
|
1443
|
+
"type": "object"
|
|
1444
|
+
} as const;
|
|
1445
|
+
|
|
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.") });
|
|
1447
|
+
|
|
1448
|
+
export type OpenReplacementPrInput = z.infer<typeof OpenReplacementPrInputSchema>;
|
|
1449
|
+
|
|
1450
|
+
export const OpenReplacementPrInputJsonSchema = {
|
|
1451
|
+
"properties": {
|
|
1452
|
+
"originalPrNumber": {
|
|
1453
|
+
"description": "The number of the pull request being replaced.",
|
|
1454
|
+
"title": "Originalprnumber",
|
|
1455
|
+
"type": "integer"
|
|
1456
|
+
},
|
|
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": {
|
|
1484
|
+
"anyOf": [
|
|
1485
|
+
{
|
|
1486
|
+
"type": "string"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"type": "null"
|
|
1490
|
+
}
|
|
1491
|
+
],
|
|
1492
|
+
"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"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
"required": [
|
|
1503
|
+
"originalPrNumber",
|
|
1504
|
+
"repairBranch",
|
|
1505
|
+
"baseBranch",
|
|
1506
|
+
"title",
|
|
1507
|
+
"body",
|
|
1508
|
+
"pushMode"
|
|
1509
|
+
],
|
|
1510
|
+
"title": "OpenReplacementPrInput",
|
|
1511
|
+
"type": "object"
|
|
1512
|
+
} as const;
|
|
1513
|
+
|
|
1514
|
+
export const PRCommentSchema = z.object({ "user": z.string(), "body": z.string(), "created_at": z.string() });
|
|
1515
|
+
|
|
1516
|
+
export type PRComment = z.infer<typeof PRCommentSchema>;
|
|
1517
|
+
|
|
1518
|
+
export const PRCommentJsonSchema = {
|
|
1519
|
+
"properties": {
|
|
1520
|
+
"user": {
|
|
1521
|
+
"title": "User",
|
|
1522
|
+
"type": "string"
|
|
1523
|
+
},
|
|
1524
|
+
"body": {
|
|
1525
|
+
"title": "Body",
|
|
1526
|
+
"type": "string"
|
|
1527
|
+
},
|
|
1528
|
+
"created_at": {
|
|
1529
|
+
"title": "Created At",
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"required": [
|
|
1534
|
+
"user",
|
|
1535
|
+
"body",
|
|
1536
|
+
"created_at"
|
|
1537
|
+
],
|
|
1538
|
+
"title": "PRComment",
|
|
1539
|
+
"type": "object"
|
|
1540
|
+
} as const;
|
|
1541
|
+
|
|
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) });
|
|
1543
|
+
|
|
1544
|
+
export type PRSummary = z.infer<typeof PRSummarySchema>;
|
|
1545
|
+
|
|
1546
|
+
export const PRSummaryJsonSchema = {
|
|
1547
|
+
"properties": {
|
|
1548
|
+
"number": {
|
|
1549
|
+
"title": "Number",
|
|
1550
|
+
"type": "integer"
|
|
1551
|
+
},
|
|
1552
|
+
"title": {
|
|
1553
|
+
"title": "Title",
|
|
1554
|
+
"type": "string"
|
|
1555
|
+
},
|
|
1556
|
+
"author": {
|
|
1557
|
+
"additionalProperties": {
|
|
1558
|
+
"type": "string"
|
|
1559
|
+
},
|
|
1560
|
+
"title": "Author",
|
|
1561
|
+
"type": "object"
|
|
1562
|
+
},
|
|
1563
|
+
"headRefName": {
|
|
1564
|
+
"anyOf": [
|
|
1565
|
+
{
|
|
1566
|
+
"type": "string"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"type": "null"
|
|
1570
|
+
}
|
|
1571
|
+
],
|
|
1572
|
+
"default": null,
|
|
1573
|
+
"title": "Headrefname"
|
|
1574
|
+
},
|
|
1575
|
+
"baseRefName": {
|
|
1576
|
+
"anyOf": [
|
|
1577
|
+
{
|
|
1578
|
+
"type": "string"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"type": "null"
|
|
1582
|
+
}
|
|
1583
|
+
],
|
|
1584
|
+
"default": null,
|
|
1585
|
+
"title": "Baserefname"
|
|
1586
|
+
},
|
|
1587
|
+
"isDraft": {
|
|
1588
|
+
"default": false,
|
|
1589
|
+
"title": "Isdraft",
|
|
1590
|
+
"type": "boolean"
|
|
1591
|
+
},
|
|
1592
|
+
"mergeStateStatus": {
|
|
1593
|
+
"anyOf": [
|
|
1594
|
+
{
|
|
1595
|
+
"type": "string"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"type": "null"
|
|
1599
|
+
}
|
|
1600
|
+
],
|
|
1601
|
+
"default": null,
|
|
1602
|
+
"title": "Mergestatestatus"
|
|
1603
|
+
},
|
|
1604
|
+
"updatedAt": {
|
|
1605
|
+
"anyOf": [
|
|
1606
|
+
{
|
|
1607
|
+
"type": "string"
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"type": "null"
|
|
1611
|
+
}
|
|
1612
|
+
],
|
|
1613
|
+
"default": null,
|
|
1614
|
+
"title": "Updatedat"
|
|
1615
|
+
},
|
|
1616
|
+
"url": {
|
|
1617
|
+
"anyOf": [
|
|
1618
|
+
{
|
|
1619
|
+
"type": "string"
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
"type": "null"
|
|
1623
|
+
}
|
|
1624
|
+
],
|
|
1625
|
+
"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"
|
|
1683
|
+
}
|
|
1684
|
+
},
|
|
1685
|
+
"required": [
|
|
1686
|
+
"prNumber"
|
|
1687
|
+
],
|
|
1688
|
+
"title": "ReadPRCommentsInput",
|
|
1689
|
+
"type": "object"
|
|
1690
|
+
} as const;
|
|
1691
|
+
|
|
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() });
|
|
1693
|
+
|
|
1694
|
+
export type ReadPRCommentsResponse = z.infer<typeof ReadPRCommentsResponseSchema>;
|
|
1695
|
+
|
|
1696
|
+
export const ReadPRCommentsResponseJsonSchema = {
|
|
1697
|
+
"$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": {
|
|
1727
|
+
"properties": {
|
|
1728
|
+
"user": {
|
|
1729
|
+
"title": "User",
|
|
1730
|
+
"type": "string"
|
|
1731
|
+
},
|
|
1732
|
+
"body": {
|
|
1733
|
+
"title": "Body",
|
|
1734
|
+
"type": "string"
|
|
1735
|
+
},
|
|
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",
|
|
1753
|
+
"type": "string"
|
|
1754
|
+
},
|
|
1755
|
+
"path": {
|
|
1756
|
+
"title": "Path",
|
|
1757
|
+
"type": "string"
|
|
1758
|
+
},
|
|
1759
|
+
"line": {
|
|
1760
|
+
"anyOf": [
|
|
1761
|
+
{
|
|
1762
|
+
"type": "integer"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"type": "null"
|
|
1766
|
+
}
|
|
1767
|
+
],
|
|
1768
|
+
"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"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
"required": [
|
|
1781
|
+
"user",
|
|
1782
|
+
"path",
|
|
1783
|
+
"body",
|
|
1784
|
+
"created_at"
|
|
1785
|
+
],
|
|
1786
|
+
"title": "ReviewComment",
|
|
1787
|
+
"type": "object"
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"properties": {
|
|
1791
|
+
"status": {
|
|
1792
|
+
"default": "success",
|
|
1793
|
+
"title": "Status",
|
|
1794
|
+
"type": "string"
|
|
1795
|
+
},
|
|
1796
|
+
"message": {
|
|
1797
|
+
"anyOf": [
|
|
1798
|
+
{
|
|
1799
|
+
"type": "string"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"type": "null"
|
|
1803
|
+
}
|
|
1804
|
+
],
|
|
1805
|
+
"default": null,
|
|
1806
|
+
"title": "Message"
|
|
1807
|
+
},
|
|
1808
|
+
"data": {
|
|
1809
|
+
"anyOf": [
|
|
1810
|
+
{},
|
|
1811
|
+
{
|
|
1812
|
+
"type": "null"
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"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"
|
|
1827
|
+
},
|
|
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"
|
|
1853
|
+
},
|
|
1854
|
+
"grep": {
|
|
1855
|
+
"anyOf": [
|
|
1856
|
+
{
|
|
1857
|
+
"type": "string"
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"type": "null"
|
|
1861
|
+
}
|
|
1862
|
+
],
|
|
1863
|
+
"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"
|
|
1884
|
+
},
|
|
1885
|
+
"path": {
|
|
1886
|
+
"title": "Path",
|
|
1887
|
+
"type": "string"
|
|
1888
|
+
},
|
|
1889
|
+
"line": {
|
|
1890
|
+
"anyOf": [
|
|
1891
|
+
{
|
|
1892
|
+
"type": "integer"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"type": "null"
|
|
1896
|
+
}
|
|
1897
|
+
],
|
|
1898
|
+
"default": null,
|
|
1899
|
+
"title": "Line"
|
|
1900
|
+
},
|
|
1901
|
+
"body": {
|
|
1902
|
+
"title": "Body",
|
|
1903
|
+
"type": "string"
|
|
1904
|
+
},
|
|
1905
|
+
"created_at": {
|
|
1906
|
+
"title": "Created At",
|
|
1907
|
+
"type": "string"
|
|
1908
|
+
}
|
|
1909
|
+
},
|
|
1910
|
+
"required": [
|
|
1911
|
+
"user",
|
|
1912
|
+
"path",
|
|
1913
|
+
"body",
|
|
1914
|
+
"created_at"
|
|
1915
|
+
],
|
|
1916
|
+
"title": "ReviewComment",
|
|
1917
|
+
"type": "object"
|
|
1918
|
+
} as const;
|
|
1919
|
+
|
|
1920
|
+
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) });
|
|
1921
|
+
|
|
1922
|
+
export type RunLighthouseInput = z.infer<typeof RunLighthouseInputSchema>;
|
|
1923
|
+
|
|
1924
|
+
export const RunLighthouseInputJsonSchema = {
|
|
1925
|
+
"properties": {
|
|
1926
|
+
"route": {
|
|
1927
|
+
"default": "/",
|
|
1928
|
+
"description": "The route to audit (default: '/').",
|
|
1929
|
+
"title": "Route",
|
|
1930
|
+
"type": "string"
|
|
1931
|
+
},
|
|
1932
|
+
"worktreePath": {
|
|
1933
|
+
"anyOf": [
|
|
1934
|
+
{
|
|
1935
|
+
"type": "string"
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"type": "null"
|
|
1939
|
+
}
|
|
1940
|
+
],
|
|
1941
|
+
"default": null,
|
|
1942
|
+
"description": "Optional path to the worktree to run the audit in.",
|
|
1943
|
+
"title": "Worktreepath"
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
"title": "RunLighthouseInput",
|
|
1947
|
+
"type": "object"
|
|
1948
|
+
} as const;
|
|
1949
|
+
|
|
1950
|
+
export const RunPlaywrightInputSchema = z.object({ "grep": z.union([z.string(), z.null()]).describe("Optional pattern to filter tests by name.").default(null), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree to run tests in.").default(null) });
|
|
1951
|
+
|
|
1952
|
+
export type RunPlaywrightInput = z.infer<typeof RunPlaywrightInputSchema>;
|
|
1953
|
+
|
|
1954
|
+
export const RunPlaywrightInputJsonSchema = {
|
|
1955
|
+
"properties": {
|
|
1956
|
+
"grep": {
|
|
1957
|
+
"anyOf": [
|
|
1958
|
+
{
|
|
1959
|
+
"type": "string"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"type": "null"
|
|
1963
|
+
}
|
|
1964
|
+
],
|
|
1965
|
+
"default": null,
|
|
1966
|
+
"description": "Optional pattern to filter tests by name.",
|
|
1967
|
+
"title": "Grep"
|
|
1968
|
+
},
|
|
1969
|
+
"worktreePath": {
|
|
1970
|
+
"anyOf": [
|
|
1971
|
+
{
|
|
1972
|
+
"type": "string"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"type": "null"
|
|
1976
|
+
}
|
|
1977
|
+
],
|
|
1978
|
+
"default": null,
|
|
1979
|
+
"description": "Optional path to the worktree to run tests in.",
|
|
1980
|
+
"title": "Worktreepath"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
"title": "RunPlaywrightInput",
|
|
1984
|
+
"type": "object"
|
|
1985
|
+
} as const;
|
|
1986
|
+
|
|
1987
|
+
export const RunTestsInputSchema = z.object({ "commands": z.union([z.array(z.string()), z.null()]).describe("Optional list of commands to run (default includes install, lint, test, build).").default(null), "timeoutSeconds": z.number().int().describe("Maximum time in seconds to wait for tests (default: 300).").default(300), "worktreePath": z.union([z.string(), z.null()]).describe("Optional path to the worktree to run tests in.").default(null) });
|
|
1988
|
+
|
|
1989
|
+
export type RunTestsInput = z.infer<typeof RunTestsInputSchema>;
|
|
1990
|
+
|
|
1991
|
+
export const RunTestsInputJsonSchema = {
|
|
1992
|
+
"properties": {
|
|
1993
|
+
"commands": {
|
|
1994
|
+
"anyOf": [
|
|
1995
|
+
{
|
|
1996
|
+
"items": {
|
|
1997
|
+
"type": "string"
|
|
1998
|
+
},
|
|
1999
|
+
"type": "array"
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
"type": "null"
|
|
2003
|
+
}
|
|
2004
|
+
],
|
|
2005
|
+
"default": null,
|
|
2006
|
+
"description": "Optional list of commands to run (default includes install, lint, test, build).",
|
|
2007
|
+
"title": "Commands"
|
|
2008
|
+
},
|
|
2009
|
+
"timeoutSeconds": {
|
|
2010
|
+
"default": 300,
|
|
2011
|
+
"description": "Maximum time in seconds to wait for tests (default: 300).",
|
|
2012
|
+
"title": "Timeoutseconds",
|
|
2013
|
+
"type": "integer"
|
|
2014
|
+
},
|
|
2015
|
+
"worktreePath": {
|
|
2016
|
+
"anyOf": [
|
|
2017
|
+
{
|
|
2018
|
+
"type": "string"
|
|
2019
|
+
},
|
|
2020
|
+
{
|
|
2021
|
+
"type": "null"
|
|
2022
|
+
}
|
|
2023
|
+
],
|
|
2024
|
+
"default": null,
|
|
2025
|
+
"description": "Optional path to the worktree to run tests in.",
|
|
2026
|
+
"title": "Worktreepath"
|
|
2027
|
+
}
|
|
2028
|
+
},
|
|
2029
|
+
"title": "RunTestsInput",
|
|
2030
|
+
"type": "object"
|
|
2031
|
+
} as const;
|
|
2032
|
+
|
|
2033
|
+
export const SearchDdgsInputSchema = z.object({ "query": z.string().describe("The search query."), "maxResults": z.union([z.number().int(), z.null()]).describe("Maximum number of results to return.").default(null) });
|
|
2034
|
+
|
|
2035
|
+
export type SearchDdgsInput = z.infer<typeof SearchDdgsInputSchema>;
|
|
2036
|
+
|
|
2037
|
+
export const SearchDdgsInputJsonSchema = {
|
|
2038
|
+
"properties": {
|
|
2039
|
+
"query": {
|
|
2040
|
+
"description": "The search query.",
|
|
2041
|
+
"title": "Query",
|
|
2042
|
+
"type": "string"
|
|
2043
|
+
},
|
|
2044
|
+
"maxResults": {
|
|
2045
|
+
"anyOf": [
|
|
2046
|
+
{
|
|
2047
|
+
"type": "integer"
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"type": "null"
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
"default": null,
|
|
2054
|
+
"description": "Maximum number of results to return.",
|
|
2055
|
+
"title": "Maxresults"
|
|
2056
|
+
}
|
|
2057
|
+
},
|
|
2058
|
+
"required": [
|
|
2059
|
+
"query"
|
|
2060
|
+
],
|
|
2061
|
+
"title": "SearchDdgsInput",
|
|
2062
|
+
"type": "object"
|
|
2063
|
+
} as const;
|
|
2064
|
+
|
|
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) });
|
|
2066
|
+
|
|
2067
|
+
export type SearchPRsInput = z.infer<typeof SearchPRsInputSchema>;
|
|
2068
|
+
|
|
2069
|
+
export const SearchPRsInputJsonSchema = {
|
|
2070
|
+
"properties": {
|
|
2071
|
+
"state": {
|
|
2072
|
+
"default": "open",
|
|
2073
|
+
"description": "The state of the PRs to search for (open, closed, all).",
|
|
2074
|
+
"title": "State",
|
|
2075
|
+
"type": "string"
|
|
2076
|
+
},
|
|
2077
|
+
"limit": {
|
|
2078
|
+
"default": 100,
|
|
2079
|
+
"description": "The maximum number of PRs to return (default: 100, range: 1-100).",
|
|
2080
|
+
"title": "Limit",
|
|
2081
|
+
"type": "integer"
|
|
2082
|
+
},
|
|
2083
|
+
"includeDrafts": {
|
|
2084
|
+
"default": true,
|
|
2085
|
+
"description": "Whether to include draft PRs in the results.",
|
|
2086
|
+
"title": "Includedrafts",
|
|
2087
|
+
"type": "boolean"
|
|
2088
|
+
},
|
|
2089
|
+
"labels": {
|
|
2090
|
+
"anyOf": [
|
|
2091
|
+
{
|
|
2092
|
+
"items": {
|
|
2093
|
+
"type": "string"
|
|
2094
|
+
},
|
|
2095
|
+
"type": "array"
|
|
2096
|
+
},
|
|
2097
|
+
{
|
|
2098
|
+
"type": "null"
|
|
2099
|
+
}
|
|
2100
|
+
],
|
|
2101
|
+
"default": null,
|
|
2102
|
+
"description": "Filter PRs by labels.",
|
|
2103
|
+
"title": "Labels"
|
|
2104
|
+
}
|
|
2105
|
+
},
|
|
2106
|
+
"title": "SearchPRsInput",
|
|
2107
|
+
"type": "object"
|
|
2108
|
+
} as const;
|
|
2109
|
+
|
|
2110
|
+
export const SearchPRsResponseSchema = 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), "prs": z.array(z.any()).optional() });
|
|
2111
|
+
|
|
2112
|
+
export type SearchPRsResponse = z.infer<typeof SearchPRsResponseSchema>;
|
|
2113
|
+
|
|
2114
|
+
export const SearchPRsResponseJsonSchema = {
|
|
2115
|
+
"$defs": {
|
|
2116
|
+
"PRSummary": {
|
|
2117
|
+
"properties": {
|
|
2118
|
+
"number": {
|
|
2119
|
+
"title": "Number",
|
|
2120
|
+
"type": "integer"
|
|
2121
|
+
},
|
|
2122
|
+
"title": {
|
|
2123
|
+
"title": "Title",
|
|
2124
|
+
"type": "string"
|
|
2125
|
+
},
|
|
2126
|
+
"author": {
|
|
2127
|
+
"additionalProperties": {
|
|
2128
|
+
"type": "string"
|
|
2129
|
+
},
|
|
2130
|
+
"title": "Author",
|
|
2131
|
+
"type": "object"
|
|
2132
|
+
},
|
|
2133
|
+
"headRefName": {
|
|
2134
|
+
"anyOf": [
|
|
2135
|
+
{
|
|
2136
|
+
"type": "string"
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
"type": "null"
|
|
2140
|
+
}
|
|
2141
|
+
],
|
|
2142
|
+
"default": null,
|
|
2143
|
+
"title": "Headrefname"
|
|
2144
|
+
},
|
|
2145
|
+
"baseRefName": {
|
|
2146
|
+
"anyOf": [
|
|
2147
|
+
{
|
|
2148
|
+
"type": "string"
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"type": "null"
|
|
2152
|
+
}
|
|
2153
|
+
],
|
|
2154
|
+
"default": null,
|
|
2155
|
+
"title": "Baserefname"
|
|
2156
|
+
},
|
|
2157
|
+
"isDraft": {
|
|
2158
|
+
"default": false,
|
|
2159
|
+
"title": "Isdraft",
|
|
2160
|
+
"type": "boolean"
|
|
2161
|
+
},
|
|
2162
|
+
"mergeStateStatus": {
|
|
2163
|
+
"anyOf": [
|
|
2164
|
+
{
|
|
2165
|
+
"type": "string"
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"type": "null"
|
|
2169
|
+
}
|
|
2170
|
+
],
|
|
2171
|
+
"default": null,
|
|
2172
|
+
"title": "Mergestatestatus"
|
|
2173
|
+
},
|
|
2174
|
+
"updatedAt": {
|
|
2175
|
+
"anyOf": [
|
|
2176
|
+
{
|
|
2177
|
+
"type": "string"
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"type": "null"
|
|
2181
|
+
}
|
|
2182
|
+
],
|
|
2183
|
+
"default": null,
|
|
2184
|
+
"title": "Updatedat"
|
|
2185
|
+
},
|
|
2186
|
+
"url": {
|
|
2187
|
+
"anyOf": [
|
|
2188
|
+
{
|
|
2189
|
+
"type": "string"
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"type": "null"
|
|
2193
|
+
}
|
|
2194
|
+
],
|
|
2195
|
+
"default": null,
|
|
2196
|
+
"title": "Url"
|
|
2197
|
+
}
|
|
2198
|
+
},
|
|
2199
|
+
"required": [
|
|
2200
|
+
"number",
|
|
2201
|
+
"title"
|
|
2202
|
+
],
|
|
2203
|
+
"title": "PRSummary",
|
|
2204
|
+
"type": "object"
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"properties": {
|
|
2208
|
+
"status": {
|
|
2209
|
+
"default": "success",
|
|
2210
|
+
"title": "Status",
|
|
2211
|
+
"type": "string"
|
|
2212
|
+
},
|
|
2213
|
+
"message": {
|
|
2214
|
+
"anyOf": [
|
|
2215
|
+
{
|
|
2216
|
+
"type": "string"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"type": "null"
|
|
2220
|
+
}
|
|
2221
|
+
],
|
|
2222
|
+
"default": null,
|
|
2223
|
+
"title": "Message"
|
|
2224
|
+
},
|
|
2225
|
+
"data": {
|
|
2226
|
+
"anyOf": [
|
|
2227
|
+
{},
|
|
2228
|
+
{
|
|
2229
|
+
"type": "null"
|
|
2230
|
+
}
|
|
2231
|
+
],
|
|
2232
|
+
"default": null,
|
|
2233
|
+
"title": "Data"
|
|
2234
|
+
},
|
|
2235
|
+
"prs": {
|
|
2236
|
+
"items": {
|
|
2237
|
+
"$ref": "#/$defs/PRSummary"
|
|
2238
|
+
},
|
|
2239
|
+
"title": "Prs",
|
|
2240
|
+
"type": "array"
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
"title": "SearchPRsResponse",
|
|
2244
|
+
"type": "object"
|
|
2245
|
+
} as const;
|