pinokiod 3.2.211 → 3.2.213

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
@@ -232,8 +232,10 @@ class Kernel {
232
232
  arch: this.arch,
233
233
  home: this.homedir,
234
234
  scripts: [],
235
- shells: this.shell.shells.map(({ cols, rows, id, group, path, index, cmd, done }) => {
236
- return { cols, rows, id, group, path, index, cmd, done }
235
+ shells: this.shell.shells.map(({ vts, stripAnsi, cols, rows, id, group, path, index, cmd, done }) => {
236
+ let buf = vts.serialize()
237
+ let state = stripAnsi(buf)
238
+ return { cols, rows, id, group, path, index, cmd, done, state }
237
239
  }),
238
240
  proxies: [],
239
241
  api: [],
package/kernel/lproxy.js CHANGED
@@ -80,7 +80,6 @@ class Lproxy {
80
80
  return `http://${this.ip}:${port}`
81
81
  }
82
82
  async stop (url) {
83
- console.log("proxies", this.proxies, url)
84
83
  let p = this.proxies[url]
85
84
  if (p) {
86
85
  p.close()
package/kernel/shell.js CHANGED
@@ -673,7 +673,7 @@ class Shell {
673
673
  if (env_exists) {
674
674
  venv_activation = [
675
675
  (this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
676
- (this.platform === 'win32' ? `${timeout} /t 1 > nul` : 'sleep 1'),
676
+ timeout,
677
677
  ]
678
678
  } else {
679
679
  venv_activation = [
@@ -681,9 +681,9 @@ class Shell {
681
681
  (this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
682
682
  `python -m pip install --upgrade pip setuptools wheel`,
683
683
  deactivate_path,
684
- (this.platform === 'win32' ? `${timeout} /t 1 > nul` : 'sleep 1'),
684
+ timeout,
685
685
  (this.platform === "win32" ? `${activate_path} ${env_path}` : `source ${activate_path} ${env_path}`),
686
- (this.platform === 'win32' ? `${timeout} /t 1 > nul` : 'sleep 1'),
686
+ timeout,
687
687
  ]
688
688
  }
689
689
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.211",
3
+ "version": "3.2.213",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {