@workglow/tasks 0.0.90 → 0.0.92
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 +1155 -66
- package/dist/browser.js.map +26 -4
- package/dist/bun.js +1155 -66
- package/dist/bun.js.map +26 -4
- package/dist/common.d.ts +43 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +1155 -66
- package/dist/node.js.map +26 -4
- 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
|
@@ -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: "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: "Product of a and b";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["result"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type ScalarMultiplyTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type ScalarMultiplyTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class ScalarMultiplyTask<Input extends ScalarMultiplyTaskInput = ScalarMultiplyTaskInput, Output extends ScalarMultiplyTaskOutput = ScalarMultiplyTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
40
|
+
static readonly type = "ScalarMultiplyTask";
|
|
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: "Product 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
|
+
scalarMultiply: CreateWorkflow<ScalarMultiplyTaskInput, ScalarMultiplyTaskOutput, TaskConfig>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=ScalarMultiplyTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarMultiplyTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarMultiplyTask.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;;;;;;;;;;;;;;;;CAgBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvE,qBAAa,kBAAkB,CAC7B,KAAK,SAAS,uBAAuB,GAAG,uBAAuB,EAC/D,MAAM,SAAS,wBAAwB,GAAG,wBAAwB,EAClE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,wBAAwB;IAC5C,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,OAAc,KAAK,SAAc;IACjC,OAAc,WAAW,SAAwC;IAEjE,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,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;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: "Rounded value";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["result"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type ScalarRoundTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type ScalarRoundTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class ScalarRoundTask<Input extends ScalarRoundTaskInput = ScalarRoundTaskInput, Output extends ScalarRoundTaskOutput = ScalarRoundTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
35
|
+
static readonly type = "ScalarRoundTask";
|
|
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: "Rounded 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
|
+
scalarRound: CreateWorkflow<ScalarRoundTaskInput, ScalarRoundTaskOutput, TaskConfig>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//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@@
|
|
|
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: "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: "Difference (a - b)";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["result"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type ScalarSubtractTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type ScalarSubtractTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class ScalarSubtractTask<Input extends ScalarSubtractTaskInput = ScalarSubtractTaskInput, Output extends ScalarSubtractTaskOutput = ScalarSubtractTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
40
|
+
static readonly type = "ScalarSubtractTask";
|
|
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: "Difference (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
|
+
scalarSubtract: CreateWorkflow<ScalarSubtractTaskInput, ScalarSubtractTaskOutput, TaskConfig>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=ScalarSubtractTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarSubtractTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarSubtractTask.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;;;;;;;;;;;;;;;;CAgBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACrE,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvE,qBAAa,kBAAkB,CAC7B,KAAK,SAAS,uBAAuB,GAAG,uBAAuB,EAC/D,MAAM,SAAS,wBAAwB,GAAG,wBAAwB,EAClE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,wBAAwB;IAC5C,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,OAAc,KAAK,SAAc;IACjC,OAAc,WAAW,SAAmD;IAE5E,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,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;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 to sum";
|
|
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: "Sum of all values";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["result"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
export type ScalarSumTaskInput = FromSchema<typeof inputSchema>;
|
|
36
|
+
export type ScalarSumTaskOutput = FromSchema<typeof outputSchema>;
|
|
37
|
+
export declare class ScalarSumTask<Input extends ScalarSumTaskInput = ScalarSumTaskInput, Output extends ScalarSumTaskOutput = ScalarSumTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
38
|
+
static readonly type = "ScalarSumTask";
|
|
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 to sum";
|
|
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: "Sum of all values";
|
|
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
|
+
scalarSum: CreateWorkflow<ScalarSumTaskInput, ScalarSumTaskOutput, TaskConfig>;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=ScalarSumTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarSumTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarSumTask.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;;;;;;;;;;;;;;CAYkB,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,SAA4C;IAErE,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: "Truncated value";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
readonly required: readonly ["result"];
|
|
30
|
+
readonly additionalProperties: false;
|
|
31
|
+
};
|
|
32
|
+
export type ScalarTruncTaskInput = FromSchema<typeof inputSchema>;
|
|
33
|
+
export type ScalarTruncTaskOutput = FromSchema<typeof outputSchema>;
|
|
34
|
+
export declare class ScalarTruncTask<Input extends ScalarTruncTaskInput = ScalarTruncTaskInput, Output extends ScalarTruncTaskOutput = ScalarTruncTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
35
|
+
static readonly type = "ScalarTruncTask";
|
|
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: "Truncated 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
|
+
scalarTrunc: CreateWorkflow<ScalarTruncTaskInput, ScalarTruncTaskOutput, TaskConfig>;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=ScalarTruncTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScalarTruncTask.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/ScalarTruncTask.ts"],"names":[],"mappings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
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
declare global {
|
|
7
|
+
interface Math {
|
|
8
|
+
sumPrecise?(values: Iterable<number>): number;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const sumPrecise: (values: Iterable<number>) => number;
|
|
12
|
+
//# sourceMappingURL=sumPrecise.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sumPrecise.d.ts","sourceRoot":"","sources":["../../../src/task/scalar/sumPrecise.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,IAAI;QACZ,UAAU,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;KAC/C;CACF;AAqBD,eAAO,MAAM,UAAU,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,MAE3C,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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, TypedArraySchemaOptions } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly vectors: {
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly type: "array";
|
|
15
|
+
readonly format: "TypedArray";
|
|
16
|
+
readonly title: "Typed Array";
|
|
17
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
18
|
+
};
|
|
19
|
+
readonly title: "Vectors";
|
|
20
|
+
readonly description: "Array of two vectors to compute Euclidean distance";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly required: readonly ["vectors"];
|
|
24
|
+
readonly additionalProperties: false;
|
|
25
|
+
};
|
|
26
|
+
declare const outputSchema: {
|
|
27
|
+
readonly type: "object";
|
|
28
|
+
readonly properties: {
|
|
29
|
+
readonly result: {
|
|
30
|
+
readonly type: "number";
|
|
31
|
+
readonly title: "Result";
|
|
32
|
+
readonly description: "Euclidean distance between vectors";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly required: readonly ["result"];
|
|
36
|
+
readonly additionalProperties: false;
|
|
37
|
+
};
|
|
38
|
+
export type VectorDistanceTaskInput = FromSchema<typeof inputSchema, TypedArraySchemaOptions>;
|
|
39
|
+
export type VectorDistanceTaskOutput = FromSchema<typeof outputSchema>;
|
|
40
|
+
export declare class VectorDistanceTask<Input extends VectorDistanceTaskInput = VectorDistanceTaskInput, Output extends VectorDistanceTaskOutput = VectorDistanceTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
41
|
+
static readonly type = "VectorDistanceTask";
|
|
42
|
+
static readonly category = "Vector";
|
|
43
|
+
static title: string;
|
|
44
|
+
static description: string;
|
|
45
|
+
static inputSchema(): {
|
|
46
|
+
readonly type: "object";
|
|
47
|
+
readonly properties: {
|
|
48
|
+
readonly vectors: {
|
|
49
|
+
readonly type: "array";
|
|
50
|
+
readonly items: {
|
|
51
|
+
readonly type: "array";
|
|
52
|
+
readonly format: "TypedArray";
|
|
53
|
+
readonly title: "Typed Array";
|
|
54
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
55
|
+
};
|
|
56
|
+
readonly title: "Vectors";
|
|
57
|
+
readonly description: "Array of two vectors to compute Euclidean distance";
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
readonly required: readonly ["vectors"];
|
|
61
|
+
readonly additionalProperties: false;
|
|
62
|
+
};
|
|
63
|
+
static outputSchema(): {
|
|
64
|
+
readonly type: "object";
|
|
65
|
+
readonly properties: {
|
|
66
|
+
readonly result: {
|
|
67
|
+
readonly type: "number";
|
|
68
|
+
readonly title: "Result";
|
|
69
|
+
readonly description: "Euclidean distance between vectors";
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly required: readonly ["result"];
|
|
73
|
+
readonly additionalProperties: false;
|
|
74
|
+
};
|
|
75
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
76
|
+
}
|
|
77
|
+
declare module "@workglow/task-graph" {
|
|
78
|
+
interface Workflow {
|
|
79
|
+
vectorDistance: CreateWorkflow<VectorDistanceTaskInput, VectorDistanceTaskOutput, TaskConfig>;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export {};
|
|
83
|
+
//# sourceMappingURL=VectorDistanceTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VectorDistanceTask.d.ts","sourceRoot":"","sources":["../../../src/task/vector/VectorDistanceTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAGV,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;CAekB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAC9F,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEvE,qBAAa,kBAAkB,CAC7B,KAAK,SAAS,uBAAuB,GAAG,uBAAuB,EAC/D,MAAM,SAAS,wBAAwB,GAAG,wBAAwB,EAClE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,wBAAwB;IAC5C,MAAM,CAAC,QAAQ,CAAC,QAAQ,YAAY;IACpC,OAAc,KAAK,SAAc;IACjC,OAAc,WAAW,SAAkE;IAE3F,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;CAexE;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,cAAc,EAAE,cAAc,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,UAAU,CAAC,CAAC;KAC/F;CACF"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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, TypedArraySchemaOptions } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly vectors: {
|
|
12
|
+
readonly type: "array";
|
|
13
|
+
readonly items: {
|
|
14
|
+
readonly type: "array";
|
|
15
|
+
readonly format: "TypedArray";
|
|
16
|
+
readonly title: "Typed Array";
|
|
17
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
18
|
+
};
|
|
19
|
+
readonly title: "Vectors";
|
|
20
|
+
readonly description: "Array of vectors: vectors[0] / vectors[1] / vectors[2] / ...";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly required: readonly ["vectors"];
|
|
24
|
+
readonly additionalProperties: false;
|
|
25
|
+
};
|
|
26
|
+
declare const outputSchema: {
|
|
27
|
+
readonly type: "object";
|
|
28
|
+
readonly properties: {
|
|
29
|
+
readonly result: {
|
|
30
|
+
readonly type: "array";
|
|
31
|
+
readonly format: "TypedArray";
|
|
32
|
+
readonly title: "Typed Array";
|
|
33
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly required: readonly ["result"];
|
|
37
|
+
readonly additionalProperties: false;
|
|
38
|
+
};
|
|
39
|
+
export type VectorDivideTaskInput = FromSchema<typeof inputSchema, TypedArraySchemaOptions>;
|
|
40
|
+
export type VectorDivideTaskOutput = FromSchema<typeof outputSchema, TypedArraySchemaOptions>;
|
|
41
|
+
export declare class VectorDivideTask<Input extends VectorDivideTaskInput = VectorDivideTaskInput, Output extends VectorDivideTaskOutput = VectorDivideTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
42
|
+
static readonly type = "VectorDivideTask";
|
|
43
|
+
static readonly category = "Vector";
|
|
44
|
+
static title: string;
|
|
45
|
+
static description: string;
|
|
46
|
+
static inputSchema(): {
|
|
47
|
+
readonly type: "object";
|
|
48
|
+
readonly properties: {
|
|
49
|
+
readonly vectors: {
|
|
50
|
+
readonly type: "array";
|
|
51
|
+
readonly items: {
|
|
52
|
+
readonly type: "array";
|
|
53
|
+
readonly format: "TypedArray";
|
|
54
|
+
readonly title: "Typed Array";
|
|
55
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
56
|
+
};
|
|
57
|
+
readonly title: "Vectors";
|
|
58
|
+
readonly description: "Array of vectors: vectors[0] / vectors[1] / vectors[2] / ...";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
readonly required: readonly ["vectors"];
|
|
62
|
+
readonly additionalProperties: false;
|
|
63
|
+
};
|
|
64
|
+
static outputSchema(): {
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly result: {
|
|
68
|
+
readonly type: "array";
|
|
69
|
+
readonly format: "TypedArray";
|
|
70
|
+
readonly title: "Typed Array";
|
|
71
|
+
readonly description: "A typed array (Float32Array, Int8Array, etc.)";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly required: readonly ["result"];
|
|
75
|
+
readonly additionalProperties: false;
|
|
76
|
+
};
|
|
77
|
+
execute(input: Input, _context: IExecuteContext): Promise<Output>;
|
|
78
|
+
}
|
|
79
|
+
declare module "@workglow/task-graph" {
|
|
80
|
+
interface Workflow {
|
|
81
|
+
vectorDivide: CreateWorkflow<VectorDivideTaskInput, VectorDivideTaskOutput, TaskConfig>;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=VectorDivideTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VectorDivideTask.d.ts","sourceRoot":"","sources":["../../../src/task/vector/VectorDivideTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAGL,UAAU,EAGV,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;CAekB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,WAAW,EAAE,uBAAuB,CAAC,CAAC;AAC5F,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,YAAY,EAAE,uBAAuB,CAAC,CAAC;AAE9F,qBAAa,gBAAgB,CAC3B,KAAK,SAAS,qBAAqB,GAAG,qBAAqB,EAC3D,MAAM,SAAS,sBAAsB,GAAG,sBAAsB,EAC9D,MAAM,SA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