@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
|
@@ -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,EAAE,UAAU,EAA8B,MAAM,sBAAsB,CAAC;AACpG,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,UAAU,2DAA4D,CAAC;AAC7E,KAAK,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAkB5C,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,kCAAkC;IAClC,SAAS,CAAC,EAAE,QAAQ,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;CAIkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;CAIiB,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEjE;;;;;;;;;;GAUG;AACH,qBAAa,YAAY,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,CACtD,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,kBAAkB,CAAC;IAC/C,OAAc,IAAI,SAAkB;IACpC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAAe;IAClC,OAAc,WAAW,SAC+D;IACxF,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,OAA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AAO,MAAM,QAAQ,GAAI,OAAO,iBAAiB,EAAE,SAAQ,kBAAuB;;EAGjF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,QAAQ,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;KACrF;CACF"}
|
package/dist/task/DelayTask.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/tas
|
|
|
7
7
|
import { DataPortSchema, 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":"AA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AC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
|
|
@@ -54,6 +54,11 @@ declare const outputSchema: {
|
|
|
54
54
|
readonly title: "PDF";
|
|
55
55
|
readonly description: "Base64 data URL for PDF files";
|
|
56
56
|
};
|
|
57
|
+
readonly frontmatter: {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly title: "Frontmatter";
|
|
60
|
+
readonly description: "Parsed YAML frontmatter from markdown/MDX files";
|
|
61
|
+
};
|
|
57
62
|
readonly metadata: {
|
|
58
63
|
readonly type: "object";
|
|
59
64
|
readonly properties: {
|
|
@@ -105,6 +110,20 @@ export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoader
|
|
|
105
110
|
* Parse CSV content into array of objects
|
|
106
111
|
*/
|
|
107
112
|
protected parseCsvContent(content: string): Array<Record<string, string>>;
|
|
113
|
+
/**
|
|
114
|
+
* Parse YAML frontmatter from markdown/MDX content.
|
|
115
|
+
* Supports common frontmatter patterns: strings, numbers, booleans, arrays, and nested objects.
|
|
116
|
+
*/
|
|
117
|
+
protected parseFrontmatter(content: string): {
|
|
118
|
+
readonly frontmatter: Record<string, unknown> | undefined;
|
|
119
|
+
readonly body: string;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Lightweight line-based YAML parser for frontmatter key-value pairs.
|
|
123
|
+
*/
|
|
124
|
+
private parseSimpleYaml;
|
|
125
|
+
private parseYamlLine;
|
|
126
|
+
private parseYamlValue;
|
|
108
127
|
/**
|
|
109
128
|
* Parse the fetch response into typed outputs
|
|
110
129
|
*/
|
|
@@ -114,6 +133,7 @@ export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoader
|
|
|
114
133
|
readonly csv: Array<Record<string, string>> | undefined;
|
|
115
134
|
readonly image: string | undefined;
|
|
116
135
|
readonly pdf: string | undefined;
|
|
136
|
+
readonly frontmatter: Record<string, unknown> | undefined;
|
|
117
137
|
readonly size: number;
|
|
118
138
|
readonly mimeType: string;
|
|
119
139
|
}>;
|
|
@@ -145,6 +165,9 @@ export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueT
|
|
|
145
165
|
csv?: unknown[] | undefined;
|
|
146
166
|
pdf?: string | undefined;
|
|
147
167
|
image?: string | undefined;
|
|
168
|
+
frontmatter?: {
|
|
169
|
+
[x: string]: unknown;
|
|
170
|
+
} | undefined;
|
|
148
171
|
metadata: {
|
|
149
172
|
format?: string | undefined;
|
|
150
173
|
title?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLoaderTask.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,IAAI,EAGL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;CAmBkB,CAAC;AAEpC,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"FileLoaderTask.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,IAAI,EAGL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,OAAO,EAAgB,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;CAmBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDiB,CAAC;AAEpC,MAAM,MAAM,m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AkB,CAAC,CAAC;KAC3F;CACF"}
|
|
@@ -22,6 +22,9 @@ export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueT
|
|
|
22
22
|
csv?: unknown[] | undefined;
|
|
23
23
|
pdf?: string | undefined;
|
|
24
24
|
image?: string | undefined;
|
|
25
|
+
frontmatter?: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
} | undefined;
|
|
25
28
|
metadata: {
|
|
26
29
|
format?: string | undefined;
|
|
27
30
|
title?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileLoaderTask.server.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AAE1D;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IAC9C,OAAO,CACX,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"FileLoaderTask.server.d.ts","sourceRoot":"","sources":["../../src/task/FileLoaderTask.server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,cAAc,IAAI,kBAAkB,EACpC,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC;AAE1D;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,kBAAkB;IAC9C,OAAO,CACX,KAAK,EAAE,mBAAmB,EAC1B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,oBAAoB,CAAC;CA0MjC;AAED,eAAO,MAAM,UAAU,GAAI,OAAO,mBAAmB,EAAE,SAAS,kBAAkB;;;;;;;;;;;;;;;;EAEjF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC;KAC3F;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputTask.d.ts","sourceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"InputTask.d.ts","sourceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,IAAI,EACJ,UAAU,EAEV,KAAK,eAAe,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AAEzC,qBAAa,SAAU,SAAQ,IAAI,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC;IACnF,MAAM,CAAC,IAAI,SAAe;IAC1B,MAAM,CAAC,QAAQ,SAAkB;IACjC,MAAM,CAAC,KAAK,SAAW;IACvB,MAAM,CAAC,WAAW,SAAyB;IAC3C,MAAM,CAAC,iBAAiB,UAAQ;IAChC,MAAM,CAAC,SAAS,UAAS;WAEX,WAAW,IAAI,cAAc;WAQ7B,YAAY,IAAI,cAAc;IAQrC,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAIxB,OAAO,CAAC,KAAK,EAAE,cAAc;IAI7B,eAAe,CAAC,KAAK,EAAE,cAAc;IAIlD;;;;OAIG;IACI,aAAa,CAClB,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,eAAe,GACvB,aAAa,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;CAkB/C;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
|
|
@@ -32,11 +32,61 @@ 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 timeout: {
|
|
67
|
+
readonly type: "number";
|
|
68
|
+
readonly description: "Max execution time in milliseconds";
|
|
69
|
+
};
|
|
70
|
+
readonly inputSchema: {
|
|
71
|
+
readonly type: "object";
|
|
72
|
+
readonly properties: {};
|
|
73
|
+
readonly additionalProperties: true;
|
|
74
|
+
readonly "x-ui-hidden": true;
|
|
75
|
+
};
|
|
76
|
+
readonly outputSchema: {
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly properties: {};
|
|
79
|
+
readonly additionalProperties: true;
|
|
80
|
+
readonly "x-ui-hidden": true;
|
|
81
|
+
};
|
|
82
|
+
readonly extras: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: true;
|
|
85
|
+
readonly "x-ui-hidden": true;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
readonly additionalProperties: false;
|
|
89
|
+
};
|
|
40
90
|
static inputSchema(): {
|
|
41
91
|
readonly type: "object";
|
|
42
92
|
readonly properties: {
|
|
@@ -62,6 +112,21 @@ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScript
|
|
|
62
112
|
readonly required: readonly ["output"];
|
|
63
113
|
readonly additionalProperties: false;
|
|
64
114
|
};
|
|
115
|
+
constructor(input?: Partial<JavaScriptTaskInput>, config?: Partial<JavaScriptTaskConfig>);
|
|
116
|
+
inputSchema(): true | import("@workglow/util").DataPortSchemaObject<import("@workglow/util").JsonSchemaCustomProps> | {
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly properties: {
|
|
119
|
+
readonly javascript_code: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly title: "Code";
|
|
122
|
+
readonly minLength: 1;
|
|
123
|
+
readonly description: "JavaScript code to execute";
|
|
124
|
+
readonly format: "code:javascript";
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly required: readonly ["javascript_code"];
|
|
128
|
+
readonly additionalProperties: true;
|
|
129
|
+
};
|
|
65
130
|
executeReactive(input: JavaScriptTaskInput, output: JavaScriptTaskOutput): Promise<{
|
|
66
131
|
output: unknown;
|
|
67
132
|
}>;
|
|
@@ -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
|
};
|
|
@@ -20,19 +22,26 @@ export declare const lambdaTaskConfigSchema: {
|
|
|
20
22
|
readonly cacheable: {
|
|
21
23
|
readonly type: "boolean";
|
|
22
24
|
};
|
|
25
|
+
readonly timeout: {
|
|
26
|
+
readonly type: "number";
|
|
27
|
+
readonly description: "Max execution time in milliseconds";
|
|
28
|
+
};
|
|
23
29
|
readonly inputSchema: {
|
|
24
30
|
readonly type: "object";
|
|
25
31
|
readonly properties: {};
|
|
26
32
|
readonly additionalProperties: true;
|
|
33
|
+
readonly "x-ui-hidden": true;
|
|
27
34
|
};
|
|
28
35
|
readonly outputSchema: {
|
|
29
36
|
readonly type: "object";
|
|
30
37
|
readonly properties: {};
|
|
31
38
|
readonly additionalProperties: true;
|
|
39
|
+
readonly "x-ui-hidden": true;
|
|
32
40
|
};
|
|
33
41
|
readonly extras: {
|
|
34
42
|
readonly type: "object";
|
|
35
43
|
readonly additionalProperties: true;
|
|
44
|
+
readonly "x-ui-hidden": true;
|
|
36
45
|
};
|
|
37
46
|
};
|
|
38
47
|
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,EAAE,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACtE,eAAe,CAAC,EAAE,CAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,uBAAuB,KAC7B,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAwBF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutputTask.d.ts","sourceRoot":"","sources":["../../src/task/OutputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"OutputTask.d.ts","sourceRoot":"","sources":["../../src/task/OutputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,IAAI,EACJ,UAAU,EAEV,KAAK,eAAe,EACpB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAE1C,qBAAa,UAAW,SAAQ,IAAI,CAAC,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC;IACvF,MAAM,CAAC,IAAI,SAAgB;IAC3B,MAAM,CAAC,QAAQ,SAAkB;IACjC,MAAM,CAAC,KAAK,SAAY;IACxB,MAAM,CAAC,WAAW,SAAuB;IACzC,MAAM,CAAC,iBAAiB,UAAQ;IAChC,MAAM,CAAC,SAAS,UAAS;WAEX,WAAW,IAAI,cAAc;WAQ7B,YAAY,IAAI,cAAc;IAQrC,WAAW,IAAI,cAAc;IAI7B,YAAY,IAAI,cAAc;IAIxB,OAAO,CAAC,KAAK,EAAE,eAAe;IAI9B,eAAe,CAAC,KAAK,EAAE,eAAe;IAInD;;;;OAIG;IACI,aAAa,CAClB,KAAK,EAAE,eAAe,EACtB,OAAO,EAAE,eAAe,GACvB,aAAa,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAkBhD;AAED;;GAEG;AACH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;KAC7E;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,58 @@ 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 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
|
+
};
|
|
57
83
|
};
|
|
58
84
|
readonly required: readonly ["transport", "prompt_name"];
|
|
85
|
+
readonly if: {
|
|
86
|
+
readonly properties: {
|
|
87
|
+
readonly transport: {
|
|
88
|
+
readonly const: "stdio";
|
|
89
|
+
};
|
|
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"];
|
|
98
|
+
};
|
|
59
99
|
readonly additionalProperties: false;
|
|
60
100
|
};
|
|
61
|
-
declare const
|
|
101
|
+
declare const fallbackOutputSchema: {
|
|
62
102
|
readonly type: "object";
|
|
63
103
|
readonly properties: {
|
|
64
104
|
readonly messages: {
|
|
@@ -332,65 +372,20 @@ declare const outputSchema: {
|
|
|
332
372
|
readonly required: readonly ["messages"];
|
|
333
373
|
readonly additionalProperties: false;
|
|
334
374
|
};
|
|
335
|
-
export type
|
|
336
|
-
export type
|
|
337
|
-
export
|
|
375
|
+
export type McpPromptGetTaskConfig = TaskConfig & FromSchema<typeof configSchema>;
|
|
376
|
+
export type McpPromptGetTaskInput = Record<string, unknown>;
|
|
377
|
+
export type McpPromptGetTaskOutput = FromSchema<typeof fallbackOutputSchema>;
|
|
378
|
+
export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig> {
|
|
338
379
|
static type: string;
|
|
339
380
|
static category: string;
|
|
340
381
|
static title: string;
|
|
341
382
|
static description: string;
|
|
342
383
|
static readonly cacheable = false;
|
|
384
|
+
static customizable: boolean;
|
|
385
|
+
static hasDynamicSchemas: boolean;
|
|
343
386
|
static inputSchema(): {
|
|
344
387
|
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"];
|
|
388
|
+
readonly properties: {};
|
|
394
389
|
readonly additionalProperties: false;
|
|
395
390
|
};
|
|
396
391
|
static outputSchema(): {
|
|
@@ -667,12 +662,109 @@ export declare class McpPromptGetTask extends Task<McpPromptGetTaskInput, McpPro
|
|
|
667
662
|
readonly required: readonly ["messages"];
|
|
668
663
|
readonly additionalProperties: false;
|
|
669
664
|
};
|
|
665
|
+
static configSchema(): {
|
|
666
|
+
readonly type: "object";
|
|
667
|
+
readonly properties: {
|
|
668
|
+
readonly prompt_name: {
|
|
669
|
+
readonly type: "string";
|
|
670
|
+
readonly title: "Prompt Name";
|
|
671
|
+
readonly description: "The name of the prompt to get";
|
|
672
|
+
readonly format: "string:mcp-promptname";
|
|
673
|
+
};
|
|
674
|
+
readonly transport: {
|
|
675
|
+
readonly type: "string";
|
|
676
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
677
|
+
readonly title: "Transport";
|
|
678
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
679
|
+
};
|
|
680
|
+
readonly server_url: {
|
|
681
|
+
readonly type: "string";
|
|
682
|
+
readonly format: "string:uri";
|
|
683
|
+
readonly title: "Server URL";
|
|
684
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
685
|
+
};
|
|
686
|
+
readonly command: {
|
|
687
|
+
readonly type: "string";
|
|
688
|
+
readonly title: "Command";
|
|
689
|
+
readonly description: "The command to run (for stdio transport)";
|
|
690
|
+
};
|
|
691
|
+
readonly args: {
|
|
692
|
+
readonly type: "array";
|
|
693
|
+
readonly items: {
|
|
694
|
+
readonly type: "string";
|
|
695
|
+
};
|
|
696
|
+
readonly title: "Arguments";
|
|
697
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
698
|
+
};
|
|
699
|
+
readonly env: {
|
|
700
|
+
readonly type: "object";
|
|
701
|
+
readonly additionalProperties: {
|
|
702
|
+
readonly type: "string";
|
|
703
|
+
};
|
|
704
|
+
readonly title: "Environment";
|
|
705
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
706
|
+
};
|
|
707
|
+
readonly id: {
|
|
708
|
+
readonly "x-ui-hidden": true;
|
|
709
|
+
};
|
|
710
|
+
readonly title: {
|
|
711
|
+
readonly type: "string";
|
|
712
|
+
};
|
|
713
|
+
readonly description: {
|
|
714
|
+
readonly type: "string";
|
|
715
|
+
};
|
|
716
|
+
readonly cacheable: {
|
|
717
|
+
readonly type: "boolean";
|
|
718
|
+
};
|
|
719
|
+
readonly timeout: {
|
|
720
|
+
readonly type: "number";
|
|
721
|
+
readonly description: "Max execution time in milliseconds";
|
|
722
|
+
};
|
|
723
|
+
readonly inputSchema: {
|
|
724
|
+
readonly type: "object";
|
|
725
|
+
readonly properties: {};
|
|
726
|
+
readonly additionalProperties: true;
|
|
727
|
+
readonly "x-ui-hidden": true;
|
|
728
|
+
};
|
|
729
|
+
readonly outputSchema: {
|
|
730
|
+
readonly type: "object";
|
|
731
|
+
readonly properties: {};
|
|
732
|
+
readonly additionalProperties: true;
|
|
733
|
+
readonly "x-ui-hidden": true;
|
|
734
|
+
};
|
|
735
|
+
readonly extras: {
|
|
736
|
+
readonly type: "object";
|
|
737
|
+
readonly additionalProperties: true;
|
|
738
|
+
readonly "x-ui-hidden": true;
|
|
739
|
+
};
|
|
740
|
+
};
|
|
741
|
+
readonly required: readonly ["transport", "prompt_name"];
|
|
742
|
+
readonly if: {
|
|
743
|
+
readonly properties: {
|
|
744
|
+
readonly transport: {
|
|
745
|
+
readonly const: "stdio";
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
readonly required: readonly ["transport"];
|
|
749
|
+
};
|
|
750
|
+
readonly then: {
|
|
751
|
+
readonly required: readonly ["command"];
|
|
752
|
+
};
|
|
753
|
+
readonly else: {
|
|
754
|
+
readonly required: readonly ["server_url"];
|
|
755
|
+
};
|
|
756
|
+
readonly additionalProperties: false;
|
|
757
|
+
};
|
|
758
|
+
inputSchema(): DataPortSchema;
|
|
759
|
+
outputSchema(): DataPortSchema;
|
|
760
|
+
private _schemasDiscovering;
|
|
761
|
+
discoverSchemas(signal?: AbortSignal): Promise<void>;
|
|
670
762
|
execute(input: McpPromptGetTaskInput, context: IExecuteContext): Promise<McpPromptGetTaskOutput>;
|
|
671
763
|
}
|
|
672
|
-
export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config
|
|
764
|
+
export declare const mcpPromptGet: (input: McpPromptGetTaskInput, config: McpPromptGetTaskConfig) => Promise<McpPromptGetTaskOutput>;
|
|
673
765
|
declare module "@workglow/task-graph" {
|
|
674
766
|
interface Workflow {
|
|
675
|
-
mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput,
|
|
767
|
+
mcpPromptGet: CreateWorkflow<McpPromptGetTaskInput, McpPromptGetTaskOutput, McpPromptGetTaskConfig>;
|
|
676
768
|
}
|
|
677
769
|
}
|
|
678
770
|
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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