claude-code-remote-pilot 0.4.7 → 0.4.9
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 +19 -1
- package/bin/claude-pilot.js +36 -0
- package/lib/Watcher.js +1 -0
- package/lib/ui.html +17 -1
- package/package.json +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.4.
|
|
3
|
+
## 0.4.9 — 2026-05-06
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- **Repo metadata in package.json**: added `repository`, `homepage`, and `bugs` fields pointing to `github.com/mekku/claude-code-remote-pilot`.
|
|
7
|
+
- **Auto-discover untracked tmux sessions**: on startup, pilot lists any tmux sessions not already being watched and offers to adopt them (fetches the pane's current working directory automatically).
|
|
8
|
+
- **Immediate status check on watcher start**: `Watcher.start()` now calls `_check()` immediately instead of waiting for the first 5-second tick — sessions show the correct status from the first second after adopt/spawn.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 0.4.8 — 2026-05-06
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **Startup prompt**: asks "Open web dashboard? (Y/n)" during setup — default yes. Starts the server on `127.0.0.1:3742` and opens the browser automatically.
|
|
16
|
+
- **Terminal header hint**: shows `Ctrl+B D · detach` in the terminal header bar as a reminder to detach from tmux without killing the session.
|
|
17
|
+
- **"⊞ New Terminal" button**: copies `tmux attach -t <name>` to clipboard. Button briefly shows "✓ Copied" as confirmation.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 0.4.7 — 2026-05-06
|
|
4
22
|
|
|
5
23
|
### Fixed
|
|
6
24
|
- False `limit` status when a session has recovered from a prior limit hit. Root cause: `LIMIT_RE` was tested against the full 500-line tmux scrollback, so old limit text in scroll history kept re-triggering limit detection even after the session resumed. Now `LIMIT_RE` is checked against only the last 15 non-empty lines (`limitWindow`), matching the same windowed approach used for `RESPONSE_RE` and `RUNNING_RE`.
|
package/bin/claude-pilot.js
CHANGED
|
@@ -382,6 +382,30 @@ ${HELP}`);
|
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
// Auto-discover tmux sessions not already managed
|
|
386
|
+
try {
|
|
387
|
+
const tmuxListRaw = execSync('tmux ls -F "#{session_name}"', { encoding: 'utf8' });
|
|
388
|
+
const allTmux = tmuxListRaw.trim().split('\n').filter(Boolean);
|
|
389
|
+
const managed = new Set(manager.list().map(s => s.name));
|
|
390
|
+
const untracked = allTmux.filter(n => !managed.has(n));
|
|
391
|
+
if (untracked.length) {
|
|
392
|
+
console.log(`\n Found ${untracked.length} untracked tmux session(s):`);
|
|
393
|
+
untracked.forEach(n => console.log(` ${n}`));
|
|
394
|
+
const adoptAns = await question(setupRl, ' Adopt and watch these? (y/N) ');
|
|
395
|
+
if (adoptAns === 'y' || adoptAns === 'yes') {
|
|
396
|
+
for (const sessionName of untracked) {
|
|
397
|
+
try {
|
|
398
|
+
let sessionPath = '';
|
|
399
|
+
try { sessionPath = execSync(`tmux display-message -p -t "${sessionName}" '#{pane_current_path}'`, { encoding: 'utf8' }).trim(); } catch {}
|
|
400
|
+
manager.adopt(sessionName, sessionPath);
|
|
401
|
+
console.log(` ✓ Adopted "${sessionName}"${sessionPath ? ` at ${sessionPath}` : ''}`);
|
|
402
|
+
} catch (e) { console.log(` ✗ ${e.message}`); }
|
|
403
|
+
}
|
|
404
|
+
console.log('');
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
} catch {}
|
|
408
|
+
|
|
385
409
|
const cwd = process.cwd();
|
|
386
410
|
const defaultName = path.basename(cwd);
|
|
387
411
|
const mount = await question(setupRl, `Mount current directory as a session? (${defaultName}) [y/N] `);
|
|
@@ -393,6 +417,18 @@ ${HELP}`);
|
|
|
393
417
|
console.log(` tmux attach -t ${session.name}\n`);
|
|
394
418
|
}
|
|
395
419
|
|
|
420
|
+
const openWeb = await question(setupRl, 'Open web dashboard? (Y/n) ');
|
|
421
|
+
if (isYes(openWeb)) {
|
|
422
|
+
const webServer = new WebServer(manager, 3742, '127.0.0.1');
|
|
423
|
+
manager._webServer = webServer;
|
|
424
|
+
webServer.start();
|
|
425
|
+
const url = 'http://127.0.0.1:3742';
|
|
426
|
+
console.log(` ✓ Web dashboard at ${url}`);
|
|
427
|
+
const opener = process.platform === 'darwin' ? 'open' : 'xdg-open';
|
|
428
|
+
spawn(opener, [url], { stdio: 'ignore', detached: true }).unref();
|
|
429
|
+
console.log('');
|
|
430
|
+
}
|
|
431
|
+
|
|
396
432
|
setupRl.close();
|
|
397
433
|
|
|
398
434
|
console.log(' Type help for commands.\n');
|
package/lib/Watcher.js
CHANGED
package/lib/ui.html
CHANGED
|
@@ -498,10 +498,19 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
|
|
|
498
498
|
const [msg, setMsg] = useState('');
|
|
499
499
|
const [sending, setSending] = useState(false);
|
|
500
500
|
const [killing, setKilling] = useState(false);
|
|
501
|
+
const [copyOk, setCopyOk] = useState(false);
|
|
501
502
|
const terminalRef = useRef(null);
|
|
502
503
|
const inputRef = useRef(null);
|
|
503
504
|
const isOffline = session.status === 'offline';
|
|
504
505
|
|
|
506
|
+
const copyAttachCmd = () => {
|
|
507
|
+
const cmd = `tmux attach -t ${session.name}`;
|
|
508
|
+
navigator.clipboard?.writeText(cmd).then(() => {
|
|
509
|
+
setCopyOk(true);
|
|
510
|
+
setTimeout(() => setCopyOk(false), 2000);
|
|
511
|
+
}).catch(() => {});
|
|
512
|
+
};
|
|
513
|
+
|
|
505
514
|
// Auto-focus input on mount and when session changes
|
|
506
515
|
useEffect(() => {
|
|
507
516
|
if (!isOffline) setTimeout(() => inputRef.current?.focus(), 50);
|
|
@@ -586,6 +595,11 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
|
|
|
586
595
|
<div className="detail-meta" style={{ maxWidth: 480, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{session.path}</div>
|
|
587
596
|
</div>
|
|
588
597
|
<div className="detail-actions">
|
|
598
|
+
{!isOffline && (
|
|
599
|
+
<button className="btn btn-sm" onClick={copyAttachCmd} title={`tmux attach -t ${session.name}`}>
|
|
600
|
+
{copyOk ? '✓ Copied' : '⊞ New Terminal'}
|
|
601
|
+
</button>
|
|
602
|
+
)}
|
|
589
603
|
{!isOffline && (
|
|
590
604
|
<button className="btn btn-sm" style={{ color: 'var(--error)' }} onClick={handleKill} disabled={killing}>
|
|
591
605
|
{Icons.trash} {killing ? 'Ending…' : 'End'}
|
|
@@ -602,7 +616,9 @@ function SessionDetailScreen({ session, onBack, onKilled }) {
|
|
|
602
616
|
<span className="terminal-dot" style={{ background: '#febc2e' }} />
|
|
603
617
|
<span className="terminal-dot" style={{ background: '#28c840' }} />
|
|
604
618
|
<span className="terminal-title">{session.name}</span>
|
|
605
|
-
<span style={{
|
|
619
|
+
<span style={{ flex: 1 }} />
|
|
620
|
+
{!isOffline && <span style={{ fontSize: 10, color: 'oklch(42% 0.018 50)', fontFamily: 'var(--font-mono)', marginRight: 10 }}>Ctrl+B D · detach</span>}
|
|
621
|
+
<StatusPill status={session.status} />
|
|
606
622
|
</div>
|
|
607
623
|
|
|
608
624
|
<div className="terminal-body" ref={terminalRef}>
|
package/package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-remote-pilot",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Interactive Claude Code supervisor — spawn and monitor multiple Claude sessions from a single terminal.",
|
|
5
5
|
"type": "commonjs",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/mekku/claude-code-remote-pilot.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/mekku/claude-code-remote-pilot#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/mekku/claude-code-remote-pilot/issues"
|
|
13
|
+
},
|
|
6
14
|
"bin": {
|
|
7
15
|
"claude-remote-pilot": "bin/claude-pilot.js"
|
|
8
16
|
},
|