@requence/task 1.0.0-alpha.21 → 1.0.0-alpha.22

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 (71) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/{chunk-xdx5gf9h.js → chunk-y4v98p2s.js} +20 -5
  3. package/build/{chunk-xdx5gf9h.js.map → chunk-y4v98p2s.js.map} +2 -2
  4. package/build/cli.js +643 -137
  5. package/build/cli.js.map +27 -16
  6. package/build/index.js +194 -236
  7. package/build/index.js.map +12 -13
  8. package/build/types/helpers/src/files/fileObject.d.ts +2 -12
  9. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -1
  10. package/build/types/helpers/src/files/mapOutput.d.ts +1 -1
  11. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -1
  12. package/build/types/helpers/src/files/streamObject.d.ts +2 -10
  13. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -1
  14. package/build/types/helpers/src/index.d.ts +1 -0
  15. package/build/types/helpers/src/index.d.ts.map +1 -1
  16. package/build/types/helpers/src/jsonschema/validate.d.ts +1 -0
  17. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  18. package/build/types/helpers/src/jsonschema/zod.d.ts +4 -12
  19. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  20. package/build/types/helpers/src/protocol/NodeTree.d.ts +504 -0
  21. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  22. package/build/types/helpers/src/protocol/NodesError.d.ts +5 -0
  23. package/build/types/helpers/src/protocol/NodesError.d.ts.map +1 -0
  24. package/build/types/helpers/src/protocol/command.d.ts +373 -1954
  25. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  26. package/build/types/helpers/src/protocol/index.d.ts +5 -7
  27. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  28. package/build/types/helpers/src/protocol/nodeOptions.d.ts +16 -0
  29. package/build/types/helpers/src/protocol/nodeOptions.d.ts.map +1 -0
  30. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  31. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  32. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  33. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
  35. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/update.d.ts +182 -17892
  37. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  38. package/build/types/helpers/src/utils/mapData.d.ts +4 -0
  39. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
  40. package/build/types/helpers/src/utils/matchSchema.d.ts +1 -1
  41. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
  42. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +2 -0
  43. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  44. package/build/types/helpers/src/utils/types.d.ts +4 -0
  45. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  46. package/build/types/task/src/createTask.d.ts.map +1 -1
  47. package/build/types/task/src/types.d.ts +114 -5103
  48. package/build/types/task/src/types.d.ts.map +1 -1
  49. package/build/types/task/src/watchTasks.d.ts +3 -1
  50. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  51. package/package.json +2 -2
  52. package/build/types/helpers/src/context/context.d.ts +0 -156
  53. package/build/types/helpers/src/context/context.d.ts.map +0 -1
  54. package/build/types/helpers/src/context/index.d.ts +0 -2
  55. package/build/types/helpers/src/context/index.d.ts.map +0 -1
  56. package/build/types/helpers/src/protocol/createNodeMaps.d.ts +0 -10
  57. package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +0 -1
  58. package/build/types/helpers/src/protocol/getCycles.d.ts +0 -3
  59. package/build/types/helpers/src/protocol/getCycles.d.ts.map +0 -1
  60. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +0 -4
  61. package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +0 -1
  62. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +0 -9
  63. package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +0 -1
  64. package/build/types/helpers/src/protocol/identifyNode.d.ts +0 -4
  65. package/build/types/helpers/src/protocol/identifyNode.d.ts.map +0 -1
  66. package/build/types/helpers/src/protocol/node.d.ts +0 -1014
  67. package/build/types/helpers/src/protocol/node.d.ts.map +0 -1
  68. package/build/types/helpers/src/protocol/nodes.d.ts +0 -801
  69. package/build/types/helpers/src/protocol/nodes.d.ts.map +0 -1
  70. package/build/types/task/src/utils/mapOutput.d.ts +0 -2
  71. package/build/types/task/src/utils/mapOutput.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @requence/task
2
2
 
3
+ ## 1.0.0-alpha.22
4
+
5
+ ### Patch Changes
6
+
7
+ - 817e7ee: granular data / sub tasks / operator logic
8
+
3
9
  ## 1.0.0-alpha.21
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,20 @@
1
- import { createRequire } from "node:module";
2
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
1
+ var __create = Object.create;
2
+ var __getProtoOf = Object.getPrototypeOf;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __toESM = (mod, isNodeMode, target) => {
7
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
8
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
9
+ for (let key of __getOwnPropNames(mod))
10
+ if (!__hasOwnProp.call(to, key))
11
+ __defProp(to, key, {
12
+ get: () => mod[key],
13
+ enumerable: true
14
+ });
15
+ return to;
16
+ };
17
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
3
18
 
4
19
  // ../helpers/src/utils/obfuscate.ts
5
20
  var separator = "";
@@ -32,7 +47,7 @@ function deobfuscate(str) {
32
47
  return decodedString.split(separator);
33
48
  }
