claude-remote 0.2.4 → 0.3.0

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/server.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-remote",
3
- "version": "0.2.4",
3
+ "version": "0.3.0",
4
4
  "description": "Remote control bridge for Claude Code REPL - drive from phone/WebUI",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.js CHANGED
@@ -668,6 +668,18 @@ wss.on('connection', (ws, req) => {
668
668
  sendReplay(ws, canResume ? msg.lastSeq : null);
669
669
  break;
670
670
  }
671
+ case 'foreground_probe': {
672
+ const probeId = typeof msg.probeId === 'string' ? msg.probeId : '';
673
+ sendWs(ws, {
674
+ type: 'foreground_probe_ack',
675
+ probeId,
676
+ sessionId: currentSessionId,
677
+ lastSeq: latestEventSeq(),
678
+ cwd: CWD,
679
+ }, 'foreground_probe');
680
+ log(`Foreground probe ack -> ${wsLabel(ws)} probeId=${probeId || 'none'} session=${currentSessionId ?? 'null'} lastSeq=${latestEventSeq()}`);
681
+ break;
682
+ }
671
683
  case 'input':
672
684
  // Raw terminal keystrokes from xterm.js in WebUI
673
685
  if (claudeProc) claudeProc.write(msg.data);