@workglow/tasks 0.0.101 → 0.0.103
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/browser.js +1693 -1362
- package/dist/browser.js.map +17 -17
- package/dist/bun.js +1747 -1393
- package/dist/bun.js.map +18 -18
- package/dist/common.d.ts +1 -2
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +1747 -1393
- package/dist/node.js.map +18 -18
- package/dist/task/DebugLogTask.d.ts +1 -0
- package/dist/task/DebugLogTask.d.ts.map +1 -1
- package/dist/task/DelayTask.d.ts +2 -1
- package/dist/task/DelayTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.d.ts +23 -0
- package/dist/task/FileLoaderTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.server.d.ts +3 -0
- package/dist/task/FileLoaderTask.server.d.ts.map +1 -1
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/JavaScriptTask.d.ts +66 -1
- package/dist/task/JavaScriptTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +10 -1
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts.map +1 -1
- package/dist/task/mcp/McpListTask.d.ts +2 -2
- package/dist/task/mcp/McpPromptGetTask.d.ts +158 -66
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
- package/dist/task/mcp/McpResourceReadTask.d.ts +155 -47
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
- package/dist/task/mcp/McpToolCallTask.d.ts +156 -323
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
- package/package.json +9 -9
- package/dist/task/scalar/scalar.test.d.ts +0 -7
- package/dist/task/scalar/scalar.test.d.ts.map +0 -1
- package/dist/task/vector/vector.test.d.ts +0 -7
- package/dist/task/vector/vector.test.d.ts.map +0 -1
|
@@ -4,20 +4,15 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { FromSchema } from "@workglow/util";
|
|
8
|
-
declare const
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
declare const configSchema: {
|
|
9
9
|
readonly type: "object";
|
|
10
10
|
readonly properties: {
|
|
11
11
|
readonly tool_name: {
|
|
12
12
|
readonly type: "string";
|
|
13
13
|
readonly title: "Tool Name";
|
|
14
14
|
readonly description: "The name of the tool to call";
|
|
15
|
-
|
|
16
|
-
readonly tool_arguments: {
|
|
17
|
-
readonly type: "object";
|
|
18
|
-
readonly additionalProperties: true;
|
|
19
|
-
readonly title: "Tool Arguments";
|
|
20
|
-
readonly description: "Arguments to pass to the tool";
|
|
15
|
+
readonly format: "string:mcp-toolname";
|
|
21
16
|
};
|
|
22
17
|
readonly transport: {
|
|
23
18
|
readonly type: "string";
|
|
@@ -27,7 +22,7 @@ declare const inputSchema: {
|
|
|
27
22
|
};
|
|
28
23
|
readonly server_url: {
|
|
29
24
|
readonly type: "string";
|
|
30
|
-
readonly format: "uri";
|
|
25
|
+
readonly format: "string:uri";
|
|
31
26
|
readonly title: "Server URL";
|
|
32
27
|
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
33
28
|
};
|
|
@@ -52,331 +47,72 @@ declare const inputSchema: {
|
|
|
52
47
|
readonly title: "Environment";
|
|
53
48
|
readonly description: "Environment variables (for stdio transport)";
|
|
54
49
|
};
|
|
50
|
+
readonly id: {
|
|
51
|
+
readonly "x-ui-hidden": true;
|
|
52
|
+
};
|
|
53
|
+
readonly title: {
|
|
54
|
+
readonly type: "string";
|
|
55
|
+
};
|
|
56
|
+
readonly description: {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly cacheable: {
|
|
60
|
+
readonly type: "boolean";
|
|
61
|
+
};
|
|
62
|
+
readonly timeout: {
|
|
63
|
+
readonly type: "number";
|
|
64
|
+
readonly description: "Max execution time in milliseconds";
|
|
65
|
+
};
|
|
66
|
+
readonly inputSchema: {
|
|
67
|
+
readonly type: "object";
|
|
68
|
+
readonly properties: {};
|
|
69
|
+
readonly additionalProperties: true;
|
|
70
|
+
readonly "x-ui-hidden": true;
|
|
71
|
+
};
|
|
72
|
+
readonly outputSchema: {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly properties: {};
|
|
75
|
+
readonly additionalProperties: true;
|
|
76
|
+
readonly "x-ui-hidden": true;
|
|
77
|
+
};
|
|
78
|
+
readonly extras: {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly additionalProperties: true;
|
|
81
|
+
readonly "x-ui-hidden": true;
|
|
82
|
+
};
|
|
55
83
|
};
|
|
56
84
|
readonly required: readonly ["transport", "tool_name"];
|
|
57
|
-
readonly
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
readonly properties: {
|
|
62
|
-
readonly content: {
|
|
63
|
-
readonly type: "array";
|
|
64
|
-
readonly items: {
|
|
65
|
-
readonly anyOf: readonly [{
|
|
66
|
-
readonly type: "object";
|
|
67
|
-
readonly properties: {
|
|
68
|
-
readonly type: {
|
|
69
|
-
readonly type: "string";
|
|
70
|
-
readonly const: "text";
|
|
71
|
-
};
|
|
72
|
-
readonly text: {
|
|
73
|
-
readonly type: "string";
|
|
74
|
-
};
|
|
75
|
-
readonly annotations: {
|
|
76
|
-
readonly type: "object";
|
|
77
|
-
readonly properties: {
|
|
78
|
-
readonly audience: {
|
|
79
|
-
readonly type: "array";
|
|
80
|
-
readonly items: {
|
|
81
|
-
readonly type: "string";
|
|
82
|
-
readonly enum: readonly ["user", "assistant"];
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
readonly priority: {
|
|
86
|
-
readonly type: "number";
|
|
87
|
-
};
|
|
88
|
-
readonly lastModified: {
|
|
89
|
-
readonly type: "string";
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
readonly additionalProperties: false;
|
|
93
|
-
};
|
|
94
|
-
readonly _meta: {
|
|
95
|
-
readonly type: "object";
|
|
96
|
-
readonly additionalProperties: true;
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
readonly required: readonly ["type", "text"];
|
|
100
|
-
readonly additionalProperties: false;
|
|
101
|
-
}, {
|
|
102
|
-
readonly type: "object";
|
|
103
|
-
readonly properties: {
|
|
104
|
-
readonly type: {
|
|
105
|
-
readonly type: "string";
|
|
106
|
-
readonly const: "image";
|
|
107
|
-
};
|
|
108
|
-
readonly data: {
|
|
109
|
-
readonly type: "string";
|
|
110
|
-
};
|
|
111
|
-
readonly mimeType: {
|
|
112
|
-
readonly type: "string";
|
|
113
|
-
};
|
|
114
|
-
readonly annotations: {
|
|
115
|
-
readonly type: "object";
|
|
116
|
-
readonly properties: {
|
|
117
|
-
readonly audience: {
|
|
118
|
-
readonly type: "array";
|
|
119
|
-
readonly items: {
|
|
120
|
-
readonly type: "string";
|
|
121
|
-
readonly enum: readonly ["user", "assistant"];
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
readonly priority: {
|
|
125
|
-
readonly type: "number";
|
|
126
|
-
};
|
|
127
|
-
readonly lastModified: {
|
|
128
|
-
readonly type: "string";
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
readonly additionalProperties: false;
|
|
132
|
-
};
|
|
133
|
-
readonly _meta: {
|
|
134
|
-
readonly type: "object";
|
|
135
|
-
readonly additionalProperties: true;
|
|
136
|
-
};
|
|
137
|
-
};
|
|
138
|
-
readonly required: readonly ["type", "data", "mimeType"];
|
|
139
|
-
readonly additionalProperties: false;
|
|
140
|
-
}, {
|
|
141
|
-
readonly type: "object";
|
|
142
|
-
readonly properties: {
|
|
143
|
-
readonly type: {
|
|
144
|
-
readonly type: "string";
|
|
145
|
-
readonly const: "audio";
|
|
146
|
-
};
|
|
147
|
-
readonly data: {
|
|
148
|
-
readonly type: "string";
|
|
149
|
-
};
|
|
150
|
-
readonly mimeType: {
|
|
151
|
-
readonly type: "string";
|
|
152
|
-
};
|
|
153
|
-
readonly annotations: {
|
|
154
|
-
readonly type: "object";
|
|
155
|
-
readonly properties: {
|
|
156
|
-
readonly audience: {
|
|
157
|
-
readonly type: "array";
|
|
158
|
-
readonly items: {
|
|
159
|
-
readonly type: "string";
|
|
160
|
-
readonly enum: readonly ["user", "assistant"];
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
readonly priority: {
|
|
164
|
-
readonly type: "number";
|
|
165
|
-
};
|
|
166
|
-
readonly lastModified: {
|
|
167
|
-
readonly type: "string";
|
|
168
|
-
};
|
|
169
|
-
};
|
|
170
|
-
readonly additionalProperties: false;
|
|
171
|
-
};
|
|
172
|
-
readonly _meta: {
|
|
173
|
-
readonly type: "object";
|
|
174
|
-
readonly additionalProperties: true;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
readonly required: readonly ["type", "data", "mimeType"];
|
|
178
|
-
readonly additionalProperties: false;
|
|
179
|
-
}, {
|
|
180
|
-
readonly type: "object";
|
|
181
|
-
readonly properties: {
|
|
182
|
-
readonly type: {
|
|
183
|
-
readonly type: "string";
|
|
184
|
-
readonly const: "resource";
|
|
185
|
-
};
|
|
186
|
-
readonly resource: {
|
|
187
|
-
readonly type: "object";
|
|
188
|
-
readonly properties: {
|
|
189
|
-
readonly uri: {
|
|
190
|
-
readonly type: "string";
|
|
191
|
-
};
|
|
192
|
-
readonly text: {
|
|
193
|
-
readonly type: "string";
|
|
194
|
-
};
|
|
195
|
-
readonly blob: {
|
|
196
|
-
readonly type: "string";
|
|
197
|
-
};
|
|
198
|
-
readonly mimeType: {
|
|
199
|
-
readonly type: "string";
|
|
200
|
-
};
|
|
201
|
-
readonly _meta: {
|
|
202
|
-
readonly type: "object";
|
|
203
|
-
readonly additionalProperties: true;
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
readonly required: readonly ["uri"];
|
|
207
|
-
readonly additionalProperties: false;
|
|
208
|
-
};
|
|
209
|
-
readonly annotations: {
|
|
210
|
-
readonly type: "object";
|
|
211
|
-
readonly properties: {
|
|
212
|
-
readonly audience: {
|
|
213
|
-
readonly type: "array";
|
|
214
|
-
readonly items: {
|
|
215
|
-
readonly type: "string";
|
|
216
|
-
readonly enum: readonly ["user", "assistant"];
|
|
217
|
-
};
|
|
218
|
-
};
|
|
219
|
-
readonly priority: {
|
|
220
|
-
readonly type: "number";
|
|
221
|
-
};
|
|
222
|
-
readonly lastModified: {
|
|
223
|
-
readonly type: "string";
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
readonly additionalProperties: false;
|
|
227
|
-
};
|
|
228
|
-
readonly _meta: {
|
|
229
|
-
readonly type: "object";
|
|
230
|
-
readonly additionalProperties: true;
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
readonly required: readonly ["type", "resource"];
|
|
234
|
-
readonly additionalProperties: false;
|
|
235
|
-
}, {
|
|
236
|
-
readonly type: "object";
|
|
237
|
-
readonly properties: {
|
|
238
|
-
readonly type: {
|
|
239
|
-
readonly type: "string";
|
|
240
|
-
readonly const: "resource_link";
|
|
241
|
-
};
|
|
242
|
-
readonly uri: {
|
|
243
|
-
readonly type: "string";
|
|
244
|
-
};
|
|
245
|
-
readonly name: {
|
|
246
|
-
readonly type: "string";
|
|
247
|
-
};
|
|
248
|
-
readonly description: {
|
|
249
|
-
readonly type: "string";
|
|
250
|
-
};
|
|
251
|
-
readonly mimeType: {
|
|
252
|
-
readonly type: "string";
|
|
253
|
-
};
|
|
254
|
-
readonly annotations: {
|
|
255
|
-
readonly type: "object";
|
|
256
|
-
readonly properties: {
|
|
257
|
-
readonly audience: {
|
|
258
|
-
readonly type: "array";
|
|
259
|
-
readonly items: {
|
|
260
|
-
readonly type: "string";
|
|
261
|
-
readonly enum: readonly ["user", "assistant"];
|
|
262
|
-
};
|
|
263
|
-
};
|
|
264
|
-
readonly priority: {
|
|
265
|
-
readonly type: "number";
|
|
266
|
-
};
|
|
267
|
-
readonly lastModified: {
|
|
268
|
-
readonly type: "string";
|
|
269
|
-
};
|
|
270
|
-
};
|
|
271
|
-
readonly additionalProperties: false;
|
|
272
|
-
};
|
|
273
|
-
readonly icons: {
|
|
274
|
-
readonly type: "array";
|
|
275
|
-
readonly items: {
|
|
276
|
-
readonly type: "object";
|
|
277
|
-
readonly properties: {
|
|
278
|
-
readonly src: {
|
|
279
|
-
readonly type: "string";
|
|
280
|
-
};
|
|
281
|
-
readonly mimeType: {
|
|
282
|
-
readonly type: "string";
|
|
283
|
-
};
|
|
284
|
-
readonly sizes: {
|
|
285
|
-
readonly type: "array";
|
|
286
|
-
readonly items: {
|
|
287
|
-
readonly type: "string";
|
|
288
|
-
};
|
|
289
|
-
};
|
|
290
|
-
readonly theme: {
|
|
291
|
-
readonly type: "string";
|
|
292
|
-
readonly enum: readonly ["light", "dark"];
|
|
293
|
-
};
|
|
294
|
-
};
|
|
295
|
-
readonly additionalProperties: false;
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
readonly title: {
|
|
299
|
-
readonly type: "string";
|
|
300
|
-
};
|
|
301
|
-
readonly _meta: {
|
|
302
|
-
readonly type: "object";
|
|
303
|
-
readonly additionalProperties: true;
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
readonly required: readonly ["type", "uri", "name"];
|
|
307
|
-
readonly additionalProperties: false;
|
|
308
|
-
}];
|
|
85
|
+
readonly if: {
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly transport: {
|
|
88
|
+
readonly const: "stdio";
|
|
309
89
|
};
|
|
310
|
-
readonly title: "Content";
|
|
311
|
-
readonly description: "The content returned by the tool";
|
|
312
|
-
};
|
|
313
|
-
readonly isError: {
|
|
314
|
-
readonly type: "boolean";
|
|
315
|
-
readonly title: "Is Error";
|
|
316
|
-
readonly description: "Whether the tool call resulted in an error";
|
|
317
90
|
};
|
|
91
|
+
readonly required: readonly ["transport"];
|
|
92
|
+
};
|
|
93
|
+
readonly then: {
|
|
94
|
+
readonly required: readonly ["command"];
|
|
95
|
+
};
|
|
96
|
+
readonly else: {
|
|
97
|
+
readonly required: readonly ["server_url"];
|
|
318
98
|
};
|
|
319
|
-
readonly required: readonly ["content", "isError"];
|
|
320
99
|
readonly additionalProperties: false;
|
|
321
100
|
};
|
|
322
|
-
export type
|
|
323
|
-
export type
|
|
324
|
-
export
|
|
101
|
+
export type McpToolCallTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
|
|
102
|
+
export type McpToolCallTaskInput = Record<string, unknown>;
|
|
103
|
+
export type McpToolCallTaskOutput = Record<string, unknown>;
|
|
104
|
+
export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolCallTaskOutput, McpToolCallTaskConfig> {
|
|
325
105
|
static type: string;
|
|
326
106
|
static category: string;
|
|
327
107
|
static title: string;
|
|
328
108
|
static description: string;
|
|
329
|
-
static
|
|
109
|
+
static cacheable: boolean;
|
|
110
|
+
static customizable: boolean;
|
|
111
|
+
static hasDynamicSchemas: boolean;
|
|
330
112
|
static inputSchema(): {
|
|
331
113
|
readonly type: "object";
|
|
332
|
-
readonly properties: {
|
|
333
|
-
|
|
334
|
-
readonly type: "string";
|
|
335
|
-
readonly title: "Tool Name";
|
|
336
|
-
readonly description: "The name of the tool to call";
|
|
337
|
-
};
|
|
338
|
-
readonly tool_arguments: {
|
|
339
|
-
readonly type: "object";
|
|
340
|
-
readonly additionalProperties: true;
|
|
341
|
-
readonly title: "Tool Arguments";
|
|
342
|
-
readonly description: "Arguments to pass to the tool";
|
|
343
|
-
};
|
|
344
|
-
readonly transport: {
|
|
345
|
-
readonly type: "string";
|
|
346
|
-
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
347
|
-
readonly title: "Transport";
|
|
348
|
-
readonly description: "The transport type to use for connecting to the MCP server";
|
|
349
|
-
};
|
|
350
|
-
readonly server_url: {
|
|
351
|
-
readonly type: "string";
|
|
352
|
-
readonly format: "uri";
|
|
353
|
-
readonly title: "Server URL";
|
|
354
|
-
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
355
|
-
};
|
|
356
|
-
readonly command: {
|
|
357
|
-
readonly type: "string";
|
|
358
|
-
readonly title: "Command";
|
|
359
|
-
readonly description: "The command to run (for stdio transport)";
|
|
360
|
-
};
|
|
361
|
-
readonly args: {
|
|
362
|
-
readonly type: "array";
|
|
363
|
-
readonly items: {
|
|
364
|
-
readonly type: "string";
|
|
365
|
-
};
|
|
366
|
-
readonly title: "Arguments";
|
|
367
|
-
readonly description: "Command arguments (for stdio transport)";
|
|
368
|
-
};
|
|
369
|
-
readonly env: {
|
|
370
|
-
readonly type: "object";
|
|
371
|
-
readonly additionalProperties: {
|
|
372
|
-
readonly type: "string";
|
|
373
|
-
};
|
|
374
|
-
readonly title: "Environment";
|
|
375
|
-
readonly description: "Environment variables (for stdio transport)";
|
|
376
|
-
};
|
|
377
|
-
};
|
|
378
|
-
readonly required: readonly ["transport", "tool_name"];
|
|
379
|
-
readonly additionalProperties: false;
|
|
114
|
+
readonly properties: {};
|
|
115
|
+
readonly additionalProperties: true;
|
|
380
116
|
};
|
|
381
117
|
static outputSchema(): {
|
|
382
118
|
readonly type: "object";
|
|
@@ -641,12 +377,109 @@ export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolC
|
|
|
641
377
|
readonly required: readonly ["content", "isError"];
|
|
642
378
|
readonly additionalProperties: false;
|
|
643
379
|
};
|
|
380
|
+
static configSchema(): {
|
|
381
|
+
readonly type: "object";
|
|
382
|
+
readonly properties: {
|
|
383
|
+
readonly tool_name: {
|
|
384
|
+
readonly type: "string";
|
|
385
|
+
readonly title: "Tool Name";
|
|
386
|
+
readonly description: "The name of the tool to call";
|
|
387
|
+
readonly format: "string:mcp-toolname";
|
|
388
|
+
};
|
|
389
|
+
readonly transport: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
392
|
+
readonly title: "Transport";
|
|
393
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
394
|
+
};
|
|
395
|
+
readonly server_url: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
readonly format: "string:uri";
|
|
398
|
+
readonly title: "Server URL";
|
|
399
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
400
|
+
};
|
|
401
|
+
readonly command: {
|
|
402
|
+
readonly type: "string";
|
|
403
|
+
readonly title: "Command";
|
|
404
|
+
readonly description: "The command to run (for stdio transport)";
|
|
405
|
+
};
|
|
406
|
+
readonly args: {
|
|
407
|
+
readonly type: "array";
|
|
408
|
+
readonly items: {
|
|
409
|
+
readonly type: "string";
|
|
410
|
+
};
|
|
411
|
+
readonly title: "Arguments";
|
|
412
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
413
|
+
};
|
|
414
|
+
readonly env: {
|
|
415
|
+
readonly type: "object";
|
|
416
|
+
readonly additionalProperties: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
};
|
|
419
|
+
readonly title: "Environment";
|
|
420
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
421
|
+
};
|
|
422
|
+
readonly id: {
|
|
423
|
+
readonly "x-ui-hidden": true;
|
|
424
|
+
};
|
|
425
|
+
readonly title: {
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
};
|
|
428
|
+
readonly description: {
|
|
429
|
+
readonly type: "string";
|
|
430
|
+
};
|
|
431
|
+
readonly cacheable: {
|
|
432
|
+
readonly type: "boolean";
|
|
433
|
+
};
|
|
434
|
+
readonly timeout: {
|
|
435
|
+
readonly type: "number";
|
|
436
|
+
readonly description: "Max execution time in milliseconds";
|
|
437
|
+
};
|
|
438
|
+
readonly inputSchema: {
|
|
439
|
+
readonly type: "object";
|
|
440
|
+
readonly properties: {};
|
|
441
|
+
readonly additionalProperties: true;
|
|
442
|
+
readonly "x-ui-hidden": true;
|
|
443
|
+
};
|
|
444
|
+
readonly outputSchema: {
|
|
445
|
+
readonly type: "object";
|
|
446
|
+
readonly properties: {};
|
|
447
|
+
readonly additionalProperties: true;
|
|
448
|
+
readonly "x-ui-hidden": true;
|
|
449
|
+
};
|
|
450
|
+
readonly extras: {
|
|
451
|
+
readonly type: "object";
|
|
452
|
+
readonly additionalProperties: true;
|
|
453
|
+
readonly "x-ui-hidden": true;
|
|
454
|
+
};
|
|
455
|
+
};
|
|
456
|
+
readonly required: readonly ["transport", "tool_name"];
|
|
457
|
+
readonly if: {
|
|
458
|
+
readonly properties: {
|
|
459
|
+
readonly transport: {
|
|
460
|
+
readonly const: "stdio";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
readonly required: readonly ["transport"];
|
|
464
|
+
};
|
|
465
|
+
readonly then: {
|
|
466
|
+
readonly required: readonly ["command"];
|
|
467
|
+
};
|
|
468
|
+
readonly else: {
|
|
469
|
+
readonly required: readonly ["server_url"];
|
|
470
|
+
};
|
|
471
|
+
readonly additionalProperties: false;
|
|
472
|
+
};
|
|
473
|
+
inputSchema(): DataPortSchema;
|
|
474
|
+
outputSchema(): DataPortSchema;
|
|
475
|
+
private _schemasDiscovering;
|
|
476
|
+
discoverSchemas(signal?: AbortSignal): Promise<void>;
|
|
644
477
|
execute(input: McpToolCallTaskInput, context: IExecuteContext): Promise<McpToolCallTaskOutput>;
|
|
645
478
|
}
|
|
646
|
-
export declare const mcpToolCall: (input: McpToolCallTaskInput, config
|
|
479
|
+
export declare const mcpToolCall: (input: McpToolCallTaskInput, config: McpToolCallTaskConfig) => Promise<McpToolCallTaskOutput>;
|
|
647
480
|
declare module "@workglow/task-graph" {
|
|
648
481
|
interface Workflow {
|
|
649
|
-
mcpToolCall: CreateWorkflow<McpToolCallTaskInput, McpToolCallTaskOutput,
|
|
482
|
+
mcpToolCall: CreateWorkflow<McpToolCallTaskInput, McpToolCallTaskOutput, McpToolCallTaskConfig>;
|
|
650
483
|
}
|
|
651
484
|
}
|
|
652
485
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolCallTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpToolCallTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"McpToolCallTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpToolCallTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EACJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBiB,CAAC;AAkIpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACjF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5D,qBAAa,eAAgB,SAAQ,IAAI,CACvC,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,CACtB;IACC,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAS;IAC/B,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAA0D;IACnF,OAAc,SAAS,UAAS;IAChC,OAAc,YAAY,UAAQ;IAClC,OAAc,iBAAiB,UAAQ;WAEzB,WAAW;;;;;WAIX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIV,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAI9C,OAAO,CAAC,mBAAmB,CAAS;IAE9B,eAAe,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAiCpD,OAAO,CACX,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,qBAAqB,CAAC;CAkElC;AAED,eAAO,MAAM,WAAW,GACtB,OAAO,oBAAoB,EAC3B,QAAQ,qBAAqB,KAC5B,OAAO,CAAC,qBAAqB,CAE/B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;KACjG;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/tasks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.103",
|
|
5
5
|
"description": "Pre-built task implementations for Workglow, including common AI operations and utility functions.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "concurrently -c 'auto' 'bun:watch-*'",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@workglow/task-graph": "0.0.
|
|
40
|
-
"@workglow/util": "0.0.
|
|
41
|
-
"@workglow/job-queue": "0.0.
|
|
42
|
-
"@workglow/storage": "0.0.
|
|
39
|
+
"@workglow/task-graph": "0.0.103",
|
|
40
|
+
"@workglow/util": "0.0.103",
|
|
41
|
+
"@workglow/job-queue": "0.0.103",
|
|
42
|
+
"@workglow/storage": "0.0.103"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@workglow/task-graph": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/papaparse": "^5.5.2",
|
|
60
|
-
"@workglow/job-queue": "0.0.
|
|
61
|
-
"@workglow/storage": "0.0.
|
|
62
|
-
"@workglow/task-graph": "0.0.
|
|
63
|
-
"@workglow/util": "0.0.
|
|
60
|
+
"@workglow/job-queue": "0.0.103",
|
|
61
|
+
"@workglow/storage": "0.0.103",
|
|
62
|
+
"@workglow/task-graph": "0.0.103",
|
|
63
|
+
"@workglow/util": "0.0.103"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"papaparse": "^5.5.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scalar.test.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/scalar.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vector.test.d.ts","sourceRoot":"","sources":["../../../src/task/vector/vector.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|