pi-provider-antigravity 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 iamxeph
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # pi-provider-antigravity
2
+
3
+ Use Google Antigravity models directly in [Pi](https://pi.dev).
4
+
5
+ > ⚠️ **Disclaimer:** Unofficial harness use is a ToS breach and can cost you
6
+ > your Antigravity access — or, in theory, your whole Google account.
7
+ > Read the [full disclaimer](#disclaimer) before logging in.
8
+
9
+ ## Features
10
+
11
+ - **Verified wire parity**: headers, request envelopes, and tier/thinking mapping
12
+ matched against real `agy` CLI traffic captures — not guessed.
13
+ - **Dynamic model catalog**: exposes exactly the models your account can use,
14
+ synthesized from the live catalog and cached for offline startup.
15
+ Newly released models are usable immediately without waiting for an extension update.
16
+ - **OAuth with auto-refresh**: log in once via `/login antigravity`; tokens refresh silently.
17
+ - **Quota visibility**: 5-hour and weekly remaining quota per model pool, with reset times.
18
+
19
+ ## Requirements
20
+
21
+ - Pi >= 0.80.0
22
+ - A Google account with Antigravity access
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ pi install npm:pi-provider-antigravity
28
+ ```
29
+
30
+ Or try it without installing:
31
+
32
+ ```bash
33
+ pi -e npm:pi-provider-antigravity
34
+ ```
35
+
36
+ ## Quick Start
37
+
38
+ 1. Authenticate:
39
+ ```text
40
+ /login antigravity
41
+ ```
42
+ 2. Select a model (IDs are dynamic — served from your account's live catalog,
43
+ so check `/antigravity models` for the current list; example):
44
+ ```text
45
+ /model antigravity/gemini-3.8-flash
46
+ ```
47
+ 3. Check quota:
48
+ ```text
49
+ /antigravity usage
50
+ ```
51
+ ```text
52
+ Gemini Models
53
+ 5h [##--------] 22% left (in 3h 0m)
54
+ Wk [#########-] 87% left (in 4d 4h)
55
+
56
+ Claude and GPT models
57
+ 5h [########--] 84% left (in 2h 0m)
58
+ Wk [##########] 95% left (in 4d 14h)
59
+ ```
60
+
61
+ ## Commands
62
+
63
+ Extension subcommands (`/antigravity ...`):
64
+
65
+ | Subcommand | Description |
66
+ |---|---|
67
+ | `usage` | Check 5-hour and weekly quota limits and reset times |
68
+ | `models` | View available models and remaining fraction |
69
+ | `refresh` | Refresh dynamic model catalog from Antigravity |
70
+ | `login` | Shortcut: fills in `/login antigravity` for you |
71
+
72
+ Related Pi builtins:
73
+
74
+ | Command | Description |
75
+ |---|---|
76
+ | `/login antigravity` | Authenticate with Google via OAuth |
77
+ | `/model antigravity/<id>` | Select a model from the live catalog |
78
+
79
+ ## Disclaimer
80
+
81
+ This extension spends your Google account's Antigravity quota from a third-party
82
+ harness — which the [Antigravity ToS](https://antigravity.google/terms) (§6)
83
+ explicitly calls a breach (it names OpenClaw-over-OAuth as the example; this
84
+ project is the same pattern). Read this before logging in:
85
+
86
+ - **Stated enforcement: Antigravity and/or Gemini CLI accounts.** Per §6,
87
+ third-party access "may be grounds for suspension or termination of your
88
+ Antigravity and/or Gemini CLI accounts" (they share quota).
89
+ - **Residual risk: your whole Google account.** The ToS also binds you to the
90
+ Universal [Google Terms](https://policies.google.com/terms) (§1), which allow
91
+ Google to suspend your access to the services **or delete your Google Account**
92
+ for breach of service-specific terms ([context](https://x.com/GergelyOrosz/status/2095453567955968398)).
93
+ This project is unofficial and not affiliated with Google. Use at your own risk.
94
+
95
+ ## License
96
+
97
+ MIT