@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
package/dist/browser.js CHANGED
@@ -852,6 +852,13 @@ var inputSchema12 = {
852
852
  title: "Timeout",
853
853
  description: "Request timeout in milliseconds"
854
854
  },
855
+ credential_key: {
856
+ type: "string",
857
+ format: "credential",
858
+ title: "Credential Key",
859
+ description: "Key to look up in the credential store. The resolved value is sent as a Bearer token in the Authorization header.",
860
+ "x-ui-hidden": true
861
+ },
855
862
  queue: {
856
863
  oneOf: [{ type: "boolean" }, { type: "string" }],
857
864
  description: "Queue handling: false=run inline, true=use default, string=explicit queue name",
@@ -959,13 +966,13 @@ class FetchUrlJob extends Job {
959
966
  }, async (progress) => await context.updateProgress(progress));
960
967
  if (response.ok) {
961
968
  const contentType = response.headers.get("content-type") ?? "";
962
- const headers = {};
969
+ const responseHeaders = {};
963
970
  response.headers.forEach((value, key) => {
964
- headers[key] = value;
971
+ responseHeaders[key] = value;
965
972
  });
966
973
  const metadata = {
967
974
  contentType,
968
- headers
975
+ headers: responseHeaders
969
976
  };
970
977
  let responseType = input.response_type;
971
978
  if (!responseType) {
@@ -1069,6 +1076,16 @@ class FetchUrlTask extends JobQueueTask {
1069
1076
  super(input, config);
1070
1077
  this.jobClass = FetchUrlJob;
1071
1078
  }
1079
+ async execute(input, executeContext) {
1080
+ const credential = input.credential_key;
1081
+ if (credential) {
1082
+ input = {
1083
+ ...input,
1084
+ headers: { ...input.headers, Authorization: `Bearer ${credential}` }
1085
+ };
1086
+ }
1087
+ return super.execute(input, executeContext);
1088
+ }
1072
1089
  setInput(input) {
1073
1090
  if (!("response_type" in input)) {
1074
1091
  super.setInput(input);
@@ -6046,14 +6063,326 @@ var split = (input2, config = {}) => {
6046
6063
  return task.run(input2);
6047
6064
  };
6048
6065
  Workflow20.prototype.split = CreateWorkflow19(SplitTask);
6066
+ // src/task/DateFormatTask.ts
6067
+ import {
6068
+ CreateWorkflow as CreateWorkflow20,
6069
+ Task as Task18,
6070
+ Workflow as Workflow21
6071
+ } from "@workglow/task-graph";
6072
+ var inputSchema18 = {
6073
+ type: "object",
6074
+ properties: {
6075
+ value: {
6076
+ type: "string",
6077
+ title: "Value",
6078
+ description: "Date string, ISO 8601 timestamp, or Unix timestamp in milliseconds"
6079
+ },
6080
+ format: {
6081
+ type: "string",
6082
+ title: "Format",
6083
+ enum: ["iso", "date", "time", "datetime", "unix"],
6084
+ description: "Output format: 'iso', 'date', 'time', 'datetime', 'unix'",
6085
+ default: "iso"
6086
+ },
6087
+ locale: {
6088
+ type: "string",
6089
+ title: "Locale",
6090
+ description: "Locale string (e.g. 'en-US')",
6091
+ default: "en-US"
6092
+ },
6093
+ timeZone: {
6094
+ type: "string",
6095
+ title: "Time Zone",
6096
+ description: "IANA time zone (e.g. 'America/New_York', 'UTC')"
6097
+ }
6098
+ },
6099
+ required: ["value"],
6100
+ additionalProperties: false
6101
+ };
6102
+ var outputSchema18 = {
6103
+ type: "object",
6104
+ properties: {
6105
+ result: {
6106
+ type: "string",
6107
+ title: "Result",
6108
+ description: "Formatted date string"
6109
+ }
6110
+ },
6111
+ required: ["result"],
6112
+ additionalProperties: false
6113
+ };
6114
+
6115
+ class DateFormatTask extends Task18 {
6116
+ static type = "DateFormatTask";
6117
+ static category = "Utility";
6118
+ static title = "Date Format";
6119
+ static description = "Parses and formats a date string";
6120
+ static inputSchema() {
6121
+ return inputSchema18;
6122
+ }
6123
+ static outputSchema() {
6124
+ return outputSchema18;
6125
+ }
6126
+ async executeReactive(input2, _output, _context) {
6127
+ const dateInput = /^\d+$/.test(input2.value) ? Number(input2.value) : input2.value;
6128
+ const date = new Date(dateInput);
6129
+ if (isNaN(date.getTime())) {
6130
+ throw new Error(`Invalid date: ${input2.value}`);
6131
+ }
6132
+ const format = input2.format ?? "iso";
6133
+ const locale = input2.locale;
6134
+ const timeZone = input2.timeZone;
6135
+ let result;
6136
+ switch (format) {
6137
+ case "iso":
6138
+ result = date.toISOString();
6139
+ break;
6140
+ case "date":
6141
+ result = date.toLocaleDateString(locale, timeZone ? { timeZone } : undefined);
6142
+ break;
6143
+ case "time":
6144
+ result = date.toLocaleTimeString(locale, timeZone ? { timeZone } : undefined);
6145
+ break;
6146
+ case "unix":
6147
+ result = String(date.getTime());
6148
+ break;
6149
+ case "datetime":
6150
+ default:
6151
+ result = date.toLocaleString(locale, timeZone ? { timeZone } : undefined);
6152
+ break;
6153
+ }
6154
+ return { result };
6155
+ }
6156
+ }
6157
+ Workflow21.prototype.dateFormat = CreateWorkflow20(DateFormatTask);
6158
+ // src/task/JsonPathTask.ts
6159
+ import {
6160
+ CreateWorkflow as CreateWorkflow21,
6161
+ Task as Task19,
6162
+ Workflow as Workflow22
6163
+ } from "@workglow/task-graph";
6164
+ var inputSchema19 = {
6165
+ type: "object",
6166
+ properties: {
6167
+ value: {
6168
+ title: "Value",
6169
+ description: "Input object or array to query"
6170
+ },
6171
+ path: {
6172
+ type: "string",
6173
+ title: "Path",
6174
+ description: "Dot-notation path to extract (e.g. 'a.b.c', 'items.0.name', 'items.*.name')"
6175
+ }
6176
+ },
6177
+ required: ["value", "path"],
6178
+ additionalProperties: false
6179
+ };
6180
+ var outputSchema19 = {
6181
+ type: "object",
6182
+ properties: {
6183
+ result: {
6184
+ title: "Result",
6185
+ description: "Extracted value(s) from the path"
6186
+ }
6187
+ },
6188
+ required: ["result"],
6189
+ additionalProperties: false
6190
+ };
6191
+ function resolvePath(obj, segments) {
6192
+ if (segments.length === 0)
6193
+ return obj;
6194
+ const [head, ...tail] = segments;
6195
+ if (head === "*") {
6196
+ if (Array.isArray(obj)) {
6197
+ return obj.map((item) => resolvePath(item, tail));
6198
+ }
6199
+ if (obj !== null && typeof obj === "object") {
6200
+ return Object.values(obj).map((v) => resolvePath(v, tail));
6201
+ }
6202
+ return;
6203
+ }
6204
+ if (obj === null || obj === undefined || typeof obj !== "object") {
6205
+ return;
6206
+ }
6207
+ const next2 = obj[head];
6208
+ return resolvePath(next2, tail);
6209
+ }
6210
+
6211
+ class JsonPathTask extends Task19 {
6212
+ static type = "JsonPathTask";
6213
+ static category = "Utility";
6214
+ static title = "JSON Path";
6215
+ static description = "Extracts a value from an object using a dot-notation path";
6216
+ static inputSchema() {
6217
+ return inputSchema19;
6218
+ }
6219
+ static outputSchema() {
6220
+ return outputSchema19;
6221
+ }
6222
+ async executeReactive(input2, _output, _context) {
6223
+ const segments = input2.path.split(".");
6224
+ const result = resolvePath(input2.value, segments);
6225
+ return { result };
6226
+ }
6227
+ }
6228
+ Workflow22.prototype.jsonPath = CreateWorkflow21(JsonPathTask);
6229
+ // src/task/RegexTask.ts
6230
+ import {
6231
+ CreateWorkflow as CreateWorkflow22,
6232
+ Task as Task20,
6233
+ Workflow as Workflow23
6234
+ } from "@workglow/task-graph";
6235
+ var inputSchema20 = {
6236
+ type: "object",
6237
+ properties: {
6238
+ value: {
6239
+ type: "string",
6240
+ title: "Value",
6241
+ description: "Input string to match against"
6242
+ },
6243
+ pattern: {
6244
+ type: "string",
6245
+ title: "Pattern",
6246
+ description: "Regular expression pattern"
6247
+ },
6248
+ flags: {
6249
+ type: "string",
6250
+ title: "Flags",
6251
+ description: "Regex flags (e.g. 'g', 'i', 'gi')",
6252
+ default: ""
6253
+ }
6254
+ },
6255
+ required: ["value", "pattern"],
6256
+ additionalProperties: false
6257
+ };
6258
+ var outputSchema20 = {
6259
+ type: "object",
6260
+ properties: {
6261
+ match: {
6262
+ type: "boolean",
6263
+ title: "Match",
6264
+ description: "Whether the pattern matched"
6265
+ },
6266
+ matches: {
6267
+ type: "array",
6268
+ items: { type: "string" },
6269
+ title: "Matches",
6270
+ description: "Array of matched strings (full matches when global, groups when not)"
6271
+ }
6272
+ },
6273
+ required: ["match", "matches"],
6274
+ additionalProperties: false
6275
+ };
6276
+
6277
+ class RegexTask extends Task20 {
6278
+ static type = "RegexTask";
6279
+ static category = "String";
6280
+ static title = "Regex";
6281
+ static description = "Matches a string against a regular expression pattern";
6282
+ static inputSchema() {
6283
+ return inputSchema20;
6284
+ }
6285
+ static outputSchema() {
6286
+ return outputSchema20;
6287
+ }
6288
+ async executeReactive(input2, _output, _context) {
6289
+ const flags = input2.flags ?? "";
6290
+ const regex = new RegExp(input2.pattern, flags);
6291
+ if (flags.includes("g")) {
6292
+ const allMatches = Array.from(input2.value.matchAll(new RegExp(input2.pattern, flags)));
6293
+ return {
6294
+ match: allMatches.length > 0,
6295
+ matches: allMatches.map((m) => m[0])
6296
+ };
6297
+ }
6298
+ const result = regex.exec(input2.value);
6299
+ if (!result) {
6300
+ return { match: false, matches: [] };
6301
+ }
6302
+ return {
6303
+ match: true,
6304
+ matches: result.slice(0)
6305
+ };
6306
+ }
6307
+ }
6308
+ Workflow23.prototype.regex = CreateWorkflow22(RegexTask);
6309
+ // src/task/TemplateTask.ts
6310
+ import {
6311
+ CreateWorkflow as CreateWorkflow23,
6312
+ Task as Task21,
6313
+ Workflow as Workflow24
6314
+ } from "@workglow/task-graph";
6315
+ var inputSchema21 = {
6316
+ type: "object",
6317
+ properties: {
6318
+ template: {
6319
+ type: "string",
6320
+ title: "Template",
6321
+ description: "Template string with {{key}} placeholders; supports {{key|default}} for defaults"
6322
+ },
6323
+ values: {
6324
+ type: "object",
6325
+ title: "Values",
6326
+ description: "Key-value pairs to substitute into the template",
6327
+ additionalProperties: true
6328
+ }
6329
+ },
6330
+ required: ["template", "values"],
6331
+ additionalProperties: false
6332
+ };
6333
+ var outputSchema21 = {
6334
+ type: "object",
6335
+ properties: {
6336
+ result: {
6337
+ type: "string",
6338
+ title: "Result",
6339
+ description: "Rendered template string"
6340
+ }
6341
+ },
6342
+ required: ["result"],
6343
+ additionalProperties: false
6344
+ };
6345
+
6346
+ class TemplateTask extends Task21 {
6347
+ static type = "TemplateTask";
6348
+ static category = "Utility";
6349
+ static title = "Template";
6350
+ static description = "Renders a template string with {{key}} placeholders and optional defaults";
6351
+ static inputSchema() {
6352
+ return inputSchema21;
6353
+ }
6354
+ static outputSchema() {
6355
+ return outputSchema21;
6356
+ }
6357
+ async executeReactive(input2, _output, _context) {
6358
+ const result = input2.template.replace(/\{\{([^}]+)\}\}/g, (_match, expr) => {
6359
+ const [path, defaultValue] = expr.split("|").map((s) => s.trim());
6360
+ const segments = path.split(".");
6361
+ let current = input2.values;
6362
+ for (const segment of segments) {
6363
+ if (current === null || current === undefined || typeof current !== "object") {
6364
+ current = undefined;
6365
+ break;
6366
+ }
6367
+ current = current[segment];
6368
+ }
6369
+ if (current !== undefined && current !== null) {
6370
+ return String(current);
6371
+ }
6372
+ return defaultValue !== undefined ? defaultValue : "";
6373
+ });
6374
+ return { result };
6375
+ }
6376
+ }
6377
+ Workflow24.prototype.template = CreateWorkflow23(TemplateTask);
6049
6378
  // src/task/mcp/McpListTask.ts
6050
- import { CreateWorkflow as CreateWorkflow20, Task as Task18, Workflow as Workflow21 } from "@workglow/task-graph";
6379
+ import { CreateWorkflow as CreateWorkflow24, Task as Task22, Workflow as Workflow25 } from "@workglow/task-graph";
6051
6380
  import {
6052
6381
  mcpClientFactory,
6053
6382
  mcpServerConfigSchema
6054
6383
  } from "@workglow/util";
6055
6384
  var mcpListTypes = ["tools", "resources", "prompts"];
6056
- var inputSchema18 = {
6385
+ var inputSchema22 = {
6057
6386
  type: "object",
6058
6387
  properties: {
6059
6388
  ...mcpServerConfigSchema,
@@ -6222,7 +6551,7 @@ var outputSchemaAll = {
6222
6551
  additionalProperties: false
6223
6552
  };
6224
6553
 
6225
- class McpListTask extends Task18 {
6554
+ class McpListTask extends Task22 {
6226
6555
  static type = "McpListTask";
6227
6556
  static category = "MCP";
6228
6557
  static title = "MCP List";
@@ -6230,7 +6559,7 @@ class McpListTask extends Task18 {
6230
6559
  static cacheable = false;
6231
6560
  static hasDynamicSchemas = true;
6232
6561
  static inputSchema() {
6233
- return inputSchema18;
6562
+ return inputSchema22;
6234
6563
  }
6235
6564
  static outputSchema() {
6236
6565
  return outputSchemaAll;
@@ -6290,13 +6619,13 @@ class McpListTask extends Task18 {
6290
6619
  var mcpList = async (input2, config = {}) => {
6291
6620
  return new McpListTask({}, config).run(input2);
6292
6621
  };
6293
- Workflow21.prototype.mcpList = CreateWorkflow20(McpListTask);
6622
+ Workflow25.prototype.mcpList = CreateWorkflow24(McpListTask);
6294
6623
  // src/task/mcp/McpPromptGetTask.ts
6295
6624
  import {
6296
- CreateWorkflow as CreateWorkflow21,
6297
- Task as Task19,
6625
+ CreateWorkflow as CreateWorkflow25,
6626
+ Task as Task23,
6298
6627
  TaskConfigSchema as TaskConfigSchema5,
6299
- Workflow as Workflow22
6628
+ Workflow as Workflow26
6300
6629
  } from "@workglow/task-graph";
6301
6630
  import {
6302
6631
  mcpClientFactory as mcpClientFactory2,
@@ -6453,7 +6782,7 @@ var fallbackInputSchema = {
6453
6782
  additionalProperties: false
6454
6783
  };
6455
6784
 
6456
- class McpPromptGetTask extends Task19 {
6785
+ class McpPromptGetTask extends Task23 {
6457
6786
  static type = "McpPromptGetTask";
6458
6787
  static category = "MCP";
6459
6788
  static title = "MCP Get Prompt";
@@ -6537,13 +6866,13 @@ class McpPromptGetTask extends Task19 {
6537
6866
  var mcpPromptGet = async (input2, config) => {
6538
6867
  return new McpPromptGetTask({}, config).run(input2);
6539
6868
  };
6540
- Workflow22.prototype.mcpPromptGet = CreateWorkflow21(McpPromptGetTask);
6869
+ Workflow26.prototype.mcpPromptGet = CreateWorkflow25(McpPromptGetTask);
6541
6870
  // src/task/mcp/McpResourceReadTask.ts
6542
6871
  import {
6543
- CreateWorkflow as CreateWorkflow22,
6544
- Task as Task20,
6872
+ CreateWorkflow as CreateWorkflow26,
6873
+ Task as Task24,
6545
6874
  TaskConfigSchema as TaskConfigSchema6,
6546
- Workflow as Workflow23
6875
+ Workflow as Workflow27
6547
6876
  } from "@workglow/task-graph";
6548
6877
  import {
6549
6878
  mcpClientFactory as mcpClientFactory3,
@@ -6593,12 +6922,12 @@ var contentItemSchema = {
6593
6922
  }
6594
6923
  ]
6595
6924
  };
6596
- var inputSchema19 = {
6925
+ var inputSchema23 = {
6597
6926
  type: "object",
6598
6927
  properties: {},
6599
6928
  additionalProperties: false
6600
6929
  };
6601
- var outputSchema18 = {
6930
+ var outputSchema22 = {
6602
6931
  type: "object",
6603
6932
  properties: {
6604
6933
  contents: {
@@ -6612,7 +6941,7 @@ var outputSchema18 = {
6612
6941
  additionalProperties: false
6613
6942
  };
6614
6943
 
6615
- class McpResourceReadTask extends Task20 {
6944
+ class McpResourceReadTask extends Task24 {
6616
6945
  static type = "McpResourceReadTask";
6617
6946
  static category = "MCP";
6618
6947
  static title = "MCP Read Resource";
@@ -6620,10 +6949,10 @@ class McpResourceReadTask extends Task20 {
6620
6949
  static cacheable = false;
6621
6950
  static customizable = true;
6622
6951
  static inputSchema() {
6623
- return inputSchema19;
6952
+ return inputSchema23;
6624
6953
  }
6625
6954
  static outputSchema() {
6626
- return outputSchema18;
6955
+ return outputSchema22;
6627
6956
  }
6628
6957
  static configSchema() {
6629
6958
  return configSchema3;
@@ -6641,13 +6970,13 @@ class McpResourceReadTask extends Task20 {
6641
6970
  var mcpResourceRead = async (config) => {
6642
6971
  return new McpResourceReadTask({}, config).run({});
6643
6972
  };
6644
- Workflow23.prototype.mcpResourceRead = CreateWorkflow22(McpResourceReadTask);
6973
+ Workflow27.prototype.mcpResourceRead = CreateWorkflow26(McpResourceReadTask);
6645
6974
  // src/task/mcp/McpToolCallTask.ts
6646
6975
  import {
6647
- CreateWorkflow as CreateWorkflow23,
6648
- Task as Task21,
6976
+ CreateWorkflow as CreateWorkflow27,
6977
+ Task as Task25,
6649
6978
  TaskConfigSchema as TaskConfigSchema7,
6650
- Workflow as Workflow24
6979
+ Workflow as Workflow28
6651
6980
  } from "@workglow/task-graph";
6652
6981
  import {
6653
6982
  mcpClientFactory as mcpClientFactory4,
@@ -6796,7 +7125,7 @@ var fallbackInputSchema2 = {
6796
7125
  additionalProperties: true
6797
7126
  };
6798
7127
 
6799
- class McpToolCallTask extends Task21 {
7128
+ class McpToolCallTask extends Task25 {
6800
7129
  static type = "McpToolCallTask";
6801
7130
  static category = "MCP";
6802
7131
  static title = "MCP Call Tool";
@@ -6895,69 +7224,575 @@ class McpToolCallTask extends Task21 {
6895
7224
  var mcpToolCall = async (input2, config) => {
6896
7225
  return new McpToolCallTask({}, config).run(input2);
6897
7226
  };
6898
- Workflow24.prototype.mcpToolCall = CreateWorkflow23(McpToolCallTask);
6899
- // src/task/scalar/ScalarAbsTask.ts
6900
- import { CreateWorkflow as CreateWorkflow24, Task as Task22, Workflow as Workflow25 } from "@workglow/task-graph";
6901
- var inputSchema20 = {
7227
+ Workflow28.prototype.mcpToolCall = CreateWorkflow27(McpToolCallTask);
7228
+ // src/task/string/StringConcatTask.ts
7229
+ import {
7230
+ CreateWorkflow as CreateWorkflow28,
7231
+ Task as Task26,
7232
+ Workflow as Workflow29
7233
+ } from "@workglow/task-graph";
7234
+ var inputSchema24 = {
6902
7235
  type: "object",
6903
- properties: {
6904
- value: {
6905
- type: "number",
6906
- title: "Value",
6907
- description: "Input number"
6908
- }
6909
- },
6910
- required: ["value"],
6911
- additionalProperties: false
7236
+ properties: {},
7237
+ additionalProperties: { type: "string" }
6912
7238
  };
6913
- var outputSchema19 = {
7239
+ var outputSchema23 = {
6914
7240
  type: "object",
6915
7241
  properties: {
6916
7242
  result: {
6917
- type: "number",
7243
+ type: "string",
6918
7244
  title: "Result",
6919
- description: "Absolute value"
7245
+ description: "Concatenation of all input strings"
6920
7246
  }
6921
7247
  },
6922
7248
  required: ["result"],
6923
7249
  additionalProperties: false
6924
7250
  };
6925
7251
 
6926
- class ScalarAbsTask extends Task22 {
6927
- static type = "ScalarAbsTask";
6928
- static category = "Math";
6929
- static title = "Abs";
6930
- static description = "Returns the absolute value of a number";
7252
+ class StringConcatTask extends Task26 {
7253
+ static type = "StringConcatTask";
7254
+ static category = "String";
7255
+ static title = "Concat";
7256
+ static description = "Concatenates all input strings";
6931
7257
  static inputSchema() {
6932
- return inputSchema20;
7258
+ return inputSchema24;
6933
7259
  }
6934
7260
  static outputSchema() {
6935
- return outputSchema19;
7261
+ return outputSchema23;
6936
7262
  }
6937
- async execute(input2, _context) {
6938
- return { result: Math.abs(input2.value) };
7263
+ async executeReactive(input2, _output, _context) {
7264
+ return { result: Object.values(input2).join("") };
6939
7265
  }
6940
7266
  }
6941
- Workflow25.prototype.scalarAbs = CreateWorkflow24(ScalarAbsTask);
6942
- // src/task/scalar/ScalarCeilTask.ts
6943
- import { CreateWorkflow as CreateWorkflow25, Task as Task23, Workflow as Workflow26 } from "@workglow/task-graph";
6944
- var inputSchema21 = {
7267
+ Workflow29.prototype.stringConcat = CreateWorkflow28(StringConcatTask);
7268
+ // src/task/string/StringIncludesTask.ts
7269
+ import {
7270
+ CreateWorkflow as CreateWorkflow29,
7271
+ Task as Task27,
7272
+ Workflow as Workflow30
7273
+ } from "@workglow/task-graph";
7274
+ var inputSchema25 = {
6945
7275
  type: "object",
6946
7276
  properties: {
6947
7277
  value: {
6948
- type: "number",
7278
+ type: "string",
6949
7279
  title: "Value",
6950
- description: "Input number"
7280
+ description: "Input string to search in"
7281
+ },
7282
+ search: {
7283
+ type: "string",
7284
+ title: "Search",
7285
+ description: "Substring to search for"
6951
7286
  }
6952
7287
  },
6953
- required: ["value"],
7288
+ required: ["value", "search"],
6954
7289
  additionalProperties: false
6955
7290
  };
6956
- var outputSchema20 = {
7291
+ var outputSchema24 = {
6957
7292
  type: "object",
6958
7293
  properties: {
6959
7294
  result: {
6960
- type: "number",
7295
+ type: "boolean",
7296
+ title: "Result",
7297
+ description: "Whether the string contains the search substring"
7298
+ }
7299
+ },
7300
+ required: ["result"],
7301
+ additionalProperties: false
7302
+ };
7303
+
7304
+ class StringIncludesTask extends Task27 {
7305
+ static type = "StringIncludesTask";
7306
+ static category = "String";
7307
+ static title = "Includes";
7308
+ static description = "Checks if a string contains a substring";
7309
+ static inputSchema() {
7310
+ return inputSchema25;
7311
+ }
7312
+ static outputSchema() {
7313
+ return outputSchema24;
7314
+ }
7315
+ async executeReactive(input2, output, _context) {
7316
+ return { result: input2.value.includes(input2.search) };
7317
+ }
7318
+ }
7319
+ Workflow30.prototype.stringIncludes = CreateWorkflow29(StringIncludesTask);
7320
+ // src/task/string/StringJoinTask.ts
7321
+ import {
7322
+ CreateWorkflow as CreateWorkflow30,
7323
+ Task as Task28,
7324
+ Workflow as Workflow31
7325
+ } from "@workglow/task-graph";
7326
+ var inputSchema26 = {
7327
+ type: "object",
7328
+ properties: {
7329
+ values: {
7330
+ type: "array",
7331
+ items: { type: "string" },
7332
+ title: "Values",
7333
+ description: "Array of strings to join"
7334
+ },
7335
+ separator: {
7336
+ type: "string",
7337
+ title: "Separator",
7338
+ description: "Separator between elements",
7339
+ default: ""
7340
+ }
7341
+ },
7342
+ required: ["values"],
7343
+ additionalProperties: false
7344
+ };
7345
+ var outputSchema25 = {
7346
+ type: "object",
7347
+ properties: {
7348
+ result: {
7349
+ type: "string",
7350
+ title: "Result",
7351
+ description: "Joined string"
7352
+ }
7353
+ },
7354
+ required: ["result"],
7355
+ additionalProperties: false
7356
+ };
7357
+
7358
+ class StringJoinTask extends Task28 {
7359
+ static type = "StringJoinTask";
7360
+ static category = "String";
7361
+ static title = "Join";
7362
+ static description = "Joins an array of strings with a separator";
7363
+ static inputSchema() {
7364
+ return inputSchema26;
7365
+ }
7366
+ static outputSchema() {
7367
+ return outputSchema25;
7368
+ }
7369
+ async executeReactive(input2, output, _context) {
7370
+ const separator = input2.separator ?? "";
7371
+ return { result: input2.values.join(separator) };
7372
+ }
7373
+ }
7374
+ Workflow31.prototype.stringJoin = CreateWorkflow30(StringJoinTask);
7375
+ // src/task/string/StringLengthTask.ts
7376
+ import {
7377
+ CreateWorkflow as CreateWorkflow31,
7378
+ Task as Task29,
7379
+ Workflow as Workflow32
7380
+ } from "@workglow/task-graph";
7381
+ var inputSchema27 = {
7382
+ type: "object",
7383
+ properties: {
7384
+ value: {
7385
+ type: "string",
7386
+ title: "Value",
7387
+ description: "Input string"
7388
+ }
7389
+ },
7390
+ required: ["value"],
7391
+ additionalProperties: false
7392
+ };
7393
+ var outputSchema26 = {
7394
+ type: "object",
7395
+ properties: {
7396
+ result: {
7397
+ type: "integer",
7398
+ title: "Result",
7399
+ description: "Length of the string"
7400
+ }
7401
+ },
7402
+ required: ["result"],
7403
+ additionalProperties: false
7404
+ };
7405
+
7406
+ class StringLengthTask extends Task29 {
7407
+ static type = "StringLengthTask";
7408
+ static category = "String";
7409
+ static title = "Length";
7410
+ static description = "Returns the length of a string";
7411
+ static inputSchema() {
7412
+ return inputSchema27;
7413
+ }
7414
+ static outputSchema() {
7415
+ return outputSchema26;
7416
+ }
7417
+ async executeReactive(input2, output, _context) {
7418
+ return { result: input2.value.length };
7419
+ }
7420
+ }
7421
+ Workflow32.prototype.stringLength = CreateWorkflow31(StringLengthTask);
7422
+ // src/task/string/StringLowerCaseTask.ts
7423
+ import {
7424
+ CreateWorkflow as CreateWorkflow32,
7425
+ Task as Task30,
7426
+ Workflow as Workflow33
7427
+ } from "@workglow/task-graph";
7428
+ var inputSchema28 = {
7429
+ type: "object",
7430
+ properties: {
7431
+ value: {
7432
+ type: "string",
7433
+ title: "Value",
7434
+ description: "Input string"
7435
+ }
7436
+ },
7437
+ required: ["value"],
7438
+ additionalProperties: false
7439
+ };
7440
+ var outputSchema27 = {
7441
+ type: "object",
7442
+ properties: {
7443
+ result: {
7444
+ type: "string",
7445
+ title: "Result",
7446
+ description: "Lowercased string"
7447
+ }
7448
+ },
7449
+ required: ["result"],
7450
+ additionalProperties: false
7451
+ };
7452
+
7453
+ class StringLowerCaseTask extends Task30 {
7454
+ static type = "StringLowerCaseTask";
7455
+ static category = "String";
7456
+ static title = "Lower Case";
7457
+ static description = "Converts a string to lower case";
7458
+ static inputSchema() {
7459
+ return inputSchema28;
7460
+ }
7461
+ static outputSchema() {
7462
+ return outputSchema27;
7463
+ }
7464
+ async executeReactive(input2, output, _context) {
7465
+ return { result: input2.value.toLowerCase() };
7466
+ }
7467
+ }
7468
+ Workflow33.prototype.stringLowerCase = CreateWorkflow32(StringLowerCaseTask);
7469
+ // src/task/string/StringReplaceTask.ts
7470
+ import {
7471
+ CreateWorkflow as CreateWorkflow33,
7472
+ Task as Task31,
7473
+ Workflow as Workflow34
7474
+ } from "@workglow/task-graph";
7475
+ var inputSchema29 = {
7476
+ type: "object",
7477
+ properties: {
7478
+ value: {
7479
+ type: "string",
7480
+ title: "Value",
7481
+ description: "Input string"
7482
+ },
7483
+ search: {
7484
+ type: "string",
7485
+ title: "Search",
7486
+ description: "Substring to search for"
7487
+ },
7488
+ replace: {
7489
+ type: "string",
7490
+ title: "Replace",
7491
+ description: "Replacement string"
7492
+ }
7493
+ },
7494
+ required: ["value", "search", "replace"],
7495
+ additionalProperties: false
7496
+ };
7497
+ var outputSchema28 = {
7498
+ type: "object",
7499
+ properties: {
7500
+ result: {
7501
+ type: "string",
7502
+ title: "Result",
7503
+ description: "String with all occurrences replaced"
7504
+ }
7505
+ },
7506
+ required: ["result"],
7507
+ additionalProperties: false
7508
+ };
7509
+
7510
+ class StringReplaceTask extends Task31 {
7511
+ static type = "StringReplaceTask";
7512
+ static category = "String";
7513
+ static title = "Replace";
7514
+ static description = "Replaces all occurrences of a substring";
7515
+ static inputSchema() {
7516
+ return inputSchema29;
7517
+ }
7518
+ static outputSchema() {
7519
+ return outputSchema28;
7520
+ }
7521
+ async executeReactive(input2, output, _context) {
7522
+ return { result: input2.value.replaceAll(input2.search, input2.replace) };
7523
+ }
7524
+ }
7525
+ Workflow34.prototype.stringReplace = CreateWorkflow33(StringReplaceTask);
7526
+ // src/task/string/StringSliceTask.ts
7527
+ import {
7528
+ CreateWorkflow as CreateWorkflow34,
7529
+ Task as Task32,
7530
+ Workflow as Workflow35
7531
+ } from "@workglow/task-graph";
7532
+ var inputSchema30 = {
7533
+ type: "object",
7534
+ properties: {
7535
+ value: {
7536
+ type: "string",
7537
+ title: "Value",
7538
+ description: "Input string"
7539
+ },
7540
+ start: {
7541
+ type: "integer",
7542
+ title: "Start",
7543
+ description: "Start index (inclusive, supports negative indexing)"
7544
+ },
7545
+ end: {
7546
+ type: "integer",
7547
+ title: "End",
7548
+ description: "End index (exclusive, supports negative indexing)"
7549
+ }
7550
+ },
7551
+ required: ["value", "start"],
7552
+ additionalProperties: false
7553
+ };
7554
+ var outputSchema29 = {
7555
+ type: "object",
7556
+ properties: {
7557
+ result: {
7558
+ type: "string",
7559
+ title: "Result",
7560
+ description: "Extracted substring"
7561
+ }
7562
+ },
7563
+ required: ["result"],
7564
+ additionalProperties: false
7565
+ };
7566
+
7567
+ class StringSliceTask extends Task32 {
7568
+ static type = "StringSliceTask";
7569
+ static category = "String";
7570
+ static title = "Slice";
7571
+ static description = "Extracts a substring by start and optional end index";
7572
+ static inputSchema() {
7573
+ return inputSchema30;
7574
+ }
7575
+ static outputSchema() {
7576
+ return outputSchema29;
7577
+ }
7578
+ async executeReactive(input2, output, _context) {
7579
+ return { result: input2.value.slice(input2.start, input2.end) };
7580
+ }
7581
+ }
7582
+ Workflow35.prototype.stringSlice = CreateWorkflow34(StringSliceTask);
7583
+ // src/task/string/StringTemplateTask.ts
7584
+ import {
7585
+ CreateWorkflow as CreateWorkflow35,
7586
+ Task as Task33,
7587
+ Workflow as Workflow36
7588
+ } from "@workglow/task-graph";
7589
+ var inputSchema31 = {
7590
+ type: "object",
7591
+ properties: {
7592
+ template: {
7593
+ type: "string",
7594
+ title: "Template",
7595
+ description: "Template string with {{key}} placeholders"
7596
+ },
7597
+ values: {
7598
+ type: "object",
7599
+ title: "Values",
7600
+ description: "Key-value pairs to substitute into the template",
7601
+ additionalProperties: true
7602
+ }
7603
+ },
7604
+ required: ["template", "values"],
7605
+ additionalProperties: false
7606
+ };
7607
+ var outputSchema30 = {
7608
+ type: "object",
7609
+ properties: {
7610
+ result: {
7611
+ type: "string",
7612
+ title: "Result",
7613
+ description: "Template with placeholders replaced by values"
7614
+ }
7615
+ },
7616
+ required: ["result"],
7617
+ additionalProperties: false
7618
+ };
7619
+
7620
+ class StringTemplateTask extends Task33 {
7621
+ static type = "StringTemplateTask";
7622
+ static category = "String";
7623
+ static title = "Template";
7624
+ static description = "Replaces {{key}} placeholders in a template string with values";
7625
+ static inputSchema() {
7626
+ return inputSchema31;
7627
+ }
7628
+ static outputSchema() {
7629
+ return outputSchema30;
7630
+ }
7631
+ async executeReactive(input2, output, _context) {
7632
+ let result = input2.template;
7633
+ for (const [key, value] of Object.entries(input2.values)) {
7634
+ result = result.replaceAll(`{{${key}}}`, String(value));
7635
+ }
7636
+ return { result };
7637
+ }
7638
+ }
7639
+ Workflow36.prototype.stringTemplate = CreateWorkflow35(StringTemplateTask);
7640
+ // src/task/string/StringTrimTask.ts
7641
+ import {
7642
+ CreateWorkflow as CreateWorkflow36,
7643
+ Task as Task34,
7644
+ Workflow as Workflow37
7645
+ } from "@workglow/task-graph";
7646
+ var inputSchema32 = {
7647
+ type: "object",
7648
+ properties: {
7649
+ value: {
7650
+ type: "string",
7651
+ title: "Value",
7652
+ description: "Input string"
7653
+ }
7654
+ },
7655
+ required: ["value"],
7656
+ additionalProperties: false
7657
+ };
7658
+ var outputSchema31 = {
7659
+ type: "object",
7660
+ properties: {
7661
+ result: {
7662
+ type: "string",
7663
+ title: "Result",
7664
+ description: "Trimmed string"
7665
+ }
7666
+ },
7667
+ required: ["result"],
7668
+ additionalProperties: false
7669
+ };
7670
+
7671
+ class StringTrimTask extends Task34 {
7672
+ static type = "StringTrimTask";
7673
+ static category = "String";
7674
+ static title = "Trim";
7675
+ static description = "Removes leading and trailing whitespace from a string";
7676
+ static inputSchema() {
7677
+ return inputSchema32;
7678
+ }
7679
+ static outputSchema() {
7680
+ return outputSchema31;
7681
+ }
7682
+ async executeReactive(input2, output, _context) {
7683
+ return { result: input2.value.trim() };
7684
+ }
7685
+ }
7686
+ Workflow37.prototype.stringTrim = CreateWorkflow36(StringTrimTask);
7687
+ // src/task/string/StringUpperCaseTask.ts
7688
+ import {
7689
+ CreateWorkflow as CreateWorkflow37,
7690
+ Task as Task35,
7691
+ Workflow as Workflow38
7692
+ } from "@workglow/task-graph";
7693
+ var inputSchema33 = {
7694
+ type: "object",
7695
+ properties: {
7696
+ value: {
7697
+ type: "string",
7698
+ title: "Value",
7699
+ description: "Input string"
7700
+ }
7701
+ },
7702
+ required: ["value"],
7703
+ additionalProperties: false
7704
+ };
7705
+ var outputSchema32 = {
7706
+ type: "object",
7707
+ properties: {
7708
+ result: {
7709
+ type: "string",
7710
+ title: "Result",
7711
+ description: "Uppercased string"
7712
+ }
7713
+ },
7714
+ required: ["result"],
7715
+ additionalProperties: false
7716
+ };
7717
+
7718
+ class StringUpperCaseTask extends Task35 {
7719
+ static type = "StringUpperCaseTask";
7720
+ static category = "String";
7721
+ static title = "Upper Case";
7722
+ static description = "Converts a string to upper case";
7723
+ static inputSchema() {
7724
+ return inputSchema33;
7725
+ }
7726
+ static outputSchema() {
7727
+ return outputSchema32;
7728
+ }
7729
+ async executeReactive(input2, output, _context) {
7730
+ return { result: input2.value.toUpperCase() };
7731
+ }
7732
+ }
7733
+ Workflow38.prototype.stringUpperCase = CreateWorkflow37(StringUpperCaseTask);
7734
+ // src/task/scalar/ScalarAbsTask.ts
7735
+ import { CreateWorkflow as CreateWorkflow38, Task as Task36, Workflow as Workflow39 } from "@workglow/task-graph";
7736
+ var inputSchema34 = {
7737
+ type: "object",
7738
+ properties: {
7739
+ value: {
7740
+ type: "number",
7741
+ title: "Value",
7742
+ description: "Input number"
7743
+ }
7744
+ },
7745
+ required: ["value"],
7746
+ additionalProperties: false
7747
+ };
7748
+ var outputSchema33 = {
7749
+ type: "object",
7750
+ properties: {
7751
+ result: {
7752
+ type: "number",
7753
+ title: "Result",
7754
+ description: "Absolute value"
7755
+ }
7756
+ },
7757
+ required: ["result"],
7758
+ additionalProperties: false
7759
+ };
7760
+
7761
+ class ScalarAbsTask extends Task36 {
7762
+ static type = "ScalarAbsTask";
7763
+ static category = "Math";
7764
+ static title = "Abs";
7765
+ static description = "Returns the absolute value of a number";
7766
+ static inputSchema() {
7767
+ return inputSchema34;
7768
+ }
7769
+ static outputSchema() {
7770
+ return outputSchema33;
7771
+ }
7772
+ async execute(input2, _context) {
7773
+ return { result: Math.abs(input2.value) };
7774
+ }
7775
+ }
7776
+ Workflow39.prototype.scalarAbs = CreateWorkflow38(ScalarAbsTask);
7777
+ // src/task/scalar/ScalarCeilTask.ts
7778
+ import { CreateWorkflow as CreateWorkflow39, Task as Task37, Workflow as Workflow40 } from "@workglow/task-graph";
7779
+ var inputSchema35 = {
7780
+ type: "object",
7781
+ properties: {
7782
+ value: {
7783
+ type: "number",
7784
+ title: "Value",
7785
+ description: "Input number"
7786
+ }
7787
+ },
7788
+ required: ["value"],
7789
+ additionalProperties: false
7790
+ };
7791
+ var outputSchema34 = {
7792
+ type: "object",
7793
+ properties: {
7794
+ result: {
7795
+ type: "number",
6961
7796
  title: "Result",
6962
7797
  description: "Ceiling value"
6963
7798
  }
@@ -6966,25 +7801,25 @@ var outputSchema20 = {
6966
7801
  additionalProperties: false
6967
7802
  };
6968
7803
 
6969
- class ScalarCeilTask extends Task23 {
7804
+ class ScalarCeilTask extends Task37 {
6970
7805
  static type = "ScalarCeilTask";
6971
7806
  static category = "Math";
6972
7807
  static title = "Ceil";
6973
7808
  static description = "Returns the smallest integer greater than or equal to a number";
6974
7809
  static inputSchema() {
6975
- return inputSchema21;
7810
+ return inputSchema35;
6976
7811
  }
6977
7812
  static outputSchema() {
6978
- return outputSchema20;
7813
+ return outputSchema34;
6979
7814
  }
6980
7815
  async execute(input2, _context) {
6981
7816
  return { result: Math.ceil(input2.value) };
6982
7817
  }
6983
7818
  }
6984
- Workflow26.prototype.scalarCeil = CreateWorkflow25(ScalarCeilTask);
7819
+ Workflow40.prototype.scalarCeil = CreateWorkflow39(ScalarCeilTask);
6985
7820
  // src/task/scalar/ScalarFloorTask.ts
6986
- import { CreateWorkflow as CreateWorkflow26, Task as Task24, Workflow as Workflow27 } from "@workglow/task-graph";
6987
- var inputSchema22 = {
7821
+ import { CreateWorkflow as CreateWorkflow40, Task as Task38, Workflow as Workflow41 } from "@workglow/task-graph";
7822
+ var inputSchema36 = {
6988
7823
  type: "object",
6989
7824
  properties: {
6990
7825
  value: {
@@ -6996,7 +7831,7 @@ var inputSchema22 = {
6996
7831
  required: ["value"],
6997
7832
  additionalProperties: false
6998
7833
  };
6999
- var outputSchema21 = {
7834
+ var outputSchema35 = {
7000
7835
  type: "object",
7001
7836
  properties: {
7002
7837
  result: {
@@ -7009,25 +7844,25 @@ var outputSchema21 = {
7009
7844
  additionalProperties: false
7010
7845
  };
7011
7846
 
7012
- class ScalarFloorTask extends Task24 {
7847
+ class ScalarFloorTask extends Task38 {
7013
7848
  static type = "ScalarFloorTask";
7014
7849
  static category = "Math";
7015
7850
  static title = "Floor";
7016
7851
  static description = "Returns the largest integer less than or equal to a number";
7017
7852
  static inputSchema() {
7018
- return inputSchema22;
7853
+ return inputSchema36;
7019
7854
  }
7020
7855
  static outputSchema() {
7021
- return outputSchema21;
7856
+ return outputSchema35;
7022
7857
  }
7023
7858
  async execute(input2, _context) {
7024
7859
  return { result: Math.floor(input2.value) };
7025
7860
  }
7026
7861
  }
7027
- Workflow27.prototype.scalarFloor = CreateWorkflow26(ScalarFloorTask);
7862
+ Workflow41.prototype.scalarFloor = CreateWorkflow40(ScalarFloorTask);
7028
7863
  // src/task/scalar/ScalarMaxTask.ts
7029
- import { CreateWorkflow as CreateWorkflow27, Task as Task25, Workflow as Workflow28 } from "@workglow/task-graph";
7030
- var inputSchema23 = {
7864
+ import { CreateWorkflow as CreateWorkflow41, Task as Task39, Workflow as Workflow42 } from "@workglow/task-graph";
7865
+ var inputSchema37 = {
7031
7866
  type: "object",
7032
7867
  properties: {
7033
7868
  values: {
@@ -7040,7 +7875,7 @@ var inputSchema23 = {
7040
7875
  required: ["values"],
7041
7876
  additionalProperties: false
7042
7877
  };
7043
- var outputSchema22 = {
7878
+ var outputSchema36 = {
7044
7879
  type: "object",
7045
7880
  properties: {
7046
7881
  result: {
@@ -7053,25 +7888,25 @@ var outputSchema22 = {
7053
7888
  additionalProperties: false
7054
7889
  };
7055
7890
 
7056
- class ScalarMaxTask extends Task25 {
7891
+ class ScalarMaxTask extends Task39 {
7057
7892
  static type = "ScalarMaxTask";
7058
7893
  static category = "Math";
7059
7894
  static title = "Max";
7060
7895
  static description = "Returns the largest of the given numbers";
7061
7896
  static inputSchema() {
7062
- return inputSchema23;
7897
+ return inputSchema37;
7063
7898
  }
7064
7899
  static outputSchema() {
7065
- return outputSchema22;
7900
+ return outputSchema36;
7066
7901
  }
7067
7902
  async execute(input2, _context) {
7068
7903
  return { result: Math.max(...input2.values) };
7069
7904
  }
7070
7905
  }
7071
- Workflow28.prototype.scalarMax = CreateWorkflow27(ScalarMaxTask);
7906
+ Workflow42.prototype.scalarMax = CreateWorkflow41(ScalarMaxTask);
7072
7907
  // src/task/scalar/ScalarMinTask.ts
7073
- import { CreateWorkflow as CreateWorkflow28, Task as Task26, Workflow as Workflow29 } from "@workglow/task-graph";
7074
- var inputSchema24 = {
7908
+ import { CreateWorkflow as CreateWorkflow42, Task as Task40, Workflow as Workflow43 } from "@workglow/task-graph";
7909
+ var inputSchema38 = {
7075
7910
  type: "object",
7076
7911
  properties: {
7077
7912
  values: {
@@ -7084,7 +7919,7 @@ var inputSchema24 = {
7084
7919
  required: ["values"],
7085
7920
  additionalProperties: false
7086
7921
  };
7087
- var outputSchema23 = {
7922
+ var outputSchema37 = {
7088
7923
  type: "object",
7089
7924
  properties: {
7090
7925
  result: {
@@ -7097,25 +7932,25 @@ var outputSchema23 = {
7097
7932
  additionalProperties: false
7098
7933
  };
7099
7934
 
7100
- class ScalarMinTask extends Task26 {
7935
+ class ScalarMinTask extends Task40 {
7101
7936
  static type = "ScalarMinTask";
7102
7937
  static category = "Math";
7103
7938
  static title = "Min";
7104
7939
  static description = "Returns the smallest of the given numbers";
7105
7940
  static inputSchema() {
7106
- return inputSchema24;
7941
+ return inputSchema38;
7107
7942
  }
7108
7943
  static outputSchema() {
7109
- return outputSchema23;
7944
+ return outputSchema37;
7110
7945
  }
7111
7946
  async execute(input2, _context) {
7112
7947
  return { result: Math.min(...input2.values) };
7113
7948
  }
7114
7949
  }
7115
- Workflow29.prototype.scalarMin = CreateWorkflow28(ScalarMinTask);
7950
+ Workflow43.prototype.scalarMin = CreateWorkflow42(ScalarMinTask);
7116
7951
  // src/task/scalar/ScalarRoundTask.ts
7117
- import { CreateWorkflow as CreateWorkflow29, Task as Task27, Workflow as Workflow30 } from "@workglow/task-graph";
7118
- var inputSchema25 = {
7952
+ import { CreateWorkflow as CreateWorkflow43, Task as Task41, Workflow as Workflow44 } from "@workglow/task-graph";
7953
+ var inputSchema39 = {
7119
7954
  type: "object",
7120
7955
  properties: {
7121
7956
  value: {
@@ -7127,7 +7962,7 @@ var inputSchema25 = {
7127
7962
  required: ["value"],
7128
7963
  additionalProperties: false
7129
7964
  };
7130
- var outputSchema24 = {
7965
+ var outputSchema38 = {
7131
7966
  type: "object",
7132
7967
  properties: {
7133
7968
  result: {
@@ -7140,25 +7975,25 @@ var outputSchema24 = {
7140
7975
  additionalProperties: false
7141
7976
  };
7142
7977
 
7143
- class ScalarRoundTask extends Task27 {
7978
+ class ScalarRoundTask extends Task41 {
7144
7979
  static type = "ScalarRoundTask";
7145
7980
  static category = "Math";
7146
7981
  static title = "Round";
7147
7982
  static description = "Returns the value of a number rounded to the nearest integer";
7148
7983
  static inputSchema() {
7149
- return inputSchema25;
7984
+ return inputSchema39;
7150
7985
  }
7151
7986
  static outputSchema() {
7152
- return outputSchema24;
7987
+ return outputSchema38;
7153
7988
  }
7154
7989
  async execute(input2, _context) {
7155
7990
  return { result: Math.round(input2.value) };
7156
7991
  }
7157
7992
  }
7158
- Workflow30.prototype.scalarRound = CreateWorkflow29(ScalarRoundTask);
7993
+ Workflow44.prototype.scalarRound = CreateWorkflow43(ScalarRoundTask);
7159
7994
  // src/task/scalar/ScalarTruncTask.ts
7160
- import { CreateWorkflow as CreateWorkflow30, Task as Task28, Workflow as Workflow31 } from "@workglow/task-graph";
7161
- var inputSchema26 = {
7995
+ import { CreateWorkflow as CreateWorkflow44, Task as Task42, Workflow as Workflow45 } from "@workglow/task-graph";
7996
+ var inputSchema40 = {
7162
7997
  type: "object",
7163
7998
  properties: {
7164
7999
  value: {
@@ -7170,7 +8005,7 @@ var inputSchema26 = {
7170
8005
  required: ["value"],
7171
8006
  additionalProperties: false
7172
8007
  };
7173
- var outputSchema25 = {
8008
+ var outputSchema39 = {
7174
8009
  type: "object",
7175
8010
  properties: {
7176
8011
  result: {
@@ -7183,28 +8018,28 @@ var outputSchema25 = {
7183
8018
  additionalProperties: false
7184
8019
  };
7185
8020
 
7186
- class ScalarTruncTask extends Task28 {
8021
+ class ScalarTruncTask extends Task42 {
7187
8022
  static type = "ScalarTruncTask";
7188
8023
  static category = "Math";
7189
8024
  static title = "Truncate";
7190
8025
  static description = "Returns the integer part of a number by removing fractional digits";
7191
8026
  static inputSchema() {
7192
- return inputSchema26;
8027
+ return inputSchema40;
7193
8028
  }
7194
8029
  static outputSchema() {
7195
- return outputSchema25;
8030
+ return outputSchema39;
7196
8031
  }
7197
8032
  async execute(input2, _context) {
7198
8033
  return { result: Math.trunc(input2.value) };
7199
8034
  }
7200
8035
  }
7201
- Workflow31.prototype.scalarTrunc = CreateWorkflow30(ScalarTruncTask);
8036
+ Workflow45.prototype.scalarTrunc = CreateWorkflow44(ScalarTruncTask);
7202
8037
  // src/task/vector/VectorDistanceTask.ts
7203
- import { CreateWorkflow as CreateWorkflow31, Task as Task29, Workflow as Workflow32 } from "@workglow/task-graph";
8038
+ import { CreateWorkflow as CreateWorkflow45, Task as Task43, Workflow as Workflow46 } from "@workglow/task-graph";
7204
8039
  import {
7205
8040
  TypedArraySchema as TypedArraySchema5
7206
8041
  } from "@workglow/util";
7207
- var inputSchema27 = {
8042
+ var inputSchema41 = {
7208
8043
  type: "object",
7209
8044
  properties: {
7210
8045
  vectors: {
@@ -7220,7 +8055,7 @@ var inputSchema27 = {
7220
8055
  required: ["vectors"],
7221
8056
  additionalProperties: false
7222
8057
  };
7223
- var outputSchema26 = {
8058
+ var outputSchema40 = {
7224
8059
  type: "object",
7225
8060
  properties: {
7226
8061
  result: {
@@ -7233,16 +8068,16 @@ var outputSchema26 = {
7233
8068
  additionalProperties: false
7234
8069
  };
7235
8070
 
7236
- class VectorDistanceTask extends Task29 {
8071
+ class VectorDistanceTask extends Task43 {
7237
8072
  static type = "VectorDistanceTask";
7238
8073
  static category = "Vector";
7239
8074
  static title = "Distance";
7240
8075
  static description = "Returns the Euclidean distance between the first two vectors";
7241
8076
  static inputSchema() {
7242
- return inputSchema27;
8077
+ return inputSchema41;
7243
8078
  }
7244
8079
  static outputSchema() {
7245
- return outputSchema26;
8080
+ return outputSchema40;
7246
8081
  }
7247
8082
  async execute(input2, _context) {
7248
8083
  const { vectors } = input2;
@@ -7260,13 +8095,13 @@ class VectorDistanceTask extends Task29 {
7260
8095
  return { result: Math.sqrt(sumPrecise(diffs)) };
7261
8096
  }
7262
8097
  }
7263
- Workflow32.prototype.vectorDistance = CreateWorkflow31(VectorDistanceTask);
8098
+ Workflow46.prototype.vectorDistance = CreateWorkflow45(VectorDistanceTask);
7264
8099
  // src/task/vector/VectorDotProductTask.ts
7265
- import { CreateWorkflow as CreateWorkflow32, Task as Task30, Workflow as Workflow33 } from "@workglow/task-graph";
8100
+ import { CreateWorkflow as CreateWorkflow46, Task as Task44, Workflow as Workflow47 } from "@workglow/task-graph";
7266
8101
  import {
7267
8102
  TypedArraySchema as TypedArraySchema6
7268
8103
  } from "@workglow/util";
7269
- var inputSchema28 = {
8104
+ var inputSchema42 = {
7270
8105
  type: "object",
7271
8106
  properties: {
7272
8107
  vectors: {
@@ -7282,7 +8117,7 @@ var inputSchema28 = {
7282
8117
  required: ["vectors"],
7283
8118
  additionalProperties: false
7284
8119
  };
7285
- var outputSchema27 = {
8120
+ var outputSchema41 = {
7286
8121
  type: "object",
7287
8122
  properties: {
7288
8123
  result: {
@@ -7295,16 +8130,16 @@ var outputSchema27 = {
7295
8130
  additionalProperties: false
7296
8131
  };
7297
8132
 
7298
- class VectorDotProductTask extends Task30 {
8133
+ class VectorDotProductTask extends Task44 {
7299
8134
  static type = "VectorDotProductTask";
7300
8135
  static category = "Vector";
7301
8136
  static title = "Dot Product";
7302
8137
  static description = "Returns the dot (inner) product of the first two vectors";
7303
8138
  static inputSchema() {
7304
- return inputSchema28;
8139
+ return inputSchema42;
7305
8140
  }
7306
8141
  static outputSchema() {
7307
- return outputSchema27;
8142
+ return outputSchema41;
7308
8143
  }
7309
8144
  async execute(input2, _context) {
7310
8145
  const { vectors } = input2;
@@ -7319,14 +8154,14 @@ class VectorDotProductTask extends Task30 {
7319
8154
  return { result: sumPrecise(products) };
7320
8155
  }
7321
8156
  }
7322
- Workflow33.prototype.vectorDotProduct = CreateWorkflow32(VectorDotProductTask);
8157
+ Workflow47.prototype.vectorDotProduct = CreateWorkflow46(VectorDotProductTask);
7323
8158
  // src/task/vector/VectorNormalizeTask.ts
7324
- import { CreateWorkflow as CreateWorkflow33, Task as Task31, Workflow as Workflow34 } from "@workglow/task-graph";
8159
+ import { CreateWorkflow as CreateWorkflow47, Task as Task45, Workflow as Workflow48 } from "@workglow/task-graph";
7325
8160
  import {
7326
8161
  TypedArraySchema as TypedArraySchema7,
7327
8162
  normalize
7328
8163
  } from "@workglow/util";
7329
- var inputSchema29 = {
8164
+ var inputSchema43 = {
7330
8165
  type: "object",
7331
8166
  properties: {
7332
8167
  vector: TypedArraySchema7({
@@ -7337,7 +8172,7 @@ var inputSchema29 = {
7337
8172
  required: ["vector"],
7338
8173
  additionalProperties: false
7339
8174
  };
7340
- var outputSchema28 = {
8175
+ var outputSchema42 = {
7341
8176
  type: "object",
7342
8177
  properties: {
7343
8178
  result: TypedArraySchema7({
@@ -7349,29 +8184,29 @@ var outputSchema28 = {
7349
8184
  additionalProperties: false
7350
8185
  };
7351
8186
 
7352
- class VectorNormalizeTask extends Task31 {
8187
+ class VectorNormalizeTask extends Task45 {
7353
8188
  static type = "VectorNormalizeTask";
7354
8189
  static category = "Vector";
7355
8190
  static title = "Normalize";
7356
8191
  static description = "Returns the L2-normalized (unit length) vector";
7357
8192
  static inputSchema() {
7358
- return inputSchema29;
8193
+ return inputSchema43;
7359
8194
  }
7360
8195
  static outputSchema() {
7361
- return outputSchema28;
8196
+ return outputSchema42;
7362
8197
  }
7363
8198
  async execute(input2, _context) {
7364
8199
  return { result: normalize(input2.vector) };
7365
8200
  }
7366
8201
  }
7367
- Workflow34.prototype.vectorNormalize = CreateWorkflow33(VectorNormalizeTask);
8202
+ Workflow48.prototype.vectorNormalize = CreateWorkflow47(VectorNormalizeTask);
7368
8203
  // src/task/vector/VectorScaleTask.ts
7369
- import { CreateWorkflow as CreateWorkflow34, Task as Task32, Workflow as Workflow35 } from "@workglow/task-graph";
8204
+ import { CreateWorkflow as CreateWorkflow48, Task as Task46, Workflow as Workflow49 } from "@workglow/task-graph";
7370
8205
  import {
7371
8206
  createTypedArrayFrom as createTypedArrayFrom5,
7372
8207
  TypedArraySchema as TypedArraySchema8
7373
8208
  } from "@workglow/util";
7374
- var inputSchema30 = {
8209
+ var inputSchema44 = {
7375
8210
  type: "object",
7376
8211
  properties: {
7377
8212
  vector: TypedArraySchema8({
@@ -7387,7 +8222,7 @@ var inputSchema30 = {
7387
8222
  required: ["vector", "scalar"],
7388
8223
  additionalProperties: false
7389
8224
  };
7390
- var outputSchema29 = {
8225
+ var outputSchema43 = {
7391
8226
  type: "object",
7392
8227
  properties: {
7393
8228
  result: TypedArraySchema8({
@@ -7399,16 +8234,16 @@ var outputSchema29 = {
7399
8234
  additionalProperties: false
7400
8235
  };
7401
8236
 
7402
- class VectorScaleTask extends Task32 {
8237
+ class VectorScaleTask extends Task46 {
7403
8238
  static type = "VectorScaleTask";
7404
8239
  static category = "Vector";
7405
8240
  static title = "Scale";
7406
8241
  static description = "Multiplies each element of a vector by a scalar";
7407
8242
  static inputSchema() {
7408
- return inputSchema30;
8243
+ return inputSchema44;
7409
8244
  }
7410
8245
  static outputSchema() {
7411
- return outputSchema29;
8246
+ return outputSchema43;
7412
8247
  }
7413
8248
  async execute(input2, _context) {
7414
8249
  const { vector, scalar } = input2;
@@ -7416,7 +8251,7 @@ class VectorScaleTask extends Task32 {
7416
8251
  return { result: createTypedArrayFrom5([vector], values) };
7417
8252
  }
7418
8253
  }
7419
- Workflow35.prototype.vectorScale = CreateWorkflow34(VectorScaleTask);
8254
+ Workflow49.prototype.vectorScale = CreateWorkflow48(VectorScaleTask);
7420
8255
 
7421
8256
  // src/common.ts
7422
8257
  import { TaskRegistry } from "@workglow/task-graph";
@@ -7455,7 +8290,21 @@ var registerCommonTasks = () => {
7455
8290
  McpToolCallTask,
7456
8291
  McpResourceReadTask,
7457
8292
  McpPromptGetTask,
7458
- McpListTask
8293
+ McpListTask,
8294
+ StringConcatTask,
8295
+ StringIncludesTask,
8296
+ StringJoinTask,
8297
+ StringLengthTask,
8298
+ StringLowerCaseTask,
8299
+ StringReplaceTask,
8300
+ StringSliceTask,
8301
+ StringTemplateTask,
8302
+ StringTrimTask,
8303
+ StringUpperCaseTask,
8304
+ JsonPathTask,
8305
+ TemplateTask,
8306
+ DateFormatTask,
8307
+ RegexTask
7459
8308
  ];
7460
8309
  tasks.map(TaskRegistry.registerTask);
7461
8310
  return tasks;
@@ -7463,13 +8312,13 @@ var registerCommonTasks = () => {
7463
8312
 
7464
8313
  // src/task/FileLoaderTask.ts
7465
8314
  import {
7466
- CreateWorkflow as CreateWorkflow35,
7467
- Task as Task33,
8315
+ CreateWorkflow as CreateWorkflow49,
8316
+ Task as Task47,
7468
8317
  TaskAbortedError as TaskAbortedError2,
7469
- Workflow as Workflow36
8318
+ Workflow as Workflow50
7470
8319
  } from "@workglow/task-graph";
7471
8320
  import Papa from "papaparse";
7472
- var inputSchema31 = {
8321
+ var inputSchema45 = {
7473
8322
  type: "object",
7474
8323
  properties: {
7475
8324
  url: {
@@ -7489,7 +8338,7 @@ var inputSchema31 = {
7489
8338
  required: ["url"],
7490
8339
  additionalProperties: false
7491
8340
  };
7492
- var outputSchema30 = {
8341
+ var outputSchema44 = {
7493
8342
  type: "object",
7494
8343
  properties: {
7495
8344
  text: {
@@ -7540,17 +8389,17 @@ var outputSchema30 = {
7540
8389
  additionalProperties: false
7541
8390
  };
7542
8391
 
7543
- class FileLoaderTask extends Task33 {
8392
+ class FileLoaderTask extends Task47 {
7544
8393
  static type = "FileLoaderTask";
7545
8394
  static category = "Document";
7546
8395
  static title = "File Loader";
7547
8396
  static description = "Load documents from URLs (http://, https://)";
7548
8397
  static cacheable = true;
7549
8398
  static inputSchema() {
7550
- return inputSchema31;
8399
+ return inputSchema45;
7551
8400
  }
7552
8401
  static outputSchema() {
7553
- return outputSchema30;
8402
+ return outputSchema44;
7554
8403
  }
7555
8404
  async execute(input2, context) {
7556
8405
  const { url, format = "auto" } = input2;
@@ -7906,7 +8755,7 @@ class FileLoaderTask extends Task33 {
7906
8755
  var fileLoader = (input2, config) => {
7907
8756
  return new FileLoaderTask({}, config).run(input2);
7908
8757
  };
7909
- Workflow36.prototype.fileLoader = CreateWorkflow35(FileLoaderTask);
8758
+ Workflow50.prototype.fileLoader = CreateWorkflow49(FileLoaderTask);
7910
8759
 
7911
8760
  // src/browser.ts
7912
8761
  var registerCommonTasks2 = () => {
@@ -7940,6 +8789,17 @@ export {
7940
8789
  VectorDivideTask,
7941
8790
  VectorDistanceTask,
7942
8791
  TypeReplicateArray,
8792
+ TemplateTask,
8793
+ StringUpperCaseTask,
8794
+ StringTrimTask,
8795
+ StringTemplateTask,
8796
+ StringSliceTask,
8797
+ StringReplaceTask,
8798
+ StringLowerCaseTask,
8799
+ StringLengthTask,
8800
+ StringJoinTask,
8801
+ StringIncludesTask,
8802
+ StringConcatTask,
7943
8803
  SplitTask,
7944
8804
  ScalarTruncTask,
7945
8805
  ScalarSumTask,
@@ -7953,6 +8813,7 @@ export {
7953
8813
  ScalarCeilTask,
7954
8814
  ScalarAddTask,
7955
8815
  ScalarAbsTask,
8816
+ RegexTask,
7956
8817
  OutputTask,
7957
8818
  MergeTask,
7958
8819
  McpToolCallTask,
@@ -7961,6 +8822,7 @@ export {
7961
8822
  McpListTask,
7962
8823
  LambdaTask,
7963
8824
  JsonTask,
8825
+ JsonPathTask,
7964
8826
  JavaScriptTask,
7965
8827
  InputTask,
7966
8828
  FileLoaderTask,
@@ -7968,7 +8830,8 @@ export {
7968
8830
  FetchUrlJob,
7969
8831
  DelayTask,
7970
8832
  DebugLogTask,
8833
+ DateFormatTask,
7971
8834
  ArrayTask
7972
8835
  };
7973
8836
 
7974
- //# debugId=5804C9302124181F64756E2164756E21
8837
+ //# debugId=67A37FA9D5F521AA64756E2164756E21