claude-code-remote-pilot 0.1.3 → 0.1.4
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/bin/claude-pilot.js +26 -0
- package/package.json +1 -1
package/bin/claude-pilot.js
CHANGED
|
@@ -78,10 +78,36 @@ async function setupTelegram() {
|
|
|
78
78
|
console.log('Telegram configured for this session.\n');
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
function printGuide() {
|
|
82
|
+
const session = process.env.CLAUDE_SESSION || 'claude';
|
|
83
|
+
console.log(`
|
|
84
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
85
|
+
Claude Code Remote Pilot — Ready
|
|
86
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
87
|
+
|
|
88
|
+
The watcher is starting in the background.
|
|
89
|
+
|
|
90
|
+
To talk to Claude:
|
|
91
|
+
tmux attach -t ${session}
|
|
92
|
+
|
|
93
|
+
To detach without stopping Claude:
|
|
94
|
+
Press Ctrl+B then D
|
|
95
|
+
|
|
96
|
+
The pilot will:
|
|
97
|
+
• detect usage/rate limits
|
|
98
|
+
• wait for the reset
|
|
99
|
+
• send "continue" automatically
|
|
100
|
+
• notify you via Telegram (if configured)
|
|
101
|
+
|
|
102
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
103
|
+
`);
|
|
104
|
+
}
|
|
105
|
+
|
|
81
106
|
async function main() {
|
|
82
107
|
await ensureDep('tmux', 'tmux', tmuxInstallCmd());
|
|
83
108
|
await ensureDep('claude', 'Claude Code CLI', 'npm install -g @anthropic-ai/claude-code');
|
|
84
109
|
await setupTelegram();
|
|
110
|
+
printGuide();
|
|
85
111
|
|
|
86
112
|
const child = spawn('bash', [scriptPath], {
|
|
87
113
|
stdio: 'inherit',
|
package/package.json
CHANGED