@deepagents/toolbox 4.3.0 → 5.0.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.
@@ -1,14 +1,460 @@
1
- export declare const user_story_formatter_tool: import("ai").Tool<{
2
- title: string;
3
- priority: "High" | "Medium" | "Low";
4
- userRole: string;
5
- action: string;
6
- benefit: string;
7
- acceptanceCriteria: {
8
- criterion: string;
9
- }[];
10
- storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
11
- technicalNotes?: string | undefined;
12
- epicOrFeature?: string | undefined;
13
- }, string>;
1
+ export declare const user_story_formatter_tool: ({
2
+ title?: string;
3
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
4
+ metadata?: import("@ai-sdk/provider").JSONObject;
5
+ inputSchema: import("ai").FlexibleSchema<{
6
+ title: string;
7
+ priority: "High" | "Medium" | "Low";
8
+ userRole: string;
9
+ action: string;
10
+ benefit: string;
11
+ acceptanceCriteria: {
12
+ criterion: string;
13
+ }[];
14
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
15
+ technicalNotes?: string | undefined;
16
+ epicOrFeature?: string | undefined;
17
+ }>;
18
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
19
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
20
+ title: string;
21
+ priority: "High" | "Medium" | "Low";
22
+ userRole: string;
23
+ action: string;
24
+ benefit: string;
25
+ acceptanceCriteria: {
26
+ criterion: string;
27
+ }[];
28
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
29
+ technicalNotes?: string | undefined;
30
+ epicOrFeature?: string | undefined;
31
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
32
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
33
+ onInputDelta?: ((options: {
34
+ inputTextDelta: string;
35
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
36
+ onInputAvailable?: ((options: {
37
+ input: {
38
+ title: string;
39
+ priority: "High" | "Medium" | "Low";
40
+ userRole: string;
41
+ action: string;
42
+ benefit: string;
43
+ acceptanceCriteria: {
44
+ criterion: string;
45
+ }[];
46
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
47
+ technicalNotes?: string | undefined;
48
+ epicOrFeature?: string | undefined;
49
+ };
50
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
51
+ toModelOutput?: ((options: {
52
+ toolCallId: string;
53
+ input: {
54
+ title: string;
55
+ priority: "High" | "Medium" | "Low";
56
+ userRole: string;
57
+ action: string;
58
+ benefit: string;
59
+ acceptanceCriteria: {
60
+ criterion: string;
61
+ }[];
62
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
63
+ technicalNotes?: string | undefined;
64
+ epicOrFeature?: string | undefined;
65
+ };
66
+ output: string;
67
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
68
+ } & {
69
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
70
+ execute: import("ai").ToolExecuteFunction<{
71
+ title: string;
72
+ priority: "High" | "Medium" | "Low";
73
+ userRole: string;
74
+ action: string;
75
+ benefit: string;
76
+ acceptanceCriteria: {
77
+ criterion: string;
78
+ }[];
79
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
80
+ technicalNotes?: string | undefined;
81
+ epicOrFeature?: string | undefined;
82
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
83
+ } & {
84
+ description?: string | ((options: {
85
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
86
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
87
+ }) => string) | undefined;
88
+ strict?: boolean;
89
+ inputExamples?: {
90
+ input: NoInfer<{
91
+ title: string;
92
+ priority: "High" | "Medium" | "Low";
93
+ userRole: string;
94
+ action: string;
95
+ benefit: string;
96
+ acceptanceCriteria: {
97
+ criterion: string;
98
+ }[];
99
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
100
+ technicalNotes?: string | undefined;
101
+ epicOrFeature?: string | undefined;
102
+ }>;
103
+ }[] | undefined;
104
+ id?: never;
105
+ isProviderExecuted?: never;
106
+ args?: never;
107
+ supportsDeferredResults?: never;
108
+ } & {
109
+ type?: undefined | "function";
110
+ } & {
111
+ execute: import("ai").ToolExecuteFunction<{
112
+ title: string;
113
+ priority: "High" | "Medium" | "Low";
114
+ userRole: string;
115
+ action: string;
116
+ benefit: string;
117
+ acceptanceCriteria: {
118
+ criterion: string;
119
+ }[];
120
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
121
+ technicalNotes?: string | undefined;
122
+ epicOrFeature?: string | undefined;
123
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
124
+ }) | ({
125
+ title?: string;
126
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
127
+ metadata?: import("@ai-sdk/provider").JSONObject;
128
+ inputSchema: import("ai").FlexibleSchema<{
129
+ title: string;
130
+ priority: "High" | "Medium" | "Low";
131
+ userRole: string;
132
+ action: string;
133
+ benefit: string;
134
+ acceptanceCriteria: {
135
+ criterion: string;
136
+ }[];
137
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
138
+ technicalNotes?: string | undefined;
139
+ epicOrFeature?: string | undefined;
140
+ }>;
141
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
142
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
143
+ title: string;
144
+ priority: "High" | "Medium" | "Low";
145
+ userRole: string;
146
+ action: string;
147
+ benefit: string;
148
+ acceptanceCriteria: {
149
+ criterion: string;
150
+ }[];
151
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
152
+ technicalNotes?: string | undefined;
153
+ epicOrFeature?: string | undefined;
154
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
155
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
156
+ onInputDelta?: ((options: {
157
+ inputTextDelta: string;
158
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
159
+ onInputAvailable?: ((options: {
160
+ input: {
161
+ title: string;
162
+ priority: "High" | "Medium" | "Low";
163
+ userRole: string;
164
+ action: string;
165
+ benefit: string;
166
+ acceptanceCriteria: {
167
+ criterion: string;
168
+ }[];
169
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
170
+ technicalNotes?: string | undefined;
171
+ epicOrFeature?: string | undefined;
172
+ };
173
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
174
+ toModelOutput?: ((options: {
175
+ toolCallId: string;
176
+ input: {
177
+ title: string;
178
+ priority: "High" | "Medium" | "Low";
179
+ userRole: string;
180
+ action: string;
181
+ benefit: string;
182
+ acceptanceCriteria: {
183
+ criterion: string;
184
+ }[];
185
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
186
+ technicalNotes?: string | undefined;
187
+ epicOrFeature?: string | undefined;
188
+ };
189
+ output: string;
190
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
191
+ } & {
192
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
193
+ execute: import("ai").ToolExecuteFunction<{
194
+ title: string;
195
+ priority: "High" | "Medium" | "Low";
196
+ userRole: string;
197
+ action: string;
198
+ benefit: string;
199
+ acceptanceCriteria: {
200
+ criterion: string;
201
+ }[];
202
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
203
+ technicalNotes?: string | undefined;
204
+ epicOrFeature?: string | undefined;
205
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
206
+ } & {
207
+ description?: string | ((options: {
208
+ context: NoInfer<import("@ai-sdk/provider-utils").Context>;
209
+ experimental_sandbox?: import("ai").Experimental_SandboxSession;
210
+ }) => string) | undefined;
211
+ strict?: boolean;
212
+ inputExamples?: {
213
+ input: NoInfer<{
214
+ title: string;
215
+ priority: "High" | "Medium" | "Low";
216
+ userRole: string;
217
+ action: string;
218
+ benefit: string;
219
+ acceptanceCriteria: {
220
+ criterion: string;
221
+ }[];
222
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
223
+ technicalNotes?: string | undefined;
224
+ epicOrFeature?: string | undefined;
225
+ }>;
226
+ }[] | undefined;
227
+ id?: never;
228
+ isProviderExecuted?: never;
229
+ args?: never;
230
+ supportsDeferredResults?: never;
231
+ } & {
232
+ type: "dynamic";
233
+ } & {
234
+ execute: import("ai").ToolExecuteFunction<{
235
+ title: string;
236
+ priority: "High" | "Medium" | "Low";
237
+ userRole: string;
238
+ action: string;
239
+ benefit: string;
240
+ acceptanceCriteria: {
241
+ criterion: string;
242
+ }[];
243
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
244
+ technicalNotes?: string | undefined;
245
+ epicOrFeature?: string | undefined;
246
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
247
+ }) | ({
248
+ title?: string;
249
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
250
+ metadata?: import("@ai-sdk/provider").JSONObject;
251
+ inputSchema: import("ai").FlexibleSchema<{
252
+ title: string;
253
+ priority: "High" | "Medium" | "Low";
254
+ userRole: string;
255
+ action: string;
256
+ benefit: string;
257
+ acceptanceCriteria: {
258
+ criterion: string;
259
+ }[];
260
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
261
+ technicalNotes?: string | undefined;
262
+ epicOrFeature?: string | undefined;
263
+ }>;
264
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
265
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
266
+ title: string;
267
+ priority: "High" | "Medium" | "Low";
268
+ userRole: string;
269
+ action: string;
270
+ benefit: string;
271
+ acceptanceCriteria: {
272
+ criterion: string;
273
+ }[];
274
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
275
+ technicalNotes?: string | undefined;
276
+ epicOrFeature?: string | undefined;
277
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
278
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
279
+ onInputDelta?: ((options: {
280
+ inputTextDelta: string;
281
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
282
+ onInputAvailable?: ((options: {
283
+ input: {
284
+ title: string;
285
+ priority: "High" | "Medium" | "Low";
286
+ userRole: string;
287
+ action: string;
288
+ benefit: string;
289
+ acceptanceCriteria: {
290
+ criterion: string;
291
+ }[];
292
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
293
+ technicalNotes?: string | undefined;
294
+ epicOrFeature?: string | undefined;
295
+ };
296
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
297
+ toModelOutput?: ((options: {
298
+ toolCallId: string;
299
+ input: {
300
+ title: string;
301
+ priority: "High" | "Medium" | "Low";
302
+ userRole: string;
303
+ action: string;
304
+ benefit: string;
305
+ acceptanceCriteria: {
306
+ criterion: string;
307
+ }[];
308
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
309
+ technicalNotes?: string | undefined;
310
+ epicOrFeature?: string | undefined;
311
+ };
312
+ output: string;
313
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
314
+ } & {
315
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
316
+ execute: import("ai").ToolExecuteFunction<{
317
+ title: string;
318
+ priority: "High" | "Medium" | "Low";
319
+ userRole: string;
320
+ action: string;
321
+ benefit: string;
322
+ acceptanceCriteria: {
323
+ criterion: string;
324
+ }[];
325
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
326
+ technicalNotes?: string | undefined;
327
+ epicOrFeature?: string | undefined;
328
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
329
+ } & {
330
+ type: "provider";
331
+ id: `${string}.${string}`;
332
+ args: Record<string, unknown>;
333
+ description?: never;
334
+ strict?: never;
335
+ inputExamples?: never;
336
+ } & {
337
+ isProviderExecuted: false;
338
+ supportsDeferredResults?: never;
339
+ } & {
340
+ execute: import("ai").ToolExecuteFunction<{
341
+ title: string;
342
+ priority: "High" | "Medium" | "Low";
343
+ userRole: string;
344
+ action: string;
345
+ benefit: string;
346
+ acceptanceCriteria: {
347
+ criterion: string;
348
+ }[];
349
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
350
+ technicalNotes?: string | undefined;
351
+ epicOrFeature?: string | undefined;
352
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
353
+ }) | ({
354
+ title?: string;
355
+ providerOptions?: import("@ai-sdk/provider-utils").ProviderOptions;
356
+ metadata?: import("@ai-sdk/provider").JSONObject;
357
+ inputSchema: import("ai").FlexibleSchema<{
358
+ title: string;
359
+ priority: "High" | "Medium" | "Low";
360
+ userRole: string;
361
+ action: string;
362
+ benefit: string;
363
+ acceptanceCriteria: {
364
+ criterion: string;
365
+ }[];
366
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
367
+ technicalNotes?: string | undefined;
368
+ epicOrFeature?: string | undefined;
369
+ }>;
370
+ contextSchema?: import("ai").FlexibleSchema<import("@ai-sdk/provider-utils").Context> | undefined;
371
+ needsApproval?: boolean | import("@ai-sdk/provider-utils").ToolNeedsApprovalFunction<{
372
+ title: string;
373
+ priority: "High" | "Medium" | "Low";
374
+ userRole: string;
375
+ action: string;
376
+ benefit: string;
377
+ acceptanceCriteria: {
378
+ criterion: string;
379
+ }[];
380
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
381
+ technicalNotes?: string | undefined;
382
+ epicOrFeature?: string | undefined;
383
+ }, NoInfer<import("@ai-sdk/provider-utils").Context>> | undefined;
384
+ onInputStart?: ((options: import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
385
+ onInputDelta?: ((options: {
386
+ inputTextDelta: string;
387
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
388
+ onInputAvailable?: ((options: {
389
+ input: {
390
+ title: string;
391
+ priority: "High" | "Medium" | "Low";
392
+ userRole: string;
393
+ action: string;
394
+ benefit: string;
395
+ acceptanceCriteria: {
396
+ criterion: string;
397
+ }[];
398
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
399
+ technicalNotes?: string | undefined;
400
+ epicOrFeature?: string | undefined;
401
+ };
402
+ } & import("ai").ToolExecutionOptions<NoInfer<import("@ai-sdk/provider-utils").Context>>) => void | PromiseLike<void>) | undefined;
403
+ toModelOutput?: ((options: {
404
+ toolCallId: string;
405
+ input: {
406
+ title: string;
407
+ priority: "High" | "Medium" | "Low";
408
+ userRole: string;
409
+ action: string;
410
+ benefit: string;
411
+ acceptanceCriteria: {
412
+ criterion: string;
413
+ }[];
414
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
415
+ technicalNotes?: string | undefined;
416
+ epicOrFeature?: string | undefined;
417
+ };
418
+ output: string;
419
+ }) => import("@ai-sdk/provider-utils").ToolResultOutput | PromiseLike<import("@ai-sdk/provider-utils").ToolResultOutput>) | undefined;
420
+ } & {
421
+ outputSchema?: import("ai").FlexibleSchema<string> | undefined;
422
+ execute: import("ai").ToolExecuteFunction<{
423
+ title: string;
424
+ priority: "High" | "Medium" | "Low";
425
+ userRole: string;
426
+ action: string;
427
+ benefit: string;
428
+ acceptanceCriteria: {
429
+ criterion: string;
430
+ }[];
431
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
432
+ technicalNotes?: string | undefined;
433
+ epicOrFeature?: string | undefined;
434
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
435
+ } & {
436
+ type: "provider";
437
+ id: `${string}.${string}`;
438
+ args: Record<string, unknown>;
439
+ description?: never;
440
+ strict?: never;
441
+ inputExamples?: never;
442
+ } & {
443
+ isProviderExecuted: true;
444
+ supportsDeferredResults?: boolean;
445
+ } & {
446
+ execute: import("ai").ToolExecuteFunction<{
447
+ title: string;
448
+ priority: "High" | "Medium" | "Low";
449
+ userRole: string;
450
+ action: string;
451
+ benefit: string;
452
+ acceptanceCriteria: {
453
+ criterion: string;
454
+ }[];
455
+ storyPoints: "1" | "2" | "3" | "5" | "8" | "13";
456
+ technicalNotes?: string | undefined;
457
+ epicOrFeature?: string | undefined;
458
+ }, string, NoInfer<import("@ai-sdk/provider-utils").Context>>;
459
+ });
14
460
  //# sourceMappingURL=user-story-formatter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-story-formatter.d.ts","sourceRoot":"","sources":["../../src/lib/user-story-formatter.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;UA6CpC,CAAC"}
1
+ {"version":3,"file":"user-story-formatter.d.ts","sourceRoot":"","sources":["../../src/lib/user-story-formatter.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CpC,CAAC"}