@workglow/tasks 0.0.100 → 0.0.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- readonly console: {
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
- readonly console: {
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,40 @@ 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 the logged message as output
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, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
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 customizable: boolean;
45
+ static configSchema(): DataPortSchema;
54
46
  static inputSchema(): {
55
47
  readonly type: "object";
56
- readonly properties: {
57
- readonly console: {
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;
48
+ readonly properties: {};
49
+ readonly additionalProperties: true;
70
50
  };
71
51
  static outputSchema(): {
72
52
  readonly type: "object";
73
- readonly properties: {
74
- readonly console: {
75
- readonly title: "Messages";
76
- readonly description: "The messages logged by the task";
77
- };
78
- };
79
- readonly additionalProperties: false;
53
+ readonly properties: {};
54
+ readonly additionalProperties: true;
80
55
  };
81
56
  executeReactive(input: Input, output: Output): Promise<Output>;
82
57
  }
83
- export declare const debugLog: (input: DebugLogTaskInput, config?: TaskConfig) => Promise<{
84
- console?: unknown;
58
+ export declare const debugLog: (input: DebugLogTaskInput, config?: DebugLogTaskConfig) => Promise<{
59
+ [x: string]: unknown;
85
60
  }>;
86
61
  declare module "@workglow/task-graph" {
87
62
  interface Workflow {
88
- debugLog: CreateWorkflow<DebugLogTaskInput, DebugLogTaskOutput, TaskConfig>;
63
+ debugLog: CreateWorkflow<DebugLogTaskInput, DebugLogTaskOutput, DebugLogTaskConfig>;
89
64
  }
90
65
  }
91
66
  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,EAAY,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAM5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;CAgBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;CASiB,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,EACtD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,OAAc,IAAI,SAAkB;IACpC,OAAc,QAAQ,SAAa;IACnC,OAAc,KAAK,SAAe;IAClC,OAAc,WAAW,SAC+D;IACxF,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;WAEpB,WAAW;;;;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;IAIpB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;CAUnD;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,iBAAiB,EAAE,SAAQ,UAAe;;EAGzE,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,QAAQ,EAAE,cAAc,CAAC,i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E,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"}
@@ -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
- readonly delay: {
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,19 @@ 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, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
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 customizable: boolean;
32
+ static configSchema(): DataPortSchema;
35
33
  static inputSchema(): {
36
34
  readonly type: "object";
37
- readonly properties: {
38
- readonly delay: {
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;
35
+ readonly properties: {};
36
+ readonly additionalProperties: true;
49
37
  };
50
38
  static outputSchema(): {
51
39
  readonly type: "object";
@@ -59,14 +47,14 @@ export declare class DelayTask<Input extends DelayTaskInput = DelayTaskInput, Ou
59
47
  *
60
48
  * Delays the execution of a task for a specified amount of time
61
49
  *
62
- * @param {delay} - The delay in milliseconds
50
+ * @param config - Task configuration; use `config.delay` for the delay in milliseconds
63
51
  */
64
- export declare const delay: (input: DelayTaskInput, config?: TaskConfig) => Promise<{
52
+ export declare const delay: (input: DelayTaskInput, config?: DelayTaskConfig) => Promise<{
65
53
  [x: string]: unknown;
66
54
  }>;
67
55
  declare module "@workglow/task-graph" {
68
56
  interface Workflow {
69
- delay: CreateWorkflow<DelayTaskInput, DelayTaskOutput, TaskConfig>;
57
+ delay: CreateWorkflow<DelayTaskInput, DelayTaskOutput, DelayTaskConfig>;
70
58
  }
71
59
  }
72
60
  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,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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pC,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE9D,qBAAa,SAAS,CACpB,KAAK,SAAS,cAAc,GAAG,cAAc,EAC7C,MAAM,SAAS,eAAe,GAAG,eAAe,CAChD,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,eAAe,CAAC;IAC5C,MAAM,CAAC,QAAQ,CAAC,IAAI,eAAe;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAAsE;IAC/F,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,OAAc,0BAA0B,UAAQ;IAChD,OAAc,YAAY,UAAQ;WAEpB,YAAY,IAAI,cAAc;IAI5C,MAAM,CAAC,WAAW;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAiB9E;AAED;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,cAAc,EAAE,SAAQ,eAA8B;;EAGlF,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,KAAK,EAAE,cAAc,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;KACzE;CACF"}
@@ -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,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;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"}
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,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;IAM7B,YAAY,IAAI,cAAc;IAMxB,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,57 @@ declare const outputSchema: {
32
32
  };
33
33
  export type JavaScriptTaskInput = FromSchema<typeof inputSchema>;
34
34
  export type JavaScriptTaskOutput = FromSchema<typeof outputSchema>;
35
- export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScriptTaskOutput> {
35
+ export type JavaScriptTaskConfig = TaskConfig & {
36
+ javascript_code?: string;
37
+ };
38
+ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScriptTaskOutput, JavaScriptTaskConfig> {
36
39
  static type: string;
37
40
  static category: string;
38
41
  static title: string;
39
42
  static description: string;
43
+ static customizable: boolean;
44
+ static configSchema(): {
45
+ readonly type: "object";
46
+ readonly properties: {
47
+ readonly javascript_code: {
48
+ readonly type: "string";
49
+ readonly title: "Code";
50
+ readonly minLength: 1;
51
+ readonly description: "JavaScript code to execute";
52
+ readonly format: "code:javascript";
53
+ };
54
+ readonly id: {
55
+ readonly "x-ui-hidden": true;
56
+ };
57
+ readonly title: {
58
+ readonly type: "string";
59
+ };
60
+ readonly description: {
61
+ readonly type: "string";
62
+ };
63
+ readonly cacheable: {
64
+ readonly type: "boolean";
65
+ };
66
+ readonly inputSchema: {
67
+ readonly type: "object";
68
+ readonly properties: {};
69
+ readonly additionalProperties: true;
70
+ readonly "x-ui-hidden": true;
71
+ };
72
+ readonly outputSchema: {
73
+ readonly type: "object";
74
+ readonly properties: {};
75
+ readonly additionalProperties: true;
76
+ readonly "x-ui-hidden": true;
77
+ };
78
+ readonly extras: {
79
+ readonly type: "object";
80
+ readonly additionalProperties: true;
81
+ readonly "x-ui-hidden": true;
82
+ };
83
+ };
84
+ readonly additionalProperties: false;
85
+ };
40
86
  static inputSchema(): {
41
87
  readonly type: "object";
42
88
  readonly properties: {
@@ -62,6 +108,21 @@ export declare class JavaScriptTask extends Task<JavaScriptTaskInput, JavaScript
62
108
  readonly required: readonly ["output"];
63
109
  readonly additionalProperties: false;
64
110
  };
111
+ constructor(input?: Partial<JavaScriptTaskInput>, config?: Partial<JavaScriptTaskConfig>);
112
+ inputSchema(): true | import("@workglow/util").DataPortSchemaObject<import("@workglow/util").JsonSchemaCustomProps> | {
113
+ readonly type: "object";
114
+ readonly properties: {
115
+ readonly javascript_code: {
116
+ readonly type: "string";
117
+ readonly title: "Code";
118
+ readonly minLength: 1;
119
+ readonly description: "JavaScript code to execute";
120
+ readonly format: "code:javascript";
121
+ };
122
+ };
123
+ readonly required: readonly ["javascript_code"];
124
+ readonly additionalProperties: true;
125
+ };
65
126
  executeReactive(input: JavaScriptTaskInput, output: JavaScriptTaskOutput): Promise<{
66
127
  output: unknown;
67
128
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"JavaScriptTask.d.ts","sourceRoot":"","sources":["../../src/task/JavaScriptTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,UAAU,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;IAC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AmB,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"}
@@ -4,10 +4,48 @@
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
- interface LambdaTaskConfig<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput> extends TaskConfig {
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 "x-ui-hidden": true;
15
+ };
16
+ readonly title: {
17
+ readonly type: "string";
18
+ };
19
+ readonly description: {
20
+ readonly type: "string";
21
+ };
22
+ readonly cacheable: {
23
+ readonly type: "boolean";
24
+ };
25
+ readonly inputSchema: {
26
+ readonly type: "object";
27
+ readonly properties: {};
28
+ readonly additionalProperties: true;
29
+ readonly "x-ui-hidden": true;
30
+ };
31
+ readonly outputSchema: {
32
+ readonly type: "object";
33
+ readonly properties: {};
34
+ readonly additionalProperties: true;
35
+ readonly "x-ui-hidden": true;
36
+ };
37
+ readonly extras: {
38
+ readonly type: "object";
39
+ readonly additionalProperties: true;
40
+ readonly "x-ui-hidden": true;
41
+ };
42
+ };
43
+ readonly additionalProperties: false;
44
+ };
45
+ type LambdaTaskConfig<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput> = TaskConfig & {
8
46
  execute?: (input: Input, context: IExecuteContext) => Promise<Output>;
9
47
  executeReactive?: (input: Input, output: Output, context: IExecuteReactiveContext) => Promise<Output>;
10
- }
48
+ };
11
49
  export type LambdaTaskInput = Record<string, any>;
12
50
  export type LambdaTaskOutput = Record<string, any>;
13
51
  /**
@@ -21,6 +59,7 @@ export declare class LambdaTask<Input extends TaskInput = LambdaTaskInput, Outpu
21
59
  static description: string;
22
60
  static category: string;
23
61
  static cacheable: boolean;
62
+ static configSchema(): DataPortSchema;
24
63
  static inputSchema(): {
25
64
  readonly type: "object";
26
65
  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,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,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;AAwBD,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAClD,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AACnD;;;;GAIG;AACH,qBAAa,UAAU,CACrB,KAAK,SAAS,SAAS,GAAG,eAAe,EACzC,MAAM,SAAS,UAAU,GAAG,gBAAgB,EAC5C,MAAM,SAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAChF,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,OAAc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glow/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,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;IAInD;;;;OAIG;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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
  };