antigravity-usage 0.2.1 → 0.2.3

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,5 +1,5 @@
1
1
  <div align="center">
2
- <img src="images/icon.png" alt="antigravity-usage logo" width="150" height="150">
2
+ <img src="https://raw.githubusercontent.com/skainguyen1412/antigravity-usage/main/images/icon.png" alt="antigravity-usage logo" width="150" height="150">
3
3
  <h1>antigravity-usage</h1>
4
4
  </div>
5
5
 
@@ -20,7 +20,7 @@ A fast, lightweight, and powerful CLI tool to track your Antigravity model quota
20
20
  </p>
21
21
 
22
22
  <div align="center">
23
- <img src="images/banner.png" alt="Antigravity Usage Screenshot">
23
+ <img src="https://raw.githubusercontent.com/skainguyen1412/antigravity-usage/main/images/banner.png" alt="Antigravity Usage Screenshot">
24
24
  </div>
25
25
 
26
26
 
@@ -96,6 +96,16 @@ To keep the CLI snappy and avoid hitting API rate limits:
96
96
  antigravity-usage quota --refresh
97
97
  ```
98
98
 
99
+ ### 🤖 Auto Wakeup (macOS & Linux)
100
+ Never waste quota again. Automatically wake up your AI models to maximize your daily limits.
101
+ - **Native Cron Integration**: Schedule-based triggers (every N hours, daily, or custom cron)
102
+ - **Smart Quota-Reset Detection**: Zero-waste mode that detects when quota resets
103
+ - **Multi-Account Support**: Trigger all your accounts simultaneously
104
+ - **Built-in Safety**: Cooldown protection, retry logic, detailed history tracking
105
+ - **Platform Support**: Currently available on **macOS and Linux** (Windows support coming soon)
106
+
107
+ See the [Wakeup Command](#antigravity-usage-wakeup-) section for full details.
108
+
99
109
  ### 📱 Responsive UI
100
110
  Tables automatically adapt to your terminal size, switching between "Compact" and "Spacious" views to show you the most relevant data without wrapping.
101
111
 
@@ -141,6 +151,8 @@ Quickly check if your auth tokens are valid or expired.
141
151
  ### `antigravity-usage wakeup` 🚀
142
152
  **Never waste quota again.** Automatically wake up your AI models at strategic times to maximize your daily limits.
143
153
 
154
+ > **Platform Support:** Currently available on **macOS** and **Linux**. Windows support (via Task Scheduler) is coming soon.
155
+
144
156
  ```bash
145
157
  antigravity-usage wakeup config # Interactive setup (takes 30 seconds)
146
158
  antigravity-usage wakeup install # Install to native system cron
@@ -166,12 +178,14 @@ Runs locally on your machine with zero dependencies:
166
178
  - **Interval Mode**: Every N hours (e.g., every 6 hours)
167
179
  - **Daily Mode**: At specific times (e.g., 9 AM, 5 PM)
168
180
  - **Custom Mode**: Advanced cron expressions for power users
181
+ - **Portable Design**: Auto-detects Node.js path for seamless operation across different machines
169
182
 
170
183
  ```bash
171
184
  antigravity-usage wakeup install
172
- # ✅ Installs to your system's native crontab
185
+ # ✅ Installs to your system's native crontab (macOS/Linux)
173
186
  # ✅ Runs even when terminal/antigravity is closed
174
187
  # ✅ Persists across reboots
188
+ # ✅ Works on any machine with Node.js installed
175
189
  ```
176
190
 
177
191
  **2. Smart Quota-Reset Detection** (Zero-Waste Mode)
package/dist/index.js CHANGED
@@ -1397,6 +1397,7 @@ function statusCommand(options = {}) {
1397
1397
  }
1398
1398
 
1399
1399
  // src/google/cloudcode.ts
1400
+ import { randomUUID } from "crypto";
1400
1401
  var BASE_URLS = [
1401
1402
  "https://cloudcode-pa.googleapis.com",
1402
1403
  "https://daily-cloudcode-pa.sandbox.googleapis.com"
@@ -1586,8 +1587,8 @@ var CloudCodeClient = class {
1586
1587
  } catch (err) {
1587
1588
  debug("cloudcode", "Warmup failed (continuing anyway):", err);
1588
1589
  }
1589
- const requestId = crypto.randomUUID();
1590
- const sessionId = crypto.randomUUID();
1590
+ const requestId = randomUUID();
1591
+ const sessionId = randomUUID();
1591
1592
  const systemInstruction = {
1592
1593
  parts: [{ text: SYSTEM_PROMPT }]
1593
1594
  };