@workglow/tasks 0.0.100 → 0.0.102
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/README.md +35 -40
- package/dist/browser.js +339 -137
- package/dist/browser.js.map +15 -15
- package/dist/bun.js +339 -137
- package/dist/bun.js.map +15 -15
- package/dist/common.d.ts +0 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +339 -137
- package/dist/node.js.map +15 -15
- package/dist/task/DebugLogTask.d.ts +24 -49
- package/dist/task/DebugLogTask.d.ts.map +1 -1
- package/dist/task/DelayTask.d.ts +17 -29
- package/dist/task/DelayTask.d.ts.map +1 -1
- package/dist/task/InputTask.d.ts +1 -3
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/JavaScriptTask.d.ts +62 -1
- package/dist/task/JavaScriptTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +41 -2
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts +1 -3
- 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 +150 -66
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
- package/dist/task/mcp/McpResourceReadTask.d.ts +147 -47
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
- package/dist/task/mcp/McpToolCallTask.d.ts +148 -323
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -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,68 @@ 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 inputSchema: {
|
|
63
|
+
readonly type: "object";
|
|
64
|
+
readonly properties: {};
|
|
65
|
+
readonly additionalProperties: true;
|
|
66
|
+
readonly "x-ui-hidden": true;
|
|
67
|
+
};
|
|
68
|
+
readonly outputSchema: {
|
|
69
|
+
readonly type: "object";
|
|
70
|
+
readonly properties: {};
|
|
71
|
+
readonly additionalProperties: true;
|
|
72
|
+
readonly "x-ui-hidden": true;
|
|
73
|
+
};
|
|
74
|
+
readonly extras: {
|
|
75
|
+
readonly type: "object";
|
|
76
|
+
readonly additionalProperties: true;
|
|
77
|
+
readonly "x-ui-hidden": true;
|
|
78
|
+
};
|
|
55
79
|
};
|
|
56
80
|
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
|
-
}];
|
|
81
|
+
readonly if: {
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly transport: {
|
|
84
|
+
readonly const: "stdio";
|
|
309
85
|
};
|
|
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
86
|
};
|
|
87
|
+
readonly required: readonly ["transport"];
|
|
88
|
+
};
|
|
89
|
+
readonly then: {
|
|
90
|
+
readonly required: readonly ["command"];
|
|
91
|
+
};
|
|
92
|
+
readonly else: {
|
|
93
|
+
readonly required: readonly ["server_url"];
|
|
318
94
|
};
|
|
319
|
-
readonly required: readonly ["content", "isError"];
|
|
320
95
|
readonly additionalProperties: false;
|
|
321
96
|
};
|
|
322
|
-
export type
|
|
323
|
-
export type
|
|
324
|
-
export
|
|
97
|
+
export type McpToolCallTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
|
|
98
|
+
export type McpToolCallTaskInput = Record<string, unknown>;
|
|
99
|
+
export type McpToolCallTaskOutput = Record<string, unknown>;
|
|
100
|
+
export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolCallTaskOutput, McpToolCallTaskConfig> {
|
|
325
101
|
static type: string;
|
|
326
102
|
static category: string;
|
|
327
103
|
static title: string;
|
|
328
104
|
static description: string;
|
|
329
|
-
static
|
|
105
|
+
static cacheable: boolean;
|
|
106
|
+
static customizable: boolean;
|
|
107
|
+
static hasDynamicSchemas: boolean;
|
|
330
108
|
static inputSchema(): {
|
|
331
109
|
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;
|
|
110
|
+
readonly properties: {};
|
|
111
|
+
readonly additionalProperties: true;
|
|
380
112
|
};
|
|
381
113
|
static outputSchema(): {
|
|
382
114
|
readonly type: "object";
|
|
@@ -641,12 +373,105 @@ export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolC
|
|
|
641
373
|
readonly required: readonly ["content", "isError"];
|
|
642
374
|
readonly additionalProperties: false;
|
|
643
375
|
};
|
|
376
|
+
static configSchema(): {
|
|
377
|
+
readonly type: "object";
|
|
378
|
+
readonly properties: {
|
|
379
|
+
readonly tool_name: {
|
|
380
|
+
readonly type: "string";
|
|
381
|
+
readonly title: "Tool Name";
|
|
382
|
+
readonly description: "The name of the tool to call";
|
|
383
|
+
readonly format: "string:mcp-toolname";
|
|
384
|
+
};
|
|
385
|
+
readonly transport: {
|
|
386
|
+
readonly type: "string";
|
|
387
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
388
|
+
readonly title: "Transport";
|
|
389
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
390
|
+
};
|
|
391
|
+
readonly server_url: {
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
readonly format: "string:uri";
|
|
394
|
+
readonly title: "Server URL";
|
|
395
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
396
|
+
};
|
|
397
|
+
readonly command: {
|
|
398
|
+
readonly type: "string";
|
|
399
|
+
readonly title: "Command";
|
|
400
|
+
readonly description: "The command to run (for stdio transport)";
|
|
401
|
+
};
|
|
402
|
+
readonly args: {
|
|
403
|
+
readonly type: "array";
|
|
404
|
+
readonly items: {
|
|
405
|
+
readonly type: "string";
|
|
406
|
+
};
|
|
407
|
+
readonly title: "Arguments";
|
|
408
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
409
|
+
};
|
|
410
|
+
readonly env: {
|
|
411
|
+
readonly type: "object";
|
|
412
|
+
readonly additionalProperties: {
|
|
413
|
+
readonly type: "string";
|
|
414
|
+
};
|
|
415
|
+
readonly title: "Environment";
|
|
416
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
417
|
+
};
|
|
418
|
+
readonly id: {
|
|
419
|
+
readonly "x-ui-hidden": true;
|
|
420
|
+
};
|
|
421
|
+
readonly title: {
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
};
|
|
424
|
+
readonly description: {
|
|
425
|
+
readonly type: "string";
|
|
426
|
+
};
|
|
427
|
+
readonly cacheable: {
|
|
428
|
+
readonly type: "boolean";
|
|
429
|
+
};
|
|
430
|
+
readonly inputSchema: {
|
|
431
|
+
readonly type: "object";
|
|
432
|
+
readonly properties: {};
|
|
433
|
+
readonly additionalProperties: true;
|
|
434
|
+
readonly "x-ui-hidden": true;
|
|
435
|
+
};
|
|
436
|
+
readonly outputSchema: {
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly properties: {};
|
|
439
|
+
readonly additionalProperties: true;
|
|
440
|
+
readonly "x-ui-hidden": true;
|
|
441
|
+
};
|
|
442
|
+
readonly extras: {
|
|
443
|
+
readonly type: "object";
|
|
444
|
+
readonly additionalProperties: true;
|
|
445
|
+
readonly "x-ui-hidden": true;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
readonly required: readonly ["transport", "tool_name"];
|
|
449
|
+
readonly if: {
|
|
450
|
+
readonly properties: {
|
|
451
|
+
readonly transport: {
|
|
452
|
+
readonly const: "stdio";
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
readonly required: readonly ["transport"];
|
|
456
|
+
};
|
|
457
|
+
readonly then: {
|
|
458
|
+
readonly required: readonly ["command"];
|
|
459
|
+
};
|
|
460
|
+
readonly else: {
|
|
461
|
+
readonly required: readonly ["server_url"];
|
|
462
|
+
};
|
|
463
|
+
readonly additionalProperties: false;
|
|
464
|
+
};
|
|
465
|
+
inputSchema(): DataPortSchema;
|
|
466
|
+
outputSchema(): DataPortSchema;
|
|
467
|
+
private _schemasDiscovering;
|
|
468
|
+
discoverSchemas(signal?: AbortSignal): Promise<void>;
|
|
644
469
|
execute(input: McpToolCallTaskInput, context: IExecuteContext): Promise<McpToolCallTaskOutput>;
|
|
645
470
|
}
|
|
646
|
-
export declare const mcpToolCall: (input: McpToolCallTaskInput, config
|
|
471
|
+
export declare const mcpToolCall: (input: McpToolCallTaskInput, config: McpToolCallTaskConfig) => Promise<McpToolCallTaskOutput>;
|
|
647
472
|
declare module "@workglow/task-graph" {
|
|
648
473
|
interface Workflow {
|
|
649
|
-
mcpToolCall: CreateWorkflow<McpToolCallTaskInput, McpToolCallTaskOutput,
|
|
474
|
+
mcpToolCall: CreateWorkflow<McpToolCallTaskInput, McpToolCallTaskOutput, McpToolCallTaskConfig>;
|
|
650
475
|
}
|
|
651
476
|
}
|
|
652
477
|
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.102",
|
|
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.102",
|
|
40
|
+
"@workglow/util": "0.0.102",
|
|
41
|
+
"@workglow/job-queue": "0.0.102",
|
|
42
|
+
"@workglow/storage": "0.0.102"
|
|
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.102",
|
|
61
|
+
"@workglow/storage": "0.0.102",
|
|
62
|
+
"@workglow/task-graph": "0.0.102",
|
|
63
|
+
"@workglow/util": "0.0.102"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"papaparse": "^5.5.3"
|