@deepthonk/mcp 0.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/LICENSE +21 -0
- package/README.md +293 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +2 -0
- package/dist/prompts.js +26 -0
- package/dist/prompts.js.map +1 -0
- package/dist/resources.d.ts +11 -0
- package/dist/resources.js +100 -0
- package/dist/resources.js.map +1 -0
- package/dist/samplingDriver.d.ts +8 -0
- package/dist/samplingDriver.js +19 -0
- package/dist/samplingDriver.js.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.js +206 -0
- package/dist/server.js.map +1 -0
- package/dist/tools.d.ts +533 -0
- package/dist/tools.js +555 -0
- package/dist/tools.js.map +1 -0
- package/package.json +45 -0
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const toolNames: readonly ["deepthonk.plan", "deepthonk.start", "deepthonk.status", "deepthonk.result", "deepthonk.cancel", "deepthonk.run", "deepthonk.rank", "deepthonk.mutate", "deepthonk.resume", "deepthonk.export"];
|
|
3
|
+
export declare const planArgsSchema: z.ZodObject<{
|
|
4
|
+
profile: z.ZodDefault<z.ZodEnum<["quick", "balanced", "paper"]>>;
|
|
5
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
k: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
m: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
profile: "quick" | "balanced" | "paper";
|
|
11
|
+
n?: number | undefined;
|
|
12
|
+
k?: number | undefined;
|
|
13
|
+
t?: number | undefined;
|
|
14
|
+
m?: number | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
profile?: "quick" | "balanced" | "paper" | undefined;
|
|
17
|
+
n?: number | undefined;
|
|
18
|
+
k?: number | undefined;
|
|
19
|
+
t?: number | undefined;
|
|
20
|
+
m?: number | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const runArgsSchema: z.ZodObject<{
|
|
23
|
+
task: z.ZodString;
|
|
24
|
+
rubric: z.ZodOptional<z.ZodString>;
|
|
25
|
+
config_path: z.ZodOptional<z.ZodString>;
|
|
26
|
+
profile: z.ZodDefault<z.ZodEnum<["quick", "balanced", "paper"]>>;
|
|
27
|
+
prompt_style: z.ZodOptional<z.ZodEnum<["general", "paper-programming"]>>;
|
|
28
|
+
provider: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
29
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
30
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
31
|
+
generator_model: z.ZodOptional<z.ZodString>;
|
|
32
|
+
mutator_model: z.ZodOptional<z.ZodString>;
|
|
33
|
+
judge_model: z.ZodOptional<z.ZodString>;
|
|
34
|
+
finalizer_model: z.ZodOptional<z.ZodString>;
|
|
35
|
+
seed: z.ZodDefault<z.ZodNumber>;
|
|
36
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
37
|
+
max_calls: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
max_input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
max_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
max_usd: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
request_timeout_ms: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
k: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
t: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
m: z.ZodOptional<z.ZodNumber>;
|
|
46
|
+
lambda: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
sample_temperature: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
mutate_temperature: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
judge_temperature: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
concurrency: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
generate: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
judge: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
mutate: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
generate?: number | undefined;
|
|
56
|
+
judge?: number | undefined;
|
|
57
|
+
mutate?: number | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
generate?: number | undefined;
|
|
60
|
+
judge?: number | undefined;
|
|
61
|
+
mutate?: number | undefined;
|
|
62
|
+
}>>;
|
|
63
|
+
prompts: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
generate: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
system: z.ZodOptional<z.ZodString>;
|
|
66
|
+
user: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
system?: string | undefined;
|
|
69
|
+
user?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
system?: string | undefined;
|
|
72
|
+
user?: string | undefined;
|
|
73
|
+
}>>;
|
|
74
|
+
compare: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
system: z.ZodOptional<z.ZodString>;
|
|
76
|
+
user: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
system?: string | undefined;
|
|
79
|
+
user?: string | undefined;
|
|
80
|
+
}, {
|
|
81
|
+
system?: string | undefined;
|
|
82
|
+
user?: string | undefined;
|
|
83
|
+
}>>;
|
|
84
|
+
mutate: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
system: z.ZodOptional<z.ZodString>;
|
|
86
|
+
user: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
system?: string | undefined;
|
|
89
|
+
user?: string | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
system?: string | undefined;
|
|
92
|
+
user?: string | undefined;
|
|
93
|
+
}>>;
|
|
94
|
+
finalize: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
system: z.ZodOptional<z.ZodString>;
|
|
96
|
+
user: z.ZodOptional<z.ZodString>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
system?: string | undefined;
|
|
99
|
+
user?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
system?: string | undefined;
|
|
102
|
+
user?: string | undefined;
|
|
103
|
+
}>>;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
generate?: {
|
|
106
|
+
system?: string | undefined;
|
|
107
|
+
user?: string | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
mutate?: {
|
|
110
|
+
system?: string | undefined;
|
|
111
|
+
user?: string | undefined;
|
|
112
|
+
} | undefined;
|
|
113
|
+
compare?: {
|
|
114
|
+
system?: string | undefined;
|
|
115
|
+
user?: string | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
finalize?: {
|
|
118
|
+
system?: string | undefined;
|
|
119
|
+
user?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
generate?: {
|
|
123
|
+
system?: string | undefined;
|
|
124
|
+
user?: string | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
mutate?: {
|
|
127
|
+
system?: string | undefined;
|
|
128
|
+
user?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
compare?: {
|
|
131
|
+
system?: string | undefined;
|
|
132
|
+
user?: string | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
finalize?: {
|
|
135
|
+
system?: string | undefined;
|
|
136
|
+
user?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
}>>;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
task: string;
|
|
141
|
+
profile: "quick" | "balanced" | "paper";
|
|
142
|
+
provider: string;
|
|
143
|
+
seed: number;
|
|
144
|
+
rubric?: string | undefined;
|
|
145
|
+
run_dir?: string | undefined;
|
|
146
|
+
n?: number | undefined;
|
|
147
|
+
k?: number | undefined;
|
|
148
|
+
t?: number | undefined;
|
|
149
|
+
m?: number | undefined;
|
|
150
|
+
config_path?: string | undefined;
|
|
151
|
+
prompt_style?: "general" | "paper-programming" | undefined;
|
|
152
|
+
base_url?: string | undefined;
|
|
153
|
+
api_key_env?: string | undefined;
|
|
154
|
+
generator_model?: string | undefined;
|
|
155
|
+
mutator_model?: string | undefined;
|
|
156
|
+
judge_model?: string | undefined;
|
|
157
|
+
finalizer_model?: string | undefined;
|
|
158
|
+
max_calls?: number | undefined;
|
|
159
|
+
max_input_tokens?: number | undefined;
|
|
160
|
+
max_output_tokens?: number | undefined;
|
|
161
|
+
max_usd?: number | undefined;
|
|
162
|
+
request_timeout_ms?: number | undefined;
|
|
163
|
+
lambda?: number | undefined;
|
|
164
|
+
sample_temperature?: number | undefined;
|
|
165
|
+
mutate_temperature?: number | undefined;
|
|
166
|
+
judge_temperature?: number | undefined;
|
|
167
|
+
concurrency?: {
|
|
168
|
+
generate?: number | undefined;
|
|
169
|
+
judge?: number | undefined;
|
|
170
|
+
mutate?: number | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
prompts?: {
|
|
173
|
+
generate?: {
|
|
174
|
+
system?: string | undefined;
|
|
175
|
+
user?: string | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
mutate?: {
|
|
178
|
+
system?: string | undefined;
|
|
179
|
+
user?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
compare?: {
|
|
182
|
+
system?: string | undefined;
|
|
183
|
+
user?: string | undefined;
|
|
184
|
+
} | undefined;
|
|
185
|
+
finalize?: {
|
|
186
|
+
system?: string | undefined;
|
|
187
|
+
user?: string | undefined;
|
|
188
|
+
} | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
}, {
|
|
191
|
+
task: string;
|
|
192
|
+
rubric?: string | undefined;
|
|
193
|
+
run_dir?: string | undefined;
|
|
194
|
+
profile?: "quick" | "balanced" | "paper" | undefined;
|
|
195
|
+
n?: number | undefined;
|
|
196
|
+
k?: number | undefined;
|
|
197
|
+
t?: number | undefined;
|
|
198
|
+
m?: number | undefined;
|
|
199
|
+
config_path?: string | undefined;
|
|
200
|
+
prompt_style?: "general" | "paper-programming" | undefined;
|
|
201
|
+
provider?: string | undefined;
|
|
202
|
+
base_url?: string | undefined;
|
|
203
|
+
api_key_env?: string | undefined;
|
|
204
|
+
generator_model?: string | undefined;
|
|
205
|
+
mutator_model?: string | undefined;
|
|
206
|
+
judge_model?: string | undefined;
|
|
207
|
+
finalizer_model?: string | undefined;
|
|
208
|
+
seed?: number | undefined;
|
|
209
|
+
max_calls?: number | undefined;
|
|
210
|
+
max_input_tokens?: number | undefined;
|
|
211
|
+
max_output_tokens?: number | undefined;
|
|
212
|
+
max_usd?: number | undefined;
|
|
213
|
+
request_timeout_ms?: number | undefined;
|
|
214
|
+
lambda?: number | undefined;
|
|
215
|
+
sample_temperature?: number | undefined;
|
|
216
|
+
mutate_temperature?: number | undefined;
|
|
217
|
+
judge_temperature?: number | undefined;
|
|
218
|
+
concurrency?: {
|
|
219
|
+
generate?: number | undefined;
|
|
220
|
+
judge?: number | undefined;
|
|
221
|
+
mutate?: number | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
prompts?: {
|
|
224
|
+
generate?: {
|
|
225
|
+
system?: string | undefined;
|
|
226
|
+
user?: string | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
mutate?: {
|
|
229
|
+
system?: string | undefined;
|
|
230
|
+
user?: string | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
compare?: {
|
|
233
|
+
system?: string | undefined;
|
|
234
|
+
user?: string | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
finalize?: {
|
|
237
|
+
system?: string | undefined;
|
|
238
|
+
user?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
export declare const jobArgsSchema: z.ZodObject<{
|
|
243
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
244
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
245
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
|
+
run_dir?: string | undefined;
|
|
247
|
+
job_id?: string | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
run_dir?: string | undefined;
|
|
250
|
+
job_id?: string | undefined;
|
|
251
|
+
}>;
|
|
252
|
+
export declare const rankArgsSchema: z.ZodObject<{
|
|
253
|
+
config_path: z.ZodOptional<z.ZodString>;
|
|
254
|
+
provider: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
255
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
256
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
257
|
+
generator_model: z.ZodOptional<z.ZodString>;
|
|
258
|
+
mutator_model: z.ZodOptional<z.ZodString>;
|
|
259
|
+
judge_model: z.ZodOptional<z.ZodString>;
|
|
260
|
+
finalizer_model: z.ZodOptional<z.ZodString>;
|
|
261
|
+
} & {
|
|
262
|
+
task: z.ZodString;
|
|
263
|
+
rubric: z.ZodOptional<z.ZodString>;
|
|
264
|
+
candidates: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
265
|
+
id: z.ZodOptional<z.ZodString>;
|
|
266
|
+
content: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
content: string;
|
|
269
|
+
id?: string | undefined;
|
|
270
|
+
}, {
|
|
271
|
+
content: string;
|
|
272
|
+
id?: string | undefined;
|
|
273
|
+
}>]>, "many">;
|
|
274
|
+
}, "strip", z.ZodTypeAny, {
|
|
275
|
+
task: string;
|
|
276
|
+
candidates: (string | {
|
|
277
|
+
content: string;
|
|
278
|
+
id?: string | undefined;
|
|
279
|
+
})[];
|
|
280
|
+
provider: string;
|
|
281
|
+
rubric?: string | undefined;
|
|
282
|
+
config_path?: string | undefined;
|
|
283
|
+
base_url?: string | undefined;
|
|
284
|
+
api_key_env?: string | undefined;
|
|
285
|
+
generator_model?: string | undefined;
|
|
286
|
+
mutator_model?: string | undefined;
|
|
287
|
+
judge_model?: string | undefined;
|
|
288
|
+
finalizer_model?: string | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
task: string;
|
|
291
|
+
candidates: (string | {
|
|
292
|
+
content: string;
|
|
293
|
+
id?: string | undefined;
|
|
294
|
+
})[];
|
|
295
|
+
rubric?: string | undefined;
|
|
296
|
+
config_path?: string | undefined;
|
|
297
|
+
provider?: string | undefined;
|
|
298
|
+
base_url?: string | undefined;
|
|
299
|
+
api_key_env?: string | undefined;
|
|
300
|
+
generator_model?: string | undefined;
|
|
301
|
+
mutator_model?: string | undefined;
|
|
302
|
+
judge_model?: string | undefined;
|
|
303
|
+
finalizer_model?: string | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
export declare const mutateArgsSchema: z.ZodObject<{
|
|
306
|
+
config_path: z.ZodOptional<z.ZodString>;
|
|
307
|
+
provider: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
308
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
309
|
+
api_key_env: z.ZodOptional<z.ZodString>;
|
|
310
|
+
generator_model: z.ZodOptional<z.ZodString>;
|
|
311
|
+
mutator_model: z.ZodOptional<z.ZodString>;
|
|
312
|
+
judge_model: z.ZodOptional<z.ZodString>;
|
|
313
|
+
finalizer_model: z.ZodOptional<z.ZodString>;
|
|
314
|
+
} & {
|
|
315
|
+
task: z.ZodString;
|
|
316
|
+
rubric: z.ZodOptional<z.ZodString>;
|
|
317
|
+
candidate: z.ZodString;
|
|
318
|
+
critique: z.ZodDefault<z.ZodString>;
|
|
319
|
+
}, "strip", z.ZodTypeAny, {
|
|
320
|
+
task: string;
|
|
321
|
+
candidate: string;
|
|
322
|
+
critique: string;
|
|
323
|
+
provider: string;
|
|
324
|
+
rubric?: string | undefined;
|
|
325
|
+
config_path?: string | undefined;
|
|
326
|
+
base_url?: string | undefined;
|
|
327
|
+
api_key_env?: string | undefined;
|
|
328
|
+
generator_model?: string | undefined;
|
|
329
|
+
mutator_model?: string | undefined;
|
|
330
|
+
judge_model?: string | undefined;
|
|
331
|
+
finalizer_model?: string | undefined;
|
|
332
|
+
}, {
|
|
333
|
+
task: string;
|
|
334
|
+
candidate: string;
|
|
335
|
+
rubric?: string | undefined;
|
|
336
|
+
critique?: string | undefined;
|
|
337
|
+
config_path?: string | undefined;
|
|
338
|
+
provider?: string | undefined;
|
|
339
|
+
base_url?: string | undefined;
|
|
340
|
+
api_key_env?: string | undefined;
|
|
341
|
+
generator_model?: string | undefined;
|
|
342
|
+
mutator_model?: string | undefined;
|
|
343
|
+
judge_model?: string | undefined;
|
|
344
|
+
finalizer_model?: string | undefined;
|
|
345
|
+
}>;
|
|
346
|
+
export declare const resumeArgsSchema: z.ZodObject<{
|
|
347
|
+
run_dir: z.ZodString;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
run_dir: string;
|
|
350
|
+
}, {
|
|
351
|
+
run_dir: string;
|
|
352
|
+
}>;
|
|
353
|
+
export declare const exportArgsSchema: z.ZodObject<{
|
|
354
|
+
run_dir: z.ZodString;
|
|
355
|
+
format: z.ZodDefault<z.ZodEnum<["json", "markdown", "jsonl"]>>;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
run_dir: string;
|
|
358
|
+
format: "json" | "markdown" | "jsonl";
|
|
359
|
+
}, {
|
|
360
|
+
run_dir: string;
|
|
361
|
+
format?: "json" | "markdown" | "jsonl" | undefined;
|
|
362
|
+
}>;
|
|
363
|
+
export declare const runOutputSchema: z.ZodObject<{
|
|
364
|
+
run_id: z.ZodString;
|
|
365
|
+
winner_id: z.ZodString;
|
|
366
|
+
final_answer: z.ZodString;
|
|
367
|
+
summary_resource: z.ZodString;
|
|
368
|
+
trace_resource: z.ZodString;
|
|
369
|
+
run_dir: z.ZodString;
|
|
370
|
+
}, "strip", z.ZodTypeAny, {
|
|
371
|
+
run_dir: string;
|
|
372
|
+
run_id: string;
|
|
373
|
+
winner_id: string;
|
|
374
|
+
final_answer: string;
|
|
375
|
+
summary_resource: string;
|
|
376
|
+
trace_resource: string;
|
|
377
|
+
}, {
|
|
378
|
+
run_dir: string;
|
|
379
|
+
run_id: string;
|
|
380
|
+
winner_id: string;
|
|
381
|
+
final_answer: string;
|
|
382
|
+
summary_resource: string;
|
|
383
|
+
trace_resource: string;
|
|
384
|
+
}>;
|
|
385
|
+
export declare const startOutputSchema: z.ZodObject<{
|
|
386
|
+
job_id: z.ZodString;
|
|
387
|
+
run_dir: z.ZodString;
|
|
388
|
+
state: z.ZodString;
|
|
389
|
+
status_resource: z.ZodString;
|
|
390
|
+
result_resource: z.ZodString;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
run_dir: string;
|
|
393
|
+
job_id: string;
|
|
394
|
+
state: string;
|
|
395
|
+
status_resource: string;
|
|
396
|
+
result_resource: string;
|
|
397
|
+
}, {
|
|
398
|
+
run_dir: string;
|
|
399
|
+
job_id: string;
|
|
400
|
+
state: string;
|
|
401
|
+
status_resource: string;
|
|
402
|
+
result_resource: string;
|
|
403
|
+
}>;
|
|
404
|
+
export declare const statusOutputSchema: z.ZodObject<{
|
|
405
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
406
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
407
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
408
|
+
state: z.ZodOptional<z.ZodString>;
|
|
409
|
+
status: z.ZodOptional<z.ZodString>;
|
|
410
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
411
|
+
generation: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"final">]>>;
|
|
412
|
+
usage: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
413
|
+
error: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
414
|
+
message: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
416
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
417
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
418
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
419
|
+
state: z.ZodOptional<z.ZodString>;
|
|
420
|
+
status: z.ZodOptional<z.ZodString>;
|
|
421
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
422
|
+
generation: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"final">]>>;
|
|
423
|
+
usage: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
424
|
+
error: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
425
|
+
message: z.ZodOptional<z.ZodString>;
|
|
426
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
427
|
+
job_id: z.ZodOptional<z.ZodString>;
|
|
428
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
429
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
430
|
+
state: z.ZodOptional<z.ZodString>;
|
|
431
|
+
status: z.ZodOptional<z.ZodString>;
|
|
432
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
433
|
+
generation: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"final">]>>;
|
|
434
|
+
usage: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
435
|
+
error: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
436
|
+
message: z.ZodOptional<z.ZodString>;
|
|
437
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
438
|
+
export declare const resultOutputSchema: z.ZodObject<{
|
|
439
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
440
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
441
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
442
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
443
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
444
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
445
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
446
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
447
|
+
complete: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
449
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
451
|
+
export declare const cancelOutputSchema: z.ZodObject<{
|
|
452
|
+
cancel_requested: z.ZodBoolean;
|
|
453
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
454
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
455
|
+
cancel_requested: z.ZodBoolean;
|
|
456
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
458
|
+
cancel_requested: z.ZodBoolean;
|
|
459
|
+
run_dir: z.ZodOptional<z.ZodString>;
|
|
460
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
461
|
+
export declare const resumeOutputSchema: z.ZodObject<{
|
|
462
|
+
status: z.ZodString;
|
|
463
|
+
message: z.ZodString;
|
|
464
|
+
run_id: z.ZodOptional<z.ZodString>;
|
|
465
|
+
phase: z.ZodOptional<z.ZodString>;
|
|
466
|
+
generation: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"final">]>>;
|
|
467
|
+
safe_to_continue: z.ZodOptional<z.ZodBoolean>;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
status: string;
|
|
470
|
+
message: string;
|
|
471
|
+
run_id?: string | undefined;
|
|
472
|
+
phase?: string | undefined;
|
|
473
|
+
generation?: number | "final" | undefined;
|
|
474
|
+
safe_to_continue?: boolean | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
status: string;
|
|
477
|
+
message: string;
|
|
478
|
+
run_id?: string | undefined;
|
|
479
|
+
phase?: string | undefined;
|
|
480
|
+
generation?: number | "final" | undefined;
|
|
481
|
+
safe_to_continue?: boolean | undefined;
|
|
482
|
+
}>;
|
|
483
|
+
export declare const rankOutputSchema: z.ZodObject<{
|
|
484
|
+
scores: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
485
|
+
comparisons: z.ZodArray<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
487
|
+
comparisons: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
488
|
+
scores: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
489
|
+
}, {
|
|
490
|
+
comparisons: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
491
|
+
scores: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[];
|
|
492
|
+
}>;
|
|
493
|
+
export declare const mutateOutputSchema: z.ZodObject<{
|
|
494
|
+
mutated: z.ZodString;
|
|
495
|
+
model: z.ZodOptional<z.ZodString>;
|
|
496
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
497
|
+
usage: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
mutated: string;
|
|
500
|
+
usage?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
501
|
+
provider?: string | undefined;
|
|
502
|
+
model?: string | undefined;
|
|
503
|
+
}, {
|
|
504
|
+
mutated: string;
|
|
505
|
+
usage?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
506
|
+
provider?: string | undefined;
|
|
507
|
+
model?: string | undefined;
|
|
508
|
+
}>;
|
|
509
|
+
export declare function deepthonkPlan(argsInput: unknown): Record<string, unknown>;
|
|
510
|
+
export declare function deepthonkStart(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
511
|
+
export declare function deepthonkStatus(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
512
|
+
export declare function deepthonkResult(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
513
|
+
export declare function deepthonkCancel(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
514
|
+
export declare function deepthonkRun(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
515
|
+
export declare function deepthonkRank(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
516
|
+
export declare function deepthonkMutate(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
517
|
+
export declare function deepthonkResume(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
518
|
+
export declare function deepthonkExport(argsInput: unknown): Promise<Record<string, unknown>>;
|
|
519
|
+
export declare function toolResult(value: unknown): {
|
|
520
|
+
structuredContent: Record<string, unknown>;
|
|
521
|
+
content: Array<{
|
|
522
|
+
type: "text";
|
|
523
|
+
text: string;
|
|
524
|
+
}>;
|
|
525
|
+
};
|
|
526
|
+
export declare function toolError(error: unknown, runDir?: string): {
|
|
527
|
+
isError: true;
|
|
528
|
+
structuredContent: Record<string, unknown>;
|
|
529
|
+
content: Array<{
|
|
530
|
+
type: "text";
|
|
531
|
+
text: string;
|
|
532
|
+
}>;
|
|
533
|
+
};
|