@platforma-sdk/workflow-tengo 5.11.0 → 5.12.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 (44) hide show
  1. package/dist/tengo/lib/exec.lib.tengo +20 -0
  2. package/dist/tengo/lib/exec.runcmd.lib.tengo +19 -4
  3. package/dist/tengo/tpl/annotations.compute.plj.gz +0 -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.conda.create-env.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-parquet-pcolumn-chunk.plj.gz +0 -0
  26. package/dist/tengo/tpl/pframes.export-pframe-for-ui.plj.gz +0 -0
  27. package/dist/tengo/tpl/pframes.export-pframe.plj.gz +0 -0
  28. package/dist/tengo/tpl/pframes.export-single-pcolumn.plj.gz +0 -0
  29. package/dist/tengo/tpl/pframes.import-dir.plj.gz +0 -0
  30. package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
  31. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  32. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  33. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  34. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  35. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  36. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  37. package/dist/tengo/tpl/pt.import-dir.plj.gz +0 -0
  38. package/dist/tengo/tpl/pt.workflow-run.plj.gz +0 -0
  39. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  40. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  41. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  42. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  43. package/dist/tengo/tpl/workflow.query-context-filter.plj.gz +0 -0
  44. package/package.json +2 -2
@@ -52,6 +52,7 @@ builder := func() {
52
52
  cpuRequest := undefined
53
53
  ramRequest := undefined
54
54
 
55
+ commandName := ""
55
56
  cache := 0
56
57
  inputCache := 0
57
58
  nErrorLines := 200
@@ -582,6 +583,19 @@ builder := func() {
582
583
 
583
584
 
584
585
 
586
+
587
+ name: func(name) {
588
+ validation.assertType(name, "string", "exec.builder.name: name must be a string")
589
+
590
+ commandName = name
591
+ return self
592
+ },
593
+
594
+
595
+
596
+
597
+
598
+
585
599
  nErrorLines: func(lines) {
586
600
  ll.assert(
587
601
  is_int(lines) && lines >= 0,
@@ -1022,6 +1036,12 @@ builder := func() {
1022
1036
 
1023
1037
 
1024
1038
 
1039
+ if commandName != "" {
1040
+ pureExecInputs.runOptions.name = commandName
1041
+ }
1042
+
1043
+
1044
+
1025
1045
  if typedArgSet || typedEnvSet {
1026
1046
  pureExecInputs.runOptions.argsTyped = argsTyped
1027
1047
  pureExecInputs.runOptions.envsTyped = envsTyped
@@ -148,11 +148,11 @@ _createAbstractRunCommandPlan := func(state, returnSelfFn) {
148
148
 
149
149
 
150
150
 
151
- cmd: func(commandName) {
152
- if ll.isMap(commandName) {
153
- self.cmdTyped(commandName.type, commandName.value)
151
+ cmd: func(cmd) {
152
+ if ll.isMap(cmd) {
153
+ self.cmdTyped(cmd.type, cmd.value)
154
154
  } else {
155
- state.options.cmd = simpleArg(commandName)
155
+ state.options.cmd = simpleArg(cmd)
156
156
  }
157
157
  return returnSelfFn()
158
158
  },
@@ -548,6 +548,7 @@ builder := func(workdir, ...initialState) {
548
548
  cpu := undefined
549
549
  ram := undefined
550
550
 
551
+ commandName := ""
551
552
  stdout := "stdout.txt"
552
553
  stderr := "stderr.txt"
553
554
  nErrorLines := 200
@@ -558,6 +559,19 @@ builder := func(workdir, ...initialState) {
558
559
 
559
560
 
560
561
 
562
+
563
+ name: func(name) {
564
+ validation.assertType(name, "string", "runcmd.builder.name: name must be a string")
565
+
566
+ commandName = name
567
+ return self
568
+ },
569
+
570
+
571
+
572
+
573
+
574
+
561
575
  allocation: func(value) {
562
576
  validation.assertType(value, validation.reference, "runcmd.builder: allocation should be a valid reference")
563
577
  allocation = value
@@ -744,6 +758,7 @@ builder := func(workdir, ...initialState) {
744
758
  runRes.getField(_FIELD_CMD).set(cmdRes)
745
759
 
746
760
  buildOptions := {
761
+ name: commandName,
747
762
  queueName: queue,
748
763
  errorLines: nErrorLines,
749
764
  redirectStdout: stdout,
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": "5.11.0",
3
+ "version": "5.12.0",
4
4
  "description": "Tengo SDK library",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "@platforma-open/milaboratories.software-ptabler": "1.15.0"
23
23
  },
24
24
  "devDependencies": {
25
- "@platforma-sdk/tengo-builder": "2.5.0"
25
+ "@platforma-sdk/tengo-builder": "2.5.6"
26
26
  },
27
27
  "scripts": {
28
28
  "type-check": "pl-tengo check",