@workglow/tasks 0.0.103 → 0.0.104

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.
Files changed (39) hide show
  1. package/dist/browser.js +1001 -138
  2. package/dist/browser.js.map +19 -5
  3. package/dist/bun.js +1004 -141
  4. package/dist/bun.js.map +19 -5
  5. package/dist/common.d.ts +29 -1
  6. package/dist/common.d.ts.map +1 -1
  7. package/dist/node.js +1004 -141
  8. package/dist/node.js.map +19 -5
  9. package/dist/task/DateFormatTask.d.ts +107 -0
  10. package/dist/task/DateFormatTask.d.ts.map +1 -0
  11. package/dist/task/FetchUrlTask.d.ts +20 -1
  12. package/dist/task/FetchUrlTask.d.ts.map +1 -1
  13. package/dist/task/JsonPathTask.d.ts +77 -0
  14. package/dist/task/JsonPathTask.d.ts.map +1 -0
  15. package/dist/task/RegexTask.d.ts +109 -0
  16. package/dist/task/RegexTask.d.ts.map +1 -0
  17. package/dist/task/TemplateTask.d.ts +89 -0
  18. package/dist/task/TemplateTask.d.ts.map +1 -0
  19. package/dist/task/string/StringConcatTask.d.ts +61 -0
  20. package/dist/task/string/StringConcatTask.d.ts.map +1 -0
  21. package/dist/task/string/StringIncludesTask.d.ts +81 -0
  22. package/dist/task/string/StringIncludesTask.d.ts.map +1 -0
  23. package/dist/task/string/StringJoinTask.d.ts +89 -0
  24. package/dist/task/string/StringJoinTask.d.ts.map +1 -0
  25. package/dist/task/string/StringLengthTask.d.ts +71 -0
  26. package/dist/task/string/StringLengthTask.d.ts.map +1 -0
  27. package/dist/task/string/StringLowerCaseTask.d.ts +71 -0
  28. package/dist/task/string/StringLowerCaseTask.d.ts.map +1 -0
  29. package/dist/task/string/StringReplaceTask.d.ts +91 -0
  30. package/dist/task/string/StringReplaceTask.d.ts.map +1 -0
  31. package/dist/task/string/StringSliceTask.d.ts +91 -0
  32. package/dist/task/string/StringSliceTask.d.ts.map +1 -0
  33. package/dist/task/string/StringTemplateTask.d.ts +83 -0
  34. package/dist/task/string/StringTemplateTask.d.ts.map +1 -0
  35. package/dist/task/string/StringTrimTask.d.ts +71 -0
  36. package/dist/task/string/StringTrimTask.d.ts.map +1 -0
  37. package/dist/task/string/StringUpperCaseTask.d.ts +71 -0
  38. package/dist/task/string/StringUpperCaseTask.d.ts.map +1 -0
  39. package/package.json +9 -9
@@ -0,0 +1,89 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, 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: "string";
15
+ };
16
+ readonly title: "Values";
17
+ readonly description: "Array of strings to join";
18
+ };
19
+ readonly separator: {
20
+ readonly type: "string";
21
+ readonly title: "Separator";
22
+ readonly description: "Separator between elements";
23
+ readonly default: "";
24
+ };
25
+ };
26
+ readonly required: readonly ["values"];
27
+ readonly additionalProperties: false;
28
+ };
29
+ declare const outputSchema: {
30
+ readonly type: "object";
31
+ readonly properties: {
32
+ readonly result: {
33
+ readonly type: "string";
34
+ readonly title: "Result";
35
+ readonly description: "Joined string";
36
+ };
37
+ };
38
+ readonly required: readonly ["result"];
39
+ readonly additionalProperties: false;
40
+ };
41
+ export type StringJoinTaskInput = FromSchema<typeof inputSchema>;
42
+ export type StringJoinTaskOutput = FromSchema<typeof outputSchema>;
43
+ export declare class StringJoinTask<Input extends StringJoinTaskInput = StringJoinTaskInput, Output extends StringJoinTaskOutput = StringJoinTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
44
+ static readonly type = "StringJoinTask";
45
+ static readonly category = "String";
46
+ static title: string;
47
+ static description: string;
48
+ static inputSchema(): {
49
+ readonly type: "object";
50
+ readonly properties: {
51
+ readonly values: {
52
+ readonly type: "array";
53
+ readonly items: {
54
+ readonly type: "string";
55
+ };
56
+ readonly title: "Values";
57
+ readonly description: "Array of strings to join";
58
+ };
59
+ readonly separator: {
60
+ readonly type: "string";
61
+ readonly title: "Separator";
62
+ readonly description: "Separator between elements";
63
+ readonly default: "";
64
+ };
65
+ };
66
+ readonly required: readonly ["values"];
67
+ readonly additionalProperties: false;
68
+ };
69
+ static outputSchema(): {
70
+ readonly type: "object";
71
+ readonly properties: {
72
+ readonly result: {
73
+ readonly type: "string";
74
+ readonly title: "Result";
75
+ readonly description: "Joined string";
76
+ };
77
+ };
78
+ readonly required: readonly ["result"];
79
+ readonly additionalProperties: false;
80
+ };
81
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
82
+ }
83
+ declare module "@workglow/task-graph" {
84
+ interface Workflow {
85
+ stringJoin: CreateWorkflow<StringJoinTaskInput, StringJoinTaskOutput, TaskConfig>;
86
+ }
87
+ }
88
+ export {};
89
+ //# sourceMappingURL=StringJoinTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringJoinTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringJoinTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAkBkB,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,YAAY;IACpC,OAAc,KAAK,SAAU;IAC7B,OAAc,WAAW,SAAgD;IAEzE,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAInB;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,71 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, 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: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string";
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: "integer";
25
+ readonly title: "Result";
26
+ readonly description: "Length of the string";
27
+ };
28
+ };
29
+ readonly required: readonly ["result"];
30
+ readonly additionalProperties: false;
31
+ };
32
+ export type StringLengthTaskInput = FromSchema<typeof inputSchema>;
33
+ export type StringLengthTaskOutput = FromSchema<typeof outputSchema>;
34
+ export declare class StringLengthTask<Input extends StringLengthTaskInput = StringLengthTaskInput, Output extends StringLengthTaskOutput = StringLengthTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
35
+ static readonly type = "StringLengthTask";
36
+ static readonly category = "String";
37
+ static title: string;
38
+ static description: string;
39
+ static inputSchema(): {
40
+ readonly type: "object";
41
+ readonly properties: {
42
+ readonly value: {
43
+ readonly type: "string";
44
+ readonly title: "Value";
45
+ readonly description: "Input string";
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: "integer";
56
+ readonly title: "Result";
57
+ readonly description: "Length of the string";
58
+ };
59
+ };
60
+ readonly required: readonly ["result"];
61
+ readonly additionalProperties: false;
62
+ };
63
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
64
+ }
65
+ declare module "@workglow/task-graph" {
66
+ interface Workflow {
67
+ stringLength: CreateWorkflow<StringLengthTaskInput, StringLengthTaskOutput, TaskConfig>;
68
+ }
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=StringLengthTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringLengthTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringLengthTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;CAWkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAErE,qBAAa,gBAAgB,CAC3B,KAAK,SAAS,qBAAqB,GAAG,qBAAqB,EAC3D,MAAM,SAAS,sBAAsB,GAAG,sBAAsB,EAC9D,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,sBAAsB;IAC1C,MAAM,CAAC,QAAQ,CAAC,QAAQ,YAAY;IACpC,OAAc,KAAK,SAAY;IAC/B,OAAc,WAAW,SAAoC;IAE7D,MAAM,CAAC,WAAW;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAGnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,YAAY,EAAE,cAAc,CAAC,qBAAqB,EAAE,sBAAsB,EAAE,UAAU,CAAC,CAAC;KACzF;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, IExecuteReactiveContext, 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: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string";
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: "string";
25
+ readonly title: "Result";
26
+ readonly description: "Lowercased string";
27
+ };
28
+ };
29
+ readonly required: readonly ["result"];
30
+ readonly additionalProperties: false;
31
+ };
32
+ export type StringLowerCaseTaskInput = FromSchema<typeof inputSchema>;
33
+ export type StringLowerCaseTaskOutput = FromSchema<typeof outputSchema>;
34
+ export declare class StringLowerCaseTask<Input extends StringLowerCaseTaskInput = StringLowerCaseTaskInput, Output extends StringLowerCaseTaskOutput = StringLowerCaseTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
35
+ static readonly type = "StringLowerCaseTask";
36
+ static readonly category = "String";
37
+ static title: string;
38
+ static description: string;
39
+ static inputSchema(): {
40
+ readonly type: "object";
41
+ readonly properties: {
42
+ readonly value: {
43
+ readonly type: "string";
44
+ readonly title: "Value";
45
+ readonly description: "Input string";
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: "string";
56
+ readonly title: "Result";
57
+ readonly description: "Lowercased string";
58
+ };
59
+ };
60
+ readonly required: readonly ["result"];
61
+ readonly additionalProperties: false;
62
+ };
63
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
64
+ }
65
+ declare module "@workglow/task-graph" {
66
+ interface Workflow {
67
+ stringLowerCase: CreateWorkflow<StringLowerCaseTaskInput, StringLowerCaseTaskOutput, TaskConfig>;
68
+ }
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=StringLowerCaseTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringLowerCaseTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringLowerCaseTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;CAWkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAExE,qBAAa,mBAAmB,CAC9B,KAAK,SAAS,wBAAwB,GAAG,wBAAwB,EACjE,MAAM,SAAS,yBAAyB,GAAG,yBAAyB,EACpE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,yBAAyB;IAC7C,MAAM,CAAC,QAAQ,CAAC,QAAQ,YAAY;IACpC,OAAc,KAAK,SAAgB;IACnC,OAAc,WAAW,SAAqC;IAE9D,MAAM,CAAC,WAAW;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAGnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,UAAU,CACX,CAAC;KACH;CACF"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, 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: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string";
15
+ };
16
+ readonly search: {
17
+ readonly type: "string";
18
+ readonly title: "Search";
19
+ readonly description: "Substring to search for";
20
+ };
21
+ readonly replace: {
22
+ readonly type: "string";
23
+ readonly title: "Replace";
24
+ readonly description: "Replacement string";
25
+ };
26
+ };
27
+ readonly required: readonly ["value", "search", "replace"];
28
+ readonly additionalProperties: false;
29
+ };
30
+ declare const outputSchema: {
31
+ readonly type: "object";
32
+ readonly properties: {
33
+ readonly result: {
34
+ readonly type: "string";
35
+ readonly title: "Result";
36
+ readonly description: "String with all occurrences replaced";
37
+ };
38
+ };
39
+ readonly required: readonly ["result"];
40
+ readonly additionalProperties: false;
41
+ };
42
+ export type StringReplaceTaskInput = FromSchema<typeof inputSchema>;
43
+ export type StringReplaceTaskOutput = FromSchema<typeof outputSchema>;
44
+ export declare class StringReplaceTask<Input extends StringReplaceTaskInput = StringReplaceTaskInput, Output extends StringReplaceTaskOutput = StringReplaceTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
45
+ static readonly type = "StringReplaceTask";
46
+ static readonly category = "String";
47
+ static title: string;
48
+ static description: string;
49
+ static inputSchema(): {
50
+ readonly type: "object";
51
+ readonly properties: {
52
+ readonly value: {
53
+ readonly type: "string";
54
+ readonly title: "Value";
55
+ readonly description: "Input string";
56
+ };
57
+ readonly search: {
58
+ readonly type: "string";
59
+ readonly title: "Search";
60
+ readonly description: "Substring to search for";
61
+ };
62
+ readonly replace: {
63
+ readonly type: "string";
64
+ readonly title: "Replace";
65
+ readonly description: "Replacement string";
66
+ };
67
+ };
68
+ readonly required: readonly ["value", "search", "replace"];
69
+ readonly additionalProperties: false;
70
+ };
71
+ static outputSchema(): {
72
+ readonly type: "object";
73
+ readonly properties: {
74
+ readonly result: {
75
+ readonly type: "string";
76
+ readonly title: "Result";
77
+ readonly description: "String with all occurrences replaced";
78
+ };
79
+ };
80
+ readonly required: readonly ["result"];
81
+ readonly additionalProperties: false;
82
+ };
83
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
84
+ }
85
+ declare module "@workglow/task-graph" {
86
+ interface Workflow {
87
+ stringReplace: CreateWorkflow<StringReplaceTaskInput, StringReplaceTaskOutput, TaskConfig>;
88
+ }
89
+ }
90
+ export {};
91
+ //# sourceMappingURL=StringReplaceTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringReplaceTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringReplaceTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;CAWiB,CAAC;AAEpC,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACpE,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEtE,qBAAa,iBAAiB,CAC5B,KAAK,SAAS,sBAAsB,GAAG,sBAAsB,EAC7D,MAAM,SAAS,uBAAuB,GAAG,uBAAuB,EAChE,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,uBAAuB;IAC3C,MAAM,CAAC,QAAQ,CAAC,QAAQ,YAAY;IACpC,OAAc,KAAK,SAAa;IAChC,OAAc,WAAW,SAA6C;IAEtE,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAGnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,aAAa,EAAE,cAAc,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,UAAU,CAAC,CAAC;KAC5F;CACF"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, 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: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string";
15
+ };
16
+ readonly start: {
17
+ readonly type: "integer";
18
+ readonly title: "Start";
19
+ readonly description: "Start index (inclusive, supports negative indexing)";
20
+ };
21
+ readonly end: {
22
+ readonly type: "integer";
23
+ readonly title: "End";
24
+ readonly description: "End index (exclusive, supports negative indexing)";
25
+ };
26
+ };
27
+ readonly required: readonly ["value", "start"];
28
+ readonly additionalProperties: false;
29
+ };
30
+ declare const outputSchema: {
31
+ readonly type: "object";
32
+ readonly properties: {
33
+ readonly result: {
34
+ readonly type: "string";
35
+ readonly title: "Result";
36
+ readonly description: "Extracted substring";
37
+ };
38
+ };
39
+ readonly required: readonly ["result"];
40
+ readonly additionalProperties: false;
41
+ };
42
+ export type StringSliceTaskInput = FromSchema<typeof inputSchema>;
43
+ export type StringSliceTaskOutput = FromSchema<typeof outputSchema>;
44
+ export declare class StringSliceTask<Input extends StringSliceTaskInput = StringSliceTaskInput, Output extends StringSliceTaskOutput = StringSliceTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
45
+ static readonly type = "StringSliceTask";
46
+ static readonly category = "String";
47
+ static title: string;
48
+ static description: string;
49
+ static inputSchema(): {
50
+ readonly type: "object";
51
+ readonly properties: {
52
+ readonly value: {
53
+ readonly type: "string";
54
+ readonly title: "Value";
55
+ readonly description: "Input string";
56
+ };
57
+ readonly start: {
58
+ readonly type: "integer";
59
+ readonly title: "Start";
60
+ readonly description: "Start index (inclusive, supports negative indexing)";
61
+ };
62
+ readonly end: {
63
+ readonly type: "integer";
64
+ readonly title: "End";
65
+ readonly description: "End index (exclusive, supports negative indexing)";
66
+ };
67
+ };
68
+ readonly required: readonly ["value", "start"];
69
+ readonly additionalProperties: false;
70
+ };
71
+ static outputSchema(): {
72
+ readonly type: "object";
73
+ readonly properties: {
74
+ readonly result: {
75
+ readonly type: "string";
76
+ readonly title: "Result";
77
+ readonly description: "Extracted substring";
78
+ };
79
+ };
80
+ readonly required: readonly ["result"];
81
+ readonly additionalProperties: false;
82
+ };
83
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
84
+ }
85
+ declare module "@workglow/task-graph" {
86
+ interface Workflow {
87
+ stringSlice: CreateWorkflow<StringSliceTaskInput, StringSliceTaskOutput, TaskConfig>;
88
+ }
89
+ }
90
+ export {};
91
+ //# sourceMappingURL=StringSliceTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringSliceTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringSliceTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;CAqBkB,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,YAAY;IACpC,OAAc,KAAK,SAAW;IAC9B,OAAc,WAAW,SAA0D;IAEnF,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAGnB;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,83 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 Steven Roussey <sroussey@gmail.com>
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { CreateWorkflow, IExecuteReactiveContext, 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 template: {
12
+ readonly type: "string";
13
+ readonly title: "Template";
14
+ readonly description: "Template string with {{key}} placeholders";
15
+ };
16
+ readonly values: {
17
+ readonly type: "object";
18
+ readonly title: "Values";
19
+ readonly description: "Key-value pairs to substitute into the template";
20
+ readonly additionalProperties: true;
21
+ };
22
+ };
23
+ readonly required: readonly ["template", "values"];
24
+ readonly additionalProperties: false;
25
+ };
26
+ declare const outputSchema: {
27
+ readonly type: "object";
28
+ readonly properties: {
29
+ readonly result: {
30
+ readonly type: "string";
31
+ readonly title: "Result";
32
+ readonly description: "Template with placeholders replaced by values";
33
+ };
34
+ };
35
+ readonly required: readonly ["result"];
36
+ readonly additionalProperties: false;
37
+ };
38
+ export type StringTemplateTaskInput = FromSchema<typeof inputSchema>;
39
+ export type StringTemplateTaskOutput = FromSchema<typeof outputSchema>;
40
+ export declare class StringTemplateTask<Input extends StringTemplateTaskInput = StringTemplateTaskInput, Output extends StringTemplateTaskOutput = StringTemplateTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
41
+ static readonly type = "StringTemplateTask";
42
+ static readonly category = "String";
43
+ static title: string;
44
+ static description: string;
45
+ static inputSchema(): {
46
+ readonly type: "object";
47
+ readonly properties: {
48
+ readonly template: {
49
+ readonly type: "string";
50
+ readonly title: "Template";
51
+ readonly description: "Template string with {{key}} placeholders";
52
+ };
53
+ readonly values: {
54
+ readonly type: "object";
55
+ readonly title: "Values";
56
+ readonly description: "Key-value pairs to substitute into the template";
57
+ readonly additionalProperties: true;
58
+ };
59
+ };
60
+ readonly required: readonly ["template", "values"];
61
+ readonly additionalProperties: false;
62
+ };
63
+ static outputSchema(): {
64
+ readonly type: "object";
65
+ readonly properties: {
66
+ readonly result: {
67
+ readonly type: "string";
68
+ readonly title: "Result";
69
+ readonly description: "Template with placeholders replaced by values";
70
+ };
71
+ };
72
+ readonly required: readonly ["result"];
73
+ readonly additionalProperties: false;
74
+ };
75
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
76
+ }
77
+ declare module "@workglow/task-graph" {
78
+ interface Workflow {
79
+ stringTemplate: CreateWorkflow<StringTemplateTaskInput, StringTemplateTaskOutput, TaskConfig>;
80
+ }
81
+ }
82
+ export {};
83
+ //# sourceMappingURL=StringTemplateTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringTemplateTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringTemplateTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAkB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;CAiBkB,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,YAAY;IACpC,OAAc,KAAK,SAAc;IACjC,OAAc,WAAW,SAAoE;IAE7F,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAOnB;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, IExecuteReactiveContext, 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: "string";
13
+ readonly title: "Value";
14
+ readonly description: "Input string";
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: "string";
25
+ readonly title: "Result";
26
+ readonly description: "Trimmed string";
27
+ };
28
+ };
29
+ readonly required: readonly ["result"];
30
+ readonly additionalProperties: false;
31
+ };
32
+ export type StringTrimTaskInput = FromSchema<typeof inputSchema>;
33
+ export type StringTrimTaskOutput = FromSchema<typeof outputSchema>;
34
+ export declare class StringTrimTask<Input extends StringTrimTaskInput = StringTrimTaskInput, Output extends StringTrimTaskOutput = StringTrimTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
35
+ static readonly type = "StringTrimTask";
36
+ static readonly category = "String";
37
+ static title: string;
38
+ static description: string;
39
+ static inputSchema(): {
40
+ readonly type: "object";
41
+ readonly properties: {
42
+ readonly value: {
43
+ readonly type: "string";
44
+ readonly title: "Value";
45
+ readonly description: "Input string";
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: "string";
56
+ readonly title: "Result";
57
+ readonly description: "Trimmed string";
58
+ };
59
+ };
60
+ readonly required: readonly ["result"];
61
+ readonly additionalProperties: false;
62
+ };
63
+ executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
64
+ }
65
+ declare module "@workglow/task-graph" {
66
+ interface Workflow {
67
+ stringTrim: CreateWorkflow<StringTrimTaskInput, StringTrimTaskOutput, TaskConfig>;
68
+ }
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=StringTrimTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringTrimTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringTrimTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,IAAI,EACJ,UAAU,EAEX,MAAM,sBAAsB,CAAC;AAC9B,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,YAAY;IACpC,OAAc,KAAK,SAAU;IAC7B,OAAc,WAAW,SAA2D;IAEpF,MAAM,CAAC,WAAW;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAGnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}