@wrongstack/tools 0.1.1 → 0.1.3
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/audit.d.ts +25 -0
- package/dist/audit.js +209 -0
- package/dist/audit.js.map +1 -0
- package/dist/bash.d.ts +16 -0
- package/dist/bash.js +180 -0
- package/dist/bash.js.map +1 -0
- package/dist/batch-tool-use.d.ts +26 -0
- package/dist/batch-tool-use.js +106 -0
- package/dist/batch-tool-use.js.map +1 -0
- package/dist/builtin.d.ts +5 -0
- package/dist/builtin.js +3735 -0
- package/dist/builtin.js.map +1 -0
- package/dist/diff.d.ts +20 -0
- package/dist/diff.js +142 -0
- package/dist/diff.js.map +1 -0
- package/dist/document.d.ts +27 -0
- package/dist/document.js +148 -0
- package/dist/document.js.map +1 -0
- package/dist/edit.d.ts +22 -0
- package/dist/edit.js +138 -0
- package/dist/edit.js.map +1 -0
- package/dist/exec.d.ts +21 -0
- package/dist/exec.js +159 -0
- package/dist/exec.js.map +1 -0
- package/dist/fetch.d.ts +15 -0
- package/dist/fetch.js +213 -0
- package/dist/fetch.js.map +1 -0
- package/dist/format.d.ts +18 -0
- package/dist/format.js +194 -0
- package/dist/format.js.map +1 -0
- package/dist/git.d.ts +27 -0
- package/dist/git.js +174 -0
- package/dist/git.js.map +1 -0
- package/dist/glob.d.ts +14 -0
- package/dist/glob.js +101 -0
- package/dist/glob.js.map +1 -0
- package/dist/grep.d.ts +20 -0
- package/dist/grep.js +264 -0
- package/dist/grep.js.map +1 -0
- package/dist/index.d.ts +34 -563
- package/dist/index.js +717 -442
- package/dist/index.js.map +1 -1
- package/dist/install.d.ts +19 -0
- package/dist/install.js +186 -0
- package/dist/install.js.map +1 -0
- package/dist/json.d.ts +20 -0
- package/dist/json.js +124 -0
- package/dist/json.js.map +1 -0
- package/dist/lint.d.ts +20 -0
- package/dist/lint.js +191 -0
- package/dist/lint.js.map +1 -0
- package/dist/logs.d.ts +27 -0
- package/dist/logs.js +180 -0
- package/dist/logs.js.map +1 -0
- package/dist/memory.d.ts +22 -0
- package/dist/memory.js +53 -0
- package/dist/memory.js.map +1 -0
- package/dist/mode.d.ts +20 -0
- package/dist/mode.js +81 -0
- package/dist/mode.js.map +1 -0
- package/dist/outdated.d.ts +26 -0
- package/dist/outdated.js +138 -0
- package/dist/outdated.js.map +1 -0
- package/dist/patch.d.ts +18 -0
- package/dist/patch.js +101 -0
- package/dist/patch.js.map +1 -0
- package/dist/read.d.ts +16 -0
- package/dist/read.js +81 -0
- package/dist/read.js.map +1 -0
- package/dist/replace.d.ts +23 -0
- package/dist/replace.js +196 -0
- package/dist/replace.js.map +1 -0
- package/dist/scaffold.d.ts +20 -0
- package/dist/scaffold.js +185 -0
- package/dist/scaffold.js.map +1 -0
- package/dist/search.d.ts +20 -0
- package/dist/search.js +212 -0
- package/dist/search.js.map +1 -0
- package/dist/test.d.ts +24 -0
- package/dist/test.js +247 -0
- package/dist/test.js.map +1 -0
- package/dist/todo.d.ts +12 -0
- package/dist/todo.js +53 -0
- package/dist/todo.js.map +1 -0
- package/dist/tool-help.d.ts +23 -0
- package/dist/tool-help.js +122 -0
- package/dist/tool-help.js.map +1 -0
- package/dist/tool-search.d.ts +22 -0
- package/dist/tool-search.js +70 -0
- package/dist/tool-search.js.map +1 -0
- package/dist/tool-use.d.ts +16 -0
- package/dist/tool-use.js +79 -0
- package/dist/tool-use.js.map +1 -0
- package/dist/tree.d.ts +21 -0
- package/dist/tree.js +176 -0
- package/dist/tree.js.map +1 -0
- package/dist/typecheck.d.ts +19 -0
- package/dist/typecheck.js +181 -0
- package/dist/typecheck.js.map +1 -0
- package/dist/write.d.ts +15 -0
- package/dist/write.js +77 -0
- package/dist/write.js.map +1 -0
- package/package.json +137 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,563 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* if more than one match exists — use this to ensure you target the
|
|
36
|
-
* right location.
|
|
37
|
-
*/
|
|
38
|
-
replace_all?: boolean;
|
|
39
|
-
}
|
|
40
|
-
interface EditOutput {
|
|
41
|
-
path: string;
|
|
42
|
-
replacements: number;
|
|
43
|
-
diff: string;
|
|
44
|
-
}
|
|
45
|
-
declare const editTool: Tool<EditInput, EditOutput>;
|
|
46
|
-
|
|
47
|
-
interface ReplaceInput {
|
|
48
|
-
pattern: string;
|
|
49
|
-
replacement: string;
|
|
50
|
-
files: string | string[];
|
|
51
|
-
glob?: string;
|
|
52
|
-
replace_all?: boolean;
|
|
53
|
-
dry_run?: boolean;
|
|
54
|
-
}
|
|
55
|
-
interface ReplaceOutput {
|
|
56
|
-
files_modified: number;
|
|
57
|
-
total_replacements: number;
|
|
58
|
-
results: {
|
|
59
|
-
path: string;
|
|
60
|
-
replacements: number;
|
|
61
|
-
diff?: string;
|
|
62
|
-
}[];
|
|
63
|
-
dry_run: boolean;
|
|
64
|
-
}
|
|
65
|
-
declare const replaceTool: Tool<ReplaceInput, ReplaceOutput>;
|
|
66
|
-
|
|
67
|
-
interface GlobInput {
|
|
68
|
-
pattern: string;
|
|
69
|
-
path?: string;
|
|
70
|
-
limit?: number;
|
|
71
|
-
}
|
|
72
|
-
interface GlobOutput {
|
|
73
|
-
files: string[];
|
|
74
|
-
truncated: boolean;
|
|
75
|
-
}
|
|
76
|
-
declare const globTool: Tool<GlobInput, GlobOutput>;
|
|
77
|
-
|
|
78
|
-
interface GrepInput {
|
|
79
|
-
pattern: string;
|
|
80
|
-
path?: string;
|
|
81
|
-
glob?: string;
|
|
82
|
-
output_mode?: 'content' | 'files_with_matches' | 'count';
|
|
83
|
-
context_lines?: number;
|
|
84
|
-
case_insensitive?: boolean;
|
|
85
|
-
limit?: number;
|
|
86
|
-
}
|
|
87
|
-
interface GrepOutput {
|
|
88
|
-
matches: string[];
|
|
89
|
-
count: number;
|
|
90
|
-
truncated: boolean;
|
|
91
|
-
used: 'rg' | 'native';
|
|
92
|
-
}
|
|
93
|
-
declare const grepTool: Tool<GrepInput, GrepOutput>;
|
|
94
|
-
|
|
95
|
-
interface BashInput {
|
|
96
|
-
command: string;
|
|
97
|
-
timeout_ms?: number;
|
|
98
|
-
background?: boolean;
|
|
99
|
-
}
|
|
100
|
-
interface BashOutput {
|
|
101
|
-
output: string;
|
|
102
|
-
exit_code: number | null;
|
|
103
|
-
timed_out: boolean;
|
|
104
|
-
pid?: number;
|
|
105
|
-
}
|
|
106
|
-
declare const bashTool: Tool<BashInput, BashOutput>;
|
|
107
|
-
|
|
108
|
-
interface ExecInput {
|
|
109
|
-
command: string;
|
|
110
|
-
args?: string[];
|
|
111
|
-
cwd?: string;
|
|
112
|
-
timeout?: number;
|
|
113
|
-
allow_unknown?: boolean;
|
|
114
|
-
}
|
|
115
|
-
interface ExecOutput {
|
|
116
|
-
command: string;
|
|
117
|
-
args: string[];
|
|
118
|
-
stdout: string;
|
|
119
|
-
stderr: string;
|
|
120
|
-
exitCode: number;
|
|
121
|
-
truncated: boolean;
|
|
122
|
-
allowed: boolean;
|
|
123
|
-
}
|
|
124
|
-
declare const execTool: Tool<ExecInput, ExecOutput>;
|
|
125
|
-
|
|
126
|
-
interface FetchInput {
|
|
127
|
-
url: string;
|
|
128
|
-
format?: 'markdown' | 'text' | 'raw';
|
|
129
|
-
}
|
|
130
|
-
interface FetchOutput {
|
|
131
|
-
content: string;
|
|
132
|
-
status: number;
|
|
133
|
-
content_type: string;
|
|
134
|
-
url: string;
|
|
135
|
-
}
|
|
136
|
-
declare const fetchTool: Tool<FetchInput, FetchOutput>;
|
|
137
|
-
|
|
138
|
-
interface SearchInput {
|
|
139
|
-
query: string;
|
|
140
|
-
num_results?: number;
|
|
141
|
-
source?: 'duckduckgo' | 'google' | 'bing';
|
|
142
|
-
}
|
|
143
|
-
interface SearchOutput {
|
|
144
|
-
query: string;
|
|
145
|
-
results: {
|
|
146
|
-
title: string;
|
|
147
|
-
url: string;
|
|
148
|
-
snippet: string;
|
|
149
|
-
}[];
|
|
150
|
-
source: string;
|
|
151
|
-
truncated: boolean;
|
|
152
|
-
}
|
|
153
|
-
declare const searchTool: Tool<SearchInput, SearchOutput>;
|
|
154
|
-
|
|
155
|
-
interface TodoInput {
|
|
156
|
-
todos: TodoItem[];
|
|
157
|
-
}
|
|
158
|
-
interface TodoOutput {
|
|
159
|
-
count: number;
|
|
160
|
-
in_progress: number;
|
|
161
|
-
}
|
|
162
|
-
declare const todoTool: Tool<TodoInput, TodoOutput>;
|
|
163
|
-
|
|
164
|
-
type GitSubcommand = 'status' | 'log' | 'diff' | 'commit' | 'branch' | 'checkout' | 'stash' | 'push' | 'pull' | 'fetch' | 'reset';
|
|
165
|
-
interface GitInput {
|
|
166
|
-
command: GitSubcommand;
|
|
167
|
-
args?: string;
|
|
168
|
-
files?: string | string[];
|
|
169
|
-
dry_run?: boolean;
|
|
170
|
-
/** commit message for `commit` subcommand */
|
|
171
|
-
message?: string;
|
|
172
|
-
/** branch name for `checkout` / `branch` */
|
|
173
|
-
branch?: string;
|
|
174
|
-
/** pass --graph, --oneline, --stat for `log` */
|
|
175
|
-
format?: 'short' | 'oneline' | 'stat' | 'graph';
|
|
176
|
-
/** limit for `log` */
|
|
177
|
-
limit?: number;
|
|
178
|
-
}
|
|
179
|
-
interface GitOutput {
|
|
180
|
-
command: GitSubcommand;
|
|
181
|
-
stdout: string;
|
|
182
|
-
stderr: string;
|
|
183
|
-
exitCode: number;
|
|
184
|
-
truncated: boolean;
|
|
185
|
-
}
|
|
186
|
-
declare const gitTool: Tool<GitInput, GitOutput>;
|
|
187
|
-
|
|
188
|
-
interface PatchInput {
|
|
189
|
-
patch: string;
|
|
190
|
-
directory?: string;
|
|
191
|
-
strip?: number;
|
|
192
|
-
dry_run?: boolean;
|
|
193
|
-
}
|
|
194
|
-
interface PatchOutput {
|
|
195
|
-
applied: number;
|
|
196
|
-
rejected: number;
|
|
197
|
-
files: string[];
|
|
198
|
-
dry_run: boolean;
|
|
199
|
-
message: string;
|
|
200
|
-
}
|
|
201
|
-
declare const patchTool: Tool<PatchInput, PatchOutput>;
|
|
202
|
-
|
|
203
|
-
interface JsonInput {
|
|
204
|
-
file?: string;
|
|
205
|
-
data?: string;
|
|
206
|
-
query?: string;
|
|
207
|
-
format?: 'json' | 'json5' | 'yaml';
|
|
208
|
-
validate?: boolean;
|
|
209
|
-
}
|
|
210
|
-
interface JsonOutput {
|
|
211
|
-
data: unknown;
|
|
212
|
-
formatted: string;
|
|
213
|
-
type: string;
|
|
214
|
-
keys?: string[];
|
|
215
|
-
query_result?: unknown;
|
|
216
|
-
error?: string;
|
|
217
|
-
}
|
|
218
|
-
declare const jsonTool: Tool<JsonInput, JsonOutput>;
|
|
219
|
-
|
|
220
|
-
interface DiffInput {
|
|
221
|
-
path?: string;
|
|
222
|
-
files?: string | string[];
|
|
223
|
-
a?: string;
|
|
224
|
-
b?: string;
|
|
225
|
-
staged?: boolean;
|
|
226
|
-
mode?: 'unified' | 'side-by-side' | 'stat';
|
|
227
|
-
context?: number;
|
|
228
|
-
}
|
|
229
|
-
interface DiffOutput {
|
|
230
|
-
diff: string;
|
|
231
|
-
files: string[];
|
|
232
|
-
truncated: boolean;
|
|
233
|
-
mode: string;
|
|
234
|
-
}
|
|
235
|
-
declare const diffTool: Tool<DiffInput, DiffOutput>;
|
|
236
|
-
|
|
237
|
-
interface TreeInput {
|
|
238
|
-
path?: string;
|
|
239
|
-
depth?: number;
|
|
240
|
-
glob?: string;
|
|
241
|
-
exclude?: string[];
|
|
242
|
-
show_files?: boolean;
|
|
243
|
-
show_dirs?: boolean;
|
|
244
|
-
show_hidden?: boolean;
|
|
245
|
-
}
|
|
246
|
-
interface TreeOutput {
|
|
247
|
-
tree: string;
|
|
248
|
-
total_files: number;
|
|
249
|
-
total_dirs: number;
|
|
250
|
-
truncated: boolean;
|
|
251
|
-
path: string;
|
|
252
|
-
}
|
|
253
|
-
declare const treeTool: Tool<TreeInput, TreeOutput>;
|
|
254
|
-
|
|
255
|
-
interface LintInput {
|
|
256
|
-
files?: string | string[];
|
|
257
|
-
fix?: boolean;
|
|
258
|
-
linter?: 'biome' | 'eslint' | 'tslint' | 'auto';
|
|
259
|
-
cwd?: string;
|
|
260
|
-
}
|
|
261
|
-
interface LintOutput {
|
|
262
|
-
linter: string;
|
|
263
|
-
files_checked: number;
|
|
264
|
-
errors: number;
|
|
265
|
-
warnings: number;
|
|
266
|
-
output: string;
|
|
267
|
-
fix_applied: boolean;
|
|
268
|
-
truncated: boolean;
|
|
269
|
-
}
|
|
270
|
-
declare const lintTool: Tool<LintInput, LintOutput>;
|
|
271
|
-
|
|
272
|
-
interface FormatInput {
|
|
273
|
-
files?: string | string[];
|
|
274
|
-
fixer?: 'biome' | 'prettier' | 'auto';
|
|
275
|
-
check?: boolean;
|
|
276
|
-
cwd?: string;
|
|
277
|
-
}
|
|
278
|
-
interface FormatOutput {
|
|
279
|
-
fixer: string;
|
|
280
|
-
files_checked: number;
|
|
281
|
-
files_changed: number;
|
|
282
|
-
output: string;
|
|
283
|
-
truncated: boolean;
|
|
284
|
-
}
|
|
285
|
-
declare const formatTool: Tool<FormatInput, FormatOutput>;
|
|
286
|
-
|
|
287
|
-
interface TypecheckInput {
|
|
288
|
-
project?: string;
|
|
289
|
-
cwd?: string;
|
|
290
|
-
strict?: boolean;
|
|
291
|
-
all?: boolean;
|
|
292
|
-
}
|
|
293
|
-
interface TypecheckOutput {
|
|
294
|
-
project: string;
|
|
295
|
-
exit_code: number;
|
|
296
|
-
errors: number;
|
|
297
|
-
warnings: number;
|
|
298
|
-
output: string;
|
|
299
|
-
truncated: boolean;
|
|
300
|
-
}
|
|
301
|
-
declare const typecheckTool: Tool<TypecheckInput, TypecheckOutput>;
|
|
302
|
-
|
|
303
|
-
interface TestInput {
|
|
304
|
-
files?: string | string[];
|
|
305
|
-
runner?: 'vitest' | 'jest' | 'mocha' | 'auto';
|
|
306
|
-
watch?: boolean;
|
|
307
|
-
coverage?: boolean;
|
|
308
|
-
cwd?: string;
|
|
309
|
-
grep?: string;
|
|
310
|
-
timeout?: number;
|
|
311
|
-
}
|
|
312
|
-
interface TestOutput {
|
|
313
|
-
runner: string;
|
|
314
|
-
exit_code: number;
|
|
315
|
-
tests_run: number;
|
|
316
|
-
passed: number;
|
|
317
|
-
failed: number;
|
|
318
|
-
duration_ms: number;
|
|
319
|
-
output: string;
|
|
320
|
-
truncated: boolean;
|
|
321
|
-
}
|
|
322
|
-
declare const testTool: Tool<TestInput, TestOutput>;
|
|
323
|
-
|
|
324
|
-
interface InstallInput {
|
|
325
|
-
packages?: string | string[];
|
|
326
|
-
save?: 'dependency' | 'dev' | 'optional';
|
|
327
|
-
cwd?: string;
|
|
328
|
-
dry_run?: boolean;
|
|
329
|
-
global?: boolean;
|
|
330
|
-
}
|
|
331
|
-
interface InstallOutput {
|
|
332
|
-
packages: string[];
|
|
333
|
-
exit_code: number;
|
|
334
|
-
output: string;
|
|
335
|
-
dry_run: boolean;
|
|
336
|
-
truncated: boolean;
|
|
337
|
-
}
|
|
338
|
-
declare const installTool: Tool<InstallInput, InstallOutput>;
|
|
339
|
-
|
|
340
|
-
interface AuditInput {
|
|
341
|
-
cwd?: string;
|
|
342
|
-
level?: 'low' | 'moderate' | 'high' | 'critical';
|
|
343
|
-
fix?: boolean;
|
|
344
|
-
packages?: string | string[];
|
|
345
|
-
}
|
|
346
|
-
interface AuditVulnerability {
|
|
347
|
-
severity: string;
|
|
348
|
-
package: string;
|
|
349
|
-
title: string;
|
|
350
|
-
url: string;
|
|
351
|
-
}
|
|
352
|
-
interface AuditOutput {
|
|
353
|
-
exit_code: number;
|
|
354
|
-
vulnerabilities: AuditVulnerability[];
|
|
355
|
-
total: number;
|
|
356
|
-
summary: string;
|
|
357
|
-
output: string;
|
|
358
|
-
truncated: boolean;
|
|
359
|
-
}
|
|
360
|
-
declare const auditTool: Tool<AuditInput, AuditOutput>;
|
|
361
|
-
|
|
362
|
-
interface OutdatedInput {
|
|
363
|
-
cwd?: string;
|
|
364
|
-
format?: 'list' | 'table';
|
|
365
|
-
include_deprecated?: boolean;
|
|
366
|
-
check?: string | string[];
|
|
367
|
-
}
|
|
368
|
-
interface OutdatedPackage {
|
|
369
|
-
name: string;
|
|
370
|
-
current: string;
|
|
371
|
-
latest: string;
|
|
372
|
-
wanted: string;
|
|
373
|
-
type: string;
|
|
374
|
-
location: string;
|
|
375
|
-
}
|
|
376
|
-
interface OutdatedOutput {
|
|
377
|
-
exit_code: number;
|
|
378
|
-
packages: OutdatedPackage[];
|
|
379
|
-
total: number;
|
|
380
|
-
output: string;
|
|
381
|
-
truncated: boolean;
|
|
382
|
-
}
|
|
383
|
-
declare const outdatedTool: Tool<OutdatedInput, OutdatedOutput>;
|
|
384
|
-
|
|
385
|
-
interface LogsInput {
|
|
386
|
-
service?: string;
|
|
387
|
-
path?: string;
|
|
388
|
-
lines?: number;
|
|
389
|
-
stream?: boolean;
|
|
390
|
-
filter?: string;
|
|
391
|
-
since?: '1h' | '6h' | '24h' | 'all';
|
|
392
|
-
cwd?: string;
|
|
393
|
-
}
|
|
394
|
-
interface LogEntry {
|
|
395
|
-
timestamp: string;
|
|
396
|
-
level: string;
|
|
397
|
-
message: string;
|
|
398
|
-
source?: string;
|
|
399
|
-
}
|
|
400
|
-
interface LogsOutput {
|
|
401
|
-
source: string;
|
|
402
|
-
entries: LogEntry[];
|
|
403
|
-
total: number;
|
|
404
|
-
truncated: boolean;
|
|
405
|
-
stream_mode: boolean;
|
|
406
|
-
}
|
|
407
|
-
declare const logsTool: Tool<LogsInput, LogsOutput>;
|
|
408
|
-
|
|
409
|
-
interface DocumentInput {
|
|
410
|
-
target: 'file' | 'function' | 'class' | 'type' | 'all';
|
|
411
|
-
path?: string;
|
|
412
|
-
files?: string | string[];
|
|
413
|
-
style?: 'jsdoc' | 'tsdoc' | 'block';
|
|
414
|
-
overwrite?: boolean;
|
|
415
|
-
cwd?: string;
|
|
416
|
-
}
|
|
417
|
-
interface DocumentedItem {
|
|
418
|
-
path: string;
|
|
419
|
-
name: string;
|
|
420
|
-
signature: string;
|
|
421
|
-
docstring: string;
|
|
422
|
-
status: 'documented' | 'skipped' | 'error';
|
|
423
|
-
error?: string;
|
|
424
|
-
}
|
|
425
|
-
interface DocumentOutput {
|
|
426
|
-
files_processed: number;
|
|
427
|
-
items_documented: number;
|
|
428
|
-
results: DocumentedItem[];
|
|
429
|
-
style: string;
|
|
430
|
-
}
|
|
431
|
-
declare const documentTool: Tool<DocumentInput, DocumentOutput>;
|
|
432
|
-
|
|
433
|
-
interface ScaffoldInput {
|
|
434
|
-
template: string;
|
|
435
|
-
name: string;
|
|
436
|
-
cwd?: string;
|
|
437
|
-
vars?: Record<string, string>;
|
|
438
|
-
dry_run?: boolean;
|
|
439
|
-
}
|
|
440
|
-
interface ScaffoldOutput {
|
|
441
|
-
template: string;
|
|
442
|
-
name: string;
|
|
443
|
-
files_created: number;
|
|
444
|
-
files: string[];
|
|
445
|
-
dry_run: boolean;
|
|
446
|
-
output: string;
|
|
447
|
-
}
|
|
448
|
-
declare const scaffoldTool: Tool<ScaffoldInput, ScaffoldOutput>;
|
|
449
|
-
|
|
450
|
-
interface ToolSearchInput {
|
|
451
|
-
query?: string;
|
|
452
|
-
tags?: string[];
|
|
453
|
-
permission?: 'auto' | 'confirm' | 'deny';
|
|
454
|
-
mutating?: boolean;
|
|
455
|
-
limit?: number;
|
|
456
|
-
}
|
|
457
|
-
interface ToolSearchOutput {
|
|
458
|
-
tools: {
|
|
459
|
-
name: string;
|
|
460
|
-
description: string;
|
|
461
|
-
permission: string;
|
|
462
|
-
mutating: boolean;
|
|
463
|
-
}[];
|
|
464
|
-
total: number;
|
|
465
|
-
truncated: boolean;
|
|
466
|
-
}
|
|
467
|
-
declare const toolSearchTool: Tool<ToolSearchInput, ToolSearchOutput>;
|
|
468
|
-
|
|
469
|
-
interface ToolUseInput {
|
|
470
|
-
tool: string;
|
|
471
|
-
input: Record<string, unknown>;
|
|
472
|
-
}
|
|
473
|
-
interface ToolUseOutput {
|
|
474
|
-
tool: string;
|
|
475
|
-
success: boolean;
|
|
476
|
-
result?: unknown;
|
|
477
|
-
error?: string;
|
|
478
|
-
executionMs: number;
|
|
479
|
-
}
|
|
480
|
-
declare const toolUseTool: Tool<ToolUseInput, ToolUseOutput>;
|
|
481
|
-
|
|
482
|
-
interface BatchToolUseInput {
|
|
483
|
-
calls: {
|
|
484
|
-
tool: string;
|
|
485
|
-
input: Record<string, unknown>;
|
|
486
|
-
}[];
|
|
487
|
-
stop_on_error?: boolean;
|
|
488
|
-
parallel?: boolean;
|
|
489
|
-
}
|
|
490
|
-
interface BatchToolUseOutput {
|
|
491
|
-
results: {
|
|
492
|
-
tool: string;
|
|
493
|
-
success: boolean;
|
|
494
|
-
result?: unknown;
|
|
495
|
-
error?: string;
|
|
496
|
-
executionMs: number;
|
|
497
|
-
}[];
|
|
498
|
-
total: number;
|
|
499
|
-
succeeded: number;
|
|
500
|
-
failed: number;
|
|
501
|
-
stop_on_error: boolean;
|
|
502
|
-
}
|
|
503
|
-
declare const batchToolUseTool: Tool<BatchToolUseInput, BatchToolUseOutput>;
|
|
504
|
-
|
|
505
|
-
interface ToolHelpInput {
|
|
506
|
-
tool?: string;
|
|
507
|
-
format?: 'short' | 'full' | 'markdown';
|
|
508
|
-
include_examples?: boolean;
|
|
509
|
-
}
|
|
510
|
-
interface ToolHelpOutput {
|
|
511
|
-
tool?: string;
|
|
512
|
-
help: string;
|
|
513
|
-
tools: {
|
|
514
|
-
name: string;
|
|
515
|
-
description: string;
|
|
516
|
-
usageHint: string;
|
|
517
|
-
inputSchema: unknown;
|
|
518
|
-
permission: string;
|
|
519
|
-
mutating: boolean;
|
|
520
|
-
}[];
|
|
521
|
-
total: number;
|
|
522
|
-
}
|
|
523
|
-
declare const toolHelpTool: Tool<ToolHelpInput, ToolHelpOutput>;
|
|
524
|
-
|
|
525
|
-
interface RememberInput {
|
|
526
|
-
text: string;
|
|
527
|
-
scope?: MemoryScope;
|
|
528
|
-
}
|
|
529
|
-
interface RememberOutput {
|
|
530
|
-
ok: true;
|
|
531
|
-
scope: MemoryScope;
|
|
532
|
-
}
|
|
533
|
-
interface ForgetInput {
|
|
534
|
-
query: string;
|
|
535
|
-
scope?: MemoryScope;
|
|
536
|
-
}
|
|
537
|
-
interface ForgetOutput {
|
|
538
|
-
removed: number;
|
|
539
|
-
scope: MemoryScope;
|
|
540
|
-
}
|
|
541
|
-
declare function rememberTool(memory: MemoryStore): Tool<RememberInput, RememberOutput>;
|
|
542
|
-
declare function forgetTool(memory: MemoryStore): Tool<ForgetInput, ForgetOutput>;
|
|
543
|
-
|
|
544
|
-
interface ModeInput {
|
|
545
|
-
action: 'get' | 'list' | 'set' | 'clear';
|
|
546
|
-
mode?: string;
|
|
547
|
-
}
|
|
548
|
-
interface ModeOutput {
|
|
549
|
-
action: string;
|
|
550
|
-
currentMode?: string;
|
|
551
|
-
modes?: {
|
|
552
|
-
id: string;
|
|
553
|
-
name: string;
|
|
554
|
-
description: string;
|
|
555
|
-
}[];
|
|
556
|
-
success: boolean;
|
|
557
|
-
message: string;
|
|
558
|
-
}
|
|
559
|
-
declare function createModeTool(modeStore: ModeStore): Tool<ModeInput, ModeOutput>;
|
|
560
|
-
|
|
561
|
-
declare const builtinTools: Tool[];
|
|
562
|
-
|
|
563
|
-
export { auditTool, bashTool, batchToolUseTool, builtinTools, createModeTool, diffTool, documentTool, editTool, execTool, fetchTool, forgetTool, formatTool, gitTool, globTool, grepTool, installTool, jsonTool, lintTool, logsTool, outdatedTool, patchTool, readTool, rememberTool, replaceTool, scaffoldTool, searchTool, testTool, todoTool, toolHelpTool, toolSearchTool, toolUseTool, treeTool, typecheckTool, writeTool };
|
|
1
|
+
export { readTool } from './read.js';
|
|
2
|
+
export { writeTool } from './write.js';
|
|
3
|
+
export { editTool } from './edit.js';
|
|
4
|
+
export { replaceTool } from './replace.js';
|
|
5
|
+
export { globTool } from './glob.js';
|
|
6
|
+
export { grepTool } from './grep.js';
|
|
7
|
+
export { bashTool } from './bash.js';
|
|
8
|
+
export { execTool } from './exec.js';
|
|
9
|
+
export { fetchTool } from './fetch.js';
|
|
10
|
+
export { searchTool } from './search.js';
|
|
11
|
+
export { todoTool } from './todo.js';
|
|
12
|
+
export { gitTool } from './git.js';
|
|
13
|
+
export { patchTool } from './patch.js';
|
|
14
|
+
export { jsonTool } from './json.js';
|
|
15
|
+
export { diffTool } from './diff.js';
|
|
16
|
+
export { treeTool } from './tree.js';
|
|
17
|
+
export { lintTool } from './lint.js';
|
|
18
|
+
export { formatTool } from './format.js';
|
|
19
|
+
export { typecheckTool } from './typecheck.js';
|
|
20
|
+
export { testTool } from './test.js';
|
|
21
|
+
export { installTool } from './install.js';
|
|
22
|
+
export { auditTool } from './audit.js';
|
|
23
|
+
export { outdatedTool } from './outdated.js';
|
|
24
|
+
export { logsTool } from './logs.js';
|
|
25
|
+
export { documentTool } from './document.js';
|
|
26
|
+
export { scaffoldTool } from './scaffold.js';
|
|
27
|
+
export { toolSearchTool } from './tool-search.js';
|
|
28
|
+
export { toolUseTool } from './tool-use.js';
|
|
29
|
+
export { batchToolUseTool } from './batch-tool-use.js';
|
|
30
|
+
export { toolHelpTool } from './tool-help.js';
|
|
31
|
+
export { forgetTool, rememberTool } from './memory.js';
|
|
32
|
+
export { createModeTool } from './mode.js';
|
|
33
|
+
export { builtinTools } from './builtin.js';
|
|
34
|
+
import '@wrongstack/core';
|