@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.
- package/lib/agents/rate-limit.ts +8 -1
- package/package.json +1 -1
package/lib/agents/rate-limit.ts
CHANGED
|
@@ -19,7 +19,14 @@ const RATE_LIMIT_PATTERNS: RegExp[] = [
|
|
|
19
19
|
/quota/i,
|
|
20
20
|
/usage limit/i,
|
|
21
21
|
/usage cap/i,
|
|
22
|
-
|
|
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