pinokiod 3.0.15 → 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.
package/kernel/bin/git.js CHANGED
@@ -5,7 +5,7 @@ const { rimraf } = require('rimraf')
5
5
  const path = require("path")
6
6
  class Git {
7
7
  async install(req, ondata) {
8
- await this.kernel.bin.exec({ message: "conda install -y -c conda-forge git git-lfs --verbose" }, ondata)
8
+ await this.kernel.bin.exec({ message: "conda install -y -c conda-forge git git-lfs --debug" }, ondata)
9
9
  if (this.kernel.platform === 'win32') {
10
10
  let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
11
11
  // check if gitconfig exists
@@ -1,7 +1,7 @@
1
1
  class Huggingface {
2
2
  async install(req, ondata) {
3
3
  await this.kernel.bin.exec({
4
- message: "conda install -y -c conda-forge huggingface_hub --verbose"
4
+ message: "conda install -y -c conda-forge huggingface_hub --debug"
5
5
  }, ondata)
6
6
  }
7
7
  async installed() {
package/kernel/bin/uv.js CHANGED
@@ -5,7 +5,7 @@ const decompress = require('decompress');
5
5
  class UV {
6
6
  async install(req, ondata) {
7
7
  await this.kernel.bin.exec({
8
- message: "conda install -y -c conda-forge uv --verbose",
8
+ message: "conda install -y -c conda-forge uv --debug",
9
9
  }, ondata)
10
10
  }
11
11
  async installed() {
package/kernel/bin/zip.js CHANGED
@@ -2,9 +2,9 @@ class Zip {
2
2
  async install(req, ondata) {
3
3
  let cmd
4
4
  if (this.kernel.platform === 'win32') {
5
- cmd = "conda install -y -c conda-forge 7zip --verbose"
5
+ cmd = "conda install -y -c conda-forge 7zip --debug"
6
6
  } else {
7
- cmd = "conda install -y -c conda-forge p7zip --verbose"
7
+ cmd = "conda install -y -c conda-forge p7zip --debug"
8
8
  }
9
9
  await this.kernel.bin.exec({ message: cmd }, ondata)
10
10
  }
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.15",
3
+ "version": "3.0.18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server/index.js CHANGED
@@ -470,7 +470,7 @@ class Server {
470
470
  }, {
471
471
  type: "conda",
472
472
  name: ["nodejs", "ffmpeg", ],
473
- args: "-c conda-forge --verbose"
473
+ args: "-c conda-forge --debug"
474
474
  }]
475
475
  let platform = os.platform()
476
476
  if (platform === "win32") {
@@ -489,7 +489,7 @@ class Server {
489
489
  if (this.kernel.gpu === "nvidia") {
490
490
  requirements.push({
491
491
  name: "cuda",
492
- args: "--verbose"
492
+ args: "--debug"
493
493
  })
494
494
  }
495
495
  requirements = requirements.concat([{