clanka 0.2.70 → 0.2.72
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/Agent.d.ts +2 -2
- package/dist/Agent.d.ts.map +1 -1
- package/dist/Agent.js +4 -1
- package/dist/Agent.js.map +1 -1
- package/dist/Agent.test.js.map +1 -1
- package/dist/AgentExecutor.d.ts +152 -152
- package/dist/AgentExecutor.d.ts.map +1 -1
- package/dist/AgentExecutor.js +5 -5
- package/dist/AgentExecutor.js.map +1 -1
- package/dist/AgentOutput.d.ts +1 -0
- package/dist/AgentOutput.d.ts.map +1 -1
- package/dist/AgentOutput.js +2 -1
- package/dist/AgentOutput.js.map +1 -1
- package/dist/AgentTools.d.ts +270 -270
- package/dist/AgentTools.d.ts.map +1 -1
- package/dist/AgentTools.js +1 -0
- package/dist/AgentTools.js.map +1 -1
- package/dist/ApplyPatch.d.ts.map +1 -1
- package/dist/ChunkRepo.d.ts +18 -17
- package/dist/ChunkRepo.d.ts.map +1 -1
- package/dist/ChunkRepo.js +2 -1
- package/dist/ChunkRepo.js.map +1 -1
- package/dist/CodeChunker.d.ts.map +1 -1
- package/dist/CodeChunker.js +2 -2
- package/dist/CodeChunker.js.map +1 -1
- package/dist/Codex.d.ts +1 -1
- package/dist/Codex.d.ts.map +1 -1
- package/dist/CodexAuth.d.ts +5 -4
- package/dist/CodexAuth.d.ts.map +1 -1
- package/dist/CodexAuth.js +6 -2
- package/dist/CodexAuth.js.map +1 -1
- package/dist/Copilot.d.ts +1 -1
- package/dist/Copilot.d.ts.map +1 -1
- package/dist/CopilotAuth.d.ts +5 -4
- package/dist/CopilotAuth.d.ts.map +1 -1
- package/dist/CopilotAuth.js +6 -2
- package/dist/CopilotAuth.js.map +1 -1
- package/dist/ExaSearch.d.ts.map +1 -1
- package/dist/ExaSearch.js +2 -1
- package/dist/ExaSearch.js.map +1 -1
- package/dist/McpClient.js +1 -1
- package/dist/McpClient.js.map +1 -1
- package/dist/OutputFormatter.d.ts.map +1 -1
- package/dist/OutputFormatter.js.map +1 -1
- package/dist/ScriptExtraction.d.ts.map +1 -1
- package/dist/ScriptPreprocessing.d.ts.map +1 -1
- package/dist/SemanticSearch/Service.d.ts.map +1 -1
- package/dist/SemanticSearch.d.ts +2 -2
- package/dist/SemanticSearch.d.ts.map +1 -1
- package/dist/SemanticSearch.js.map +1 -1
- package/dist/Sqlite.d.ts +1 -1
- package/dist/Sqlite.d.ts.map +1 -1
- package/dist/ToolkitRenderer.js.map +1 -1
- package/dist/TypeBuilder.d.ts.map +1 -1
- package/dist/TypeBuilder.js +1 -1
- package/dist/TypeBuilder.js.map +1 -1
- package/dist/TypeBuilder.test.js +1 -0
- package/dist/TypeBuilder.test.js.map +1 -1
- package/dist/cli.js +11 -11
- package/dist/cli.js.map +1 -1
- package/package.json +23 -24
- package/src/Agent.ts +4 -4
- package/src/AgentExecutor.ts +18 -24
- package/src/AgentOutput.ts +3 -6
- package/src/AgentTools.ts +1 -0
- package/src/ChunkRepo.ts +2 -1
- package/src/CodeChunker.ts +4 -4
- package/src/CodexAuth.ts +6 -4
- package/src/CopilotAuth.ts +6 -4
- package/src/ExaSearch.ts +2 -1
- package/src/McpClient.ts +1 -1
- package/src/SemanticSearch.ts +2 -2
- package/src/TypeBuilder.test.ts +1 -0
- package/src/TypeBuilder.ts +1 -1
- package/src/cli.ts +14 -14
package/dist/AgentTools.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare class SubagentExecutor extends SubagentExecutor_base {
|
|
|
36
36
|
* @since 1.0.0
|
|
37
37
|
* @category Context
|
|
38
38
|
*/
|
|
39
|
-
export declare const makeContextNoop: (cwd?: string) => Context.Context<CurrentDirectory |
|
|
39
|
+
export declare const makeContextNoop: (cwd?: string) => Context.Context<CurrentDirectory | SubagentExecutor | TaskCompleter>;
|
|
40
40
|
declare const TodoItem_base: Schema.Opaque<TodoItem, Schema.Struct<{
|
|
41
41
|
readonly id: Schema.Number;
|
|
42
42
|
readonly text: Schema.String;
|
|
@@ -53,94 +53,76 @@ declare class TodoItem extends TodoItem_base {
|
|
|
53
53
|
* @category Toolkit
|
|
54
54
|
*/
|
|
55
55
|
export declare const AgentTools: Toolkit.Toolkit<{
|
|
56
|
-
readonly
|
|
57
|
-
readonly parameters: Schema.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
readonly addTodo: Tool.Tool<"addTodo", {
|
|
57
|
+
readonly parameters: Schema.String;
|
|
58
|
+
readonly success: Schema.Void;
|
|
59
|
+
readonly failure: Schema.Never;
|
|
60
|
+
readonly failureMode: "error";
|
|
61
|
+
}, never>;
|
|
62
|
+
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
63
|
+
readonly parameters: Schema.String;
|
|
64
|
+
readonly success: Schema.String;
|
|
63
65
|
readonly failure: Schema.Never;
|
|
64
66
|
readonly failureMode: "error";
|
|
65
67
|
}, CurrentDirectory>;
|
|
66
|
-
readonly
|
|
68
|
+
readonly bash: Tool.Tool<"bash", {
|
|
67
69
|
readonly parameters: Schema.Struct<{
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
71
|
-
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
70
|
+
readonly command: Schema.String;
|
|
71
|
+
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
72
72
|
}>;
|
|
73
73
|
readonly success: Schema.String;
|
|
74
74
|
readonly failure: Schema.Never;
|
|
75
75
|
readonly failureMode: "error";
|
|
76
76
|
}, CurrentDirectory>;
|
|
77
|
+
readonly clearTodos: Tool.Tool<"clearTodos", {
|
|
78
|
+
readonly parameters: Schema.Void;
|
|
79
|
+
readonly success: Schema.Void;
|
|
80
|
+
readonly failure: Schema.Never;
|
|
81
|
+
readonly failureMode: "error";
|
|
82
|
+
}, never>;
|
|
77
83
|
readonly delegate: Tool.Tool<"delegate", {
|
|
78
84
|
readonly parameters: Schema.String;
|
|
79
85
|
readonly success: Schema.String;
|
|
80
86
|
readonly failure: Schema.Never;
|
|
81
87
|
readonly failureMode: "error";
|
|
82
88
|
}, SubagentExecutor>;
|
|
83
|
-
readonly
|
|
89
|
+
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
84
90
|
readonly parameters: Schema.String;
|
|
85
|
-
readonly success: Schema
|
|
91
|
+
readonly success: Schema.String;
|
|
86
92
|
readonly failure: Schema.Never;
|
|
87
93
|
readonly failureMode: "error";
|
|
88
|
-
},
|
|
94
|
+
}, never>;
|
|
89
95
|
readonly gh: Tool.Tool<"gh", {
|
|
90
96
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
91
97
|
readonly success: Schema.String;
|
|
92
98
|
readonly failure: Schema.Never;
|
|
93
99
|
readonly failureMode: "error";
|
|
94
100
|
}, CurrentDirectory>;
|
|
95
|
-
readonly
|
|
96
|
-
readonly parameters: Schema.Void;
|
|
97
|
-
readonly success: Schema.$Array<typeof TodoItem>;
|
|
98
|
-
readonly failure: Schema.Never;
|
|
99
|
-
readonly failureMode: "error";
|
|
100
|
-
}, never>;
|
|
101
|
-
readonly addTodo: Tool.Tool<"addTodo", {
|
|
101
|
+
readonly glob: Tool.Tool<"glob", {
|
|
102
102
|
readonly parameters: Schema.String;
|
|
103
|
-
readonly success: Schema.
|
|
104
|
-
readonly failure: Schema.Never;
|
|
105
|
-
readonly failureMode: "error";
|
|
106
|
-
}, never>;
|
|
107
|
-
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
108
|
-
readonly parameters: Schema.Struct<{
|
|
109
|
-
readonly id: Schema.Number;
|
|
110
|
-
readonly text: Schema.optional<Schema.String>;
|
|
111
|
-
readonly completed: Schema.optional<Schema.Boolean>;
|
|
112
|
-
}>;
|
|
113
|
-
readonly success: Schema.Void;
|
|
103
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
114
104
|
readonly failure: Schema.Never;
|
|
115
105
|
readonly failureMode: "error";
|
|
116
|
-
},
|
|
117
|
-
readonly
|
|
106
|
+
}, CurrentDirectory>;
|
|
107
|
+
readonly listTodos: Tool.Tool<"listTodos", {
|
|
118
108
|
readonly parameters: Schema.Void;
|
|
119
|
-
readonly success: Schema
|
|
109
|
+
readonly success: Schema.$Array<typeof TodoItem>;
|
|
120
110
|
readonly failure: Schema.Never;
|
|
121
111
|
readonly failureMode: "error";
|
|
122
112
|
}, never>;
|
|
123
|
-
readonly
|
|
124
|
-
readonly parameters: Schema.Struct<{
|
|
125
|
-
readonly command: Schema.String;
|
|
126
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
127
|
-
}>;
|
|
128
|
-
readonly success: Schema.String;
|
|
129
|
-
readonly failure: Schema.Never;
|
|
130
|
-
readonly failureMode: "error";
|
|
131
|
-
}, CurrentDirectory>;
|
|
132
|
-
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
113
|
+
readonly ls: Tool.Tool<"ls", {
|
|
133
114
|
readonly parameters: Schema.String;
|
|
134
|
-
readonly success: Schema.String
|
|
115
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
135
116
|
readonly failure: Schema.Never;
|
|
136
117
|
readonly failureMode: "error";
|
|
137
118
|
}, CurrentDirectory>;
|
|
138
|
-
readonly
|
|
119
|
+
readonly readFile: Tool.Tool<"readFile", {
|
|
139
120
|
readonly parameters: Schema.Struct<{
|
|
140
121
|
readonly path: Schema.String;
|
|
141
|
-
readonly
|
|
122
|
+
readonly startLine: Schema.optional<Schema.Number>;
|
|
123
|
+
readonly endLine: Schema.optional<Schema.Number>;
|
|
142
124
|
}>;
|
|
143
|
-
readonly success: Schema.
|
|
125
|
+
readonly success: Schema.NullOr<Schema.String>;
|
|
144
126
|
readonly failure: Schema.Never;
|
|
145
127
|
readonly failureMode: "error";
|
|
146
128
|
}, CurrentDirectory>;
|
|
@@ -159,27 +141,17 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
159
141
|
readonly failure: Schema.Never;
|
|
160
142
|
readonly failureMode: "error";
|
|
161
143
|
}, CurrentDirectory>;
|
|
162
|
-
readonly
|
|
163
|
-
readonly parameters: Schema.String;
|
|
164
|
-
readonly success: Schema.$Array<Schema.String>;
|
|
165
|
-
readonly failure: Schema.Never;
|
|
166
|
-
readonly failureMode: "error";
|
|
167
|
-
}, CurrentDirectory>;
|
|
168
|
-
readonly webSearch: Tool.Tool<"webSearch", {
|
|
144
|
+
readonly rg: Tool.Tool<"rg", {
|
|
169
145
|
readonly parameters: Schema.Struct<{
|
|
170
|
-
readonly
|
|
171
|
-
readonly
|
|
146
|
+
readonly pattern: Schema.String;
|
|
147
|
+
readonly glob: Schema.optional<Schema.String>;
|
|
148
|
+
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
149
|
+
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
172
150
|
}>;
|
|
173
151
|
readonly success: Schema.String;
|
|
174
152
|
readonly failure: Schema.Never;
|
|
175
153
|
readonly failureMode: "error";
|
|
176
|
-
},
|
|
177
|
-
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
178
|
-
readonly parameters: Schema.String;
|
|
179
|
-
readonly success: Schema.String;
|
|
180
|
-
readonly failure: Schema.Never;
|
|
181
|
-
readonly failureMode: "error";
|
|
182
|
-
}, never>;
|
|
154
|
+
}, CurrentDirectory>;
|
|
183
155
|
readonly sleep: Tool.Tool<"sleep", {
|
|
184
156
|
readonly parameters: Schema.Finite;
|
|
185
157
|
readonly success: Schema.Void;
|
|
@@ -192,106 +164,110 @@ export declare const AgentTools: Toolkit.Toolkit<{
|
|
|
192
164
|
readonly failure: Schema.Never;
|
|
193
165
|
readonly failureMode: "error";
|
|
194
166
|
}, TaskCompleter>;
|
|
167
|
+
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
168
|
+
readonly parameters: Schema.Struct<{
|
|
169
|
+
readonly id: Schema.Number;
|
|
170
|
+
readonly text: Schema.optional<Schema.String>;
|
|
171
|
+
readonly completed: Schema.optional<Schema.Boolean>;
|
|
172
|
+
}>;
|
|
173
|
+
readonly success: Schema.Void;
|
|
174
|
+
readonly failure: Schema.Never;
|
|
175
|
+
readonly failureMode: "error";
|
|
176
|
+
}, never>;
|
|
177
|
+
readonly webSearch: Tool.Tool<"webSearch", {
|
|
178
|
+
readonly parameters: Schema.Struct<{
|
|
179
|
+
readonly query: Schema.String;
|
|
180
|
+
readonly numResults: Schema.optional<Schema.Number>;
|
|
181
|
+
}>;
|
|
182
|
+
readonly success: Schema.String;
|
|
183
|
+
readonly failure: Schema.Never;
|
|
184
|
+
readonly failureMode: "error";
|
|
185
|
+
}, never>;
|
|
186
|
+
readonly writeFile: Tool.Tool<"writeFile", {
|
|
187
|
+
readonly parameters: Schema.Struct<{
|
|
188
|
+
readonly path: Schema.String;
|
|
189
|
+
readonly content: Schema.String;
|
|
190
|
+
}>;
|
|
191
|
+
readonly success: Schema.Void;
|
|
192
|
+
readonly failure: Schema.Never;
|
|
193
|
+
readonly failureMode: "error";
|
|
194
|
+
}, CurrentDirectory>;
|
|
195
195
|
}>;
|
|
196
196
|
/**
|
|
197
197
|
* @since 1.0.0
|
|
198
198
|
* @category Toolkit
|
|
199
199
|
*/
|
|
200
200
|
export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
201
|
-
readonly
|
|
201
|
+
readonly addTodo: Tool.Tool<"addTodo", {
|
|
202
202
|
readonly parameters: Schema.String;
|
|
203
|
-
readonly success: Schema.
|
|
203
|
+
readonly success: Schema.Void;
|
|
204
204
|
readonly failure: Schema.Never;
|
|
205
205
|
readonly failureMode: "error";
|
|
206
|
-
},
|
|
207
|
-
readonly
|
|
208
|
-
readonly parameters: Schema.
|
|
209
|
-
|
|
210
|
-
readonly startLine: Schema.optional<Schema.Number>;
|
|
211
|
-
readonly endLine: Schema.optional<Schema.Number>;
|
|
212
|
-
}>;
|
|
213
|
-
readonly success: Schema.NullOr<Schema.String>;
|
|
206
|
+
}, never>;
|
|
207
|
+
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
208
|
+
readonly parameters: Schema.String;
|
|
209
|
+
readonly success: Schema.String;
|
|
214
210
|
readonly failure: Schema.Never;
|
|
215
211
|
readonly failureMode: "error";
|
|
216
212
|
}, CurrentDirectory>;
|
|
217
|
-
readonly
|
|
213
|
+
readonly bash: Tool.Tool<"bash", {
|
|
218
214
|
readonly parameters: Schema.Struct<{
|
|
219
|
-
readonly
|
|
220
|
-
readonly
|
|
221
|
-
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
222
|
-
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
215
|
+
readonly command: Schema.String;
|
|
216
|
+
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
223
217
|
}>;
|
|
224
218
|
readonly success: Schema.String;
|
|
225
219
|
readonly failure: Schema.Never;
|
|
226
220
|
readonly failureMode: "error";
|
|
227
221
|
}, CurrentDirectory>;
|
|
228
|
-
readonly
|
|
229
|
-
readonly parameters: Schema.
|
|
230
|
-
readonly success: Schema
|
|
222
|
+
readonly clearTodos: Tool.Tool<"clearTodos", {
|
|
223
|
+
readonly parameters: Schema.Void;
|
|
224
|
+
readonly success: Schema.Void;
|
|
231
225
|
readonly failure: Schema.Never;
|
|
232
226
|
readonly failureMode: "error";
|
|
233
|
-
},
|
|
227
|
+
}, never>;
|
|
234
228
|
readonly delegate: Tool.Tool<"delegate", {
|
|
235
229
|
readonly parameters: Schema.String;
|
|
236
230
|
readonly success: Schema.String;
|
|
237
231
|
readonly failure: Schema.Never;
|
|
238
232
|
readonly failureMode: "error";
|
|
239
233
|
}, SubagentExecutor>;
|
|
234
|
+
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
235
|
+
readonly parameters: Schema.String;
|
|
236
|
+
readonly success: Schema.String;
|
|
237
|
+
readonly failure: Schema.Never;
|
|
238
|
+
readonly failureMode: "error";
|
|
239
|
+
}, never>;
|
|
240
240
|
readonly gh: Tool.Tool<"gh", {
|
|
241
241
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
242
242
|
readonly success: Schema.String;
|
|
243
243
|
readonly failure: Schema.Never;
|
|
244
244
|
readonly failureMode: "error";
|
|
245
245
|
}, CurrentDirectory>;
|
|
246
|
-
readonly
|
|
247
|
-
readonly parameters: Schema.Void;
|
|
248
|
-
readonly success: Schema.$Array<typeof TodoItem>;
|
|
249
|
-
readonly failure: Schema.Never;
|
|
250
|
-
readonly failureMode: "error";
|
|
251
|
-
}, never>;
|
|
252
|
-
readonly addTodo: Tool.Tool<"addTodo", {
|
|
246
|
+
readonly glob: Tool.Tool<"glob", {
|
|
253
247
|
readonly parameters: Schema.String;
|
|
254
|
-
readonly success: Schema.
|
|
255
|
-
readonly failure: Schema.Never;
|
|
256
|
-
readonly failureMode: "error";
|
|
257
|
-
}, never>;
|
|
258
|
-
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
259
|
-
readonly parameters: Schema.Struct<{
|
|
260
|
-
readonly id: Schema.Number;
|
|
261
|
-
readonly text: Schema.optional<Schema.String>;
|
|
262
|
-
readonly completed: Schema.optional<Schema.Boolean>;
|
|
263
|
-
}>;
|
|
264
|
-
readonly success: Schema.Void;
|
|
248
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
265
249
|
readonly failure: Schema.Never;
|
|
266
250
|
readonly failureMode: "error";
|
|
267
|
-
},
|
|
268
|
-
readonly
|
|
251
|
+
}, CurrentDirectory>;
|
|
252
|
+
readonly listTodos: Tool.Tool<"listTodos", {
|
|
269
253
|
readonly parameters: Schema.Void;
|
|
270
|
-
readonly success: Schema
|
|
254
|
+
readonly success: Schema.$Array<typeof TodoItem>;
|
|
271
255
|
readonly failure: Schema.Never;
|
|
272
256
|
readonly failureMode: "error";
|
|
273
257
|
}, never>;
|
|
274
|
-
readonly
|
|
275
|
-
readonly parameters: Schema.Struct<{
|
|
276
|
-
readonly command: Schema.String;
|
|
277
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
278
|
-
}>;
|
|
279
|
-
readonly success: Schema.String;
|
|
280
|
-
readonly failure: Schema.Never;
|
|
281
|
-
readonly failureMode: "error";
|
|
282
|
-
}, CurrentDirectory>;
|
|
283
|
-
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
258
|
+
readonly ls: Tool.Tool<"ls", {
|
|
284
259
|
readonly parameters: Schema.String;
|
|
285
|
-
readonly success: Schema.String
|
|
260
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
286
261
|
readonly failure: Schema.Never;
|
|
287
262
|
readonly failureMode: "error";
|
|
288
263
|
}, CurrentDirectory>;
|
|
289
|
-
readonly
|
|
264
|
+
readonly readFile: Tool.Tool<"readFile", {
|
|
290
265
|
readonly parameters: Schema.Struct<{
|
|
291
266
|
readonly path: Schema.String;
|
|
292
|
-
readonly
|
|
267
|
+
readonly startLine: Schema.optional<Schema.Number>;
|
|
268
|
+
readonly endLine: Schema.optional<Schema.Number>;
|
|
293
269
|
}>;
|
|
294
|
-
readonly success: Schema.
|
|
270
|
+
readonly success: Schema.NullOr<Schema.String>;
|
|
295
271
|
readonly failure: Schema.Never;
|
|
296
272
|
readonly failureMode: "error";
|
|
297
273
|
}, CurrentDirectory>;
|
|
@@ -310,27 +286,23 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
310
286
|
readonly failure: Schema.Never;
|
|
311
287
|
readonly failureMode: "error";
|
|
312
288
|
}, CurrentDirectory>;
|
|
313
|
-
readonly
|
|
314
|
-
readonly parameters: Schema.String;
|
|
315
|
-
readonly success: Schema.$Array<Schema.String>;
|
|
316
|
-
readonly failure: Schema.Never;
|
|
317
|
-
readonly failureMode: "error";
|
|
318
|
-
}, CurrentDirectory>;
|
|
319
|
-
readonly webSearch: Tool.Tool<"webSearch", {
|
|
289
|
+
readonly rg: Tool.Tool<"rg", {
|
|
320
290
|
readonly parameters: Schema.Struct<{
|
|
321
|
-
readonly
|
|
322
|
-
readonly
|
|
291
|
+
readonly pattern: Schema.String;
|
|
292
|
+
readonly glob: Schema.optional<Schema.String>;
|
|
293
|
+
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
294
|
+
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
323
295
|
}>;
|
|
324
296
|
readonly success: Schema.String;
|
|
325
297
|
readonly failure: Schema.Never;
|
|
326
298
|
readonly failureMode: "error";
|
|
327
|
-
},
|
|
328
|
-
readonly
|
|
299
|
+
}, CurrentDirectory>;
|
|
300
|
+
readonly search: Tool.Tool<"search", {
|
|
329
301
|
readonly parameters: Schema.String;
|
|
330
302
|
readonly success: Schema.String;
|
|
331
303
|
readonly failure: Schema.Never;
|
|
332
304
|
readonly failureMode: "error";
|
|
333
|
-
},
|
|
305
|
+
}, SemanticSearch.SemanticSearch>;
|
|
334
306
|
readonly sleep: Tool.Tool<"sleep", {
|
|
335
307
|
readonly parameters: Schema.Finite;
|
|
336
308
|
readonly success: Schema.Void;
|
|
@@ -343,106 +315,110 @@ export declare const AgentToolsWithSearch: Toolkit.Toolkit<{
|
|
|
343
315
|
readonly failure: Schema.Never;
|
|
344
316
|
readonly failureMode: "error";
|
|
345
317
|
}, TaskCompleter>;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
readonly
|
|
318
|
+
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
319
|
+
readonly parameters: Schema.Struct<{
|
|
320
|
+
readonly id: Schema.Number;
|
|
321
|
+
readonly text: Schema.optional<Schema.String>;
|
|
322
|
+
readonly completed: Schema.optional<Schema.Boolean>;
|
|
323
|
+
}>;
|
|
324
|
+
readonly success: Schema.Void;
|
|
325
|
+
readonly failure: Schema.Never;
|
|
326
|
+
readonly failureMode: "error";
|
|
327
|
+
}, never>;
|
|
328
|
+
readonly webSearch: Tool.Tool<"webSearch", {
|
|
329
|
+
readonly parameters: Schema.Struct<{
|
|
330
|
+
readonly query: Schema.String;
|
|
331
|
+
readonly numResults: Schema.optional<Schema.Number>;
|
|
332
|
+
}>;
|
|
354
333
|
readonly success: Schema.String;
|
|
355
334
|
readonly failure: Schema.Never;
|
|
356
335
|
readonly failureMode: "error";
|
|
357
|
-
},
|
|
358
|
-
readonly
|
|
336
|
+
}, never>;
|
|
337
|
+
readonly writeFile: Tool.Tool<"writeFile", {
|
|
359
338
|
readonly parameters: Schema.Struct<{
|
|
360
339
|
readonly path: Schema.String;
|
|
361
|
-
readonly
|
|
362
|
-
readonly endLine: Schema.optional<Schema.Number>;
|
|
340
|
+
readonly content: Schema.String;
|
|
363
341
|
}>;
|
|
364
|
-
readonly success: Schema.
|
|
342
|
+
readonly success: Schema.Void;
|
|
343
|
+
readonly failure: Schema.Never;
|
|
344
|
+
readonly failureMode: "error";
|
|
345
|
+
}, CurrentDirectory>;
|
|
346
|
+
}>;
|
|
347
|
+
/**
|
|
348
|
+
* @since 1.0.0
|
|
349
|
+
* @category Toolkit
|
|
350
|
+
*/
|
|
351
|
+
export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
352
|
+
readonly addTodo: Tool.Tool<"addTodo", {
|
|
353
|
+
readonly parameters: Schema.String;
|
|
354
|
+
readonly success: Schema.Void;
|
|
355
|
+
readonly failure: Schema.Never;
|
|
356
|
+
readonly failureMode: "error";
|
|
357
|
+
}, never>;
|
|
358
|
+
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
359
|
+
readonly parameters: Schema.String;
|
|
360
|
+
readonly success: Schema.String;
|
|
365
361
|
readonly failure: Schema.Never;
|
|
366
362
|
readonly failureMode: "error";
|
|
367
363
|
}, CurrentDirectory>;
|
|
368
|
-
readonly
|
|
364
|
+
readonly bash: Tool.Tool<"bash", {
|
|
369
365
|
readonly parameters: Schema.Struct<{
|
|
370
|
-
readonly
|
|
371
|
-
readonly
|
|
372
|
-
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
373
|
-
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
366
|
+
readonly command: Schema.String;
|
|
367
|
+
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
374
368
|
}>;
|
|
375
369
|
readonly success: Schema.String;
|
|
376
370
|
readonly failure: Schema.Never;
|
|
377
371
|
readonly failureMode: "error";
|
|
378
372
|
}, CurrentDirectory>;
|
|
379
|
-
readonly
|
|
380
|
-
readonly parameters: Schema.
|
|
381
|
-
readonly success: Schema
|
|
373
|
+
readonly clearTodos: Tool.Tool<"clearTodos", {
|
|
374
|
+
readonly parameters: Schema.Void;
|
|
375
|
+
readonly success: Schema.Void;
|
|
382
376
|
readonly failure: Schema.Never;
|
|
383
377
|
readonly failureMode: "error";
|
|
384
|
-
},
|
|
378
|
+
}, never>;
|
|
385
379
|
readonly delegate: Tool.Tool<"delegate", {
|
|
386
380
|
readonly parameters: Schema.String;
|
|
387
381
|
readonly success: Schema.String;
|
|
388
382
|
readonly failure: Schema.Never;
|
|
389
383
|
readonly failureMode: "error";
|
|
390
384
|
}, SubagentExecutor>;
|
|
385
|
+
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
386
|
+
readonly parameters: Schema.String;
|
|
387
|
+
readonly success: Schema.String;
|
|
388
|
+
readonly failure: Schema.Never;
|
|
389
|
+
readonly failureMode: "error";
|
|
390
|
+
}, never>;
|
|
391
391
|
readonly gh: Tool.Tool<"gh", {
|
|
392
392
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
393
393
|
readonly success: Schema.String;
|
|
394
394
|
readonly failure: Schema.Never;
|
|
395
395
|
readonly failureMode: "error";
|
|
396
396
|
}, CurrentDirectory>;
|
|
397
|
-
readonly
|
|
398
|
-
readonly parameters: Schema.Void;
|
|
399
|
-
readonly success: Schema.$Array<typeof TodoItem>;
|
|
400
|
-
readonly failure: Schema.Never;
|
|
401
|
-
readonly failureMode: "error";
|
|
402
|
-
}, never>;
|
|
403
|
-
readonly addTodo: Tool.Tool<"addTodo", {
|
|
397
|
+
readonly glob: Tool.Tool<"glob", {
|
|
404
398
|
readonly parameters: Schema.String;
|
|
405
|
-
readonly success: Schema.
|
|
406
|
-
readonly failure: Schema.Never;
|
|
407
|
-
readonly failureMode: "error";
|
|
408
|
-
}, never>;
|
|
409
|
-
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
410
|
-
readonly parameters: Schema.Struct<{
|
|
411
|
-
readonly id: Schema.Number;
|
|
412
|
-
readonly text: Schema.optional<Schema.String>;
|
|
413
|
-
readonly completed: Schema.optional<Schema.Boolean>;
|
|
414
|
-
}>;
|
|
415
|
-
readonly success: Schema.Void;
|
|
399
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
416
400
|
readonly failure: Schema.Never;
|
|
417
401
|
readonly failureMode: "error";
|
|
418
|
-
},
|
|
419
|
-
readonly
|
|
402
|
+
}, CurrentDirectory>;
|
|
403
|
+
readonly listTodos: Tool.Tool<"listTodos", {
|
|
420
404
|
readonly parameters: Schema.Void;
|
|
421
|
-
readonly success: Schema
|
|
405
|
+
readonly success: Schema.$Array<typeof TodoItem>;
|
|
422
406
|
readonly failure: Schema.Never;
|
|
423
407
|
readonly failureMode: "error";
|
|
424
408
|
}, never>;
|
|
425
|
-
readonly
|
|
426
|
-
readonly parameters: Schema.Struct<{
|
|
427
|
-
readonly command: Schema.String;
|
|
428
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
429
|
-
}>;
|
|
430
|
-
readonly success: Schema.String;
|
|
431
|
-
readonly failure: Schema.Never;
|
|
432
|
-
readonly failureMode: "error";
|
|
433
|
-
}, CurrentDirectory>;
|
|
434
|
-
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
409
|
+
readonly ls: Tool.Tool<"ls", {
|
|
435
410
|
readonly parameters: Schema.String;
|
|
436
|
-
readonly success: Schema.String
|
|
411
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
437
412
|
readonly failure: Schema.Never;
|
|
438
413
|
readonly failureMode: "error";
|
|
439
414
|
}, CurrentDirectory>;
|
|
440
|
-
readonly
|
|
415
|
+
readonly readFile: Tool.Tool<"readFile", {
|
|
441
416
|
readonly parameters: Schema.Struct<{
|
|
442
417
|
readonly path: Schema.String;
|
|
443
|
-
readonly
|
|
418
|
+
readonly startLine: Schema.optional<Schema.Number>;
|
|
419
|
+
readonly endLine: Schema.optional<Schema.Number>;
|
|
444
420
|
}>;
|
|
445
|
-
readonly success: Schema.
|
|
421
|
+
readonly success: Schema.NullOr<Schema.String>;
|
|
446
422
|
readonly failure: Schema.Never;
|
|
447
423
|
readonly failureMode: "error";
|
|
448
424
|
}, CurrentDirectory>;
|
|
@@ -461,27 +437,23 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
461
437
|
readonly failure: Schema.Never;
|
|
462
438
|
readonly failureMode: "error";
|
|
463
439
|
}, CurrentDirectory>;
|
|
464
|
-
readonly
|
|
465
|
-
readonly parameters: Schema.String;
|
|
466
|
-
readonly success: Schema.$Array<Schema.String>;
|
|
467
|
-
readonly failure: Schema.Never;
|
|
468
|
-
readonly failureMode: "error";
|
|
469
|
-
}, CurrentDirectory>;
|
|
470
|
-
readonly webSearch: Tool.Tool<"webSearch", {
|
|
440
|
+
readonly rg: Tool.Tool<"rg", {
|
|
471
441
|
readonly parameters: Schema.Struct<{
|
|
472
|
-
readonly
|
|
473
|
-
readonly
|
|
442
|
+
readonly pattern: Schema.String;
|
|
443
|
+
readonly glob: Schema.optional<Schema.String>;
|
|
444
|
+
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
445
|
+
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
474
446
|
}>;
|
|
475
447
|
readonly success: Schema.String;
|
|
476
448
|
readonly failure: Schema.Never;
|
|
477
449
|
readonly failureMode: "error";
|
|
478
|
-
},
|
|
479
|
-
readonly
|
|
450
|
+
}, CurrentDirectory>;
|
|
451
|
+
readonly search: Tool.Tool<"search", {
|
|
480
452
|
readonly parameters: Schema.String;
|
|
481
453
|
readonly success: Schema.String;
|
|
482
454
|
readonly failure: Schema.Never;
|
|
483
455
|
readonly failureMode: "error";
|
|
484
|
-
},
|
|
456
|
+
}, SemanticSearch.SemanticSearch>;
|
|
485
457
|
readonly sleep: Tool.Tool<"sleep", {
|
|
486
458
|
readonly parameters: Schema.Finite;
|
|
487
459
|
readonly success: Schema.Void;
|
|
@@ -494,7 +466,35 @@ export declare const AgentToolHandlersNoDeps: Layer.Layer<Tool.HandlersFor<{
|
|
|
494
466
|
readonly failure: Schema.Never;
|
|
495
467
|
readonly failureMode: "error";
|
|
496
468
|
}, TaskCompleter>;
|
|
497
|
-
|
|
469
|
+
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
470
|
+
readonly parameters: Schema.Struct<{
|
|
471
|
+
readonly id: Schema.Number;
|
|
472
|
+
readonly text: Schema.optional<Schema.String>;
|
|
473
|
+
readonly completed: Schema.optional<Schema.Boolean>;
|
|
474
|
+
}>;
|
|
475
|
+
readonly success: Schema.Void;
|
|
476
|
+
readonly failure: Schema.Never;
|
|
477
|
+
readonly failureMode: "error";
|
|
478
|
+
}, never>;
|
|
479
|
+
readonly webSearch: Tool.Tool<"webSearch", {
|
|
480
|
+
readonly parameters: Schema.Struct<{
|
|
481
|
+
readonly query: Schema.String;
|
|
482
|
+
readonly numResults: Schema.optional<Schema.Number>;
|
|
483
|
+
}>;
|
|
484
|
+
readonly success: Schema.String;
|
|
485
|
+
readonly failure: Schema.Never;
|
|
486
|
+
readonly failureMode: "error";
|
|
487
|
+
}, never>;
|
|
488
|
+
readonly writeFile: Tool.Tool<"writeFile", {
|
|
489
|
+
readonly parameters: Schema.Struct<{
|
|
490
|
+
readonly path: Schema.String;
|
|
491
|
+
readonly content: Schema.String;
|
|
492
|
+
}>;
|
|
493
|
+
readonly success: Schema.Void;
|
|
494
|
+
readonly failure: Schema.Never;
|
|
495
|
+
readonly failureMode: "error";
|
|
496
|
+
}, CurrentDirectory>;
|
|
497
|
+
}>, never, ChildProcessSpawner.ChildProcessSpawner | ExaSearch.ExaSearch | FileSystem.FileSystem | Path.Path | WebToMarkdown.WebToMarkdown>;
|
|
498
498
|
/**
|
|
499
499
|
* @since 1.0.0
|
|
500
500
|
* @category Layers
|
|
@@ -505,100 +505,76 @@ export declare const AgentToolHandlers: Layer.Layer<Tool.HandlersFor<typeof Agen
|
|
|
505
505
|
* @category Layers
|
|
506
506
|
*/
|
|
507
507
|
export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
508
|
-
readonly
|
|
508
|
+
readonly addTodo: Tool.Tool<"addTodo", {
|
|
509
509
|
readonly parameters: Schema.String;
|
|
510
|
-
readonly success: Schema.
|
|
510
|
+
readonly success: Schema.Void;
|
|
511
511
|
readonly failure: Schema.Never;
|
|
512
512
|
readonly failureMode: "error";
|
|
513
|
-
},
|
|
514
|
-
readonly
|
|
515
|
-
readonly parameters: Schema.
|
|
516
|
-
|
|
517
|
-
readonly startLine: Schema.optional<Schema.Number>;
|
|
518
|
-
readonly endLine: Schema.optional<Schema.Number>;
|
|
519
|
-
}>;
|
|
520
|
-
readonly success: Schema.NullOr<Schema.String>;
|
|
513
|
+
}, never>;
|
|
514
|
+
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
515
|
+
readonly parameters: Schema.String;
|
|
516
|
+
readonly success: Schema.String;
|
|
521
517
|
readonly failure: Schema.Never;
|
|
522
518
|
readonly failureMode: "error";
|
|
523
519
|
}, CurrentDirectory>;
|
|
524
|
-
readonly
|
|
520
|
+
readonly bash: Tool.Tool<"bash", {
|
|
525
521
|
readonly parameters: Schema.Struct<{
|
|
526
|
-
readonly
|
|
527
|
-
readonly
|
|
528
|
-
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
529
|
-
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
522
|
+
readonly command: Schema.String;
|
|
523
|
+
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
530
524
|
}>;
|
|
531
525
|
readonly success: Schema.String;
|
|
532
526
|
readonly failure: Schema.Never;
|
|
533
527
|
readonly failureMode: "error";
|
|
534
528
|
}, CurrentDirectory>;
|
|
535
|
-
readonly
|
|
536
|
-
readonly parameters: Schema.
|
|
537
|
-
readonly success: Schema
|
|
529
|
+
readonly clearTodos: Tool.Tool<"clearTodos", {
|
|
530
|
+
readonly parameters: Schema.Void;
|
|
531
|
+
readonly success: Schema.Void;
|
|
538
532
|
readonly failure: Schema.Never;
|
|
539
533
|
readonly failureMode: "error";
|
|
540
|
-
},
|
|
534
|
+
}, never>;
|
|
541
535
|
readonly delegate: Tool.Tool<"delegate", {
|
|
542
536
|
readonly parameters: Schema.String;
|
|
543
537
|
readonly success: Schema.String;
|
|
544
538
|
readonly failure: Schema.Never;
|
|
545
539
|
readonly failureMode: "error";
|
|
546
540
|
}, SubagentExecutor>;
|
|
541
|
+
readonly fetchMarkdown: Tool.Tool<"fetchMarkdown", {
|
|
542
|
+
readonly parameters: Schema.String;
|
|
543
|
+
readonly success: Schema.String;
|
|
544
|
+
readonly failure: Schema.Never;
|
|
545
|
+
readonly failureMode: "error";
|
|
546
|
+
}, never>;
|
|
547
547
|
readonly gh: Tool.Tool<"gh", {
|
|
548
548
|
readonly parameters: Schema.$Array<Schema.String>;
|
|
549
549
|
readonly success: Schema.String;
|
|
550
550
|
readonly failure: Schema.Never;
|
|
551
551
|
readonly failureMode: "error";
|
|
552
552
|
}, CurrentDirectory>;
|
|
553
|
-
readonly
|
|
554
|
-
readonly parameters: Schema.Void;
|
|
555
|
-
readonly success: Schema.$Array<typeof TodoItem>;
|
|
556
|
-
readonly failure: Schema.Never;
|
|
557
|
-
readonly failureMode: "error";
|
|
558
|
-
}, never>;
|
|
559
|
-
readonly addTodo: Tool.Tool<"addTodo", {
|
|
553
|
+
readonly glob: Tool.Tool<"glob", {
|
|
560
554
|
readonly parameters: Schema.String;
|
|
561
|
-
readonly success: Schema.
|
|
562
|
-
readonly failure: Schema.Never;
|
|
563
|
-
readonly failureMode: "error";
|
|
564
|
-
}, never>;
|
|
565
|
-
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
566
|
-
readonly parameters: Schema.Struct<{
|
|
567
|
-
readonly id: Schema.Number;
|
|
568
|
-
readonly text: Schema.optional<Schema.String>;
|
|
569
|
-
readonly completed: Schema.optional<Schema.Boolean>;
|
|
570
|
-
}>;
|
|
571
|
-
readonly success: Schema.Void;
|
|
555
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
572
556
|
readonly failure: Schema.Never;
|
|
573
557
|
readonly failureMode: "error";
|
|
574
|
-
},
|
|
575
|
-
readonly
|
|
558
|
+
}, CurrentDirectory>;
|
|
559
|
+
readonly listTodos: Tool.Tool<"listTodos", {
|
|
576
560
|
readonly parameters: Schema.Void;
|
|
577
|
-
readonly success: Schema
|
|
561
|
+
readonly success: Schema.$Array<typeof TodoItem>;
|
|
578
562
|
readonly failure: Schema.Never;
|
|
579
563
|
readonly failureMode: "error";
|
|
580
564
|
}, never>;
|
|
581
|
-
readonly
|
|
582
|
-
readonly parameters: Schema.Struct<{
|
|
583
|
-
readonly command: Schema.String;
|
|
584
|
-
readonly timeoutMs: Schema.optional<Schema.Finite>;
|
|
585
|
-
}>;
|
|
586
|
-
readonly success: Schema.String;
|
|
587
|
-
readonly failure: Schema.Never;
|
|
588
|
-
readonly failureMode: "error";
|
|
589
|
-
}, CurrentDirectory>;
|
|
590
|
-
readonly applyPatch: Tool.Tool<"applyPatch", {
|
|
565
|
+
readonly ls: Tool.Tool<"ls", {
|
|
591
566
|
readonly parameters: Schema.String;
|
|
592
|
-
readonly success: Schema.String
|
|
567
|
+
readonly success: Schema.$Array<Schema.String>;
|
|
593
568
|
readonly failure: Schema.Never;
|
|
594
569
|
readonly failureMode: "error";
|
|
595
570
|
}, CurrentDirectory>;
|
|
596
|
-
readonly
|
|
571
|
+
readonly readFile: Tool.Tool<"readFile", {
|
|
597
572
|
readonly parameters: Schema.Struct<{
|
|
598
573
|
readonly path: Schema.String;
|
|
599
|
-
readonly
|
|
574
|
+
readonly startLine: Schema.optional<Schema.Number>;
|
|
575
|
+
readonly endLine: Schema.optional<Schema.Number>;
|
|
600
576
|
}>;
|
|
601
|
-
readonly success: Schema.
|
|
577
|
+
readonly success: Schema.NullOr<Schema.String>;
|
|
602
578
|
readonly failure: Schema.Never;
|
|
603
579
|
readonly failureMode: "error";
|
|
604
580
|
}, CurrentDirectory>;
|
|
@@ -617,27 +593,23 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
617
593
|
readonly failure: Schema.Never;
|
|
618
594
|
readonly failureMode: "error";
|
|
619
595
|
}, CurrentDirectory>;
|
|
620
|
-
readonly
|
|
621
|
-
readonly parameters: Schema.String;
|
|
622
|
-
readonly success: Schema.$Array<Schema.String>;
|
|
623
|
-
readonly failure: Schema.Never;
|
|
624
|
-
readonly failureMode: "error";
|
|
625
|
-
}, CurrentDirectory>;
|
|
626
|
-
readonly webSearch: Tool.Tool<"webSearch", {
|
|
596
|
+
readonly rg: Tool.Tool<"rg", {
|
|
627
597
|
readonly parameters: Schema.Struct<{
|
|
628
|
-
readonly
|
|
629
|
-
readonly
|
|
598
|
+
readonly pattern: Schema.String;
|
|
599
|
+
readonly glob: Schema.optional<Schema.String>;
|
|
600
|
+
readonly filesOnly: Schema.optional<Schema.Boolean>;
|
|
601
|
+
readonly maxLines: Schema.optional<Schema.Finite>;
|
|
630
602
|
}>;
|
|
631
603
|
readonly success: Schema.String;
|
|
632
604
|
readonly failure: Schema.Never;
|
|
633
605
|
readonly failureMode: "error";
|
|
634
|
-
},
|
|
635
|
-
readonly
|
|
606
|
+
}, CurrentDirectory>;
|
|
607
|
+
readonly search: Tool.Tool<"search", {
|
|
636
608
|
readonly parameters: Schema.String;
|
|
637
609
|
readonly success: Schema.String;
|
|
638
610
|
readonly failure: Schema.Never;
|
|
639
611
|
readonly failureMode: "error";
|
|
640
|
-
},
|
|
612
|
+
}, SemanticSearch.SemanticSearch>;
|
|
641
613
|
readonly sleep: Tool.Tool<"sleep", {
|
|
642
614
|
readonly parameters: Schema.Finite;
|
|
643
615
|
readonly success: Schema.Void;
|
|
@@ -650,6 +622,34 @@ export declare const AgentToolHandlersTest: Layer.Layer<Tool.HandlersFor<{
|
|
|
650
622
|
readonly failure: Schema.Never;
|
|
651
623
|
readonly failureMode: "error";
|
|
652
624
|
}, TaskCompleter>;
|
|
653
|
-
|
|
625
|
+
readonly updateTodo: Tool.Tool<"updateTodo", {
|
|
626
|
+
readonly parameters: Schema.Struct<{
|
|
627
|
+
readonly id: Schema.Number;
|
|
628
|
+
readonly text: Schema.optional<Schema.String>;
|
|
629
|
+
readonly completed: Schema.optional<Schema.Boolean>;
|
|
630
|
+
}>;
|
|
631
|
+
readonly success: Schema.Void;
|
|
632
|
+
readonly failure: Schema.Never;
|
|
633
|
+
readonly failureMode: "error";
|
|
634
|
+
}, never>;
|
|
635
|
+
readonly webSearch: Tool.Tool<"webSearch", {
|
|
636
|
+
readonly parameters: Schema.Struct<{
|
|
637
|
+
readonly query: Schema.String;
|
|
638
|
+
readonly numResults: Schema.optional<Schema.Number>;
|
|
639
|
+
}>;
|
|
640
|
+
readonly success: Schema.String;
|
|
641
|
+
readonly failure: Schema.Never;
|
|
642
|
+
readonly failureMode: "error";
|
|
643
|
+
}, never>;
|
|
644
|
+
readonly writeFile: Tool.Tool<"writeFile", {
|
|
645
|
+
readonly parameters: Schema.Struct<{
|
|
646
|
+
readonly path: Schema.String;
|
|
647
|
+
readonly content: Schema.String;
|
|
648
|
+
}>;
|
|
649
|
+
readonly success: Schema.Void;
|
|
650
|
+
readonly failure: Schema.Never;
|
|
651
|
+
readonly failureMode: "error";
|
|
652
|
+
}, CurrentDirectory>;
|
|
653
|
+
}>, never, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path>;
|
|
654
654
|
export {};
|
|
655
655
|
//# sourceMappingURL=AgentTools.d.ts.map
|