@workglow/tasks 0.0.102 → 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.
- package/dist/browser.js +5218 -4202
- package/dist/browser.js.map +24 -10
- package/dist/bun.js +2617 -1578
- package/dist/bun.js.map +25 -11
- package/dist/common.d.ts +29 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +2617 -1578
- package/dist/node.js.map +25 -11
- 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/FileLoaderTask.d.ts +23 -0
- package/dist/task/FileLoaderTask.d.ts.map +1 -1
- package/dist/task/FileLoaderTask.server.d.ts +3 -0
- package/dist/task/FileLoaderTask.server.d.ts.map +1 -1
- package/dist/task/InputTask.d.ts.map +1 -1
- package/dist/task/JavaScriptTask.d.ts +4 -0
- package/dist/task/JavaScriptTask.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/LambdaTask.d.ts +4 -0
- package/dist/task/LambdaTask.d.ts.map +1 -1
- package/dist/task/OutputTask.d.ts.map +1 -1
- 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/mcp/McpPromptGetTask.d.ts +8 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
- package/dist/task/mcp/McpResourceReadTask.d.ts +8 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
- package/dist/task/mcp/McpToolCallTask.d.ts +8 -0
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
- 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
- package/dist/task/scalar/scalar.test.d.ts +0 -7
- package/dist/task/scalar/scalar.test.d.ts.map +0 -1
- package/dist/task/vector/vector.test.d.ts +0 -7
- package/dist/task/vector/vector.test.d.ts.map +0 -1
|
@@ -59,6 +59,10 @@ declare const configSchema: {
|
|
|
59
59
|
readonly cacheable: {
|
|
60
60
|
readonly type: "boolean";
|
|
61
61
|
};
|
|
62
|
+
readonly timeout: {
|
|
63
|
+
readonly type: "number";
|
|
64
|
+
readonly description: "Max execution time in milliseconds";
|
|
65
|
+
};
|
|
62
66
|
readonly inputSchema: {
|
|
63
67
|
readonly type: "object";
|
|
64
68
|
readonly properties: {};
|
|
@@ -274,6 +278,10 @@ export declare class McpResourceReadTask extends Task<McpResourceReadTaskInput,
|
|
|
274
278
|
readonly cacheable: {
|
|
275
279
|
readonly type: "boolean";
|
|
276
280
|
};
|
|
281
|
+
readonly timeout: {
|
|
282
|
+
readonly type: "number";
|
|
283
|
+
readonly description: "Max execution time in milliseconds";
|
|
284
|
+
};
|
|
277
285
|
readonly inputSchema: {
|
|
278
286
|
readonly type: "object";
|
|
279
287
|
readonly properties: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpResourceReadTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpResourceReadTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EACJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"McpResourceReadTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpResourceReadTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EACJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBiB,CAAC;AA6BpC,QAAA,MAAM,WAAW;;;;CAIkB,CAAC;AAEpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYiB,CAAC;AAEpC,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACrF,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AACtE,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAExE,qBAAa,mBAAoB,SAAQ,IAAI,CAC3C,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,CAC1B;IACC,OAAc,IAAI,SAAyB;IAC3C,OAAc,QAAQ,SAAS;IAC/B,OAAc,KAAK,SAAuB;IAC1C,OAAc,WAAW,SAAyC;IAClE,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;IAClC,OAAc,YAAY,UAAQ;WAEpB,WAAW;;;;;WAIX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpB,OAAO,CACX,MAAM,EAAE,wBAAwB,EAChC,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,yBAAyB,CAAC;CAYtC;AAED,eAAO,MAAM,eAAe,GAC1B,QAAQ,yBAAyB,KAChC,OAAO,CAAC,yBAAyB,CAEnC,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,eAAe,EAAE,cAAc,CAC7B,wBAAwB,EACxB,yBAAyB,EACzB,yBAAyB,CAC1B,CAAC;KACH;CACF"}
|
|
@@ -59,6 +59,10 @@ declare const configSchema: {
|
|
|
59
59
|
readonly cacheable: {
|
|
60
60
|
readonly type: "boolean";
|
|
61
61
|
};
|
|
62
|
+
readonly timeout: {
|
|
63
|
+
readonly type: "number";
|
|
64
|
+
readonly description: "Max execution time in milliseconds";
|
|
65
|
+
};
|
|
62
66
|
readonly inputSchema: {
|
|
63
67
|
readonly type: "object";
|
|
64
68
|
readonly properties: {};
|
|
@@ -427,6 +431,10 @@ export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolC
|
|
|
427
431
|
readonly cacheable: {
|
|
428
432
|
readonly type: "boolean";
|
|
429
433
|
};
|
|
434
|
+
readonly timeout: {
|
|
435
|
+
readonly type: "number";
|
|
436
|
+
readonly description: "Max execution time in milliseconds";
|
|
437
|
+
};
|
|
430
438
|
readonly inputSchema: {
|
|
431
439
|
readonly type: "object";
|
|
432
440
|
readonly properties: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"McpToolCallTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpToolCallTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EACJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"McpToolCallTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpToolCallTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,cAAc,EACd,eAAe,EACf,IAAI,EACJ,UAAU,EAGX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBiB,CAAC;AAkIpC,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AACjF,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5D,qBAAa,eAAgB,SAAQ,IAAI,CACvC,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,CACtB;IACC,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAS;IAC/B,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,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
|
+
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
|
|
@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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, 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,EAC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ExecuteReactiveContext, 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 @@
|
|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+
* @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"],"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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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