pinokiod 2.15.15 → 2.15.16

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
@@ -340,6 +340,7 @@ class Kernel {
340
340
  await this.bin.init()
341
341
  await this.api.init()
342
342
 
343
+ await this.shell.init()
343
344
 
344
345
  if (this.homedir) {
345
346
  this.sys = new Sysinfo()
package/kernel/shells.js CHANGED
@@ -26,6 +26,16 @@ class Shells {
26
26
  }]
27
27
  }
28
28
  */
29
+ async init() {
30
+ // iterate through all the envs
31
+ let sh = new Shell(this.kernel)
32
+ let response = await sh.start({
33
+ env: this.kernel.bin.envs({}),
34
+ }, async (stream) => {
35
+ process.stdout.write(stream.raw)
36
+ })
37
+ this.kernel.envs = sh.env
38
+ }
29
39
  async launch(params, options, ondata) {
30
40
  // iterate through all the envs
31
41
  params.env = this.kernel.bin.envs(params.env)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "2.15.15",
3
+ "version": "2.15.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {