opencode-studio-server 1.15.0 → 1.16.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/index.js +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -293,8 +293,8 @@ function loadStudioConfig() {
|
|
|
293
293
|
availableGooglePlugins: [],
|
|
294
294
|
presets: [],
|
|
295
295
|
cooldownRules: [
|
|
296
|
-
{ name: "Antigravity Claude Opus (4h)", duration: 4 * 60 * 60 * 1000 },
|
|
297
|
-
{ name: "
|
|
296
|
+
{ name: "Antigravity Claude Opus 4 (4h)", duration: 4 * 60 * 60 * 1000 },
|
|
297
|
+
{ name: "Gemini 3 Pro (24h)", duration: 24 * 60 * 60 * 1000 }
|
|
298
298
|
],
|
|
299
299
|
pluginModels: {
|
|
300
300
|
gemini: {
|
|
@@ -2265,7 +2265,10 @@ function rotateAccount(provider, reason = 'manual_rotation') {
|
|
|
2265
2265
|
// GET /api/auth/pool - Get account pool for Google (or specified provider)
|
|
2266
2266
|
app.get('/api/auth/pool', (req, res) => {
|
|
2267
2267
|
const provider = req.query.provider || 'google';
|
|
2268
|
-
|
|
2268
|
+
if (provider === 'google') {
|
|
2269
|
+
syncAntigravityPool();
|
|
2270
|
+
}
|
|
2271
|
+
importCurrentAuthToPool(provider);
|
|
2269
2272
|
const pool = buildAccountPool(provider);
|
|
2270
2273
|
const quota = getPoolQuota(provider, pool);
|
|
2271
2274
|
res.json({ pool, quota });
|