@tigorhutasuhut/claude-retry 0.1.9 → 0.1.10

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/dist/cli.js CHANGED
@@ -6,14 +6,14 @@ import { discoverAccountDirs, resolvePaneConfigDir } from "./accounts.js";
6
6
  const USAGE = `claude-retry — Auto-inject 'continue' when Claude hits a rate limit in zellij
7
7
 
8
8
  Usage:
9
- claude-retry start Watch ALL Claude panes across ALL sessions
9
+ claude-retry start Watch ALL panes across ALL sessions (acts on the ones showing a rate-limit banner)
10
10
  claude-retry monitor <pane-id> Watch one pane by ID in the current session
11
11
  claude-retry help Show this help
12
12
 
13
13
  Run as a foreground daemon in any zellij pane (a dedicated session is ideal).
14
14
  'start' polls every 60s, walks every live zellij session and every pane, and
15
- auto-injects 'continue' after each Claude pane's rate-limit reset time. It works
16
- on detached sessions and skips its own session. New Claude panes are picked up
15
+ auto-injects 'continue' after a pane's rate-limit reset time. It works
16
+ on detached sessions and skips its own session. New panes are picked up
17
17
  automatically; closed ones are dropped. Logs go to stderr.
18
18
 
19
19
  'monitor <pane-id>' is the legacy single-pane mode (current session only).`;
package/dist/monitor.d.ts CHANGED
@@ -6,7 +6,7 @@ export interface MonitorDeps {
6
6
  now: () => number;
7
7
  sleep: (ms: number) => Promise<void>;
8
8
  }
9
- /** Deps for watching many Claude panes across sessions. Capture/inject are
9
+ /** Deps for watching many panes across sessions. Capture/inject are
10
10
  * addressed by PaneTarget rather than a bare pane id. */
11
11
  export interface MultiMonitorDeps {
12
12
  listTargets: () => Promise<PaneTarget[]>;
@@ -32,9 +32,9 @@ export declare function createState(): MonitorState;
32
32
  export declare function tick(paneId: string, state: MonitorState, deps: MonitorDeps, marginSeconds?: number, fallbackHours?: number): Promise<MonitorStatus>;
33
33
  export declare function runMonitor(paneId: string, deps: MonitorDeps, pollIntervalMs?: number, marginSeconds?: number, fallbackHours?: number): Promise<void>;
34
34
  /**
35
- * One discovery+monitor pass over every Claude pane in every live session.
35
+ * One discovery+monitor pass over every pane in every live session.
36
36
  *
37
- * Re-discovers targets each call so new Claude sessions/panes are picked up and
37
+ * Re-discovers targets each call so new sessions/panes are picked up and
38
38
  * closed ones are pruned. Per-pane state lives in `states`, keyed by the
39
39
  * target's label (session:paneId), and persists across calls. A failed
40
40
  * discovery or a single pane's capture/inject error is swallowed so one bad
package/dist/monitor.js CHANGED
@@ -138,9 +138,9 @@ export async function runMonitor(paneId, deps, pollIntervalMs, marginSeconds, fa
138
138
  }
139
139
  }
140
140
  /**
141
- * One discovery+monitor pass over every Claude pane in every live session.
141
+ * One discovery+monitor pass over every pane in every live session.
142
142
  *
143
- * Re-discovers targets each call so new Claude sessions/panes are picked up and
143
+ * Re-discovers targets each call so new sessions/panes are picked up and
144
144
  * closed ones are pruned. Per-pane state lives in `states`, keyed by the
145
145
  * target's label (session:paneId), and persists across calls. A failed
146
146
  * discovery or a single pane's capture/inject error is swallowed so one bad
@@ -178,8 +178,8 @@ export async function multiTick(states, deps, marginSeconds, fallbackHours) {
178
178
  }
179
179
  }
180
180
  log(targets.length === 0
181
- ? 'scan: no Claude panes found'
182
- : `scan: watching ${targets.length} Claude pane(s) [${targets.map((t) => t.label).join(', ')}]`);
181
+ ? 'scan: no panes found'
182
+ : `scan: watching ${targets.length} pane(s) [${targets.map((t) => t.label).join(', ')}]`);
183
183
  // Capture each target's screen once, collecting successes into a map.
184
184
  // Capture failures are logged and that pane is skipped this round.
185
185
  const screens = new Map();
@@ -216,7 +216,7 @@ export async function multiTick(states, deps, marginSeconds, fallbackHours) {
216
216
  if (!state) {
217
217
  state = createState();
218
218
  states.set(target.label, state);
219
- log(`${target.label} — new Claude pane, now watching`);
219
+ log(`${target.label} — new pane, now watching`);
220
220
  }
221
221
  // Reset miss counter for panes present this pass
222
222
  state.missCount = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tigorhutasuhut/claude-retry",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Monitor Claude CLI in a zellij pane, auto-inject continue on rate-limit",
5
5
  "type": "module",
6
6
  "license": "MIT",