pi-antigravity-rotator 1.3.9 → 1.4.0

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 CHANGED
@@ -2,6 +2,27 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [1.4.0] - 2026-04-28
6
+
7
+ ### Added
8
+ - **Savings Estimation**: Dashboard now calculates and displays estimated USD savings based on tracked token usage compared to paid API pricing.
9
+ - **Latency Tracking**: Proxy measures Time-to-First-Byte (TTFB) and Total duration per request. Dashboard displays p50/p95 latency stats by model.
10
+ - **Quota Forecast**: Dashboard predicts when each model's quota will run out based on real-time requests/hour burn rate.
11
+ - **Live Dashboard (SSE)**: Dashboard now updates in real-time via Server-Sent Events, removing the need for polling or manual refreshes.
12
+ - **Live Request Log**: Searchable, real-time mini-log in the dashboard showing the last 200 requests (Account, Model, Status, TTFB, Total duration, Tokens).
13
+ - **Activity Heatmap**: GitHub-style contribution grid displaying request intensity per hour across the last 7 days.
14
+ - **Enhanced Logging**: Added explicit `START` and `END` proxy logs with unique request IDs for unambiguous tracing of 503s and 429s.
15
+
16
+ ### Changed
17
+ - Configurable **Antigravity Version**: Extracted hardcoded `QUOTA_USER_AGENT` into an environment variable to prevent "This version of Antigravity is no longer supported" API errors. Now uses `1.107.0` by default.
18
+ - Per-model cooldown granularity: Accounts can now serve fallback models (e.g. Gemini) even if their primary model (e.g. Claude) is exhausted.
19
+ - **Token Tracking Architecture**: Refactored token usage into a tiered time-series (minutes/hours/days/months) with rolling sliding windows to avoid data drops at calendar boundaries.
20
+
21
+ ### Fixed
22
+ - Fixed in-flight request leak where accounts could get stuck in a "busy" state indefinitely due to deprecated `req.aborted` handlers in Node 24.
23
+ - Fixed rate-limit logic bypassing model-specific cooldown checks after a 429 was hit.
24
+
25
+
5
26
  ## [1.3.9] - 2026-04-27
6
27
 
7
28
  ### Fixed
package/README.md CHANGED
@@ -219,8 +219,11 @@ The dashboard is intended to replace day-to-day `journalctl` digging for normal
219
219
  Config files (`accounts.json`, `state.json`) are stored in `~/.pi-antigravity-rotator/` by default. Override with:
220
220
 
221
221
  ```bash
222
- # Environment variable
222
+ # Environment variables
223
223
  export PI_ROTATOR_DIR=/path/to/config
224
+ export PI_ROTATOR_QUOTA_USER_AGENT="antigravity/1.107.0 darwin/arm64"
225
+ # Optional override for Antigravity UA version used by quota fetches
226
+ export PI_AI_ANTIGRAVITY_VERSION=1.107.0
224
227
 
225
228
  # Or CLI flag
226
229
  pi-antigravity-rotator start --config-dir /path/to/config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-antigravity-rotator",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "Multi-account rotation proxy for Google Antigravity with per-model routing, real-time quota tracking, and infringement detection",
5
5
  "license": "MIT",
6
6
  "type": "module",