claude-ide-bridge 2.4.2 → 2.4.4
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/README.md +8 -6
- package/dist/bridge.js +5 -0
- package/dist/bridge.js.map +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/config.js +33 -1
- package/dist/config.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/oauth.d.ts +47 -32
- package/dist/oauth.js +331 -275
- package/dist/oauth.js.map +1 -1
- package/dist/server.d.ts +13 -0
- package/dist/server.js +93 -54
- package/dist/server.js.map +1 -1
- package/dist/tools/getBufferContent.js +2 -1
- package/dist/tools/getBufferContent.js.map +1 -1
- package/dist/tools/getDiagnostics.js +2 -1
- package/dist/tools/getDiagnostics.js.map +1 -1
- package/dist/tools/git-utils.js.map +1 -1
- package/dist/tools/handoffNote.d.ts +1 -0
- package/dist/tools/handoffNote.js +1 -1
- package/dist/tools/handoffNote.js.map +1 -1
- package/dist/tools/lsp.js +7 -2
- package/dist/tools/lsp.js.map +1 -1
- package/dist/tools/openFile.js +3 -1
- package/dist/tools/openFile.js.map +1 -1
- package/dist/tools/openInBrowser.js +49 -0
- package/dist/tools/openInBrowser.js.map +1 -1
- package/dist/tools/searchAndReplace.js.map +1 -1
- package/dist/tools/searchWorkspace.js.map +1 -1
- package/dist/tools/terminal.js +8 -7
- package/dist/tools/terminal.js.map +1 -1
- package/package.json +3 -3
- package/dist/tools/aiComments.d.ts +0 -26
- package/dist/tools/aiComments.js +0 -196
- package/dist/tools/aiComments.js.map +0 -1
- package/dist/tools/diffDebugger.d.ts +0 -62
- package/dist/tools/diffDebugger.js +0 -245
- package/dist/tools/diffDebugger.js.map +0 -1
- package/dist/tools/flowGuardian.d.ts +0 -61
- package/dist/tools/flowGuardian.js +0 -311
- package/dist/tools/flowGuardian.js.map +0 -1
- package/dist/tools/formatFile.d.ts +0 -28
- package/dist/tools/formatFile.js +0 -110
- package/dist/tools/formatFile.js.map +0 -1
- package/dist/tools/github/review.d.ts +0 -101
- package/dist/tools/github/review.js +0 -292
- package/dist/tools/github/review.js.map +0 -1
- package/dist/tools/github.d.ts +0 -308
- package/dist/tools/github.js +0 -656
- package/dist/tools/github.js.map +0 -1
- package/dist/tools/notebook.d.ts +0 -93
- package/dist/tools/notebook.js +0 -207
- package/dist/tools/notebook.js.map +0 -1
- package/dist/tools/tasks.d.ts +0 -56
- package/dist/tools/tasks.js +0 -170
- package/dist/tools/tasks.js.map +0 -1
- package/dist/tools/workspaceSnapshots.d.ts +0 -174
- package/dist/tools/workspaceSnapshots.js +0 -474
- package/dist/tools/workspaceSnapshots.js.map +0 -1
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
import { error, execSafe, optionalArray, optionalString, requireInt, requireString, success, truncateOutput, } from "../utils.js";
|
|
2
|
-
import { GH_NOT_AUTHED, GH_NOT_FOUND, isNotAuthed, isNotFound, } from "./shared.js";
|
|
3
|
-
const MAX_DIFF_BYTES = 256 * 1024; // 256 KB
|
|
4
|
-
async function resolveRepo(workspace, repoArg, signal) {
|
|
5
|
-
if (repoArg)
|
|
6
|
-
return repoArg;
|
|
7
|
-
const result = await execSafe("gh", ["repo", "view", "--json", "nameWithOwner", "-q", ".nameWithOwner", "--"], { cwd: workspace, signal, timeout: 10_000 });
|
|
8
|
-
if (result.exitCode !== 0)
|
|
9
|
-
return null;
|
|
10
|
-
return result.stdout.trim() || null;
|
|
11
|
-
}
|
|
12
|
-
export function createGithubGetPRDiffTool(workspace) {
|
|
13
|
-
return {
|
|
14
|
-
schema: {
|
|
15
|
-
name: "githubGetPRDiff",
|
|
16
|
-
description: "Fetch the full diff and metadata for a GitHub pull request. " +
|
|
17
|
-
"Returns the PR title, description, branch info, per-file change list, and the unified diff text — " +
|
|
18
|
-
"everything needed to analyze the changes and identify bugs. " +
|
|
19
|
-
"Inline review comments must target lines present in the diff; use the diff output to identify valid line numbers. " +
|
|
20
|
-
"Diffs larger than 256 KB are truncated (truncated: true in response). " +
|
|
21
|
-
"Requires gh to be installed (https://cli.github.com/) and authenticated via 'gh auth login'.",
|
|
22
|
-
annotations: { readOnlyHint: true, openWorldHint: true },
|
|
23
|
-
inputSchema: {
|
|
24
|
-
type: "object",
|
|
25
|
-
required: ["prNumber"],
|
|
26
|
-
properties: {
|
|
27
|
-
prNumber: {
|
|
28
|
-
type: "integer",
|
|
29
|
-
description: "Pull request number",
|
|
30
|
-
},
|
|
31
|
-
repo: {
|
|
32
|
-
type: "string",
|
|
33
|
-
description: "Repository in owner/repo format. Defaults to the repository of the current workspace.",
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
additionalProperties: false,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
handler: async (args, signal) => {
|
|
40
|
-
const prNumber = requireInt(args, "prNumber", 1);
|
|
41
|
-
const repoArg = optionalString(args, "repo", 256);
|
|
42
|
-
const repoFlags = repoArg ? ["--repo", repoArg] : [];
|
|
43
|
-
// Fetch metadata and diff in parallel
|
|
44
|
-
// Note: `files` returns per-file path/additions/deletions array (may be paginated for >300 files).
|
|
45
|
-
// `changedFiles` is an integer count only.
|
|
46
|
-
const [metaResult, diffResult] = await Promise.all([
|
|
47
|
-
execSafe("gh", [
|
|
48
|
-
"pr",
|
|
49
|
-
"view",
|
|
50
|
-
String(prNumber),
|
|
51
|
-
...repoFlags,
|
|
52
|
-
"--json",
|
|
53
|
-
"number,title,body,state,baseRefName,headRefName,additions,deletions,changedFiles,files,author,createdAt,isDraft,mergeable",
|
|
54
|
-
"--",
|
|
55
|
-
], { cwd: workspace, signal, timeout: 30_000 }),
|
|
56
|
-
execSafe("gh", ["pr", "diff", String(prNumber), ...repoFlags, "--"], {
|
|
57
|
-
cwd: workspace,
|
|
58
|
-
signal,
|
|
59
|
-
timeout: 30_000,
|
|
60
|
-
}),
|
|
61
|
-
]);
|
|
62
|
-
if (metaResult.exitCode !== 0) {
|
|
63
|
-
const msg = metaResult.stderr.trim() || metaResult.stdout.trim();
|
|
64
|
-
if (isNotFound(msg))
|
|
65
|
-
return error(GH_NOT_FOUND);
|
|
66
|
-
if (isNotAuthed(msg))
|
|
67
|
-
return error(`${GH_NOT_AUTHED}\n${msg}`);
|
|
68
|
-
if (msg.includes("Could not resolve") || msg.includes("not found")) {
|
|
69
|
-
return error(`PR #${prNumber} not found. Check the PR number and repository.`);
|
|
70
|
-
}
|
|
71
|
-
return error(`gh pr view failed: ${msg}`);
|
|
72
|
-
}
|
|
73
|
-
let meta;
|
|
74
|
-
try {
|
|
75
|
-
meta = JSON.parse(metaResult.stdout.trim());
|
|
76
|
-
}
|
|
77
|
-
catch {
|
|
78
|
-
return error(`Failed to parse PR metadata: ${metaResult.stdout.trim()}`);
|
|
79
|
-
}
|
|
80
|
-
// Warn if files list is incomplete due to GitHub API pagination (>300 files)
|
|
81
|
-
const files = Array.isArray(meta.files) ? meta.files : [];
|
|
82
|
-
const changedFiles = typeof meta.changedFiles === "number" ? meta.changedFiles : 0;
|
|
83
|
-
const filesIncomplete = changedFiles > 0 && files.length < changedFiles;
|
|
84
|
-
// Diff fetch fails when the head branch was deleted after merge — treat as non-fatal
|
|
85
|
-
let diff = "";
|
|
86
|
-
let diffTruncated = false;
|
|
87
|
-
if (diffResult.exitCode === 0) {
|
|
88
|
-
const truncated = truncateOutput(diffResult.stdout, MAX_DIFF_BYTES);
|
|
89
|
-
diff = truncated.text;
|
|
90
|
-
diffTruncated = truncated.truncated;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
const diffErr = diffResult.stderr.trim();
|
|
94
|
-
if (isNotFound(diffErr))
|
|
95
|
-
return error(GH_NOT_FOUND);
|
|
96
|
-
if (isNotAuthed(diffErr))
|
|
97
|
-
return error(`${GH_NOT_AUTHED}\n${diffErr}`);
|
|
98
|
-
// Non-fatal: include placeholder so caller knows diff is unavailable
|
|
99
|
-
diff = `(diff unavailable: ${diffErr || "unknown error"})`;
|
|
100
|
-
}
|
|
101
|
-
return success({
|
|
102
|
-
...meta,
|
|
103
|
-
diff,
|
|
104
|
-
...(diffTruncated
|
|
105
|
-
? {
|
|
106
|
-
truncated: true,
|
|
107
|
-
note: "Diff truncated at 256 KB — use getGitDiff or gh pr diff for the full output.",
|
|
108
|
-
}
|
|
109
|
-
: {}),
|
|
110
|
-
...(filesIncomplete
|
|
111
|
-
? {
|
|
112
|
-
filesIncomplete: true,
|
|
113
|
-
filesNote: `Only ${files.length} of ${changedFiles} changed files returned. Use 'gh pr view ${prNumber} --json files' for the full list.`,
|
|
114
|
-
}
|
|
115
|
-
: {}),
|
|
116
|
-
});
|
|
117
|
-
},
|
|
118
|
-
timeoutMs: 30_000,
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
export function createGithubPostPRReviewTool(workspace) {
|
|
122
|
-
return {
|
|
123
|
-
schema: {
|
|
124
|
-
name: "githubPostPRReview",
|
|
125
|
-
description: "Post a code review on a GitHub pull request: an overview comment plus optional inline comments on specific lines. " +
|
|
126
|
-
"Use after analyzing the PR diff with githubGetPRDiff. " +
|
|
127
|
-
"Inline comments MUST target lines that appear in the diff — comments on lines outside the diff hunks will cause the entire review to fail. " +
|
|
128
|
-
"Use side:'RIGHT' for added/context lines (default) and side:'LEFT' for deleted lines. " +
|
|
129
|
-
"Set event to 'REQUEST_CHANGES' to request changes, or leave as 'COMMENT' for a non-blocking review. " +
|
|
130
|
-
"Approving PRs is intentionally not supported — that remains a human decision. " +
|
|
131
|
-
"Requires gh to be installed and authenticated.",
|
|
132
|
-
annotations: { destructiveHint: false, openWorldHint: true },
|
|
133
|
-
inputSchema: {
|
|
134
|
-
type: "object",
|
|
135
|
-
required: ["prNumber", "body"],
|
|
136
|
-
properties: {
|
|
137
|
-
prNumber: {
|
|
138
|
-
type: "integer",
|
|
139
|
-
description: "Pull request number",
|
|
140
|
-
},
|
|
141
|
-
body: {
|
|
142
|
-
type: "string",
|
|
143
|
-
description: "Overview review comment in Markdown. Summarize findings, severity, and any patterns noticed.",
|
|
144
|
-
},
|
|
145
|
-
comments: {
|
|
146
|
-
type: "array",
|
|
147
|
-
description: "Inline comments on specific diff lines. Only lines present in the diff can be annotated.",
|
|
148
|
-
items: {
|
|
149
|
-
type: "object",
|
|
150
|
-
required: ["path", "line", "body"],
|
|
151
|
-
properties: {
|
|
152
|
-
path: {
|
|
153
|
-
type: "string",
|
|
154
|
-
description: "File path relative to repo root (e.g. src/foo.ts)",
|
|
155
|
-
},
|
|
156
|
-
line: {
|
|
157
|
-
type: "integer",
|
|
158
|
-
description: "Line number in the file",
|
|
159
|
-
},
|
|
160
|
-
side: {
|
|
161
|
-
type: "string",
|
|
162
|
-
enum: ["LEFT", "RIGHT"],
|
|
163
|
-
description: "Diff side: RIGHT for added/context lines (default), LEFT for deleted lines.",
|
|
164
|
-
},
|
|
165
|
-
body: {
|
|
166
|
-
type: "string",
|
|
167
|
-
description: "Comment text describing the issue found on this line",
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
additionalProperties: false,
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
event: {
|
|
174
|
-
type: "string",
|
|
175
|
-
enum: ["COMMENT", "REQUEST_CHANGES"],
|
|
176
|
-
description: "Review event. COMMENT (default) leaves a non-blocking review. REQUEST_CHANGES blocks merging until resolved.",
|
|
177
|
-
},
|
|
178
|
-
repo: {
|
|
179
|
-
type: "string",
|
|
180
|
-
description: "Repository in owner/repo format. Defaults to the repository of the current workspace.",
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
additionalProperties: false,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
handler: async (args, signal) => {
|
|
187
|
-
const prNumber = requireInt(args, "prNumber", 1);
|
|
188
|
-
const body = requireString(args, "body", 65_535);
|
|
189
|
-
const comments = optionalArray(args, "comments");
|
|
190
|
-
const repoArg = optionalString(args, "repo", 256);
|
|
191
|
-
const eventArg = optionalString(args, "event", 32) ?? "COMMENT";
|
|
192
|
-
if (!["COMMENT", "REQUEST_CHANGES"].includes(eventArg)) {
|
|
193
|
-
return error(`Invalid event "${eventArg}". Must be COMMENT or REQUEST_CHANGES.`);
|
|
194
|
-
}
|
|
195
|
-
// Validate inline comments shape
|
|
196
|
-
const inlineComments = [];
|
|
197
|
-
if (comments) {
|
|
198
|
-
for (const c of comments) {
|
|
199
|
-
if (typeof c !== "object" || c === null)
|
|
200
|
-
return error("Each comment must be an object.");
|
|
201
|
-
const obj = c;
|
|
202
|
-
if (typeof obj.path !== "string" || !obj.path)
|
|
203
|
-
return error("Each comment must have a non-empty 'path' string.");
|
|
204
|
-
if (obj.path.includes("..") || obj.path.startsWith("/")) {
|
|
205
|
-
return error("Comment path must be relative to the repo root and cannot contain '..' or start with '/'.");
|
|
206
|
-
}
|
|
207
|
-
if (typeof obj.line !== "number" ||
|
|
208
|
-
!Number.isInteger(obj.line) ||
|
|
209
|
-
obj.line < 1) {
|
|
210
|
-
return error("Each comment must have a positive integer 'line'.");
|
|
211
|
-
}
|
|
212
|
-
if (typeof obj.body !== "string" || !obj.body)
|
|
213
|
-
return error("Each comment must have a non-empty 'body' string.");
|
|
214
|
-
const side = typeof obj.side === "string" && obj.side === "LEFT"
|
|
215
|
-
? "LEFT"
|
|
216
|
-
: "RIGHT";
|
|
217
|
-
inlineComments.push({
|
|
218
|
-
path: obj.path,
|
|
219
|
-
line: obj.line,
|
|
220
|
-
side,
|
|
221
|
-
body: obj.body,
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
// Resolve owner/repo
|
|
226
|
-
const repo = await resolveRepo(workspace, repoArg, signal);
|
|
227
|
-
if (!repo) {
|
|
228
|
-
return error("Could not determine repository. Pass 'repo' as owner/repo or run from inside a git repository.");
|
|
229
|
-
}
|
|
230
|
-
// Build the review payload and post via gh api using --input (stdin) to avoid arg-length limits.
|
|
231
|
-
// gh api sets Content-Type: application/json automatically when --input is used.
|
|
232
|
-
const payload = {
|
|
233
|
-
body,
|
|
234
|
-
event: eventArg,
|
|
235
|
-
comments: inlineComments.map((c) => ({
|
|
236
|
-
path: c.path,
|
|
237
|
-
line: c.line,
|
|
238
|
-
side: c.side,
|
|
239
|
-
body: c.body,
|
|
240
|
-
})),
|
|
241
|
-
};
|
|
242
|
-
const apiArgs = [
|
|
243
|
-
"api",
|
|
244
|
-
`repos/${repo}/pulls/${prNumber}/reviews`,
|
|
245
|
-
"-X",
|
|
246
|
-
"POST",
|
|
247
|
-
"--input",
|
|
248
|
-
"-",
|
|
249
|
-
"--",
|
|
250
|
-
];
|
|
251
|
-
const result = await execSafe("gh", apiArgs, {
|
|
252
|
-
cwd: workspace,
|
|
253
|
-
signal,
|
|
254
|
-
timeout: 30_000,
|
|
255
|
-
stdin: JSON.stringify(payload),
|
|
256
|
-
});
|
|
257
|
-
if (result.exitCode !== 0) {
|
|
258
|
-
const msg = result.stderr.trim() || result.stdout.trim();
|
|
259
|
-
if (isNotFound(msg))
|
|
260
|
-
return error(GH_NOT_FOUND);
|
|
261
|
-
if (isNotAuthed(msg))
|
|
262
|
-
return error(`${GH_NOT_AUTHED}\n${msg}`);
|
|
263
|
-
if (msg.includes("HTTP 429") || msg.includes("secondary rate limit")) {
|
|
264
|
-
return error(`GitHub API rate limited. Wait a few minutes and retry.\n${msg}`);
|
|
265
|
-
}
|
|
266
|
-
if (msg.includes("HTTP 403") && !isNotAuthed(msg)) {
|
|
267
|
-
return error(`GitHub API access forbidden. Check repository permissions or secondary rate limits.\n${msg}`);
|
|
268
|
-
}
|
|
269
|
-
if (msg.includes("pull_request_review_thread.line") ||
|
|
270
|
-
msg.includes("is not part of the pull request")) {
|
|
271
|
-
return error(`One or more inline comment lines are not part of the diff. Only lines that appear in the diff hunks can receive inline comments. Verify line numbers against the diff returned by githubGetPRDiff, and ensure side:'LEFT' is used for deleted lines.\n${msg}`);
|
|
272
|
-
}
|
|
273
|
-
return error(`Failed to post review: ${msg}`);
|
|
274
|
-
}
|
|
275
|
-
let reviewData = {};
|
|
276
|
-
try {
|
|
277
|
-
reviewData = JSON.parse(result.stdout.trim());
|
|
278
|
-
}
|
|
279
|
-
catch {
|
|
280
|
-
// Non-fatal — return what we know
|
|
281
|
-
}
|
|
282
|
-
return success({
|
|
283
|
-
reviewId: reviewData.id ?? null,
|
|
284
|
-
url: reviewData.html_url ?? `https://github.com/${repo}/pull/${prNumber}`,
|
|
285
|
-
event: eventArg,
|
|
286
|
-
commentsPosted: inlineComments.length,
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
|
-
timeoutMs: 30_000,
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
//# sourceMappingURL=review.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../../src/tools/github/review.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,aAAa,EACb,cAAc,EACd,UAAU,EACV,aAAa,EACb,OAAO,EACP,cAAc,GACf,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,SAAS;AAE5C,KAAK,UAAU,WAAW,CACxB,SAAiB,EACjB,OAA2B,EAC3B,MAAoB;IAEpB,IAAI,OAAO;QAAE,OAAO,OAAO,CAAC;IAC5B,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,IAAI,EACJ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,CAAC,EACzE,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAC5C,CAAC;IACF,IAAI,MAAM,CAAC,QAAQ,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACvC,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,IAAI,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,yBAAyB,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C;oBAClD,OAAO,KAAK,CACV,wFAAwF,GAAG,EAAE,CAC9F,CAAC;gBACJ,CAAC;gBACD,IACE,GAAG,CAAC,QAAQ,CAAC,iCAAiC,CAAC;oBAC/C,GAAG,CAAC,QAAQ,CAAC,iCAAiC,CAAC,EAC/C,CAAC;oBACD,OAAO,KAAK,CACV,yPAAyP,GAAG,EAAE,CAC/P,CAAC;gBACJ,CAAC;gBACD,OAAO,KAAK,CAAC,0BAA0B,GAAG,EAAE,CAAC,CAAC;YAChD,CAAC;YAED,IAAI,UAAU,GAA4B,EAAE,CAAC;YAC7C,IAAI,CAAC;gBACH,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAG3C,CAAC;YACJ,CAAC;YAAC,MAAM,CAAC;gBACP,kCAAkC;YACpC,CAAC;YAED,OAAO,OAAO,CAAC;gBACb,QAAQ,EAAE,UAAU,CAAC,EAAE,IAAI,IAAI;gBAC/B,GAAG,EACD,UAAU,CAAC,QAAQ,IAAI,sBAAsB,IAAI,SAAS,QAAQ,EAAE;gBACtE,KAAK,EAAE,QAAQ;gBACf,cAAc,EAAE,cAAc,CAAC,MAAM;aACtC,CAAC,CAAC;QACL,CAAC;QACD,SAAS,EAAE,MAAM;KAClB,CAAC;AACJ,CAAC"}
|
package/dist/tools/github.d.ts
DELETED
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
export declare function createGithubCreatePRTool(workspace: string): {
|
|
2
|
-
schema: {
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
annotations: {
|
|
6
|
-
destructiveHint: boolean;
|
|
7
|
-
};
|
|
8
|
-
inputSchema: {
|
|
9
|
-
type: "object";
|
|
10
|
-
required: string[];
|
|
11
|
-
properties: {
|
|
12
|
-
title: {
|
|
13
|
-
type: string;
|
|
14
|
-
description: string;
|
|
15
|
-
};
|
|
16
|
-
body: {
|
|
17
|
-
type: string;
|
|
18
|
-
description: string;
|
|
19
|
-
};
|
|
20
|
-
base: {
|
|
21
|
-
type: string;
|
|
22
|
-
description: string;
|
|
23
|
-
};
|
|
24
|
-
draft: {
|
|
25
|
-
type: string;
|
|
26
|
-
description: string;
|
|
27
|
-
};
|
|
28
|
-
assignee: {
|
|
29
|
-
type: string;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
additionalProperties: false;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
37
|
-
content: Array<{
|
|
38
|
-
type: string;
|
|
39
|
-
text: string;
|
|
40
|
-
}>;
|
|
41
|
-
}>;
|
|
42
|
-
};
|
|
43
|
-
export declare function createGithubListPRsTool(workspace: string): {
|
|
44
|
-
schema: {
|
|
45
|
-
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
annotations: {
|
|
48
|
-
readOnlyHint: boolean;
|
|
49
|
-
};
|
|
50
|
-
inputSchema: {
|
|
51
|
-
type: "object";
|
|
52
|
-
properties: {
|
|
53
|
-
state: {
|
|
54
|
-
type: string;
|
|
55
|
-
enum: string[];
|
|
56
|
-
description: string;
|
|
57
|
-
};
|
|
58
|
-
limit: {
|
|
59
|
-
type: string;
|
|
60
|
-
description: string;
|
|
61
|
-
};
|
|
62
|
-
author: {
|
|
63
|
-
type: string;
|
|
64
|
-
description: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
additionalProperties: false;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
71
|
-
content: Array<{
|
|
72
|
-
type: string;
|
|
73
|
-
text: string;
|
|
74
|
-
}>;
|
|
75
|
-
}>;
|
|
76
|
-
};
|
|
77
|
-
export declare function createGithubViewPRTool(workspace: string): {
|
|
78
|
-
schema: {
|
|
79
|
-
name: string;
|
|
80
|
-
description: string;
|
|
81
|
-
annotations: {
|
|
82
|
-
readOnlyHint: boolean;
|
|
83
|
-
};
|
|
84
|
-
inputSchema: {
|
|
85
|
-
type: "object";
|
|
86
|
-
properties: {
|
|
87
|
-
number: {
|
|
88
|
-
type: string;
|
|
89
|
-
description: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
additionalProperties: false;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
96
|
-
content: Array<{
|
|
97
|
-
type: string;
|
|
98
|
-
text: string;
|
|
99
|
-
}>;
|
|
100
|
-
}>;
|
|
101
|
-
};
|
|
102
|
-
export declare function createGithubListIssuesTool(workspace: string): {
|
|
103
|
-
schema: {
|
|
104
|
-
name: string;
|
|
105
|
-
description: string;
|
|
106
|
-
annotations: {
|
|
107
|
-
readOnlyHint: boolean;
|
|
108
|
-
};
|
|
109
|
-
inputSchema: {
|
|
110
|
-
type: "object";
|
|
111
|
-
properties: {
|
|
112
|
-
state: {
|
|
113
|
-
type: string;
|
|
114
|
-
enum: string[];
|
|
115
|
-
description: string;
|
|
116
|
-
};
|
|
117
|
-
limit: {
|
|
118
|
-
type: string;
|
|
119
|
-
description: string;
|
|
120
|
-
};
|
|
121
|
-
assignee: {
|
|
122
|
-
type: string;
|
|
123
|
-
description: string;
|
|
124
|
-
};
|
|
125
|
-
label: {
|
|
126
|
-
type: string;
|
|
127
|
-
description: string;
|
|
128
|
-
};
|
|
129
|
-
milestone: {
|
|
130
|
-
type: string;
|
|
131
|
-
description: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
additionalProperties: false;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
138
|
-
content: Array<{
|
|
139
|
-
type: string;
|
|
140
|
-
text: string;
|
|
141
|
-
}>;
|
|
142
|
-
}>;
|
|
143
|
-
};
|
|
144
|
-
export declare function createGithubGetIssueTool(workspace: string): {
|
|
145
|
-
schema: {
|
|
146
|
-
name: string;
|
|
147
|
-
description: string;
|
|
148
|
-
annotations: {
|
|
149
|
-
readOnlyHint: boolean;
|
|
150
|
-
};
|
|
151
|
-
inputSchema: {
|
|
152
|
-
type: "object";
|
|
153
|
-
required: string[];
|
|
154
|
-
properties: {
|
|
155
|
-
number: {
|
|
156
|
-
type: string;
|
|
157
|
-
description: string;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
additionalProperties: false;
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
164
|
-
content: Array<{
|
|
165
|
-
type: string;
|
|
166
|
-
text: string;
|
|
167
|
-
}>;
|
|
168
|
-
}>;
|
|
169
|
-
};
|
|
170
|
-
export declare function createGithubCreateIssueTool(workspace: string): {
|
|
171
|
-
schema: {
|
|
172
|
-
name: string;
|
|
173
|
-
description: string;
|
|
174
|
-
annotations: {
|
|
175
|
-
destructiveHint: boolean;
|
|
176
|
-
};
|
|
177
|
-
inputSchema: {
|
|
178
|
-
type: "object";
|
|
179
|
-
required: string[];
|
|
180
|
-
properties: {
|
|
181
|
-
title: {
|
|
182
|
-
type: string;
|
|
183
|
-
description: string;
|
|
184
|
-
};
|
|
185
|
-
body: {
|
|
186
|
-
type: string;
|
|
187
|
-
description: string;
|
|
188
|
-
};
|
|
189
|
-
assignee: {
|
|
190
|
-
type: string;
|
|
191
|
-
description: string;
|
|
192
|
-
};
|
|
193
|
-
label: {
|
|
194
|
-
type: string;
|
|
195
|
-
description: string;
|
|
196
|
-
};
|
|
197
|
-
milestone: {
|
|
198
|
-
type: string;
|
|
199
|
-
description: string;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
additionalProperties: false;
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
206
|
-
content: Array<{
|
|
207
|
-
type: string;
|
|
208
|
-
text: string;
|
|
209
|
-
}>;
|
|
210
|
-
}>;
|
|
211
|
-
};
|
|
212
|
-
export declare function createGithubCommentIssueTool(workspace: string): {
|
|
213
|
-
schema: {
|
|
214
|
-
name: string;
|
|
215
|
-
description: string;
|
|
216
|
-
annotations: {
|
|
217
|
-
destructiveHint: boolean;
|
|
218
|
-
};
|
|
219
|
-
inputSchema: {
|
|
220
|
-
type: "object";
|
|
221
|
-
required: string[];
|
|
222
|
-
properties: {
|
|
223
|
-
number: {
|
|
224
|
-
type: string;
|
|
225
|
-
description: string;
|
|
226
|
-
};
|
|
227
|
-
body: {
|
|
228
|
-
type: string;
|
|
229
|
-
description: string;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
additionalProperties: false;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
236
|
-
content: Array<{
|
|
237
|
-
type: string;
|
|
238
|
-
text: string;
|
|
239
|
-
}>;
|
|
240
|
-
}>;
|
|
241
|
-
};
|
|
242
|
-
export declare function createGithubListRunsTool(workspace: string): {
|
|
243
|
-
schema: {
|
|
244
|
-
name: string;
|
|
245
|
-
description: string;
|
|
246
|
-
annotations: {
|
|
247
|
-
readOnlyHint: boolean;
|
|
248
|
-
};
|
|
249
|
-
inputSchema: {
|
|
250
|
-
type: "object";
|
|
251
|
-
properties: {
|
|
252
|
-
branch: {
|
|
253
|
-
type: string;
|
|
254
|
-
description: string;
|
|
255
|
-
};
|
|
256
|
-
workflow: {
|
|
257
|
-
type: string;
|
|
258
|
-
description: string;
|
|
259
|
-
};
|
|
260
|
-
status: {
|
|
261
|
-
type: string;
|
|
262
|
-
description: string;
|
|
263
|
-
};
|
|
264
|
-
limit: {
|
|
265
|
-
type: string;
|
|
266
|
-
description: string;
|
|
267
|
-
};
|
|
268
|
-
};
|
|
269
|
-
additionalProperties: false;
|
|
270
|
-
};
|
|
271
|
-
};
|
|
272
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
273
|
-
content: Array<{
|
|
274
|
-
type: string;
|
|
275
|
-
text: string;
|
|
276
|
-
}>;
|
|
277
|
-
}>;
|
|
278
|
-
};
|
|
279
|
-
export declare function createGithubGetRunLogsTool(workspace: string): {
|
|
280
|
-
schema: {
|
|
281
|
-
name: string;
|
|
282
|
-
description: string;
|
|
283
|
-
annotations: {
|
|
284
|
-
readOnlyHint: boolean;
|
|
285
|
-
};
|
|
286
|
-
inputSchema: {
|
|
287
|
-
type: "object";
|
|
288
|
-
required: string[];
|
|
289
|
-
properties: {
|
|
290
|
-
runId: {
|
|
291
|
-
type: string;
|
|
292
|
-
description: string;
|
|
293
|
-
};
|
|
294
|
-
failedOnly: {
|
|
295
|
-
type: string;
|
|
296
|
-
description: string;
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
additionalProperties: false;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
handler: (args: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
303
|
-
content: Array<{
|
|
304
|
-
type: string;
|
|
305
|
-
text: string;
|
|
306
|
-
}>;
|
|
307
|
-
}>;
|
|
308
|
-
};
|