@gonzih/cc-tg 0.9.1 → 0.9.3
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/usage-limit.js +3 -2
- package/package.json +3 -3
package/dist/usage-limit.js
CHANGED
|
@@ -3,7 +3,8 @@ export function detectUsageLimit(text) {
|
|
|
3
3
|
if (lower.includes('extra usage') ||
|
|
4
4
|
lower.includes('usage has been disabled') ||
|
|
5
5
|
lower.includes('billing_error') ||
|
|
6
|
-
lower.includes('usage limit')
|
|
6
|
+
lower.includes('usage limit reached') ||
|
|
7
|
+
lower.includes('your usage limit')) {
|
|
7
8
|
const wake = nextHourBoundary() + 5 * 60 * 1000;
|
|
8
9
|
return {
|
|
9
10
|
detected: true,
|
|
@@ -12,7 +13,7 @@ export function detectUsageLimit(text) {
|
|
|
12
13
|
humanMessage: `⏸ Claude usage limit reached. Will auto-resume at ${new Date(wake).toUTCString()}. I'll message you when it's back.`,
|
|
13
14
|
};
|
|
14
15
|
}
|
|
15
|
-
if (lower.includes('
|
|
16
|
+
if (lower.includes('currently overloaded') || lower.includes('overloaded with requests')) {
|
|
16
17
|
return {
|
|
17
18
|
detected: true,
|
|
18
19
|
reason: 'rate_limit',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gonzih/cc-tg",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Claude Code Telegram bot
|
|
3
|
+
"version": "0.9.3",
|
|
4
|
+
"description": "Claude Code Telegram bot \u2014 chat with Claude Code via Telegram",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"cc-tg": "./dist/index.js"
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"ai"
|
|
45
45
|
],
|
|
46
46
|
"license": "MIT"
|
|
47
|
-
}
|
|
47
|
+
}
|