claude-code-remote-pilot 0.4.8 → 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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
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
+
3
12
  ## 0.4.8 — 2026-05-06
4
13
 
5
14
  ### Added
@@ -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] `);
package/lib/Watcher.js CHANGED
@@ -32,6 +32,7 @@ class Watcher {
32
32
  }
33
33
 
34
34
  start() {
35
+ this._check(); // run immediately so status is correct from the first second
35
36
  this._timer = setInterval(() => this._check(), this.checkInterval);
36
37
  }
37
38
 
package/package.json CHANGED
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "name": "claude-code-remote-pilot",
3
- "version": "0.4.8",
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
  },