@runuai/host 0.8.36 → 0.8.37

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.
@@ -19,7 +19,14 @@ const RATE_LIMIT_PATTERNS: RegExp[] = [
19
19
  /quota/i,
20
20
  /usage limit/i,
21
21
  /usage cap/i,
22
- /reached your (?:usage|limit)/i,
22
+ // Claude subscription caps: "You've hit your weekly limit · resets …",
23
+ // "reached your 5-hour limit", "exceeded your limit". Anchored on
24
+ // hit/reached/exceeded so an "approaching your … limit" WARNING won't match
25
+ // (a warning isn't exhaustion — rotating on it would waste the account).
26
+ /(?:hit|reached|exceeded)\s+your\s+.{0,40}?\blimit\b/i,
27
+ /\blimit reached\b/i,
28
+ // A reset hint sitting next to "limit" ("limit · resets Jul 27") is a cap.
29
+ /\blimit\b[^.\n]{0,40}\bresets?\b/i,
23
30
  /overloaded/i,
24
31
  /capacity/i,
25
32
  /resource[\s_-]?exhausted/i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runuai/host",
3
- "version": "0.8.36",
3
+ "version": "0.8.37",
4
4
  "description": "Uai host — runs ephemeral AI coding tasks in Docker on a machine you control.",
5
5
  "license": "MIT",
6
6
  "author": "Diogo Perillo <diogo.perillo@gmail.com>",