muuuuse 2.2.1 → 2.2.3

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/package.json +1 -1
  2. package/src/runtime.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muuuuse",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "description": "🔌Muuuuse arms two regular terminals and relays assistant output between them.",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/src/runtime.js CHANGED
@@ -467,7 +467,14 @@ function stripPassiveTerminalInput(input) {
467
467
  .replace(/\u0000/g, "");
468
468
  }
469
469
 
470
+ function isBareEscapeInput(input) {
471
+ return String(input || "") === "\u001b";
472
+ }
473
+
470
474
  function isMeaningfulTerminalInput(input) {
475
+ if (isBareEscapeInput(input)) {
476
+ return false;
477
+ }
471
478
  return stripPassiveTerminalInput(input).length > 0;
472
479
  }
473
480
 
@@ -1514,6 +1521,7 @@ module.exports = {
1514
1521
  buildChildEnv,
1515
1522
  chunkRelayPayloadForTyping,
1516
1523
  getStatusReport,
1524
+ isBareEscapeInput,
1517
1525
  isMeaningfulTerminalInput,
1518
1526
  normalizeRelayPayloadForTyping,
1519
1527
  resolveSessionName,