claude-code-remote-pilot 0.4.2 → 0.4.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/CHANGELOG.md +10 -0
- package/README.md +9 -2
- package/bin/claude-pilot.js +5 -4
- package/lib/WebServer.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.3 — 2026-05-06
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- `web [port] [host]` — web dashboard now accepts an optional bind host.
|
|
7
|
+
- `web` → `127.0.0.1:3742` (local only, default)
|
|
8
|
+
- `web 3742 0.0.0.0` → bind to all interfaces (accessible from other devices on the network)
|
|
9
|
+
- `web 8080 192.168.1.10` → bind to a specific interface
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
3
13
|
## 0.4.2 — 2026-05-06
|
|
4
14
|
|
|
5
15
|
### Fixed
|
package/README.md
CHANGED
|
@@ -104,7 +104,7 @@ sudo apt update && sudo apt install tmux
|
|
|
104
104
|
| `spawn <path> [name]` | Start Claude at a path. Name defaults to the directory name. |
|
|
105
105
|
| `list` | One-shot status of all sessions. |
|
|
106
106
|
| `watch` | Live dashboard with offline session history. Press a number to select, `q` to exit. |
|
|
107
|
-
| `web [port]` | Start the web dashboard
|
|
107
|
+
| `web [port] [host]` | Start the web dashboard. Defaults to `127.0.0.1:3742`. Use `0.0.0.0` to expose on the network. |
|
|
108
108
|
| `attach <name>` | Open a tmux session in the current terminal. |
|
|
109
109
|
| `kill <name>` | Stop a session. |
|
|
110
110
|
| `help` | Show command reference. |
|
|
@@ -129,7 +129,14 @@ The dashboard shows all sessions (live and offline), lets you:
|
|
|
129
129
|
- Kill sessions
|
|
130
130
|
- See a live activity log of status transitions
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
By default the server binds to `127.0.0.1` — local only. To access from other devices on your network:
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
claude-pilot> web 3742 0.0.0.0
|
|
136
|
+
✓ Web dashboard started at http://0.0.0.0:3742
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
You can also bind to a specific interface IP: `web 3742 192.168.1.10`.
|
|
133
140
|
|
|
134
141
|
---
|
|
135
142
|
|
package/bin/claude-pilot.js
CHANGED
|
@@ -319,7 +319,7 @@ const HELP = `
|
|
|
319
319
|
spawn <path> [name] Start Claude at path (name defaults to dir name)
|
|
320
320
|
list Show all sessions
|
|
321
321
|
watch Live session monitor (q to exit)
|
|
322
|
-
web [port]
|
|
322
|
+
web [port] [host] Start web dashboard (default: 3742 127.0.0.1)
|
|
323
323
|
attach <name> Open tmux session in this terminal
|
|
324
324
|
kill <name> Stop a session
|
|
325
325
|
resume [message] Show or set the message sent after a limit resets
|
|
@@ -432,15 +432,16 @@ ${HELP}`);
|
|
|
432
432
|
}
|
|
433
433
|
case 'web': {
|
|
434
434
|
const port = parseInt(args[0]) || 3742;
|
|
435
|
+
const host = args[1] || '127.0.0.1';
|
|
435
436
|
let webServer = manager._webServer;
|
|
436
437
|
if (webServer) {
|
|
437
|
-
console.log(` Web dashboard already running at http
|
|
438
|
+
console.log(` Web dashboard already running at http://${webServer.host}:${webServer.port}`);
|
|
438
439
|
break;
|
|
439
440
|
}
|
|
440
|
-
webServer = new WebServer(manager, port);
|
|
441
|
+
webServer = new WebServer(manager, port, host);
|
|
441
442
|
manager._webServer = webServer;
|
|
442
443
|
webServer.start();
|
|
443
|
-
const url = `http
|
|
444
|
+
const url = `http://${host}:${port}`;
|
|
444
445
|
console.log(` ✓ Web dashboard started at ${url}`);
|
|
445
446
|
const opener = process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
446
447
|
spawn(opener, [url], { stdio: 'ignore', detached: true }).unref();
|
package/lib/WebServer.js
CHANGED
|
@@ -8,9 +8,10 @@ const config = require('./config');
|
|
|
8
8
|
const STRIP_ANSI = /\x1b\[[0-9;]*[mGKHFABCDJsuhl]|\x1b[()][AB012]/g;
|
|
9
9
|
|
|
10
10
|
class WebServer {
|
|
11
|
-
constructor(manager, port = 3742) {
|
|
11
|
+
constructor(manager, port = 3742, host = '127.0.0.1') {
|
|
12
12
|
this.manager = manager;
|
|
13
13
|
this.port = port;
|
|
14
|
+
this.host = host;
|
|
14
15
|
this.startedAt = new Date();
|
|
15
16
|
this.server = null;
|
|
16
17
|
this._clients = new Set();
|
|
@@ -160,7 +161,7 @@ class WebServer {
|
|
|
160
161
|
});
|
|
161
162
|
|
|
162
163
|
this._broadcastInterval = setInterval(() => this._broadcast(), 3000);
|
|
163
|
-
this.server.listen(this.port,
|
|
164
|
+
this.server.listen(this.port, this.host);
|
|
164
165
|
return this.port;
|
|
165
166
|
}
|
|
166
167
|
|
package/package.json
CHANGED