pinokiod 3.9.25 → 3.9.26
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/index.js +4 -1
- package/kernel/index.js +10 -0
- package/package.json +1 -1
package/kernel/bin/index.js
CHANGED
|
@@ -183,6 +183,7 @@ class Bin {
|
|
|
183
183
|
// return a single merged env object, constructed from all the modules
|
|
184
184
|
|
|
185
185
|
// 1. get the module envs
|
|
186
|
+
console.log("this.mods", this.mods)
|
|
186
187
|
let envs = this.mods.map((mod) => {
|
|
187
188
|
if (mod.name === "vs") {
|
|
188
189
|
// don't include vs now
|
|
@@ -210,6 +211,7 @@ class Bin {
|
|
|
210
211
|
return e
|
|
211
212
|
}
|
|
212
213
|
async init() {
|
|
214
|
+
this.mods = []
|
|
213
215
|
if (this.kernel.homedir) {
|
|
214
216
|
const bin_folder = this.path()
|
|
215
217
|
await fs.promises.mkdir(bin_folder, { recursive: true }).catch((e) => { })
|
|
@@ -253,7 +255,8 @@ class Bin {
|
|
|
253
255
|
return file.endsWith(".js") && file !== "index.js" && file !== "cmake.js"
|
|
254
256
|
})
|
|
255
257
|
|
|
256
|
-
|
|
258
|
+
console.log("BIN INIT")
|
|
259
|
+
|
|
257
260
|
for(let filename of modfiles) {
|
|
258
261
|
// 1. get all the modules in __dirname
|
|
259
262
|
// 2. load them
|
package/kernel/index.js
CHANGED
|
@@ -703,7 +703,9 @@ class Kernel {
|
|
|
703
703
|
|
|
704
704
|
//await this.shell.init()
|
|
705
705
|
|
|
706
|
+
console.log("********************************************", { homedir: this.homedir })
|
|
706
707
|
if (this.homedir) {
|
|
708
|
+
console.log("> 1")
|
|
707
709
|
await this.template.init({
|
|
708
710
|
kernel: this,
|
|
709
711
|
system,
|
|
@@ -713,22 +715,30 @@ class Kernel {
|
|
|
713
715
|
return this.api.get_proxy_url("/proxy", port)
|
|
714
716
|
},
|
|
715
717
|
})
|
|
718
|
+
console.log("> 2")
|
|
716
719
|
this.sys = new Sysinfo()
|
|
717
720
|
await this.sys.init(this)
|
|
721
|
+
console.log("> 3")
|
|
718
722
|
let info = this.sys.info
|
|
719
723
|
|
|
720
724
|
this.sysinfo = info
|
|
721
725
|
|
|
722
726
|
await this.getInfo()
|
|
727
|
+
console.log("> 4")
|
|
723
728
|
|
|
724
729
|
await fs.promises.mkdir(this.path("logs"), { recursive: true }).catch((e) => { })
|
|
730
|
+
console.log("> 5")
|
|
725
731
|
await fs.promises.writeFile(this.path("logs/system.json"), JSON.stringify(this.i, null, 2))
|
|
732
|
+
console.log("> 6")
|
|
726
733
|
let pwpath = this.bin.path("playwright/node_modules/playwright")
|
|
727
734
|
this.playwright = (await this.loader.load(pwpath)).resolved
|
|
728
735
|
|
|
736
|
+
console.log("> 7")
|
|
729
737
|
|
|
730
738
|
await this.proto.init()
|
|
739
|
+
console.log("> 8")
|
|
731
740
|
await this.plugin.init()
|
|
741
|
+
console.log("> 9")
|
|
732
742
|
|
|
733
743
|
// refresh every 5 second
|
|
734
744
|
if (this.refresh_interval) {
|