@platforma-sdk/workflow-tengo 6.1.0 → 6.3.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 (47) hide show
  1. package/dist/tengo/lib/assets.wasm.lib.tengo +44 -2
  2. package/dist/tengo/tpl/annotations.compute.plj.gz +0 -0
  3. package/dist/tengo/tpl/anonymize.deanonymize.plj.gz +0 -0
  4. package/dist/tengo/tpl/anonymize.impl.plj.gz +0 -0
  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/check_network.workdir_type_name_extractor.plj.gz +0 -0
  12. package/dist/tengo/tpl/exec.conda.create-env.plj.gz +0 -0
  13. package/dist/tengo/tpl/exec.delayed-compute-allocation.impl.plj.gz +0 -0
  14. package/dist/tengo/tpl/exec.exec-impl.plj.gz +0 -0
  15. package/dist/tengo/tpl/exec.exec.plj.gz +0 -0
  16. package/dist/tengo/tpl/exec.load-software.impl.plj.gz +0 -0
  17. package/dist/tengo/tpl/exec.monetization_info.plj.gz +0 -0
  18. package/dist/tengo/tpl/exec.monetization_to_json.plj.gz +0 -0
  19. package/dist/tengo/tpl/exec.python.create-venv.plj.gz +0 -0
  20. package/dist/tengo/tpl/exec.python.install-deps.plj.gz +0 -0
  21. package/dist/tengo/tpl/exec.python.venv-bin-path.plj.gz +0 -0
  22. package/dist/tengo/tpl/ll.get-field.plj.gz +0 -0
  23. package/dist/tengo/tpl/pframes.build-table.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.merge-resource-maps.plj.gz +0 -0
  31. package/dist/tengo/tpl/pframes.parse-to-json.plj.gz +0 -0
  32. package/dist/tengo/tpl/pframes.process-pcolumn-batch-split.plj.gz +0 -0
  33. package/dist/tengo/tpl/pframes.process-pcolumn-batch.plj.gz +0 -0
  34. package/dist/tengo/tpl/pframes.process-pcolumn-data.plj.gz +0 -0
  35. package/dist/tengo/tpl/pframes.remove-nulls.plj.gz +0 -0
  36. package/dist/tengo/tpl/pframes.slice-data.plj.gz +0 -0
  37. package/dist/tengo/tpl/pframes.xsv-export-pframe.plj.gz +0 -0
  38. package/dist/tengo/tpl/pframes.xsv-import-if-not-null.plj.gz +0 -0
  39. package/dist/tengo/tpl/pframes.xsv-import-map.plj.gz +0 -0
  40. package/dist/tengo/tpl/pt.import-dir.plj.gz +0 -0
  41. package/dist/tengo/tpl/pt.workflow-run.plj.gz +0 -0
  42. package/dist/tengo/tpl/waiter.waiter.plj.gz +0 -0
  43. package/dist/tengo/tpl/workdir.save.plj.gz +0 -0
  44. package/dist/tengo/tpl/workflow.build-ctx.plj.gz +0 -0
  45. package/dist/tengo/tpl/workflow.query-anchored.plj.gz +0 -0
  46. package/dist/tengo/tpl/workflow.query-context-filter.plj.gz +0 -0
  47. package/package.json +4 -4
@@ -4,6 +4,7 @@
4
4
 
5
5
  plapi := import("plapi")
6
6
  ll := import("@platforma-sdk/workflow-tengo:ll")
7
+ maps := import("@platforma-sdk/workflow-tengo:maps")
7
8
 
8
9
 
9
10
 
@@ -62,8 +63,49 @@ ll := import("@platforma-sdk/workflow-tengo:ll")
62
63
 
63
64
 
64
65
 
65
- importWasm := func(wasmName) {
66
- return plapi.loadWasm(wasmName)
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+ importWasm := func(wasmName, ...rest) {
79
+ ll.assert(
80
+ len(rest) <= 1,
81
+ "assets.importWasm: too many arguments (want 1 or 2, got %d)",
82
+ 1 + len(rest)
83
+ )
84
+ if len(rest) == 0 {
85
+ return plapi.loadWasm(wasmName)
86
+ }
87
+ opts := rest[0]
88
+ ll.assert(ll.isMap(opts), "assets.importWasm: opts must be a map, got %v", opts)
89
+
90
+
91
+
92
+ for k, _ in opts {
93
+ ll.assert(
94
+ k == "memoryLimit",
95
+ "assets.importWasm: unknown opts key %q (recognised: \"memoryLimit\")",
96
+ k
97
+ )
98
+ }
99
+ if !maps.containsKey(opts, "memoryLimit") {
100
+ return plapi.loadWasm(wasmName)
101
+ }
102
+ limit := opts.memoryLimit
103
+ ll.assert(
104
+ is_int(limit) || is_string(limit),
105
+ "assets.importWasm: opts.memoryLimit must be int (bytes) or string (e.g. \"50MiB\"), got %v",
106
+ limit
107
+ )
108
+ return plapi.loadWasm(wasmName, limit)
67
109
  }
68
110
 
69
111
  export ll.toStrict({
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": "6.1.0",
3
+ "version": "6.3.0",
4
4
  "description": "Tengo SDK library",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -16,14 +16,14 @@
16
16
  "./dist/**/*"
17
17
  ],
18
18
  "dependencies": {
19
- "@milaboratories/pframes-rs-wasip2": "1.1.37",
19
+ "@milaboratories/pframes-rs-wasip2": "1.1.41",
20
20
  "@milaboratories/software-pframes-conv": "2.2.9",
21
21
  "@platforma-open/milaboratories.software-small-binaries": "^2.0.3",
22
- "@platforma-open/milaboratories.software-ptabler": "2.0.0",
22
+ "@platforma-open/milaboratories.software-ptabler": "2.1.0",
23
23
  "@platforma-open/milaboratories.software-ptexter": "1.2.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@platforma-sdk/tengo-builder": "4.0.0"
26
+ "@platforma-sdk/tengo-builder": "4.0.3"
27
27
  },
28
28
  "scripts": {
29
29
  "type-check": "pl-tengo check",