@workglow/tasks 0.0.103 → 0.0.105
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 +1001 -138
- package/dist/browser.js.map +19 -5
- package/dist/bun.js +1004 -141
- package/dist/bun.js.map +19 -5
- package/dist/common.d.ts +29 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +1004 -141
- package/dist/node.js.map +19 -5
- package/dist/task/DateFormatTask.d.ts +107 -0
- package/dist/task/DateFormatTask.d.ts.map +1 -0
- package/dist/task/FetchUrlTask.d.ts +20 -1
- package/dist/task/FetchUrlTask.d.ts.map +1 -1
- package/dist/task/JsonPathTask.d.ts +77 -0
- package/dist/task/JsonPathTask.d.ts.map +1 -0
- package/dist/task/RegexTask.d.ts +109 -0
- package/dist/task/RegexTask.d.ts.map +1 -0
- package/dist/task/TemplateTask.d.ts +89 -0
- package/dist/task/TemplateTask.d.ts.map +1 -0
- package/dist/task/string/StringConcatTask.d.ts +61 -0
- package/dist/task/string/StringConcatTask.d.ts.map +1 -0
- package/dist/task/string/StringIncludesTask.d.ts +81 -0
- package/dist/task/string/StringIncludesTask.d.ts.map +1 -0
- package/dist/task/string/StringJoinTask.d.ts +89 -0
- package/dist/task/string/StringJoinTask.d.ts.map +1 -0
- package/dist/task/string/StringLengthTask.d.ts +71 -0
- package/dist/task/string/StringLengthTask.d.ts.map +1 -0
- package/dist/task/string/StringLowerCaseTask.d.ts +71 -0
- package/dist/task/string/StringLowerCaseTask.d.ts.map +1 -0
- package/dist/task/string/StringReplaceTask.d.ts +91 -0
- package/dist/task/string/StringReplaceTask.d.ts.map +1 -0
- package/dist/task/string/StringSliceTask.d.ts +91 -0
- package/dist/task/string/StringSliceTask.d.ts.map +1 -0
- package/dist/task/string/StringTemplateTask.d.ts +83 -0
- package/dist/task/string/StringTemplateTask.d.ts.map +1 -0
- package/dist/task/string/StringTrimTask.d.ts +71 -0
- package/dist/task/string/StringTrimTask.d.ts.map +1 -0
- package/dist/task/string/StringUpperCaseTask.d.ts +71 -0
- package/dist/task/string/StringUpperCaseTask.d.ts.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,107 @@
|
|
|
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: "Date string, ISO 8601 timestamp, or Unix timestamp in milliseconds";
|
|
15
|
+
};
|
|
16
|
+
readonly format: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Format";
|
|
19
|
+
readonly enum: readonly ["iso", "date", "time", "datetime", "unix"];
|
|
20
|
+
readonly description: "Output format: 'iso', 'date', 'time', 'datetime', 'unix'";
|
|
21
|
+
readonly default: "iso";
|
|
22
|
+
};
|
|
23
|
+
readonly locale: {
|
|
24
|
+
readonly type: "string";
|
|
25
|
+
readonly title: "Locale";
|
|
26
|
+
readonly description: "Locale string (e.g. 'en-US')";
|
|
27
|
+
readonly default: "en-US";
|
|
28
|
+
};
|
|
29
|
+
readonly timeZone: {
|
|
30
|
+
readonly type: "string";
|
|
31
|
+
readonly title: "Time Zone";
|
|
32
|
+
readonly description: "IANA time zone (e.g. 'America/New_York', 'UTC')";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly required: readonly ["value"];
|
|
36
|
+
readonly additionalProperties: false;
|
|
37
|
+
};
|
|
38
|
+
declare const outputSchema: {
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly properties: {
|
|
41
|
+
readonly result: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
readonly title: "Result";
|
|
44
|
+
readonly description: "Formatted date string";
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly required: readonly ["result"];
|
|
48
|
+
readonly additionalProperties: false;
|
|
49
|
+
};
|
|
50
|
+
export type DateFormatTaskInput = FromSchema<typeof inputSchema>;
|
|
51
|
+
export type DateFormatTaskOutput = FromSchema<typeof outputSchema>;
|
|
52
|
+
export declare class DateFormatTask<Input extends DateFormatTaskInput = DateFormatTaskInput, Output extends DateFormatTaskOutput = DateFormatTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
53
|
+
static readonly type = "DateFormatTask";
|
|
54
|
+
static readonly category = "Utility";
|
|
55
|
+
static title: string;
|
|
56
|
+
static description: string;
|
|
57
|
+
static inputSchema(): {
|
|
58
|
+
readonly type: "object";
|
|
59
|
+
readonly properties: {
|
|
60
|
+
readonly value: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
readonly title: "Value";
|
|
63
|
+
readonly description: "Date string, ISO 8601 timestamp, or Unix timestamp in milliseconds";
|
|
64
|
+
};
|
|
65
|
+
readonly format: {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
readonly title: "Format";
|
|
68
|
+
readonly enum: readonly ["iso", "date", "time", "datetime", "unix"];
|
|
69
|
+
readonly description: "Output format: 'iso', 'date', 'time', 'datetime', 'unix'";
|
|
70
|
+
readonly default: "iso";
|
|
71
|
+
};
|
|
72
|
+
readonly locale: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
readonly title: "Locale";
|
|
75
|
+
readonly description: "Locale string (e.g. 'en-US')";
|
|
76
|
+
readonly default: "en-US";
|
|
77
|
+
};
|
|
78
|
+
readonly timeZone: {
|
|
79
|
+
readonly type: "string";
|
|
80
|
+
readonly title: "Time Zone";
|
|
81
|
+
readonly description: "IANA time zone (e.g. 'America/New_York', 'UTC')";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly required: readonly ["value"];
|
|
85
|
+
readonly additionalProperties: false;
|
|
86
|
+
};
|
|
87
|
+
static outputSchema(): {
|
|
88
|
+
readonly type: "object";
|
|
89
|
+
readonly properties: {
|
|
90
|
+
readonly result: {
|
|
91
|
+
readonly type: "string";
|
|
92
|
+
readonly title: "Result";
|
|
93
|
+
readonly description: "Formatted date string";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
readonly required: readonly ["result"];
|
|
97
|
+
readonly additionalProperties: false;
|
|
98
|
+
};
|
|
99
|
+
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
100
|
+
}
|
|
101
|
+
declare module "@workglow/task-graph" {
|
|
102
|
+
interface Workflow {
|
|
103
|
+
dateFormat: CreateWorkflow<DateFormatTaskInput, DateFormatTaskOutput, TaskConfig>;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export {};
|
|
107
|
+
//# sourceMappingURL=DateFormatTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateFormatTask.d.ts","sourceRoot":"","sources":["../../src/task/DateFormatTask.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BkB,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,aAAa;IACrC,OAAc,KAAK,SAAiB;IACpC,OAAc,WAAW,SAAsC;IAE/D,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAkCnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,UAAU,EAAE,cAAc,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;KACnF;CACF"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
import { IJobExecuteContext, Job } from "@workglow/job-queue";
|
|
7
|
-
import { CreateWorkflow, JobQueueTask, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { CreateWorkflow, type IExecuteContext, JobQueueTask, JobQueueTaskConfig } from "@workglow/task-graph";
|
|
8
8
|
import { DataPortSchema, FromSchema } from "@workglow/util";
|
|
9
9
|
declare const inputSchema: {
|
|
10
10
|
readonly type: "object";
|
|
@@ -49,6 +49,13 @@ declare const inputSchema: {
|
|
|
49
49
|
readonly title: "Timeout";
|
|
50
50
|
readonly description: "Request timeout in milliseconds";
|
|
51
51
|
};
|
|
52
|
+
readonly credential_key: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly format: "credential";
|
|
55
|
+
readonly title: "Credential Key";
|
|
56
|
+
readonly description: "Key to look up in the credential store. The resolved value is sent as a Bearer token in the Authorization header.";
|
|
57
|
+
readonly "x-ui-hidden": true;
|
|
58
|
+
};
|
|
52
59
|
readonly queue: {
|
|
53
60
|
readonly oneOf: readonly [{
|
|
54
61
|
readonly type: "boolean";
|
|
@@ -172,6 +179,13 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
172
179
|
readonly title: "Timeout";
|
|
173
180
|
readonly description: "Request timeout in milliseconds";
|
|
174
181
|
};
|
|
182
|
+
readonly credential_key: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly format: "credential";
|
|
185
|
+
readonly title: "Credential Key";
|
|
186
|
+
readonly description: "Key to look up in the credential store. The resolved value is sent as a Bearer token in the Authorization header.";
|
|
187
|
+
readonly "x-ui-hidden": true;
|
|
188
|
+
};
|
|
175
189
|
readonly queue: {
|
|
176
190
|
readonly oneOf: readonly [{
|
|
177
191
|
readonly type: "boolean";
|
|
@@ -233,6 +247,11 @@ export declare class FetchUrlTask<Input extends FetchUrlTaskInput = FetchUrlTask
|
|
|
233
247
|
*/
|
|
234
248
|
outputSchema(): DataPortSchema;
|
|
235
249
|
constructor(input?: Partial<Input>, config?: Config);
|
|
250
|
+
/**
|
|
251
|
+
* Uses the already-resolved credential_key (resolved by the input resolver system)
|
|
252
|
+
* to set the Authorization header before job dispatch.
|
|
253
|
+
*/
|
|
254
|
+
execute(input: Input, executeContext: IExecuteContext): Promise<Output | undefined>;
|
|
236
255
|
/**
|
|
237
256
|
* Override setInput to detect when response_type changes and emit schemaChange event.
|
|
238
257
|
* This ensures that consumers of the task are notified when the output schema changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchUrlTask.d.ts","sourceRoot":"","sources":["../../src/task/FetchUrlTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,kBAAkB,EAClB,GAAG,EAGJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd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|
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 title: "Value";
|
|
13
|
+
readonly description: "Input object or array to query";
|
|
14
|
+
};
|
|
15
|
+
readonly path: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly title: "Path";
|
|
18
|
+
readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly required: readonly ["value", "path"];
|
|
22
|
+
readonly additionalProperties: false;
|
|
23
|
+
};
|
|
24
|
+
declare const outputSchema: {
|
|
25
|
+
readonly type: "object";
|
|
26
|
+
readonly properties: {
|
|
27
|
+
readonly result: {
|
|
28
|
+
readonly title: "Result";
|
|
29
|
+
readonly description: "Extracted value(s) from the path";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly ["result"];
|
|
33
|
+
readonly additionalProperties: false;
|
|
34
|
+
};
|
|
35
|
+
export type JsonPathTaskInput = FromSchema<typeof inputSchema>;
|
|
36
|
+
export type JsonPathTaskOutput = FromSchema<typeof outputSchema>;
|
|
37
|
+
export declare class JsonPathTask<Input extends JsonPathTaskInput = JsonPathTaskInput, Output extends JsonPathTaskOutput = JsonPathTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
38
|
+
static readonly type = "JsonPathTask";
|
|
39
|
+
static readonly category = "Utility";
|
|
40
|
+
static title: string;
|
|
41
|
+
static description: string;
|
|
42
|
+
static inputSchema(): {
|
|
43
|
+
readonly type: "object";
|
|
44
|
+
readonly properties: {
|
|
45
|
+
readonly value: {
|
|
46
|
+
readonly title: "Value";
|
|
47
|
+
readonly description: "Input object or array to query";
|
|
48
|
+
};
|
|
49
|
+
readonly path: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
readonly title: "Path";
|
|
52
|
+
readonly description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly required: readonly ["value", "path"];
|
|
56
|
+
readonly additionalProperties: false;
|
|
57
|
+
};
|
|
58
|
+
static outputSchema(): {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly result: {
|
|
62
|
+
readonly title: "Result";
|
|
63
|
+
readonly description: "Extracted value(s) from the path";
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly required: readonly ["result"];
|
|
67
|
+
readonly additionalProperties: false;
|
|
68
|
+
};
|
|
69
|
+
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
70
|
+
}
|
|
71
|
+
declare module "@workglow/task-graph" {
|
|
72
|
+
interface Workflow {
|
|
73
|
+
jsonPath: CreateWorkflow<JsonPathTaskInput, JsonPathTaskOutput, TaskConfig>;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=JsonPathTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JsonPathTask.d.ts","sourceRoot":"","sources":["../../src/task/JsonPathTask.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;;;;;;;;;;;;;;;CAekB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;CAUiB,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AA6BjE,qBAAa,YAAY,CACvB,KAAK,SAAS,iBAAiB,GAAG,iBAAiB,EACnD,MAAM,SAAS,kBAAkB,GAAG,kBAAkB,EACtD,MAAM,SAAS,UAAU,GAAG,UAAU,CACtC,SAAQ,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,kBAAkB;IACtC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,OAAc,KAAK,SAAe;IAClC,OAAc,WAAW,SAA+D;IAExF,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;IAIlB,MAAM,CAAC,YAAY;;;;;;;;;;;IAIb,eAAe,CACnB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,uBAAuB,GAChC,OAAO,CAAC,MAAM,CAAC;CAKnB;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,QAAQ,EAAE,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC;KAC7E;CACF"}
|
|
@@ -0,0 +1,109 @@
|
|
|
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 to match against";
|
|
15
|
+
};
|
|
16
|
+
readonly pattern: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Pattern";
|
|
19
|
+
readonly description: "Regular expression pattern";
|
|
20
|
+
};
|
|
21
|
+
readonly flags: {
|
|
22
|
+
readonly type: "string";
|
|
23
|
+
readonly title: "Flags";
|
|
24
|
+
readonly description: "Regex flags (e.g. 'g', 'i', 'gi')";
|
|
25
|
+
readonly default: "";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
readonly required: readonly ["value", "pattern"];
|
|
29
|
+
readonly additionalProperties: false;
|
|
30
|
+
};
|
|
31
|
+
declare const outputSchema: {
|
|
32
|
+
readonly type: "object";
|
|
33
|
+
readonly properties: {
|
|
34
|
+
readonly match: {
|
|
35
|
+
readonly type: "boolean";
|
|
36
|
+
readonly title: "Match";
|
|
37
|
+
readonly description: "Whether the pattern matched";
|
|
38
|
+
};
|
|
39
|
+
readonly matches: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
readonly items: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
readonly title: "Matches";
|
|
45
|
+
readonly description: "Array of matched strings (full matches when global, groups when not)";
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
readonly required: readonly ["match", "matches"];
|
|
49
|
+
readonly additionalProperties: false;
|
|
50
|
+
};
|
|
51
|
+
export type RegexTaskInput = FromSchema<typeof inputSchema>;
|
|
52
|
+
export type RegexTaskOutput = FromSchema<typeof outputSchema>;
|
|
53
|
+
export declare class RegexTask<Input extends RegexTaskInput = RegexTaskInput, Output extends RegexTaskOutput = RegexTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
54
|
+
static readonly type = "RegexTask";
|
|
55
|
+
static readonly category = "String";
|
|
56
|
+
static title: string;
|
|
57
|
+
static description: string;
|
|
58
|
+
static inputSchema(): {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly value: {
|
|
62
|
+
readonly type: "string";
|
|
63
|
+
readonly title: "Value";
|
|
64
|
+
readonly description: "Input string to match against";
|
|
65
|
+
};
|
|
66
|
+
readonly pattern: {
|
|
67
|
+
readonly type: "string";
|
|
68
|
+
readonly title: "Pattern";
|
|
69
|
+
readonly description: "Regular expression pattern";
|
|
70
|
+
};
|
|
71
|
+
readonly flags: {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
readonly title: "Flags";
|
|
74
|
+
readonly description: "Regex flags (e.g. 'g', 'i', 'gi')";
|
|
75
|
+
readonly default: "";
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly required: readonly ["value", "pattern"];
|
|
79
|
+
readonly additionalProperties: false;
|
|
80
|
+
};
|
|
81
|
+
static outputSchema(): {
|
|
82
|
+
readonly type: "object";
|
|
83
|
+
readonly properties: {
|
|
84
|
+
readonly match: {
|
|
85
|
+
readonly type: "boolean";
|
|
86
|
+
readonly title: "Match";
|
|
87
|
+
readonly description: "Whether the pattern matched";
|
|
88
|
+
};
|
|
89
|
+
readonly matches: {
|
|
90
|
+
readonly type: "array";
|
|
91
|
+
readonly items: {
|
|
92
|
+
readonly type: "string";
|
|
93
|
+
};
|
|
94
|
+
readonly title: "Matches";
|
|
95
|
+
readonly description: "Array of matched strings (full matches when global, groups when not)";
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
readonly required: readonly ["match", "matches"];
|
|
99
|
+
readonly additionalProperties: false;
|
|
100
|
+
};
|
|
101
|
+
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
102
|
+
}
|
|
103
|
+
declare module "@workglow/task-graph" {
|
|
104
|
+
interface Workflow {
|
|
105
|
+
regex: CreateWorkflow<RegexTaskInput, RegexTaskOutput, TaskConfig>;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export {};
|
|
109
|
+
//# sourceMappingURL=R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|
|
@@ -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 template: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Template";
|
|
14
|
+
readonly description: "Template string with {{key}} placeholders; supports {{key|default}} for defaults";
|
|
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: "Rendered template string";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly required: readonly ["result"];
|
|
36
|
+
readonly additionalProperties: false;
|
|
37
|
+
};
|
|
38
|
+
export type TemplateTaskInput = FromSchema<typeof inputSchema>;
|
|
39
|
+
export type TemplateTaskOutput = FromSchema<typeof outputSchema>;
|
|
40
|
+
/**
|
|
41
|
+
* TemplateTask renders a template string by replacing `{{key}}` placeholders
|
|
42
|
+
* with corresponding values. Supports `{{key|default}}` syntax for fallback
|
|
43
|
+
* values when a key is missing. Nested dot-notation paths (e.g. `{{a.b}}`)
|
|
44
|
+
* are resolved against the values object.
|
|
45
|
+
*/
|
|
46
|
+
export declare class TemplateTask<Input extends TemplateTaskInput = TemplateTaskInput, Output extends TemplateTaskOutput = TemplateTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
47
|
+
static readonly type = "TemplateTask";
|
|
48
|
+
static readonly category = "Utility";
|
|
49
|
+
static title: string;
|
|
50
|
+
static description: string;
|
|
51
|
+
static inputSchema(): {
|
|
52
|
+
readonly type: "object";
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly template: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
readonly title: "Template";
|
|
57
|
+
readonly description: "Template string with {{key}} placeholders; supports {{key|default}} for defaults";
|
|
58
|
+
};
|
|
59
|
+
readonly values: {
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly title: "Values";
|
|
62
|
+
readonly description: "Key-value pairs to substitute into the template";
|
|
63
|
+
readonly additionalProperties: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly required: readonly ["template", "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: "Rendered template 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
|
+
template: CreateWorkflow<TemplateTaskInput, TemplateTaskOutput, TaskConfig>;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
export {};
|
|
89
|
+
//# sourceMappingURL=TemplateTask.d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
|
@@ -0,0 +1,61 @@
|
|
|
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 additionalProperties: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const outputSchema: {
|
|
16
|
+
readonly type: "object";
|
|
17
|
+
readonly properties: {
|
|
18
|
+
readonly result: {
|
|
19
|
+
readonly type: "string";
|
|
20
|
+
readonly title: "Result";
|
|
21
|
+
readonly description: "Concatenation of all input strings";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly required: readonly ["result"];
|
|
25
|
+
readonly additionalProperties: false;
|
|
26
|
+
};
|
|
27
|
+
export type StringConcatTaskInput = FromSchema<typeof inputSchema>;
|
|
28
|
+
export type StringConcatTaskOutput = FromSchema<typeof outputSchema>;
|
|
29
|
+
export declare class StringConcatTask<Input extends StringConcatTaskInput = StringConcatTaskInput, Output extends StringConcatTaskOutput = StringConcatTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
30
|
+
static readonly type = "StringConcatTask";
|
|
31
|
+
static readonly category = "String";
|
|
32
|
+
static title: string;
|
|
33
|
+
static description: string;
|
|
34
|
+
static inputSchema(): {
|
|
35
|
+
readonly type: "object";
|
|
36
|
+
readonly properties: {};
|
|
37
|
+
readonly additionalProperties: {
|
|
38
|
+
readonly type: "string";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
static outputSchema(): {
|
|
42
|
+
readonly type: "object";
|
|
43
|
+
readonly properties: {
|
|
44
|
+
readonly result: {
|
|
45
|
+
readonly type: "string";
|
|
46
|
+
readonly title: "Result";
|
|
47
|
+
readonly description: "Concatenation of all input strings";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
readonly required: readonly ["result"];
|
|
51
|
+
readonly additionalProperties: false;
|
|
52
|
+
};
|
|
53
|
+
executeReactive(input: Input, _output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
54
|
+
}
|
|
55
|
+
declare module "@workglow/task-graph" {
|
|
56
|
+
interface Workflow {
|
|
57
|
+
stringConcat: CreateWorkflow<StringConcatTaskInput, StringConcatTaskOutput, TaskConfig>;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=StringConcatTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringConcatTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringConcatTask.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;;;;;;CAIkB,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,OAAO,EAAE,MAAM,EACf,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,81 @@
|
|
|
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 to search in";
|
|
15
|
+
};
|
|
16
|
+
readonly search: {
|
|
17
|
+
readonly type: "string";
|
|
18
|
+
readonly title: "Search";
|
|
19
|
+
readonly description: "Substring to search for";
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
readonly required: readonly ["value", "search"];
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
};
|
|
25
|
+
declare const outputSchema: {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly result: {
|
|
29
|
+
readonly type: "boolean";
|
|
30
|
+
readonly title: "Result";
|
|
31
|
+
readonly description: "Whether the string contains the search substring";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly required: readonly ["result"];
|
|
35
|
+
readonly additionalProperties: false;
|
|
36
|
+
};
|
|
37
|
+
export type StringIncludesTaskInput = FromSchema<typeof inputSchema>;
|
|
38
|
+
export type StringIncludesTaskOutput = FromSchema<typeof outputSchema>;
|
|
39
|
+
export declare class StringIncludesTask<Input extends StringIncludesTaskInput = StringIncludesTaskInput, Output extends StringIncludesTaskOutput = StringIncludesTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
|
|
40
|
+
static readonly type = "StringIncludesTask";
|
|
41
|
+
static readonly category = "String";
|
|
42
|
+
static title: string;
|
|
43
|
+
static description: string;
|
|
44
|
+
static inputSchema(): {
|
|
45
|
+
readonly type: "object";
|
|
46
|
+
readonly properties: {
|
|
47
|
+
readonly value: {
|
|
48
|
+
readonly type: "string";
|
|
49
|
+
readonly title: "Value";
|
|
50
|
+
readonly description: "Input string to search in";
|
|
51
|
+
};
|
|
52
|
+
readonly search: {
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
readonly title: "Search";
|
|
55
|
+
readonly description: "Substring to search for";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
readonly required: readonly ["value", "search"];
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
};
|
|
61
|
+
static outputSchema(): {
|
|
62
|
+
readonly type: "object";
|
|
63
|
+
readonly properties: {
|
|
64
|
+
readonly result: {
|
|
65
|
+
readonly type: "boolean";
|
|
66
|
+
readonly title: "Result";
|
|
67
|
+
readonly description: "Whether the string contains the search substring";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
readonly required: readonly ["result"];
|
|
71
|
+
readonly additionalProperties: false;
|
|
72
|
+
};
|
|
73
|
+
executeReactive(input: Input, output: Output, _context: IExecuteReactiveContext): Promise<Output>;
|
|
74
|
+
}
|
|
75
|
+
declare module "@workglow/task-graph" {
|
|
76
|
+
interface Workflow {
|
|
77
|
+
stringIncludes: CreateWorkflow<StringIncludesTaskInput, StringIncludesTaskOutput, TaskConfig>;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=StringIncludesTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StringIncludesTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringIncludesTask.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;;;;;;;;;;;;;;;;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,YAAY;IACpC,OAAc,KAAK,SAAc;IACjC,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;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