pinokiod 3.2.14 → 3.2.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.
Files changed (2) hide show
  1. package/kernel/shell.js +4 -0
  2. package/package.json +1 -1
package/kernel/shell.js CHANGED
@@ -815,6 +815,7 @@ ${cleaned}
815
815
  this.vt.write(msg, () => {
816
816
  let buf = this.vts.serialize()
817
817
  let cleaned = this.stripAnsi(buf)
818
+ console.log({ buf, cleaned })
818
819
  let response = {
819
820
  id: this.id,
820
821
  raw: msg,
@@ -824,11 +825,13 @@ ${cleaned}
824
825
  if (this.cb) this.cb(response)
825
826
 
826
827
  // Decide whether to kill or continue
828
+ console.log("this.ready", this.ready)
827
829
  if (this.ready) {
828
830
  // when ready, watch out for the prompt pattern that terminates with [\r\n ]
829
831
  let termination_prompt_re = new RegExp(this.prompt_pattern + "[ \r\n]*$", "g")
830
832
  let line = cleaned.replaceAll(/[\r\n]/g, "")
831
833
  let test = line.match(termination_prompt_re)
834
+ console.log(">>>>>>>>", { line, test, termination_prompt_re })
832
835
  if (test) {
833
836
  let cache = cleaned
834
837
  let cached_msg = msg
@@ -861,6 +864,7 @@ ${cleaned}
861
864
  // when not ready, wait for the first occurence of the prompt pattern.
862
865
  let prompt_re = new RegExp(this.prompt_pattern, "g")
863
866
  let test = cleaned.replaceAll(/[\r\n]/g, "").match(prompt_re)
867
+ console.log(">>>>>>>>", { cleaned, test, prompt_re })
864
868
  if (test) {
865
869
  if (test.length > 0) {
866
870
  this.ready = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.2.14",
3
+ "version": "3.2.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {