@octocodeai/octocode-core 4.2.0 → 16.1.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 +210 -299
- package/dist/resources/global.d.ts +3 -0
- package/dist/resources/global.js +1 -0
- package/dist/resources/tools/githubCloneRepo.d.ts +2 -0
- package/dist/resources/tools/githubCloneRepo.js +1 -0
- package/dist/resources/tools/githubGetFileContent.d.ts +2 -0
- package/dist/resources/tools/githubGetFileContent.js +1 -0
- package/dist/resources/tools/githubSearchCode.d.ts +2 -0
- package/dist/resources/tools/githubSearchCode.js +1 -0
- package/dist/resources/tools/githubSearchPullRequests.d.ts +2 -0
- package/dist/resources/tools/githubSearchPullRequests.js +1 -0
- package/dist/resources/tools/githubSearchRepositories.d.ts +2 -0
- package/dist/resources/tools/githubSearchRepositories.js +1 -0
- package/dist/resources/tools/githubViewRepoStructure.d.ts +2 -0
- package/dist/resources/tools/githubViewRepoStructure.js +1 -0
- package/dist/resources/tools/localFindFiles.d.ts +2 -0
- package/dist/resources/tools/localFindFiles.js +1 -0
- package/dist/resources/tools/localGetFileContent.d.ts +2 -0
- package/dist/resources/tools/localGetFileContent.js +1 -0
- package/dist/resources/tools/localSearchCode.d.ts +2 -0
- package/dist/resources/tools/localSearchCode.js +1 -0
- package/dist/resources/tools/localViewStructure.d.ts +2 -0
- package/dist/resources/tools/localViewStructure.js +1 -0
- package/dist/resources/tools/lspGetSemanticContent.d.ts +2 -0
- package/dist/resources/tools/lspGetSemanticContent.js +1 -0
- package/dist/resources/tools/packageSearch.d.ts +2 -0
- package/dist/resources/tools/packageSearch.js +1 -0
- package/dist/schemas/extraTypes.d.ts +15 -1
- package/dist/schemas/index.d.ts +207 -88
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/outputs.d.ts +34 -2
- package/dist/schemas/outputs.js +1 -1
- package/dist/schemas/runtime.js +1 -1
- package/dist/types/index.d.ts +17 -5
- package/package.json +2 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Zod input schemas — the canonical schemas every tool exposes to MCP
|
|
3
|
-
* clients.
|
|
4
|
-
*
|
|
3
|
+
* clients. Keep public field names, stable defaults, numeric bounds, and
|
|
4
|
+
* cross-field validation here so generated JSON Schema carries the contract.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* `.extend({ field: z.enum([...]) })` without conflict.
|
|
9
|
-
* - Numbers are unbounded — bounds are applied by the overlay.
|
|
10
|
-
* - Optional everywhere except `pattern` / `path` / `uri` / etc.
|
|
6
|
+
* Package overlays may add runtime clamping or environment-specific behavior,
|
|
7
|
+
* but legacy aliases do not belong here.
|
|
11
8
|
*
|
|
12
9
|
* The overlay calls `.extend()`, `.shape`, `.element` on these schemas,
|
|
13
10
|
* so they must remain `z.ZodObject<...>` shapes (no transforms / unions
|
|
@@ -15,51 +12,45 @@
|
|
|
15
12
|
*/
|
|
16
13
|
import { z } from "zod";
|
|
17
14
|
export declare const RipgrepQuerySchema: z.ZodObject<{
|
|
18
|
-
|
|
15
|
+
keywords: z.ZodString;
|
|
19
16
|
path: z.ZodString;
|
|
20
|
-
mode: z.
|
|
17
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
18
|
+
paginated: "paginated";
|
|
19
|
+
discovery: "discovery";
|
|
20
|
+
detailed: "detailed";
|
|
21
|
+
}>>;
|
|
21
22
|
fixedString: z.ZodOptional<z.ZodBoolean>;
|
|
22
23
|
perlRegex: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
smartCase: z.ZodOptional<z.ZodBoolean>;
|
|
24
24
|
caseInsensitive: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
wholeWord: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
invertMatch: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
type: z.ZodOptional<z.ZodString>;
|
|
29
28
|
include: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
29
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
30
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
31
|
noIgnore: z.ZodOptional<z.ZodBoolean>;
|
|
33
32
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
-
followSymlinks: z.ZodOptional<z.ZodBoolean>;
|
|
35
33
|
filesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
36
34
|
filesWithoutMatch: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
count: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
countMatches: z.ZodOptional<z.ZodBoolean>;
|
|
39
35
|
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
40
|
-
|
|
41
|
-
afterContext: z.ZodOptional<z.ZodNumber>;
|
|
42
|
-
matchContentLength: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
matchContentLength: z.ZodDefault<z.ZodNumber>;
|
|
43
37
|
maxMatchesPerFile: z.ZodOptional<z.ZodNumber>;
|
|
44
38
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
filesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
46
|
-
filePageNumber: z.ZodOptional<z.ZodNumber>;
|
|
47
|
-
matchesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
48
39
|
multiline: z.ZodOptional<z.ZodBoolean>;
|
|
49
40
|
multilineDotall: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
41
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
42
|
+
path: "path";
|
|
43
|
+
modified: "modified";
|
|
44
|
+
created: "created";
|
|
45
|
+
accessed: "accessed";
|
|
46
|
+
}>>;
|
|
54
47
|
sortReverse: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
threads: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
mmap: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
langType: z.ZodOptional<z.ZodString>;
|
|
49
|
+
countLinesPerFile: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
countMatchesPerFile: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
matchPage: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
63
54
|
id: z.ZodOptional<z.ZodString>;
|
|
64
55
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
65
56
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -69,13 +60,9 @@ export declare const FindFilesQuerySchema: z.ZodObject<{
|
|
|
69
60
|
path: z.ZodString;
|
|
70
61
|
maxDepth: z.ZodOptional<z.ZodNumber>;
|
|
71
62
|
minDepth: z.ZodOptional<z.ZodNumber>;
|
|
72
|
-
name: z.ZodOptional<z.ZodString>;
|
|
73
|
-
iname: z.ZodOptional<z.ZodString>;
|
|
74
63
|
names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
75
64
|
pathPattern: z.ZodOptional<z.ZodString>;
|
|
76
65
|
regex: z.ZodOptional<z.ZodString>;
|
|
77
|
-
regexType: z.ZodOptional<z.ZodString>;
|
|
78
|
-
type: z.ZodOptional<z.ZodString>;
|
|
79
66
|
empty: z.ZodOptional<z.ZodBoolean>;
|
|
80
67
|
modifiedWithin: z.ZodOptional<z.ZodString>;
|
|
81
68
|
modifiedBefore: z.ZodOptional<z.ZodString>;
|
|
@@ -89,10 +76,19 @@ export declare const FindFilesQuerySchema: z.ZodObject<{
|
|
|
89
76
|
excludeDir: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
90
77
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
91
78
|
details: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
-
filesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
93
|
-
filePageNumber: z.ZodOptional<z.ZodNumber>;
|
|
94
79
|
showFileLastModified: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
sortBy: z.
|
|
80
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
path: "path";
|
|
82
|
+
modified: "modified";
|
|
83
|
+
size: "size";
|
|
84
|
+
name: "name";
|
|
85
|
+
}>>;
|
|
86
|
+
entryType: z.ZodOptional<z.ZodEnum<{
|
|
87
|
+
f: "f";
|
|
88
|
+
d: "d";
|
|
89
|
+
}>>;
|
|
90
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
96
92
|
id: z.ZodOptional<z.ZodString>;
|
|
97
93
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
98
94
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -102,20 +98,23 @@ export declare const ViewStructureQuerySchema: z.ZodObject<{
|
|
|
102
98
|
path: z.ZodString;
|
|
103
99
|
details: z.ZodOptional<z.ZodBoolean>;
|
|
104
100
|
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
|
|
106
|
-
|
|
101
|
+
sortBy: z.ZodDefault<z.ZodEnum<{
|
|
102
|
+
extension: "extension";
|
|
103
|
+
size: "size";
|
|
104
|
+
name: "name";
|
|
105
|
+
time: "time";
|
|
106
|
+
}>>;
|
|
107
107
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
-
entriesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
entryPageNumber: z.ZodOptional<z.ZodNumber>;
|
|
110
108
|
pattern: z.ZodOptional<z.ZodString>;
|
|
111
109
|
directoriesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
112
110
|
filesOnly: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
|
|
111
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
114
112
|
extensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
115
113
|
depth: z.ZodOptional<z.ZodNumber>;
|
|
116
|
-
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
117
114
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
118
115
|
showFileLastModified: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
117
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
119
118
|
id: z.ZodOptional<z.ZodString>;
|
|
120
119
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
121
120
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -125,11 +124,18 @@ export declare const FetchContentQuerySchema: z.ZodObject<{
|
|
|
125
124
|
path: z.ZodString;
|
|
126
125
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
127
126
|
matchString: z.ZodOptional<z.ZodString>;
|
|
128
|
-
matchStringContextLines: z.ZodOptional<z.ZodNumber>;
|
|
129
127
|
matchStringIsRegex: z.ZodOptional<z.ZodBoolean>;
|
|
130
128
|
matchStringCaseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
131
129
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
132
130
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
132
|
+
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
charLength: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
minify: z.ZodDefault<z.ZodEnum<{
|
|
135
|
+
none: "none";
|
|
136
|
+
standard: "standard";
|
|
137
|
+
symbols: "symbols";
|
|
138
|
+
}>>;
|
|
133
139
|
id: z.ZodOptional<z.ZodString>;
|
|
134
140
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
135
141
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -144,11 +150,22 @@ export declare const FileContentQuerySchema: z.ZodObject<{
|
|
|
144
150
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
145
151
|
fullContent: z.ZodOptional<z.ZodBoolean>;
|
|
146
152
|
matchString: z.ZodOptional<z.ZodString>;
|
|
147
|
-
matchStringContextLines: z.ZodOptional<z.ZodNumber>;
|
|
148
153
|
matchStringIsRegex: z.ZodOptional<z.ZodBoolean>;
|
|
149
154
|
matchStringCaseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
150
155
|
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
-
|
|
156
|
+
/** Discriminator allowing fetch executor to handle directories. */
|
|
157
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
158
|
+
file: "file";
|
|
159
|
+
directory: "directory";
|
|
160
|
+
}>>;
|
|
161
|
+
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
162
|
+
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
charLength: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
minify: z.ZodDefault<z.ZodEnum<{
|
|
165
|
+
none: "none";
|
|
166
|
+
standard: "standard";
|
|
167
|
+
symbols: "symbols";
|
|
168
|
+
}>>;
|
|
152
169
|
id: z.ZodOptional<z.ZodString>;
|
|
153
170
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
154
171
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -161,12 +178,13 @@ export declare const GitHubCodeSearchQuerySchema: z.ZodObject<{
|
|
|
161
178
|
extension: z.ZodOptional<z.ZodString>;
|
|
162
179
|
filename: z.ZodOptional<z.ZodString>;
|
|
163
180
|
path: z.ZodOptional<z.ZodString>;
|
|
164
|
-
match: z.
|
|
181
|
+
match: z.ZodDefault<z.ZodEnum<{
|
|
165
182
|
file: "file";
|
|
166
183
|
path: "path";
|
|
167
184
|
}>>;
|
|
168
|
-
limit: z.
|
|
169
|
-
page: z.
|
|
185
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
186
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
187
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
170
188
|
id: z.ZodOptional<z.ZodString>;
|
|
171
189
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
172
190
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -182,24 +200,45 @@ export declare const GitHubReposSearchSingleQuerySchema: z.ZodObject<{
|
|
|
182
200
|
created: z.ZodOptional<z.ZodString>;
|
|
183
201
|
updated: z.ZodOptional<z.ZodString>;
|
|
184
202
|
match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
185
|
-
name: "name";
|
|
186
203
|
description: "description";
|
|
204
|
+
name: "name";
|
|
187
205
|
readme: "readme";
|
|
188
206
|
}>>>;
|
|
189
|
-
sort: z.
|
|
190
|
-
|
|
191
|
-
|
|
207
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
208
|
+
updated: "updated";
|
|
209
|
+
stars: "stars";
|
|
210
|
+
forks: "forks";
|
|
211
|
+
"help-wanted-issues": "help-wanted-issues";
|
|
212
|
+
"best-match": "best-match";
|
|
213
|
+
}>>;
|
|
214
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
215
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
216
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
218
|
+
public: "public";
|
|
219
|
+
private: "private";
|
|
220
|
+
}>>;
|
|
221
|
+
forks: z.ZodOptional<z.ZodString>;
|
|
222
|
+
license: z.ZodOptional<z.ZodString>;
|
|
223
|
+
goodFirstIssues: z.ZodOptional<z.ZodString>;
|
|
224
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
192
225
|
id: z.ZodOptional<z.ZodString>;
|
|
193
226
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
194
227
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
195
228
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
196
229
|
}, z.core.$strip>;
|
|
197
230
|
export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{
|
|
231
|
+
keywordsToSearch: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
198
232
|
query: z.ZodOptional<z.ZodString>;
|
|
199
233
|
prNumber: z.ZodOptional<z.ZodNumber>;
|
|
200
234
|
owner: z.ZodOptional<z.ZodString>;
|
|
201
235
|
repo: z.ZodOptional<z.ZodString>;
|
|
202
|
-
|
|
236
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
open: "open";
|
|
239
|
+
closed: "closed";
|
|
240
|
+
merged: "merged";
|
|
241
|
+
}>>;
|
|
203
242
|
assignee: z.ZodOptional<z.ZodString>;
|
|
204
243
|
author: z.ZodOptional<z.ZodString>;
|
|
205
244
|
commenter: z.ZodOptional<z.ZodString>;
|
|
@@ -222,20 +261,66 @@ export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{
|
|
|
222
261
|
reactions: z.ZodOptional<z.ZodString>;
|
|
223
262
|
interactions: z.ZodOptional<z.ZodString>;
|
|
224
263
|
draft: z.ZodOptional<z.ZodBoolean>;
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
264
|
+
match: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
265
|
+
comments: "comments";
|
|
266
|
+
title: "title";
|
|
267
|
+
body: "body";
|
|
268
|
+
}>>>;
|
|
269
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
270
|
+
created: "created";
|
|
271
|
+
updated: "updated";
|
|
272
|
+
comments: "comments";
|
|
273
|
+
reactions: "reactions";
|
|
274
|
+
"best-match": "best-match";
|
|
275
|
+
}>>;
|
|
276
|
+
order: z.ZodOptional<z.ZodEnum<{
|
|
277
|
+
asc: "asc";
|
|
278
|
+
desc: "desc";
|
|
279
|
+
}>>;
|
|
280
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
281
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
282
|
+
archived: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
filePage: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
commentPage: z.ZodOptional<z.ZodNumber>;
|
|
285
|
+
commitPage: z.ZodOptional<z.ZodNumber>;
|
|
286
|
+
itemsPerPage: z.ZodDefault<z.ZodNumber>;
|
|
287
|
+
reviewMode: z.ZodOptional<z.ZodLiteral<"full">>;
|
|
288
|
+
content: z.ZodOptional<z.ZodObject<{
|
|
289
|
+
metadata: z.ZodOptional<z.ZodBoolean>;
|
|
290
|
+
body: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
changedFiles: z.ZodOptional<z.ZodBoolean>;
|
|
292
|
+
patches: z.ZodOptional<z.ZodObject<{
|
|
293
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
294
|
+
none: "none";
|
|
295
|
+
selected: "selected";
|
|
296
|
+
all: "all";
|
|
297
|
+
}>>;
|
|
298
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
299
|
+
ranges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
|
+
file: z.ZodString;
|
|
301
|
+
additions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
302
|
+
deletions: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
303
|
+
}, z.core.$strip>>>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
comments: z.ZodOptional<z.ZodObject<{
|
|
306
|
+
discussion: z.ZodOptional<z.ZodBoolean>;
|
|
307
|
+
reviewInline: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
includeBots: z.ZodDefault<z.ZodBoolean>;
|
|
309
|
+
file: z.ZodOptional<z.ZodString>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
reviews: z.ZodOptional<z.ZodBoolean>;
|
|
312
|
+
commits: z.ZodOptional<z.ZodObject<{
|
|
313
|
+
list: z.ZodOptional<z.ZodBoolean>;
|
|
314
|
+
includeFiles: z.ZodOptional<z.ZodBoolean>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
}, z.core.$strip>>;
|
|
317
|
+
matchString: z.ZodOptional<z.ZodString>;
|
|
318
|
+
charOffset: z.ZodOptional<z.ZodNumber>;
|
|
319
|
+
charLength: z.ZodOptional<z.ZodNumber>;
|
|
320
|
+
minify: z.ZodDefault<z.ZodEnum<{
|
|
321
|
+
none: "none";
|
|
322
|
+
standard: "standard";
|
|
323
|
+
}>>;
|
|
239
324
|
id: z.ZodOptional<z.ZodString>;
|
|
240
325
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
241
326
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -247,18 +332,22 @@ export declare const GitHubViewRepoStructureQuerySchema: z.ZodObject<{
|
|
|
247
332
|
branch: z.ZodOptional<z.ZodString>;
|
|
248
333
|
path: z.ZodOptional<z.ZodString>;
|
|
249
334
|
depth: z.ZodOptional<z.ZodNumber>;
|
|
250
|
-
|
|
251
|
-
|
|
335
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
336
|
+
itemsPerPage: z.ZodDefault<z.ZodNumber>;
|
|
337
|
+
verbose: z.ZodOptional<z.ZodBoolean>;
|
|
252
338
|
id: z.ZodOptional<z.ZodString>;
|
|
253
339
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
254
340
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
255
341
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
256
342
|
}, z.core.$strip>;
|
|
257
343
|
export declare const NpmPackageQuerySchema: z.ZodObject<{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
344
|
+
packageName: z.ZodString;
|
|
345
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
346
|
+
full: "full";
|
|
347
|
+
smart: "smart";
|
|
348
|
+
lean: "lean";
|
|
349
|
+
}>>;
|
|
350
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
262
351
|
id: z.ZodOptional<z.ZodString>;
|
|
263
352
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
264
353
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -268,7 +357,7 @@ export declare const CloneRepoQuerySchema: z.ZodObject<{
|
|
|
268
357
|
owner: z.ZodString;
|
|
269
358
|
repo: z.ZodString;
|
|
270
359
|
branch: z.ZodOptional<z.ZodString>;
|
|
271
|
-
|
|
360
|
+
sparsePath: z.ZodOptional<z.ZodString>;
|
|
272
361
|
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
273
362
|
id: z.ZodOptional<z.ZodString>;
|
|
274
363
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -280,20 +369,20 @@ export declare const BulkCloneRepoSchema: z.ZodObject<{
|
|
|
280
369
|
owner: z.ZodString;
|
|
281
370
|
repo: z.ZodString;
|
|
282
371
|
branch: z.ZodOptional<z.ZodString>;
|
|
283
|
-
|
|
372
|
+
sparsePath: z.ZodOptional<z.ZodString>;
|
|
284
373
|
forceRefresh: z.ZodOptional<z.ZodBoolean>;
|
|
285
374
|
id: z.ZodOptional<z.ZodString>;
|
|
286
375
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
287
376
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
288
377
|
reasoning: z.ZodOptional<z.ZodString>;
|
|
289
378
|
}, z.core.$strip>>;
|
|
290
|
-
}, z.core.$
|
|
379
|
+
}, z.core.$strict>;
|
|
291
380
|
export declare const LSPGotoDefinitionQuerySchema: z.ZodObject<{
|
|
292
381
|
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
293
382
|
uri: z.ZodString;
|
|
294
383
|
symbolName: z.ZodString;
|
|
295
384
|
lineHint: z.ZodNumber;
|
|
296
|
-
orderHint: z.
|
|
385
|
+
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
297
386
|
id: z.ZodOptional<z.ZodString>;
|
|
298
387
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
299
388
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -302,15 +391,13 @@ export declare const LSPGotoDefinitionQuerySchema: z.ZodObject<{
|
|
|
302
391
|
export declare const LSPFindReferencesQuerySchema: z.ZodObject<{
|
|
303
392
|
includeDeclaration: z.ZodOptional<z.ZodBoolean>;
|
|
304
393
|
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
305
|
-
|
|
306
|
-
page: z.
|
|
394
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
307
396
|
groupByFile: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
-
includePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
309
|
-
excludePattern: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
310
397
|
uri: z.ZodString;
|
|
311
398
|
symbolName: z.ZodString;
|
|
312
399
|
lineHint: z.ZodNumber;
|
|
313
|
-
orderHint: z.
|
|
400
|
+
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
314
401
|
id: z.ZodOptional<z.ZodString>;
|
|
315
402
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
316
403
|
researchGoal: z.ZodOptional<z.ZodString>;
|
|
@@ -323,12 +410,44 @@ export declare const LSPCallHierarchyQuerySchema: z.ZodObject<{
|
|
|
323
410
|
}>;
|
|
324
411
|
depth: z.ZodOptional<z.ZodNumber>;
|
|
325
412
|
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
|
|
327
|
-
page: z.
|
|
413
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
414
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
328
415
|
uri: z.ZodString;
|
|
329
416
|
symbolName: z.ZodString;
|
|
330
417
|
lineHint: z.ZodNumber;
|
|
331
|
-
orderHint: z.
|
|
418
|
+
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
419
|
+
id: z.ZodOptional<z.ZodString>;
|
|
420
|
+
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
421
|
+
researchGoal: z.ZodOptional<z.ZodString>;
|
|
422
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
export declare const LspGetSemanticContentQuerySchema: z.ZodObject<{
|
|
425
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
426
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
427
|
+
references: "references";
|
|
428
|
+
definition: "definition";
|
|
429
|
+
callers: "callers";
|
|
430
|
+
callees: "callees";
|
|
431
|
+
callHierarchy: "callHierarchy";
|
|
432
|
+
hover: "hover";
|
|
433
|
+
documentSymbols: "documentSymbols";
|
|
434
|
+
typeDefinition: "typeDefinition";
|
|
435
|
+
implementation: "implementation";
|
|
436
|
+
}>>;
|
|
437
|
+
symbolName: z.ZodOptional<z.ZodString>;
|
|
438
|
+
lineHint: z.ZodOptional<z.ZodNumber>;
|
|
439
|
+
orderHint: z.ZodDefault<z.ZodNumber>;
|
|
440
|
+
depth: z.ZodOptional<z.ZodNumber>;
|
|
441
|
+
includeDeclaration: z.ZodDefault<z.ZodBoolean>;
|
|
442
|
+
groupByFile: z.ZodOptional<z.ZodBoolean>;
|
|
443
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
444
|
+
itemsPerPage: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
contextLines: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
447
|
+
structured: "structured";
|
|
448
|
+
compact: "compact";
|
|
449
|
+
}>>;
|
|
450
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
332
451
|
id: z.ZodOptional<z.ZodString>;
|
|
333
452
|
mainResearchGoal: z.ZodOptional<z.ZodString>;
|
|
334
453
|
researchGoal: z.ZodOptional<z.ZodString>;
|
package/dist/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z as o}from"zod";const n=o.array(o.string()).optional(),t={id:o.string().optional(),mainResearchGoal:o.string().optional(),researchGoal:o.string().optional(),reasoning:o.string().optional()};export const RipgrepQuerySchema=o.object({...t,pattern:o.string(),path:o.string(),mode:o.string().optional(),fixedString:o.boolean().optional(),perlRegex:o.boolean().optional(),smartCase:o.boolean().optional(),caseInsensitive:o.boolean().optional(),caseSensitive:o.boolean().optional(),wholeWord:o.boolean().optional(),invertMatch:o.boolean().optional(),type:o.string().optional(),include:n,exclude:n,excludeDir:n,noIgnore:o.boolean().optional(),hidden:o.boolean().optional(),followSymlinks:o.boolean().optional(),filesOnly:o.boolean().optional(),filesWithoutMatch:o.boolean().optional(),count:o.boolean().optional(),countMatches:o.boolean().optional(),contextLines:o.number().int().optional(),beforeContext:o.number().int().optional(),afterContext:o.number().int().optional(),matchContentLength:o.number().int().optional(),maxMatchesPerFile:o.number().int().optional(),maxFiles:o.number().int().optional(),filesPerPage:o.number().int().optional(),filePageNumber:o.number().int().optional(),matchesPerPage:o.number().int().optional(),multiline:o.boolean().optional(),multilineDotall:o.boolean().optional(),binaryFiles:o.string().optional(),includeStats:o.boolean().optional(),encoding:o.string().optional(),sort:o.string().optional(),sortReverse:o.boolean().optional(),noMessages:o.boolean().optional(),lineRegexp:o.boolean().optional(),passthru:o.boolean().optional(),debug:o.boolean().optional(),showFileLastModified:o.boolean().optional(),noUnicode:o.boolean().optional(),threads:o.number().int().optional(),mmap:o.boolean().optional()});export const FindFilesQuerySchema=o.object({...t,path:o.string(),maxDepth:o.number().int().optional(),minDepth:o.number().int().optional(),name:o.string().optional(),iname:o.string().optional(),names:n,pathPattern:o.string().optional(),regex:o.string().optional(),regexType:o.string().optional(),type:o.string().optional(),empty:o.boolean().optional(),modifiedWithin:o.string().optional(),modifiedBefore:o.string().optional(),accessedWithin:o.string().optional(),sizeGreater:o.string().optional(),sizeLess:o.string().optional(),permissions:o.string().optional(),executable:o.boolean().optional(),readable:o.boolean().optional(),writable:o.boolean().optional(),excludeDir:n,limit:o.number().int().optional(),details:o.boolean().optional(),filesPerPage:o.number().int().optional(),filePageNumber:o.number().int().optional(),showFileLastModified:o.boolean().optional(),sortBy:o.string().optional()});export const ViewStructureQuerySchema=o.object({...t,path:o.string(),details:o.boolean().optional(),hidden:o.boolean().optional(),humanReadable:o.boolean().optional(),sortBy:o.string().optional(),reverse:o.boolean().optional(),entriesPerPage:o.number().int().optional(),entryPageNumber:o.number().int().optional(),pattern:o.string().optional(),directoriesOnly:o.boolean().optional(),filesOnly:o.boolean().optional(),extension:o.string().optional(),extensions:n,depth:o.number().int().optional(),recursive:o.boolean().optional(),limit:o.number().int().optional(),showFileLastModified:o.boolean().optional()});export const FetchContentQuerySchema=o.object({...t,path:o.string(),fullContent:o.boolean().optional(),matchString:o.string().optional(),matchStringContextLines:o.number().int().optional(),matchStringIsRegex:o.boolean().optional(),matchStringCaseSensitive:o.boolean().optional(),startLine:o.number().int().optional(),endLine:o.number().int().optional()});export const FileContentQuerySchema=o.object({...t,owner:o.string(),repo:o.string(),branch:o.string().optional(),path:o.string(),startLine:o.number().int().optional(),endLine:o.number().int().optional(),fullContent:o.boolean().optional(),matchString:o.string().optional(),matchStringContextLines:o.number().int().optional(),matchStringIsRegex:o.boolean().optional(),matchStringCaseSensitive:o.boolean().optional(),forceRefresh:o.boolean().optional(),type:o.string().optional()});export const GitHubCodeSearchQuerySchema=o.object({...t,keywordsToSearch:n,owner:o.string().optional(),repo:o.string().optional(),extension:o.string().optional(),filename:o.string().optional(),path:o.string().optional(),match:o.enum(["file","path"]).optional(),limit:o.number().int().optional(),page:o.number().int().optional()});export const GitHubReposSearchSingleQuerySchema=o.object({...t,keywordsToSearch:n,topicsToSearch:n,language:o.string().optional(),owner:o.string().optional(),stars:o.string().optional(),size:o.string().optional(),created:o.string().optional(),updated:o.string().optional(),match:o.array(o.enum(["name","description","readme"])).optional(),sort:o.string().optional(),limit:o.number().int().optional(),page:o.number().int().optional()});export const GitHubPullRequestSearchQuerySchema=o.object({...t,query:o.string().optional(),prNumber:o.number().int().optional(),owner:o.string().optional(),repo:o.string().optional(),state:o.string().optional(),assignee:o.string().optional(),author:o.string().optional(),commenter:o.string().optional(),involves:o.string().optional(),mentions:o.string().optional(),"review-requested":o.string().optional(),"reviewed-by":o.string().optional(),label:o.union([o.string(),o.array(o.string())]).optional(),"no-label":o.boolean().optional(),"no-milestone":o.boolean().optional(),"no-project":o.boolean().optional(),"no-assignee":o.boolean().optional(),head:o.string().optional(),base:o.string().optional(),created:o.string().optional(),updated:o.string().optional(),closed:o.string().optional(),"merged-at":o.string().optional(),comments:o.string().optional(),reactions:o.string().optional(),interactions:o.string().optional(),draft:o.boolean().optional(),merged:o.boolean().optional(),matchScope:n,sort:o.string().optional(),order:o.string().optional(),limit:o.number().int().optional(),page:o.number().int().optional(),withComments:o.boolean().optional(),withCommits:o.boolean().optional(),type:o.string().optional(),partialContentMetadata:o.array(o.object({file:o.string(),additions:o.array(o.number().int()).optional(),deletions:o.array(o.number().int()).optional()})).optional()});export const GitHubViewRepoStructureQuerySchema=o.object({...t,owner:o.string(),repo:o.string(),branch:o.string().optional(),path:o.string().optional(),depth:o.number().int().optional(),entriesPerPage:o.number().int().optional(),entryPageNumber:o.number().int().optional()});export const NpmPackageQuerySchema=o.object({...t,ecosystem:o.literal("npm").optional(),name:o.string(),searchLimit:o.number().int().optional(),npmFetchMetadata:o.boolean().optional()});export const CloneRepoQuerySchema=o.object({...t,owner:o.string(),repo:o.string(),branch:o.string().optional(),sparse_path:o.string().optional(),forceRefresh:o.boolean().optional()});export const BulkCloneRepoSchema=o.object({queries:o.array(CloneRepoQuerySchema).min(1)});const e={...t,uri:o.string(),symbolName:o.string(),lineHint:o.number().int(),orderHint:o.number().int().optional()};export const LSPGotoDefinitionQuerySchema=o.object({...e,contextLines:o.number().int().optional()});export const LSPFindReferencesQuerySchema=o.object({...e,includeDeclaration:o.boolean().optional(),contextLines:o.number().int().optional(),referencesPerPage:o.number().int().optional(),page:o.number().int().optional(),groupByFile:o.boolean().optional(),includePattern:n,excludePattern:n});export const LSPCallHierarchyQuerySchema=o.object({...e,direction:o.enum(["incoming","outgoing"]),depth:o.number().int().optional(),contextLines:o.number().int().optional(),callsPerPage:o.number().int().optional(),page:o.number().int().optional()});
|
|
1
|
+
import{z as e}from"zod";import{baseSchema as o,toolNames as t}from"../resources/global.js";import{githubCloneRepo as n}from"../resources/tools/githubCloneRepo.js";import{githubGetFileContent as i}from"../resources/tools/githubGetFileContent.js";import{githubSearchCode as a}from"../resources/tools/githubSearchCode.js";import{githubSearchPullRequests as s}from"../resources/tools/githubSearchPullRequests.js";import{githubSearchRepositories as l}from"../resources/tools/githubSearchRepositories.js";import{githubViewRepoStructure as r}from"../resources/tools/githubViewRepoStructure.js";import{localFindFiles as c}from"../resources/tools/localFindFiles.js";import{localGetFileContent as p}from"../resources/tools/localGetFileContent.js";import{localSearchCode as u}from"../resources/tools/localSearchCode.js";import{localViewStructure as m}from"../resources/tools/localViewStructure.js";import{lspGetSemanticContent as d}from"../resources/tools/lspGetSemanticContent.js";import{packageSearch as g}from"../resources/tools/packageSearch.js";const h=e.array(e.string()).optional(),f=1e3,b=1e9,S=1e5,y=100,L=1e5;function E(o,t){return e.number().int().min(o).max(t)}function C(){return E(1,f).default(1)}function _(){return E(1,f).optional()}function T(){return E(0,100).optional()}function R(){return E(1,b).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]:u.schema,[t.LOCAL_FETCH_CONTENT]:p.schema,[t.LOCAL_FIND_FILES]:c.schema,[t.LOCAL_VIEW_STRUCTURE]:m.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.strictObject(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:_(),itemsPerPage:E(1,f).optional(),page:C()}).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:C(),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:C(),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(),match:e.enum(["file","path"]).default("file"),limit:E(1,100).default(30),page:C(),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:C(),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,b).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:C(),archived:e.boolean().optional(),filePage:_(),commentPage:_(),commitPage:_(),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,b)).optional(),deletions:e.array(E(1,b)).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(),minify:e.enum(["none","standard"]).default("standard")}).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:C(),itemsPerPage:E(1,200).default(100),verbose:e.boolean().optional()});export const NpmPackageQuerySchema=U(t.PACKAGE_SEARCH,{...G,packageName:e.string(),mode:e.enum(["smart","full","lean"]).default("smart"),page:C()});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.strictObject({queries:e.array(CloneRepoQuerySchema).min(1)});const F={...G,uri:e.string(),symbolName:e.string(),lineHint:E(1,b),orderHint:E(0,S).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:C(),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:C()});export const LspGetSemanticContentQuerySchema=U(t.LSP_GET_SEMANTIC_CONTENT,{...G,uri:e.string().optional(),type:e.enum(["definition","references","callers","callees","callHierarchy","hover","documentSymbols","typeDefinition","implementation"]).default("definition"),symbolName:e.string().min(1).optional(),lineHint:E(1,b).optional(),orderHint:E(0,S).default(0),depth:E(0,20).optional(),includeDeclaration:e.boolean().default(!0),groupByFile:e.boolean().optional(),page:C(),itemsPerPage:E(1,y).optional(),contextLines:T(),format:e.enum(["structured","compact"]).default("structured"),workspaceRoot:e.string().optional()}).superRefine((e,o)=>{e.uri||o.addIssue({code:"custom",path:["uri"],message:"uri is required"}),"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"}))});
|
|
@@ -136,13 +136,17 @@ export declare const LocalViewStructureOutputSchema: z.ZodObject<{
|
|
|
136
136
|
error: import("../types/index.js").ToolStatus.Error;
|
|
137
137
|
}>>;
|
|
138
138
|
data: z.ZodOptional<z.ZodObject<{
|
|
139
|
-
|
|
139
|
+
path: z.ZodOptional<z.ZodString>;
|
|
140
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
141
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
142
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
143
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
144
|
path: z.ZodString;
|
|
141
145
|
name: z.ZodString;
|
|
142
146
|
type: z.ZodString;
|
|
143
147
|
size: z.ZodOptional<z.ZodNumber>;
|
|
144
148
|
modified: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strip
|
|
149
|
+
}, z.core.$strip>>>;
|
|
146
150
|
summary: z.ZodOptional<z.ZodString>;
|
|
147
151
|
pagination: z.ZodOptional<z.ZodObject<{
|
|
148
152
|
currentPage: z.ZodNumber;
|
|
@@ -158,6 +162,10 @@ export declare const LocalViewStructureOutputSchema: z.ZodObject<{
|
|
|
158
162
|
matchesPerPage: z.ZodOptional<z.ZodNumber>;
|
|
159
163
|
}, z.core.$strip>>;
|
|
160
164
|
}, z.core.$strip>>;
|
|
165
|
+
path: z.ZodOptional<z.ZodString>;
|
|
166
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
|
+
folders: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
|
+
links: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
169
|
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
162
170
|
path: z.ZodString;
|
|
163
171
|
name: z.ZodString;
|
|
@@ -193,6 +201,12 @@ export declare const LocalGetFileContentOutputSchema: z.ZodObject<{
|
|
|
193
201
|
data: z.ZodOptional<z.ZodObject<{
|
|
194
202
|
path: z.ZodString;
|
|
195
203
|
content: z.ZodString;
|
|
204
|
+
contentView: z.ZodOptional<z.ZodEnum<{
|
|
205
|
+
none: "none";
|
|
206
|
+
standard: "standard";
|
|
207
|
+
symbols: "symbols";
|
|
208
|
+
}>>;
|
|
209
|
+
isSkeleton: z.ZodOptional<z.ZodBoolean>;
|
|
196
210
|
totalLines: z.ZodOptional<z.ZodNumber>;
|
|
197
211
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
198
212
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -211,6 +225,12 @@ export declare const LocalGetFileContentOutputSchema: z.ZodObject<{
|
|
|
211
225
|
}, z.core.$strip>>;
|
|
212
226
|
path: z.ZodOptional<z.ZodString>;
|
|
213
227
|
content: z.ZodOptional<z.ZodString>;
|
|
228
|
+
contentView: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
none: "none";
|
|
230
|
+
standard: "standard";
|
|
231
|
+
symbols: "symbols";
|
|
232
|
+
}>>;
|
|
233
|
+
isSkeleton: z.ZodOptional<z.ZodBoolean>;
|
|
214
234
|
pagination: z.ZodOptional<z.ZodObject<{
|
|
215
235
|
currentPage: z.ZodNumber;
|
|
216
236
|
totalPages: z.ZodNumber;
|
|
@@ -676,6 +696,12 @@ export declare const GitHubFileContentOutputSchema: z.ZodObject<{
|
|
|
676
696
|
data: z.ZodOptional<z.ZodObject<{
|
|
677
697
|
path: z.ZodString;
|
|
678
698
|
content: z.ZodString;
|
|
699
|
+
contentView: z.ZodOptional<z.ZodEnum<{
|
|
700
|
+
none: "none";
|
|
701
|
+
standard: "standard";
|
|
702
|
+
symbols: "symbols";
|
|
703
|
+
}>>;
|
|
704
|
+
isSkeleton: z.ZodOptional<z.ZodBoolean>;
|
|
679
705
|
totalLines: z.ZodOptional<z.ZodNumber>;
|
|
680
706
|
startLine: z.ZodOptional<z.ZodNumber>;
|
|
681
707
|
endLine: z.ZodOptional<z.ZodNumber>;
|
|
@@ -694,6 +720,12 @@ export declare const GitHubFileContentOutputSchema: z.ZodObject<{
|
|
|
694
720
|
}, z.core.$strip>>;
|
|
695
721
|
path: z.ZodOptional<z.ZodString>;
|
|
696
722
|
content: z.ZodOptional<z.ZodString>;
|
|
723
|
+
contentView: z.ZodOptional<z.ZodEnum<{
|
|
724
|
+
none: "none";
|
|
725
|
+
standard: "standard";
|
|
726
|
+
symbols: "symbols";
|
|
727
|
+
}>>;
|
|
728
|
+
isSkeleton: z.ZodOptional<z.ZodBoolean>;
|
|
697
729
|
pagination: z.ZodOptional<z.ZodObject<{
|
|
698
730
|
currentPage: z.ZodNumber;
|
|
699
731
|
totalPages: z.ZodNumber;
|