@estebanforge/pi-antigravity-bridge 1.19.0 → 1.19.1
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/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/quota-notice.ts +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.19.1] - 2026-12-03
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- The shared-quota notice was never detected as a quota exhaustion (issue #39, thanks to @hectormr206 for the report and the fix diagnosis): its prefix word before "quota reached" is hyphenated ("Third-party"), which the detection pattern's `[a-z]+` word class could not match, so the ACP turn settled as a normal reply with no errorMessage and provider failover / model fallback chains never fired — the session kept answering with the notice until the reset. The optional prefix word now allows internal hyphens (`[a-z][a-z-]*`) while staying letter-initial, so a leading dash still cannot open it; the start anchor, the 400-character cap and the retryable errorMessage classification are unchanged, pinned by seven new cases in the quota-notice tests.
|
|
10
|
+
|
|
5
11
|
## [1.19.0] - 2026-12-02
|
|
6
12
|
|
|
7
13
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@estebanforge/pi-antigravity-bridge",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.1",
|
|
4
4
|
"description": "Gemini provider for Pi on the Antigravity ACP server (official Google ACP) or the stream-json agy CLI. Use antigravity/* models in Pi. Full /model picker support. Models runs Pi's tools. ToS safe to use.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
package/src/quota-notice.ts
CHANGED
|
@@ -17,8 +17,10 @@ export interface QuotaNotice {
|
|
|
17
17
|
|
|
18
18
|
// Anchored at the start and length-capped so only a notice-shaped
|
|
19
19
|
// (near-)whole response reclassifies; a long answer that merely discusses
|
|
20
|
-
// quota must never match.
|
|
21
|
-
|
|
20
|
+
// quota must never match. The optional prefix word may be hyphenated
|
|
21
|
+
// ("Third-party quota reached", issue #39) but stays letter-initial, so a
|
|
22
|
+
// leading dash cannot open it.
|
|
23
|
+
const NOTICE_PATTERN = /^\s*(?:⚠\s*)?(?:[a-z][a-z-]*\s+)?quota\s+(?:reached|exhausted|exceeded|limit reached)/i;
|
|
22
24
|
const RESET_PATTERN = /resets?\s+in\s+((?:\d+h)?(?:\d+m)?(?:\d+s))/i;
|
|
23
25
|
const NOTICE_MAX_CHARS = 400;
|
|
24
26
|
|