@platforma-sdk/workflow-tengo 4.18.1 → 5.0.0
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.
- package/dist/tengo/lib/exec.lib.tengo +55 -9
- package/dist/tengo/lib/feats.lib.tengo +4 -1
- package/dist/tengo/lib/ll.lib.tengo +9 -1
- package/dist/tengo/lib/pt.lib.tengo +1 -0
- package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
- package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
- package/dist/tengo/tpl/check_network.workdir_type_name_extractor.plj.gz +0 -0
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
- package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
- package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
- package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
- package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
- package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
- package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
- package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
ll := import("@platforma-sdk/workflow-tengo:ll")
|
|
6
|
-
feats := import("@platforma-sdk/workflow-tengo:feats")
|
|
7
6
|
validation := import("@platforma-sdk/workflow-tengo:validation")
|
|
8
7
|
|
|
9
8
|
assets := import("@platforma-sdk/workflow-tengo:assets")
|
|
@@ -145,13 +144,26 @@ builder := func() {
|
|
|
145
144
|
|
|
146
145
|
|
|
147
146
|
|
|
148
|
-
argWithVar: func(arg) {
|
|
149
|
-
ll.assert(is_string(arg), "exec.argWithVar(): argument with var must be a string, got: %v", arg)
|
|
150
147
|
|
|
151
148
|
|
|
152
|
-
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
argExpr: func(arg) {
|
|
164
|
+
ll.assert(is_string(arg), "exec.argExpr(): argument must be a string, got: %v", arg)
|
|
153
165
|
argsTyped = append(argsTyped, {
|
|
154
|
-
type:
|
|
166
|
+
type: execConstants.ARG_TYPE_EXPRESSION,
|
|
155
167
|
value: arg
|
|
156
168
|
})
|
|
157
169
|
typedArgSet = true
|
|
@@ -165,6 +177,16 @@ builder := func() {
|
|
|
165
177
|
|
|
166
178
|
|
|
167
179
|
|
|
180
|
+
argWithVar: func(arg) {
|
|
181
|
+
return self.argExpr(arg)
|
|
182
|
+
},
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
168
190
|
env: func(name, value) {
|
|
169
191
|
validation.assertType([name, value], ["string"])
|
|
170
192
|
envs[name] = value
|
|
@@ -182,13 +204,26 @@ builder := func() {
|
|
|
182
204
|
|
|
183
205
|
|
|
184
206
|
|
|
185
|
-
envWithVar: func(name, value) {
|
|
186
|
-
validation.assertType([name, value], ["string"])
|
|
187
207
|
|
|
188
208
|
|
|
189
|
-
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
envExpr: func(name, value) {
|
|
224
|
+
validation.assertType([name, value], ["string"])
|
|
190
225
|
envsTyped[name] = {
|
|
191
|
-
type:
|
|
226
|
+
type: execConstants.ARG_TYPE_EXPRESSION,
|
|
192
227
|
value: value
|
|
193
228
|
}
|
|
194
229
|
typedEnvSet = true
|
|
@@ -201,6 +236,17 @@ builder := func() {
|
|
|
201
236
|
|
|
202
237
|
|
|
203
238
|
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
envWithVar: func(name, value) {
|
|
242
|
+
return self.envExpr(name, value)
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
204
250
|
envMap: func(envMap) {
|
|
205
251
|
enum.each(envMap, self.env)
|
|
206
252
|
return self
|
|
@@ -420,6 +420,13 @@ base32HexDecode := func(s) {
|
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
getBlobSize := func(resourceID) {
|
|
426
|
+
assert(methodExists(plapi, "getBlobSize"), "ll.getBlobSize: method does not exists in this backend instance.")
|
|
427
|
+
return plapi.getBlobSize(resourceID)
|
|
428
|
+
}
|
|
429
|
+
|
|
423
430
|
export toStrict({
|
|
424
431
|
apiVersion: apiVersion,
|
|
425
432
|
print: print,
|
|
@@ -452,5 +459,6 @@ export toStrict({
|
|
|
452
459
|
base32Encode: base32Encode,
|
|
453
460
|
base32HexEncode: base32HexEncode,
|
|
454
461
|
base32Decode: base32Decode,
|
|
455
|
-
base32HexDecode: base32HexDecode
|
|
462
|
+
base32HexDecode: base32HexDecode,
|
|
463
|
+
getBlobSize: getBlobSize
|
|
456
464
|
})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|