@hashimkarim/usagestat-darwin-arm64 2.0.0-alpha.4 → 2.3.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 (189) hide show
  1. package/native-manifest.json +873 -141
  2. package/package.json +124 -2
  3. package/plugins/abliteration/LICENSE +21 -0
  4. package/plugins/abliteration/icon.svg +5 -0
  5. package/plugins/abliteration/plugin.js +89 -0
  6. package/plugins/abliteration/plugin.json +24 -0
  7. package/plugins/aerostack/LICENSE +21 -0
  8. package/plugins/aerostack/icon.svg +1 -0
  9. package/plugins/aerostack/plugin.js +94 -0
  10. package/plugins/aerostack/plugin.json +24 -0
  11. package/plugins/aixy/icon.svg +1 -0
  12. package/plugins/aixy/plugin.js +5 -0
  13. package/plugins/aixy/plugin.json +9 -1
  14. package/plugins/antigravity/plugin.js +60 -26
  15. package/plugins/antigravity-cli/plugin.js +21 -5
  16. package/plugins/antigravity-ide/plugin.js +19 -7
  17. package/plugins/atlascloud/plugin.js +5 -0
  18. package/plugins/atlascloud/plugin.json +2 -1
  19. package/plugins/bifrost/icon.svg +3 -0
  20. package/plugins/bifrost/plugin.js +5 -0
  21. package/plugins/bifrost/plugin.json +9 -1
  22. package/plugins/chatbox/LICENSE +21 -0
  23. package/plugins/chatbox/icon.svg +4 -0
  24. package/plugins/chatbox/plugin.js +208 -0
  25. package/plugins/chatbox/plugin.json +24 -0
  26. package/plugins/claude/plugin.js +39 -2
  27. package/plugins/claudeplatform/LICENSE +21 -0
  28. package/plugins/claudeplatform/icon.svg +3 -0
  29. package/plugins/claudeplatform/plugin.js +244 -0
  30. package/plugins/claudeplatform/plugin.json +25 -0
  31. package/plugins/codex/plugin.js +14 -8
  32. package/plugins/codex/plugin.json +11 -2
  33. package/plugins/copilot/plugin.json +1 -0
  34. package/plugins/cosmic/LICENSE +21 -0
  35. package/plugins/cosmic/icon.svg +1 -0
  36. package/plugins/cosmic/plugin.js +134 -0
  37. package/plugins/cosmic/plugin.json +32 -0
  38. package/plugins/cursor/plugin.js +51 -14
  39. package/plugins/cursor-nightly/plugin.json +1 -1
  40. package/plugins/devpass/icon.svg +3 -0
  41. package/plugins/devpass/plugin.js +5 -0
  42. package/plugins/devpass/plugin.json +2 -1
  43. package/plugins/exa/LICENSE +21 -0
  44. package/plugins/exa/icon-color.svg +1 -0
  45. package/plugins/exa/icon.svg +1 -0
  46. package/plugins/exa/plugin.js +75 -0
  47. package/plugins/exa/plugin.json +32 -0
  48. package/plugins/fal/LICENSE +21 -0
  49. package/plugins/fal/icon-color.svg +1 -0
  50. package/plugins/fal/icon.svg +1 -0
  51. package/plugins/fal/plugin.js +74 -0
  52. package/plugins/fal/plugin.json +24 -0
  53. package/plugins/flora/LICENSE +21 -0
  54. package/plugins/flora/icon.svg +4 -0
  55. package/plugins/flora/plugin.js +93 -0
  56. package/plugins/flora/plugin.json +32 -0
  57. package/plugins/futureagi/LICENSE +21 -0
  58. package/plugins/futureagi/icon.svg +24 -0
  59. package/plugins/futureagi/plugin.js +139 -0
  60. package/plugins/futureagi/plugin.json +32 -0
  61. package/plugins/gemini-apps/LICENSE +1 -2
  62. package/plugins/gemini-apps/plugin.js +136 -465
  63. package/plugins/gemini-apps/plugin.json +13 -7
  64. package/plugins/gitkraken/icon.svg +2 -0
  65. package/plugins/gitkraken/plugin.js +5 -0
  66. package/plugins/gitkraken/plugin.json +9 -1
  67. package/plugins/googledeveloper/LICENSE +21 -0
  68. package/plugins/googledeveloper/icon.svg +3 -0
  69. package/plugins/googledeveloper/plugin.js +204 -0
  70. package/plugins/googledeveloper/plugin.json +25 -0
  71. package/plugins/helmcode/icon.svg +5 -0
  72. package/plugins/helmcode/plugin.js +121 -56
  73. package/plugins/helmcode/plugin.json +10 -2
  74. package/plugins/huggingface/plugin.js +6 -1
  75. package/plugins/huggingface/plugin.json +4 -3
  76. package/plugins/hyper/plugin.js +53 -47
  77. package/plugins/hyper/plugin.json +3 -2
  78. package/plugins/jetbrains-ai-assistant/LICENSE +22 -0
  79. package/plugins/jetbrains-ai-assistant/plugin.js +502 -16
  80. package/plugins/jetbrains-ai-assistant/plugin.json +27 -4
  81. package/plugins/kimi/plugin.js +54 -14
  82. package/plugins/kimi/plugin.json +46 -6
  83. package/plugins/langdock/LICENSE +21 -0
  84. package/plugins/langdock/icon.svg +4 -0
  85. package/plugins/langdock/plugin.js +106 -0
  86. package/plugins/langdock/plugin.json +25 -0
  87. package/plugins/linkup/LICENSE +21 -0
  88. package/plugins/linkup/icon.svg +10 -0
  89. package/plugins/linkup/plugin.js +46 -0
  90. package/plugins/linkup/plugin.json +24 -0
  91. package/plugins/lithosai/LICENSE +21 -0
  92. package/plugins/lithosai/icon.svg +1 -0
  93. package/plugins/lithosai/plugin.js +130 -0
  94. package/plugins/lithosai/plugin.json +26 -0
  95. package/plugins/llmman/icon.svg +4 -0
  96. package/plugins/llmman/plugin.js +5 -0
  97. package/plugins/llmman/plugin.json +9 -1
  98. package/plugins/mistral/plugin.js +54 -22
  99. package/plugins/munito/LICENSE +21 -0
  100. package/plugins/munito/icon.svg +7 -0
  101. package/plugins/munito/plugin.js +171 -0
  102. package/plugins/munito/plugin.json +24 -0
  103. package/plugins/muse/icon.svg +3 -0
  104. package/plugins/muse/plugin.js +98 -129
  105. package/plugins/muse/plugin.json +10 -2
  106. package/plugins/museai/LICENSE +21 -0
  107. package/plugins/museai/icon.svg +3 -0
  108. package/plugins/museai/plugin.js +161 -0
  109. package/plugins/museai/plugin.json +26 -0
  110. package/plugins/nous/plugin.js +5 -0
  111. package/plugins/nous/plugin.json +9 -1
  112. package/plugins/ollama/plugin.js +58 -0
  113. package/plugins/opencode-go/plugin.js +74 -25
  114. package/plugins/opendesign/LICENSE +21 -0
  115. package/plugins/opendesign/icon.svg +4 -0
  116. package/plugins/opendesign/plugin.js +108 -0
  117. package/plugins/opendesign/plugin.json +25 -0
  118. package/plugins/parallel/LICENSE +21 -0
  119. package/plugins/parallel/icon.svg +11 -0
  120. package/plugins/parallel/plugin.js +97 -0
  121. package/plugins/parallel/plugin.json +25 -0
  122. package/plugins/perplexity/LICENSE +22 -0
  123. package/plugins/perplexity/plugin.js +122 -0
  124. package/plugins/perplexity/plugin.json +36 -7
  125. package/plugins/qwencloud/LICENSE +21 -0
  126. package/plugins/qwencloud/plugin.js +197 -0
  127. package/plugins/qwencloud/plugin.json +17 -0
  128. package/plugins/raycast/icon.svg +4 -0
  129. package/plugins/raycast/plugin.js +6 -1
  130. package/plugins/raycast/plugin.json +10 -2
  131. package/plugins/replicate/plugin.js +5 -0
  132. package/plugins/replicate/plugin.json +2 -1
  133. package/plugins/sailresearch/LICENSE +21 -0
  134. package/plugins/sailresearch/icon.svg +4 -0
  135. package/plugins/sailresearch/plugin.js +104 -0
  136. package/plugins/sailresearch/plugin.json +24 -0
  137. package/plugins/siliconflow/LICENSE +21 -0
  138. package/plugins/siliconflow/icon.svg +3 -0
  139. package/plugins/siliconflow/plugin.js +87 -0
  140. package/plugins/siliconflow/plugin.json +32 -0
  141. package/plugins/sofya/LICENSE +21 -0
  142. package/plugins/sofya/icon.svg +3 -0
  143. package/plugins/sofya/plugin.js +86 -0
  144. package/plugins/sofya/plugin.json +24 -0
  145. package/plugins/soniox/LICENSE +21 -0
  146. package/plugins/soniox/icon.svg +3 -0
  147. package/plugins/soniox/plugin.js +103 -0
  148. package/plugins/soniox/plugin.json +24 -0
  149. package/plugins/synthetic/plugin.js +12 -0
  150. package/plugins/synthetic/plugin.json +51 -9
  151. package/plugins/tavily/LICENSE +21 -0
  152. package/plugins/tavily/icon.svg +3 -0
  153. package/plugins/tavily/plugin.js +61 -0
  154. package/plugins/tavily/plugin.json +24 -0
  155. package/plugins/tinyapi/LICENSE +21 -0
  156. package/plugins/tinyapi/icon.svg +4 -0
  157. package/plugins/tinyapi/plugin.js +73 -0
  158. package/plugins/tinyapi/plugin.json +25 -0
  159. package/plugins/traecn/LICENSE +21 -0
  160. package/plugins/traecn/icon.svg +3 -0
  161. package/plugins/traecn/plugin.js +103 -0
  162. package/plugins/traecn/plugin.json +25 -0
  163. package/plugins/tripo/LICENSE +21 -0
  164. package/plugins/tripo/icon.svg +4 -0
  165. package/plugins/tripo/plugin.js +60 -0
  166. package/plugins/tripo/plugin.json +24 -0
  167. package/plugins/typesafe/icon.svg +4 -0
  168. package/plugins/typesafe/plugin.js +85 -129
  169. package/plugins/typesafe/plugin.json +3 -2
  170. package/plugins/v0/plugin.js +5 -0
  171. package/plugins/v0/plugin.json +9 -1
  172. package/plugins/vercel/plugin.js +147 -0
  173. package/plugins/vercel/plugin.json +34 -3
  174. package/plugins/workbuddy/LICENSE +21 -0
  175. package/plugins/workbuddy/icon.svg +1 -0
  176. package/plugins/workbuddy/plugin.js +318 -0
  177. package/plugins/workbuddy/plugin.json +63 -0
  178. package/plugins/xai/plugin.js +9 -0
  179. package/plugins/xapi/LICENSE +21 -0
  180. package/plugins/xapi/icon.svg +1 -0
  181. package/plugins/xapi/plugin.js +90 -0
  182. package/plugins/xapi/plugin.json +25 -0
  183. package/plugins/xkiro/icon.svg +1 -0
  184. package/plugins/xkiro/plugin.js +5 -0
  185. package/plugins/xkiro/plugin.json +2 -1
  186. package/plugins/zai/plugin.js +5 -1
  187. package/usagestat +0 -0
  188. package/usagestatd +0 -0
  189. package/plugins/cursor-nightly/plugin.js +0 -1416
@@ -10,6 +10,7 @@
10
10
  var FETCH_MODELS_PATH = "/v1internal:fetchAvailableModels"
11
11
  var RETRIEVE_QUOTA_PATH = "/v1internal:retrieveUserQuota"
12
12
  var LOGIN_MESSAGE = "Start Antigravity or run `agy` and try again."
13
+ var QUOTA_DENIED_MESSAGE = "Google denied Antigravity quota access for this account. Open the latest Antigravity or agy client and check account access."
13
14
  var GOOGLE_OAUTH_URL = "https://oauth2.googleapis.com/token"
14
15
  var GOOGLE_CLIENT_ID = "1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com"
15
16
  var GOOGLE_CLIENT_SECRET = "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"
@@ -370,16 +371,17 @@
370
371
  // reports per-model quota, so use it before treating the token as rejected.
371
372
  function probeAgyToken(ctx, token) {
372
373
  var quota = probeAgyCloudCode(ctx, token)
373
- if (quota && !quota._authFailed) return quota
374
- var models = probeCloudCode(ctx, token)
375
- if (models && !models._authFailed) {
374
+ if (quota && !quota._authFailed && !quota._quotaDenied) return quota
375
+ var models = probeCloudCode(ctx, token, "agy", true)
376
+ if (models && !models._authFailed && !models._quotaDenied) {
377
+ if (models._summaryLines) return { plan: null, lines: models._summaryLines }
376
378
  var lines = buildModelLines(ctx, parseCloudCodeModels(models))
377
379
  if (lines.length > 0) return { plan: null, lines: lines }
378
- return null
380
+ return quota && quota._quotaDenied ? quota : null
379
381
  }
380
382
  // A quota 403 can mean "no license", not an invalid bearer. If the model
381
383
  // endpoint is temporarily unavailable, don't turn that into a token refresh.
382
- return models
384
+ return models || (quota && quota._quotaDenied ? quota : null)
383
385
  }
384
386
 
385
387
  // --- LS discovery ---
@@ -447,7 +449,7 @@
447
449
  return null
448
450
  }
