dsh-agy-link 0.4.49 → 0.4.50

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.50 (2026-10-14)
4
+
5
+ ### English
6
+
7
+ - **Fix: the header badge now names the same account as the console.** The session header applied an eligibility fallback chain (any enabled account, else `accounts[0]`) when the server-scheduled slot was cooling down or auth-flagged, so it displayed a DIFFERENT account than the console modal's "in use" badge. The header is a readout, not a picker: it now displays exactly `pool.activeAccountId`, with the dot turning red/amber for auth-required/cooldown states.
8
+
9
+ ### 中文 (Chinese)
10
+
11
+ - **修复:顶栏徽章与控制台显示同一个账号。** 当服务端调度的账号处于冷却或被标记时,会话顶栏会走降级链(任选其他合格账号,再不行取第 1 个),导致与控制台弹窗的"当前使用"徽章显示不同的账号。顶栏是状态显示器而不是选择器:现在严格显示 `pool.activeAccountId`,账号需重新登录/冷却中时圆点相应变红/变黄。
12
+
3
13
  ## 0.4.49 (2026-10-14)
4
14
 
5
15
  ### English
package/dist/client.js CHANGED
@@ -5218,11 +5218,12 @@ body.dark,
5218
5218
  const pool = status?.pool;
5219
5219
  const accounts = pool?.accounts ?? [];
5220
5220
  const rawActiveId = pool?.activeAccountId ?? pool?.lastActiveAccountId ?? pool?.activeAccountIds?.google ?? pool?.primaryAccountId;
5221
- const activeAcc = accounts.find((a) => a.id === rawActiveId && a.enabled && !a.authRequired) ?? accounts.find((a) => a.enabled && !a.authRequired) ?? accounts[0];
5221
+ const activeAcc = rawActiveId !== void 0 ? accounts.find((a) => a.id === rawActiveId) : void 0;
5222
+ const activeAuthRequired = activeAcc?.authRequired === true;
5222
5223
  const activeHasCooldown = activeAcc ? Object.entries(activeAcc.cooldowns ?? {}).some(([, cd]) => cd && cd.cooldownUntil > Date.now()) : false;
5223
5224
  const allInCooldown = accounts.length > 0 && accounts.every((a) => !a.enabled || a.authRequired || Object.entries(a.cooldowns ?? {}).some(([, cd]) => cd && cd.cooldownUntil > Date.now()));
5224
5225
  const isAuthed = status?.auth?.phase === "ok" || accounts.length > 0;
5225
- const color = status === null ? "#64748b" : status.dormantReason ? "#f59e0b" : allInCooldown ? "#f59e0b" : activeHasCooldown ? "#f59e0b" : isAuthed ? "#10b981" : "#f59e0b";
5226
+ const color = status === null ? "#64748b" : status.dormantReason ? "#f59e0b" : allInCooldown ? "#f59e0b" : activeAuthRequired ? "#ef4444" : activeHasCooldown ? "#f59e0b" : isAuthed ? "#10b981" : "#f59e0b";
5226
5227
  const legacyDefault = activeAcc && activeAcc.defaultAlias === void 0 && activeAcc.systemHome && activeAcc.alias === "主账号 (系统登录)";
5227
5228
  const displayAlias = activeAcc ? activeAcc.defaultAlias || legacyDefault ? activeAcc.systemHome ? t("account.defaultAlias") : t("account.aliasDefault", { number: accounts.indexOf(activeAcc) + 1 }) : activeAcc.alias : "";
5228
5229
  const activeEligible = activeAcc !== void 0 && activeAcc.enabled && !activeAcc.authRequired;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.4.49",
3
+ "version": "0.4.50",
4
4
  "description": "Google Antigravity (agy CLI) models for DeepSeek Harness — stream Gemini/Claude/GPT-OSS subscriptions into DSH with thinking, tool activity, token usage and in-GUI Google OAuth login.",
5
5
  "type": "module",
6
6
  "license": "MIT",