claude-remote-cli 1.9.2 → 1.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-remote-cli",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Remote web interface for Claude Code CLI sessions",
5
5
  "type": "module",
6
6
  "main": "dist/server/index.js",
package/public/app.js CHANGED
@@ -1108,8 +1108,8 @@
1108
1108
  var text = btn.dataset.text;
1109
1109
  var key = btn.dataset.key;
1110
1110
 
1111
- // Flush composed text before sending Enter so pending input isn't lost
1112
- if (key === '\r' && mobileInput.flushComposedText) {
1111
+ // Flush composed text before sending Enter/newline so pending input isn't lost
1112
+ if ((key === '\r' || key === '\x1b[13;2u') && mobileInput.flushComposedText) {
1113
1113
  mobileInput.flushComposedText();
1114
1114
  }
1115
1115
 
@@ -1119,8 +1119,8 @@
1119
1119
  ws.send(key);
1120
1120
  }
1121
1121
 
1122
- // Clear input after Enter to reset state
1123
- if (key === '\r' && mobileInput.clearInput) {
1122
+ // Clear input after Enter/newline to reset state
1123
+ if ((key === '\r' || key === '\x1b[13;2u') && mobileInput.clearInput) {
1124
1124
  mobileInput.clearInput();
1125
1125
  }
1126
1126
 
@@ -1419,7 +1419,11 @@
1419
1419
  switch (e.key) {
1420
1420
  case 'Enter':
1421
1421
  flushComposedText();
1422
- ws.send('\r');
1422
+ if (e.shiftKey) {
1423
+ ws.send('\x1b[13;2u'); // kitty protocol: Shift+Enter (newline)
1424
+ } else {
1425
+ ws.send('\r');
1426
+ }
1423
1427
  mobileInput.value = '';
1424
1428
  lastInputValue = '';
1425
1429
  break;
package/public/index.html CHANGED
@@ -79,10 +79,12 @@
79
79
  <button class="tb-btn tb-arrow" data-key="&#x1b;[A" aria-label="Up arrow">&#8593;</button>
80
80
  <button class="tb-btn" data-key="&#x1b;" aria-label="Escape">Esc</button>
81
81
  <button class="tb-btn" id="upload-image-btn" aria-label="Upload image">&#128247;</button>
82
+ <button class="tb-btn" data-key="&#x04;" aria-label="Ctrl+D">^D</button>
82
83
  <button class="tb-btn" data-key="&#x03;" aria-label="Ctrl+C">^C</button>
83
84
  <button class="tb-btn tb-arrow" data-key="&#x1b;[D" aria-label="Left arrow">&#8592;</button>
84
85
  <button class="tb-btn tb-arrow" data-key="&#x1b;[B" aria-label="Down arrow">&#8595;</button>
85
86
  <button class="tb-btn tb-arrow" data-key="&#x1b;[C" aria-label="Right arrow">&#8594;</button>
87
+ <button class="tb-btn tb-newline" data-key="&#x1b;[13;2u" aria-label="Shift+Enter (newline)">&#8679;&#9166;</button>
86
88
  <button class="tb-btn tb-enter" data-key="&#x0d;" aria-label="Enter">&#9166;</button>
87
89
  </div>
88
90
  </div>
package/public/style.css CHANGED
@@ -521,7 +521,7 @@ html, body {
521
521
 
522
522
  .toolbar-grid {
523
523
  display: grid;
524
- grid-template-columns: repeat(5, 1fr);
524
+ grid-template-columns: repeat(6, 1fr);
525
525
  grid-template-rows: auto auto;
526
526
  gap: 4px;
527
527
  max-width: 500px;