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

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 (98) hide show
  1. package/CHANGELOG.md +168 -0
  2. package/build/chunk-y4v98p2s.js +53 -0
  3. package/build/chunk-y4v98p2s.js.map +10 -0
  4. package/build/cli.js +659 -157
  5. package/build/cli.js.map +28 -17
  6. package/build/index.js +799 -218
  7. package/build/index.js.map +20 -8
  8. package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
  9. package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
  10. package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
  11. package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
  12. package/build/types/helpers/src/files/fileObject.d.ts +16 -0
  13. package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
  14. package/build/types/helpers/src/files/index.d.ts +7 -0
  15. package/build/types/helpers/src/files/index.d.ts.map +1 -0
  16. package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
  17. package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
  18. package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
  19. package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
  20. package/build/types/helpers/src/files/streamObject.d.ts +14 -0
  21. package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
  22. package/build/types/helpers/src/files/types.d.ts +4 -0
  23. package/build/types/helpers/src/files/types.d.ts.map +1 -0
  24. package/build/types/helpers/src/index.d.ts +10 -6
  25. package/build/types/helpers/src/index.d.ts.map +1 -1
  26. package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
  27. package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
  28. package/build/types/helpers/src/jsonschema/types.d.ts +12 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +29 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +12 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +447 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +471 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +5 -0
  39. package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
  40. package/build/types/helpers/src/protocol/index.d.ts +8 -0
  41. package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
  42. package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
  45. package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/taskOptions.d.ts +22 -0
  47. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +636 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +354 -0
  51. package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
  52. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
  53. package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
  54. package/build/types/helpers/src/utils/clone.d.ts +3 -0
  55. package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
  56. package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
  57. package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
  58. package/build/types/helpers/src/{createRemotePromise.d.ts → utils/createRemotePromise.d.ts} +1 -1
  59. package/build/types/helpers/src/utils/createRemotePromise.d.ts.map +1 -0
  60. package/build/types/helpers/src/utils/isRecord.d.ts +2 -0
  61. package/build/types/helpers/src/utils/isRecord.d.ts.map +1 -0
  62. package/build/types/helpers/src/utils/mapData.d.ts +18 -0
  63. package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
  64. package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
  65. package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
  66. package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
  67. package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
  68. package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
  69. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
  70. package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
  71. package/build/types/helpers/src/utils/types.d.ts +4 -0
  72. package/build/types/helpers/src/utils/types.d.ts.map +1 -0
  73. package/build/types/task/src/abortTask.d.ts +8 -0
  74. package/build/types/task/src/abortTask.d.ts.map +1 -0
  75. package/build/types/task/src/createTask.d.ts +5 -102
  76. package/build/types/task/src/createTask.d.ts.map +1 -1
  77. package/build/types/task/src/getTask.d.ts +22 -0
  78. package/build/types/task/src/getTask.d.ts.map +1 -0
  79. package/build/types/task/src/index.d.ts +4 -0
  80. package/build/types/task/src/index.d.ts.map +1 -1
  81. package/build/types/task/src/types.d.ts +186 -938
  82. package/build/types/task/src/types.d.ts.map +1 -1
  83. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  84. package/build/types/task/src/watchTasks.d.ts +7 -97
  85. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  86. package/package.json +7 -5
  87. package/build/chunk-6pjtq0hg.js +0 -66
  88. package/build/chunk-6pjtq0hg.js.map +0 -12
  89. package/build/types/helpers/src/clone.d.ts +0 -3
  90. package/build/types/helpers/src/clone.d.ts.map +0 -1
  91. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  92. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  93. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  94. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  95. package/build/types/helpers/src/utils.d.ts.map +0 -1
  96. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  97. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  98. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,173 @@
1
1
  # @requence/task
2
2
 
