pinokiod 3.8.124 → 3.8.126
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/conda.js +2 -0
- package/kernel/bin/index.js +3 -1
- package/kernel/peer.js +1 -1
- package/kernel/shell.js +1 -0
- package/kernel/shells.js +3 -0
- package/package.json +1 -1
package/kernel/bin/conda.js
CHANGED
|
@@ -120,8 +120,10 @@ report_errors: false`)
|
|
|
120
120
|
// }
|
|
121
121
|
async check() {
|
|
122
122
|
let res = await this.kernel.bin.exec({ message: `conda list` }, (stream) => {
|
|
123
|
+
process.stdout.write(stream.raw)
|
|
123
124
|
// console.log("conda list check", { stream })
|
|
124
125
|
})
|
|
126
|
+
console.log("2 conda list check", res)
|
|
125
127
|
|
|
126
128
|
let lines = res.response.split(/[\r\n]+/)
|
|
127
129
|
let conda_check = {}
|
package/kernel/bin/index.js
CHANGED
|
@@ -344,9 +344,11 @@ class Bin {
|
|
|
344
344
|
this.correct_conda = false
|
|
345
345
|
} else {
|
|
346
346
|
res = await this.exec({ message: `conda list` }, (stream) => {
|
|
347
|
-
|
|
347
|
+
process.stdout.write(stream.raw)
|
|
348
348
|
// console.log("conda list check", { stream })
|
|
349
349
|
})
|
|
350
|
+
console.log("1 conda list check", res)
|
|
351
|
+
|
|
350
352
|
|
|
351
353
|
let lines = res.response.split(/[\r\n]+/)
|
|
352
354
|
for(let line of lines) {
|
package/kernel/peer.js
CHANGED
|
@@ -39,7 +39,7 @@ class PeerDiscovery {
|
|
|
39
39
|
console.log("kernel.peer start")
|
|
40
40
|
this.socket = dgram.createSocket('udp4');
|
|
41
41
|
this.socket.on('message', (msg, rinfo) => {
|
|
42
|
-
console.log("peer message", { msg, rinfo })
|
|
42
|
+
// console.log("peer message", { msg, rinfo })
|
|
43
43
|
const ip = rinfo.address;
|
|
44
44
|
// console.log({rinfo})
|
|
45
45
|
if (msg.toString() === this.message.toString() && this._isLocalLAN(ip)) {
|
package/kernel/shell.js
CHANGED
package/kernel/shells.js
CHANGED
|
@@ -157,6 +157,7 @@ class Shells {
|
|
|
157
157
|
}
|
|
158
158
|
ondata(stream)
|
|
159
159
|
})
|
|
160
|
+
console.log("SHELL RESPONSE", response)
|
|
160
161
|
|
|
161
162
|
|
|
162
163
|
/*
|
|
@@ -245,10 +246,12 @@ class Shells {
|
|
|
245
246
|
line = line.replaceAll(err, "")
|
|
246
247
|
}
|
|
247
248
|
}
|
|
249
|
+
console.log("BEFORE SHELL RETURN 1")
|
|
248
250
|
|
|
249
251
|
// don't return if there's an error
|
|
250
252
|
return { id: sh.id, response, stdout: response, event: m, error: shortened_errs }
|
|
251
253
|
} else {
|
|
254
|
+
console.log("BEFORE SHELL RETURN 2")
|
|
252
255
|
// need to make a request
|
|
253
256
|
return { id: sh.id, response, stdout: response, event: m }
|
|
254
257
|
}
|