@platforma-sdk/workflow-tengo 4.7.4 → 4.8.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.
Files changed (34) hide show
  1. package/dist/tengo/lib/exec.lib.tengo +45 -0
  2. package/dist/tengo/lib/feats.lib.tengo +9 -2
  3. package/dist/tengo/lib/pframes.xsv-builder.lib.tengo +6 -5
  4. package/dist/tengo/lib/render.lib.tengo +6 -1
  5. package/dist/tengo/tpl/check_network.create_workdir_from_storage.plj.gz +0 -0
  6. package/dist/tengo/tpl/check_network.download_blob.plj.gz +0 -0
  7. package/dist/tengo/tpl/check_network.run_hello_world.plj.gz +0 -0
  8. package/dist/tengo/tpl/check_network.run_hello_world_py.plj.gz +0 -0
  9. package/dist/tengo/tpl/check_network.upload_blob.plj.gz +0 -0
  10. package/dist/tengo/tpl/check_network.upload_template.plj.gz +0 -0
  11. package/dist/tengo/tpl/exec.R.create-renv.plj.gz +0 -0
  12. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  16. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  17. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  18. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  19. package/dist/tengo/tpl/pframes.export-multiple-pcolumns.plj.gz +0 -0
  20. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  21. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  22. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  23. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  24. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  25. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  28. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  29. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  30. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  31. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  32. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  33. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  34. package/package.json +1 -1
@@ -36,8 +36,15 @@ export ll.toStrict({
36
36
 
37
37
  pureFutureFields: _isEnabled("pureFutureFields") || _api >= 1, // 'pure' future fields magic that provides deduplication
38
38
  commandExpressions: _isEnabled("commandExpressions") || _api >= 2, // rich expressions in command arguments ( {{ system.ram_bytes / 20 }} )
39
- workdirLimits: _isEnabled("workdirLimits") || _api >= 4, // workdir storage controller can limit concurrency
40
- computeLimits: _isEnabled("computeLimits"), // runner can plan CPU and RAM
39
+
40
+
41
+
42
+
43
+ workdirLimits: true,
44
+ computeLimits: true,
45
+
46
+
47
+ serviceFields: _isEnabled("serviceFields"),
41
48
 
42
49
 
43
50
 
@@ -1,6 +1,7 @@
1
1
  ll := import("@platforma-sdk/workflow-tengo:ll")
2
2
  maps := import("@platforma-sdk/workflow-tengo:maps")
3
3
  strings := import("@platforma-sdk/workflow-tengo:strings")
4
+ text := import("text")
4
5
  pSpec := import("@platforma-sdk/workflow-tengo:pframes.spec")
5
6
  pBuilder := import("@platforma-sdk/workflow-tengo:pframes.builder")
6
7
  xsv := import("@platforma-sdk/workflow-tengo:pframes.xsv")
@@ -44,15 +45,15 @@ xsvFileBuilder := func(xsvType) {
44
45
  processedBaseKeys := {}
45
46
 
46
47
  for key, value in flatFrame {
47
- if strings.has_suffix(key, ".spec") {
48
- baseKey := strings.trim_suffix(key, ".spec")
48
+ if text.has_suffix(key, ".spec") {
49
+ baseKey := text.trim_suffix(key, ".spec")
49
50
  if is_undefined(parsedColumns[baseKey]) {
50
51
  parsedColumns[baseKey] = { key: baseKey }
51
52
  }
52
53
  parsedColumns[baseKey].spec = value
53
54
  processedBaseKeys[baseKey] = true
54
- } else if strings.has_suffix(key, ".data") {
55
- baseKey := strings.trim_suffix(key, ".data")
55
+ } else if text.has_suffix(key, ".data") {
56
+ baseKey := text.trim_suffix(key, ".data")
56
57
  if is_undefined(parsedColumns[baseKey]) {
57
58
  parsedColumns[baseKey] = { key: baseKey }
58
59
  }
@@ -457,7 +458,7 @@ xsvFileBuilder := func(xsvType) {
457
458
 
458
459
  isFlatFrame := false
459
460
  for k, _ in item {
460
- if strings.has_suffix(k, ".spec") || strings.has_suffix(k, ".data") {
461
+ if text.has_suffix(k, ".spec") || text.has_suffix(k, ".data") {
461
462
  isFlatFrame = true
462
463
  break
463
464
  }
@@ -11,6 +11,7 @@ oop := import("@platforma-sdk/workflow-tengo:oop")
11
11
  tx := import("tx")
12
12
  times := import("times")
13
13
  maps := import("@platforma-sdk/workflow-tengo:maps")
14
+ feats := import("@platforma-sdk/workflow-tengo:feats")
14
15
 
15
16
 
16
17
  _SUBSCRIPTION_FIELD := "subscription"
@@ -55,7 +56,11 @@ createUniversal := func(tpl, isEph, inputs, ...opts) {
55
56
  }
56
57
  for name, value in serviceInputs {
57
58
  if !is_undefined(value) {
58
- inputsMap.addService(name, value)
59
+ if feats.serviceFields {
60
+ inputsMap.addService(name, value)
61
+ } else {
62
+ inputsMap.add(name, value)
63
+ }
59
64
  }
60
65
  }
61
66
 
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.7.4",
3
+ "version": "4.8.0",
4
4
  "description": "Tengo SDK library",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",