claude-code-remote-pilot 0.2.5 → 0.2.6

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.
Files changed (2) hide show
  1. package/lib/Watcher.js +5 -5
  2. package/package.json +1 -1
package/lib/Watcher.js CHANGED
@@ -4,10 +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
- const RESPONSE_RE = /\?\s*$|do you want|shall i|should i|please confirm|yes\/no|\(y\/n\)|approve|allow this/i;
8
- const PERM_RE = /permission|do you want to proceed|approve this action/i;
9
- // Claude Code shows ">" or "❯" alone on the last line when idle/waiting for next prompt
10
- const IDLE_RE = /^\s*[>❯]\s*$/;
7
+ // Matches Claude Code's permission/action prompt UI
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 ">" alone on the last line when idle/waiting for next prompt
10
+ const IDLE_RE = /^\s*>\s*$/;
11
11
 
12
12
  class Watcher {
13
13
  constructor(session, opts = {}) {
@@ -75,7 +75,7 @@ class Watcher {
75
75
 
76
76
  if (LIMIT_RE.test(text)) {
77
77
  await this._handleLimit(text);
78
- } else if (PERM_RE.test(text) || RESPONSE_RE.test(lastLine)) {
78
+ } else if (RESPONSE_RE.test(text)) {
79
79
  if (this.session.status !== 'needs-response') {
80
80
  this.session.status = 'needs-response';
81
81
  notifier.send(this.telegram.token, this.telegram.chatId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-remote-pilot",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Interactive Claude Code supervisor — spawn and monitor multiple Claude sessions from a single terminal.",
5
5
  "type": "commonjs",
6
6
  "bin": {