@platforma-sdk/workflow-tengo 4.18.0 → 4.18.2

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 (40) hide show
  1. package/dist/tengo/lib/exec.lib.tengo +55 -9
  2. package/dist/tengo/lib/pt.expression.lib.tengo +13 -1
  3. package/dist/tengo/lib/pt.lib.tengo +1 -0
  4. package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
  5. package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
  6. package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
  7. package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
  8. package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
  9. package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
  10. package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
  11. package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
  12. package/dist/tengo/tpl/check_network.workdir_type_name_extractor.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
  16. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  17. package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
  18. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  19. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  20. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  21. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  22. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  23. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  24. package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
  25. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  28. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  29. package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
  30. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  31. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  32. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  33. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  34. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  35. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  36. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  37. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  38. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  39. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  40. 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
- t := feats.commandExpressions ? execConstants.ARG_TYPE_EXPRESSION : execConstants.ARG_TYPE_VAR
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: t,
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
- t := feats.commandExpressions ? execConstants.ARG_TYPE_EXPRESSION : execConstants.ARG_TYPE_VAR
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: t,
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
@@ -728,7 +728,19 @@ _newExpression = func(expression, currentAlias) {
728
728
 
729
729
  fillNull: func(fillValueExpr) {
730
730
  return _newExpression(
731
- {type: "fill_na", input: expression, fillValue: _mapToSingleExpressionStruct(fillValueExpr, "lit")},
731
+ {type: "fill_null", input: expression, fillValue: _mapToSingleExpressionStruct(fillValueExpr, "lit")},
732
+ undefined
733
+ )
734
+ },
735
+
736
+
737
+
738
+
739
+
740
+
741
+ fillNaN: func(fillValueExpr) {
742
+ return _newExpression(
743
+ {type: "fill_nan", input: expression, fillValue: _mapToSingleExpressionStruct(fillValueExpr, "lit")},
732
744
  undefined
733
745
  )
734
746
  },
@@ -417,6 +417,7 @@ workflow := func() {
417
417
  printErrStreamToStdout().
418
418
  dontSaveStdoutOrStderr().
419
419
  software(ptablerSw).
420
+ envExpr("POLARS_MAX_THREADS", "{system.cpu}").
420
421
  arg("workflow_sc.json").
421
422
  writeFile("workflow_sc.json", json.encode({
422
423
  workflow: steps
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": "4.18.0",
3
+ "version": "4.18.2",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",