pinokiod 3.0.2 → 3.0.4

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" }, ondata)
8
+ await this.kernel.bin.exec({ message: "conda install -y -c conda-forge git git-lfs --verbose" }, 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"
4
+ message: "conda install -y -c conda-forge huggingface_hub --verbose"
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",
8
+ message: "conda install -y -c conda-forge uv --verbose",
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"
5
+ cmd = "conda install -y -c conda-forge 7zip --verbose"
6
6
  } else {
7
- cmd = "conda install -y -c conda-forge p7zip"
7
+ cmd = "conda install -y -c conda-forge p7zip --verbose"
8
8
  }
9
9
  await this.kernel.bin.exec({ message: cmd }, ondata)
10
10
  }
package/kernel/shell.js CHANGED
@@ -450,6 +450,9 @@ class Shell {
450
450
  // params.message.push(`echo "SHELL FINISHED RUNNING"\r\n`)
451
451
  // if params.message is empty, filter out
452
452
  //let delimiter = " && "
453
+
454
+ params.message.push('echo "--- pinokio shell.run finished ---"')
455
+
453
456
  let delimiter
454
457
  if (this.platform === "win32") {
455
458
  delimiter = " && "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
@@ -817,7 +820,10 @@ ${cleaned}
817
820
  // Decide whether to kill or continue
818
821
  if (this.ready) {
819
822
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
820
- let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
823
+
824
+ let termination_prompt_re = new RegExp("--- pinokio shell.run finished ---.*--- pinokio shell.run finished ---", "g")
825
+
826
+ //let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
821
827
  let line = cleaned.replaceAll(/[\r\n]/g, "")
822
828
  let test = line.match(termination_prompt_re)
823
829
  if (test) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
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"
473
+ args: "-c conda-forge --verbose"
474
474
  }]
475
475
  let platform = os.platform()
476
476
  if (platform === "win32") {
@@ -488,7 +488,8 @@ class Server {
488
488
  }
489
489
  if (this.kernel.gpu === "nvidia") {
490
490
  requirements.push({
491
- name: "cuda"
491
+ name: "cuda",
492
+ args: "--verbose"
492
493
  })
493
494
  }
494
495
  requirements = requirements.concat([{