@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,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: "Uppercased string";
27
+ };
28
+ };
29
+ readonly required: readonly ["result"];
30
+ readonly additionalProperties: false;
31
+ };
32
+ export type StringUpperCaseTaskInput = FromSchema<typeof inputSchema>;
33
+ export type StringUpperCaseTaskOutput = FromSchema<typeof outputSchema>;
34
+ export declare class StringUpperCaseTask<Input extends StringUpperCaseTaskInput = StringUpperCaseTaskInput, Output extends StringUpperCaseTaskOutput = StringUpperCaseTaskOutput, Config extends TaskConfig = TaskConfig> extends Task<Input, Output, Config> {
35
+ static readonly type = "StringUpperCaseTask";
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: "Uppercased 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
+ stringUpperCase: CreateWorkflow<StringUpperCaseTaskInput, StringUpperCaseTaskOutput, TaskConfig>;
68
+ }
69
+ }
70
+ export {};
71
+ //# sourceMappingURL=StringUpperCaseTask.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringUpperCaseTask.d.ts","sourceRoot":"","sources":["../../../src/task/string/StringUpperCaseTask.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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@workglow/tasks",
3
3
  "type": "module",
4
- "version": "0.0.103",
4
+ "version": "0.0.104",
5
5
  "description": "Pre-built task implementations for Workglow, including common AI operations and utility functions.",
6
6
  "scripts": {
7
7
  "watch": "concurrently -c 'auto' 'bun:watch-*'",
@@ -36,10 +36,10 @@
36
36
  "access": "public"
37
37
  },
38
38
  "peerDependencies": {
39
- "@workglow/task-graph": "0.0.103",
40
- "@workglow/util": "0.0.103",
41
- "@workglow/job-queue": "0.0.103",
42
- "@workglow/storage": "0.0.103"
39
+ "@workglow/task-graph": "0.0.104",
40
+ "@workglow/util": "0.0.104",
41
+ "@workglow/job-queue": "0.0.104",
42
+ "@workglow/storage": "0.0.104"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "@workglow/task-graph": {
@@ -57,10 +57,10 @@
57
57
  },
58
58
  "devDependencies": {
59
59
  "@types/papaparse": "^5.5.2",
60
- "@workglow/job-queue": "0.0.103",
61
- "@workglow/storage": "0.0.103",
62
- "@workglow/task-graph": "0.0.103",
63
- "@workglow/util": "0.0.103"
60
+ "@workglow/job-queue": "0.0.104",
61
+ "@workglow/storage": "0.0.104",
62
+ "@workglow/task-graph": "0.0.104",
63
+ "@workglow/util": "0.0.104"
64
64
  },
65
65
  "dependencies": {
66
66
  "papaparse": "^5.5.3"