@squidcloud/github-client 1.0.426
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/connectors/github/common/src/github-types.d.ts +311 -0
- package/dist/connectors/github/github-client/src/github-client.d.ts +94 -0
- package/dist/connectors/github/github-client/src/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +30 -0
- package/package.json +27 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { IntegrationId } from '../../../../internal-common/src/public-types/communication.public-types';
|
|
2
|
+
export interface GitHubUser {
|
|
3
|
+
id: number;
|
|
4
|
+
login: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
email?: string;
|
|
7
|
+
avatar_url: string;
|
|
8
|
+
html_url: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GitHubLabel {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
color: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GitHubMilestone {
|
|
17
|
+
id: number;
|
|
18
|
+
number: number;
|
|
19
|
+
title: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
state: 'open' | 'closed';
|
|
22
|
+
due_on?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GitHubPullRequest {
|
|
25
|
+
id: number;
|
|
26
|
+
number: number;
|
|
27
|
+
title: string;
|
|
28
|
+
body?: string;
|
|
29
|
+
state: 'open' | 'closed';
|
|
30
|
+
html_url: string;
|
|
31
|
+
user: GitHubUser;
|
|
32
|
+
created_at: string;
|
|
33
|
+
updated_at: string;
|
|
34
|
+
closed_at?: string;
|
|
35
|
+
merged_at?: string;
|
|
36
|
+
merge_commit_sha?: string;
|
|
37
|
+
draft: boolean;
|
|
38
|
+
head: {
|
|
39
|
+
ref: string;
|
|
40
|
+
sha: string;
|
|
41
|
+
label: string;
|
|
42
|
+
};
|
|
43
|
+
base: {
|
|
44
|
+
ref: string;
|
|
45
|
+
sha: string;
|
|
46
|
+
label: string;
|
|
47
|
+
};
|
|
48
|
+
labels: Array<GitHubLabel>;
|
|
49
|
+
milestone?: GitHubMilestone;
|
|
50
|
+
assignees: Array<GitHubUser>;
|
|
51
|
+
requested_reviewers: Array<GitHubUser>;
|
|
52
|
+
merged: boolean;
|
|
53
|
+
mergeable?: boolean;
|
|
54
|
+
mergeable_state?: string;
|
|
55
|
+
additions?: number;
|
|
56
|
+
deletions?: number;
|
|
57
|
+
changed_files?: number;
|
|
58
|
+
comments?: number;
|
|
59
|
+
review_comments?: number;
|
|
60
|
+
commits?: number;
|
|
61
|
+
}
|
|
62
|
+
export interface GitHubPullRequestReview {
|
|
63
|
+
id: number;
|
|
64
|
+
user: GitHubUser;
|
|
65
|
+
body?: string;
|
|
66
|
+
state: 'APPROVED' | 'CHANGES_REQUESTED' | 'COMMENTED' | 'PENDING' | 'DISMISSED';
|
|
67
|
+
submitted_at: string;
|
|
68
|
+
html_url: string;
|
|
69
|
+
}
|
|
70
|
+
export interface GitHubComment {
|
|
71
|
+
id: number;
|
|
72
|
+
body: string;
|
|
73
|
+
user: GitHubUser;
|
|
74
|
+
created_at: string;
|
|
75
|
+
updated_at: string;
|
|
76
|
+
html_url: string;
|
|
77
|
+
}
|
|
78
|
+
export interface GitHubReviewComment extends GitHubComment {
|
|
79
|
+
path: string;
|
|
80
|
+
position?: number;
|
|
81
|
+
original_position?: number;
|
|
82
|
+
diff_hunk: string;
|
|
83
|
+
line?: number;
|
|
84
|
+
original_line?: number;
|
|
85
|
+
side?: 'LEFT' | 'RIGHT';
|
|
86
|
+
commit_id: string;
|
|
87
|
+
original_commit_id: string;
|
|
88
|
+
}
|
|
89
|
+
export interface GitHubCommit {
|
|
90
|
+
sha: string;
|
|
91
|
+
message: string;
|
|
92
|
+
author: {
|
|
93
|
+
name: string;
|
|
94
|
+
email: string;
|
|
95
|
+
date: string;
|
|
96
|
+
};
|
|
97
|
+
committer: {
|
|
98
|
+
name: string;
|
|
99
|
+
email: string;
|
|
100
|
+
date: string;
|
|
101
|
+
};
|
|
102
|
+
html_url: string;
|
|
103
|
+
}
|
|
104
|
+
export interface GitHubFile {
|
|
105
|
+
sha: string;
|
|
106
|
+
filename: string;
|
|
107
|
+
status: 'added' | 'removed' | 'modified' | 'renamed' | 'copied' | 'changed' | 'unchanged';
|
|
108
|
+
additions: number;
|
|
109
|
+
deletions: number;
|
|
110
|
+
changes: number;
|
|
111
|
+
patch?: string;
|
|
112
|
+
blob_url: string;
|
|
113
|
+
raw_url: string;
|
|
114
|
+
contents_url: string;
|
|
115
|
+
previous_filename?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface GitHubCodeSearchResult {
|
|
118
|
+
total_count: number;
|
|
119
|
+
incomplete_results: boolean;
|
|
120
|
+
items: Array<GitHubCodeSearchItem>;
|
|
121
|
+
}
|
|
122
|
+
export interface GitHubCodeSearchItem {
|
|
123
|
+
name: string;
|
|
124
|
+
path: string;
|
|
125
|
+
sha: string;
|
|
126
|
+
url: string;
|
|
127
|
+
html_url: string;
|
|
128
|
+
repository: {
|
|
129
|
+
id: number;
|
|
130
|
+
name: string;
|
|
131
|
+
full_name: string;
|
|
132
|
+
html_url: string;
|
|
133
|
+
};
|
|
134
|
+
text_matches?: Array<{
|
|
135
|
+
object_url: string;
|
|
136
|
+
object_type: string;
|
|
137
|
+
property: string;
|
|
138
|
+
fragment: string;
|
|
139
|
+
matches: Array<{
|
|
140
|
+
text: string;
|
|
141
|
+
indices: Array<number>;
|
|
142
|
+
}>;
|
|
143
|
+
}>;
|
|
144
|
+
}
|
|
145
|
+
export interface GitHubFileContent {
|
|
146
|
+
name: string;
|
|
147
|
+
path: string;
|
|
148
|
+
sha: string;
|
|
149
|
+
size: number;
|
|
150
|
+
url: string;
|
|
151
|
+
html_url: string;
|
|
152
|
+
download_url: string;
|
|
153
|
+
type: 'file' | 'dir' | 'symlink' | 'submodule';
|
|
154
|
+
content?: string;
|
|
155
|
+
encoding?: string;
|
|
156
|
+
}
|
|
157
|
+
export interface GitHubRepository {
|
|
158
|
+
id: number;
|
|
159
|
+
name: string;
|
|
160
|
+
full_name: string;
|
|
161
|
+
description?: string;
|
|
162
|
+
html_url: string;
|
|
163
|
+
default_branch: string;
|
|
164
|
+
private: boolean;
|
|
165
|
+
owner: GitHubUser;
|
|
166
|
+
}
|
|
167
|
+
export interface GitHubPullRequestDetails {
|
|
168
|
+
pr: GitHubPullRequest;
|
|
169
|
+
reviews: Array<GitHubPullRequestReview>;
|
|
170
|
+
comments: Array<GitHubComment>;
|
|
171
|
+
reviewComments: Array<GitHubReviewComment>;
|
|
172
|
+
files: Array<GitHubFile>;
|
|
173
|
+
commits: Array<GitHubCommit>;
|
|
174
|
+
detailsAsString: string;
|
|
175
|
+
}
|
|
176
|
+
export interface GitHubSyncData {
|
|
177
|
+
integrationId: IntegrationId;
|
|
178
|
+
lastSync: Date;
|
|
179
|
+
prIdToFailureCount: Record<number, number>;
|
|
180
|
+
}
|
|
181
|
+
export interface GitHubWebhookPayload {
|
|
182
|
+
action: string;
|
|
183
|
+
sender: GitHubUser;
|
|
184
|
+
repository: GitHubRepository;
|
|
185
|
+
pull_request?: GitHubPullRequest;
|
|
186
|
+
comment?: GitHubComment;
|
|
187
|
+
review?: GitHubPullRequestReview;
|
|
188
|
+
installation?: {
|
|
189
|
+
id: number;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
export interface GitHubPRResponse {
|
|
193
|
+
number: number;
|
|
194
|
+
title: string;
|
|
195
|
+
state: string;
|
|
196
|
+
url: string;
|
|
197
|
+
author: string;
|
|
198
|
+
}
|
|
199
|
+
export interface GitHubMergeResponse {
|
|
200
|
+
sha: string;
|
|
201
|
+
merged: boolean;
|
|
202
|
+
message: string;
|
|
203
|
+
}
|
|
204
|
+
export interface GitHubCommentResponse {
|
|
205
|
+
commentId: number;
|
|
206
|
+
url: string;
|
|
207
|
+
}
|
|
208
|
+
export interface GitHubReviewResponse {
|
|
209
|
+
reviewId: number;
|
|
210
|
+
state: string;
|
|
211
|
+
url: string;
|
|
212
|
+
}
|
|
213
|
+
export interface GitHubCodeSearchResponse {
|
|
214
|
+
totalCount: number;
|
|
215
|
+
items: Array<{
|
|
216
|
+
path: string;
|
|
217
|
+
url: string;
|
|
218
|
+
fragments: Array<string>;
|
|
219
|
+
}>;
|
|
220
|
+
}
|
|
221
|
+
export interface GitHubFileContentResponse {
|
|
222
|
+
path: string;
|
|
223
|
+
content: string;
|
|
224
|
+
size: number;
|
|
225
|
+
url: string;
|
|
226
|
+
}
|
|
227
|
+
export interface SearchGitHubPRsRequest {
|
|
228
|
+
integrationId: IntegrationId;
|
|
229
|
+
query?: string;
|
|
230
|
+
state?: 'open' | 'closed' | 'all';
|
|
231
|
+
author?: string;
|
|
232
|
+
reviewer?: string;
|
|
233
|
+
limit?: number;
|
|
234
|
+
}
|
|
235
|
+
export interface GetGitHubPRRequest {
|
|
236
|
+
integrationId: IntegrationId;
|
|
237
|
+
prNumber: number;
|
|
238
|
+
includeFiles?: boolean;
|
|
239
|
+
includeReviews?: boolean;
|
|
240
|
+
}
|
|
241
|
+
export interface ListGitHubPRsRequest {
|
|
242
|
+
integrationId: IntegrationId;
|
|
243
|
+
state?: 'open' | 'closed' | 'all';
|
|
244
|
+
limit?: number;
|
|
245
|
+
}
|
|
246
|
+
export interface SearchGitHubCodeRequest {
|
|
247
|
+
integrationId: IntegrationId;
|
|
248
|
+
query: string;
|
|
249
|
+
path?: string;
|
|
250
|
+
extension?: string;
|
|
251
|
+
limit?: number;
|
|
252
|
+
}
|
|
253
|
+
export interface GetGitHubFileRequest {
|
|
254
|
+
integrationId: IntegrationId;
|
|
255
|
+
filePath: string;
|
|
256
|
+
ref?: string;
|
|
257
|
+
}
|
|
258
|
+
export interface CreateGitHubPRRequest {
|
|
259
|
+
integrationId: IntegrationId;
|
|
260
|
+
title: string;
|
|
261
|
+
body?: string;
|
|
262
|
+
head: string;
|
|
263
|
+
base: string;
|
|
264
|
+
draft?: boolean;
|
|
265
|
+
}
|
|
266
|
+
export interface AddGitHubPRCommentRequest {
|
|
267
|
+
integrationId: IntegrationId;
|
|
268
|
+
prNumber: number;
|
|
269
|
+
body: string;
|
|
270
|
+
}
|
|
271
|
+
export interface AddGitHubPRReviewRequest {
|
|
272
|
+
integrationId: IntegrationId;
|
|
273
|
+
prNumber: number;
|
|
274
|
+
body?: string;
|
|
275
|
+
event: 'APPROVE' | 'REQUEST_CHANGES' | 'COMMENT';
|
|
276
|
+
}
|
|
277
|
+
export interface CloseGitHubPRRequest {
|
|
278
|
+
integrationId: IntegrationId;
|
|
279
|
+
prNumber: number;
|
|
280
|
+
}
|
|
281
|
+
export interface MergeGitHubPRRequest {
|
|
282
|
+
integrationId: IntegrationId;
|
|
283
|
+
prNumber: number;
|
|
284
|
+
commitTitle?: string;
|
|
285
|
+
commitMessage?: string;
|
|
286
|
+
mergeMethod?: 'merge' | 'squash' | 'rebase';
|
|
287
|
+
}
|
|
288
|
+
export interface ExtractGitHubWebhookRequest {
|
|
289
|
+
integrationId: IntegrationId;
|
|
290
|
+
rawBody: string;
|
|
291
|
+
headers: Record<string, string | undefined>;
|
|
292
|
+
}
|
|
293
|
+
export interface GitHubGraphQLResponse<T> {
|
|
294
|
+
data?: T;
|
|
295
|
+
errors?: Array<{
|
|
296
|
+
message: string;
|
|
297
|
+
type?: string;
|
|
298
|
+
path?: Array<string>;
|
|
299
|
+
locations?: Array<{
|
|
300
|
+
line: number;
|
|
301
|
+
column: number;
|
|
302
|
+
}>;
|
|
303
|
+
}>;
|
|
304
|
+
}
|
|
305
|
+
export interface GitHubConnection<T> {
|
|
306
|
+
nodes: Array<T>;
|
|
307
|
+
pageInfo: {
|
|
308
|
+
hasNextPage: boolean;
|
|
309
|
+
endCursor?: string;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Squid } from '@squidcloud/client';
|
|
2
|
+
import { AddGitHubPRCommentRequest, AddGitHubPRReviewRequest, CloseGitHubPRRequest, CreateGitHubPRRequest, ExtractGitHubWebhookRequest, GetGitHubFileRequest, GetGitHubPRRequest, GitHubCommentResponse, GitHubFileContentResponse, GitHubMergeResponse, GitHubPRResponse, GitHubReviewResponse, GitHubWebhookPayload, ListGitHubPRsRequest, MergeGitHubPRRequest, SearchGitHubCodeRequest, SearchGitHubPRsRequest } from '../../common/src/github-types';
|
|
3
|
+
/**
|
|
4
|
+
* Client for interacting with the GitHub connector.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SquidGitHubClient {
|
|
7
|
+
private readonly squid;
|
|
8
|
+
private readonly integrationId;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new GitHub client instance.
|
|
11
|
+
*
|
|
12
|
+
* @param squid - Squid client instance. Provide an instance that includes the Squid API key.
|
|
13
|
+
* @param integrationId - The ID of the GitHub integration in the Squid console
|
|
14
|
+
*/
|
|
15
|
+
constructor(squid: Squid, integrationId: string);
|
|
16
|
+
/**
|
|
17
|
+
* Search for pull requests in the connected GitHub repository.
|
|
18
|
+
*
|
|
19
|
+
* @param request - Search parameters (query, state, author, reviewer, limit)
|
|
20
|
+
* @returns Formatted string with matching pull requests
|
|
21
|
+
*/
|
|
22
|
+
searchPullRequests(request: Omit<SearchGitHubPRsRequest, 'integrationId'>): Promise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* Get detailed information about a specific pull request.
|
|
25
|
+
*
|
|
26
|
+
* @param request - Request with PR number and optional flags for files/reviews
|
|
27
|
+
* @returns Formatted string with PR details
|
|
28
|
+
*/
|
|
29
|
+
getPullRequest(request: Omit<GetGitHubPRRequest, 'integrationId'>): Promise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* List pull requests by state.
|
|
32
|
+
*
|
|
33
|
+
* @param request - Request with state filter and limit
|
|
34
|
+
* @returns Formatted string with pull requests
|
|
35
|
+
*/
|
|
36
|
+
listPullRequests(request?: Omit<ListGitHubPRsRequest, 'integrationId'>): Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Search for code in the connected GitHub repository.
|
|
39
|
+
*
|
|
40
|
+
* @param request - Search parameters (query, path, extension, limit)
|
|
41
|
+
* @returns Formatted string with matching code results
|
|
42
|
+
*/
|
|
43
|
+
searchCode(request: Omit<SearchGitHubCodeRequest, 'integrationId'>): Promise<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the content of a file from the repository.
|
|
46
|
+
*
|
|
47
|
+
* @param request - Request with file path and optional ref (branch/tag/commit)
|
|
48
|
+
* @returns File content response with path, content, size, and URL
|
|
49
|
+
*/
|
|
50
|
+
getFileContent(request: Omit<GetGitHubFileRequest, 'integrationId'>): Promise<GitHubFileContentResponse>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a new pull request.
|
|
53
|
+
*
|
|
54
|
+
* @param request - PR creation parameters (title, head, base, body, draft)
|
|
55
|
+
* @returns Created PR response with number, title, state, url, and author
|
|
56
|
+
*/
|
|
57
|
+
createPullRequest(request: Omit<CreateGitHubPRRequest, 'integrationId'>): Promise<GitHubPRResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Add a comment to a pull request.
|
|
60
|
+
*
|
|
61
|
+
* @param request - Request with PR number and comment body
|
|
62
|
+
* @returns Comment response with ID and URL
|
|
63
|
+
*/
|
|
64
|
+
addPRComment(request: Omit<AddGitHubPRCommentRequest, 'integrationId'>): Promise<GitHubCommentResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* Submit a review on a pull request.
|
|
67
|
+
*
|
|
68
|
+
* @param request - Request with PR number, event type, and optional body
|
|
69
|
+
* @returns Review response with ID, state, and URL
|
|
70
|
+
*/
|
|
71
|
+
addPRReview(request: Omit<AddGitHubPRReviewRequest, 'integrationId'>): Promise<GitHubReviewResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Close a pull request without merging.
|
|
74
|
+
*
|
|
75
|
+
* @param request - Request with PR number
|
|
76
|
+
* @returns Closed PR response
|
|
77
|
+
*/
|
|
78
|
+
closePullRequest(request: Omit<CloseGitHubPRRequest, 'integrationId'>): Promise<GitHubPRResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Merge a pull request.
|
|
81
|
+
*
|
|
82
|
+
* @param request - Request with PR number and optional merge options
|
|
83
|
+
* @returns Merge response with SHA, merged status, and message
|
|
84
|
+
*/
|
|
85
|
+
mergePullRequest(request: Omit<MergeGitHubPRRequest, 'integrationId'>): Promise<GitHubMergeResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Extract and validate GitHub webhook data from an incoming request.
|
|
88
|
+
* Verifies the webhook signature if a webhook secret is configured.
|
|
89
|
+
*
|
|
90
|
+
* @param request - Request with raw body and headers from the webhook
|
|
91
|
+
* @returns Parsed and validated webhook payload
|
|
92
|
+
*/
|
|
93
|
+
extractWebhookData(request: Omit<ExtractGitHubWebhookRequest, 'integrationId'>): Promise<GitHubWebhookPayload>;
|
|
94
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{SquidGitHubClient:()=>i});class i{constructor(t,e){this.squid=t,this.integrationId=e}async searchPullRequests(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("searchGitHubPRs",e)}async getPullRequest(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("getGitHubPR",e)}async listPullRequests(t={}){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("listGitHubPRs",e)}async searchCode(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("searchGitHubCode",e)}async getFileContent(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("getGitHubFile",e)}async createPullRequest(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("createGitHubPR",e)}async addPRComment(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("addGitHubPRComment",e)}async addPRReview(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("addGitHubPRReview",e)}async closePullRequest(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("closeGitHubPR",e)}async mergePullRequest(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("mergeGitHubPR",e)}async extractWebhookData(t){const e={...t,integrationId:this.integrationId};return this.squid.executeFunction("extractGitHubWebhookData",e)}}var n=exports;for(var s in e)n[s]=e[s];e.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** A type alias for an application id. */
|
|
2
|
+
export type AppId = string;
|
|
3
|
+
/** A tuple of environment identifiers like 'dev' or 'prod'. */
|
|
4
|
+
export declare const ENVIRONMENT_IDS: readonly ["dev", "prod"];
|
|
5
|
+
/** A type representing valid environment identifiers derived from ENVIRONMENT_IDS. */
|
|
6
|
+
export type EnvironmentId = (typeof ENVIRONMENT_IDS)[number];
|
|
7
|
+
/** A type alias for a squid developer identifier. */
|
|
8
|
+
export type SquidDeveloperId = string;
|
|
9
|
+
/** A type alias for an integration id. */
|
|
10
|
+
export type IntegrationId = string;
|
|
11
|
+
/** A type alias for a client identifier. */
|
|
12
|
+
export type ClientId = string;
|
|
13
|
+
/** A type alias for a squid document identifier. */
|
|
14
|
+
export type SquidDocId = string;
|
|
15
|
+
/** A type alias for a client request identifier. */
|
|
16
|
+
export type ClientRequestId = string;
|
|
17
|
+
/** ID of AI agent. Also known as AI profile id. */
|
|
18
|
+
export type AiAgentId = string;
|
|
19
|
+
/** App-level ID of AI Knowledge Base */
|
|
20
|
+
export type AiKnowledgeBaseId = string;
|
|
21
|
+
/**
|
|
22
|
+
* The built-in agent id. Cannot be customized.
|
|
23
|
+
* @category AI
|
|
24
|
+
*/
|
|
25
|
+
export declare const BUILT_IN_AGENT_ID = "built_in_agent";
|
|
26
|
+
/**
|
|
27
|
+
* A type alias for an AI context identifier.
|
|
28
|
+
* @category AI
|
|
29
|
+
*/
|
|
30
|
+
export type AiContextId = string;
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@squidcloud/github-client",
|
|
3
|
+
"version": "1.0.426",
|
|
4
|
+
"description": "Squid GitHub Client",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/client/src/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"prebuild": "del-cli dist",
|
|
9
|
+
"build": "webpack --mode=production",
|
|
10
|
+
"lint": "eslint",
|
|
11
|
+
"publish:public": "npm run build && npm publish --access public"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist/**/*"
|
|
15
|
+
],
|
|
16
|
+
"keywords": [],
|
|
17
|
+
"author": "",
|
|
18
|
+
"license": "ISC",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"assertic": "^1.3.0",
|
|
21
|
+
"lodash": "^4.17.21",
|
|
22
|
+
"@squidcloud/client": "^1.0.426"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=20.0.0"
|
|
26
|
+
}
|
|
27
|
+
}
|