claude-code-remote-pilot 0.2.6 → 0.2.7
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/lib/Watcher.js +8 -1
- package/package.json +1 -1
package/lib/Watcher.js
CHANGED
|
@@ -4,8 +4,10 @@ const crypto = require('crypto');
|
|
|
4
4
|
const notifier = require('./notifier');
|
|
5
5
|
|
|
6
6
|
const LIMIT_RE = /hit your limit|usage limit|rate limit|limit reached|try again|resets/i;
|
|
7
|
-
//
|
|
7
|
+
// Claude Code's permission/action prompt UI
|
|
8
8
|
const RESPONSE_RE = /do you want to proceed|esc to cancel|ctrl\+e to explain|❯\s*\d+\.\s*yes/i;
|
|
9
|
+
// Claude Code shows this footer while actively processing
|
|
10
|
+
const RUNNING_RE = /esc to interrupt/i;
|
|
9
11
|
// Claude Code shows ">" alone on the last line when idle/waiting for next prompt
|
|
10
12
|
const IDLE_RE = /^\s*>\s*$/;
|
|
11
13
|
|
|
@@ -81,6 +83,11 @@ class Watcher {
|
|
|
81
83
|
notifier.send(this.telegram.token, this.telegram.chatId,
|
|
82
84
|
`Pilot: "${this.session.name}" needs your response.`);
|
|
83
85
|
}
|
|
86
|
+
} else if (RUNNING_RE.test(text)) {
|
|
87
|
+
if (this.session.status !== 'running') {
|
|
88
|
+
this.session.status = 'running';
|
|
89
|
+
this.session.resumeAt = null;
|
|
90
|
+
}
|
|
84
91
|
} else if (IDLE_RE.test(lastLine)) {
|
|
85
92
|
if (this.session.status !== 'idle') {
|
|
86
93
|
this.session.status = 'idle';
|
package/package.json
CHANGED