@workglow/tasks 0.0.84 → 0.0.86
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 +73 -0
- package/dist/{index.js → browser.js} +742 -194
- package/dist/{index.js.map → browser.js.map} +17 -11
- package/dist/bun.js +5933 -0
- package/dist/bun.js.map +26 -0
- package/dist/common.d.ts +28 -0
- package/dist/common.d.ts.map +1 -0
- package/dist/node.js +5933 -0
- package/dist/node.js.map +26 -0
- package/dist/task/ArrayTask.d.ts +109 -0
- package/dist/task/ArrayTask.d.ts.map +1 -0
- package/dist/task/DebugLogTask.d.ts.map +1 -1
- package/dist/task/DelayTask.d.ts.map +1 -1
- package/dist/task/FetchUrlTask.d.ts +37 -1
- package/dist/task/FetchUrlTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.d.ts +162 -0
- package/dist/task/FileLoaderTask.d.ts.map +1 -0
- package/dist/task/FileLoaderTask.server.d.ts +38 -0
- package/dist/task/FileLoaderTask.server.d.ts.map +1 -0
- package/dist/task/InputTask.d.ts +32 -0
- package/dist/task/InputTask.d.ts.map +1 -0
- package/dist/task/JavaScriptTask.d.ts.map +1 -1
- package/dist/task/JsonTask.d.ts +2 -0
- package/dist/task/JsonTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +7 -26
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/MergeTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts +35 -0
- package/dist/task/OutputTask.d.ts.map +1 -0
- package/dist/task/SplitTask.d.ts.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +25 -15
- package/dist/index.d.ts +0 -14
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { DataPortSchemaNonBoolean, TypedArray, VectorFromSchema, type DataPortSchema } from "@workglow/util";
|
|
7
|
+
import { GraphAsTask, GraphAsTaskRunner, GraphResultArray, JsonTaskItem, TaskConfig, TaskGraphItemJson, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
8
|
+
export declare const TypeReplicateArray: <const T extends DataPortSchemaNonBoolean>(type: T, annotations?: Record<string, unknown>) => {
|
|
9
|
+
readonly "x-replicate": true;
|
|
10
|
+
readonly format?: string | undefined;
|
|
11
|
+
readonly oneOf: readonly [T, {
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: T;
|
|
14
|
+
}];
|
|
15
|
+
readonly title: string | undefined;
|
|
16
|
+
readonly description: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Removes array types from a union, leaving only non-array types.
|
|
20
|
+
* For example, `string | string[]` becomes `string`.
|
|
21
|
+
* Used to extract the single-value type from schemas with x-replicate annotation.
|
|
22
|
+
* Uses distributive conditional types to filter out arrays from unions.
|
|
23
|
+
* Checks for both array types and types with numeric index signatures (FromSchema array output).
|
|
24
|
+
* Preserves Vector types like Float64Array which also have numeric indices.
|
|
25
|
+
*/
|
|
26
|
+
type UnwrapArrayUnion<T> = T extends readonly any[] ? T extends TypedArray ? T : never : number extends keyof T ? "push" extends keyof T ? never : T : T;
|
|
27
|
+
/**
|
|
28
|
+
* Transforms a schema by removing array variants from properties marked with x-replicate.
|
|
29
|
+
* Properties with x-replicate use {@link TypeReplicateArray} which creates a union of
|
|
30
|
+
* `T | T[]`, and this type extracts just `T`.
|
|
31
|
+
*/
|
|
32
|
+
export type DeReplicateFromSchema<S extends {
|
|
33
|
+
properties: Record<string, any>;
|
|
34
|
+
}> = {
|
|
35
|
+
[K in keyof S["properties"]]: S["properties"][K] extends {
|
|
36
|
+
"x-replicate": true;
|
|
37
|
+
} ? UnwrapArrayUnion<VectorFromSchema<S["properties"][K]>> : VectorFromSchema<S["properties"][K]>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* ArrayTask is a compound task that either:
|
|
41
|
+
* 1. Executes directly if all inputs are non-arrays
|
|
42
|
+
* 2. Creates a subGraph with one task instance per array element if any input is an array
|
|
43
|
+
* 3. Creates all combinations if multiple inputs are arrays
|
|
44
|
+
*/
|
|
45
|
+
export declare class ArrayTask<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Config extends TaskConfig = TaskConfig> extends GraphAsTask<Input, Output, Config> {
|
|
46
|
+
/**
|
|
47
|
+
* The type identifier for this task class
|
|
48
|
+
*/
|
|
49
|
+
static type: string;
|
|
50
|
+
/**
|
|
51
|
+
* Make this task have results that look like an array
|
|
52
|
+
*/
|
|
53
|
+
static readonly compoundMerge: "PROPERTY_ARRAY";
|
|
54
|
+
/**
|
|
55
|
+
* Gets input schema for this task from the static inputSchema property, which is user defined (reverts GraphAsTask's override)
|
|
56
|
+
*/
|
|
57
|
+
inputSchema(): DataPortSchema;
|
|
58
|
+
/**
|
|
59
|
+
* Gets output schema for this task from the static outputSchema property, which is user defined (reverts GraphAsTask's override)
|
|
60
|
+
*/
|
|
61
|
+
outputSchema(): DataPortSchema;
|
|
62
|
+
/**
|
|
63
|
+
* Merges the reactive results into the output
|
|
64
|
+
* @param input The input to the task
|
|
65
|
+
* @param output The output of the task
|
|
66
|
+
* @param reactiveResults The reactive results from the subtasks
|
|
67
|
+
* @returns The merged output
|
|
68
|
+
*/
|
|
69
|
+
executeMerge(_input: Input, output: Output): Output;
|
|
70
|
+
/**
|
|
71
|
+
* Regenerates the task subgraph based on input arrays
|
|
72
|
+
*/
|
|
73
|
+
regenerateGraph(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Generates all possible combinations of array inputs
|
|
76
|
+
* @param input Input object containing arrays
|
|
77
|
+
* @param inputMakeArray Keys of properties to generate combinations for
|
|
78
|
+
* @returns Array of input objects with all possible combinations
|
|
79
|
+
*/
|
|
80
|
+
protected generateCombinations(input: Input, inputMakeArray: Array<keyof Input>): Input[];
|
|
81
|
+
toJSON(): TaskGraphItemJson;
|
|
82
|
+
toDependencyJSON(): JsonTaskItem;
|
|
83
|
+
/**
|
|
84
|
+
* Create a custom runner for ArrayTask that overrides input passing behavior
|
|
85
|
+
* as inputs were already distributed to child tasks during graph regeneration
|
|
86
|
+
*/
|
|
87
|
+
_runner: ArrayTaskRunner<Input, Output, Config>;
|
|
88
|
+
/**
|
|
89
|
+
* Task runner for handling the task execution
|
|
90
|
+
*/
|
|
91
|
+
get runner(): ArrayTaskRunner<Input, Output, Config>;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Custom runner for ArrayTask that passes empty input to child tasks.
|
|
95
|
+
* ArrayTask child tasks get their input values from their defaults (set during task creation),
|
|
96
|
+
* not from the parent task's input.
|
|
97
|
+
*/
|
|
98
|
+
declare class ArrayTaskRunner<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Config extends TaskConfig = TaskConfig> extends GraphAsTaskRunner<Input, Output, Config> {
|
|
99
|
+
task: ArrayTask<Input, Output, Config>;
|
|
100
|
+
/**
|
|
101
|
+
* Override to pass empty input to subgraph.
|
|
102
|
+
* Child tasks will use their defaults instead of parent input.
|
|
103
|
+
*/
|
|
104
|
+
protected executeTaskChildren(_input: Input): Promise<GraphResultArray<Output>>;
|
|
105
|
+
executeTaskReactive(input: Input, output: Output): Promise<Output>;
|
|
106
|
+
executeTask(input: Input): Promise<Output>;
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=ArrayTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayTask.d.ts","sourceRoot":"","sources":["../../src/task/ArrayTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,wBAAwB,EACxB,UAAU,EAEV,gBAAgB,EAChB,KAAK,cAAc,EACpB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL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AU,CAAC,CAAC;KAC7E;CACF"}
|
|
@@ -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,
|
|
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,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAS,MAAM,gBAAgB,CAAC;AAEnE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;CAckB,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,EAChD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,eAAe;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAAsE;IAE/F,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,UAAe;;EAGnE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;KACpE;CACF"}
|
|
@@ -41,6 +41,7 @@ declare const inputSchema: {
|
|
|
41
41
|
readonly enum: readonly ["json", "text", "blob", "arraybuffer"];
|
|
42
42
|
}];
|
|
43
43
|
readonly title: "Response Type";
|
|
44
|
+
readonly description: "The forced type of response to return. If null, the response type is inferred from the Content-Type header.";
|
|
44
45
|
readonly default: null;
|
|
45
46
|
};
|
|
46
47
|
readonly timeout: {
|
|
@@ -82,6 +83,23 @@ declare const outputSchema: {
|
|
|
82
83
|
readonly title: "ArrayBuffer";
|
|
83
84
|
readonly description: "The arraybuffer response";
|
|
84
85
|
};
|
|
86
|
+
readonly metadata: {
|
|
87
|
+
readonly type: "object";
|
|
88
|
+
readonly properties: {
|
|
89
|
+
readonly contentType: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
readonly headers: {
|
|
93
|
+
readonly type: "object";
|
|
94
|
+
readonly additionalProperties: {
|
|
95
|
+
readonly type: "string";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
readonly title: "Response Metadata";
|
|
101
|
+
readonly description: "HTTP response metadata including content type and headers";
|
|
102
|
+
};
|
|
85
103
|
};
|
|
86
104
|
readonly additionalProperties: false;
|
|
87
105
|
};
|
|
@@ -146,6 +164,7 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
146
164
|
readonly enum: readonly ["json", "text", "blob", "arraybuffer"];
|
|
147
165
|
}];
|
|
148
166
|
readonly title: "Response Type";
|
|
167
|
+
readonly description: "The forced type of response to return. If null, the response type is inferred from the Content-Type header.";
|
|
149
168
|
readonly default: null;
|
|
150
169
|
};
|
|
151
170
|
readonly timeout: {
|
|
@@ -187,6 +206,23 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
187
206
|
readonly title: "ArrayBuffer";
|
|
188
207
|
readonly description: "The arraybuffer response";
|
|
189
208
|
};
|
|
209
|
+
readonly metadata: {
|
|
210
|
+
readonly type: "object";
|
|
211
|
+
readonly properties: {
|
|
212
|
+
readonly contentType: {
|
|
213
|
+
readonly type: "string";
|
|
214
|
+
};
|
|
215
|
+
readonly headers: {
|
|
216
|
+
readonly type: "object";
|
|
217
|
+
readonly additionalProperties: {
|
|
218
|
+
readonly type: "string";
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
readonly additionalProperties: false;
|
|
223
|
+
readonly title: "Response Metadata";
|
|
224
|
+
readonly description: "HTTP response metadata including content type and headers";
|
|
225
|
+
};
|
|
190
226
|
};
|
|
191
227
|
readonly additionalProperties: false;
|
|
192
228
|
};
|
|
@@ -196,7 +232,7 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
196
232
|
* If response_type is a specific value (e.g., "json"), only that output type is available.
|
|
197
233
|
*/
|
|
198
234
|
outputSchema(): DataPortSchema;
|
|
199
|
-
constructor(input?: Input
|
|
235
|
+
constructor(input?: Partial<Input>, config?: Config);
|
|
200
236
|
/**
|
|
201
237
|
* Override setInput to detect when response_type changes and emit schemaChange event.
|
|
202
238
|
* This ensures that consumers of the task are notified when the output schema changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchUrlTask.d.ts","sourceRoot":"","sources":["../../src/task/FetchUrlTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,YAAY,EACZ,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FetchUrlTask.d.ts","sourceRoot":"","sources":["../../src/task/F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AAC;IAC3C,OAAc,IAAI,SAAkB;IACpC,OAAc,QAAQ,SAAW;IACjC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SACuD;IAChF,OAAc,iBAAiB,EAAE,OAAO,CAAQ;WAElC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI1B;;;;OAIG;IACa,YAAY,IAAI,cAAc;gBAiDlC,KAAK,GAAE,OAAO,CAAC,KAAK,CAAe,EAAE,MAAM,GAAE,MAAqB;IAS9E;;;OAGG;IACa,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;cA4BjC,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAgBxF;AAED,eAAO,MAAM,QAAQ,GACnB,OAAO,iBAAiB,EACxB,SAAQ,kBAAuB,KAC9B,OAAO,CAAC,kBAAkB,CAG5B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;KAClF;CACF"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, JobQueueTaskConfig, Task } from "@workglow/task-graph";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
import { FetchUrlTaskOutput } from "./FetchUrlTask";
|
|
9
|
+
declare const inputSchema: {
|
|
10
|
+
readonly type: "object";
|
|
11
|
+
readonly properties: {
|
|
12
|
+
readonly url: {
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
readonly title: "URL";
|
|
15
|
+
readonly description: "URL to load document from (http://, https://)";
|
|
16
|
+
readonly format: "uri";
|
|
17
|
+
};
|
|
18
|
+
readonly format: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly enum: readonly ["text", "markdown", "json", "csv", "pdf", "image", "html", "auto"];
|
|
21
|
+
readonly title: "Format";
|
|
22
|
+
readonly description: "File format (auto-detected from URL if 'auto')";
|
|
23
|
+
readonly default: "auto";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
readonly required: readonly ["url"];
|
|
27
|
+
readonly additionalProperties: false;
|
|
28
|
+
};
|
|
29
|
+
declare const outputSchema: {
|
|
30
|
+
readonly type: "object";
|
|
31
|
+
readonly properties: {
|
|
32
|
+
readonly text: {
|
|
33
|
+
readonly type: "string";
|
|
34
|
+
readonly title: "Text";
|
|
35
|
+
readonly description: "Text content (for text, markdown, html formats)";
|
|
36
|
+
};
|
|
37
|
+
readonly json: {
|
|
38
|
+
readonly title: "JSON";
|
|
39
|
+
readonly description: "Parsed JSON object or array";
|
|
40
|
+
};
|
|
41
|
+
readonly csv: {
|
|
42
|
+
readonly type: "array";
|
|
43
|
+
readonly title: "CSV";
|
|
44
|
+
readonly description: "Parsed CSV data as array of objects";
|
|
45
|
+
};
|
|
46
|
+
readonly image: {
|
|
47
|
+
readonly type: "string";
|
|
48
|
+
readonly title: "Image";
|
|
49
|
+
readonly description: "Base64 data URL for image files";
|
|
50
|
+
readonly format: "image:data-uri";
|
|
51
|
+
};
|
|
52
|
+
readonly pdf: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly title: "PDF";
|
|
55
|
+
readonly description: "Base64 data URL for PDF files";
|
|
56
|
+
};
|
|
57
|
+
readonly metadata: {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly url: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
};
|
|
63
|
+
readonly format: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly size: {
|
|
67
|
+
readonly type: "number";
|
|
68
|
+
};
|
|
69
|
+
readonly title: {
|
|
70
|
+
readonly type: "string";
|
|
71
|
+
};
|
|
72
|
+
readonly mimeType: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
readonly additionalProperties: false;
|
|
77
|
+
readonly title: "Metadata";
|
|
78
|
+
readonly description: "File metadata";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
readonly required: readonly ["metadata"];
|
|
82
|
+
readonly additionalProperties: false;
|
|
83
|
+
};
|
|
84
|
+
export type FileLoaderTaskInput = FromSchema<typeof inputSchema>;
|
|
85
|
+
export type FileLoaderTaskOutput = FromSchema<typeof outputSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Task for loading documents from URLs (including file:// URLs).
|
|
88
|
+
* Works in all environments (browser, Node.js, Bun) by using fetch API.
|
|
89
|
+
* For server-only filesystem path access, see FileLoaderServerTask.
|
|
90
|
+
*/
|
|
91
|
+
export declare class FileLoaderTask extends Task<FileLoaderTaskInput, FileLoaderTaskOutput, JobQueueTaskConfig> {
|
|
92
|
+
static type: string;
|
|
93
|
+
static category: string;
|
|
94
|
+
static title: string;
|
|
95
|
+
static description: string;
|
|
96
|
+
static cacheable: boolean;
|
|
97
|
+
static inputSchema(): DataPortSchema;
|
|
98
|
+
static outputSchema(): DataPortSchema;
|
|
99
|
+
execute(input: FileLoaderTaskInput, context: IExecuteContext): Promise<FileLoaderTaskOutput>;
|
|
100
|
+
/**
|
|
101
|
+
* Parse JSON content
|
|
102
|
+
*/
|
|
103
|
+
protected parseJsonContent(content: string): unknown;
|
|
104
|
+
/**
|
|
105
|
+
* Parse CSV content into array of objects
|
|
106
|
+
*/
|
|
107
|
+
protected parseCsvContent(content: string): Array<Record<string, string>>;
|
|
108
|
+
/**
|
|
109
|
+
* Parse the fetch response into typed outputs
|
|
110
|
+
*/
|
|
111
|
+
protected parseResponse(response: FetchUrlTaskOutput, url: string, detectedFormat: "text" | "markdown" | "json" | "csv" | "pdf" | "image" | "html"): Promise<{
|
|
112
|
+
readonly text: string | undefined;
|
|
113
|
+
readonly json: unknown | undefined;
|
|
114
|
+
readonly csv: Array<Record<string, string>> | undefined;
|
|
115
|
+
readonly image: string | undefined;
|
|
116
|
+
readonly pdf: string | undefined;
|
|
117
|
+
readonly size: number;
|
|
118
|
+
readonly mimeType: string;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* Detect the appropriate response type for fetching based on the detected format
|
|
122
|
+
* @param detectedFormat - The detected format
|
|
123
|
+
* @returns The appropriate response type
|
|
124
|
+
*/
|
|
125
|
+
protected detectResponseType(detectedFormat: string): "text" | "json" | "blob" | "arraybuffer";
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @param url - The URL to detect the format from
|
|
129
|
+
* @param format - The format (assuming "auto" if not provided)
|
|
130
|
+
* @returns
|
|
131
|
+
*/
|
|
132
|
+
protected detectFormat(url: string, format: "text" | "markdown" | "json" | "csv" | "pdf" | "image" | "html" | "auto"): "text" | "markdown" | "json" | "csv" | "pdf" | "image" | "html";
|
|
133
|
+
/**
|
|
134
|
+
* Get image MIME type based on URL extension
|
|
135
|
+
*/
|
|
136
|
+
protected getImageMimeType(url: string): string;
|
|
137
|
+
/**
|
|
138
|
+
* Convert Blob to base64 data URL
|
|
139
|
+
*/
|
|
140
|
+
protected blobToBase64DataURL(blob: Blob, mimeType: string): Promise<string>;
|
|
141
|
+
}
|
|
142
|
+
export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
143
|
+
text?: string | undefined;
|
|
144
|
+
json?: unknown;
|
|
145
|
+
csv?: unknown[] | undefined;
|
|
146
|
+
pdf?: string | undefined;
|
|
147
|
+
image?: string | undefined;
|
|
148
|
+
metadata: {
|
|
149
|
+
format?: string | undefined;
|
|
150
|
+
title?: string | undefined;
|
|
151
|
+
url?: string | undefined;
|
|
152
|
+
size?: number | undefined;
|
|
153
|
+
mimeType?: string | undefined;
|
|
154
|
+
};
|
|
155
|
+
}>;
|
|
156
|
+
declare module "@workglow/task-graph" {
|
|
157
|
+
interface Workflow {
|
|
158
|
+
fileLoader: CreateWorkflow<FileLoaderTaskInput, FileLoaderTaskOutput, JobQueueTaskConfig>;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
export {};
|
|
162
|
+
//# sourceMappingURL=FileLoaderTask.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CiB,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEnE;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,IAAI,CACtC,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,CACnB;IACC,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAc;IACpC,OAAc,KAAK,SAAiB;IACpC,OAAc,WAAW,SAAkD;IAC3E,OAAc,SAAS,UAAQ;WAEjB,WAAW,IAAI,cAA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,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM;IAsBlE;;OAEG;IACH,SAAS,CAAC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAY/C;;OAEG;cACa,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAwBnF;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"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FileLoaderTask as BaseFileLoaderTask, FileLoaderTaskInput, FileLoaderTaskOutput } from "./FileLoaderTask";
|
|
8
|
+
export type { FileLoaderTaskInput, FileLoaderTaskOutput };
|
|
9
|
+
/**
|
|
10
|
+
* Server-only task for loading documents from the filesystem.
|
|
11
|
+
* Uses Node.js/Bun file APIs directly for better performance.
|
|
12
|
+
* Only available in Node.js and Bun environments.
|
|
13
|
+
*
|
|
14
|
+
* For cross-platform document loading (including browser), use FileLoaderTask with URLs.
|
|
15
|
+
*/
|
|
16
|
+
export declare class FileLoaderTask extends BaseFileLoaderTask {
|
|
17
|
+
execute(input: FileLoaderTaskInput, context: IExecuteContext): Promise<FileLoaderTaskOutput>;
|
|
18
|
+
}
|
|
19
|
+
export declare const fileLoader: (input: FileLoaderTaskInput, config?: JobQueueTaskConfig) => Promise<{
|
|
20
|
+
text?: string | undefined;
|
|
21
|
+
json?: unknown;
|
|
22
|
+
csv?: unknown[] | undefined;
|
|
23
|
+
pdf?: string | undefined;
|
|
24
|
+
image?: string | undefined;
|
|
25
|
+
metadata: {
|
|
26
|
+
format?: string | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
url?: string | undefined;
|
|
29
|
+
size?: number | undefined;
|
|
30
|
+
mimeType?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
}>;
|
|
33
|
+
declare module "@workglow/task-graph" {
|
|
34
|
+
interface Workflow {
|
|
35
|
+
fileLoader: CreateWorkflow<FileLoaderTaskInput, FileLoaderTaskOutput, JobQueueTaskConfig>;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=FileLoaderTask.server.d.ts.map
|
|
@@ -0,0 +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;CAiLjC;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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright
|
|
3
|
+
* Copyright 2025 Steven Roussey
|
|
4
|
+
* All Rights Reserved
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import type { DataPortSchema } from "@workglow/util";
|
|
8
|
+
export type InputTaskInput = Record<string, unknown>;
|
|
9
|
+
export type InputTaskOutput = Record<string, unknown>;
|
|
10
|
+
export type InputTaskConfig = TaskConfig & {
|
|
11
|
+
readonly schema: DataPortSchema;
|
|
12
|
+
};
|
|
13
|
+
export declare class InputTask extends Task<InputTaskInput, InputTaskOutput, InputTaskConfig> {
|
|
14
|
+
static type: string;
|
|
15
|
+
static category: string;
|
|
16
|
+
static title: string;
|
|
17
|
+
static description: string;
|
|
18
|
+
static hasDynamicSchemas: boolean;
|
|
19
|
+
static cacheable: boolean;
|
|
20
|
+
static inputSchema(): DataPortSchema;
|
|
21
|
+
static outputSchema(): DataPortSchema;
|
|
22
|
+
inputSchema(): DataPortSchema;
|
|
23
|
+
outputSchema(): DataPortSchema;
|
|
24
|
+
execute(input: InputTaskInput): Promise<InputTaskOutput>;
|
|
25
|
+
executeReactive(input: InputTaskInput): Promise<InputTaskOutput>;
|
|
26
|
+
}
|
|
27
|
+
declare module "@workglow/task-graph" {
|
|
28
|
+
interface Workflow {
|
|
29
|
+
input: CreateWorkflow<InputTaskInput, InputTaskOutput, InputTaskConfig>;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=InputTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputTask.d.ts","sourceRoot":"","sources":["../../src/task/InputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAClF,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,GAAG;IACzC,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,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;IAO7B,YAAY,IAAI,cAAc;IAOxB,OAAO,CAAC,KAAK,EAAE,cAAc;IAI7B,eAAe,CAAC,KAAK,EAAE,cAAc;CAGnD;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
|
|
@@ -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,EAAY,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5D,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;AAEnE,qBAAa,cAAe,SAAQ,IAAI,CAAC,mBAAmB,EAAE,oBAAoB,CAAC;IACjF,OAAc,IAAI,SAAoB;IACtC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAA4B;IAC/C,OAAc,WAAW,SAAqE;WAEhF,WAAW;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;IAIpB,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"}
|
package/dist/task/JsonTask.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export type JsonTaskOutput = FromSchema<typeof outputSchema>;
|
|
|
35
35
|
export declare class JsonTask<Input extends JsonTaskInput = JsonTaskInput, Output extends JsonTaskOutput = JsonTaskOutput, Config extends TaskConfig = TaskConfig> extends GraphAsTask<Input, Output, Config> {
|
|
36
36
|
static type: string;
|
|
37
37
|
static category: string;
|
|
38
|
+
static title: string;
|
|
39
|
+
static description: string;
|
|
38
40
|
static inputSchema(): {
|
|
39
41
|
readonly type: "object";
|
|
40
42
|
readonly properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,cAAc,EAEd,WAAW,EAEX,UAAU,
|
|
1
|
+
{"version":3,"file":"JsonTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,cAAc,EAEd,WAAW,EAEX,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;CAUkB,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,QAAA,MAAM,YAAY;;;;;;;;;CASiB,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE7D;;;GAGG;AACH,qBAAa,QAAQ,CACnB,KAAK,SAAS,aAAa,GAAG,aAAa,EAC3C,MAAM,SAAS,cAAc,GAAG,cAAc,EAC9C,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IAC1C,OAAc,IAAI,SAAc;IAChC,OAAc,QAAQ,SAAY;IAClC,OAAc,KAAK,SAAe;IAClC,OAAc,WAAW,SACgD;WAE3D,WAAW;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;IAI1B;;;OAGG;IACI,eAAe;CA0BvB;AAED;;GAEG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,aAAa,EAAE,SAAQ,UAAe;;EAEjE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,IAAI,EAAE,cAAc,CAAC,aAAa,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;KACjE;CACF"}
|
|
@@ -3,41 +3,22 @@
|
|
|
3
3
|
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
|
-
import { IExecuteContext, IExecuteReactiveContext, Task, TaskConfig, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
7
|
-
import { FromSchema } from "@workglow/util";
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, IExecuteReactiveContext, Task, TaskConfig, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
8
7
|
interface LambdaTaskConfig<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput> extends TaskConfig {
|
|
9
8
|
execute?: (input: Input, context: IExecuteContext) => Promise<Output>;
|
|
10
9
|
executeReactive?: (input: Input, output: Output, context: IExecuteReactiveContext) => Promise<Output>;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
readonly properties: {
|
|
15
|
-
readonly "*": {
|
|
16
|
-
readonly title: "Input";
|
|
17
|
-
readonly description: "Input data to pass to the function";
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
readonly additionalProperties: true;
|
|
21
|
-
};
|
|
22
|
-
declare const outputSchema: {
|
|
23
|
-
readonly type: "object";
|
|
24
|
-
readonly properties: {
|
|
25
|
-
readonly "*": {
|
|
26
|
-
readonly title: "Output";
|
|
27
|
-
readonly description: "The output from the execute function";
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
readonly additionalProperties: true;
|
|
31
|
-
};
|
|
32
|
-
export type LambdaTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
-
export type LambdaTaskOutput = FromSchema<typeof outputSchema>;
|
|
11
|
+
export type LambdaTaskInput = Record<string, any>;
|
|
12
|
+
export type LambdaTaskOutput = Record<string, any>;
|
|
34
13
|
/**
|
|
35
14
|
* LambdaTask provides a way to execute arbitrary functions within the task framework
|
|
36
15
|
* It wraps a provided function and its input into a task that can be integrated
|
|
37
16
|
* into task graphs and workflows
|
|
38
17
|
*/
|
|
39
|
-
export declare class LambdaTask<Input extends TaskInput =
|
|
18
|
+
export declare class LambdaTask<Input extends TaskInput = LambdaTaskInput, Output extends TaskOutput = LambdaTaskOutput, Config extends LambdaTaskConfig<Input, Output> = LambdaTaskConfig<Input, Output>> extends Task<Input, Output, Config> {
|
|
40
19
|
static type: string;
|
|
20
|
+
static title: string;
|
|
21
|
+
static description: string;
|
|
41
22
|
static category: string;
|
|
42
23
|
static cacheable: boolean;
|
|
43
24
|
static inputSchema(): {
|
|
@@ -78,7 +59,7 @@ export declare function lambda<I extends TaskInput, O extends TaskOutput>(fn: (i
|
|
|
78
59
|
export declare function lambda<I extends TaskInput, O extends TaskOutput>(input: I, config?: LambdaTaskConfig<I, O>): Promise<TaskOutput>;
|
|
79
60
|
declare module "@workglow/task-graph" {
|
|
80
61
|
interface Workflow {
|
|
81
|
-
lambda: <
|
|
62
|
+
lambda: CreateWorkflow<LambdaTaskInput, LambdaTaskOutput, LambdaTaskConfig<LambdaTaskInput, LambdaTaskOutput>>;
|
|
82
63
|
}
|
|
83
64
|
}
|
|
84
65
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LambdaTask.d.ts","sourceRoot":"","sources":["../../src/task/LambdaTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
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,EAEV,SAAS,EACT,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAG9B,UAAU,gBAAgB,CACxB,KAAK,SAAS,SAAS,GAAG,SAAS,EACnC,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,UAAU;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO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AAO,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MergeTask.d.ts","sourceRoot":"","sources":["../../src/task/MergeTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"MergeTask.d.ts","sourceRoot":"","sources":["../../src/task/MergeTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;CAIkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,qBAAa,SAAS,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,MAAM,SAAS,eAAe,GAAG,eAAe,EAChD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,OAAc,IAAI,SAAe;IACjC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAAuD;IAChF,MAAM,CAAC,QAAQ,CAAC,SAAS,QAAQ;WAEnB,WAAW;;;;;WAIX,YAAY;;;;;;;;;;;IAIpB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAWvE;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,cAAc,EAAE,SAAQ,UAAe;;EAGnE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;KACpE;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright
|
|
3
|
+
* Copyright 2025 Steven Roussey
|
|
4
|
+
* All Rights Reserved
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import type { DataPortSchema } from "@workglow/util";
|
|
8
|
+
export type OutputTaskInput = Record<string, unknown>;
|
|
9
|
+
export type OutputTaskOutput = Record<string, unknown>;
|
|
10
|
+
export type OutputTaskConfig = TaskConfig & {
|
|
11
|
+
readonly schema: DataPortSchema;
|
|
12
|
+
};
|
|
13
|
+
export declare class OutputTask extends Task<OutputTaskInput, OutputTaskOutput, OutputTaskConfig> {
|
|
14
|
+
static type: string;
|
|
15
|
+
static category: string;
|
|
16
|
+
static title: string;
|
|
17
|
+
static description: string;
|
|
18
|
+
static hasDynamicSchemas: boolean;
|
|
19
|
+
static cacheable: boolean;
|
|
20
|
+
static inputSchema(): DataPortSchema;
|
|
21
|
+
static outputSchema(): DataPortSchema;
|
|
22
|
+
inputSchema(): DataPortSchema;
|
|
23
|
+
outputSchema(): DataPortSchema;
|
|
24
|
+
execute(input: OutputTaskInput): Promise<OutputTaskOutput>;
|
|
25
|
+
executeReactive(input: OutputTaskInput): Promise<OutputTaskOutput>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Module augmentation to register task type in the workflow system
|
|
29
|
+
*/
|
|
30
|
+
declare module "@workglow/task-graph" {
|
|
31
|
+
interface Workflow {
|
|
32
|
+
output: CreateWorkflow<OutputTaskInput, OutputTaskOutput, OutputTaskConfig>;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=OutputTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OutputTask.d.ts","sourceRoot":"","sources":["../../src/task/OutputTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAClF,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,GAAG;IAC1C,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,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;IAO7B,YAAY,IAAI,cAAc;IAOxB,OAAO,CAAC,KAAK,EAAE,eAAe;IAI9B,eAAe,CAAC,KAAK,EAAE,eAAe;CAGpD;AAED;;GAEG;AACH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,MAAM,EAAE,cAAc,CAAC,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;KAC7E;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitTask.d.ts","sourceRoot":"","sources":["../../src/task/SplitTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"SplitTask.d.ts","sourceRoot":"","sources":["../../src/task/SplitTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;CASkB,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;;;;;;;;;;;;;;GAcG;AACH,qBAAa,SAAS,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,MAAM,SAAS,eAAe,GAAG,eAAe,EAChD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,OAAc,IAAI,SAAe;IACjC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SACoD;IAC7E,MAAM,CAAC,iBAAiB,UAAQ;IAChC,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;WAEpB,WAAW;;;;;;;;;;WAIX,YAAY;;;;;IAInB,YAAY,IAAI,cAAc;IAI/B,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAgBrD;AAED,eAAO,MAAM,KAAK,GAAI,OAAO,cAAc,EAAE,SAAQ,UAAe;;EAGnE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;KACpE;CACF"}
|
package/dist/types.d.ts
CHANGED
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC"}
|