@workglow/tasks 0.0.101 → 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/dist/browser.js +286 -108
- package/dist/browser.js.map +11 -11
- package/dist/bun.js +286 -108
- package/dist/bun.js.map +11 -11
- package/dist/common.d.ts +0 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +286 -108
- package/dist/node.js.map +11 -11
- 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/JavaScriptTask.d.ts +62 -1
- package/dist/task/JavaScriptTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +6 -1
- package/dist/task/LambdaTask.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
|
@@ -41,6 +41,7 @@ export declare class DebugLogTask<Input extends DebugLogTaskInput = DebugLogTask
|
|
|
41
41
|
static description: string;
|
|
42
42
|
static readonly cacheable = false;
|
|
43
43
|
static passthroughInputsToOutputs: boolean;
|
|
44
|
+
static customizable: boolean;
|
|
44
45
|
static configSchema(): DataPortSchema;
|
|
45
46
|
static inputSchema(): {
|
|
46
47
|
readonly type: "object";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugLogTask.d.ts","sourceRoot":"","sources":["../../src/task/DebugLogTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAA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Schema, FromSchema } from "@workglow/util";
|
|
8
8
|
export type DelayTaskConfig = TaskConfig & {
|
|
9
9
|
/** Delay duration in milliseconds */
|
|
10
|
-
delay
|
|
10
|
+
delay?: number;
|
|
11
11
|
};
|
|
12
12
|
declare const inputSchema: {
|
|
13
13
|
readonly type: "object";
|
|
@@ -28,6 +28,7 @@ export declare class DelayTask<Input extends DelayTaskInput = DelayTaskInput, Ou
|
|
|
28
28
|
static description: string;
|
|
29
29
|
static readonly cacheable = false;
|
|
30
30
|
static passthroughInputsToOutputs: boolean;
|
|
31
|
+
static customizable: boolean;
|
|
31
32
|
static configSchema(): DataPortSchema;
|
|
32
33
|
static inputSchema(): {
|
|
33
34
|
readonly type: "object";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DelayTask.d.ts","sourceRoot":"","sources":["../../src/task/DelayTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EAEJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAenE,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DelayTask.d.ts","sourceRoot":"","sources":["../../src/task/DelayTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EAEJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAenE,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACzC,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;CAIkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;CAIiB,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,qBAAa,SAAS,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,MAAM,SAAS,eAAe,GAAG,eAAe,CAChD,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,IAAI,eAAe;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAAsE;IAC/F,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,OAAc,0BAA0B,UAAQ;IAChD,OAAc,YAAY,UAAQ;WAEpB,YAAY,IAAI,cAAc;IAI5C,MAAM,CAAC,WAAW;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAiB9E;AAED;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,cAAc,EAAE,SAAQ,eAA8B;;EAGlF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
|
|
@@ -32,11 +32,57 @@ declare const outputSchema: {
|
|
|
32
32
|
};
|
|
33
33
|
export type JavaScriptTaskInput = FromSchema<typeof inputSchema>;
|
|
34
34
|
export type JavaScriptTaskOutput = FromSchema<typeof outputSchema>;
|
|
35
|
-
export
|
|
35
|
+
export type JavaScriptTaskConfig = TaskConfig & {
|
|
36
|
+
javascript_code?: string;
|
|
37
|
+
};
|
|
38
|
+
export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScriptTaskOutput, JavaScriptTaskConfig> {
|
|
36
39
|
static type: string;
|
|
37
40
|
static category: string;
|
|
38
41
|
static title: string;
|
|
39
42
|
static description: string;
|
|
43
|
+
static customizable: boolean;
|
|
44
|
+
static configSchema(): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly javascript_code: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly title: "Code";
|
|
50
|
+
readonly minLength: 1;
|
|
51
|
+
readonly description: "JavaScript code to execute";
|
|
52
|
+
readonly format: "code:javascript";
|
|
53
|
+
};
|
|
54
|
+
readonly id: {
|
|
55
|
+
readonly "x-ui-hidden": true;
|
|
56
|
+
};
|
|
57
|
+
readonly title: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
};
|
|
60
|
+
readonly description: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
};
|
|
63
|
+
readonly cacheable: {
|
|
64
|
+
readonly type: "boolean";
|
|
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
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
};
|
|
40
86
|
static inputSchema(): {
|
|
41
87
|
readonly type: "object";
|
|
42
88
|
readonly properties: {
|
|
@@ -62,6 +108,21 @@ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScript
|
|
|
62
108
|
readonly required: readonly ["output"];
|
|
63
109
|
readonly additionalProperties: false;
|
|
64
110
|
};
|
|
111
|
+
constructor(input?: Partial<JavaScriptTaskInput>, config?: Partial<JavaScriptTaskConfig>);
|
|
112
|
+
inputSchema(): true | import("@workglow/util").DataPortSchemaObject<import("@workglow/util").JsonSchemaCustomProps> | {
|
|
113
|
+
readonly type: "object";
|
|
114
|
+
readonly properties: {
|
|
115
|
+
readonly javascript_code: {
|
|
116
|
+
readonly type: "string";
|
|
117
|
+
readonly title: "Code";
|
|
118
|
+
readonly minLength: 1;
|
|
119
|
+
readonly description: "JavaScript code to execute";
|
|
120
|
+
readonly format: "code:javascript";
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
readonly required: readonly ["javascript_code"];
|
|
124
|
+
readonly additionalProperties: true;
|
|
125
|
+
};
|
|
65
126
|
executeReactive(input: JavaScriptTaskInput, output: JavaScriptTaskOutput): Promise<{
|
|
66
127
|
output: unknown;
|
|
67
128
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JavaScriptTask.d.ts","sourceRoot":"","sources":["../../src/task/JavaScriptTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"JavaScriptTask.d.ts","sourceRoot":"","sources":["../../src/task/JavaScriptTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAA8B,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkB5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;CAakB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG;IAC9C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,qBAAa,cAAe,SAAQ,IAAI,CACtC,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,CACrB;IACC,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAA4B;IAC/C,OAAc,WAAW,SAAqE;IAC9F,OAAc,YAAY,UAAQ;WAEpB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIZ,WAAW;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;gBAKxB,KAAK,GAAE,OAAO,CAAC,mBAAmB,CAAM,EACxC,MAAM,GAAE,OAAO,CAAC,oBAAoB,CAAM;IAKrC,WAAW;;;;;;;;;;;;;;IAcZ,eAAe,CAAC,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,oBAAoB;;;CAiB/E;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,EAAE,SAAQ,UAAe;;EAE7E,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -10,7 +10,9 @@ export declare const lambdaTaskConfigSchema: {
|
|
|
10
10
|
readonly properties: {
|
|
11
11
|
readonly execute: {};
|
|
12
12
|
readonly executeReactive: {};
|
|
13
|
-
readonly id: {
|
|
13
|
+
readonly id: {
|
|
14
|
+
readonly "x-ui-hidden": true;
|
|
15
|
+
};
|
|
14
16
|
readonly title: {
|
|
15
17
|
readonly type: "string";
|
|
16
18
|
};
|
|
@@ -24,15 +26,18 @@ export declare const lambdaTaskConfigSchema: {
|
|
|
24
26
|
readonly type: "object";
|
|
25
27
|
readonly properties: {};
|
|
26
28
|
readonly additionalProperties: true;
|
|
29
|
+
readonly "x-ui-hidden": true;
|
|
27
30
|
};
|
|
28
31
|
readonly outputSchema: {
|
|
29
32
|
readonly type: "object";
|
|
30
33
|
readonly properties: {};
|
|
31
34
|
readonly additionalProperties: true;
|
|
35
|
+
readonly "x-ui-hidden": true;
|
|
32
36
|
};
|
|
33
37
|
readonly extras: {
|
|
34
38
|
readonly type: "object";
|
|
35
39
|
readonly additionalProperties: true;
|
|
40
|
+
readonly "x-ui-hidden": true;
|
|
36
41
|
};
|
|
37
42
|
};
|
|
38
43
|
readonly additionalProperties: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaTask.d.ts","sourceRoot":"","sources":["../../src/task/LambdaTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EAEd,eAAe,EACf,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAGV,SAAS,EACT,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"LambdaTask.d.ts","sourceRoot":"","sources":["../../src/task/LambdaTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EAEd,eAAe,EACf,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAGV,SAAS,EACT,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQA,CAAC;AAEpC,KAAK,gBAAgB,CACnB,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,MAAM,SAAS,UAAU,GAAG,UAAU,IACpC,UAAU,GAAG;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,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;AAC/C,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAC;AAQhD;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,UAAU,EAC9D,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,CAAC,CAAC,GACrD,OAAO,CAAC,UAAU,CAAC,CAAC;AACvB,wBAAgB,MAAM,CAAC,CAAC,SAAS,SAAS,EAAE,CAAC,SAAS,UAAU,EAC9D,KAAK,EAAE,CAAC,EACR,MAAM,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC9B,OAAO,CAAC,UAAU,CAAC,CAAC;AAiBvB,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,cAAc,CACpB,eAAe,EACf,gBAAgB,EAChB,gBAAgB,CAAC,eAAe,EAAE,gBAAgB,CAAC,CACpD,CAAC;KACH;CACF"}
|
|
@@ -22,7 +22,7 @@ declare const inputSchema: {
|
|
|
22
22
|
};
|
|
23
23
|
readonly server_url: {
|
|
24
24
|
readonly type: "string";
|
|
25
|
-
readonly format: "uri";
|
|
25
|
+
readonly format: "string:uri";
|
|
26
26
|
readonly title: "Server URL";
|
|
27
27
|
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
28
28
|
};
|
|
@@ -346,7 +346,7 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
|
|
|
346
346
|
};
|
|
347
347
|
readonly server_url: {
|
|
348
348
|
readonly type: "string";
|
|
349
|
-
readonly format: "uri";
|
|
349
|
+
readonly format: "string:uri";
|
|
350
350
|
readonly title: "Server URL";
|
|
351
351
|
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
352
352
|
};
|
|
@@ -4,22 +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 prompt_name: {
|
|
12
12
|
readonly type: "string";
|
|
13
13
|
readonly title: "Prompt Name";
|
|
14
14
|
readonly description: "The name of the prompt to get";
|
|
15
|
-
|
|
16
|
-
readonly prompt_arguments: {
|
|
17
|
-
readonly type: "object";
|
|
18
|
-
readonly additionalProperties: {
|
|
19
|
-
readonly type: "string";
|
|
20
|
-
};
|
|
21
|
-
readonly title: "Prompt Arguments";
|
|
22
|
-
readonly description: "Arguments to pass to the prompt";
|
|
15
|
+
readonly format: "string:mcp-promptname";
|
|
23
16
|
};
|
|
24
17
|
readonly transport: {
|
|
25
18
|
readonly type: "string";
|
|
@@ -29,7 +22,7 @@ declare const inputSchema: {
|
|
|
29
22
|
};
|
|
30
23
|
readonly server_url: {
|
|
31
24
|
readonly type: "string";
|
|
32
|
-
readonly format: "uri";
|
|
25
|
+
readonly format: "string:uri";
|
|
33
26
|
readonly title: "Server URL";
|
|
34
27
|
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
35
28
|
};
|
|
@@ -54,11 +47,54 @@ declare const inputSchema: {
|
|
|
54
47
|
readonly title: "Environment";
|
|
55
48
|
readonly description: "Environment variables (for stdio transport)";
|
|
56
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
|
+
};
|
|
57
79
|
};
|
|
58
80
|
readonly required: readonly ["transport", "prompt_name"];
|
|
81
|
+
readonly if: {
|
|
82
|
+
readonly properties: {
|
|
83
|
+
readonly transport: {
|
|
84
|
+
readonly const: "stdio";
|
|
85
|
+
};
|
|
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"];
|
|
94
|
+
};
|
|
59
95
|
readonly additionalProperties: false;
|
|
60
96
|
};
|
|
61
|
-
declare const
|
|
97
|
+
declare const fallbackOutputSchema: {
|
|
62
98
|
readonly type: "object";
|
|
63
99
|
readonly properties: {
|
|
64
100
|
readonly messages: {
|
|
@@ -332,65 +368,20 @@ declare const outputSchema: {
|
|
|
332
368
|
readonly required: readonly ["messages"];
|
|
333
369
|
readonly additionalProperties: false;
|
|
334
370
|
};
|
|
335
|
-
export type
|
|
336
|
-
export type
|
|
337
|
-
export
|
|
371
|
+
export type McpPromptGetTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
|
|
372
|
+
export type McpPromptGetTaskInput = Record<string, unknown>;
|
|
373
|
+
export type McpPromptGetTaskOutput = FromSchema<typeof fallbackOutputSchema>;
|
|
374
|
+
export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig> {
|
|
338
375
|
static type: string;
|
|
339
376
|
static category: string;
|
|
340
377
|
static title: string;
|
|
341
378
|
static description: string;
|
|
342
379
|
static readonly cacheable = false;
|
|
380
|
+
static customizable: boolean;
|
|
381
|
+
static hasDynamicSchemas: boolean;
|
|
343
382
|
static inputSchema(): {
|
|
344
383
|
readonly type: "object";
|
|
345
|
-
readonly properties: {
|
|
346
|
-
readonly prompt_name: {
|
|
347
|
-
readonly type: "string";
|
|
348
|
-
readonly title: "Prompt Name";
|
|
349
|
-
readonly description: "The name of the prompt to get";
|
|
350
|
-
};
|
|
351
|
-
readonly prompt_arguments: {
|
|
352
|
-
readonly type: "object";
|
|
353
|
-
readonly additionalProperties: {
|
|
354
|
-
readonly type: "string";
|
|
355
|
-
};
|
|
356
|
-
readonly title: "Prompt Arguments";
|
|
357
|
-
readonly description: "Arguments to pass to the prompt";
|
|
358
|
-
};
|
|
359
|
-
readonly transport: {
|
|
360
|
-
readonly type: "string";
|
|
361
|
-
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
362
|
-
readonly title: "Transport";
|
|
363
|
-
readonly description: "The transport type to use for connecting to the MCP server";
|
|
364
|
-
};
|
|
365
|
-
readonly server_url: {
|
|
366
|
-
readonly type: "string";
|
|
367
|
-
readonly format: "uri";
|
|
368
|
-
readonly title: "Server URL";
|
|
369
|
-
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
370
|
-
};
|
|
371
|
-
readonly command: {
|
|
372
|
-
readonly type: "string";
|
|
373
|
-
readonly title: "Command";
|
|
374
|
-
readonly description: "The command to run (for stdio transport)";
|
|
375
|
-
};
|
|
376
|
-
readonly args: {
|
|
377
|
-
readonly type: "array";
|
|
378
|
-
readonly items: {
|
|
379
|
-
readonly type: "string";
|
|
380
|
-
};
|
|
381
|
-
readonly title: "Arguments";
|
|
382
|
-
readonly description: "Command arguments (for stdio transport)";
|
|
383
|
-
};
|
|
384
|
-
readonly env: {
|
|
385
|
-
readonly type: "object";
|
|
386
|
-
readonly additionalProperties: {
|
|
387
|
-
readonly type: "string";
|
|
388
|
-
};
|
|
389
|
-
readonly title: "Environment";
|
|
390
|
-
readonly description: "Environment variables (for stdio transport)";
|
|
391
|
-
};
|
|
392
|
-
};
|
|
393
|
-
readonly required: readonly ["transport", "prompt_name"];
|
|
384
|
+
readonly properties: {};
|
|
394
385
|
readonly additionalProperties: false;
|
|
395
386
|
};
|
|
396
387
|
static outputSchema(): {
|
|
@@ -667,12 +658,105 @@ export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPro
|
|
|
667
658
|
readonly required: readonly ["messages"];
|
|
668
659
|
readonly additionalProperties: false;
|
|
669
660
|
};
|
|
661
|
+
static configSchema(): {
|
|
662
|
+
readonly type: "object";
|
|
663
|
+
readonly properties: {
|
|
664
|
+
readonly prompt_name: {
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
readonly title: "Prompt Name";
|
|
667
|
+
readonly description: "The name of the prompt to get";
|
|
668
|
+
readonly format: "string:mcp-promptname";
|
|
669
|
+
};
|
|
670
|
+
readonly transport: {
|
|
671
|
+
readonly type: "string";
|
|
672
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
673
|
+
readonly title: "Transport";
|
|
674
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
675
|
+
};
|
|
676
|
+
readonly server_url: {
|
|
677
|
+
readonly type: "string";
|
|
678
|
+
readonly format: "string:uri";
|
|
679
|
+
readonly title: "Server URL";
|
|
680
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
681
|
+
};
|
|
682
|
+
readonly command: {
|
|
683
|
+
readonly type: "string";
|
|
684
|
+
readonly title: "Command";
|
|
685
|
+
readonly description: "The command to run (for stdio transport)";
|
|
686
|
+
};
|
|
687
|
+
readonly args: {
|
|
688
|
+
readonly type: "array";
|
|
689
|
+
readonly items: {
|
|
690
|
+
readonly type: "string";
|
|
691
|
+
};
|
|
692
|
+
readonly title: "Arguments";
|
|
693
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
694
|
+
};
|
|
695
|
+
readonly env: {
|
|
696
|
+
readonly type: "object";
|
|
697
|
+
readonly additionalProperties: {
|
|
698
|
+
readonly type: "string";
|
|
699
|
+
};
|
|
700
|
+
readonly title: "Environment";
|
|
701
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
702
|
+
};
|
|
703
|
+
readonly id: {
|
|
704
|
+
readonly "x-ui-hidden": true;
|
|
705
|
+
};
|
|
706
|
+
readonly title: {
|
|
707
|
+
readonly type: "string";
|
|
708
|
+
};
|
|
709
|
+
readonly description: {
|
|
710
|
+
readonly type: "string";
|
|
711
|
+
};
|
|
712
|
+
readonly cacheable: {
|
|
713
|
+
readonly type: "boolean";
|
|
714
|
+
};
|
|
715
|
+
readonly inputSchema: {
|
|
716
|
+
readonly type: "object";
|
|
717
|
+
readonly properties: {};
|
|
718
|
+
readonly additionalProperties: true;
|
|
719
|
+
readonly "x-ui-hidden": true;
|
|
720
|
+
};
|
|
721
|
+
readonly outputSchema: {
|
|
722
|
+
readonly type: "object";
|
|
723
|
+
readonly properties: {};
|
|
724
|
+
readonly additionalProperties: true;
|
|
725
|
+
readonly "x-ui-hidden": true;
|
|
726
|
+
};
|
|
727
|
+
readonly extras: {
|
|
728
|
+
readonly type: "object";
|
|
729
|
+
readonly additionalProperties: true;
|
|
730
|
+
readonly "x-ui-hidden": true;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
readonly required: readonly ["transport", "prompt_name"];
|
|
734
|
+
readonly if: {
|
|
735
|
+
readonly properties: {
|
|
736
|
+
readonly transport: {
|
|
737
|
+
readonly const: "stdio";
|
|
738
|
+
};
|
|
739
|
+
};
|
|
740
|
+
readonly required: readonly ["transport"];
|
|
741
|
+
};
|
|
742
|
+
readonly then: {
|
|
743
|
+
readonly required: readonly ["command"];
|
|
744
|
+
};
|
|
745
|
+
readonly else: {
|
|
746
|
+
readonly required: readonly ["server_url"];
|
|
747
|
+
};
|
|
748
|
+
readonly additionalProperties: false;
|
|
749
|
+
};
|
|
750
|
+
inputSchema(): DataPortSchema;
|
|
751
|
+
outputSchema(): DataPortSchema;
|
|
752
|
+
private _schemasDiscovering;
|
|
753
|
+
discoverSchemas(signal?: AbortSignal): Promise<void>;
|
|
670
754
|
execute(input: McpPromptGetTaskInput, context: IExecuteContext): Promise<McpPromptGetTaskOutput>;
|
|
671
755
|
}
|
|
672
|
-
export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config
|
|
756
|
+
export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config: McpPromptGetTaskConfig) => Promise<McpPromptGetTaskOutput>;
|
|
673
757
|
declare module "@workglow/task-graph" {
|
|
674
758
|
interface Workflow {
|
|
675
|
-
mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput,
|
|
759
|
+
mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig>;
|
|
676
760
|
}
|
|
677
761
|
}
|
|
678
762
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpPromptGetTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpPromptGetTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"McpPromptGetTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpPromptGetTask.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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