@workglow/tasks 0.0.96 → 0.0.98
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 +798 -78
- package/dist/browser.js.map +9 -5
- package/dist/bun.js +798 -78
- package/dist/bun.js.map +9 -5
- package/dist/common.d.ts +10 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +798 -78
- package/dist/node.js.map +9 -5
- package/dist/task/mcp/McpListTask.d.ts +658 -0
- package/dist/task/mcp/McpListTask.d.ts.map +1 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts +679 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts +221 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -0
- package/dist/task/mcp/McpToolCallTask.d.ts +653 -0
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -0
- package/package.json +15 -15
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"McpPromptGetTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpPromptGetTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAGX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBkB,CAAC;AAyGpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ACF"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly resource_uri: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Resource URI";
|
|
14
|
+
readonly description: "The URI of the resource to read";
|
|
15
|
+
};
|
|
16
|
+
readonly transport: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
19
|
+
readonly title: "Transport";
|
|
20
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
21
|
+
};
|
|
22
|
+
readonly server_url: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly format: "uri";
|
|
25
|
+
readonly title: "Server URL";
|
|
26
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
27
|
+
};
|
|
28
|
+
readonly command: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly title: "Command";
|
|
31
|
+
readonly description: "The command to run (for stdio transport)";
|
|
32
|
+
};
|
|
33
|
+
readonly args: {
|
|
34
|
+
readonly type: "array";
|
|
35
|
+
readonly items: {
|
|
36
|
+
readonly type: "string";
|
|
37
|
+
};
|
|
38
|
+
readonly title: "Arguments";
|
|
39
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
40
|
+
};
|
|
41
|
+
readonly env: {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly additionalProperties: {
|
|
44
|
+
readonly type: "string";
|
|
45
|
+
};
|
|
46
|
+
readonly title: "Environment";
|
|
47
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["transport", "resource_uri"];
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
};
|
|
53
|
+
declare const outputSchema: {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly properties: {
|
|
56
|
+
readonly contents: {
|
|
57
|
+
readonly type: "array";
|
|
58
|
+
readonly items: {
|
|
59
|
+
readonly anyOf: readonly [{
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly uri: {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly text: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly mimeType: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
readonly _meta: {
|
|
72
|
+
readonly type: "object";
|
|
73
|
+
readonly additionalProperties: true;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly required: readonly ["uri", "text"];
|
|
77
|
+
readonly additionalProperties: false;
|
|
78
|
+
}, {
|
|
79
|
+
readonly type: "object";
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly uri: {
|
|
82
|
+
readonly type: "string";
|
|
83
|
+
};
|
|
84
|
+
readonly blob: {
|
|
85
|
+
readonly type: "string";
|
|
86
|
+
};
|
|
87
|
+
readonly mimeType: {
|
|
88
|
+
readonly type: "string";
|
|
89
|
+
};
|
|
90
|
+
readonly _meta: {
|
|
91
|
+
readonly type: "object";
|
|
92
|
+
readonly additionalProperties: true;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
readonly required: readonly ["uri", "blob"];
|
|
96
|
+
readonly additionalProperties: false;
|
|
97
|
+
}];
|
|
98
|
+
};
|
|
99
|
+
readonly title: "Contents";
|
|
100
|
+
readonly description: "The contents of the resource";
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
readonly required: readonly ["contents"];
|
|
104
|
+
readonly additionalProperties: false;
|
|
105
|
+
};
|
|
106
|
+
export type McpResourceReadTaskInput = FromSchema<typeof inputSchema>;
|
|
107
|
+
export type McpResourceReadTaskOutput = FromSchema<typeof outputSchema>;
|
|
108
|
+
export declare class McpResourceReadTask extends Task<McpResourceReadTaskInput, McpResourceReadTaskOutput, TaskConfig> {
|
|
109
|
+
static type: string;
|
|
110
|
+
static category: string;
|
|
111
|
+
static title: string;
|
|
112
|
+
static description: string;
|
|
113
|
+
static readonly cacheable = false;
|
|
114
|
+
static inputSchema(): {
|
|
115
|
+
readonly type: "object";
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly resource_uri: {
|
|
118
|
+
readonly type: "string";
|
|
119
|
+
readonly title: "Resource URI";
|
|
120
|
+
readonly description: "The URI of the resource to read";
|
|
121
|
+
};
|
|
122
|
+
readonly transport: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
125
|
+
readonly title: "Transport";
|
|
126
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
127
|
+
};
|
|
128
|
+
readonly server_url: {
|
|
129
|
+
readonly type: "string";
|
|
130
|
+
readonly format: "uri";
|
|
131
|
+
readonly title: "Server URL";
|
|
132
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
133
|
+
};
|
|
134
|
+
readonly command: {
|
|
135
|
+
readonly type: "string";
|
|
136
|
+
readonly title: "Command";
|
|
137
|
+
readonly description: "The command to run (for stdio transport)";
|
|
138
|
+
};
|
|
139
|
+
readonly args: {
|
|
140
|
+
readonly type: "array";
|
|
141
|
+
readonly items: {
|
|
142
|
+
readonly type: "string";
|
|
143
|
+
};
|
|
144
|
+
readonly title: "Arguments";
|
|
145
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
146
|
+
};
|
|
147
|
+
readonly env: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly additionalProperties: {
|
|
150
|
+
readonly type: "string";
|
|
151
|
+
};
|
|
152
|
+
readonly title: "Environment";
|
|
153
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly required: readonly ["transport", "resource_uri"];
|
|
157
|
+
readonly additionalProperties: false;
|
|
158
|
+
};
|
|
159
|
+
static outputSchema(): {
|
|
160
|
+
readonly type: "object";
|
|
161
|
+
readonly properties: {
|
|
162
|
+
readonly contents: {
|
|
163
|
+
readonly type: "array";
|
|
164
|
+
readonly items: {
|
|
165
|
+
readonly anyOf: readonly [{
|
|
166
|
+
readonly type: "object";
|
|
167
|
+
readonly properties: {
|
|
168
|
+
readonly uri: {
|
|
169
|
+
readonly type: "string";
|
|
170
|
+
};
|
|
171
|
+
readonly text: {
|
|
172
|
+
readonly type: "string";
|
|
173
|
+
};
|
|
174
|
+
readonly mimeType: {
|
|
175
|
+
readonly type: "string";
|
|
176
|
+
};
|
|
177
|
+
readonly _meta: {
|
|
178
|
+
readonly type: "object";
|
|
179
|
+
readonly additionalProperties: true;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
readonly required: readonly ["uri", "text"];
|
|
183
|
+
readonly additionalProperties: false;
|
|
184
|
+
}, {
|
|
185
|
+
readonly type: "object";
|
|
186
|
+
readonly properties: {
|
|
187
|
+
readonly uri: {
|
|
188
|
+
readonly type: "string";
|
|
189
|
+
};
|
|
190
|
+
readonly blob: {
|
|
191
|
+
readonly type: "string";
|
|
192
|
+
};
|
|
193
|
+
readonly mimeType: {
|
|
194
|
+
readonly type: "string";
|
|
195
|
+
};
|
|
196
|
+
readonly _meta: {
|
|
197
|
+
readonly type: "object";
|
|
198
|
+
readonly additionalProperties: true;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly required: readonly ["uri", "blob"];
|
|
202
|
+
readonly additionalProperties: false;
|
|
203
|
+
}];
|
|
204
|
+
};
|
|
205
|
+
readonly title: "Contents";
|
|
206
|
+
readonly description: "The contents of the resource";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
readonly required: readonly ["contents"];
|
|
210
|
+
readonly additionalProperties: false;
|
|
211
|
+
};
|
|
212
|
+
execute(input: McpResourceReadTaskInput, context: IExecuteContext): Promise<McpResourceReadTaskOutput>;
|
|
213
|
+
}
|
|
214
|
+
export declare const mcpResourceRead: (input: McpResourceReadTaskInput, config?: TaskConfig) => Promise<McpResourceReadTaskOutput>;
|
|
215
|
+
declare module "@workglow/task-graph" {
|
|
216
|
+
interface Workflow {
|
|
217
|
+
mcpResourceRead: CreateWorkflow<McpResourceReadTaskInput, McpResourceReadTaskOutput, TaskConfig>;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
export {};
|
|
221
|
+
//# sourceMappingURL=McpResourceReadTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"McpResourceReadTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpResourceReadTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYkB,CAAC;AA6BpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAExE,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAS;IAC/B,OA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