@requence/task 1.0.0-alpha.31 → 1.0.0-alpha.32

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 (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/chunk-y4v98p2s.js.map +1 -1
  3. package/build/cli.js.map +1 -1
  4. package/build/index.js +20 -4
  5. package/build/index.js.map +4 -4
  6. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +1 -1
  7. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -1
  8. package/build/types/helpers/src/jsonschema/validate.d.ts +3 -0
  9. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
  10. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
  11. package/build/types/helpers/src/protocol/NodeTree.d.ts +592 -58
  12. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -1
  13. package/build/types/helpers/src/protocol/command.d.ts +418 -44
  14. package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
  15. package/build/types/helpers/src/protocol/index.d.ts +0 -1
  16. package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
  17. package/build/types/helpers/src/protocol/nodeType.d.ts +246 -101
  18. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -1
  19. package/build/types/helpers/src/protocol/taskOptions.d.ts +1 -0
  20. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -1
  21. package/build/types/helpers/src/protocol/treeNodes.d.ts +988 -100
  22. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -1
  23. package/build/types/helpers/src/protocol/update.d.ts +25 -0
  24. package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
  25. package/build/types/task/src/types.d.ts +2 -0
  26. package/build/types/task/src/types.d.ts.map +1 -1
  27. package/build/types/task/src/watchTasks.d.ts +6 -3
  28. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/build/types/helpers/src/protocol/targetNodes.d.ts +0 -253
  31. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +0 -1
  32. package/build/types/helpers/src/utils/types.d.ts +0 -4
  33. package/build/types/helpers/src/utils/types.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @requence/task
2
2
 
3
+ ## 1.0.0-alpha.32
4
+
5
+ ### Patch Changes
6
+
7
+ - c2e0e72: added root task id
8
+
3
9
  ## 1.0.0-alpha.31
4
10
 
5
11
  ### Patch Changes
@@ -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;AA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