antigravity-usage 0.1.1 → 0.2.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/README.md CHANGED
@@ -1,8 +1,28 @@
1
- # Antigravity Usage
2
-
1
+ <div align="center">
2
+ <img src="images/icon.png" alt="antigravity-usage logo" width="150" height="150">
3
+ <h1>antigravity-usage</h1>
4
+ </div>
5
+
6
+ <p align="center">
7
+ <a href="https://npmjs.com/package/antigravity-usage"><img src="https://img.shields.io/npm/v/antigravity-usage?color=yellow" alt="npm version" /></a>
8
+ <a href="https://packagephobia.com/result?p=antigravity-usage"><img src="https://packagephobia.com/badge?p=antigravity-usage" alt="install size" /></a>
9
+ <a href="https://www.npmjs.com/package/antigravity-usage"><img src="https://img.shields.io/npm/dt/antigravity-usage" alt="NPM Downloads" /></a>
10
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT" /></a>
11
+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen.svg" alt="Node.js Version" /></a>
12
+ </p>
13
+
14
+ <p align="center">
3
15
  A fast, lightweight, and powerful CLI tool to track your Antigravity model quota and usage. Works offline with your IDE or online with multiple Google accounts.
16
+ </p>
17
+
18
+ <p align="center">
19
+ <em>Inspired by <a href="https://github.com/ryoppippi/ccusage">ccusage</a></em>
20
+ </p>
21
+
22
+ <div align="center">
23
+ <img src="images/banner.png" alt="Antigravity Usage Screenshot">
24
+ </div>
4
25
 
5
- Inspired by [ccusage](https://github.com/ryoppippi/ccusage).
6
26
 
7
27
  ## Quick Start (No Login Required) 🚀
8
28
 
@@ -39,8 +59,6 @@ antigravity-usage accounts add
39
59
  antigravity-usage quota --all
40
60
  ```
41
61
 
42
- ![Demo](https://via.placeholder.com/800x400?text=Antigravity+Usage+CLI+Demo)
43
-
44
62
  ---
45
63
 
46
64
  ## How It Works 🛠️
@@ -89,10 +107,19 @@ Tables automatically adapt to your terminal size, switching between "Compact" an
89
107
  Alias for `quota`. Fetches and displays usage data.
90
108
 
91
109
  ```bash
92
- antigravity-usage # Auto-detect (Local -> Cloud)
93
- antigravity-usage --all # Fetch ALL accounts
94
- antigravity-usage --method local # Force local IDE connection
95
- antigravity-usage --json # Output JSON for scripts
110
+ antigravity-usage # Auto-detect (Local -> Cloud)
111
+ antigravity-usage --all # Fetch ALL accounts
112
+ antigravity-usage --method local # Force local IDE connection
113
+ antigravity-usage --method google # Force google IDE connection
114
+ antigravity-usage --json # Output JSON for scripts
115
+ antigravity-usage --version # Show version number
116
+ ```
117
+
118
+ ### `antigravity-usage --version`
119
+ Display the current version of the CLI tool.
120
+
121
+ ```bash
122
+ antigravity-usage --version # or -V
96
123
  ```
97
124
 
98
125
  ### `antigravity-usage accounts`
@@ -111,6 +138,68 @@ Troubleshoot issues with your setup. Checks env vars, auth status, and local ser
111
138
  ### `antigravity-usage status`
112
139
  Quickly check if your auth tokens are valid or expired.
113
140
 
141
+ ### `antigravity-usage wakeup` 🚀
142
+ **Never waste quota again.** Automatically wake up your AI models at strategic times to maximize your daily limits.
143
+
144
+ ```bash
145
+ antigravity-usage wakeup config # Interactive setup (takes 30 seconds)
146
+ antigravity-usage wakeup install # Install to native system cron
147
+ antigravity-usage wakeup status # Check configuration & next run
148
+ antigravity-usage wakeup test # Test trigger manually
149
+ antigravity-usage wakeup history # View trigger history
150
+ ```
151
+
152
+ **Why This Matters:**
153
+ Your Antigravity quota resets every ~5 hours, but if you don't use it, you lose it. The wakeup feature ensures you **automatically trigger** both Claude and Gemini models to keep your quota flowing.
154
+
155
+ #### 🎯 Intelligent Model Selection
156
+ Zero configuration needed. Automatically wakes up:
157
+ - **`claude-sonnet-4-5`** → Triggers the entire Claude family
158
+ - **`gemini-3-flash`** → Triggers the entire Gemini family
159
+
160
+ Both models combined ensure comprehensive coverage and optimal quota utilization across all available AI models.
161
+
162
+ #### ⚡️ Two Powerful Trigger Modes
163
+
164
+ **1. Schedule-Based** (Native Cron Integration)
165
+ Runs locally on your machine with zero dependencies:
166
+ - **Interval Mode**: Every N hours (e.g., every 6 hours)
167
+ - **Daily Mode**: At specific times (e.g., 9 AM, 5 PM)
168
+ - **Custom Mode**: Advanced cron expressions for power users
169
+
170
+ ```bash
171
+ antigravity-usage wakeup install
172
+ # ✅ Installs to your system's native crontab
173
+ # ✅ Runs even when terminal/antigravity is closed
174
+ # ✅ Persists across reboots
175
+ ```
176
+
177
+ **2. Smart Quota-Reset Detection** (Zero-Waste Mode)
178
+ The most intelligent trigger mode. Automatically detects when:
179
+ - Quota is at **100%** (unused)
180
+ - Reset time is **~5 hours away** (just reset)
181
+ - No cooldown conflicts
182
+
183
+ When triggered, it wakes up **ALL** your accounts simultaneously, ensuring none of your quota goes to waste.
184
+
185
+ #### 🛡️ Built-in Safety Features
186
+ - **Cooldown Protection**: Prevents duplicate triggers (1-hour default)
187
+ - **Multi-Account Support**: Trigger for specific accounts or all at once
188
+ - **Detailed History**: Track every trigger with timestamps and results
189
+ - **Graceful Failures**: Automatic retry logic with exponential backoff
190
+ - **Token Efficiency**: Minimal output tokens (just 1 token per request)
191
+
192
+ #### 📊 Real-Time Monitoring
193
+ ```bash
194
+ antigravity-usage wakeup status
195
+ ```
196
+ Shows:
197
+ - ✅ Enabled/disabled status
198
+ - 📅 Next scheduled run time
199
+ - 🎯 Selected models and accounts
200
+ - 📝 Last trigger result
201
+ - ⚙️ Cron installation status
202
+
114
203
  ## Configuration
115
204
  Data is stored in your system's standard config location:
116
205
  - **macOS**: `~/Library/Application Support/antigravity-usage/`