integrate-sdk 0.8.68-dev.0 → 0.8.70-dev.0
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/dist/adapters/auto-routes.js +47 -5
- package/dist/adapters/base-handler.d.ts.map +1 -1
- package/dist/adapters/index.js +47 -5
- package/dist/adapters/nextjs.js +47 -5
- package/dist/adapters/node.js +47 -5
- package/dist/adapters/svelte-kit.js +47 -5
- package/dist/adapters/tanstack-start.js +47 -5
- package/dist/index.js +47 -5
- package/dist/oauth.js +47 -5
- package/dist/server.js +47 -5
- package/dist/src/adapters/base-handler.d.ts.map +1 -1
- package/dist/src/integrations/github-client.d.ts +455 -0
- package/dist/src/integrations/github-client.d.ts.map +1 -1
- package/dist/src/integrations/github.d.ts +1 -1
- package/dist/src/integrations/github.d.ts.map +1 -1
- package/dist/src/triggers/executor.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/oauth.js
CHANGED
|
@@ -2884,7 +2884,36 @@ var init_github = __esm(() => {
|
|
|
2884
2884
|
"github_create_branch",
|
|
2885
2885
|
"github_get_user",
|
|
2886
2886
|
"github_list_commits",
|
|
2887
|
-
"github_get_commit"
|
|
2887
|
+
"github_get_commit",
|
|
2888
|
+
"github_list_issue_comments",
|
|
2889
|
+
"github_add_issue_comment",
|
|
2890
|
+
"github_update_issue_comment",
|
|
2891
|
+
"github_delete_issue_comment",
|
|
2892
|
+
"github_list_pr_files",
|
|
2893
|
+
"github_list_pr_commits",
|
|
2894
|
+
"github_list_pr_reviews",
|
|
2895
|
+
"github_create_pr_review",
|
|
2896
|
+
"github_list_pr_review_comments",
|
|
2897
|
+
"github_get_file_contents",
|
|
2898
|
+
"github_create_or_update_file",
|
|
2899
|
+
"github_delete_file",
|
|
2900
|
+
"github_list_releases",
|
|
2901
|
+
"github_get_release",
|
|
2902
|
+
"github_get_latest_release",
|
|
2903
|
+
"github_create_release",
|
|
2904
|
+
"github_list_labels",
|
|
2905
|
+
"github_create_label",
|
|
2906
|
+
"github_add_issue_labels",
|
|
2907
|
+
"github_list_collaborators",
|
|
2908
|
+
"github_fork_repo",
|
|
2909
|
+
"github_search_repos",
|
|
2910
|
+
"github_search_issues",
|
|
2911
|
+
"github_search_code",
|
|
2912
|
+
"github_list_workflows",
|
|
2913
|
+
"github_list_workflow_runs",
|
|
2914
|
+
"github_trigger_workflow",
|
|
2915
|
+
"github_list_milestones",
|
|
2916
|
+
"github_create_milestone"
|
|
2888
2917
|
];
|
|
2889
2918
|
});
|
|
2890
2919
|
|
|
@@ -10315,6 +10344,16 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10315
10344
|
stepError = err.message || "Tool execution failed";
|
|
10316
10345
|
logger31.error(`[Trigger ${trigger.id}] Step ${stepIndex} failed:`, err);
|
|
10317
10346
|
}
|
|
10347
|
+
if (stepSuccess && toolResult) {
|
|
10348
|
+
if (toolResult.isError === true) {
|
|
10349
|
+
stepSuccess = false;
|
|
10350
|
+
const errText = toolResult.content?.find((c) => c.type === "text")?.text;
|
|
10351
|
+
stepError = errText || "Tool returned an error response";
|
|
10352
|
+
} else if (toolResult.structuredContent?.success === false) {
|
|
10353
|
+
stepSuccess = false;
|
|
10354
|
+
stepError = toolResult.structuredContent?.error || "Tool returned success: false";
|
|
10355
|
+
}
|
|
10356
|
+
}
|
|
10318
10357
|
const duration = Date.now() - startTime;
|
|
10319
10358
|
const executedAt = new Date().toISOString();
|
|
10320
10359
|
steps.push({
|
|
@@ -10342,7 +10381,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10342
10381
|
updates.status = "failed";
|
|
10343
10382
|
}
|
|
10344
10383
|
await config.triggers.update(trigger.id, updates, context);
|
|
10345
|
-
return { success:
|
|
10384
|
+
return { success: steps.every((s) => s.success), steps, error: stepError };
|
|
10346
10385
|
}
|
|
10347
10386
|
const completeRequest = {
|
|
10348
10387
|
success: stepSuccess,
|
|
@@ -10393,7 +10432,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10393
10432
|
};
|
|
10394
10433
|
deliverWebhooks(completeResponse.webhooks, payload, WEBHOOK_DELIVERY_TIMEOUT_MS).catch(() => {});
|
|
10395
10434
|
}
|
|
10396
|
-
return { success:
|
|
10435
|
+
return { success: steps.every((s) => s.success), steps, error: stepError };
|
|
10397
10436
|
}
|
|
10398
10437
|
const limitError = `Trigger execution exceeded maximum of ${MAX_TRIGGER_STEPS} steps`;
|
|
10399
10438
|
logger31.error(`[Trigger ${trigger.id}] ${limitError}`);
|
|
@@ -11849,8 +11888,11 @@ class OAuthHandler {
|
|
|
11849
11888
|
const headers = this.getHeaders({
|
|
11850
11889
|
"Content-Type": "application/json"
|
|
11851
11890
|
});
|
|
11852
|
-
if (authHeader
|
|
11853
|
-
|
|
11891
|
+
if (authHeader) {
|
|
11892
|
+
const normalized = authHeader.replace(/^bearer\s+/i, "Bearer ");
|
|
11893
|
+
if (normalized.startsWith("Bearer ")) {
|
|
11894
|
+
headers["Authorization"] = normalized;
|
|
11895
|
+
}
|
|
11854
11896
|
}
|
|
11855
11897
|
if (integrationsHeader) {
|
|
11856
11898
|
headers["X-Integrations"] = integrationsHeader;
|
package/dist/server.js
CHANGED
|
@@ -3097,8 +3097,11 @@ class OAuthHandler {
|
|
|
3097
3097
|
const headers = this.getHeaders({
|
|
3098
3098
|
"Content-Type": "application/json"
|
|
3099
3099
|
});
|
|
3100
|
-
if (authHeader
|
|
3101
|
-
|
|
3100
|
+
if (authHeader) {
|
|
3101
|
+
const normalized = authHeader.replace(/^bearer\s+/i, "Bearer ");
|
|
3102
|
+
if (normalized.startsWith("Bearer ")) {
|
|
3103
|
+
headers["Authorization"] = normalized;
|
|
3104
|
+
}
|
|
3102
3105
|
}
|
|
3103
3106
|
if (integrationsHeader) {
|
|
3104
3107
|
headers["X-Integrations"] = integrationsHeader;
|
|
@@ -3463,7 +3466,36 @@ var init_github = __esm(() => {
|
|
|
3463
3466
|
"github_create_branch",
|
|
3464
3467
|
"github_get_user",
|
|
3465
3468
|
"github_list_commits",
|
|
3466
|
-
"github_get_commit"
|
|
3469
|
+
"github_get_commit",
|
|
3470
|
+
"github_list_issue_comments",
|
|
3471
|
+
"github_add_issue_comment",
|
|
3472
|
+
"github_update_issue_comment",
|
|
3473
|
+
"github_delete_issue_comment",
|
|
3474
|
+
"github_list_pr_files",
|
|
3475
|
+
"github_list_pr_commits",
|
|
3476
|
+
"github_list_pr_reviews",
|
|
3477
|
+
"github_create_pr_review",
|
|
3478
|
+
"github_list_pr_review_comments",
|
|
3479
|
+
"github_get_file_contents",
|
|
3480
|
+
"github_create_or_update_file",
|
|
3481
|
+
"github_delete_file",
|
|
3482
|
+
"github_list_releases",
|
|
3483
|
+
"github_get_release",
|
|
3484
|
+
"github_get_latest_release",
|
|
3485
|
+
"github_create_release",
|
|
3486
|
+
"github_list_labels",
|
|
3487
|
+
"github_create_label",
|
|
3488
|
+
"github_add_issue_labels",
|
|
3489
|
+
"github_list_collaborators",
|
|
3490
|
+
"github_fork_repo",
|
|
3491
|
+
"github_search_repos",
|
|
3492
|
+
"github_search_issues",
|
|
3493
|
+
"github_search_code",
|
|
3494
|
+
"github_list_workflows",
|
|
3495
|
+
"github_list_workflow_runs",
|
|
3496
|
+
"github_trigger_workflow",
|
|
3497
|
+
"github_list_milestones",
|
|
3498
|
+
"github_create_milestone"
|
|
3467
3499
|
];
|
|
3468
3500
|
});
|
|
3469
3501
|
|
|
@@ -10894,6 +10926,16 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10894
10926
|
stepError = err.message || "Tool execution failed";
|
|
10895
10927
|
logger32.error(`[Trigger ${trigger.id}] Step ${stepIndex} failed:`, err);
|
|
10896
10928
|
}
|
|
10929
|
+
if (stepSuccess && toolResult) {
|
|
10930
|
+
if (toolResult.isError === true) {
|
|
10931
|
+
stepSuccess = false;
|
|
10932
|
+
const errText = toolResult.content?.find((c) => c.type === "text")?.text;
|
|
10933
|
+
stepError = errText || "Tool returned an error response";
|
|
10934
|
+
} else if (toolResult.structuredContent?.success === false) {
|
|
10935
|
+
stepSuccess = false;
|
|
10936
|
+
stepError = toolResult.structuredContent?.error || "Tool returned success: false";
|
|
10937
|
+
}
|
|
10938
|
+
}
|
|
10897
10939
|
const duration = Date.now() - startTime;
|
|
10898
10940
|
const executedAt = new Date().toISOString();
|
|
10899
10941
|
steps.push({
|
|
@@ -10921,7 +10963,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10921
10963
|
updates.status = "failed";
|
|
10922
10964
|
}
|
|
10923
10965
|
await config.triggers.update(trigger.id, updates, context);
|
|
10924
|
-
return { success:
|
|
10966
|
+
return { success: steps.every((s) => s.success), steps, error: stepError };
|
|
10925
10967
|
}
|
|
10926
10968
|
const completeRequest = {
|
|
10927
10969
|
success: stepSuccess,
|
|
@@ -10972,7 +11014,7 @@ async function executeTrigger(trigger, config, context) {
|
|
|
10972
11014
|
};
|
|
10973
11015
|
deliverWebhooks(completeResponse.webhooks, payload, WEBHOOK_DELIVERY_TIMEOUT_MS).catch(() => {});
|
|
10974
11016
|
}
|
|
10975
|
-
return { success:
|
|
11017
|
+
return { success: steps.every((s) => s.success), steps, error: stepError };
|
|
10976
11018
|
}
|
|
10977
11019
|
const limitError = `Trigger execution exceeded maximum of ${MAX_TRIGGER_STEPS} steps`;
|
|
10978
11020
|
logger32.error(`[Trigger ${trigger.id}] ${limitError}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-handler.d.ts","sourceRoot":"","sources":["../../../src/adapters/base-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAc3D;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,uCAAuC;IACvC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QACxB,iDAAiD;QACjD,QAAQ,EAAE,MAAM,CAAC;QACjB,qDAAqD;QACrD,YAAY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;;;;;;;;;OASG;IACG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IA4BlF;;;;;;;;;;;OAWG;IACG,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,kBAAkB,CAAC;IA4D1H;;;;;;;;;;;;;;OAcG;IACG,cAAc,CAClB,OAAO,EAAE,eAAe,EACxB,UAAU,EAAE,MAAM,GAAG,IAAI,EACzB,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GACjC,OAAO,CAAC,gBAAgB,CAAC;CA0D7B"}
|
|
@@ -127,6 +127,171 @@ export interface GitHubCommit {
|
|
|
127
127
|
avatar_url: string;
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* GitHub Issue Comment
|
|
132
|
+
*/
|
|
133
|
+
export interface GitHubIssueComment {
|
|
134
|
+
id: number;
|
|
135
|
+
body: string;
|
|
136
|
+
user?: {
|
|
137
|
+
login: string;
|
|
138
|
+
avatar_url: string;
|
|
139
|
+
};
|
|
140
|
+
created_at: string;
|
|
141
|
+
updated_at: string;
|
|
142
|
+
html_url: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* GitHub PR File
|
|
146
|
+
*/
|
|
147
|
+
export interface GitHubPRFile {
|
|
148
|
+
filename: string;
|
|
149
|
+
status: "added" | "removed" | "modified" | "renamed" | "copied" | "changed" | "unchanged";
|
|
150
|
+
additions: number;
|
|
151
|
+
deletions: number;
|
|
152
|
+
changes: number;
|
|
153
|
+
blob_url: string;
|
|
154
|
+
raw_url: string;
|
|
155
|
+
patch?: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* GitHub PR Review
|
|
159
|
+
*/
|
|
160
|
+
export interface GitHubPRReview {
|
|
161
|
+
id: number;
|
|
162
|
+
user?: {
|
|
163
|
+
login: string;
|
|
164
|
+
avatar_url: string;
|
|
165
|
+
};
|
|
166
|
+
body?: string;
|
|
167
|
+
state: "APPROVED" | "CHANGES_REQUESTED" | "COMMENTED" | "DISMISSED" | "PENDING";
|
|
168
|
+
submitted_at?: string;
|
|
169
|
+
html_url: string;
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* GitHub PR Review Comment
|
|
173
|
+
*/
|
|
174
|
+
export interface GitHubPRReviewComment {
|
|
175
|
+
id: number;
|
|
176
|
+
body: string;
|
|
177
|
+
path: string;
|
|
178
|
+
line?: number;
|
|
179
|
+
user?: {
|
|
180
|
+
login: string;
|
|
181
|
+
avatar_url: string;
|
|
182
|
+
};
|
|
183
|
+
created_at: string;
|
|
184
|
+
updated_at: string;
|
|
185
|
+
html_url: string;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* GitHub File Contents
|
|
189
|
+
*/
|
|
190
|
+
export interface GitHubFileContents {
|
|
191
|
+
type: "file" | "dir" | "symlink" | "submodule";
|
|
192
|
+
name: string;
|
|
193
|
+
path: string;
|
|
194
|
+
sha: string;
|
|
195
|
+
size: number;
|
|
196
|
+
content?: string;
|
|
197
|
+
encoding?: string;
|
|
198
|
+
html_url: string;
|
|
199
|
+
download_url?: string;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* GitHub Release
|
|
203
|
+
*/
|
|
204
|
+
export interface GitHubRelease {
|
|
205
|
+
id: number;
|
|
206
|
+
tag_name: string;
|
|
207
|
+
name?: string;
|
|
208
|
+
body?: string;
|
|
209
|
+
draft: boolean;
|
|
210
|
+
prerelease: boolean;
|
|
211
|
+
created_at: string;
|
|
212
|
+
published_at?: string;
|
|
213
|
+
html_url: string;
|
|
214
|
+
author?: {
|
|
215
|
+
login: string;
|
|
216
|
+
avatar_url: string;
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* GitHub Label
|
|
221
|
+
*/
|
|
222
|
+
export interface GitHubLabel {
|
|
223
|
+
id: number;
|
|
224
|
+
name: string;
|
|
225
|
+
color: string;
|
|
226
|
+
description?: string;
|
|
227
|
+
default: boolean;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* GitHub Collaborator
|
|
231
|
+
*/
|
|
232
|
+
export interface GitHubCollaborator {
|
|
233
|
+
login: string;
|
|
234
|
+
id: number;
|
|
235
|
+
avatar_url: string;
|
|
236
|
+
html_url: string;
|
|
237
|
+
permissions?: {
|
|
238
|
+
pull: boolean;
|
|
239
|
+
push: boolean;
|
|
240
|
+
admin: boolean;
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* GitHub Search Result
|
|
245
|
+
*/
|
|
246
|
+
export interface GitHubSearchResult<T> {
|
|
247
|
+
total_count: number;
|
|
248
|
+
incomplete_results: boolean;
|
|
249
|
+
items: T[];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* GitHub Workflow
|
|
253
|
+
*/
|
|
254
|
+
export interface GitHubWorkflow {
|
|
255
|
+
id: number;
|
|
256
|
+
name: string;
|
|
257
|
+
path: string;
|
|
258
|
+
state: "active" | "deleted" | "disabled_fork" | "disabled_inactivity" | "disabled_manually";
|
|
259
|
+
created_at: string;
|
|
260
|
+
updated_at: string;
|
|
261
|
+
html_url: string;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* GitHub Workflow Run
|
|
265
|
+
*/
|
|
266
|
+
export interface GitHubWorkflowRun {
|
|
267
|
+
id: number;
|
|
268
|
+
name?: string;
|
|
269
|
+
status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
|
|
270
|
+
conclusion?: string;
|
|
271
|
+
created_at: string;
|
|
272
|
+
updated_at: string;
|
|
273
|
+
html_url: string;
|
|
274
|
+
head_branch?: string;
|
|
275
|
+
head_sha: string;
|
|
276
|
+
event: string;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* GitHub Milestone
|
|
280
|
+
*/
|
|
281
|
+
export interface GitHubMilestone {
|
|
282
|
+
id: number;
|
|
283
|
+
number: number;
|
|
284
|
+
title: string;
|
|
285
|
+
description?: string;
|
|
286
|
+
state: "open" | "closed";
|
|
287
|
+
due_on?: string;
|
|
288
|
+
created_at: string;
|
|
289
|
+
updated_at: string;
|
|
290
|
+
closed_at?: string;
|
|
291
|
+
open_issues: number;
|
|
292
|
+
closed_issues: number;
|
|
293
|
+
html_url: string;
|
|
294
|
+
}
|
|
130
295
|
/**
|
|
131
296
|
* GitHub Integration Client Interface
|
|
132
297
|
* Provides type-safe methods for all GitHub operations
|
|
@@ -316,5 +481,295 @@ export interface GitHubIntegrationClient {
|
|
|
316
481
|
repo: string;
|
|
317
482
|
ref: string;
|
|
318
483
|
}): Promise<MCPToolCallResponse>;
|
|
484
|
+
/**
|
|
485
|
+
* List comments on an issue
|
|
486
|
+
*/
|
|
487
|
+
listIssueComments(params: {
|
|
488
|
+
owner: string;
|
|
489
|
+
repo: string;
|
|
490
|
+
issue_number: number;
|
|
491
|
+
per_page?: number;
|
|
492
|
+
page?: number;
|
|
493
|
+
}): Promise<MCPToolCallResponse>;
|
|
494
|
+
/**
|
|
495
|
+
* Add a comment to an issue
|
|
496
|
+
*/
|
|
497
|
+
addIssueComment(params: {
|
|
498
|
+
owner: string;
|
|
499
|
+
repo: string;
|
|
500
|
+
issue_number: number;
|
|
501
|
+
body: string;
|
|
502
|
+
}): Promise<MCPToolCallResponse>;
|
|
503
|
+
/**
|
|
504
|
+
* Update an issue comment
|
|
505
|
+
*/
|
|
506
|
+
updateIssueComment(params: {
|
|
507
|
+
owner: string;
|
|
508
|
+
repo: string;
|
|
509
|
+
comment_id: number;
|
|
510
|
+
body: string;
|
|
511
|
+
}): Promise<MCPToolCallResponse>;
|
|
512
|
+
/**
|
|
513
|
+
* Delete an issue comment
|
|
514
|
+
*/
|
|
515
|
+
deleteIssueComment(params: {
|
|
516
|
+
owner: string;
|
|
517
|
+
repo: string;
|
|
518
|
+
comment_id: number;
|
|
519
|
+
}): Promise<MCPToolCallResponse>;
|
|
520
|
+
/**
|
|
521
|
+
* List files changed in a pull request
|
|
522
|
+
*/
|
|
523
|
+
listPRFiles(params: {
|
|
524
|
+
owner: string;
|
|
525
|
+
repo: string;
|
|
526
|
+
pull_number: number;
|
|
527
|
+
per_page?: number;
|
|
528
|
+
page?: number;
|
|
529
|
+
}): Promise<MCPToolCallResponse>;
|
|
530
|
+
/**
|
|
531
|
+
* List commits on a pull request
|
|
532
|
+
*/
|
|
533
|
+
listPRCommits(params: {
|
|
534
|
+
owner: string;
|
|
535
|
+
repo: string;
|
|
536
|
+
pull_number: number;
|
|
537
|
+
per_page?: number;
|
|
538
|
+
page?: number;
|
|
539
|
+
}): Promise<MCPToolCallResponse>;
|
|
540
|
+
/**
|
|
541
|
+
* List reviews on a pull request
|
|
542
|
+
*/
|
|
543
|
+
listPRReviews(params: {
|
|
544
|
+
owner: string;
|
|
545
|
+
repo: string;
|
|
546
|
+
pull_number: number;
|
|
547
|
+
per_page?: number;
|
|
548
|
+
page?: number;
|
|
549
|
+
}): Promise<MCPToolCallResponse>;
|
|
550
|
+
/**
|
|
551
|
+
* Create a review on a pull request
|
|
552
|
+
*/
|
|
553
|
+
createPRReview(params: {
|
|
554
|
+
owner: string;
|
|
555
|
+
repo: string;
|
|
556
|
+
pull_number: number;
|
|
557
|
+
body?: string;
|
|
558
|
+
event: "APPROVE" | "REQUEST_CHANGES" | "COMMENT";
|
|
559
|
+
comments?: Array<{
|
|
560
|
+
path: string;
|
|
561
|
+
line: number;
|
|
562
|
+
body: string;
|
|
563
|
+
}>;
|
|
564
|
+
}): Promise<MCPToolCallResponse>;
|
|
565
|
+
/**
|
|
566
|
+
* List review comments on a pull request
|
|
567
|
+
*/
|
|
568
|
+
listPRReviewComments(params: {
|
|
569
|
+
owner: string;
|
|
570
|
+
repo: string;
|
|
571
|
+
pull_number: number;
|
|
572
|
+
per_page?: number;
|
|
573
|
+
page?: number;
|
|
574
|
+
}): Promise<MCPToolCallResponse>;
|
|
575
|
+
/**
|
|
576
|
+
* Get the contents of a file or directory in a repository
|
|
577
|
+
*/
|
|
578
|
+
getFileContents(params: {
|
|
579
|
+
owner: string;
|
|
580
|
+
repo: string;
|
|
581
|
+
path: string;
|
|
582
|
+
ref?: string;
|
|
583
|
+
}): Promise<MCPToolCallResponse>;
|
|
584
|
+
/**
|
|
585
|
+
* Create or update a file in a repository
|
|
586
|
+
*/
|
|
587
|
+
createOrUpdateFile(params: {
|
|
588
|
+
owner: string;
|
|
589
|
+
repo: string;
|
|
590
|
+
path: string;
|
|
591
|
+
message: string;
|
|
592
|
+
content: string;
|
|
593
|
+
sha?: string;
|
|
594
|
+
branch?: string;
|
|
595
|
+
}): Promise<MCPToolCallResponse>;
|
|
596
|
+
/**
|
|
597
|
+
* Delete a file from a repository
|
|
598
|
+
*/
|
|
599
|
+
deleteFile(params: {
|
|
600
|
+
owner: string;
|
|
601
|
+
repo: string;
|
|
602
|
+
path: string;
|
|
603
|
+
message: string;
|
|
604
|
+
sha: string;
|
|
605
|
+
branch?: string;
|
|
606
|
+
}): Promise<MCPToolCallResponse>;
|
|
607
|
+
/**
|
|
608
|
+
* List releases in a repository
|
|
609
|
+
*/
|
|
610
|
+
listReleases(params: {
|
|
611
|
+
owner: string;
|
|
612
|
+
repo: string;
|
|
613
|
+
per_page?: number;
|
|
614
|
+
page?: number;
|
|
615
|
+
}): Promise<MCPToolCallResponse>;
|
|
616
|
+
/**
|
|
617
|
+
* Get a specific release
|
|
618
|
+
*/
|
|
619
|
+
getRelease(params: {
|
|
620
|
+
owner: string;
|
|
621
|
+
repo: string;
|
|
622
|
+
release_id: number;
|
|
623
|
+
}): Promise<MCPToolCallResponse>;
|
|
624
|
+
/**
|
|
625
|
+
* Get the latest release for a repository
|
|
626
|
+
*/
|
|
627
|
+
getLatestRelease(params: {
|
|
628
|
+
owner: string;
|
|
629
|
+
repo: string;
|
|
630
|
+
}): Promise<MCPToolCallResponse>;
|
|
631
|
+
/**
|
|
632
|
+
* Create a release
|
|
633
|
+
*/
|
|
634
|
+
createRelease(params: {
|
|
635
|
+
owner: string;
|
|
636
|
+
repo: string;
|
|
637
|
+
tag_name: string;
|
|
638
|
+
name?: string;
|
|
639
|
+
body?: string;
|
|
640
|
+
draft?: boolean;
|
|
641
|
+
prerelease?: boolean;
|
|
642
|
+
target_commitish?: string;
|
|
643
|
+
}): Promise<MCPToolCallResponse>;
|
|
644
|
+
/**
|
|
645
|
+
* List labels for a repository
|
|
646
|
+
*/
|
|
647
|
+
listLabels(params: {
|
|
648
|
+
owner: string;
|
|
649
|
+
repo: string;
|
|
650
|
+
per_page?: number;
|
|
651
|
+
page?: number;
|
|
652
|
+
}): Promise<MCPToolCallResponse>;
|
|
653
|
+
/**
|
|
654
|
+
* Create a label in a repository
|
|
655
|
+
*/
|
|
656
|
+
createLabel(params: {
|
|
657
|
+
owner: string;
|
|
658
|
+
repo: string;
|
|
659
|
+
name: string;
|
|
660
|
+
color: string;
|
|
661
|
+
description?: string;
|
|
662
|
+
}): Promise<MCPToolCallResponse>;
|
|
663
|
+
/**
|
|
664
|
+
* Add labels to an issue
|
|
665
|
+
*/
|
|
666
|
+
addIssueLabels(params: {
|
|
667
|
+
owner: string;
|
|
668
|
+
repo: string;
|
|
669
|
+
issue_number: number;
|
|
670
|
+
labels: string[];
|
|
671
|
+
}): Promise<MCPToolCallResponse>;
|
|
672
|
+
/**
|
|
673
|
+
* List collaborators for a repository
|
|
674
|
+
*/
|
|
675
|
+
listCollaborators(params: {
|
|
676
|
+
owner: string;
|
|
677
|
+
repo: string;
|
|
678
|
+
affiliation?: "outside" | "direct" | "all";
|
|
679
|
+
per_page?: number;
|
|
680
|
+
page?: number;
|
|
681
|
+
}): Promise<MCPToolCallResponse>;
|
|
682
|
+
/**
|
|
683
|
+
* Fork a repository
|
|
684
|
+
*/
|
|
685
|
+
forkRepo(params: {
|
|
686
|
+
owner: string;
|
|
687
|
+
repo: string;
|
|
688
|
+
organization?: string;
|
|
689
|
+
name?: string;
|
|
690
|
+
}): Promise<MCPToolCallResponse>;
|
|
691
|
+
/**
|
|
692
|
+
* Search repositories
|
|
693
|
+
*/
|
|
694
|
+
searchRepos(params: {
|
|
695
|
+
q: string;
|
|
696
|
+
sort?: "stars" | "forks" | "help-wanted-issues" | "updated";
|
|
697
|
+
order?: "asc" | "desc";
|
|
698
|
+
per_page?: number;
|
|
699
|
+
page?: number;
|
|
700
|
+
}): Promise<MCPToolCallResponse>;
|
|
701
|
+
/**
|
|
702
|
+
* Search issues and pull requests
|
|
703
|
+
*/
|
|
704
|
+
searchIssues(params: {
|
|
705
|
+
q: string;
|
|
706
|
+
sort?: "comments" | "reactions" | "reactions-+1" | "reactions--1" | "reactions-smile" | "reactions-thinking_face" | "reactions-heart" | "reactions-tada" | "interactions" | "created" | "updated";
|
|
707
|
+
order?: "asc" | "desc";
|
|
708
|
+
per_page?: number;
|
|
709
|
+
page?: number;
|
|
710
|
+
}): Promise<MCPToolCallResponse>;
|
|
711
|
+
/**
|
|
712
|
+
* Search code
|
|
713
|
+
*/
|
|
714
|
+
searchCode(params: {
|
|
715
|
+
q: string;
|
|
716
|
+
sort?: "indexed";
|
|
717
|
+
order?: "asc" | "desc";
|
|
718
|
+
per_page?: number;
|
|
719
|
+
page?: number;
|
|
720
|
+
}): Promise<MCPToolCallResponse>;
|
|
721
|
+
/**
|
|
722
|
+
* List workflows in a repository
|
|
723
|
+
*/
|
|
724
|
+
listWorkflows(params: {
|
|
725
|
+
owner: string;
|
|
726
|
+
repo: string;
|
|
727
|
+
per_page?: number;
|
|
728
|
+
page?: number;
|
|
729
|
+
}): Promise<MCPToolCallResponse>;
|
|
730
|
+
/**
|
|
731
|
+
* List workflow runs for a repository or workflow
|
|
732
|
+
*/
|
|
733
|
+
listWorkflowRuns(params: {
|
|
734
|
+
owner: string;
|
|
735
|
+
repo: string;
|
|
736
|
+
workflow_id?: number | string;
|
|
737
|
+
status?: "completed" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "success" | "timed_out" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
|
|
738
|
+
per_page?: number;
|
|
739
|
+
page?: number;
|
|
740
|
+
}): Promise<MCPToolCallResponse>;
|
|
741
|
+
/**
|
|
742
|
+
* Trigger a workflow dispatch event
|
|
743
|
+
*/
|
|
744
|
+
triggerWorkflow(params: {
|
|
745
|
+
owner: string;
|
|
746
|
+
repo: string;
|
|
747
|
+
workflow_id: number | string;
|
|
748
|
+
ref: string;
|
|
749
|
+
inputs?: Record<string, string>;
|
|
750
|
+
}): Promise<MCPToolCallResponse>;
|
|
751
|
+
/**
|
|
752
|
+
* List milestones for a repository
|
|
753
|
+
*/
|
|
754
|
+
listMilestones(params: {
|
|
755
|
+
owner: string;
|
|
756
|
+
repo: string;
|
|
757
|
+
state?: "open" | "closed" | "all";
|
|
758
|
+
sort?: "due_on" | "completeness";
|
|
759
|
+
direction?: "asc" | "desc";
|
|
760
|
+
per_page?: number;
|
|
761
|
+
page?: number;
|
|
762
|
+
}): Promise<MCPToolCallResponse>;
|
|
763
|
+
/**
|
|
764
|
+
* Create a milestone
|
|
765
|
+
*/
|
|
766
|
+
createMilestone(params: {
|
|
767
|
+
owner: string;
|
|
768
|
+
repo: string;
|
|
769
|
+
title: string;
|
|
770
|
+
state?: "open" | "closed";
|
|
771
|
+
description?: string;
|
|
772
|
+
due_on?: string;
|
|
773
|
+
}): Promise<MCPToolCallResponse>;
|
|
319
774
|
}
|
|
320
775
|
//# sourceMappingURL=github-client.d.ts.map
|