pinokiod 3.2.87 → 3.2.89

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/index.js CHANGED
@@ -338,18 +338,17 @@ class Kernel {
338
338
  // let contents = await fs.promises.readdir(this.homedir)
339
339
  //await this.bin.init()
340
340
  let ts = Date.now()
341
- console.time("bin.init " + ts)
342
341
  this.bin.init().then(() => {
343
- console.timeEnd("bin.init" + ts)
342
+ console.log("bin init finished")
344
343
  })
345
344
  let ts2 = Date.now()
346
- console.time("api.init " + ts2)
347
345
  await this.api.init()
348
- console.timeEnd("api.init " + ts2)
349
346
 
350
347
  //await this.shell.init()
351
348
 
349
+ console.log("homedir", this.homedir)
352
350
  if (this.homedir) {
351
+ console.log("> 1")
353
352
  await this.template.init({
354
353
  kernel: this,
355
354
  system,
@@ -359,6 +358,7 @@ class Kernel {
359
358
  return this.api.get_proxy_url("/proxy", port)
360
359
  },
361
360
  })
361
+ console.log("> 2")
362
362
  this.sys = new Sysinfo()
363
363
  this.sys.init(this).then(async () => {
364
364
  let info = this.sys.info
@@ -372,6 +372,7 @@ class Kernel {
372
372
  this.sysinfo = info
373
373
  await this.update_sysinfo()
374
374
  })
375
+ console.log("> 3")
375
376
  /*
376
377
  this.sys = new Sysinfo()
377
378
  await this.sys.init(this)
@@ -400,10 +401,9 @@ class Kernel {
400
401
  await this.update_sysinfo()
401
402
  console.timeEnd("update_sysinfo")
402
403
  */
404
+ console.log("> 4")
403
405
  let ts3 = Date.now()
404
- console.time("shell.init " + ts3)
405
406
  this.shell.init().then(() => {
406
- console.timeEnd("shell.init" + ts3)
407
407
  if (this.envs) {
408
408
  this.template.update({
409
409
  env: this.envs,
@@ -415,6 +415,7 @@ class Kernel {
415
415
  }
416
416
 
417
417
 
418
+ console.log("> 5")
418
419
 
419
420
  let pwpath
420
421
  if (this.platform === "win32") {
@@ -425,6 +426,7 @@ class Kernel {
425
426
  process.env.PLAYWRIGHT_BROWSERS_PATH = this.bin.path("playwright/browsers")
426
427
  this.playwright = (await this.loader.load(pwpath)).resolved
427
428
 
429
+ console.log("> 6")
428
430
  // await this.template.init()
429
431
 
430
432
 
package/kernel/shell.js CHANGED
@@ -689,6 +689,7 @@ class Shell {
689
689
  this.done = false
690
690
  this.ptyProcess = pty.spawn(this.shell, this.args, config)
691
691
  this.ptyProcess.onData((data) => {
692
+ console.log("****** onData", data)
692
693
  if (!this.done) {
693
694
  this.queue.push(data)
694
695
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.87",
3
+ "version": "3.2.89",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {