opencode-antigravity-autopilot 2.2.1 → 2.2.2

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.
Files changed (2) hide show
  1. package/README.md +13 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -22,9 +22,10 @@ Zero OpenCode source modifications required - works as a pure plugin!
22
22
 
23
23
  Simply copy and paste this prompt to your OpenCode assistant:
24
24
 
25
- > Please install the `opencode-antigravity-autopilot` plugin from npm.
25
+ > Please read the documentation at https://github.com/Gooseware/opencode-antigravity-autopilot#readme to understand the installation steps.
26
+ > Install the `opencode-antigravity-autopilot` plugin from npm.
26
27
  > Then, configure `~/.config/opencode/opencode.json` to add `"opencode-antigravity-autopilot"` to the `plugin` list.
27
- > Finally, create a default quota config in `~/.config/opencode/quota.json` with auto-rotation enabled.
28
+ > Finally, create a default quota config in `~/.config/opencode/quota.json` with auto-rotation enabled for models like `antigravity-gemini-3-pro-high` and `antigravity-claude-sonnet-4-5`.
28
29
 
29
30
  ### From NPM
30
31
 
@@ -57,7 +58,7 @@ Add to `~/.config/opencode/opencode.json`:
57
58
  ```json
58
59
  {
59
60
  "plugin": [
60
- "opencode-antigravity-auth@beta",
61
+ "opencode-antigravity-auth",
61
62
  "opencode-antigravity-autopilot"
62
63
  ]
63
64
  }
@@ -71,9 +72,9 @@ Create `~/.config/opencode/quota.json` to configure thresholds and models:
71
72
  {
72
73
  "quotaThreshold": 0.05,
73
74
  "preferredModels": [
74
- "gemini-2.0-pro-exp-02-05", // Try this first
75
- "claude-3-7-sonnet", // Then this
76
- "gemini-2.0-flash-thinking-exp-01-21" // Fallback
75
+ "antigravity-gemini-3-pro-high", // Try this first
76
+ "antigravity-claude-sonnet-4-5", // Then this
77
+ "antigravity-gemini-3-flash" // Fallback
77
78
  ],
78
79
  "autoRotate": true
79
80
  }
@@ -90,7 +91,7 @@ Simply ask your assistant:
90
91
  ```
91
92
  "Check my quota status"
92
93
  "Show detailed quota for all models"
93
- "Can I use gemini-3-pro right now?"
94
+ "Can I use antigravity-gemini-3-pro-high right now?"
94
95
  ```
95
96
 
96
97
  The LLM will call the appropriate tools and show results like:
@@ -98,7 +99,7 @@ The LLM will call the appropriate tools and show results like:
98
99
  ```
99
100
  # Quota Status
100
101
 
101
- ✓ **Current Model:** gemini-3-pro
102
+ ✓ **Current Model:** antigravity-gemini-3-pro-high
102
103
  **Status:** Quota healthy at 67%
103
104
 
104
105
  **Accounts:** 1 of 3 active
@@ -120,7 +121,7 @@ quota_status({ detailed: true })
120
121
  Check if a specific model has enough quota
121
122
 
122
123
  ```typescript
123
- quota_check_model({ model: "gemini-3-pro" })
124
+ quota_check_model({ model: "antigravity-gemini-3-pro-high" })
124
125
  ```
125
126
 
126
127
  #### `quota_rotate_account`
@@ -138,13 +139,13 @@ import { HardLimitDetector } from 'opencode-antigravity-autopilot';
138
139
  const detector = new HardLimitDetector({
139
140
  quotaThreshold: 0.2, // Switch when below 20%
140
141
  preferredModels: [
141
- 'google/antigravity-gemini-3-pro',
142
+ 'google/antigravity-gemini-3-pro-high',
142
143
  'google/antigravity-claude-sonnet-4-5'
143
144
  ]
144
145
  });
145
146
 
146
147
  // Before using a model
147
- const result = await detector.checkHardLimit('gemini-3-pro');
148
+ const result = await detector.checkHardLimit('antigravity-gemini-3-pro-high');
148
149
 
149
150
  if (result.shouldRotate) {
150
151
  console.log(`Switching to: ${result.nextModel}`);
@@ -202,7 +203,7 @@ import { HardLimitDetector } from 'opencode-antigravity-autopilot';
202
203
 
203
204
  const detector = new HardLimitDetector({
204
205
  preferredModels: [
205
- 'google/antigravity-gemini-3-pro', // Try first
206
+ 'google/antigravity-gemini-3-pro-high', // Try first
206
207
  'google/antigravity-claude-sonnet-4-5', // Try second
207
208
  'google/antigravity-gemini-3-flash' // Fallback
208
209
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-antigravity-autopilot",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Intelligent quota monitoring and model auto-switching for OpenCode with Antigravity. Plugin-based, zero source modifications required.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",