pinokiod 3.2.240 → 3.2.246
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 +11 -9
- package/package.json +1 -1
package/kernel/index.js
CHANGED
|
@@ -493,8 +493,11 @@ class Kernel {
|
|
|
493
493
|
// get env
|
|
494
494
|
if (!this.launch_complete) {
|
|
495
495
|
let interval = setInterval(async () => {
|
|
496
|
+
console.log(">>>>> 1")
|
|
496
497
|
if (this.i) {
|
|
498
|
+
console.log(">>>>> 2")
|
|
497
499
|
for(let api of this.i.api) {
|
|
500
|
+
console.log({ api })
|
|
498
501
|
let env_path = path.resolve(this.api.userdir, api.path)
|
|
499
502
|
let e = await Environment.get(env_path)
|
|
500
503
|
console.log(e)
|
|
@@ -504,15 +507,14 @@ class Kernel {
|
|
|
504
507
|
console.log("ATTEMPTING AUTOLAUNCH", autolaunch_path)
|
|
505
508
|
if (exists) {
|
|
506
509
|
console.log("SCRIPT EXISTS. Starting...", autolaunch_path)
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
resolve(r.input)
|
|
515
|
-
})
|
|
510
|
+
this.api.process({
|
|
511
|
+
uri: autolaunch_path,
|
|
512
|
+
input: {}
|
|
513
|
+
// client: req.client,
|
|
514
|
+
// caller: req.parent.path,
|
|
515
|
+
}, (r) => {
|
|
516
|
+
console.log({ autolaunch_path, r })
|
|
517
|
+
// resolve(r.input)
|
|
516
518
|
})
|
|
517
519
|
} else {
|
|
518
520
|
console.log("SCRIPT DOES NOT EXIST. Ignoring.", autolaunch_path)
|