codeam-cli 1.3.4 → 1.3.6

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/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ var import_picocolors = __toESM(require("picocolors"));
114
114
  // package.json
115
115
  var package_default = {
116
116
  name: "codeam-cli",
117
- version: "1.3.4",
117
+ version: "1.3.6",
118
118
  description: "Remote control Claude Code from your mobile device",
119
119
  main: "dist/index.js",
120
120
  bin: {
@@ -710,6 +710,10 @@ var ClaudeService = class {
710
710
  this.proc?.stdin?.write("\r");
711
711
  }, index * ARROW_MS + ENTER_MS);
712
712
  }
713
+ /** Send Escape key to Claude (cancels interactive prompts). */
714
+ sendEscape() {
715
+ this.proc?.stdin?.write("\x1B");
716
+ }
713
717
  /** Send Ctrl+C to Claude. */
714
718
  interrupt() {
715
719
  this.proc?.stdin?.write("");
@@ -1144,6 +1148,10 @@ async function start() {
1144
1148
  claude.selectOption(index);
1145
1149
  break;
1146
1150
  }
1151
+ case "escape_key":
1152
+ outputSvc.newTurn();
1153
+ claude.sendEscape();
1154
+ break;
1147
1155
  case "stop_task":
1148
1156
  claude.interrupt();
1149
1157
  break;
@@ -1185,6 +1193,9 @@ async function start() {
1185
1193
  const index = inner.index ?? 0;
1186
1194
  outputSvc.newTurn();
1187
1195
  claude.selectOption(index);
1196
+ } else if (cmdType === "escape_key") {
1197
+ outputSvc.newTurn();
1198
+ claude.sendEscape();
1188
1199
  } else if (cmdType === "stop_task") {
1189
1200
  claude.interrupt();
1190
1201
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {