@octocodeai/octocode-core 16.1.1 → 16.2.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/data/compressed.js +1 -1
- package/dist/data/default.json +263 -222
- package/dist/resources/global.js +1 -1
- package/dist/resources/tools/_toolkit.d.ts +55 -0
- package/dist/resources/tools/_toolkit.js +1 -0
- package/dist/resources/tools/ghCloneRepo.d.ts +25 -0
- package/dist/resources/tools/ghCloneRepo.js +1 -1
- package/dist/resources/tools/ghGetFileContent.d.ts +30 -0
- package/dist/resources/tools/ghGetFileContent.js +1 -1
- package/dist/resources/tools/ghHistoryResearch.d.ts +133 -0
- package/dist/resources/tools/ghHistoryResearch.js +1 -0
- package/dist/resources/tools/ghSearchCode.d.ts +21 -0
- package/dist/resources/tools/ghSearchCode.js +1 -1
- package/dist/resources/tools/ghSearchRepos.d.ts +38 -0
- package/dist/resources/tools/ghSearchRepos.js +1 -1
- package/dist/resources/tools/ghViewRepoStructure.d.ts +15 -0
- package/dist/resources/tools/ghViewRepoStructure.js +1 -1
- package/dist/resources/tools/localBinaryInspect.d.ts +39 -0
- package/dist/resources/tools/localBinaryInspect.js +1 -0
- package/dist/resources/tools/localFindFiles.d.ts +39 -0
- package/dist/resources/tools/localFindFiles.js +1 -1
- package/dist/resources/tools/localGetFileContent.d.ts +22 -0
- package/dist/resources/tools/localGetFileContent.js +1 -1
- package/dist/resources/tools/localSearchCode.d.ts +49 -0
- package/dist/resources/tools/localSearchCode.js +1 -1
- package/dist/resources/tools/localViewStructure.d.ts +27 -0
- package/dist/resources/tools/localViewStructure.js +1 -1
- package/dist/resources/tools/lspGetSemantics.d.ts +77 -0
- package/dist/resources/tools/lspGetSemantics.js +1 -1
- package/dist/resources/tools/npmSearch.d.ts +9 -0
- package/dist/resources/tools/npmSearch.js +1 -1
- package/dist/schemas/index.d.ts +13 -433
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/runtime.js +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/resources/tools/ghSearchPRs.d.ts +0 -2
- package/dist/resources/tools/ghSearchPRs.js +0 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,433 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
wholeWord: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
invertMatch: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
-
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
-
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
|
-
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
noIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
-
filesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
filesWithoutMatch: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
24
|
-
matchContentLength: z.ZodDefault<z.ZodNumber>;
|
|
25
|
-
maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
multilineDotall: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
sort: z.ZodDefault<z.ZodEnum<{
|
|
30
|
-
path: "path";
|
|
31
|
-
modified: "modified";
|
|
32
|
-
created: "created";
|
|
33
|
-
accessed: "accessed";
|
|
34
|
-
}>>;
|
|
35
|
-
sortReverse: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
-
langType: z.ZodOptional<z.ZodString>;
|
|
37
|
-
countLinesPerFile: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
countMatchesPerFile: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
41
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
42
|
-
id: z.ZodOptional<z.ZodString>;
|
|
43
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
44
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
45
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
export declare const FindFilesQuerySchema: z.ZodObject<{
|
|
48
|
-
path: z.ZodString;
|
|
49
|
-
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
minDepth: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
52
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
53
|
-
regex: z.ZodOptional<z.ZodString>;
|
|
54
|
-
empty: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
modifiedWithin: z.ZodOptional<z.ZodString>;
|
|
56
|
-
modifiedBefore: z.ZodOptional<z.ZodString>;
|
|
57
|
-
accessedWithin: z.ZodOptional<z.ZodString>;
|
|
58
|
-
sizeGreater: z.ZodOptional<z.ZodString>;
|
|
59
|
-
sizeLess: z.ZodOptional<z.ZodString>;
|
|
60
|
-
permissions: z.ZodOptional<z.ZodString>;
|
|
61
|
-
executable: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
readable: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
-
writable: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
-
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
66
|
-
details: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
-
showFileLastModified: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
69
|
-
path: "path";
|
|
70
|
-
modified: "modified";
|
|
71
|
-
size: "size";
|
|
72
|
-
name: "name";
|
|
73
|
-
}>>;
|
|
74
|
-
entryType: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
f: "f";
|
|
76
|
-
d: "d";
|
|
77
|
-
}>>;
|
|
78
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
79
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
id: z.ZodOptional<z.ZodString>;
|
|
81
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
82
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
83
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strip>;
|
|
85
|
-
export declare const ViewStructureQuerySchema: z.ZodObject<{
|
|
86
|
-
path: z.ZodString;
|
|
87
|
-
details: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
90
|
-
extension: "extension";
|
|
91
|
-
size: "size";
|
|
92
|
-
name: "name";
|
|
93
|
-
time: "time";
|
|
94
|
-
}>>;
|
|
95
|
-
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
97
|
-
directoriesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
-
filesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
-
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
101
|
-
depth: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
showFileLastModified: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
105
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
106
|
-
id: z.ZodOptional<z.ZodString>;
|
|
107
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
108
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
109
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
110
|
-
}, z.core.$strip>;
|
|
111
|
-
export declare const FetchContentQuerySchema: z.ZodObject<{
|
|
112
|
-
path: z.ZodString;
|
|
113
|
-
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
-
matchString: z.ZodOptional<z.ZodString>;
|
|
115
|
-
matchStringIsRegex: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
matchStringCaseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
118
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
119
|
-
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
120
|
-
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
charLength: z.ZodOptional<z.ZodNumber>;
|
|
122
|
-
minify: z.ZodDefault<z.ZodEnum<{
|
|
123
|
-
none: "none";
|
|
124
|
-
standard: "standard";
|
|
125
|
-
symbols: "symbols";
|
|
126
|
-
}>>;
|
|
127
|
-
id: z.ZodOptional<z.ZodString>;
|
|
128
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
129
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
130
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export declare const FileContentQuerySchema: z.ZodObject<{
|
|
133
|
-
owner: z.ZodString;
|
|
134
|
-
repo: z.ZodString;
|
|
135
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
136
|
-
path: z.ZodString;
|
|
137
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
138
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
-
matchString: z.ZodOptional<z.ZodString>;
|
|
141
|
-
matchStringIsRegex: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
-
matchStringCaseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
-
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
145
|
-
file: "file";
|
|
146
|
-
directory: "directory";
|
|
147
|
-
}>>;
|
|
148
|
-
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
149
|
-
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
150
|
-
charLength: z.ZodOptional<z.ZodNumber>;
|
|
151
|
-
minify: z.ZodDefault<z.ZodEnum<{
|
|
152
|
-
none: "none";
|
|
153
|
-
standard: "standard";
|
|
154
|
-
symbols: "symbols";
|
|
155
|
-
}>>;
|
|
156
|
-
id: z.ZodOptional<z.ZodString>;
|
|
157
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
158
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
159
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
160
|
-
}, z.core.$strip>;
|
|
161
|
-
export declare const GitHubCodeSearchQuerySchema: z.ZodObject<{
|
|
162
|
-
keywordsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
|
-
owner: z.ZodOptional<z.ZodString>;
|
|
164
|
-
repo: z.ZodOptional<z.ZodString>;
|
|
165
|
-
extension: z.ZodOptional<z.ZodString>;
|
|
166
|
-
filename: z.ZodOptional<z.ZodString>;
|
|
167
|
-
path: z.ZodOptional<z.ZodString>;
|
|
168
|
-
language: z.ZodOptional<z.ZodString>;
|
|
169
|
-
match: z.ZodDefault<z.ZodEnum<{
|
|
170
|
-
file: "file";
|
|
171
|
-
path: "path";
|
|
172
|
-
}>>;
|
|
173
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
174
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
175
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
176
|
-
id: z.ZodOptional<z.ZodString>;
|
|
177
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
178
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
179
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
180
|
-
}, z.core.$strip>;
|
|
181
|
-
export declare const GitHubReposSearchSingleQuerySchema: z.ZodObject<{
|
|
182
|
-
keywordsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
|
-
topicsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
-
language: z.ZodOptional<z.ZodString>;
|
|
185
|
-
owner: z.ZodOptional<z.ZodString>;
|
|
186
|
-
stars: z.ZodOptional<z.ZodString>;
|
|
187
|
-
size: z.ZodOptional<z.ZodString>;
|
|
188
|
-
created: z.ZodOptional<z.ZodString>;
|
|
189
|
-
updated: z.ZodOptional<z.ZodString>;
|
|
190
|
-
match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
191
|
-
description: "description";
|
|
192
|
-
name: "name";
|
|
193
|
-
readme: "readme";
|
|
194
|
-
}>>>;
|
|
195
|
-
sort: z.ZodDefault<z.ZodEnum<{
|
|
196
|
-
updated: "updated";
|
|
197
|
-
stars: "stars";
|
|
198
|
-
forks: "forks";
|
|
199
|
-
"help-wanted-issues": "help-wanted-issues";
|
|
200
|
-
"best-match": "best-match";
|
|
201
|
-
}>>;
|
|
202
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
203
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
204
|
-
archived: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
visibility: z.ZodOptional<z.ZodEnum<{
|
|
206
|
-
public: "public";
|
|
207
|
-
private: "private";
|
|
208
|
-
}>>;
|
|
209
|
-
forks: z.ZodOptional<z.ZodString>;
|
|
210
|
-
license: z.ZodOptional<z.ZodString>;
|
|
211
|
-
goodFirstIssues: z.ZodOptional<z.ZodString>;
|
|
212
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
-
id: z.ZodOptional<z.ZodString>;
|
|
214
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
215
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
216
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{
|
|
219
|
-
keywordsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
220
|
-
query: z.ZodOptional<z.ZodString>;
|
|
221
|
-
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
222
|
-
owner: z.ZodOptional<z.ZodString>;
|
|
223
|
-
repo: z.ZodOptional<z.ZodString>;
|
|
224
|
-
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
226
|
-
open: "open";
|
|
227
|
-
closed: "closed";
|
|
228
|
-
merged: "merged";
|
|
229
|
-
}>>;
|
|
230
|
-
assignee: z.ZodOptional<z.ZodString>;
|
|
231
|
-
author: z.ZodOptional<z.ZodString>;
|
|
232
|
-
commenter: z.ZodOptional<z.ZodString>;
|
|
233
|
-
involves: z.ZodOptional<z.ZodString>;
|
|
234
|
-
mentions: z.ZodOptional<z.ZodString>;
|
|
235
|
-
"review-requested": z.ZodOptional<z.ZodString>;
|
|
236
|
-
"reviewed-by": z.ZodOptional<z.ZodString>;
|
|
237
|
-
label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
238
|
-
"no-label": z.ZodOptional<z.ZodBoolean>;
|
|
239
|
-
"no-milestone": z.ZodOptional<z.ZodBoolean>;
|
|
240
|
-
"no-project": z.ZodOptional<z.ZodBoolean>;
|
|
241
|
-
"no-assignee": z.ZodOptional<z.ZodBoolean>;
|
|
242
|
-
head: z.ZodOptional<z.ZodString>;
|
|
243
|
-
base: z.ZodOptional<z.ZodString>;
|
|
244
|
-
created: z.ZodOptional<z.ZodString>;
|
|
245
|
-
updated: z.ZodOptional<z.ZodString>;
|
|
246
|
-
closed: z.ZodOptional<z.ZodString>;
|
|
247
|
-
"merged-at": z.ZodOptional<z.ZodString>;
|
|
248
|
-
comments: z.ZodOptional<z.ZodString>;
|
|
249
|
-
reactions: z.ZodOptional<z.ZodString>;
|
|
250
|
-
interactions: z.ZodOptional<z.ZodString>;
|
|
251
|
-
draft: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
-
match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
253
|
-
comments: "comments";
|
|
254
|
-
title: "title";
|
|
255
|
-
body: "body";
|
|
256
|
-
}>>>;
|
|
257
|
-
sort: z.ZodOptional<z.ZodEnum<{
|
|
258
|
-
created: "created";
|
|
259
|
-
updated: "updated";
|
|
260
|
-
comments: "comments";
|
|
261
|
-
reactions: "reactions";
|
|
262
|
-
"best-match": "best-match";
|
|
263
|
-
}>>;
|
|
264
|
-
order: z.ZodOptional<z.ZodEnum<{
|
|
265
|
-
asc: "asc";
|
|
266
|
-
desc: "desc";
|
|
267
|
-
}>>;
|
|
268
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
269
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
270
|
-
archived: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
filePage: z.ZodOptional<z.ZodNumber>;
|
|
272
|
-
commentPage: z.ZodOptional<z.ZodNumber>;
|
|
273
|
-
commitPage: z.ZodOptional<z.ZodNumber>;
|
|
274
|
-
itemsPerPage: z.ZodDefault<z.ZodNumber>;
|
|
275
|
-
reviewMode: z.ZodOptional<z.ZodLiteral<"full">>;
|
|
276
|
-
content: z.ZodOptional<z.ZodObject<{
|
|
277
|
-
metadata: z.ZodOptional<z.ZodBoolean>;
|
|
278
|
-
body: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
changedFiles: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
-
patches: z.ZodOptional<z.ZodObject<{
|
|
281
|
-
mode: z.ZodDefault<z.ZodEnum<{
|
|
282
|
-
none: "none";
|
|
283
|
-
selected: "selected";
|
|
284
|
-
all: "all";
|
|
285
|
-
}>>;
|
|
286
|
-
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
-
ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
288
|
-
file: z.ZodString;
|
|
289
|
-
additions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
290
|
-
deletions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
291
|
-
}, z.core.$strip>>>;
|
|
292
|
-
}, z.core.$strip>>;
|
|
293
|
-
comments: z.ZodOptional<z.ZodObject<{
|
|
294
|
-
discussion: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
-
reviewInline: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
-
includeBots: z.ZodDefault<z.ZodBoolean>;
|
|
297
|
-
file: z.ZodOptional<z.ZodString>;
|
|
298
|
-
}, z.core.$strip>>;
|
|
299
|
-
reviews: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
-
commits: z.ZodOptional<z.ZodObject<{
|
|
301
|
-
list: z.ZodOptional<z.ZodBoolean>;
|
|
302
|
-
includeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
-
}, z.core.$strip>>;
|
|
304
|
-
}, z.core.$strip>>;
|
|
305
|
-
matchString: z.ZodOptional<z.ZodString>;
|
|
306
|
-
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
307
|
-
charLength: z.ZodOptional<z.ZodNumber>;
|
|
308
|
-
id: z.ZodOptional<z.ZodString>;
|
|
309
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
310
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
311
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
312
|
-
}, z.core.$strip>;
|
|
313
|
-
export declare const GitHubViewRepoStructureQuerySchema: z.ZodObject<{
|
|
314
|
-
owner: z.ZodString;
|
|
315
|
-
repo: z.ZodString;
|
|
316
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
317
|
-
path: z.ZodOptional<z.ZodString>;
|
|
318
|
-
depth: z.ZodOptional<z.ZodNumber>;
|
|
319
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
320
|
-
itemsPerPage: z.ZodDefault<z.ZodNumber>;
|
|
321
|
-
id: z.ZodOptional<z.ZodString>;
|
|
322
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
323
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
324
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
325
|
-
}, z.core.$strip>;
|
|
326
|
-
export declare const NpmPackageQuerySchema: z.ZodObject<{
|
|
327
|
-
packageName: z.ZodString;
|
|
328
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
329
|
-
id: z.ZodOptional<z.ZodString>;
|
|
330
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
331
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
332
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
333
|
-
}, z.core.$strip>;
|
|
334
|
-
export declare const CloneRepoQuerySchema: z.ZodObject<{
|
|
335
|
-
owner: z.ZodString;
|
|
336
|
-
repo: z.ZodString;
|
|
337
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
338
|
-
sparsePath: z.ZodOptional<z.ZodString>;
|
|
339
|
-
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
-
id: z.ZodOptional<z.ZodString>;
|
|
341
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
342
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
343
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
344
|
-
}, z.core.$strip>;
|
|
345
|
-
export declare const BulkCloneRepoSchema: z.ZodObject<{
|
|
346
|
-
queries: z.ZodArray<z.ZodObject<{
|
|
347
|
-
owner: z.ZodString;
|
|
348
|
-
repo: z.ZodString;
|
|
349
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
350
|
-
sparsePath: z.ZodOptional<z.ZodString>;
|
|
351
|
-
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
352
|
-
id: z.ZodOptional<z.ZodString>;
|
|
353
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
354
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
355
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
356
|
-
}, z.core.$strip>>;
|
|
357
|
-
}, z.core.$strip>;
|
|
358
|
-
export declare const LSPGotoDefinitionQuerySchema: z.ZodObject<{
|
|
359
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
360
|
-
uri: z.ZodString;
|
|
361
|
-
symbolName: z.ZodString;
|
|
362
|
-
lineHint: z.ZodNumber;
|
|
363
|
-
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
364
|
-
id: z.ZodOptional<z.ZodString>;
|
|
365
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
366
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
367
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
368
|
-
}, z.core.$strip>;
|
|
369
|
-
export declare const LSPFindReferencesQuerySchema: z.ZodObject<{
|
|
370
|
-
includeDeclaration: z.ZodOptional<z.ZodBoolean>;
|
|
371
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
372
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
373
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
374
|
-
groupByFile: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
-
uri: z.ZodString;
|
|
376
|
-
symbolName: z.ZodString;
|
|
377
|
-
lineHint: z.ZodNumber;
|
|
378
|
-
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
379
|
-
id: z.ZodOptional<z.ZodString>;
|
|
380
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
381
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
382
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
383
|
-
}, z.core.$strip>;
|
|
384
|
-
export declare const LSPCallHierarchyQuerySchema: z.ZodObject<{
|
|
385
|
-
direction: z.ZodEnum<{
|
|
386
|
-
incoming: "incoming";
|
|
387
|
-
outgoing: "outgoing";
|
|
388
|
-
}>;
|
|
389
|
-
depth: z.ZodOptional<z.ZodNumber>;
|
|
390
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
391
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
392
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
393
|
-
uri: z.ZodString;
|
|
394
|
-
symbolName: z.ZodString;
|
|
395
|
-
lineHint: z.ZodNumber;
|
|
396
|
-
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
397
|
-
id: z.ZodOptional<z.ZodString>;
|
|
398
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
399
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
400
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
401
|
-
}, z.core.$strip>;
|
|
402
|
-
export declare const LspGetSemanticsQuerySchema: z.ZodObject<{
|
|
403
|
-
uri: z.ZodString;
|
|
404
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
405
|
-
references: "references";
|
|
406
|
-
definition: "definition";
|
|
407
|
-
callers: "callers";
|
|
408
|
-
callees: "callees";
|
|
409
|
-
callHierarchy: "callHierarchy";
|
|
410
|
-
hover: "hover";
|
|
411
|
-
documentSymbols: "documentSymbols";
|
|
412
|
-
typeDefinition: "typeDefinition";
|
|
413
|
-
implementation: "implementation";
|
|
414
|
-
}>>;
|
|
415
|
-
symbolName: z.ZodOptional<z.ZodString>;
|
|
416
|
-
lineHint: z.ZodOptional<z.ZodNumber>;
|
|
417
|
-
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
418
|
-
depth: z.ZodOptional<z.ZodNumber>;
|
|
419
|
-
includeDeclaration: z.ZodDefault<z.ZodBoolean>;
|
|
420
|
-
groupByFile: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
422
|
-
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
423
|
-
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
424
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
425
|
-
structured: "structured";
|
|
426
|
-
compact: "compact";
|
|
427
|
-
}>>;
|
|
428
|
-
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
429
|
-
id: z.ZodOptional<z.ZodString>;
|
|
430
|
-
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
431
|
-
researchGoal: z.ZodOptional<z.ZodString>;
|
|
432
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
433
|
-
}, z.core.$strip>;
|
|
1
|
+
export { GitHubCodeSearchQuerySchema } from "../resources/tools/ghSearchCode.js";
|
|
2
|
+
export { FileContentQuerySchema } from "../resources/tools/ghGetFileContent.js";
|
|
3
|
+
export { GitHubViewRepoStructureQuerySchema } from "../resources/tools/ghViewRepoStructure.js";
|
|
4
|
+
export { GitHubReposSearchSingleQuerySchema } from "../resources/tools/ghSearchRepos.js";
|
|
5
|
+
export { GitHubPullRequestSearchQuerySchema } from "../resources/tools/ghHistoryResearch.js";
|
|
6
|
+
export { NpmPackageQuerySchema } from "../resources/tools/npmSearch.js";
|
|
7
|
+
export { CloneRepoQuerySchema, BulkCloneRepoSchema, } from "../resources/tools/ghCloneRepo.js";
|
|
8
|
+
export { RipgrepQuerySchema } from "../resources/tools/localSearchCode.js";
|
|
9
|
+
export { FetchContentQuerySchema } from "../resources/tools/localGetFileContent.js";
|
|
10
|
+
export { FindFilesQuerySchema } from "../resources/tools/localFindFiles.js";
|
|
11
|
+
export { ViewStructureQuerySchema } from "../resources/tools/localViewStructure.js";
|
|
12
|
+
export { LspGetSemanticsQuerySchema, LSPGotoDefinitionQuerySchema, LSPFindReferencesQuerySchema, LSPCallHierarchyQuerySchema, } from "../resources/tools/lspGetSemantics.js";
|
|
13
|
+
export { LocalBinaryInspectQuerySchema } from "../resources/tools/localBinaryInspect.js";
|
package/dist/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as e}from"zod";import{baseSchema as o,toolNames as t}from"../resources/global.js";import{ghCloneRepo as n}from"../resources/tools/ghCloneRepo.js";import{ghGetFileContent as i}from"../resources/tools/ghGetFileContent.js";import{ghSearchCode as a}from"../resources/tools/ghSearchCode.js";import{ghSearchPRs as s}from"../resources/tools/ghSearchPRs.js";import{ghSearchRepos as l}from"../resources/tools/ghSearchRepos.js";import{ghViewRepoStructure as r}from"../resources/tools/ghViewRepoStructure.js";import{localFindFiles as c}from"../resources/tools/localFindFiles.js";import{localGetFileContent as p}from"../resources/tools/localGetFileContent.js";import{localSearchCode as m}from"../resources/tools/localSearchCode.js";import{localViewStructure as u}from"../resources/tools/localViewStructure.js";import{lspGetSemantics as d}from"../resources/tools/lspGetSemantics.js";import{npmSearch as g}from"../resources/tools/npmSearch.js";const h=e.array(e.string()).optional(),f=1e3,S=1e9,b=1e5,y=100,L=1e5;function E(o,t){return e.number().int().min(o).max(t)}function _(){return E(1,f).default(1)}function C(){return E(1,f).optional()}function T(){return E(0,100).optional()}function R(){return E(1,S).optional()}function I(){return E(0,1e8).optional()}function P(){return E(1,5e4).optional()}const x={[t.GITHUB_FETCH_CONTENT]:i.schema,[t.GITHUB_SEARCH_CODE]:a.schema,[t.GITHUB_SEARCH_PULL_REQUESTS]:s.schema,[t.GITHUB_SEARCH_REPOSITORIES]:l.schema,[t.GITHUB_VIEW_REPO_STRUCTURE]:r.schema,[t.PACKAGE_SEARCH]:g.schema,[t.GITHUB_CLONE_REPO]:n.schema,[t.LOCAL_RIPGREP]:m.schema,[t.LOCAL_FETCH_CONTENT]:p.schema,[t.LOCAL_FIND_FILES]:c.schema,[t.LOCAL_VIEW_STRUCTURE]:u.schema,[t.LSP_GET_SEMANTIC_CONTENT]:d.schema};function H(e,t){const n=x[e];return o[t]??n[t]}function v(e,o){return o?e.describe(o):e}function O(o,t,n=""){const i={};for(const e of Object.keys(t)){const a=t[e],s=H(o,n?`${n}.${e}`:e);i[e]=v(a,s)}return e.object(i)}function U(e,o){return O(e,o)}const G={id:e.string().optional(),mainResearchGoal:e.string().optional(),researchGoal:e.string().optional(),reasoning:e.string().optional()};export const RipgrepQuerySchema=U(t.LOCAL_RIPGREP,{...G,keywords:e.string(),path:e.string(),mode:e.enum(["paginated","discovery","detailed"]).default("paginated"),fixedString:e.boolean().optional(),perlRegex:e.boolean().optional(),caseInsensitive:e.boolean().optional(),caseSensitive:e.boolean().optional(),wholeWord:e.boolean().optional(),invertMatch:e.boolean().optional(),include:h,exclude:h,excludeDir:h,noIgnore:e.boolean().optional(),hidden:e.boolean().optional(),filesOnly:e.boolean().optional(),filesWithoutMatch:e.boolean().optional(),contextLines:T(),matchContentLength:E(1,L).default(500),maxMatchesPerFile:E(1,L).optional(),maxFiles:E(1,L).optional(),multiline:e.boolean().optional(),multilineDotall:e.boolean().optional(),sort:e.enum(["path","modified","accessed","created"]).default("path"),sortReverse:e.boolean().optional(),langType:e.string().optional(),countLinesPerFile:e.boolean().optional(),countMatchesPerFile:e.boolean().optional(),matchPage:C(),itemsPerPage:E(1,f).optional(),page:_()}).superRefine((e,o)=>{e.filesOnly&&e.filesWithoutMatch&&o.addIssue({code:"custom",message:"filesOnly and filesWithoutMatch are mutually exclusive.",path:["filesWithoutMatch"]}),e.fixedString&&e.perlRegex&&o.addIssue({code:"custom",message:"fixedString and perlRegex are mutually exclusive.",path:["perlRegex"]}),e.caseSensitive&&e.caseInsensitive&&o.addIssue({code:"custom",message:"caseSensitive and caseInsensitive are mutually exclusive.",path:["caseInsensitive"]}),e.multilineDotall&&!e.multiline&&o.addIssue({code:"custom",message:"multilineDotall requires multiline=true.",path:["multilineDotall"]}),e.countLinesPerFile&&e.countMatchesPerFile&&o.addIssue({code:"custom",message:"countLinesPerFile and countMatchesPerFile are mutually exclusive.",path:["countMatchesPerFile"]})});export const FindFilesQuerySchema=U(t.LOCAL_FIND_FILES,{...G,path:e.string(),maxDepth:E(0,100).optional(),minDepth:E(0,100).optional(),names:h,pathPattern:e.string().optional(),regex:e.string().optional(),empty:e.boolean().optional(),modifiedWithin:e.string().optional(),modifiedBefore:e.string().optional(),accessedWithin:e.string().optional(),sizeGreater:e.string().optional(),sizeLess:e.string().optional(),permissions:e.string().optional(),executable:e.boolean().optional(),readable:e.boolean().optional(),writable:e.boolean().optional(),excludeDir:h,limit:E(1,1e4).optional(),details:e.boolean().optional(),showFileLastModified:e.boolean().optional(),sortBy:e.enum(["modified","name","path","size"]).default("modified"),entryType:e.enum(["f","d"]).optional(),page:_(),itemsPerPage:E(1,50).optional()}).superRefine((e,o)=>{void 0!==e.minDepth&&void 0!==e.maxDepth&&e.minDepth>e.maxDepth&&o.addIssue({code:"custom",message:"minDepth must be less than or equal to maxDepth.",path:["minDepth"]})});export const ViewStructureQuerySchema=U(t.LOCAL_VIEW_STRUCTURE,{...G,path:e.string(),details:e.boolean().optional(),hidden:e.boolean().optional(),sortBy:e.enum(["name","size","time","extension"]).default("name"),reverse:e.boolean().optional(),pattern:e.string().optional(),directoriesOnly:e.boolean().optional(),filesOnly:e.boolean().optional(),recursive:e.boolean().optional(),extensions:h,depth:E(0,20).optional(),limit:E(1,1e4).optional(),showFileLastModified:e.boolean().optional(),page:_(),itemsPerPage:E(1,50).optional()}).superRefine((e,o)=>{e.filesOnly&&e.directoriesOnly&&o.addIssue({code:"custom",message:"filesOnly and directoriesOnly are mutually exclusive.",path:["directoriesOnly"]})});function N(e,o){const t=!0===e.fullContent,n=void 0!==e.matchString,i=void 0!==e.startLine||void 0!==e.endLine;t&&n&&o.addIssue({code:"custom",message:"Cannot use fullContent with matchString — these are mutually exclusive extraction methods.",path:["matchString"]}),t&&i&&o.addIssue({code:"custom",message:"Cannot use fullContent with startLine/endLine — these are mutually exclusive extraction methods.",path:["startLine"]}),n&&i&&o.addIssue({code:"custom",message:"Cannot use matchString with startLine/endLine — these are mutually exclusive extraction methods.",path:["startLine"]}),void 0!==e.startLine&&void 0!==e.endLine&&e.endLine<e.startLine&&o.addIssue({code:"custom",message:"Invalid line range: endLine must be greater than or equal to startLine.",path:["endLine"]})}export const FetchContentQuerySchema=U(t.LOCAL_FETCH_CONTENT,{...G,path:e.string(),fullContent:e.boolean().optional(),matchString:e.string().optional(),matchStringIsRegex:e.boolean().optional(),matchStringCaseSensitive:e.boolean().optional(),startLine:R(),endLine:R(),contextLines:E(0,100).default(5),charOffset:I(),charLength:P(),minify:e.enum(["none","standard","symbols"]).default("standard")}).superRefine(N);export const FileContentQuerySchema=U(t.GITHUB_FETCH_CONTENT,{...G,owner:e.string(),repo:e.string(),branch:e.string().optional(),path:e.string(),startLine:R(),endLine:R(),fullContent:e.boolean().optional(),matchString:e.string().optional(),matchStringIsRegex:e.boolean().optional(),matchStringCaseSensitive:e.boolean().optional(),forceRefresh:e.boolean().optional(),type:e.enum(["file","directory"]).default("file"),contextLines:E(0,100).default(5),charOffset:I(),charLength:P(),minify:e.enum(["none","standard","symbols"]).default("standard")}).superRefine(N);export const GitHubCodeSearchQuerySchema=U(t.GITHUB_SEARCH_CODE,{...G,keywordsToSearch:h,owner:e.string().optional(),repo:e.string().optional(),extension:e.string().optional(),filename:e.string().optional(),path:e.string().optional(),language:e.string().optional(),match:e.enum(["file","path"]).default("file"),limit:E(1,100).default(30),page:_(),verbose:e.boolean().optional()});export const GitHubReposSearchSingleQuerySchema=U(t.GITHUB_SEARCH_REPOSITORIES,{...G,keywordsToSearch:h,topicsToSearch:h,language:e.string().optional(),owner:e.string().optional(),stars:e.string().optional(),size:e.string().optional(),created:e.string().optional(),updated:e.string().optional(),match:e.array(e.enum(["name","description","readme"])).optional(),sort:e.enum(["stars","forks","help-wanted-issues","updated","best-match"]).default("best-match"),limit:E(1,100).default(30),page:_(),archived:e.boolean().optional(),visibility:e.enum(["public","private"]).optional(),forks:e.string().optional(),license:e.string().optional(),goodFirstIssues:e.string().optional(),verbose:e.boolean().optional()});export const GitHubPullRequestSearchQuerySchema=U(t.GITHUB_SEARCH_PULL_REQUESTS,{...G,keywordsToSearch:e.array(e.string()).optional(),query:e.string().optional(),prNumber:E(1,S).optional(),owner:e.string().optional(),repo:e.string().optional(),verbose:e.boolean().optional(),state:e.enum(["open","closed","merged"]).optional(),assignee:e.string().optional(),author:e.string().optional(),commenter:e.string().optional(),involves:e.string().optional(),mentions:e.string().optional(),"review-requested":e.string().optional(),"reviewed-by":e.string().optional(),label:e.union([e.string(),e.array(e.string())]).optional(),"no-label":e.boolean().optional(),"no-milestone":e.boolean().optional(),"no-project":e.boolean().optional(),"no-assignee":e.boolean().optional(),head:e.string().optional(),base:e.string().optional(),created:e.string().optional(),updated:e.string().optional(),closed:e.string().optional(),"merged-at":e.string().optional(),comments:e.string().optional(),reactions:e.string().optional(),interactions:e.string().optional(),draft:e.boolean().optional(),match:e.array(e.enum(["title","body","comments"])).optional(),sort:e.enum(["created","updated","best-match","comments","reactions"]).optional(),order:e.enum(["asc","desc"]).optional(),limit:E(1,100).default(30),page:_(),archived:e.boolean().optional(),filePage:C(),commentPage:C(),commitPage:C(),itemsPerPage:E(1,y).default(20),reviewMode:e.literal("full").optional(),content:O(t.GITHUB_SEARCH_PULL_REQUESTS,{metadata:e.boolean().optional(),body:e.boolean().optional(),changedFiles:e.boolean().optional(),patches:O(t.GITHUB_SEARCH_PULL_REQUESTS,{mode:e.enum(["none","selected","all"]).default("none"),files:h,ranges:e.array(O(t.GITHUB_SEARCH_PULL_REQUESTS,{file:e.string(),additions:e.array(E(1,S)).optional(),deletions:e.array(E(1,S)).optional()},"content.patches.ranges")).optional()},"content.patches").optional(),comments:O(t.GITHUB_SEARCH_PULL_REQUESTS,{discussion:e.boolean().optional(),reviewInline:e.boolean().optional(),includeBots:e.boolean().default(!1),file:e.string().optional()},"content.comments").optional(),reviews:e.boolean().optional(),commits:O(t.GITHUB_SEARCH_PULL_REQUESTS,{list:e.boolean().optional(),includeFiles:e.boolean().optional()},"content.commits").optional()},"content").optional(),matchString:e.string().optional(),charOffset:I(),charLength:P()}).superRefine((e,o)=>{const t=e.content?.patches;if(!t)return;const n=(t.files?.length??0)>0,i=(t.ranges?.length??0)>0,a=n||i;"selected"!==t.mode||a||o.addIssue({code:"custom",message:'content.patches.mode="selected" requires non-empty files or ranges.',path:["content","patches","files"]}),"selected"!==t.mode&&a&&o.addIssue({code:"custom",message:'content.patches.files and content.patches.ranges require mode="selected".',path:["content","patches","mode"]})});export const GitHubViewRepoStructureQuerySchema=U(t.GITHUB_VIEW_REPO_STRUCTURE,{...G,owner:e.string(),repo:e.string(),branch:e.string().optional(),path:e.string().optional(),depth:E(0,20).optional(),page:_(),itemsPerPage:E(1,200).default(100)});export const NpmPackageQuerySchema=U(t.PACKAGE_SEARCH,{...G,packageName:e.string(),page:_()});export const CloneRepoQuerySchema=U(t.GITHUB_CLONE_REPO,{...G,owner:e.string(),repo:e.string(),branch:e.string().optional(),sparsePath:e.string().optional(),forceRefresh:e.boolean().optional()});export const BulkCloneRepoSchema=e.object({queries:e.array(CloneRepoQuerySchema).min(1)});const F={...G,uri:e.string(),symbolName:e.string(),lineHint:E(1,S),orderHint:E(0,b).default(0)};export const LSPGotoDefinitionQuerySchema=U(t.LSP_GET_SEMANTIC_CONTENT,{...F,contextLines:T()});export const LSPFindReferencesQuerySchema=U(t.LSP_GET_SEMANTIC_CONTENT,{...F,includeDeclaration:e.boolean().optional(),contextLines:T(),itemsPerPage:E(1,y).optional(),page:_(),groupByFile:e.boolean().optional()});export const LSPCallHierarchyQuerySchema=U(t.LSP_GET_SEMANTIC_CONTENT,{...F,direction:e.enum(["incoming","outgoing"]),depth:E(0,20).optional(),contextLines:T(),itemsPerPage:E(1,y).optional(),page:_()});export const LspGetSemanticsQuerySchema=U(t.LSP_GET_SEMANTIC_CONTENT,{...G,uri:e.string(),type:e.enum(["definition","references","callers","callees","callHierarchy","hover","documentSymbols","typeDefinition","implementation"]).default("definition"),symbolName:e.string().min(1).optional(),lineHint:E(1,S).optional(),orderHint:E(0,b).default(0),depth:E(0,20).optional(),includeDeclaration:e.boolean().default(!0),groupByFile:e.boolean().optional(),page:_(),itemsPerPage:E(1,y).optional(),contextLines:T(),format:e.enum(["structured","compact"]).default("structured"),workspaceRoot:e.string().optional()}).superRefine((e,o)=>{"documentSymbols"!==e.type&&(e.symbolName||o.addIssue({code:"custom",path:["symbolName"],message:"symbolName is required unless type is documentSymbols"}),Number.isInteger(e.lineHint)||o.addIssue({code:"custom",path:["lineHint"],message:"lineHint is required unless type is documentSymbols"}))});
|
|
1
|
+
export{GitHubCodeSearchQuerySchema}from"../resources/tools/ghSearchCode.js";export{FileContentQuerySchema}from"../resources/tools/ghGetFileContent.js";export{GitHubViewRepoStructureQuerySchema}from"../resources/tools/ghViewRepoStructure.js";export{GitHubReposSearchSingleQuerySchema}from"../resources/tools/ghSearchRepos.js";export{GitHubPullRequestSearchQuerySchema}from"../resources/tools/ghHistoryResearch.js";export{NpmPackageQuerySchema}from"../resources/tools/npmSearch.js";export{CloneRepoQuerySchema,BulkCloneRepoSchema}from"../resources/tools/ghCloneRepo.js";export{RipgrepQuerySchema}from"../resources/tools/localSearchCode.js";export{FetchContentQuerySchema}from"../resources/tools/localGetFileContent.js";export{FindFilesQuerySchema}from"../resources/tools/localFindFiles.js";export{ViewStructureQuerySchema}from"../resources/tools/localViewStructure.js";export{LspGetSemanticsQuerySchema,LSPGotoDefinitionQuerySchema,LSPFindReferencesQuerySchema,LSPCallHierarchyQuerySchema}from"../resources/tools/lspGetSemantics.js";export{LocalBinaryInspectQuerySchema}from"../resources/tools/localBinaryInspect.js";
|
package/dist/schemas/runtime.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function validateRipgrepQuery(e){const i=[],t=[];return e&&"object"==typeof e?(e.keywords&&"string"==typeof e.keywords||i.push("`keywords` is required"),e.filesOnly&&e.filesWithoutMatch&&i.push("`filesOnly` and `filesWithoutMatch` are mutually exclusive"),e.countLinesPerFile&&e.countMatchesPerFile&&i.push("`countLinesPerFile` and `countMatchesPerFile` are mutually exclusive"),e.fixedString&&e.perlRegex&&i.push("`fixedString` and `perlRegex` are mutually exclusive"),e.caseSensitive&&e.caseInsensitive&&i.push("`caseSensitive` and `caseInsensitive` are mutually exclusive"),e.multilineDotall&&!e.multiline&&i.push("`multilineDotall` requires `multiline=true`"),{isValid:0===i.length,errors:i,warnings:t}):(i.push("Query must be an object"),{isValid:!1,errors:i,warnings:t})}export function applyWorkflowMode(e){if(!e||"object"!=typeof e)return e;const i=e.mode;if(!i||"string"!=typeof i)return e;const t={...e};return"discovery"===i?void 0===t.filesOnly&&(t.filesOnly=!0):"detailed"===i&&void 0===t.contextLines&&(t.contextLines=3),t}
|
|
1
|
+
export function validateRipgrepQuery(e){const i=[],t=[];return e&&"object"==typeof e?("structural"===e.mode||e.keywords&&"string"==typeof e.keywords||i.push("`keywords` is required"),e.filesOnly&&e.filesWithoutMatch&&i.push("`filesOnly` and `filesWithoutMatch` are mutually exclusive"),e.countLinesPerFile&&e.countMatchesPerFile&&i.push("`countLinesPerFile` and `countMatchesPerFile` are mutually exclusive"),e.fixedString&&e.perlRegex&&i.push("`fixedString` and `perlRegex` are mutually exclusive"),e.caseSensitive&&e.caseInsensitive&&i.push("`caseSensitive` and `caseInsensitive` are mutually exclusive"),e.multilineDotall&&!e.multiline&&i.push("`multilineDotall` requires `multiline=true`"),{isValid:0===i.length,errors:i,warnings:t}):(i.push("Query must be an object"),{isValid:!1,errors:i,warnings:t})}export function applyWorkflowMode(e){if(!e||"object"!=typeof e)return e;const i=e.mode;if(!i||"string"!=typeof i)return e;const t={...e};return"discovery"===i?void 0===t.filesOnly&&(t.filesOnly=!0):"detailed"===i&&void 0===t.contextLines&&(t.contextLines=3),t}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface ToolNames {
|
|
2
2
|
GITHUB_FETCH_CONTENT: "ghGetFileContent";
|
|
3
3
|
GITHUB_SEARCH_CODE: "ghSearchCode";
|
|
4
|
-
GITHUB_SEARCH_PULL_REQUESTS: "
|
|
4
|
+
GITHUB_SEARCH_PULL_REQUESTS: "ghHistoryResearch";
|
|
5
5
|
GITHUB_SEARCH_REPOSITORIES: "ghSearchRepos";
|
|
6
6
|
GITHUB_VIEW_REPO_STRUCTURE: "ghViewRepoStructure";
|
|
7
7
|
PACKAGE_SEARCH: "npmSearch";
|
|
@@ -11,6 +11,7 @@ export interface ToolNames {
|
|
|
11
11
|
LOCAL_FIND_FILES: "localFindFiles";
|
|
12
12
|
LOCAL_VIEW_STRUCTURE: "localViewStructure";
|
|
13
13
|
LSP_GET_SEMANTIC_CONTENT: "lspGetSemantics";
|
|
14
|
+
LOCAL_BINARY_INSPECT: "localBinaryInspect";
|
|
14
15
|
}
|
|
15
16
|
export interface ToolHints {
|
|
16
17
|
readonly empty: readonly string[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const ghSearchPRs={name:"ghSearchPRs",description:'PR search/review. Two modes:\nLIST MODE (no prNumber): returns lean pull_requests[] metadata only — content and reviewMode are silently ignored on list calls.\nDETAIL MODE (prNumber required): fetches requested content surfaces. reviewMode:"full" fetches body+changedFiles+patches+comments+reviews+commits in one call.\nmatchString filters patch/body text to matched sections — response may be larger than expected.\nPR diffs and body are returned raw/exact (no minify) — use the patches selector (mode:"selected" with files/ranges) and charLength/charOffset to control size on large PRs.\nValidation: content.patches.mode:"selected" requires non-empty files[] or ranges[].\nSignals: bodyEmpty=requested empty body, absent=surface not requested (not missing data), sanitizationWarnings=content redacted, in_reply_to_id=reply in thread.\nPagination: search page/limit, content filePage/commentPage/commitPage/itemsPerPage, body charOffset/charLength; page only on hasMore.\nNext: prNumber+reviewMode="full" for single-PR deep dive; when you have N known PR numbers, batch them: queries:[{prNumber:N1,...},{prNumber:N2,...}] (max 5 per call — avoids one round trip per PR). ghGetFileContent for current source, ghSearchCode for usages.',schema:{keywordsToSearch:"All keywords are combined across title/body/comments. Multi-word terms auto phrase-quoted. Use match to restrict scope.",query:'Raw GitHub search string appended after keywords. Use for exact phrases ("Partial Prerendering"), qualifiers (label:bug), or anything not exposed as a field.',match:'PR text fields for keyword search: title, body, and/or comments. Default searches all. Use ["title"] for the most precise match — faster.',prNumber:"Direct PR lookup. Required when requesting body, files, patches, comments, reviews, or commits — content fields are silently ignored without it. owner+repo required when using prNumber — bare prNumber without owner+repo is rejected.",owner:"Repo owner or org.",repo:"Repo name.",verbose:"Set true to add url/sourceBranch/sourceSha/updatedAt/bodyPreview to broad results. prNumber lookup already includes full metadata.",state:'PR state filter: "open", "closed", or "merged". If "merged" is sparse, retry "closed" and filter by mergedAt.',assignee:"Assigned user filter.",author:"Author filter.",commenter:"Commenter filter.",involves:"User involvement filter.",mentions:"Mentioned user filter.","review-requested":"Requested reviewer filter.","reviewed-by":"Reviewer filter.",label:"Label filter.","no-label":"Filter to PRs without labels.","no-milestone":"Filter to PRs without milestone.","no-project":"Filter to PRs without project.","no-assignee":"Filter to PRs without assignee.",head:"Source branch filter.",base:"Target branch filter.",created:"Creation date/window. Format: '>2024-01-01', '<2023-06-01', '2023-01-01..2024-01-01'.",updated:"Update date/window. Same format as created. Tracks activity (comments, pushes).",closed:"Closed date/window. Same format as created.","merged-at":"Merged date/window. Same format as created.",comments:"Comment-count filter (e.g. '>5', '0..10').",reactions:"Reaction-count filter.",interactions:"Comment+reaction-count filter.",draft:"Draft-state filter. true: only drafts; false: only non-drafts; omit: both.",sort:"Sort broad results. 'created': newest first. 'updated': recently active first. 'comments': most discussed. 'reactions': most reacted. 'best-match' (default): GitHub relevance.",order:"Sort direction. 'desc' (default): newest/highest first. 'asc': oldest/lowest first.",archived:"Include PRs from archived repositories. Default excludes archived repos.",limit:"Broad-search result count.",page:"Result page (1-based).",filePage:"Pagination page for changedFiles list.",commentPage:"Pagination page for comments.",commitPage:"Pagination page for commits.",itemsPerPage:"Items per page for content selectors (changedFiles, comments, commits).",reviewMode:'"full": fetches all content surfaces in one call (body + changedFiles + patches + comments + reviews + commits). Only valid with prNumber. Use individual content selectors for targeted reads.',content:"Surface selector object. Only applied when prNumber is set — content is silently ignored on list-mode searches. Select only the surfaces you need to reduce response size.","content.metadata":"PR metadata fields.","content.body":"Full PR description (char-paginated; default window 12,000 chars — use charOffset/charLength for continuation).","content.changedFiles":"File list: path/status/additions/deletions (paged via filePage).","content.patches":"Patch/diff selector.","content.patches.mode":'Patch selection: "none", "selected" with files/ranges (targeted — cheaper), or "all" for every diff.',"content.patches.files":'Non-empty file path list for mode:"selected". Required when mode is "selected".',"content.patches.ranges":'Non-empty per-file line ranges for mode:"selected". Each entry: { file, additions?: number[], deletions?: number[] }. Required when mode is "selected".',"content.patches.ranges.file":"Changed file path for a selected patch range.","content.patches.ranges.additions":"Added-line numbers to include for this file.","content.patches.ranges.deletions":"Deleted-line numbers to include for this file.","content.comments":"PR discussion and inline review comment selector.","content.comments.discussion":"PR thread comments.","content.comments.reviewInline":"Inline code annotations (in_reply_to_id = reply thread).","content.comments.includeBots":"Set true to include CI/bot comments such as Vercel or CodeRabbit.","content.comments.file":"Filter inline comments to one file path.","content.reviews":"Review summaries: APPROVED / CHANGES_REQUESTED.","content.commits":"Commit selector.","content.commits.list":"Commit list (sha, message, author, date).","content.commits.includeFiles":"Per-commit changed-file list.",matchString:"Filter patch/body text to matched sections. Response may be larger than expected when matching large diffs.",charOffset:"Char offset for body pagination.",charLength:"Body page size in chars."}};
|