pinokiod 3.2.83 → 3.2.85

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.
@@ -17,7 +17,7 @@ class Aria2 {
17
17
  await this.kernel.bin.download(url, dest, ondata)
18
18
  await this.kernel.bin.unzip(dest, "aria2", ondata)
19
19
  } else {
20
- await this.kernel.bin.exec({ message: "conda install -y -c conda-forge aria2", conda: { name: "base", activate: "minimal"} }, ondata)
20
+ await this.kernel.bin.exec({ message: "conda install -y -c conda-forge aria2" }, ondata)
21
21
  }
22
22
  }
23
23
  async installed() {
@@ -133,10 +133,10 @@ conda-libmamba-solver=24.7.0`)
133
133
 
134
134
  await this.kernel.bin.exec({
135
135
  message: cmds,
136
- conda: {
137
- name: "base",
138
- activate: "minimal"
139
- }
136
+ // conda: {
137
+ // name: "base",
138
+ // activate: "minimal"
139
+ // }
140
140
  // [
141
141
  // (this.kernel.platform === 'win32' ? 'conda_hook' : `eval "$(conda shell.bash hook)"`),
142
142
  // (this.platform === 'win32' ? `activate base` : `conda activate base`),
@@ -3,32 +3,32 @@ class Cuda {
3
3
  if (this.kernel.platform === "win32") {
4
4
  await this.kernel.bin.exec({
5
5
  message: "conda install -y cudnn libzlib-wapi -c conda-forge",
6
- conda: {
7
- name: "base",
8
- activate: "minimal"
9
- }
6
+ // conda: {
7
+ // name: "base",
8
+ // activate: "minimal"
9
+ // }
10
10
  }, ondata)
11
11
  await this.kernel.bin.exec({
12
12
  message: "conda install -y cuda -c nvidia/label/cuda-12.1.0",
13
- conda: {
14
- name: "base",
15
- activate: "minimal"
16
- }
13
+ // conda: {
14
+ // name: "base",
15
+ // activate: "minimal"
16
+ // }
17
17
  }, ondata)
18
18
  } else {
19
19
  await this.kernel.bin.exec({
20
20
  message: "conda install -y cudnn -c conda-forge",
21
- conda: {
22
- name: "base",
23
- activate: "minimal"
24
- }
21
+ // conda: {
22
+ // name: "base",
23
+ // activate: "minimal"
24
+ // }
25
25
  }, ondata)
26
26
  await this.kernel.bin.exec({
27
27
  message: "conda install -y cuda -c nvidia/label/cuda-12.1.0",
28
- conda: {
29
- name: "base",
30
- activate: "minimal"
31
- }
28
+ // conda: {
29
+ // name: "base",
30
+ // activate: "minimal"
31
+ // }
32
32
  }, ondata)
33
33
  }
34
34
  }
@@ -6,10 +6,10 @@ class Ffmpeg {
6
6
  async install(req, ondata) {
7
7
  await this.kernel.bin.exec({
8
8
  message: "conda install -y -c conda-forge ffmpeg",
9
- conda: {
10
- name: "base",
11
- activate: "minimal"
12
- }
9
+ // conda: {
10
+ // name: "base",
11
+ // activate: "minimal"
12
+ // }
13
13
  }, ondata)
14
14
  }
15
15
  async installed() {
package/kernel/bin/git.js CHANGED
@@ -7,10 +7,10 @@ class Git {
7
7
  async install(req, ondata) {
8
8
  await this.kernel.bin.exec({
9
9
  message: "conda install --no-shortcuts -y -c conda-forge git git-lfs",
10
- conda: {
11
- name: "base",
12
- activate: "minimal"
13
- }
10
+ // conda: {
11
+ // name: "base",
12
+ // activate: "minimal"
13
+ // }
14
14
  }, ondata)
15
15
  if (this.kernel.platform === 'win32') {
16
16
  let gitconfig_path = path.resolve(this.kernel.homedir, "gitconfig")
@@ -2,10 +2,10 @@ class Huggingface {
2
2
  async install(req, ondata) {
3
3
  await this.kernel.bin.exec({
4
4
  message: "conda install -y -c conda-forge huggingface_hub",
5
- conda: {
6
- name: "base",
7
- activate: "minimal"
8
- }
5
+ // conda: {
6
+ // name: "base",
7
+ // activate: "minimal"
8
+ // }
9
9
  }, ondata)
10
10
  }
11
11
  async installed() {
@@ -302,7 +302,7 @@ class Bin {
302
302
  this.installed.pip = pip
303
303
 
304
304
 
305
- if (this.platform === "darwin" || this.platform === "linux") {
305
+ if (this.platform === "darwin") {
306
306
  // 3. brew
307
307
  console.log("## check brew")
308
308
 
@@ -356,7 +356,7 @@ class Bin {
356
356
  let result = await this.kernel.bin.exec({ message: "xcode-select --version" }, (stream) => { })
357
357
  if (result && result.stdout) {
358
358
  e4 = /xcode-select version ([0-9]+)/gi.exec(result.stdout)
359
- if (e4.length > 1) {
359
+ if (e4 && e4.length > 1) {
360
360
  let version = Number(e4[1])
361
361
  console.log("xcode-select version", version)
362
362
  if (version >= 2349) {
@@ -5,10 +5,10 @@ class LLVM {
5
5
  } else {
6
6
  await bin.exec({
7
7
  message: "conda install -y -c conda-forge llvm",
8
- conda: {
9
- name: "base",
10
- activate: "minimal"
11
- }
8
+ // conda: {
9
+ // name: "base",
10
+ // activate: "minimal"
11
+ // }
12
12
  }, ondata)
13
13
  }
14
14
  }
@@ -7,10 +7,10 @@ class Node {
7
7
  await this.kernel.bin.exec({
8
8
  //message: "conda install -y nodejs=22.12.0 -c conda-forge"
9
9
  message: "conda install -y nodejs=20.17.0 -c conda-forge",
10
- conda: {
11
- name: "base",
12
- activate: "minimal"
13
- }
10
+ // conda: {
11
+ // name: "base",
12
+ // activate: "minimal"
13
+ // }
14
14
  }, ondata)
15
15
  }
16
16
  async installed() {
package/kernel/bin/uv.js CHANGED
@@ -6,10 +6,10 @@ class UV {
6
6
  async install(req, ondata) {
7
7
  await this.kernel.bin.exec({
8
8
  message: "conda install -y -c conda-forge uv",
9
- conda: {
10
- name: "base",
11
- activate: "minimal"
12
- }
9
+ // conda: {
10
+ // name: "base",
11
+ // activate: "minimal"
12
+ // }
13
13
  }, ondata)
14
14
  }
15
15
  async installed() {
package/kernel/bin/zip.js CHANGED
@@ -8,10 +8,10 @@ class Zip {
8
8
  }
9
9
  await this.kernel.bin.exec({
10
10
  message: cmd,
11
- conda: {
12
- name: "base",
13
- activate: "minimal"
14
- }
11
+ // conda: {
12
+ // name: "base",
13
+ // activate: "minimal"
14
+ // }
15
15
  }, ondata)
16
16
  }
17
17
  async installed() {
package/kernel/index.js CHANGED
@@ -337,13 +337,15 @@ class Kernel {
337
337
 
338
338
  // let contents = await fs.promises.readdir(this.homedir)
339
339
  //await this.bin.init()
340
- console.time("bin.init")
340
+ let ts = Date.now()
341
+ console.time("bin.init " + ts)
341
342
  this.bin.init().then(() => {
342
- console.timeEnd("bin.init")
343
+ console.timeEnd("bin.init" + ts)
343
344
  })
344
- console.time("api.init")
345
+ let ts2 = Date.now()
346
+ console.time("api.init " + ts2)
345
347
  await this.api.init()
346
- console.timeEnd("api.init")
348
+ console.timeEnd("api.init " + ts2)
347
349
 
348
350
  //await this.shell.init()
349
351
 
@@ -398,9 +400,10 @@ class Kernel {
398
400
  await this.update_sysinfo()
399
401
  console.timeEnd("update_sysinfo")
400
402
  */
401
- console.time("shell.init")
403
+ let ts3 = Date.now()
404
+ console.time("shell.init " + ts3)
402
405
  this.shell.init().then(() => {
403
- console.timeEnd("shell.init")
406
+ console.timeEnd("shell.init" + ts3)
404
407
  if (this.envs) {
405
408
  this.template.update({
406
409
  env: this.envs,
@@ -26,7 +26,6 @@ class Python {
26
26
  resolve()
27
27
  }, 3000)
28
28
  })
29
- this.proc = true
30
29
  }
31
30
 
32
31
  let res = await fetch("http://127.0.0.1:42001/call", {
@@ -41,6 +40,7 @@ class Python {
41
40
  }).then((res) => {
42
41
  return res.json()
43
42
  })
43
+ this.proc = true
44
44
  return res
45
45
  }
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.83",
3
+ "version": "3.2.85",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {