claude-code-remote-pilot 0.1.0 → 0.1.1
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/README.md +33 -3
- package/bin/claude-pilot.js +24 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,16 +104,46 @@ Planned:
|
|
|
104
104
|
- python3 recommended for better reset-time parsing
|
|
105
105
|
- Claude Code CLI installed and authenticated
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Installing tmux
|
|
110
|
+
|
|
111
|
+
**macOS (Homebrew):**
|
|
108
112
|
|
|
109
113
|
```bash
|
|
110
114
|
brew install tmux
|
|
111
115
|
```
|
|
112
116
|
|
|
113
|
-
Ubuntu/Debian
|
|
117
|
+
**Ubuntu / Debian:**
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
sudo apt update && sudo apt install tmux curl python3
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Fedora / RHEL / CentOS:**
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
sudo dnf install tmux curl python3
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Arch Linux:**
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
sudo pacman -S tmux curl python3
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Windows (WSL):**
|
|
136
|
+
|
|
137
|
+
Run inside your WSL terminal (Ubuntu recommended):
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
sudo apt update && sudo apt install tmux curl python3
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Verify tmux is working:
|
|
114
144
|
|
|
115
145
|
```bash
|
|
116
|
-
|
|
146
|
+
tmux -V
|
|
117
147
|
```
|
|
118
148
|
|
|
119
149
|
---
|
package/bin/claude-pilot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const { spawn } = require('child_process');
|
|
3
|
+
const { spawn, execSync } = require('child_process');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
|
|
@@ -11,6 +11,29 @@ if (!fs.existsSync(scriptPath)) {
|
|
|
11
11
|
process.exit(1);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
function checkDep(cmd) {
|
|
15
|
+
try { execSync(`command -v ${cmd}`, { stdio: 'ignore' }); return true; }
|
|
16
|
+
catch { return false; }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (!checkDep('tmux')) {
|
|
20
|
+
console.error('\nError: tmux is not installed.\n');
|
|
21
|
+
console.error('Install it with:\n');
|
|
22
|
+
console.error(' macOS: brew install tmux');
|
|
23
|
+
console.error(' Ubuntu/Debian: sudo apt install tmux');
|
|
24
|
+
console.error(' Fedora/RHEL: sudo dnf install tmux');
|
|
25
|
+
console.error(' Arch: sudo pacman -S tmux');
|
|
26
|
+
console.error(' WSL: sudo apt install tmux\n');
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!checkDep('claude')) {
|
|
31
|
+
console.error('\nError: Claude Code CLI is not installed.\n');
|
|
32
|
+
console.error('Install it with:\n');
|
|
33
|
+
console.error(' npm install -g @anthropic-ai/claude-code\n');
|
|
34
|
+
process.exit(1);
|
|
35
|
+
}
|
|
36
|
+
|
|
14
37
|
if (process.argv.includes('--help') || process.argv.includes('-h')) {
|
|
15
38
|
console.log(`
|
|
16
39
|
Claude Code Remote Pilot
|
package/package.json
CHANGED