@elizaos/plugin-github 1.2.0 → 1.2.9
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/index.d.ts +561 -7
- package/dist/index.js +1455 -5009
- package/dist/index.js.map +1 -41
- package/package.json +24 -16
- package/tsup.config.ts +32 -0
- package/dist/__tests__/e2e/intelligent-analysis.test.d.ts +0 -15
- package/dist/actions/activity.d.ts +0 -4
- package/dist/actions/autoCoder.d.ts +0 -3
- package/dist/actions/branches.d.ts +0 -4
- package/dist/actions/issues.d.ts +0 -5
- package/dist/actions/pullRequests.d.ts +0 -5
- package/dist/actions/repository.d.ts +0 -5
- package/dist/actions/search.d.ts +0 -2
- package/dist/actions/stats.d.ts +0 -3
- package/dist/actions/users.d.ts +0 -4
- package/dist/actions/webhooks.d.ts +0 -5
- package/dist/providers/github.d.ts +0 -6
- package/dist/services/github.d.ts +0 -342
- package/dist/test-exports.d.ts +0 -4
- package/dist/tests.d.ts +0 -20
- package/dist/types.d.ts +0 -290
package/dist/types.d.ts
DELETED
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const githubConfigSchema: z.ZodObject<{
|
|
3
|
-
GITHUB_TOKEN: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
-
GITHUB_OWNER: z.ZodOptional<z.ZodString>;
|
|
5
|
-
GITHUB_WEBHOOK_SECRET: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
GITHUB_TOKEN?: string;
|
|
8
|
-
GITHUB_OWNER?: string;
|
|
9
|
-
GITHUB_WEBHOOK_SECRET?: string;
|
|
10
|
-
}, {
|
|
11
|
-
GITHUB_TOKEN?: string;
|
|
12
|
-
GITHUB_OWNER?: string;
|
|
13
|
-
GITHUB_WEBHOOK_SECRET?: string;
|
|
14
|
-
}>;
|
|
15
|
-
export declare const githubConfigSchemaFlexible: z.ZodObject<{
|
|
16
|
-
GITHUB_TOKEN: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodUndefined]>>>, string, string>;
|
|
17
|
-
GITHUB_OWNER: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodUndefined]>>>;
|
|
18
|
-
GITHUB_WEBHOOK_SECRET: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull, z.ZodUndefined]>>>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
GITHUB_TOKEN?: string;
|
|
21
|
-
GITHUB_OWNER?: string;
|
|
22
|
-
GITHUB_WEBHOOK_SECRET?: string;
|
|
23
|
-
}, {
|
|
24
|
-
GITHUB_TOKEN?: string;
|
|
25
|
-
GITHUB_OWNER?: string;
|
|
26
|
-
GITHUB_WEBHOOK_SECRET?: string;
|
|
27
|
-
}>;
|
|
28
|
-
export type GitHubConfig = z.infer<typeof githubConfigSchema>;
|
|
29
|
-
export interface GitHubRepository {
|
|
30
|
-
id: number;
|
|
31
|
-
name: string;
|
|
32
|
-
full_name: string;
|
|
33
|
-
description: string | null;
|
|
34
|
-
html_url: string;
|
|
35
|
-
clone_url: string;
|
|
36
|
-
ssh_url: string;
|
|
37
|
-
private: boolean;
|
|
38
|
-
fork: boolean;
|
|
39
|
-
archived: boolean;
|
|
40
|
-
disabled: boolean;
|
|
41
|
-
created_at: string;
|
|
42
|
-
updated_at: string;
|
|
43
|
-
pushed_at: string;
|
|
44
|
-
size: number;
|
|
45
|
-
stargazers_count: number;
|
|
46
|
-
watchers_count: number;
|
|
47
|
-
forks_count: number;
|
|
48
|
-
open_issues_count: number;
|
|
49
|
-
language: string | null;
|
|
50
|
-
topics: string[];
|
|
51
|
-
license: {
|
|
52
|
-
key: string;
|
|
53
|
-
name: string;
|
|
54
|
-
spdx_id: string;
|
|
55
|
-
} | null;
|
|
56
|
-
default_branch: string;
|
|
57
|
-
owner: {
|
|
58
|
-
login: string;
|
|
59
|
-
id: number;
|
|
60
|
-
type: 'User' | 'Organization';
|
|
61
|
-
avatar_url: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
export interface GitHubIssue {
|
|
65
|
-
id: number;
|
|
66
|
-
number: number;
|
|
67
|
-
title: string;
|
|
68
|
-
body: string | null;
|
|
69
|
-
state: 'open' | 'closed';
|
|
70
|
-
labels: Array<{
|
|
71
|
-
id: number;
|
|
72
|
-
name: string;
|
|
73
|
-
color: string;
|
|
74
|
-
description: string | null;
|
|
75
|
-
}>;
|
|
76
|
-
assignees: Array<{
|
|
77
|
-
login: string;
|
|
78
|
-
id: number;
|
|
79
|
-
avatar_url: string;
|
|
80
|
-
}>;
|
|
81
|
-
user: {
|
|
82
|
-
login: string;
|
|
83
|
-
id: number;
|
|
84
|
-
avatar_url: string;
|
|
85
|
-
};
|
|
86
|
-
created_at: string;
|
|
87
|
-
updated_at: string;
|
|
88
|
-
closed_at: string | null;
|
|
89
|
-
html_url: string;
|
|
90
|
-
comments: number;
|
|
91
|
-
milestone: {
|
|
92
|
-
id: number;
|
|
93
|
-
title: string;
|
|
94
|
-
description: string | null;
|
|
95
|
-
state: 'open' | 'closed';
|
|
96
|
-
due_on: string | null;
|
|
97
|
-
} | null;
|
|
98
|
-
}
|
|
99
|
-
export interface GitHubPullRequest {
|
|
100
|
-
id: number;
|
|
101
|
-
number: number;
|
|
102
|
-
title: string;
|
|
103
|
-
body: string | null;
|
|
104
|
-
state: 'open' | 'closed' | 'merged';
|
|
105
|
-
draft: boolean;
|
|
106
|
-
merged: boolean;
|
|
107
|
-
mergeable: boolean | null;
|
|
108
|
-
merged_at: string | null;
|
|
109
|
-
head: {
|
|
110
|
-
ref: string;
|
|
111
|
-
sha: string;
|
|
112
|
-
repo: GitHubRepository | null;
|
|
113
|
-
};
|
|
114
|
-
base: {
|
|
115
|
-
ref: string;
|
|
116
|
-
sha: string;
|
|
117
|
-
repo: GitHubRepository;
|
|
118
|
-
};
|
|
119
|
-
user: {
|
|
120
|
-
login: string;
|
|
121
|
-
id: number;
|
|
122
|
-
avatar_url: string;
|
|
123
|
-
};
|
|
124
|
-
assignees: Array<{
|
|
125
|
-
login: string;
|
|
126
|
-
id: number;
|
|
127
|
-
avatar_url: string;
|
|
128
|
-
}>;
|
|
129
|
-
labels: Array<{
|
|
130
|
-
id: number;
|
|
131
|
-
name: string;
|
|
132
|
-
color: string;
|
|
133
|
-
description: string | null;
|
|
134
|
-
}>;
|
|
135
|
-
created_at: string;
|
|
136
|
-
updated_at: string;
|
|
137
|
-
html_url: string;
|
|
138
|
-
comments: number;
|
|
139
|
-
commits: number;
|
|
140
|
-
additions: number;
|
|
141
|
-
deletions: number;
|
|
142
|
-
changed_files: number;
|
|
143
|
-
}
|
|
144
|
-
export interface CreateRepositoryOptions {
|
|
145
|
-
name: string;
|
|
146
|
-
description?: string;
|
|
147
|
-
private?: boolean;
|
|
148
|
-
auto_init?: boolean;
|
|
149
|
-
gitignore_template?: string;
|
|
150
|
-
license_template?: string;
|
|
151
|
-
allow_squash_merge?: boolean;
|
|
152
|
-
allow_merge_commit?: boolean;
|
|
153
|
-
allow_rebase_merge?: boolean;
|
|
154
|
-
delete_branch_on_merge?: boolean;
|
|
155
|
-
has_issues?: boolean;
|
|
156
|
-
has_projects?: boolean;
|
|
157
|
-
has_wiki?: boolean;
|
|
158
|
-
has_downloads?: boolean;
|
|
159
|
-
homepage?: string;
|
|
160
|
-
topics?: string[];
|
|
161
|
-
}
|
|
162
|
-
export interface CreateIssueOptions {
|
|
163
|
-
title: string;
|
|
164
|
-
body?: string;
|
|
165
|
-
assignees?: string[];
|
|
166
|
-
milestone?: number;
|
|
167
|
-
labels?: string[];
|
|
168
|
-
}
|
|
169
|
-
export interface CreatePullRequestOptions {
|
|
170
|
-
title: string;
|
|
171
|
-
head: string;
|
|
172
|
-
base: string;
|
|
173
|
-
body?: string;
|
|
174
|
-
draft?: boolean;
|
|
175
|
-
maintainer_can_modify?: boolean;
|
|
176
|
-
}
|
|
177
|
-
export interface GitHubActivityItem {
|
|
178
|
-
id: string;
|
|
179
|
-
timestamp: string;
|
|
180
|
-
action: string;
|
|
181
|
-
resource_type: 'repository' | 'issue' | 'pull_request';
|
|
182
|
-
resource_id: string;
|
|
183
|
-
details: Record<string, any>;
|
|
184
|
-
success: boolean;
|
|
185
|
-
error?: string;
|
|
186
|
-
}
|
|
187
|
-
export interface GitHubSearchResult<T> {
|
|
188
|
-
total_count: number;
|
|
189
|
-
incomplete_results: boolean;
|
|
190
|
-
items: T[];
|
|
191
|
-
}
|
|
192
|
-
export interface GitHubWebhookPayload {
|
|
193
|
-
action: string;
|
|
194
|
-
repository?: GitHubRepository;
|
|
195
|
-
issue?: GitHubIssue;
|
|
196
|
-
pull_request?: GitHubPullRequest;
|
|
197
|
-
sender: {
|
|
198
|
-
login: string;
|
|
199
|
-
id: number;
|
|
200
|
-
avatar_url: string;
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
export interface GitHubRateLimit {
|
|
204
|
-
limit: number;
|
|
205
|
-
remaining: number;
|
|
206
|
-
reset: number;
|
|
207
|
-
used: number;
|
|
208
|
-
resource: string;
|
|
209
|
-
}
|
|
210
|
-
export declare class GitHubAPIError extends Error {
|
|
211
|
-
status: number;
|
|
212
|
-
response?: any;
|
|
213
|
-
constructor(message: string, status: number, response?: any);
|
|
214
|
-
}
|
|
215
|
-
export declare class GitHubAuthenticationError extends GitHubAPIError {
|
|
216
|
-
constructor(message?: string);
|
|
217
|
-
}
|
|
218
|
-
export declare class GitHubRateLimitError extends GitHubAPIError {
|
|
219
|
-
resetTime: number;
|
|
220
|
-
constructor(message: string, resetTime: number);
|
|
221
|
-
}
|
|
222
|
-
export declare const createRepositorySchema: z.ZodObject<{
|
|
223
|
-
name: z.ZodString;
|
|
224
|
-
description: z.ZodOptional<z.ZodString>;
|
|
225
|
-
private: z.ZodDefault<z.ZodBoolean>;
|
|
226
|
-
auto_init: z.ZodDefault<z.ZodBoolean>;
|
|
227
|
-
gitignore_template: z.ZodOptional<z.ZodString>;
|
|
228
|
-
license_template: z.ZodOptional<z.ZodString>;
|
|
229
|
-
homepage: z.ZodOptional<z.ZodString>;
|
|
230
|
-
topics: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
231
|
-
}, "strip", z.ZodTypeAny, {
|
|
232
|
-
name?: string;
|
|
233
|
-
private?: boolean;
|
|
234
|
-
description?: string;
|
|
235
|
-
topics?: string[];
|
|
236
|
-
homepage?: string;
|
|
237
|
-
auto_init?: boolean;
|
|
238
|
-
gitignore_template?: string;
|
|
239
|
-
license_template?: string;
|
|
240
|
-
}, {
|
|
241
|
-
name?: string;
|
|
242
|
-
private?: boolean;
|
|
243
|
-
description?: string;
|
|
244
|
-
topics?: string[];
|
|
245
|
-
homepage?: string;
|
|
246
|
-
auto_init?: boolean;
|
|
247
|
-
gitignore_template?: string;
|
|
248
|
-
license_template?: string;
|
|
249
|
-
}>;
|
|
250
|
-
export declare const createIssueSchema: z.ZodObject<{
|
|
251
|
-
title: z.ZodString;
|
|
252
|
-
body: z.ZodOptional<z.ZodString>;
|
|
253
|
-
assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
-
labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
255
|
-
milestone: z.ZodOptional<z.ZodNumber>;
|
|
256
|
-
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
body?: string;
|
|
258
|
-
title?: string;
|
|
259
|
-
labels?: string[];
|
|
260
|
-
milestone?: number;
|
|
261
|
-
assignees?: string[];
|
|
262
|
-
}, {
|
|
263
|
-
body?: string;
|
|
264
|
-
title?: string;
|
|
265
|
-
labels?: string[];
|
|
266
|
-
milestone?: number;
|
|
267
|
-
assignees?: string[];
|
|
268
|
-
}>;
|
|
269
|
-
export declare const createPullRequestSchema: z.ZodObject<{
|
|
270
|
-
title: z.ZodString;
|
|
271
|
-
head: z.ZodString;
|
|
272
|
-
base: z.ZodString;
|
|
273
|
-
body: z.ZodOptional<z.ZodString>;
|
|
274
|
-
draft: z.ZodDefault<z.ZodBoolean>;
|
|
275
|
-
maintainer_can_modify: z.ZodDefault<z.ZodBoolean>;
|
|
276
|
-
}, "strip", z.ZodTypeAny, {
|
|
277
|
-
base?: string;
|
|
278
|
-
body?: string;
|
|
279
|
-
head?: string;
|
|
280
|
-
title?: string;
|
|
281
|
-
draft?: boolean;
|
|
282
|
-
maintainer_can_modify?: boolean;
|
|
283
|
-
}, {
|
|
284
|
-
base?: string;
|
|
285
|
-
body?: string;
|
|
286
|
-
head?: string;
|
|
287
|
-
title?: string;
|
|
288
|
-
draft?: boolean;
|
|
289
|
-
maintainer_can_modify?: boolean;
|
|
290
|
-
}>;
|