pinokiod 3.2.86 → 3.2.88
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 +7 -0
- package/kernel/shell.js +6 -6
- package/package.json +1 -1
package/kernel/index.js
CHANGED
|
@@ -349,7 +349,9 @@ class Kernel {
|
|
|
349
349
|
|
|
350
350
|
//await this.shell.init()
|
|
351
351
|
|
|
352
|
+
console.log("homedir", this.homedir)
|
|
352
353
|
if (this.homedir) {
|
|
354
|
+
console.log("> 1")
|
|
353
355
|
await this.template.init({
|
|
354
356
|
kernel: this,
|
|
355
357
|
system,
|
|
@@ -359,6 +361,7 @@ class Kernel {
|
|
|
359
361
|
return this.api.get_proxy_url("/proxy", port)
|
|
360
362
|
},
|
|
361
363
|
})
|
|
364
|
+
console.log("> 2")
|
|
362
365
|
this.sys = new Sysinfo()
|
|
363
366
|
this.sys.init(this).then(async () => {
|
|
364
367
|
let info = this.sys.info
|
|
@@ -372,6 +375,7 @@ class Kernel {
|
|
|
372
375
|
this.sysinfo = info
|
|
373
376
|
await this.update_sysinfo()
|
|
374
377
|
})
|
|
378
|
+
console.log("> 3")
|
|
375
379
|
/*
|
|
376
380
|
this.sys = new Sysinfo()
|
|
377
381
|
await this.sys.init(this)
|
|
@@ -400,6 +404,7 @@ class Kernel {
|
|
|
400
404
|
await this.update_sysinfo()
|
|
401
405
|
console.timeEnd("update_sysinfo")
|
|
402
406
|
*/
|
|
407
|
+
console.log("> 4")
|
|
403
408
|
let ts3 = Date.now()
|
|
404
409
|
console.time("shell.init " + ts3)
|
|
405
410
|
this.shell.init().then(() => {
|
|
@@ -415,6 +420,7 @@ class Kernel {
|
|
|
415
420
|
}
|
|
416
421
|
|
|
417
422
|
|
|
423
|
+
console.log("> 5")
|
|
418
424
|
|
|
419
425
|
let pwpath
|
|
420
426
|
if (this.platform === "win32") {
|
|
@@ -425,6 +431,7 @@ class Kernel {
|
|
|
425
431
|
process.env.PLAYWRIGHT_BROWSERS_PATH = this.bin.path("playwright/browsers")
|
|
426
432
|
this.playwright = (await this.loader.load(pwpath)).resolved
|
|
427
433
|
|
|
434
|
+
console.log("> 6")
|
|
428
435
|
// await this.template.init()
|
|
429
436
|
|
|
430
437
|
|
package/kernel/shell.js
CHANGED
|
@@ -406,9 +406,9 @@ class Shell {
|
|
|
406
406
|
})
|
|
407
407
|
cb()
|
|
408
408
|
}, 1)
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
409
|
+
term.onExit((result) => {
|
|
410
|
+
console.log("onExit", { result })
|
|
411
|
+
})
|
|
412
412
|
term.onData((data) => {
|
|
413
413
|
if (ready) {
|
|
414
414
|
queue.push(data)
|
|
@@ -693,9 +693,9 @@ class Shell {
|
|
|
693
693
|
this.queue.push(data)
|
|
694
694
|
}
|
|
695
695
|
});
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
696
|
+
this.ptyProcess.onExit((result) => {
|
|
697
|
+
console.log(">>> exec onExit", result)
|
|
698
|
+
})
|
|
699
699
|
}
|
|
700
700
|
} catch (e) {
|
|
701
701
|
console.log("** Error", e)
|