pi-provider-antigravity 0.5.0 → 0.7.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/README.md CHANGED
@@ -95,7 +95,7 @@ Remaining percentages are automatically colorized to keep depletion visible with
95
95
  - **Low** (≤ 30%): Yellow
96
96
  - **Critical** (≤ 10%): Red
97
97
 
98
- In `both` mode, each window carries its own color based on its remaining percentage.
98
+ In `all` mode, each window carries its own color based on its remaining percentage.
99
99
 
100
100
  ### Display Modes
101
101
 
@@ -104,13 +104,27 @@ Switch between display modes at any time using `/antigravity settings`:
104
104
  | Mode | Example | Behavior |
105
105
  |---|---|---|
106
106
  | `off` *(default)* | *(hidden)* | Slot stays empty; zero background quota requests |
107
- | `single` | `Wk 6% (2d 14h)` | Shows only the primary bottleneck window |
108
- | `both` | `5h 90% (3h 54m) · Wk 6% (2d 14h)` | Shows both 5-hour and weekly windows side-by-side |
107
+ | `smart` | `Wk 6% (2d 14h)` | Shows the window that runs out first, 5h or weekly |
108
+ | `all` | `5h 90% (3h 54m) · Wk 6% (2d 14h)` | Shows every window of the pool backing the current model |
109
+
110
+ ### Footer placement
111
+
112
+ The extension never calls `setFooter` — it only publishes the slot text under the key `pi-provider-antigravity-footer-usage` via `setStatus`. Where that text renders is up to your footer; Pi's built-in one gives it its own line, below the default two.
113
+
114
+ To move it elsewhere (the right side of the first line, for example), ask Pi in a session and name the key:
115
+
116
+ > Move the `pi-provider-antigravity-footer-usage` slot to the right side of the first footer line, keeping the rest of the footer as it is.
117
+
118
+ Pi edits your own footer extension, creating one if you have none — based on
119
+ Pi's [complete custom-footer
120
+ example](https://github.com/earendil-works/pi-mono/blob/main/packages/coding-agent/examples/extensions/custom-footer.ts),
121
+ which Pi maintains. A custom footer replaces the built-in one, so Pi has to
122
+ redraw whichever lines you want to keep.
109
123
 
110
124
  ### Under the Hood
111
125
 
112
126
  - **Model-aware pool routing**: Automatically aligns with your active model. Selecting a Gemini model displays the Gemini quota pool; switching to Claude or GPT switches to the third-party pool. When using a non-Antigravity model or no model at all, the slot cleanly disappears.
113
- - **Intelligent bottleneck detection**: In `single` mode, the extension determines urgency using `min(r5h, rWk × R)` rather than a naive percentage comparison, accounting for total volume differences between the 5-hour and weekly pools. The volume multiplier `R` starts at 6.0 and automatically self-calibrates between 1.0 and 20.0 based on real usage deltas, persisting across restarts.
127
+ - **Bottleneck detection**: In `smart` mode, the extension determines urgency using `min(r5h, rWk × R)` rather than a naive percentage comparison, accounting for total volume differences between the 5-hour and weekly pools. The volume multiplier `R` starts at 6.0 and automatically self-calibrates between 1.0 and 20.0 based on real usage deltas, persisting across restarts.
114
128
  - **Battery- and network-friendly caching**: Idle sessions perform zero network requests. The slot repaints instantly from memory on turn completion, session launch, and model changes. Upstream quota queries are throttled to at most once every 5 minutes. Running `/antigravity usage` refreshes upstream data immediately.
115
129
 
116
130
  ## Configuration
@@ -136,7 +150,7 @@ Configuration is stored in `pi-provider-antigravity.json` alongside Pi's `settin
136
150
  ```json
137
151
  {
138
152
  "settings": {
139
- "quotaFooter": "single"
153
+ "quotaFooter": "smart"
140
154
  }
141
155
  }
142
156
  ```
@@ -147,7 +161,7 @@ Configuration is stored in `pi-provider-antigravity.json` alongside Pi's `settin
147
161
 
148
162
  | Key | Values | Default | Description |
149
163
  |---|---|---|---|
150
- | `quotaFooter` | `off`, `single`, `both` | `off` | Display remaining quota in Pi's status footer. See [Quota footer](#quota-footer). |
164
+ | `quotaFooter` | `off`, `smart`, `all` | `off` | Display remaining quota in Pi's status footer. See [Quota footer](#quota-footer). |
151
165
 
152
166
  ## Disclaimer
153
167