@cortexkit/opencode-antigravity-auth 3.0.18 → 3.0.19
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/dist/index.js +7 -7
- package/dist/index.js.map +2 -2
- package/dist/index.meta.json +9 -9
- package/dist/server.js +7 -7
- package/dist/server.js.map +2 -2
- package/dist/server.meta.json +1 -1
- package/dist/src/plugin/config/schema.js +4 -4
- package/dist/src/plugin/config/schema.js.map +1 -1
- package/dist/src/plugin/config/writer.d.ts +4 -5
- package/dist/src/plugin/config/writer.d.ts.map +1 -1
- package/dist/src/plugin/config/writer.js +4 -5
- package/dist/src/plugin/config/writer.js.map +1 -1
- package/dist/src/plugin/errors.js +1 -1
- package/dist/src/plugin/request-helpers.js +2 -2
- package/dist/src/plugin/request-helpers.js.map +1 -1
- package/dist/types/src/plugin/config/writer.d.ts +4 -5
- package/dist/types/src/plugin/config/writer.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -45510,12 +45510,12 @@ var AntigravityConfigSchema = z.object({
|
|
|
45510
45510
|
* When an account's quota usage reaches this percentage, skip it during
|
|
45511
45511
|
* account selection (same as if it were rate-limited).
|
|
45512
45512
|
*
|
|
45513
|
+
* Disabled by default (100). Set a lower threshold to opt in to a reserve.
|
|
45513
45514
|
* Example: 80 means skip account when 80% of quota is used (20% remaining).
|
|
45514
|
-
* Set to 100 to disable soft quota protection.
|
|
45515
45515
|
*
|
|
45516
|
-
* @default
|
|
45516
|
+
* @default 100
|
|
45517
45517
|
*/
|
|
45518
|
-
soft_quota_threshold_percent: z.number().min(1).max(100).default(
|
|
45518
|
+
soft_quota_threshold_percent: z.number().min(1).max(100).default(100),
|
|
45519
45519
|
/**
|
|
45520
45520
|
* How often to refresh quota data in the background (in minutes).
|
|
45521
45521
|
* Quota is refreshed opportunistically after successful API requests.
|
|
@@ -45644,7 +45644,7 @@ var DEFAULT_CONFIG = {
|
|
|
45644
45644
|
max_backoff_seconds: 60,
|
|
45645
45645
|
request_jitter_max_ms: 0,
|
|
45646
45646
|
switch_account_delay_ms: 500,
|
|
45647
|
-
soft_quota_threshold_percent:
|
|
45647
|
+
soft_quota_threshold_percent: 100,
|
|
45648
45648
|
quota_refresh_interval_minutes: 30,
|
|
45649
45649
|
soft_quota_cache_ttl_minutes: "auto",
|
|
45650
45650
|
proactive_rotation_threshold_percent: 20,
|
|
@@ -48678,8 +48678,8 @@ function createSyntheticTextResponse(text2, extraHeaders = {}) {
|
|
|
48678
48678
|
});
|
|
48679
48679
|
}
|
|
48680
48680
|
var NATIVE_GOOGLE_ERROR_MESSAGES = {
|
|
48681
|
-
operator_policy: "Antigravity account pool is unavailable under the operator quota policy. Adjust /antigravity
|
|
48682
|
-
soft_quota:
|
|
48681
|
+
operator_policy: "Antigravity account pool is unavailable under the operator quota policy. Adjust the quota floor in /antigravity \u2192 Limits or refresh quota.",
|
|
48682
|
+
soft_quota: 'Antigravity account pool is unavailable under the quota protection policy. Add accounts, wait for quota reset, or turn off soft quota protection with `"soft_quota_threshold_percent": 100` in antigravity.json.',
|
|
48683
48683
|
pool_unavailable: "Antigravity account pool has no account available within the configured wait limit. Add accounts with `opencode auth login` or wait for quota reset.",
|
|
48684
48684
|
model_unavailable: "The requested Antigravity model is not available to the configured accounts. Choose another model.",
|
|
48685
48685
|
missing_access_token: "Missing access token. Run `opencode auth login` to reauthenticate.",
|
|
@@ -52787,7 +52787,7 @@ var AntigravityKillswitchError = class extends Error {
|
|
|
52787
52787
|
summaries;
|
|
52788
52788
|
constructor(input2) {
|
|
52789
52789
|
super(
|
|
52790
|
-
input2.message ?? `Antigravity killswitch: all ${input2.summaries.length} account(s) under ${input2.thresholdPercent}% quota for ${input2.family}. Refresh quota or
|
|
52790
|
+
input2.message ?? `Antigravity killswitch: all ${input2.summaries.length} account(s) under ${input2.thresholdPercent}% quota for ${input2.family}. Refresh quota or adjust the quota floor in /antigravity \u2192 Limits.`
|
|
52791
52791
|
);
|
|
52792
52792
|
this.name = "AntigravityKillswitchError";
|
|
52793
52793
|
this.family = input2.family;
|