34
49
 
35
- export { __require, deobfuscate };
50
+ export { __toESM, __commonJS, deobfuscate };
36
51
 
37
- //# debugId=90C7C9F66B80C00664756E2164756E21
38
- //# sourceMappingURL=chunk-xdx5gf9h.js.map
52
+ //# debugId=F4AC4E0BD11B73B664756E2164756E21
53
+ //# sourceMappingURL=chunk-y4v98p2s.js.map
@@ -4,7 +4,7 @@
4
4
  "sourcesContent": [
5
5
  "const separator = '\\u{f6ee}'\n\nconst base65Chars =\n 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$'\n\nconst base65CharToIndex: Record<string, number> = {}\nfor (let i = 0; i < base65Chars.length; i++) {\n base65CharToIndex[base65Chars[i]] = i\n}\n\nexport function obfuscate(...parts: Array<string>) {\n const str = parts.join(separator)\n let binaryString = ''\n\n for (let i = 0; i < str.length; i++) {\n const charCode = str.charCodeAt(i)\n binaryString += charCode.toString(2).padStart(16, '0')\n }\n\n let encodedString = ''\n const chunkSize = 6\n let paddingCount = 0\n\n for (let i = 0; i < binaryString.length; i += chunkSize) {\n let chunk = binaryString.substring(i, i + chunkSize)\n\n if (chunk.length < chunkSize) {\n paddingCount = chunkSize - chunk.length\n chunk = chunk.padEnd(chunkSize, '0')\n }\n\n const decimalValue = parseInt(chunk, 2)\n encodedString += base65Chars[decimalValue]\n }\n\n return encodedString + paddingCount.toString()\n}\n\nexport function randomString(length: number) {\n const randomValues = new Uint8Array(length)\n crypto.getRandomValues(randomValues)\n\n let randomString = ''\n for (let i = 0; i < length; i++) {\n randomString += base65Chars[randomValues[i] % base65Chars.length]\n }\n\n return randomString\n}\n\nexport function deobfuscate(str: string) {\n const paddingCount = parseInt(str.slice(-1), 10)\n str = str.slice(0, -1)\n\n let binaryString = ''\n\n for (let i = 0; i < str.length; i++) {\n const decimalValue = base65CharToIndex[str[i]]\n const binaryChunk = decimalValue.toString(2).padStart(6, '0')\n binaryString += binaryChunk\n }\n\n if (paddingCount > 0) {\n binaryString = binaryString.slice(0, -paddingCount)\n }\n\n let decodedString = ''\n const charSize = 16\n\n for (let i = 0; i < binaryString.length; i += charSize) {\n const byte = binaryString.substring(i, i + charSize)\n if (byte.length === 16) {\n const charCode = parseInt(byte, 2)\n decodedString += String.fromCharCode(charCode)\n }\n }\n\n return decodedString.split(separator)\n}\n"
6
6
  ],
7
- "mappings": ";;;;AAAA,IAAM,YAAY;AAElB,IAAM,cACJ;AAEF,IAAM,oBAA4C,CAAC;AACnD,SAAS,IAAI,EAAG,IAAI,YAAY,QAAQ,KAAK;AAAA,EAC3C,kBAAkB,YAAY,MAAM;AACtC;AA0CO,SAAS,WAAW,CAAC,KAAa;AAAA,EACvC,MAAM,eAAe,SAAS,IAAI,MAAM,EAAE,GAAG,EAAE;AAAA,EAC/C,MAAM,IAAI,MAAM,GAAG,EAAE;AAAA,EAErB,IAAI,eAAe;AAAA,EAEnB,SAAS,IAAI,EAAG,IAAI,IAAI,QAAQ,KAAK;AAAA,IACnC,MAAM,eAAe,kBAAkB,IAAI;AAAA,IAC3C,MAAM,cAAc,aAAa,SAAS,CAAC,EAAE,SAAS,GAAG,GAAG;AAAA,IAC5D,gBAAgB;AAAA,EAClB;AAAA,EAEA,IAAI,eAAe,GAAG;AAAA,IACpB,eAAe,aAAa,MAAM,IAAI,YAAY;AAAA,EACpD;AAAA,EAEA,IAAI,gBAAgB;AAAA,EACpB,MAAM,WAAW;AAAA,EAEjB,SAAS,IAAI,EAAG,IAAI,aAAa,QAAQ,KAAK,UAAU;AAAA,IACtD,MAAM,OAAO,aAAa,UAAU,GAAG,IAAI,QAAQ;AAAA,IACnD,IAAI,KAAK,WAAW,IAAI;AAAA,MACtB,MAAM,WAAW,SAAS,MAAM,CAAC;AAAA,MACjC,iBAAiB,OAAO,aAAa,QAAQ;AAAA,IAC/C;AAAA,EACF;AAAA,EAEA,OA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