449
451
 
450
- function callLs(ctx, port, scheme, csrf, method, body) {
452
+ function callLs(ctx, port, scheme, csrf, method, body, timeoutMs) {
451
453
  var resp = ctx.host.http.request({
452
454
  method: "POST",
453
455
  url: scheme + "://127.0.0.1:" + port + "/" + LS_SERVICE + "/" + method,
@@ -457,7 +459,7 @@
457
459
  "x-codeium-csrf-token": csrf,
458
460
  },
459
461
  bodyText: JSON.stringify(body || {}),
460
- timeoutMs: 10000,
462
+ timeoutMs: timeoutMs || 10000,
461
463
  dangerouslyIgnoreTls: scheme === "https",
462
464
  })
463
465
  if (resp.status < 200 || resp.status >= 300) {
@@ -476,8 +478,10 @@
476
478
 
477
479
  function poolLabel(normalizedLabel) {
478
480
  var lower = normalizedLabel.toLowerCase()
481
+ if (lower.indexOf('argon') !== -1) return null
479
482
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("pro") !== -1) return "Gemini Pro"
480
483
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("flash") !== -1) return "Gemini Flash"
484
+ if (lower.indexOf('gemini') !== -1) return null
481
485
  // All non-Gemini models (Claude, GPT-OSS, etc.) share a single quota pool
482
486
  return "Claude"
483
487
  }
@@ -514,9 +518,11 @@
514
518
  var label = (typeof c.label === "string") ? c.label.trim() : ""
515
519
  if (!label) continue
516
520
  var qi = c.quotaInfo
517
- var frac = (qi && typeof qi.remainingFraction === "number") ? qi.remainingFraction : 0
521
+ if (!qi || !Number.isFinite(qi.remainingFraction)) continue
522
+ var frac = qi.remainingFraction
518
523
  var rtime = (qi && qi.resetTime) || undefined
519
524
  var pool = poolLabel(normalizeLabel(label))
525
+ if (!pool) continue
520
526
  if (!deduped[pool] || frac < deduped[pool].remainingFraction) {
521
527
  deduped[pool] = {
522
528
  label: pool,
@@ -547,7 +553,9 @@
547
553
 
548
554
  // --- Cloud Code API ---
549
555
 
550
- function requestCloudCodeJson(ctx, path, token, userAgent, body) {
556
+ function requestCloudCodeJson(ctx, path, token, userAgent, body, timeoutMs) {
557
+ var summaries = path === '/v1internal:retrieveUserQuotaSummary' ? [] : null
558
+ var denial = null
551
559
  for (var i = 0; i < CLOUD_CODE_URLS.length; i++) {
552
560
  try {
553
561
  var resp = ctx.host.http.request({
@@ -557,32 +565,42 @@
557
565
  Accept: "application/json",
558
566
  "Content-Type": "application/json",
559
567
  Authorization: "Bearer " + token,
560
- "User-Agent": userAgent || "antigravity",
568
+ "User-Agent": ctx.util.antigravityHubUserAgent(),
561
569
  },
562
570
  bodyText: JSON.stringify(body || {}),
563
- timeoutMs: 15000,
571
+ timeoutMs: timeoutMs || 15000,
564
572
  })
565
573
  if (!resp || typeof resp.status !== "number" || !Number.isFinite(resp.status)) {
566
574
  ctx.host.log.warn("Cloud Code returned invalid response shape (" + CLOUD_CODE_URLS[i] + ")")
567
575
  continue
568
576
  }
569
- if (ctx.util.isAuthStatus(resp.status)) return { _authFailed: true }
577
+ if (resp.status === 401 || resp.status === 403) {
578
+ denial = resp.status === 401 ? { _authFailed:true } : { _quotaDenied:true }
579
+ if (!summaries) return denial
580
+ continue
581
+ }
570
582
  if (resp.status >= 200 && resp.status < 300) {
571
583
  var json = ctx.util.tryParseJson(resp.bodyText)
572
584
  if (!json || typeof json !== "object") {
573
585
  ctx.host.log.warn("Cloud Code returned invalid JSON (" + CLOUD_CODE_URLS[i] + ")")
574
586
  continue
575
587
  }
588
+ if (summaries) {summaries.push(json);continue}
576
589
  return json
577
590
  }
578
591
  } catch (e) {
579
592
  ctx.host.log.warn("Cloud Code request failed (" + CLOUD_CODE_URLS[i] + "): " + String(e))
580
593
  }
581
594
  }
582
- return null
595
+ return summaries && summaries.length ? summaries : denial
583
596
  }
584
597
 
585
- function probeCloudCode(ctx, token, userAgent) {
598
+ function probeCloudCode(ctx, token, userAgent, skipSummary) {
599
+ if (!skipSummary) {
600
+ var summary = requestCloudCodeJson(ctx, "/v1internal:retrieveUserQuotaSummary", token, userAgent, {}, 2000)
601
+ var lines = ctx.util.groupedQuotaLines(summary)
602
+ if (lines !== null) return { _summaryLines: lines }
603
+ }
586
604
  return requestCloudCodeJson(ctx, FETCH_MODELS_PATH, token, userAgent, {})
587
605
  }
588
606
 
@@ -603,7 +621,8 @@
603
621
  ""
604
622
  if (!displayName) continue
605
623
  var qi = m.quotaInfo
606
- var frac = (qi && typeof qi.remainingFraction === "number") ? qi.remainingFraction : 0
624
+ if (!qi || !Number.isFinite(qi.remainingFraction)) continue
625
+ var frac = qi.remainingFraction
607
626
  var rtime = (qi && qi.resetTime) || undefined
608
627
  configs.push({
609
628
  label: displayName,
@@ -634,7 +653,8 @@
634
653
  if (!bucket || typeof bucket !== "object") continue
635
654
  var modelId = (typeof bucket.modelId === "string" && bucket.modelId.trim()) || ""
636
655
  if (!modelId) continue
637
- var frac = (typeof bucket.remainingFraction === "number") ? bucket.remainingFraction : 0
656
+ if (!Number.isFinite(bucket.remainingFraction)) continue
657
+ var frac = bucket.remainingFraction
638
658
  configs.push({
639
659
  label: modelId,
640
660
  quotaInfo: { remainingFraction: frac, resetTime: bucket.resetTime || undefined },
@@ -645,20 +665,23 @@
645
665
 
646
666
  function probeAgyCloudCode(ctx, token) {
647
667
  var loadData = requestCloudCodeJson(ctx, LOAD_CODE_ASSIST_PATH, token, "agy", {})
648
- if (!loadData || loadData._authFailed) return loadData
668
+ if (!loadData || loadData._authFailed || loadData._quotaDenied) return loadData
649
669
 
650
670
  var project =
651
671
  typeof loadData.cloudaicompanionProject === "string" && loadData.cloudaicompanionProject.trim()
652
672
  ? loadData.cloudaicompanionProject.trim()
653
673
  : null
654
674
  var quotaData = null
675
+ var summary = requestCloudCodeJson(ctx, "/v1internal:retrieveUserQuotaSummary", token, "agy", project ? { project: project } : {}, 2000)
676
+ var summaryLines = ctx.util.groupedQuotaLines(summary)
677
+ if (summaryLines !== null) return { plan: readAgyPlan(loadData), lines: summaryLines }
655
678
  if (project) {
656
679
  quotaData = requestCloudCodeJson(ctx, RETRIEVE_QUOTA_PATH, token, "agy", { project: project })
657
680
  }
658
- if (!quotaData || quotaData._authFailed) {
681
+ if (!quotaData || quotaData._authFailed || quotaData._quotaDenied) {
659
682
  quotaData = requestCloudCodeJson(ctx, RETRIEVE_QUOTA_PATH, token, "agy", {})
660
683
  }
661
- if (!quotaData || quotaData._authFailed) return quotaData
684
+ if (!quotaData || quotaData._authFailed || quotaData._quotaDenied) return quotaData || (summary && summary._quotaDenied ? summary : null)
662
685
 
663
686
  var lines = buildModelLines(ctx, parseAgyQuotaBuckets(quotaData))
664
687
  if (lines.length === 0) return null
@@ -682,7 +705,13 @@
682
705
  locale: "en",
683
706
  }
684
707
 
685
- // Try GetUserStatus first, fall back to GetCommandModelConfigs
708
+ var summaryLines = null
709
+ try {
710
+ summaryLines = ctx.util.groupedQuotaLines(callLs(ctx, found.port, found.scheme, discovery.csrf,
711
+ "RetrieveUserQuotaSummary", { forceRefresh: true }, 2000))
712
+ } catch (_) {}
713
+
714
+ // GetUserStatus also supplies identity when grouped quota is available.
686
715
  var data = null
687
716
  try {
688
717
  data = callLs(ctx, found.port, found.scheme, discovery.csrf, "GetUserStatus", { metadata: metadata })
@@ -691,7 +720,7 @@
691
720
  }
692
721
  var hasUserStatus = data && data.userStatus
693
722
 
694
- if (!hasUserStatus) {
723
+ if (!hasUserStatus && summaryLines === null) {
695
724
  ctx.host.log.warn("GetUserStatus failed, trying GetCommandModelConfigs")
696
725
  data = callLs(ctx, found.port, found.scheme, discovery.csrf, "GetCommandModelConfigs", { metadata: metadata })
697
726
  }
@@ -702,6 +731,8 @@
702
731
  configs = (data.userStatus.cascadeModelConfigData || {}).clientModelConfigs || []
703
732
  } else if (data && data.clientModelConfigs) {
704
733
  configs = data.clientModelConfigs
734
+ } else if (summaryLines !== null) {
735
+ configs = []
705
736
  } else {
706
737
  return null
707
738
  }
@@ -713,8 +744,8 @@
713
744
  filtered.push(configs[j])
714
745
  }
715
746
 
716
- var lines = buildModelLines(ctx, filtered)
717
- if (lines.length === 0) return null
747
+ var lines = summaryLines !== null ? summaryLines : buildModelLines(ctx, filtered)
748
+ if (lines.length === 0 && summaryLines === null) return null
718
749
 
719
750
  var plan = null
720
751
  if (hasUserStatus) {
@@ -810,18 +841,21 @@
810
841
  }
811
842
 
812
843
  // agy's own login also covers users whose IDE database is stale or absent.
813
- if (!explicitDb && (!ccData || ccData._authFailed)) {
844
+ if (!explicitDb && (!ccData || ccData._authFailed || ccData._quotaDenied)) {
814
845
  var agyResult = probeAgyCredentials(ctx)
815
- if (agyResult && !agyResult._authFailed) return agyResult
846
+ if (agyResult && !agyResult._authFailed && !agyResult._quotaDenied) return agyResult
847
+ if (agyResult && agyResult._quotaDenied) ccData = agyResult
816
848
  if (agyResult && agyResult._authFailed) ccData = agyResult
817
849
  }
818
850
 
819
- if (ccData && !ccData._authFailed) {
851
+ if (ccData && !ccData._authFailed && !ccData._quotaDenied) {
852
+ if (ccData._summaryLines) return { plan: null, lines: ccData._summaryLines }
820
853
  var configs = parseCloudCodeModels(ccData)
821
854
  var lines = buildModelLines(ctx, configs)
822
855
  if (lines.length > 0) return { plan: null, lines: lines }
823
856
  }
824
857
 
858
+ if (ccData && ccData._quotaDenied) throw QUOTA_DENIED_MESSAGE
825
859
  throw LOGIN_MESSAGE
826
860
  }
827
861
 
@@ -7,6 +7,7 @@
7
7
  const SESSION_EXPIRED_MESSAGE =
8
8
  "Google sign-in expired. Run `agy` and complete Google sign-in again."
9
9
  const REQUEST_FAILED_MESSAGE = "Antigravity CLI quota request failed. Check your connection and try again."
10
+ const QUOTA_DENIED_MESSAGE = "Google denied Antigravity quota access for this account. Open the latest Antigravity or agy client and check account access."
10
11
  const GOOGLE_OAUTH_URL = "https://oauth2.googleapis.com/token"
11
12
  const GOOGLE_CLIENT_ID =
12
13
  "1071006060591-tmhssin2h21lcre235vtolojh4g403ep.apps.googleusercontent.com"
@@ -291,10 +292,10 @@
291
292
  Authorization: "Bearer " + token,
292
293
  Accept: "application/json",
293
294
  "Content-Type": "application/json",
294
- "User-Agent": "agy",
295
+ "User-Agent": ctx.util.antigravityHubUserAgent(),
295
296
  },
296
297
  bodyText: JSON.stringify(body || {}),
297
- timeoutMs: 15000,
298
+ timeoutMs: opts.timeoutMs || 15000,
298
299
  })
299
300
  } catch (e) {
300
301
  if (opts.optional) {
@@ -307,7 +308,11 @@
307
308
  if (opts.optional) return null
308
309
  throw REQUEST_FAILED_MESSAGE
309
310
  }
310
- if (ctx.util.isAuthStatus(resp.status)) {
311
+ if (resp.status === 403) {
312
+ if (opts.optional) return null
313
+ throw QUOTA_DENIED_MESSAGE
314
+ }
315
+ if (resp.status === 401) {
311
316
  if (opts.optional) {
312
317
  ctx.host.log.warn(
313
318
  "antigravity-cli optional request HTTP " +
@@ -341,11 +346,15 @@
341
346
 
342
347
  function requestJsonAcrossBases(ctx, path, token, body, options) {
343
348
  var urls = cloudCodeUrls(path)
349
+ var summaries = path === '/v1internal:retrieveUserQuotaSummary' ? [] : null
344
350
  for (var i = 0; i < urls.length; i += 1) {
345
351
  var data = requestJson(ctx, urls[i], token, body, options)
346
- if (data) return data
352
+ if (data) {
353
+ if (summaries) summaries.push(data)
354
+ else return data
355
+ }
347
356
  }
348
- return null
357
+ return summaries && summaries.length ? summaries : null
349
358
  }
350
359
 
351
360
  function makeAuthRetry(ctx, authState) {
@@ -420,6 +429,7 @@
420
429
 
421
430
  function poolForText(text) {
422
431
  var lower = String(text || "").toLowerCase()
432
+ if (lower.indexOf('argon') !== -1) return null
423
433
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("pro") !== -1) return "Gemini Pro"
424
434
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("flash") !== -1) return "Gemini Flash"
425
435
  if (lower.indexOf("gemini") !== -1) return null
@@ -540,6 +550,12 @@
540
550
  if (!loadData) throw REQUEST_FAILED_MESSAGE
541
551
  var plan = readPlan(loadData)
542
552
 
553
+ var project = typeof loadData.cloudaicompanionProject === "string" ? loadData.cloudaicompanionProject.trim() : ""
554
+ var summary = requestJsonAcrossBases(ctx, "/v1internal:retrieveUserQuotaSummary", authState.token,
555
+ project ? { project: project } : {}, { optional: true, timeoutMs: 2000 })
556
+ var summaryLines = ctx.util.groupedQuotaLines(summary)
557
+ if (summaryLines !== null) return { plan: plan || undefined, lines: summaryLines }
558
+
543
559
  var buckets = []
544
560
  // fetchAvailableModels rejects `metadata` in the body (HTTP 400); use {} like Antigravity IDE.
545
561
  var fetchData = requestJsonAcrossBases(ctx, FETCH_MODELS_PATH, authState.token, {}, {
@@ -82,7 +82,7 @@
82
82
  return null
83
83
  }
84
84
 
85
- function callLs(ctx, port, scheme, csrf, method, body) {
85
+ function callLs(ctx, port, scheme, csrf, method, body, timeoutMs) {
86
86
  var resp = ctx.host.http.request({
87
87
  method: "POST",
88
88
  url: scheme + "://127.0.0.1:" + port + "/" + LS_SERVICE + "/" + method,
@@ -92,7 +92,7 @@
92
92
  "x-codeium-csrf-token": csrf,
93
93
  },
94
94
  bodyText: JSON.stringify(body || {}),
95
- timeoutMs: 10000,
95
+ timeoutMs: timeoutMs || 10000,
96
96
  dangerouslyIgnoreTls: scheme === "https",
97
97
  })
98
98
  if (resp.status < 200 || resp.status >= 300) {
@@ -111,8 +111,10 @@
111
111
 
112
112
  function poolLabel(normalizedLabel) {
113
113
  var lower = normalizedLabel.toLowerCase()
114
+ if (lower.indexOf('argon') !== -1) return null
114
115
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("pro") !== -1) return "Gemini Pro"
115
116
  if (lower.indexOf("gemini") !== -1 && lower.indexOf("flash") !== -1) return "Gemini Flash"
117
+ if (lower.indexOf('gemini') !== -1) return null
116
118
  // All non-Gemini models (Claude, GPT-OSS, etc.) share a single quota pool
117
119
  return "Claude"
118
120
  }
@@ -149,9 +151,11 @@
149
151
  var label = (typeof c.label === "string") ? c.label.trim() : ""
150
152
  if (!label) continue
151
153
  var qi = c.quotaInfo
152
- var frac = (qi && typeof qi.remainingFraction === "number") ? qi.remainingFraction : 0
154
+ if (!qi || !Number.isFinite(qi.remainingFraction)) continue
155
+ var frac = qi.remainingFraction
153
156
  var rtime = (qi && qi.resetTime) || undefined
154
157
  var pool = poolLabel(normalizeLabel(label))
158
+ if (!pool) continue
155
159
  if (!deduped[pool] || frac < deduped[pool].remainingFraction) {
156
160
  deduped[pool] = {
157
161
  label: pool,
@@ -198,7 +202,13 @@
198
202
  locale: "en",
199
203
  }
200
204
 
201
- // Try GetUserStatus first, fall back to GetCommandModelConfigs
205
+ var summaryLines = null
206
+ try {
207
+ summaryLines = ctx.util.groupedQuotaLines(callLs(ctx, found.port, found.scheme, discovery.csrf,
208
+ "RetrieveUserQuotaSummary", { forceRefresh: true }, 2000))
209
+ } catch (_) {}
210
+
211
+ // GetUserStatus also supplies identity when grouped quota is available.
202
212
  var data = null
203
213
  try {
204
214
  data = callLs(ctx, found.port, found.scheme, discovery.csrf, "GetUserStatus", { metadata: metadata })
@@ -207,7 +217,7 @@
207
217
  }
208
218
  var hasUserStatus = data && data.userStatus
209
219
 
210
- if (!hasUserStatus) {
220
+ if (!hasUserStatus && summaryLines === null) {
211
221
  ctx.host.log.warn("GetUserStatus failed, trying GetCommandModelConfigs")
212
222
  data = callLs(ctx, found.port, found.scheme, discovery.csrf, "GetCommandModelConfigs", { metadata: metadata })
213
223
  }
@@ -218,6 +228,8 @@
218
228
  configs = (data.userStatus.cascadeModelConfigData || {}).clientModelConfigs || []
219
229
  } else if (data && data.clientModelConfigs) {
220
230
  configs = data.clientModelConfigs
231
+ } else if (summaryLines !== null) {
232
+ configs = []
221
233
  } else {
222
234
  throw "Start Antigravity IDE and try again."
223
235
  }
@@ -229,8 +241,8 @@
229
241
  filtered.push(configs[j])
230
242
  }
231
243
 
232
- var lines = buildModelLines(ctx, filtered)
233
- if (lines.length === 0) throw "Start Antigravity IDE and try again."
244
+ var lines = summaryLines !== null ? summaryLines : buildModelLines(ctx, filtered)
245
+ if (lines.length === 0 && summaryLines === null) throw "Start Antigravity IDE and try again."
234
246
 
235
247
  var plan = null
236
248
  if (hasUserStatus) {
@@ -1,5 +1,7 @@
1
1
  // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
2
  globalThis.__usagestat_bundled_options = {"labels":["Balance","Balance","Additional"],"defaults":{},"autoMode":"api"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/atlascloud.js
3
5
  defineProvider({
4
6
  id: "atlascloud",
5
7
  name: "Atlas Cloud",
@@ -47,3 +49,6 @@ defineProvider({
47
49
  };
48
50
  },
49
51
  });
52
+
53
+ // END UPSTREAM
54
+ })(globalThis.defineProvider);
@@ -13,9 +13,10 @@
13
13
  "envVars": [
14
14
  "ATLASCLOUD_API_KEY"
15
15
  ],
16
+ "setupFields": [],
16
17
  "upstream": {
17
18
  "repository": "https://github.com/steipete/CodexBar",
18
- "revision": "78ba5a1e65e6859da59a21b799df95ab91bc0b89",
19
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
19
20
  "path": "Sources/CodexBarCore/Resources/Plugins/atlascloud.js",
20
21
  "sha256": "852fb78abaf4fcdbbfbfeac0b60d6b82a9ca9b1d1d2f9014f6e5299b41ac47fa",
21
22
  "license": "MIT"
@@ -0,0 +1,3 @@
1
+ <svg width="88" height="110" viewBox="0 0 88 110" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M65.8047 109.59H0V87.6719H65.8047V109.59ZM87.7393 87.6719H65.8047V65.7539H87.7393V87.6719ZM43.8701 65.7539H21.9355V43.8359H43.8701V65.7539ZM87.7393 43.8359H65.8047V21.918H87.7393V43.8359ZM65.8047 21.918H0V0H65.8047V21.918Z" fill="#33C19E"/>
3
+ </svg>
@@ -1,5 +1,7 @@
1
1
  // Generated by tools/vendor-codexbar-providers.cjs; see LICENSE.
2
2
  globalThis.__usagestat_bundled_options = {"labels":["Budget","Secondary budget","Additional"],"defaults":{},"autoMode":"api"};
3
+ (function(defineProvider) {
4
+ // BEGIN UPSTREAM Sources/CodexBarCore/Resources/Plugins/bifrost.js
3
5
  function _nullishCoalesce(lhs, rhsFn) {
4
6
  if (lhs != null) {
5
7
  return lhs;
@@ -359,3 +361,6 @@ defineProvider({
359
361
  };
360
362
  },
361
363
  });
364
+
365
+ // END UPSTREAM
366
+ })(globalThis.defineProvider);
@@ -13,9 +13,17 @@
13
13
  "BIFROST_API_KEY",
14
14
  "BIFROST_BASE_URL"
15
15
  ],
16
+ "setupFields": [
17
+ {
18
+ "key": "BIFROST_BASE_URL",
19
+ "title": "Base URL",
20
+ "type": "string",
21
+ "description": "Provider-specific account or source selection."
22
+ }
23
+ ],
16
24
  "upstream": {
17
25
  "repository": "https://github.com/steipete/CodexBar",
18
- "revision": "78ba5a1e65e6859da59a21b799df95ab91bc0b89",
26
+ "revision": "1f6da9bec44455288ddee5ef6f3617a803d8eb2a",
19
27
  "path": "Sources/CodexBarCore/Resources/Plugins/bifrost.js",
20
28
  "sha256": "b7576d59ccd077c812118cf09d282042589a80df470c621e414583050f03aa07",
21
29
  "license": "MIT"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Peter Steinberger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M17.0674 3.26367L17.0674 2.26367H17.0674V3.26367ZM17.0674 18.0566V19.0566H17.0674L17.0674 18.0566ZM7.66211 18.0566V17.0566C7.42949 17.0566 7.20415 17.1377 7.02487 17.286L7.66211 18.0566ZM4.41895 20.7383H3.41895C3.41895 21.1256 3.64261 21.4781 3.99306 21.6431C4.3435 21.808 4.75768 21.7558 5.05618 21.509L4.41895 20.7383ZM4.41895 17.165H5.41895C5.41895 16.8637 5.28308 16.5785 5.04912 16.3886L4.41895 17.165ZM6.93359 3.26367V2.26367H6.93357L6.93359 3.26367ZM17.0674 3.26367L17.0674 4.26367C18.721 4.26372 20.0615 5.6042 20.0615 7.25781H21.0615H22.0615C22.0615 4.49957 19.8256 2.26375 17.0674 2.26367L17.0674 3.26367ZM21.0615 7.25781H20.0615V14.0625H21.0615H22.0615V7.25781H21.0615ZM21.0615 14.0625H20.0615C20.0615 15.7161 18.721 17.0566 17.0674 17.0566L17.0674 18.0566L17.0674 19.0566C19.8256 19.0566 22.0615 16.8207 22.0615 14.0625H21.0615ZM17.0674 18.0566V17.0566H7.66211V18.0566V19.0566H17.0674V18.0566ZM7.66211 18.0566L7.02487 17.286L3.78171 19.9676L4.41895 20.7383L5.05618 21.509L8.29934 18.8273L7.66211 18.0566ZM4.41895 20.7383H5.41895V17.165H4.41895H3.41895V20.7383H4.41895ZM4.41895 17.165L5.04912 16.3886C4.37038 15.8377 3.93945 15.0007 3.93945 14.0625H2.93945H1.93945C1.93945 15.6296 2.66288 17.0277 3.78877 17.9415L4.41895 17.165ZM2.93945 14.0625H3.93945V7.25781H2.93945H1.93945V14.0625H2.93945ZM2.93945 7.25781H3.93945C3.93945 5.6042 5.27994 4.26372 6.93362 4.26367L6.93359 3.26367L6.93357 2.26367C4.17542 2.26375 1.93945 4.49957 1.93945 7.25781H2.93945ZM6.93359 3.26367V4.26367H17.0674V3.26367V2.26367H6.93359V3.26367Z" fill="#000000"/>
3
+ <path d="M9.13379 9.29883C9.83353 9.29883 10.4014 9.86667 10.4014 10.5664C10.4012 11.266 9.83346 11.833 9.13379 11.833C8.43421 11.8329 7.86731 11.266 7.86719 10.5664C7.86719 9.86673 8.43414 9.29893 9.13379 9.29883ZM14.8662 9.29883C15.566 9.29883 16.1338 9.86667 16.1338 10.5664C16.1337 11.266 15.5659 11.833 14.8662 11.833C14.1666 11.8329 13.5997 11.266 13.5996 10.5664C13.5996 9.86673 14.1666 9.29893 14.8662 9.29883Z" fill="#000000"/>
4
+ </svg>