pinokiod 3.2.159 → 3.2.160

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.
Files changed (2) hide show
  1. package/kernel/shell.js +4 -0
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -720,6 +720,7 @@ class Shell {
720
720
  }
721
721
  }
722
722
  kill(message, force) {
723
+ console.log("> KILL", { message, force })
723
724
 
724
725
  this.done = true
725
726
  this.ready = false
@@ -827,6 +828,7 @@ ${cleaned}
827
828
 
828
829
  }
829
830
  stream(msg, callback) {
831
+ console.log("# STREAM", msg)
830
832
  this.vt.write(msg, () => {
831
833
  let buf = this.vts.serialize()
832
834
  let cleaned = this.stripAnsi(buf)
@@ -844,11 +846,13 @@ ${cleaned}
844
846
  let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
845
847
  let line = cleaned.replaceAll(/[\r\n]/g, "")
846
848
  let test = line.match(termination_prompt_re)
849
+ console.log({ line, test, termination_prompt_re })
847
850
  if (test) {
848
851
  let cache = cleaned
849
852
  let cached_msg = msg
850
853
  // todo: may need to handle cases when the command returns immediately with no output (example: 'which brew' returns immediately with no text if brew doesn't exist)
851
854
  setTimeout(() => {
855
+ console.log({ cache, cleaned })
852
856
  if (cache === cleaned) {
853
857
  if (this.persistent) {
854
858
  if (this.cb) this.cb({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.159",
3
+ "version": "3.2.160",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {