@platforma-sdk/workflow-tengo 2.15.11 → 2.15.13
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.monetization.lib.tengo +6 -4
- package/dist/tengo/lib/exec.monetization_internal.lib.tengo +13 -0
- package/dist/tengo/lib/pframes.lib.tengo +2 -2
- package/dist/tengo/lib/pframes.spec.lib.tengo +3 -1
- package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
- package/dist/tengo/tpl/exec.exec.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/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.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.process-pcolumn-data.plj.gz +0 -0
- package/dist/tengo/tpl/pframes.remove-nulls.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/package.json +3 -3
|
@@ -74,8 +74,9 @@ builder := func(productKey) {
|
|
|
74
74
|
addFile: func(file, params) {
|
|
75
75
|
ll.assert(smart.isReference(file), "monetization.builder().addFile: file must be a reference")
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
fileName := monetization.argNameForLastRun(mnz, params.arg)
|
|
78
|
+
filesToAdd[fileName] = file
|
|
79
|
+
monetization.addArgToLastRun(mnz, fileName, params)
|
|
79
80
|
|
|
80
81
|
return self
|
|
81
82
|
},
|
|
@@ -95,8 +96,9 @@ builder := func(productKey) {
|
|
|
95
96
|
"bytes",
|
|
96
97
|
validation.reference])
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
fileName := monetization.argNameForLastRun(mnz, params.arg)
|
|
100
|
+
filesToWrite[fileName] = data
|
|
101
|
+
monetization.addArgToLastRun(mnz, fileName, params)
|
|
100
102
|
|
|
101
103
|
return self
|
|
102
104
|
},
|
|
@@ -169,6 +169,18 @@ addArgToLastRun := func(mnz, fileName, arg) {
|
|
|
169
169
|
mnz.runs[len(mnz.runs) - 1][fileName] = arg
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
argNameForLastRun := func(mnz, argName) {
|
|
178
|
+
idx := len(mnz.runs) - 1
|
|
179
|
+
fileName := fmt.sprintf("%s_%d", argName, idx)
|
|
180
|
+
|
|
181
|
+
return fileName
|
|
182
|
+
}
|
|
183
|
+
|
|
172
184
|
setDryRun := func(mnz, isDryRun) {
|
|
173
185
|
ll.assert(mnz.enabled,
|
|
174
186
|
"monetization.setDryRun(): monetization must be explicitly enabled by enableMnz(productKey) function")
|
|
@@ -305,6 +317,7 @@ export ll.toStrict({
|
|
|
305
317
|
appendRun: appendRun,
|
|
306
318
|
addArgToLastRun: addArgToLastRun,
|
|
307
319
|
addOptionalArg: addOptionalArg,
|
|
320
|
+
argNameForLastRun: argNameForLastRun,
|
|
308
321
|
run: run,
|
|
309
322
|
mnzClientStdoutSchema: mnzClientStdoutSchema
|
|
310
323
|
})
|
|
@@ -204,8 +204,8 @@ processColumn := func(input, bodyTpl, outputs, ...opts) {
|
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
trace := undefined
|
|
207
|
-
if !is_undefined(opts.traceSteps) {
|
|
208
|
-
trace = pSpec.makeTrace(input.spec, opts.traceSteps...)
|
|
207
|
+
if !is_undefined(opts.traceSteps) || !is_undefined(input.spec.annotations[pSpec.A_TRACE]) {
|
|
208
|
+
trace = pSpec.makeTrace(input.spec, (opts.traceSteps ? opts.traceSteps : [])...)
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
|
|
@@ -235,7 +235,9 @@ makeTrace := func(input, ...steps) {
|
|
|
235
235
|
validation.assertType(currentTrace, _TRACE_SCHEMA)
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
if len(steps) > 0 {
|
|
239
|
+
currentTrace = append(currentTrace, steps...)
|
|
240
|
+
}
|
|
239
241
|
currentTraceStr := string(json.encode(currentTrace))
|
|
240
242
|
|
|
241
243
|
return ll.toStrict({
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platforma-sdk/workflow-tengo",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.13",
|
|
4
4
|
"description": "Tengo SDK library",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"./dist/**/*"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@milaboratories/software-pframes-conv": "2.1.
|
|
20
|
-
"@platforma-open/milaboratories.software-small-binaries": "^1.15.
|
|
19
|
+
"@milaboratories/software-pframes-conv": "2.1.17",
|
|
20
|
+
"@platforma-open/milaboratories.software-small-binaries": "^1.15.19"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@platforma-sdk/tengo-builder": "^1.19.2"
|