agy-statusblocks 0.1.4 → 0.1.5

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.
@@ -89,7 +89,7 @@ function bucketPool(key) {
89
89
  return 'gemini';
90
90
  return 'other';
91
91
  }
92
- function isActiveModelBucket(key, data) {
92
+ function isActiveModelBucket(key, data, hasExplicitArgonBucket = false) {
93
93
  const k = key.toLowerCase();
94
94
  const mName = (data.model?.display_name ?? '').toLowerCase();
95
95
  const mId = (data.model?.id ?? '').toLowerCase();
@@ -103,8 +103,8 @@ function isActiveModelBucket(key, data) {
103
103
  if ((mName.includes('claude') || mName.includes('sonnet') || mName.includes('opus') || mName.includes('gpt')) && bucketPool(key) === 'claude') {
104
104
  return true;
105
105
  }
106
- // Native Gemini model uses the Gemini pool (but not the separate Argon pool)
107
- if (mName.includes('gemini') && !mName.includes('argon') && bucketPool(key) === 'gemini') {
106
+ // Native Gemini model (including Gemini 4 Argon when no dedicated argon bucket exists) uses the Gemini pool
107
+ if (mName.includes('gemini') && (!mName.includes('argon') || !hasExplicitArgonBucket) && bucketPool(key) === 'gemini') {
108
108
  return true;
109
109
  }
110
110
  return false;
@@ -115,10 +115,11 @@ function extractLimits(data) {
115
115
  if (data.quota && typeof data.quota === 'object') {
116
116
  const entries = Object.entries(data.quota)
117
117
  .filter(([, bucket]) => bucket && typeof bucket === 'object' && !bucket.disabled);
118
+ const hasExplicitArgonBucket = entries.some(([k]) => bucketPool(k) === 'argon');
118
119
  // Sort active model's bucket first, then prefer showing distinct pools (Gemini/Argon + Claude), then by highest utilization
119
120
  entries.sort(([keyA, a], [keyB, b]) => {
120
- const actA = isActiveModelBucket(keyA, data) ? 1 : 0;
121
- const actB = isActiveModelBucket(keyB, data) ? 1 : 0;
121
+ const actA = isActiveModelBucket(keyA, data, hasExplicitArgonBucket) ? 1 : 0;
122
+ const actB = isActiveModelBucket(keyB, data, hasExplicitArgonBucket) ? 1 : 0;
122
123
  if (actA !== actB)
123
124
  return actB - actA;
124
125
  if (actA && actB) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agy-statusblocks",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Opinionated, adaptive block-based status line for Antigravity CLI (agy) with bin-packing layout, rate limit tracking, and live agent telemetry",
5
5
  "type": "module",
6
6
  "bin": {