codeam-cli 1.3.4 → 1.3.5

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 +10 -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.5",
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,9 @@ async function start() {
1144
1148
  claude.selectOption(index);
1145
1149
  break;
1146
1150
  }
1151
+ case "escape_key":
1152
+ claude.sendEscape();
1153
+ break;
1147
1154
  case "stop_task":
1148
1155
  claude.interrupt();
1149
1156
  break;
@@ -1185,6 +1192,8 @@ async function start() {
1185
1192
  const index = inner.index ?? 0;
1186
1193
  outputSvc.newTurn();
1187
1194
  claude.selectOption(index);
1195
+ } else if (cmdType === "escape_key") {
1196
+ claude.sendEscape();
1188
1197
  } else if (cmdType === "stop_task") {
1189
1198
  claude.interrupt();
1190
1199
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {