pinokiod 3.0.16 → 3.0.18

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 (2) hide show
  1. package/kernel/shell.js +8 -2
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -110,6 +110,8 @@ class Shell {
110
110
  delete this.env.CUDA_PATH
111
111
  }
112
112
 
113
+ this.env.PINOKIO_SHELL_START = Date.now()
114
+
113
115
  this.env.CMAKE_OBJECT_PATH_MAX = 1024
114
116
  this.env.PYTORCH_ENABLE_MPS_FALLBACK = 1
115
117
  // this.env.NPM_CONFIG_USERCONFIG = this.kernel.path("user_npmrc")
@@ -451,7 +453,11 @@ class Shell {
451
453
  // if params.message is empty, filter out
452
454
  //let delimiter = " && "
453
455
 
454
- params.message.push('echo "--- pinokio shell.run finished ---"')
456
+ if (this.platform === "win32") {
457
+ params.message.push(`echo "--- pinokio shell.run finished: %PINOKIO_SHELL_START% ---"`)
458
+ } else {
459
+ params.message.push('echo "--- pinokio shell.run finished $PINOKIO_SHELL_START ---"')
460
+ }
455
461
 
456
462
  let delimiter
457
463
  if (this.platform === "win32") {
@@ -822,7 +828,7 @@ ${cleaned}
822
828
  if (this.ready) {
823
829
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
824
830
 
825
- let termination_prompt_re = new RegExp(".*--- pinokio shell.run finished ---.*--- pinokio shell.run finished ---.*", "g")
831
+ let termination_prompt_re = new RegExp(".*--- pinokio shell.run finished [0-9]+ ---.*", "g")
826
832
 
827
833
  //let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
828
834
  let line = cleaned.replaceAll(/[\r\n]/g, "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.0.16",
3
+ "version": "3.0.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {