@workglow/tasks 0.0.89 → 0.0.91
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 +1177 -88
- package/dist/browser.js.map +30 -8
- package/dist/bun.js +1177 -88
- package/dist/bun.js.map +30 -8
- package/dist/common.d.ts +43 -2
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +1177 -88
- package/dist/node.js.map +30 -8
- package/dist/task/ArrayTask.d.ts +1 -1
- package/dist/task/ArrayTask.d.ts.map +1 -1
- package/dist/task/JsonTask.d.ts.map +1 -1
- package/dist/task/MergeTask.d.ts +1 -1
- package/dist/task/MergeTask.d.ts.map +1 -1
- package/dist/task/adaptive.d.ts +16 -0
- package/dist/task/adaptive.d.ts.map +1 -0
- package/dist/task/scalar/ScalarAbsTask.d.ts +71 -0
- package/dist/task/scalar/ScalarAbsTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarAddTask.d.ts +81 -0
- package/dist/task/scalar/ScalarAddTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarCeilTask.d.ts +71 -0
- package/dist/task/scalar/ScalarCeilTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarDivideTask.d.ts +81 -0
- package/dist/task/scalar/ScalarDivideTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarFloorTask.d.ts +71 -0
- package/dist/task/scalar/ScalarFloorTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarMaxTask.d.ts +77 -0
- package/dist/task/scalar/ScalarMaxTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarMinTask.d.ts +77 -0
- package/dist/task/scalar/ScalarMinTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarMultiplyTask.d.ts +81 -0
- package/dist/task/scalar/ScalarMultiplyTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarRoundTask.d.ts +71 -0
- package/dist/task/scalar/ScalarRoundTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarSubtractTask.d.ts +81 -0
- package/dist/task/scalar/ScalarSubtractTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarSumTask.d.ts +77 -0
- package/dist/task/scalar/ScalarSumTask.d.ts.map +1 -0
- package/dist/task/scalar/ScalarTruncTask.d.ts +71 -0
- package/dist/task/scalar/ScalarTruncTask.d.ts.map +1 -0
- package/dist/task/scalar/scalar.test.d.ts +7 -0
- package/dist/task/scalar/scalar.test.d.ts.map +1 -0
- package/dist/task/scalar/sumPrecise.d.ts +12 -0
- package/dist/task/scalar/sumPrecise.d.ts.map +1 -0
- package/dist/task/vector/VectorDistanceTask.d.ts +83 -0
- package/dist/task/vector/VectorDistanceTask.d.ts.map +1 -0
- package/dist/task/vector/VectorDivideTask.d.ts +85 -0
- package/dist/task/vector/VectorDivideTask.d.ts.map +1 -0
- package/dist/task/vector/VectorDotProductTask.d.ts +83 -0
- package/dist/task/vector/VectorDotProductTask.d.ts.map +1 -0
- package/dist/task/vector/VectorMultiplyTask.d.ts +85 -0
- package/dist/task/vector/VectorMultiplyTask.d.ts.map +1 -0
- package/dist/task/vector/VectorNormalizeTask.d.ts +75 -0
- package/dist/task/vector/VectorNormalizeTask.d.ts.map +1 -0
- package/dist/task/vector/VectorScaleTask.d.ts +85 -0
- package/dist/task/vector/VectorScaleTask.d.ts.map +1 -0
- package/dist/task/vector/VectorSubtractTask.d.ts +85 -0
- package/dist/task/vector/VectorSubtractTask.d.ts.map +1 -0
- package/dist/task/vector/VectorSumTask.d.ts +85 -0
- package/dist/task/vector/VectorSumTask.d.ts.map +1 -0
- package/dist/task/vector/vector.test.d.ts +7 -0
- package/dist/task/vector/vector.test.d.ts.map +1 -0
- package/package.json +9 -9
package/dist/task/ArrayTask.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export type DeReplicateFromSchema<S extends {
|
|
|
42
42
|
* 2. Creates a subGraph with one task instance per array element if any input is an array
|
|
43
43
|
* 3. Creates all combinations if multiple inputs are arrays
|
|
44
44
|
*/
|
|
45
|
-
export declare class ArrayTask<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Config extends TaskConfig = TaskConfig> extends GraphAsTask<Input, Output, Config> {
|
|
45
|
+
export declare abstract class ArrayTask<Input extends TaskInput = TaskInput, Output extends TaskOutput = TaskOutput, Config extends TaskConfig = TaskConfig> extends GraphAsTask<Input, Output, Config> {
|
|
46
46
|
/**
|
|
47
47
|
* The type identifier for this task class
|
|
48
48
|
*/
|
|
@@ -1 +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,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EAEZ,UAAU,EAEV,iBAAiB,EACjB,SAAS,EACT,UAAU,EACX,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,kBAAkB,GAAI,KAAK,CAAC,CAAC,SAAS,wBAAwB,EACzE,MAAM,CAAC,EACP,cAAa,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM;;;;;;;;;CAS9B,CAAC;AAEd;;;;;;;GAOG;AACH,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,EAAE,GAC/C,CAAC,SAAS,UAAU,GAClB,CAAC,GACD,KAAK,GACP,MAAM,SAAS,MAAM,CAAC,GACpB,MAAM,SAAS,MAAM,CAAC,GACpB,KAAK,GACL,CAAC,GACH,CAAC,CAAC;AAER;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,IAAI;KAChF,CAAC,IAAI,MAAM,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,YAAY,CAAC,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AM,EAAE,MAAM,CAAC;IACxC,IAAI,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAE/C;;;OAGG;cACa,mBAAmB,CAAC,MAAM,EAAE,KAAK,GAAG,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAIrF;;;OAGG;cACa,2BAA2B,IAAI,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAKnE,mBAAmB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOlE,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC;CAOxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"JsonTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAGL,cAAc,EAEd,WAAW,EAEX,UAAU,EAIX,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;CAyCvB;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"}
|
package/dist/task/MergeTask.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ export declare class MergeTask<Input extends MergeTaskInput = MergeTaskInput, Ou
|
|
|
60
60
|
};
|
|
61
61
|
readonly additionalProperties: false;
|
|
62
62
|
};
|
|
63
|
-
execute(input: Input,
|
|
63
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
64
64
|
}
|
|
65
65
|
export declare const merge: (input: MergeTaskInput, config?: TaskConfig) => Promise<{
|
|
66
66
|
output?: unknown[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
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,CAA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D;IAChF,MAAM,CAAC,QAAQ,CAAC,SAAS,QAAQ;WAEnB,WAAW;;;;;WAIX,YAAY;;;;;;;;;;;IAIpB,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAWxE;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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateAdaptiveWorkflow, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
declare module "@workglow/task-graph" {
|
|
8
|
+
interface Workflow {
|
|
9
|
+
add: CreateAdaptiveWorkflow<import("./scalar/ScalarAddTask").ScalarAddTaskInput, import("./scalar/ScalarAddTask").ScalarAddTaskOutput, import("./vector/VectorSumTask").VectorSumTaskInput, import("./vector/VectorSumTask").VectorSumTaskOutput, TaskConfig, TaskConfig>;
|
|
10
|
+
subtract: CreateAdaptiveWorkflow<import("./scalar/ScalarSubtractTask").ScalarSubtractTaskInput, import("./scalar/ScalarSubtractTask").ScalarSubtractTaskOutput, import("./vector/VectorSubtractTask").VectorSubtractTaskInput, import("./vector/VectorSubtractTask").VectorSubtractTaskOutput, TaskConfig, TaskConfig>;
|
|
11
|
+
multiply: CreateAdaptiveWorkflow<import("./scalar/ScalarMultiplyTask").ScalarMultiplyTaskInput, import("./scalar/ScalarMultiplyTask").ScalarMultiplyTaskOutput, import("./vector/VectorMultiplyTask").VectorMultiplyTaskInput, import("./vector/VectorMultiplyTask").VectorMultiplyTaskOutput, TaskConfig, TaskConfig>;
|
|
12
|
+
divide: CreateAdaptiveWorkflow<import("./scalar/ScalarDivideTask").ScalarDivideTaskInput, import("./scalar/ScalarDivideTask").ScalarDivideTaskOutput, import("./vector/VectorDivideTask").VectorDivideTaskInput, import("./vector/VectorDivideTask").VectorDivideTaskOutput, TaskConfig, TaskConfig>;
|
|
13
|
+
sum: CreateAdaptiveWorkflow<import("./scalar/ScalarSumTask").ScalarSumTaskInput, import("./scalar/ScalarSumTask").ScalarSumTaskOutput, import("./vector/VectorSumTask").VectorSumTaskInput, import("./vector/VectorSumTask").VectorSumTaskOutput, TaskConfig, TaskConfig>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=adaptive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adaptive.d.ts","sourceRoot":"","sources":["../../src/task/adaptive.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,sBAAsB,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AAWpF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,GAAG,EAAE,sBAAsB,CACzB,OAAO,wBAAwB,EAAE,kBAAkB,EACnD,OAAO,wBAAwB,EAAE,mBAAmB,EACpD,OAAO,wBAAwB,EAAE,kBAAkB,EACnD,OAAO,wBAAwB,EAAE,mBAAmB,EACpD,UAAU,EACV,UAAU,CACX,CAAC;QACF,QAAQ,EAAE,sBAAsB,CAC9B,OAAO,6BAA6B,EAAE,uBAAuB,EAC7D,OAAO,6BAA6B,EAAE,wBAAwB,EAC9D,OAAO,6BAA6B,EAAE,uBAAuB,EAC7D,OAAO,6BAA6B,EAAE,wBAAwB,EAC9D,UAAU,EACV,UAAU,CACX,CAAC;QACF,QAAQ,EAAE,sBAAsB,CAC9B,OAAO,6BAA6B,EAAE,uBAAuB,EAC7D,OAAO,6BAA6B,EAAE,wBAAwB,EAC9D,OAAO,6BAA6B,EAAE,uBAAuB,EAC7D,OAAO,6BAA6B,EAAE,wBAAwB,EAC9D,UAAU,EACV,UAAU,CACX,CAAC;QACF,MAAM,EAAE,sBAAsB,CAC5B,OAAO,2BAA2B,EAAE,qBAAqB,EACzD,OAAO,2BAA2B,EAAE,sBAAsB,EAC1D,OAAO,2BAA2B,EAAE,qBAAqB,EACzD,OAAO,2BAA2B,EAAE,sBAAsB,EAC1D,UAAU,EACV,UAAU,CACX,CAAC;QACF,GAAG,EAAE,sBAAsB,CACzB,OAAO,wBAAwB,EAAE,kBAAkB,EACnD,OAAO,wBAAwB,EAAE,mBAAmB,EACpD,OAAO,wBAAwB,EAAE,kBAAkB,EACnD,OAAO,wBAAwB,EAAE,mBAAmB,EACpD,UAAU,EACV,UAAU,CACX,CAAC;KACH;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly value: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly title: "Value";
|
|
14
|
+
readonly description: "Input number";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly required: readonly ["value"];
|
|
18
|
+
readonly additionalProperties: false;
|
|
19
|
+
};
|
|
20
|
+
declare const outputSchema: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly result: {
|
|
24
|
+
readonly type: "number";
|
|
25
|
+
readonly title: "Result";
|
|
26
|
+
readonly description: "Absolute value";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["result"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type ScalarAbsTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type ScalarAbsTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class ScalarAbsTask<Input extends ScalarAbsTaskInput = ScalarAbsTaskInput, Output extends ScalarAbsTaskOutput = ScalarAbsTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
35
|
+
static readonly type = "ScalarAbsTask";
|
|
36
|
+
static readonly category = "Math";
|
|
37
|
+
static title: string;
|
|
38
|
+
static description: string;
|
|
39
|
+
static inputSchema(): {
|
|
40
|
+
readonly type: "object";
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly type: "number";
|
|
44
|
+
readonly title: "Value";
|
|
45
|
+
readonly description: "Input number";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly required: readonly ["value"];
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
};
|
|
51
|
+
static outputSchema(): {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly result: {
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly title: "Result";
|
|
57
|
+
readonly description: "Absolute value";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["result"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
64
|
+
}
|
|
65
|
+
declare module "@workglow/task-graph" {
|
|
66
|
+
interface Workflow {
|
|
67
|
+
scalarAbs: CreateWorkflow<ScalarAbsTaskInput, ScalarAbsTaskOutput, TaskConfig>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=ScalarAbsTask.d.ts.map
|
|
@@ -0,0 +1 @@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2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly a: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly title: "A";
|
|
14
|
+
readonly description: "First number";
|
|
15
|
+
};
|
|
16
|
+
readonly b: {
|
|
17
|
+
readonly type: "number";
|
|
18
|
+
readonly title: "B";
|
|
19
|
+
readonly description: "Second number";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["a", "b"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
declare const outputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly result: {
|
|
29
|
+
readonly type: "number";
|
|
30
|
+
readonly title: "Result";
|
|
31
|
+
readonly description: "Sum of a and b";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["result"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type ScalarAddTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type ScalarAddTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class ScalarAddTask<Input extends ScalarAddTaskInput = ScalarAddTaskInput, Output extends ScalarAddTaskOutput = ScalarAddTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
40
|
+
static readonly type = "ScalarAddTask";
|
|
41
|
+
static readonly category = "Math";
|
|
42
|
+
static title: string;
|
|
43
|
+
static description: string;
|
|
44
|
+
static inputSchema(): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly a: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
readonly title: "A";
|
|
50
|
+
readonly description: "First number";
|
|
51
|
+
};
|
|
52
|
+
readonly b: {
|
|
53
|
+
readonly type: "number";
|
|
54
|
+
readonly title: "B";
|
|
55
|
+
readonly description: "Second number";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly required: readonly ["a", "b"];
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
};
|
|
61
|
+
static outputSchema(): {
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly properties: {
|
|
64
|
+
readonly result: {
|
|
65
|
+
readonly type: "number";
|
|
66
|
+
readonly title: "Result";
|
|
67
|
+
readonly description: "Sum of a and b";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly required: readonly ["result"];
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
};
|
|
73
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
74
|
+
}
|
|
75
|
+
declare module "@workglow/task-graph" {
|
|
76
|
+
interface Workflow {
|
|
77
|
+
scalarAdd: CreateWorkflow<ScalarAddTaskInput, ScalarAddTaskOutput, TaskConfig>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=ScalarAddTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarAddTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarAddTask.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;AAG5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;CAgBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAChE,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAElE,qBAAa,aAAa,CACxB,KAAK,SAAS,kBAAkB,GAAG,kBAAkB,EACrD,MAAM,SAAS,mBAAmB,GAAG,mBAAmB,EACxD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,mBAAmB;IACvC,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,OAAc,KAAK,SAAS;IAC5B,OAAc,WAAW,SAAoC;IAE7D,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAGxE;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,SAAS,EAAE,cAAc,CAAC,kBAAkB,EAAE,mBAAmB,EAAE,UAAU,CAAC,CAAC;KAChF;CACF"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly value: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly title: "Value";
|
|
14
|
+
readonly description: "Input number";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly required: readonly ["value"];
|
|
18
|
+
readonly additionalProperties: false;
|
|
19
|
+
};
|
|
20
|
+
declare const outputSchema: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly result: {
|
|
24
|
+
readonly type: "number";
|
|
25
|
+
readonly title: "Result";
|
|
26
|
+
readonly description: "Ceiling value";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["result"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type ScalarCeilTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type ScalarCeilTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class ScalarCeilTask<Input extends ScalarCeilTaskInput = ScalarCeilTaskInput, Output extends ScalarCeilTaskOutput = ScalarCeilTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
35
|
+
static readonly type = "ScalarCeilTask";
|
|
36
|
+
static readonly category = "Math";
|
|
37
|
+
static title: string;
|
|
38
|
+
static description: string;
|
|
39
|
+
static inputSchema(): {
|
|
40
|
+
readonly type: "object";
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly type: "number";
|
|
44
|
+
readonly title: "Value";
|
|
45
|
+
readonly description: "Input number";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly required: readonly ["value"];
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
};
|
|
51
|
+
static outputSchema(): {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly result: {
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly title: "Result";
|
|
57
|
+
readonly description: "Ceiling value";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["result"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
64
|
+
}
|
|
65
|
+
declare module "@workglow/task-graph" {
|
|
66
|
+
interface Workflow {
|
|
67
|
+
scalarCeil: CreateWorkflow<ScalarCeilTaskInput, ScalarCeilTaskOutput, TaskConfig>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=ScalarCeilTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarCeilTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarCeilTask.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;;;;;;;;;;;CAWkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,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,cAAc,CACzB,KAAK,SAAS,mBAAmB,GAAG,mBAAmB,EACvD,MAAM,SAAS,oBAAoB,GAAG,oBAAoB,EAC1D,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,oBAAoB;IACxC,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,OAAc,KAAK,SAAU;IAC7B,OAAc,WAAW,SAAoE;IAE7F,MAAM,CAAC,WAAW;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAGxE;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly a: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly title: "A";
|
|
14
|
+
readonly description: "Numerator";
|
|
15
|
+
};
|
|
16
|
+
readonly b: {
|
|
17
|
+
readonly type: "number";
|
|
18
|
+
readonly title: "B";
|
|
19
|
+
readonly description: "Denominator";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["a", "b"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
declare const outputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly result: {
|
|
29
|
+
readonly type: "number";
|
|
30
|
+
readonly title: "Result";
|
|
31
|
+
readonly description: "Quotient (a / b)";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["result"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type ScalarDivideTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type ScalarDivideTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class ScalarDivideTask<Input extends ScalarDivideTaskInput = ScalarDivideTaskInput, Output extends ScalarDivideTaskOutput = ScalarDivideTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
40
|
+
static readonly type = "ScalarDivideTask";
|
|
41
|
+
static readonly category = "Math";
|
|
42
|
+
static title: string;
|
|
43
|
+
static description: string;
|
|
44
|
+
static inputSchema(): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly a: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
readonly title: "A";
|
|
50
|
+
readonly description: "Numerator";
|
|
51
|
+
};
|
|
52
|
+
readonly b: {
|
|
53
|
+
readonly type: "number";
|
|
54
|
+
readonly title: "B";
|
|
55
|
+
readonly description: "Denominator";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly required: readonly ["a", "b"];
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
};
|
|
61
|
+
static outputSchema(): {
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly properties: {
|
|
64
|
+
readonly result: {
|
|
65
|
+
readonly type: "number";
|
|
66
|
+
readonly title: "Result";
|
|
67
|
+
readonly description: "Quotient (a / b)";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly required: readonly ["result"];
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
};
|
|
73
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
74
|
+
}
|
|
75
|
+
declare module "@workglow/task-graph" {
|
|
76
|
+
interface Workflow {
|
|
77
|
+
scalarDivide: CreateWorkflow<ScalarDivideTaskInput, ScalarDivideTaskOutput, TaskConfig>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=ScalarDivideTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarDivideTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarDivideTask.ts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|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly value: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
readonly title: "Value";
|
|
14
|
+
readonly description: "Input number";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly required: readonly ["value"];
|
|
18
|
+
readonly additionalProperties: false;
|
|
19
|
+
};
|
|
20
|
+
declare const outputSchema: {
|
|
21
|
+
readonly type: "object";
|
|
22
|
+
readonly properties: {
|
|
23
|
+
readonly result: {
|
|
24
|
+
readonly type: "number";
|
|
25
|
+
readonly title: "Result";
|
|
26
|
+
readonly description: "Floored value";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["result"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type ScalarFloorTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type ScalarFloorTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class ScalarFloorTask<Input extends ScalarFloorTaskInput = ScalarFloorTaskInput, Output extends ScalarFloorTaskOutput = ScalarFloorTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
35
|
+
static readonly type = "ScalarFloorTask";
|
|
36
|
+
static readonly category = "Math";
|
|
37
|
+
static title: string;
|
|
38
|
+
static description: string;
|
|
39
|
+
static inputSchema(): {
|
|
40
|
+
readonly type: "object";
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly value: {
|
|
43
|
+
readonly type: "number";
|
|
44
|
+
readonly title: "Value";
|
|
45
|
+
readonly description: "Input number";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly required: readonly ["value"];
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
};
|
|
51
|
+
static outputSchema(): {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly result: {
|
|
55
|
+
readonly type: "number";
|
|
56
|
+
readonly title: "Result";
|
|
57
|
+
readonly description: "Floored value";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["result"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
64
|
+
}
|
|
65
|
+
declare module "@workglow/task-graph" {
|
|
66
|
+
interface Workflow {
|
|
67
|
+
scalarFloor: CreateWorkflow<ScalarFloorTaskInput, ScalarFloorTaskOutput, TaskConfig>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=ScalarFloorTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarFloorTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarFloorTask.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;;;;;;;;;;;CAWkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpE,qBAAa,eAAe,CAC1B,KAAK,SAAS,oBAAoB,GAAG,oBAAoB,EACzD,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAC5D,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,qBAAqB;IACzC,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAAgE;IAEzF,MAAM,CAAC,WAAW;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAGxE;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,CAAC,CAAC;KACtF;CACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly values: {
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly type: "number";
|
|
15
|
+
};
|
|
16
|
+
readonly title: "Values";
|
|
17
|
+
readonly description: "Array of numbers";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly required: readonly ["values"];
|
|
21
|
+
readonly additionalProperties: false;
|
|
22
|
+
};
|
|
23
|
+
declare const outputSchema: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly result: {
|
|
27
|
+
readonly type: "number";
|
|
28
|
+
readonly title: "Result";
|
|
29
|
+
readonly description: "Maximum value";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["result"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
export type ScalarMaxTaskInput = FromSchema<typeof inputSchema>;
|
|
36
|
+
export type ScalarMaxTaskOutput = FromSchema<typeof outputSchema>;
|
|
37
|
+
export declare class ScalarMaxTask<Input extends ScalarMaxTaskInput = ScalarMaxTaskInput, Output extends ScalarMaxTaskOutput = ScalarMaxTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
38
|
+
static readonly type = "ScalarMaxTask";
|
|
39
|
+
static readonly category = "Math";
|
|
40
|
+
static title: string;
|
|
41
|
+
static description: string;
|
|
42
|
+
static inputSchema(): {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly values: {
|
|
46
|
+
readonly type: "array";
|
|
47
|
+
readonly items: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
};
|
|
50
|
+
readonly title: "Values";
|
|
51
|
+
readonly description: "Array of numbers";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly required: readonly ["values"];
|
|
55
|
+
readonly additionalProperties: false;
|
|
56
|
+
};
|
|
57
|
+
static outputSchema(): {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly result: {
|
|
61
|
+
readonly type: "number";
|
|
62
|
+
readonly title: "Result";
|
|
63
|
+
readonly description: "Maximum value";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly required: readonly ["result"];
|
|
67
|
+
readonly additionalProperties: false;
|
|
68
|
+
};
|
|
69
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
70
|
+
}
|
|
71
|
+
declare module "@workglow/task-graph" {
|
|
72
|
+
interface Workflow {
|
|
73
|
+
scalarMax: CreateWorkflow<ScalarMaxTaskInput, ScalarMaxTaskOutput, TaskConfig>;
|
|
74
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AE,UAAU,CAAC,CAAC;KAChF;CACF"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly values: {
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly type: "number";
|
|
15
|
+
};
|
|
16
|
+
readonly title: "Values";
|
|
17
|
+
readonly description: "Array of numbers";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly required: readonly ["values"];
|
|
21
|
+
readonly additionalProperties: false;
|
|
22
|
+
};
|
|
23
|
+
declare const outputSchema: {
|
|
24
|
+
readonly type: "object";
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly result: {
|
|
27
|
+
readonly type: "number";
|
|
28
|
+
readonly title: "Result";
|
|
29
|
+
readonly description: "Minimum value";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["result"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
export type ScalarMinTaskInput = FromSchema<typeof inputSchema>;
|
|
36
|
+
export type ScalarMinTaskOutput = FromSchema<typeof outputSchema>;
|
|
37
|
+
export declare class ScalarMinTask<Input extends ScalarMinTaskInput = ScalarMinTaskInput, Output extends ScalarMinTaskOutput = ScalarMinTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
38
|
+
static readonly type = "ScalarMinTask";
|
|
39
|
+
static readonly category = "Math";
|
|
40
|
+
static title: string;
|
|
41
|
+
static description: string;
|
|
42
|
+
static inputSchema(): {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly values: {
|
|
46
|
+
readonly type: "array";
|
|
47
|
+
readonly items: {
|
|
48
|
+
readonly type: "number";
|
|
49
|
+
};
|
|
50
|
+
readonly title: "Values";
|
|
51
|
+
readonly description: "Array of numbers";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly required: readonly ["values"];
|
|
55
|
+
readonly additionalProperties: false;
|
|
56
|
+
};
|
|
57
|
+
static outputSchema(): {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly result: {
|
|
61
|
+
readonly type: "number";
|
|
62
|
+
readonly title: "Result";
|
|
63
|
+
readonly description: "Minimum value";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly required: readonly ["result"];
|
|
67
|
+
readonly additionalProperties: false;
|
|
68
|
+
};
|
|
69
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
70
|
+
}
|
|
71
|
+
declare module "@workglow/task-graph" {
|
|
72
|
+
interface Workflow {
|
|
73
|
+
scalarMin: CreateWorkflow<ScalarMinTaskInput, ScalarMinTaskOutput, TaskConfig>;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=ScalarMinTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarMinTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarMinTask.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;;;;;;;;;;;;;;CAYkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MA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