pinokiod 3.0.14 → 3.0.16
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 +1 -1
- package/kernel/bin/huggingface.js +1 -1
- package/kernel/bin/uv.js +1 -1
- package/kernel/bin/zip.js +2 -2
- package/kernel/shell.js +10 -2
- package/package.json +1 -1
- package/server/index.js +2 -2
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 --
|
|
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
|
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 --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 --
|
|
5
|
+
cmd = "conda install -y -c conda-forge 7zip --debug"
|
|
6
6
|
} else {
|
|
7
|
-
cmd = "conda install -y -c conda-forge p7zip --
|
|
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
|
@@ -450,9 +450,13 @@ 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
|
-
delimiter = " && "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
|
|
458
|
+
//delimiter = " && "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
|
|
459
|
+
delimiter = " & "; // must use &&. & doesn't necessariliy wait until the curruent command finishes
|
|
456
460
|
} else {
|
|
457
461
|
delimiter = " ; ";
|
|
458
462
|
}
|
|
@@ -817,9 +821,13 @@ ${cleaned}
|
|
|
817
821
|
// Decide whether to kill or continue
|
|
818
822
|
if (this.ready) {
|
|
819
823
|
// when ready, watch out for the prompt pattern that terminates with [\r\n ]
|
|
820
|
-
|
|
824
|
+
|
|
825
|
+
let termination_prompt_re = new RegExp(".*--- pinokio shell.run finished ---.*--- pinokio shell.run finished ---.*", "g")
|
|
826
|
+
|
|
827
|
+
//let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
|
|
821
828
|
let line = cleaned.replaceAll(/[\r\n]/g, "")
|
|
822
829
|
let test = line.match(termination_prompt_re)
|
|
830
|
+
console.log({ line, test, termination_prompt_re })
|
|
823
831
|
if (test) {
|
|
824
832
|
let cache = cleaned
|
|
825
833
|
let cached_msg = msg
|
package/package.json
CHANGED
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 --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: "--
|
|
492
|
+
args: "--debug"
|
|
493
493
|
})
|
|
494
494
|
}
|
|
495
495
|
requirements = requirements.concat([{
|