@workglow/tasks 0.0.99 → 0.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -40
- package/dist/browser.js +56 -32
- package/dist/browser.js.map +8 -8
- package/dist/bun.js +56 -32
- package/dist/bun.js.map +8 -8
- package/dist/node.js +56 -32
- package/dist/node.js.map +8 -8
- package/dist/task/DebugLogTask.d.ts +23 -49
- package/dist/task/DebugLogTask.d.ts.map +1 -1
- package/dist/task/DelayTask.d.ts +16 -29
- package/dist/task/DelayTask.d.ts.map +1 -1
- package/dist/task/InputTask.d.ts +1 -3
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/LambdaTask.d.ts +36 -2
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts +1 -3
- package/dist/task/OutputTask.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -4,33 +4,22 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { CreateWorkflow, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
-
import { FromSchema } from "@workglow/util";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
declare const log_levels: readonly ["dir", "log", "debug", "info", "warn", "error"];
|
|
9
|
+
type LogLevel = (typeof log_levels)[number];
|
|
10
|
+
export type DebugLogTaskConfig = TaskConfig & {
|
|
11
|
+
/** Log level to use for output */
|
|
12
|
+
log_level?: LogLevel;
|
|
13
|
+
};
|
|
8
14
|
declare const inputSchema: {
|
|
9
15
|
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
|
|
12
|
-
readonly title: "Message";
|
|
13
|
-
readonly description: "The message to log";
|
|
14
|
-
};
|
|
15
|
-
readonly log_level: {
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
readonly enum: readonly ["dir", "log", "debug", "info", "warn", "error"];
|
|
18
|
-
readonly title: "Log Level";
|
|
19
|
-
readonly description: "The log level to use";
|
|
20
|
-
readonly default: "log";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
readonly additionalProperties: false;
|
|
16
|
+
readonly properties: {};
|
|
17
|
+
readonly additionalProperties: true;
|
|
24
18
|
};
|
|
25
19
|
declare const outputSchema: {
|
|
26
20
|
readonly type: "object";
|
|
27
|
-
readonly properties: {
|
|
28
|
-
|
|
29
|
-
readonly title: "Messages";
|
|
30
|
-
readonly description: "The messages logged by the task";
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
readonly additionalProperties: false;
|
|
21
|
+
readonly properties: {};
|
|
22
|
+
readonly additionalProperties: true;
|
|
34
23
|
};
|
|
35
24
|
export type DebugLogTaskInput = FromSchema<typeof inputSchema>;
|
|
36
25
|
export type DebugLogTaskOutput = FromSchema<typeof outputSchema>;
|
|
@@ -38,54 +27,39 @@ export type DebugLogTaskOutput = FromSchema<typeof outputSchema>;
|
|
|
38
27
|
* DebugLogTask provides console logging functionality as a task within the system.
|
|
39
28
|
*
|
|
40
29
|
* Features:
|
|
41
|
-
* - Supports multiple log levels (info, warn, error, dir)
|
|
42
|
-
* - Passes through
|
|
30
|
+
* - Supports multiple log levels (info, warn, error, dir) via config
|
|
31
|
+
* - Passes through all inputs as outputs unchanged
|
|
43
32
|
* - Configurable logging format and depth
|
|
44
33
|
*
|
|
45
34
|
* This task is particularly useful for debugging task graphs and monitoring
|
|
46
35
|
* data flow between tasks during development and testing.
|
|
47
36
|
*/
|
|
48
|
-
export declare class DebugLogTask<Input extends DebugLogTaskInput = DebugLogTaskInput, Output extends DebugLogTaskOutput = DebugLogTaskOutput
|
|
37
|
+
export declare class DebugLogTask<Input extends DebugLogTaskInput = DebugLogTaskInput, Output extends DebugLogTaskOutput = DebugLogTaskOutput> extends Task<Input, Output, DebugLogTaskConfig> {
|
|
49
38
|
static type: string;
|
|
50
39
|
static category: string;
|
|
51
40
|
static title: string;
|
|
52
41
|
static description: string;
|
|
53
42
|
static readonly cacheable = false;
|
|
43
|
+
static passthroughInputsToOutputs: boolean;
|
|
44
|
+
static configSchema(): DataPortSchema;
|
|
54
45
|
static inputSchema(): {
|
|
55
46
|
readonly type: "object";
|
|
56
|
-
readonly properties: {
|
|
57
|
-
|
|
58
|
-
readonly title: "Message";
|
|
59
|
-
readonly description: "The message to log";
|
|
60
|
-
};
|
|
61
|
-
readonly log_level: {
|
|
62
|
-
readonly type: "string";
|
|
63
|
-
readonly enum: readonly ["dir", "log", "debug", "info", "warn", "error"];
|
|
64
|
-
readonly title: "Log Level";
|
|
65
|
-
readonly description: "The log level to use";
|
|
66
|
-
readonly default: "log";
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
readonly additionalProperties: false;
|
|
47
|
+
readonly properties: {};
|
|
48
|
+
readonly additionalProperties: true;
|
|
70
49
|
};
|
|
71
50
|
static outputSchema(): {
|
|
72
51
|
readonly type: "object";
|
|
73
|
-
readonly properties: {
|
|
74
|
-
|
|
75
|
-
readonly title: "Messages";
|
|
76
|
-
readonly description: "The messages logged by the task";
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
readonly additionalProperties: false;
|
|
52
|
+
readonly properties: {};
|
|
53
|
+
readonly additionalProperties: true;
|
|
80
54
|
};
|
|
81
55
|
executeReactive(input: Input, output: Output): Promise<Output>;
|
|
82
56
|
}
|
|
83
|
-
export declare const debugLog: (input: DebugLogTaskInput, config?:
|
|
84
|
-
|
|
57
|
+
export declare const debugLog: (input: DebugLogTaskInput, config?: DebugLogTaskConfig) => Promise<{
|
|
58
|
+
[x: string]: unknown;
|
|
85
59
|
}>;
|
|
86
60
|
declare module "@workglow/task-graph" {
|
|
87
61
|
interface Workflow {
|
|
88
|
-
debugLog: CreateWorkflow<DebugLogTaskInput, DebugLogTaskOutput,
|
|
62
|
+
debugLog: CreateWorkflow<DebugLogTaskInput, DebugLogTaskOutput, DebugLogTaskConfig>;
|
|
89
63
|
}
|
|
90
64
|
}
|
|
91
65
|
export {};
|
|
@@ -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,
|
|
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,OAAc,0BAA0B,UAAQ;WAElC,YAAY,IAAI,cAAc;WAI9B,WAAW;;;;;WAIX,YAAY;;;;;IAIpB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;CAWnD;AAED,eAAO,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
|
@@ -4,21 +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";
|
|
7
|
+
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
8
|
+
export type DelayTaskConfig = TaskConfig & {
|
|
9
|
+
/** Delay duration in milliseconds */
|
|
10
|
+
delay: number;
|
|
11
|
+
};
|
|
8
12
|
declare const inputSchema: {
|
|
9
13
|
readonly type: "object";
|
|
10
|
-
readonly properties: {
|
|
11
|
-
|
|
12
|
-
readonly type: "number";
|
|
13
|
-
readonly title: "Delay (ms)";
|
|
14
|
-
readonly default: 1;
|
|
15
|
-
};
|
|
16
|
-
readonly pass_through: {
|
|
17
|
-
readonly title: "Pass Through";
|
|
18
|
-
readonly description: "Pass through data to the output";
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
readonly additionalProperties: false;
|
|
14
|
+
readonly properties: {};
|
|
15
|
+
readonly additionalProperties: true;
|
|
22
16
|
};
|
|
23
17
|
declare const outputSchema: {
|
|
24
18
|
readonly type: "object";
|
|
@@ -27,25 +21,18 @@ declare const outputSchema: {
|
|
|
27
21
|
};
|
|
28
22
|
export type DelayTaskInput = FromSchema<typeof inputSchema>;
|
|
29
23
|
export type DelayTaskOutput = FromSchema<typeof outputSchema>;
|
|
30
|
-
export declare class DelayTask<Input extends DelayTaskInput = DelayTaskInput, Output extends DelayTaskOutput = DelayTaskOutput
|
|
24
|
+
export declare class DelayTask<Input extends DelayTaskInput = DelayTaskInput, Output extends DelayTaskOutput = DelayTaskOutput> extends Task<Input, Output, DelayTaskConfig> {
|
|
31
25
|
static readonly type = "DelayTask";
|
|
32
26
|
static readonly category = "Utility";
|
|
33
27
|
static title: string;
|
|
34
28
|
static description: string;
|
|
29
|
+
static readonly cacheable = false;
|
|
30
|
+
static passthroughInputsToOutputs: boolean;
|
|
31
|
+
static configSchema(): DataPortSchema;
|
|
35
32
|
static inputSchema(): {
|
|
36
33
|
readonly type: "object";
|
|
37
|
-
readonly properties: {
|
|
38
|
-
|
|
39
|
-
readonly type: "number";
|
|
40
|
-
readonly title: "Delay (ms)";
|
|
41
|
-
readonly default: 1;
|
|
42
|
-
};
|
|
43
|
-
readonly pass_through: {
|
|
44
|
-
readonly title: "Pass Through";
|
|
45
|
-
readonly description: "Pass through data to the output";
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
readonly additionalProperties: false;
|
|
34
|
+
readonly properties: {};
|
|
35
|
+
readonly additionalProperties: true;
|
|
49
36
|
};
|
|
50
37
|
static outputSchema(): {
|
|
51
38
|
readonly type: "object";
|
|
@@ -59,14 +46,14 @@ export declare class DelayTask<Input extends DelayTaskInput = DelayTaskInput, Ou
|
|
|
59
46
|
*
|
|
60
47
|
* Delays the execution of a task for a specified amount of time
|
|
61
48
|
*
|
|
62
|
-
* @param
|
|
49
|
+
* @param config - Task configuration; use `config.delay` for the delay in milliseconds
|
|
63
50
|
*/
|
|
64
|
-
export declare const delay: (input: DelayTaskInput, config?:
|
|
51
|
+
export declare const delay: (input: DelayTaskInput, config?: DelayTaskConfig) => Promise<{
|
|
65
52
|
[x: string]: unknown;
|
|
66
53
|
}>;
|
|
67
54
|
declare module "@workglow/task-graph" {
|
|
68
55
|
interface Workflow {
|
|
69
|
-
delay: CreateWorkflow<DelayTaskInput, DelayTaskOutput,
|
|
56
|
+
delay: CreateWorkflow<DelayTaskInput, DelayTaskOutput, DelayTaskConfig>;
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
59
|
export {};
|
|
@@ -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,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;CACf,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;WAElC,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"}
|
package/dist/task/InputTask.d.ts
CHANGED
|
@@ -7,9 +7,7 @@ import { CreateWorkflow, Task, TaskConfig, type IExecuteContext, type StreamEven
|
|
|
7
7
|
import type { DataPortSchema } from "@workglow/util";
|
|
8
8
|
export type InputTaskInput = Record<string, unknown>;
|
|
9
9
|
export type InputTaskOutput = Record<string, unknown>;
|
|
10
|
-
export type InputTaskConfig = TaskConfig
|
|
11
|
-
readonly schema: DataPortSchema;
|
|
12
|
-
};
|
|
10
|
+
export type InputTaskConfig = TaskConfig;
|
|
13
11
|
export declare class InputTask extends Task<InputTaskInput, InputTaskOutput, InputTaskConfig> {
|
|
14
12
|
static type: string;
|
|
15
13
|
static category: string;
|
|
@@ -1 +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,KAAK,eAAe,EAAE,KAAK,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AAC7I,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,M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AAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
|
|
@@ -4,10 +4,43 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { CreateWorkflow, IExecuteContext, IExecuteReactiveContext, Task, TaskConfig, TaskInput, TaskOutput } from "@workglow/task-graph";
|
|
7
|
-
|
|
7
|
+
import { DataPortSchema } from "@workglow/util";
|
|
8
|
+
export declare const lambdaTaskConfigSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly execute: {};
|
|
12
|
+
readonly executeReactive: {};
|
|
13
|
+
readonly id: {};
|
|
14
|
+
readonly title: {
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
};
|
|
17
|
+
readonly description: {
|
|
18
|
+
readonly type: "string";
|
|
19
|
+
};
|
|
20
|
+
readonly cacheable: {
|
|
21
|
+
readonly type: "boolean";
|
|
22
|
+
};
|
|
23
|
+
readonly inputSchema: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {};
|
|
26
|
+
readonly additionalProperties: true;
|
|
27
|
+
};
|
|
28
|
+
readonly outputSchema: {
|
|
29
|
+
readonly type: "object";
|
|
30
|
+
readonly properties: {};
|
|
31
|
+
readonly additionalProperties: true;
|
|
32
|
+
};
|
|
33
|
+
readonly extras: {
|
|
34
|
+
readonly type: "object";
|
|
35
|
+
readonly additionalProperties: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
readonly additionalProperties: false;
|
|
39
|
+
};
|
|
40
|
+
type LambdaTaskConfig<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput> = TaskConfig & {
|
|
8
41
|
execute?: (input: Input, context: IExecuteContext) => Promise<Output>;
|
|
9
42
|
executeReactive?: (input: Input, output: Output, context: IExecuteReactiveContext) => Promise<Output>;
|
|
10
|
-
}
|
|
43
|
+
};
|
|
11
44
|
export type LambdaTaskInput = Record<string, any>;
|
|
12
45
|
export type LambdaTaskOutput = Record<string, any>;
|
|
13
46
|
/**
|
|
@@ -21,6 +54,7 @@ export declare class LambdaTask<Input extends TaskInput = LambdaTaskInput, Outpu
|
|
|
21
54
|
static description: string;
|
|
22
55
|
static category: string;
|
|
23
56
|
static cacheable: boolean;
|
|
57
|
+
static configSchema(): DataPortSchema;
|
|
24
58
|
static inputSchema(): {
|
|
25
59
|
readonly type: "object";
|
|
26
60
|
readonly properties: {
|
|
@@ -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,
|
|
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,MAA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K,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"}
|
|
@@ -7,9 +7,7 @@ import { CreateWorkflow, Task, TaskConfig, type IExecuteContext, type StreamEven
|
|
|
7
7
|
import type { DataPortSchema } from "@workglow/util";
|
|
8
8
|
export type OutputTaskInput = Record<string, unknown>;
|
|
9
9
|
export type OutputTaskOutput = Record<string, unknown>;
|
|
10
|
-
export type OutputTaskConfig = TaskConfig
|
|
11
|
-
readonly schema: DataPortSchema;
|
|
12
|
-
};
|
|
10
|
+
export type OutputTaskConfig = TaskConfig;
|
|
13
11
|
export declare class OutputTask extends Task<OutputTaskInput, OutputTaskOutput, OutputTaskConfig> {
|
|
14
12
|
static type: string;
|
|
15
13
|
static category: string;
|
|
@@ -1 +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,KAAK,eAAe,EAAE,KAAK,WAAW,EAAqB,MAAM,sBAAsB,CAAC;AAC7I,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACtD,MAAM,MAAM,gBAAgB,GAA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E,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;KAC7E;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workglow/tasks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.101",
|
|
5
5
|
"description": "Pre-built task implementations for Workglow, including common AI operations and utility functions.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"watch": "concurrently -c 'auto' 'bun:watch-*'",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@workglow/task-graph": "0.0.
|
|
40
|
-
"@workglow/util": "0.0.
|
|
41
|
-
"@workglow/job-queue": "0.0.
|
|
42
|
-
"@workglow/storage": "0.0.
|
|
39
|
+
"@workglow/task-graph": "0.0.101",
|
|
40
|
+
"@workglow/util": "0.0.101",
|
|
41
|
+
"@workglow/job-queue": "0.0.101",
|
|
42
|
+
"@workglow/storage": "0.0.101"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@workglow/task-graph": {
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/papaparse": "^5.5.2",
|
|
60
|
-
"@workglow/job-queue": "0.0.
|
|
61
|
-
"@workglow/storage": "0.0.
|
|
62
|
-
"@workglow/task-graph": "0.0.
|
|
63
|
-
"@workglow/util": "0.0.
|
|
60
|
+
"@workglow/job-queue": "0.0.101",
|
|
61
|
+
"@workglow/storage": "0.0.101",
|
|
62
|
+
"@workglow/task-graph": "0.0.101",
|
|
63
|
+
"@workglow/util": "0.0.101"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"papaparse": "^5.5.3"
|