@requence/task 1.0.0-alpha.4 → 1.0.0-alpha.41

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 (100) hide show
  1. package/CHANGELOG.md +222 -0
  2. package/build/chunk-y4v98p2s.js +53 -0
  3. package/build/chunk-y4v98p2s.js.map +10 -0
  4. package/build/cli.js +660 -158
  5. package/build/cli.js.map +28 -17
  6. package/build/index.js +865 -227
  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 +11 -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 +13 -0
  29. package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
  30. package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
  31. package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
  32. package/build/types/helpers/src/jsonschema/zod.d.ts +16 -0
  33. package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
  34. package/build/types/helpers/src/protocol/NodeTree.d.ts +479 -0
  35. package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
  36. package/build/types/helpers/src/protocol/command.d.ts +489 -0
  37. package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
  38. package/build/types/helpers/src/protocol/helpers.d.ts +7 -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 +169 -0
  43. package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
  44. package/build/types/helpers/src/protocol/taskOptions.d.ts +23 -0
  45. package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
  46. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +235 -0
  47. package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
  48. package/build/types/helpers/src/protocol/treeNodes.d.ts +832 -0
  49. package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
  50. package/build/types/helpers/src/protocol/update.d.ts +381 -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 +14 -103
  76. package/build/types/task/src/createTask.d.ts.map +1 -1
  77. package/build/types/task/src/getTask.d.ts +25 -0
  78. package/build/types/task/src/getTask.d.ts.map +1 -0
  79. package/build/types/task/src/index.d.ts +6 -1
  80. package/build/types/task/src/index.d.ts.map +1 -1
  81. package/build/types/task/src/recreateTask.d.ts +10 -0
  82. package/build/types/task/src/recreateTask.d.ts.map +1 -0
  83. package/build/types/task/src/types.d.ts +189 -941
  84. package/build/types/task/src/types.d.ts.map +1 -1
  85. package/build/types/task/src/utils/getAccessToken.d.ts.map +1 -1
  86. package/build/types/task/src/watchTasks.d.ts +13 -97
  87. package/build/types/task/src/watchTasks.d.ts.map +1 -1
  88. package/package.json +8 -7
  89. package/build/chunk-6pjtq0hg.js +0 -66
  90. package/build/chunk-6pjtq0hg.js.map +0 -12
  91. package/build/types/helpers/src/clone.d.ts +0 -3
  92. package/build/types/helpers/src/clone.d.ts.map +0 -1
  93. package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
  94. package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
  95. package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
  96. package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
  97. package/build/types/helpers/src/utils.d.ts.map +0 -1
  98. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts +0 -5
  99. package/build/types/task/src/utils/callbackToAsyncIterator.d.ts.map +0 -1
  100. /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,227 @@
1
1
  # @requence/task
2
2
 
