@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.
@@ -5029,7 +5029,7 @@
5029
5029
  "format": "esm"
5030
5030
  },
5031
5031
  "src/plugin/config/schema.ts": {
5032
- "bytes": 21122,
5032
+ "bytes": 21153,
5033
5033
  "imports": [
5034
5034
  {
5035
5035
  "path": "zod",
@@ -5280,7 +5280,7 @@
5280
5280
  "format": "esm"
5281
5281
  },
5282
5282
  "src/plugin/request-helpers.ts": {
5283
- "bytes": 85151,
5283
+ "bytes": 85234,
5284
5284
  "imports": [
5285
5285
  {
5286
5286
  "path": "../core/dist/index.js",
@@ -5631,7 +5631,7 @@
5631
5631
  "format": "esm"
5632
5632
  },
5633
5633
  "src/plugin/config/writer.ts": {
5634
- "bytes": 3823,
5634
+ "bytes": 3762,
5635
5635
  "imports": [
5636
5636
  {
5637
5637
  "path": "node:fs",
@@ -5824,7 +5824,7 @@
5824
5824
  "format": "esm"
5825
5825
  },
5826
5826
  "src/plugin/errors.ts": {
5827
- "bytes": 2859,
5827
+ "bytes": 2861,
5828
5828
  "imports": [],
5829
5829
  "format": "esm"
5830
5830
  },
@@ -6396,7 +6396,7 @@
6396
6396
  "imports": [],
6397
6397
  "exports": [],
6398
6398
  "inputs": {},
6399
- "bytes": 4670993
6399
+ "bytes": 4671055
6400
6400
  },
6401
6401
  "dist/index.js": {
6402
6402
  "imports": [
@@ -8216,7 +8216,7 @@
8216
8216
  "bytesInOutput": 3022
8217
8217
  },
8218
8218
  "src/plugin/config/schema.ts": {
8219
- "bytesInOutput": 18882
8219
+ "bytesInOutput": 18913
8220
8220
  },
8221
8221
  "src/plugin/stores/signature-store.ts": {
8222
8222
  "bytesInOutput": 332
@@ -8249,7 +8249,7 @@
8249
8249
  "bytesInOutput": 626
8250
8250
  },
8251
8251
  "src/plugin/request-helpers.ts": {
8252
- "bytesInOutput": 51746
8252
+ "bytesInOutput": 51832
8253
8253
  },
8254
8254
  "src/plugin/thinking-recovery.ts": {
8255
8255
  "bytesInOutput": 4816
@@ -8318,7 +8318,7 @@
8318
8318
  "bytesInOutput": 78837
8319
8319
  },
8320
8320
  "src/plugin/errors.ts": {
8321
- "bytesInOutput": 578
8321
+ "bytesInOutput": 583
8322
8322
  },
8323
8323
  "src/plugin/fetch/retry-state.ts": {
8324
8324
  "bytesInOutput": 6547
@@ -8360,7 +8360,7 @@
8360
8360
  "bytesInOutput": 0
8361
8361
  }
8362
8362
  },
8363
- "bytes": 2109968
8363
+ "bytes": 2110090
8364
8364
  }
8365
8365
  }
8366
8366
  }
package/dist/server.js CHANGED
@@ -35109,12 +35109,12 @@ var AntigravityConfigSchema = z.object({
35109
35109
  * When an account's quota usage reaches this percentage, skip it during
35110
35110
  * account selection (same as if it were rate-limited).
35111
35111
  *
35112
+ * Disabled by default (100). Set a lower threshold to opt in to a reserve.
35112
35113
  * Example: 80 means skip account when 80% of quota is used (20% remaining).
35113
- * Set to 100 to disable soft quota protection.
35114
35114
  *
35115
- * @default 80
35115
+ * @default 100
35116
35116
  */
35117
- soft_quota_threshold_percent: z.number().min(1).max(100).default(80),
35117
+ soft_quota_threshold_percent: z.number().min(1).max(100).default(100),
35118
35118
  /**
35119
35119
  * How often to refresh quota data in the background (in minutes).
35120
35120
  * Quota is refreshed opportunistically after successful API requests.
@@ -35243,7 +35243,7 @@ var DEFAULT_CONFIG = {
35243
35243
  max_backoff_seconds: 60,
35244
35244
  request_jitter_max_ms: 0,
35245
35245
  switch_account_delay_ms: 500,
35246
- soft_quota_threshold_percent: 80,
35246
+ soft_quota_threshold_percent: 100,
35247
35247
  quota_refresh_interval_minutes: 30,
35248
35248
  soft_quota_cache_ttl_minutes: "auto",
35249
35249
  proactive_rotation_threshold_percent: 20,
@@ -41204,8 +41204,8 @@ function createSyntheticTextResponse(text2, extraHeaders = {}) {
41204
41204
  });
41205
41205
  }
41206
41206
  var NATIVE_GOOGLE_ERROR_MESSAGES = {
41207
- operator_policy: "Antigravity account pool is unavailable under the operator quota policy. Adjust /antigravity-killswitch or refresh quota.",
41208
- soft_quota: "Antigravity account pool is unavailable under the quota protection policy. Add accounts, wait for quota reset, or disable soft quota protection.",
41207
+ operator_policy: "Antigravity account pool is unavailable under the operator quota policy. Adjust the quota floor in /antigravity \u2192 Limits or refresh quota.",
41208
+ 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.',
41209
41209
  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.",
41210
41210
  model_unavailable: "The requested Antigravity model is not available to the configured accounts. Choose another model.",
41211
41211
  missing_access_token: "Missing access token. Run `opencode auth login` to reauthenticate.",
@@ -43608,7 +43608,7 @@ var AntigravityKillswitchError = class extends Error {
43608
43608
  summaries;
43609
43609
  constructor(input2) {
43610
43610
  super(
43611
- input2.message ?? `Antigravity killswitch: all ${input2.summaries.length} account(s) under ${input2.thresholdPercent}% quota for ${input2.family}. Refresh quota or raise the threshold via /antigravity-killswitch.`
43611
+ 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.`
43612
43612
  );
43613
43613
  this.name = "AntigravityKillswitchError";
43614
43614
  this.family = input2.family;