brsh 3.6.0 → 3.6.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [3.6.1](https://github.com/eliotstocker/Brsh-JS/compare/v3.6.0...v3.6.1) (2026-11-09)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **wbt:** support interactive streaming and input forwarding for wbt run, bump nano to 8.0.1 ([97cc478](https://github.com/eliotstocker/Brsh-JS/commit/97cc478d97160075249ab3d490f6e3d30f90b44f))
7
+
1
8
  # [3.6.0](https://github.com/eliotstocker/Brsh-JS/compare/v3.5.0...v3.6.0) (2026-11-09)
2
9
 
3
10
 
package/dist/shell.es.js CHANGED
@@ -2823,7 +2823,7 @@ var j, M, N, P, F, I, L, R, z, B, V = e((() => {
2823
2823
  let t = {
2824
2824
  1: "",
2825
2825
  2: ""
2826
- }, n = new TextDecoder(), b = new TextEncoder(), C = null, w = null, T = !1, E = 0, D = null, O = null, j = null, M = null, N = !!(this.interactive && (this.stdin === void 0 || this.stdin === null || this.stdin === this.stdinStream)), P = (e, n) => {
2826
+ }, n = new TextDecoder(), b = new TextEncoder(), C = null, w = null, T = !1, E = 0, D = null, O = null, j = null, M = null, N = !!(this.interactive && (this.stdin === void 0 || this.stdin === null || this.stdin === this.stdinStream || this.stdin && this.stdin.isTTY)), P = (e, n) => {
2827
2827
  if (N && (e === 1 || e === 2)) {
2828
2828
  if (e === 1 && this.stdout) {
2829
2829
  this.stdout.write(n);
@@ -2860,7 +2860,7 @@ var j, M, N, P, F, I, L, R, z, B, V = e((() => {
2860
2860
  if (this._handlingStreamData) return;
2861
2861
  let t = this._keyToBytes(e);
2862
2862
  t && L(t);
2863
- }, N && this.stdinStream && typeof this.stdinStream.on == "function" && this.stdinStream.on("data", M);
2863
+ }, N && this.stdinStream && typeof this.stdinStream.on == "function" && this.stdinStream.on("data", M), N && this.stdin && this.stdin !== this.stdinStream && typeof this.stdin.on == "function" && this.stdin.on("data", M);
2864
2864
  let R = !N && typeof this.stdin == "string" ? b.encode(this.stdin) : !N && this.stdin instanceof Uint8Array ? this.stdin : !N && y !== void 0 && y.isBuffer(this.stdin) ? new Uint8Array(this.stdin) : new Uint8Array(), z = 0, B = this.context && this.context.fs ? this.context.fs : this.fs, V = 5, H = new Map([[3, {
2865
2865
  type: "preopen",
2866
2866
  path: "/",
@@ -3264,7 +3264,7 @@ var j, M, N, P, F, I, L, R, z, B, V = e((() => {
3264
3264
  } catch (e) {
3265
3265
  (!e || !e._wasmExit) && (this.stdErr = `${this.script}: ${e?.message || String(e)}`, this.exitCode = 1);
3266
3266
  } finally {
3267
- N && this._exitAltScreen(), N && M && this.stdinStream && typeof this.stdinStream.off == "function" && this.stdinStream.off("data", M), j && (this.stdout && typeof this.stdout.off == "function" && this.stdout.off("resize", j), this.stdinStream && typeof this.stdinStream.off == "function" && this.stdinStream.off("resize", j)), this._externalKeyHandler = null;
3267
+ N && this._exitAltScreen(), N && M && (this.stdinStream && typeof this.stdinStream.off == "function" && this.stdinStream.off("data", M), this.stdin && typeof this.stdin.off == "function" && this.stdin.off("data", M)), j && (this.stdout && typeof this.stdout.off == "function" && this.stdout.off("resize", j), this.stdinStream && typeof this.stdinStream.off == "function" && this.stdinStream.off("resize", j)), this._externalKeyHandler = null;
3268
3268
  for (let e of H.values()) ee(e);
3269
3269
  }
3270
3270
  F();