3
+ ## 1.0.0-alpha.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 4952eff: python types & bug fixes
8
+
9
+ ## 1.0.0-alpha.30
10
+
11
+ ### Patch Changes
12
+
13
+ - bda4a97: don't use wrong response for error handling
14
+
15
+ ## 1.0.0-alpha.29
16
+
17
+ ### Patch Changes
18
+
19
+ - e75841f: add missing callbacks
20
+
21
+ ## 1.0.0-alpha.28
22
+
23
+ ### Patch Changes
24
+
25
+ - f2a63fa: added missing type
26
+
27
+ ## 1.0.0-alpha.27
28
+
29
+ ### Patch Changes
30
+
31
+ - 63e3195: rerelease task package
32
+
33
+ ## 1.0.0-alpha.26
34
+
35
+ ### Patch Changes
36
+
37
+ - 14caa43: correctly transport task abort event
38
+
39
+ ## 1.0.0-alpha.25
40
+
41
+ ### Patch Changes
42
+
43
+ - 0c320ec: added task name and exit name infos
44
+
45
+ ## 1.0.0-alpha.24
46
+
47
+ ### Patch Changes
48
+
49
+ - 6c441e3: ensure task id gets resolved as early as possible
50
+
51
+ ## 1.0.0-alpha.23
52
+
53
+ ### Patch Changes
54
+
55
+ - 8743124: fixed type generation & schema resolution
56
+
57
+ ## 1.0.0-alpha.22
58
+
59
+ ### Patch Changes
60
+
61
+ - 817e7ee: granular data / sub tasks / operator logic
62
+
63
+ ## 1.0.0-alpha.21
64
+
65
+ ### Patch Changes
66
+
67
+ - bd65a2c: improved logging
68
+
69
+ ## 1.0.0-alpha.20
70
+
71
+ ### Patch Changes
72
+
73
+ - e83bf22: improve task updates
74
+
75
+ ## 1.0.0-alpha.19
76
+
77
+ ### Patch Changes
78
+
79
+ - 831c549: added abort reason
80
+
81
+ ## 1.0.0-alpha.18
82
+
83
+ ### Patch Changes
84
+
85
+ - 3e78516: allow task abort in task package
86
+
87
+ ## 1.0.0-alpha.17
88
+
89
+ ### Patch Changes
90
+
91
+ - 0a7c05f: include output name in update info
92
+
93
+ ## 1.0.0-alpha.16
94
+
95
+ ### Patch Changes
96
+
97
+ - 92ef7aa: include node info in all node related task updates
98
+
99
+ ## 1.0.0-alpha.15
100
+
101
+ ### Patch Changes
102
+
103
+ - 45d26fc: fixed task access token retrieval
104
+
105
+ ## 1.0.0-alpha.14
106
+
107
+ ### Patch Changes
108
+
109
+ - 3a5e3e2: allow more access token options
110
+
111
+ ## 1.0.0-alpha.13
112
+
113
+ ### Patch Changes
114
+
115
+ - dc413ab: deps update
116
+
117
+ ## 1.0.0-alpha.12
118
+
119
+ ### Patch Changes
120
+
121
+ - 77bc2ed: improved task creation and event order
122
+
123
+ ## 1.0.0-alpha.11
124
+
125
+ ### Patch Changes
126
+
127
+ - 300f7de: temporary upload as formdata
128
+
129
+ ## 1.0.0-alpha.10
130
+
131
+ ### Patch Changes
132
+
133
+ - 9dcaeae: fixed dependencies
134
+
135
+ ## 1.0.0-alpha.9
136
+
137
+ ### Patch Changes
138
+
139
+ - 1df3d43: improved typing
140
+
141
+ ## 1.0.0-alpha.8
142
+
143
+ ### Patch Changes
144
+
145
+ - 679cbaf: streams
146
+
147
+ ## 1.0.0-alpha.7
148
+
149
+ ### Patch Changes
150
+
151
+ - a464543: improved file matching algorithm
152
+
153
+ ## 1.0.0-alpha.6
154
+
155
+ ### Patch Changes
156
+
157
+ - 1d847ee: improved files handling
158
+
159
+ ## 1.0.0-alpha.5
160
+
161
+ ### Patch Changes
162
+
163
+ - f7ea7fa: added files support
164
+
165
+ ## 1.0.0-alpha.4
166
+
167
+ ### Patch Changes
168
+
169
+ - 04ce4a9: improved caching and live queries
170
+
3
171
  ## 1.0.0-alpha.3
4
172
 
5
173
  ### Patch Changes
@@ -0,0 +1,53 @@
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);
18
+
19
+ // ../helpers/src/utils/obfuscate.ts
20
+ var separator = "";
21
+ var base65Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$";
22
+ var base65CharToIndex = {};
23
+ for (let i = 0;i < base65Chars.length; i++) {
24
+ base65CharToIndex[base65Chars[i]] = i;
25
+ }
26
+ function deobfuscate(str) {
27
+ const paddingCount = parseInt(str.slice(-1), 10);
28
+ str = str.slice(0, -1);
29
+ let binaryString = "";
30
+ for (let i = 0;i < str.length; i++) {
31
+ const decimalValue = base65CharToIndex[str[i]];
32
+ const binaryChunk = decimalValue.toString(2).padStart(6, "0");
33
+ binaryString += binaryChunk;
34
+ }
35
+ if (paddingCount > 0) {
36
+ binaryString = binaryString.slice(0, -paddingCount);
37
+ }
38
+ let decodedString = "";
39
+ const charSize = 16;
40
+ for (let i = 0;i < binaryString.length; i += charSize) {
41
+ const byte = binaryString.substring(i, i + charSize);
42
+ if (byte.length === 16) {
43
+ const charCode = parseInt(byte, 2);
44
+ decodedString += String.fromCharCode(charCode);
45
+ }
46
+ }
47
+ return decodedString.split(separator);
48
+ }
49
+
50
+ export { __toESM, __commonJS, deobfuscate };
51
+
52
+ //# debugId=F4AC4E0BD11B73B664756E2164756E21
53
+ //# sourceMappingURL=chunk-y4v98p2s.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../helpers/src/utils/obfuscate.ts"],
4
+ "sourcesContent": [
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
+ ],
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,OAAO,cAAc,MAAM,SAAS;AAAA;",
8
+ "debugId": "F4AC4E0BD11B73B664756E2164756E21",
9
+ "names": []
10
+ }