3
+ ## 1.0.0-alpha.41
4
+
5
+ ### Patch Changes
6
+
7
+ - 409cb37: make statusText accessible
8
+
9
+ ## 1.0.0-alpha.40
10
+
11
+ ### Patch Changes
12
+
13
+ - e0f2d73: recreateTask api
14
+
15
+ ## 1.0.0-alpha.39
16
+
17
+ ### Patch Changes
18
+
19
+ - 230f9b9: don't reject promises that are not queried
20
+
21
+ ## 1.0.0-alpha.38
22
+
23
+ ### Patch Changes
24
+
25
+ - bfcb99d: update deployment
26
+
27
+ ## 1.0.0-alpha.37
28
+
29
+ ### Patch Changes
30
+
31
+ - 574829e: improved task service connection, fixed access token
32
+
33
+ ## 1.0.0-alpha.36
34
+
35
+ ### Patch Changes
36
+
37
+ - a068600: status should be UPPERCASE
38
+
39
+ ## 1.0.0-alpha.35
40
+
41
+ ### Patch Changes
42
+
43
+ - 2b0e652: allow task filtering for watch all
44
+
45
+ ## 1.0.0-alpha.34
46
+
47
+ ### Patch Changes
48
+
49
+ - 8ed981e: linting
50
+
51
+ ## 1.0.0-alpha.33
52
+
53
+ ### Patch Changes
54
+
55
+ - e4e137b: better auto reconnect
56
+
57
+ ## 1.0.0-alpha.32
58
+
59
+ ### Patch Changes
60
+
61
+ - c2e0e72: added root task id
62
+
63
+ ## 1.0.0-alpha.31
64
+
65
+ ### Patch Changes
66
+
67
+ - 4952eff: python types & bug fixes
68
+
69
+ ## 1.0.0-alpha.30
70
+
71
+ ### Patch Changes
72
+
73
+ - bda4a97: don't use wrong response for error handling
74
+
75
+ ## 1.0.0-alpha.29
76
+
77
+ ### Patch Changes
78
+
79
+ - e75841f: add missing callbacks
80
+
81
+ ## 1.0.0-alpha.28
82
+
83
+ ### Patch Changes
84
+
85
+ - f2a63fa: added missing type
86
+
87
+ ## 1.0.0-alpha.27
88
+
89
+ ### Patch Changes
90
+
91
+ - 63e3195: rerelease task package
92
+
93
+ ## 1.0.0-alpha.26
94
+
95
+ ### Patch Changes
96
+
97
+ - 14caa43: correctly transport task abort event
98
+
99
+ ## 1.0.0-alpha.25
100
+
101
+ ### Patch Changes
102
+
103
+ - 0c320ec: added task name and exit name infos
104
+
105
+ ## 1.0.0-alpha.24
106
+
107
+ ### Patch Changes
108
+
109
+ - 6c441e3: ensure task id gets resolved as early as possible
110
+
111
+ ## 1.0.0-alpha.23
112
+
113
+ ### Patch Changes
114
+
115
+ - 8743124: fixed type generation & schema resolution
116
+
117
+ ## 1.0.0-alpha.22
118
+
119
+ ### Patch Changes
120
+
121
+ - 817e7ee: granular data / sub tasks / operator logic
122
+
123
+ ## 1.0.0-alpha.21
124
+
125
+ ### Patch Changes
126
+
127
+ - bd65a2c: improved logging
128
+
129
+ ## 1.0.0-alpha.20
130
+
131
+ ### Patch Changes
132
+
133
+ - e83bf22: improve task updates
134
+
135
+ ## 1.0.0-alpha.19
136
+
137
+ ### Patch Changes
138
+
139
+ - 831c549: added abort reason
140
+
141
+ ## 1.0.0-alpha.18
142
+
143
+ ### Patch Changes
144
+
145
+ - 3e78516: allow task abort in task package
146
+
147
+ ## 1.0.0-alpha.17
148
+
149
+ ### Patch Changes
150
+
151
+ - 0a7c05f: include output name in update info
152
+
153
+ ## 1.0.0-alpha.16
154
+
155
+ ### Patch Changes
156
+
157
+ - 92ef7aa: include node info in all node related task updates
158
+
159
+ ## 1.0.0-alpha.15
160
+
161
+ ### Patch Changes
162
+
163
+ - 45d26fc: fixed task access token retrieval
164
+
165
+ ## 1.0.0-alpha.14
166
+
167
+ ### Patch Changes
168
+
169
+ - 3a5e3e2: allow more access token options
170
+
171
+ ## 1.0.0-alpha.13
172
+
173
+ ### Patch Changes
174
+
175
+ - dc413ab: deps update
176
+
177
+ ## 1.0.0-alpha.12
178
+
179
+ ### Patch Changes
180
+
181
+ - 77bc2ed: improved task creation and event order
182
+
183
+ ## 1.0.0-alpha.11
184
+
185
+ ### Patch Changes
186
+
187
+ - 300f7de: temporary upload as formdata
188
+
189
+ ## 1.0.0-alpha.10
190
+
191
+ ### Patch Changes
192
+
193
+ - 9dcaeae: fixed dependencies
194
+
195
+ ## 1.0.0-alpha.9
196
+
197
+ ### Patch Changes
198
+
199
+ - 1df3d43: improved typing
200
+
201
+ ## 1.0.0-alpha.8
202
+
203
+ ### Patch Changes
204
+
205
+ - 679cbaf: streams
206
+
207
+ ## 1.0.0-alpha.7
208
+
209
+ ### Patch Changes
210
+
211
+ - a464543: improved file matching algorithm
212
+
213
+ ## 1.0.0-alpha.6
214
+
215
+ ### Patch Changes
216
+
217
+ - 1d847ee: improved files handling
218
+
219
+ ## 1.0.0-alpha.5
220
+
221
+ ### Patch Changes
222
+
223
+ - f7ea7fa: added files support
224
+
3
225
  ## 1.0.0-alpha.4
4
226
 
5
227
  ### 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
+ }