dsh-agy-link 0.6.21 → 0.6.23
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 +83 -0
- package/README.md +1 -1
- package/dist/cli-image.mjs +552 -87
- package/dist/client.js +625 -225
- package/dist/index.js +886 -186
- package/docs/CONFIGURATION.md +12 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,88 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.23 (2026-11-14)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **Feat(models): opt-in pool-wide model catalog (fixes #107).** Since v0.6.21 the picker showed only the ACTIVE account's models, so a model owned by another account (e.g. Argon on a backup account) could not be selected even though `selectSessionAccount()` already routes via `pool.selectAccount(family, model)` and self-heals on a "model not recognized" refusal. The new `poolWideCatalog` switch (default `false`) makes `listAvailableModels()` use the already-tested `getUnion(enabledAccounts, pool)`; the scheduler then routes to an account that can serve the chosen model without a manual "set active" round-trip. Available in Settings, via `DSH_AGY_POOL_WIDE_CATALOG`, and through the guarded `/config` endpoint; `/status` exposes its state. Default off keeps strict single-account isolation unchanged. Covered by a two-account heterogeneous-catalog regression test, config-precedence, HTTP-contract, SSR row and four-locale dictionary tests. Thanks to @Ronnoc for the proposal and the precise code walkthrough.
|
|
8
|
+
|
|
9
|
+
### 中文
|
|
10
|
+
|
|
11
|
+
- **新增(模型):号池全量模型并集开关(修复 #107)。** v0.6.21 起模型选择器只显示当前活动账号的模型,异构权限多账号场景下,备用账号独有的模型(如 Argon)即使底层已支持按模型自动调度也无法被选中。`poolWideCatalog`(默认关闭)让 `listAvailableModels()` 改走现成的 `getUnion(enabledAccounts, pool)`,选中后由 `selectAccount(family, model)` 自动路由到支持该模型的账号,无需先手动「设为当前使用」。设置面板、`DSH_AGY_POOL_WIDE_CATALOG` 环境变量与受白名单保护的 `/config` 均可配置,`/status` 同步状态;默认关闭保持严格单账号隔离不变。异构双账号目录回归测试、配置优先级、HTTP 契约、SSR 行与四语言字典测试均已覆盖。感谢 @Ronnoc 的提案与精确定位。
|
|
12
|
+
|
|
13
|
+
## 0.6.22 (2026-11-13)
|
|
14
|
+
|
|
15
|
+
### English
|
|
16
|
+
|
|
17
|
+
- **Fix(mirror, ptc): drop the top-level `return` from the replay program (fixes #103).** In Code/PTC Mode the generated `run_code` wrapper emitted `return await tools['agy_tool'](...)`; DSH's REPL validator rejects a top-level `return` with `Return statement is not allowed here`, so *every* mirrored agy tool step failed. The wrapper now ends with `await tools['agy_tool'](...)` (final expression), which evaluates in both REPL and function-body runtimes. `parseMirrorInvocation` still accepts legacy `return await` programs; regression test pins both shapes. Thanks to @lzh-marble for the precise report and @fall2wish for PR #104.
|
|
18
|
+
- **Feat(client): hide the header status badge and the per-reply translate button (fixes #105).** Two opt-out switches — `showHeaderBadge` and `showTranslateAction` (default `true`) — are available in the settings panel, via `DSH_AGY_SHOW_HEADER_BADGE` / `DSH_AGY_SHOW_TRANSLATE_ACTION`, and through the guarded `/config` endpoint. The `/status` snapshot feeds them into a single `isUiVisible()` rule; only an explicit `false` hides anything, so a missing/older status payload never makes the UI blink out. On narrow viewports (≤680px) the badge text is hidden by CSS, leaving just the status dot. Translation cards, `/tsl` and auto-translate are unaffected. Covered by config-precedence, HTTP-contract, SSR, jsdom and four-locale dictionary tests.
|
|
19
|
+
- **Fix(pool): an explicit `home` argument now wins over `DSH_STATE_DIR`.** `defaultPoolDir(home)` used to return the parent process's state dir whenever the env var was set, breaking isolated-account path recovery (and the regression test in any environment that exports `DSH_STATE_DIR`). Production callers pass no argument and keep using the state dir.
|
|
20
|
+
- **Fix(transport): the 30s route deadline no longer kills slow translations (code-review blocker).** `/translate` fronts a full agy turn (`translateTimeoutMs` defaults to 120s, medium takes 20–45s); with the general deadline the host answered 504 first and the exactly-once `sendJson` then discarded the real 200. The route now uses `longRouteTimeout(cfg.translateTimeoutMs)` (job budget + 15s slack). `sendJson` swallows aborted-socket write errors so a late timeout callback cannot crash the host, and the manual quota-refresh dedupe entry now belongs to the real work (90s hard cap) instead of a 30s race that let a second `agy /usage` pipeline overlap. Fake-timer regression tests cover both.
|
|
21
|
+
- **Fix(models): a failed catalog discovery no longer self-excites `listModels` (fixes #106).** With an active pool account, every `listModels()` called `forceRefreshAndNotify()`, which unconditionally emitted `llm/adapters-updated`; DSH's browser answered by re-reading the model catalog, closing a `listModels → refresh → announce → listModels` loop. Discovery failure never populated the per-account catalog, so the loop never converged (one `agy models` spawn per cycle). Read paths now use the new throttled `ensureAccountCatalog()` (change-only announcements, per-account 60s retry stamps), and `forceRefreshAndNotify()` no longer announces a failed first discovery while keeping account-switch semantics. A regression test reproduces the browser feedback loop and proves 20 reads → 1 probe → 0 announcements. Thanks to @Rey50 for the analysis and offline reproduction.
|
|
22
|
+
- **Fix(runtime): the idle watchdog no longer kills a healthy child after a blocked host event loop.** libuv runs the timers phase before the poll phase, so an expired watchdog could fire before queued stdout/stderr from an actively-writing child was delivered — a false timeout that also made the two keep-alive tests flake under a fully parallel `npm test` (the Publish gate). One short grace (`WATCHDOG_GRACE_MS`, capped at the run's own idle budget) lets that output re-arm the watchdog; a deterministic test blocks the loop on purpose and asserts the run survives.
|
|
23
|
+
- **Fix(console): "同步中" no longer spins forever — every request now has a hard deadline.**
|
|
24
|
+
- Three independent causes stacked: host routes were bare `void (async () => …)()` IIFEs (a thrown dependency became an unhandled rejection and **no HTTP response at all**), `refresh-quota` awaited a 20s `agy /usage` spawn plus several REST calls before answering, and browser writes had no timeout (only the 3s status poll did).
|
|
25
|
+
- `runRoute()` in `respond.ts` is now the single guard for all 23 async routes: a rejection returns 500, a hang past `ROUTE_TIMEOUT_MS` returns 504, and `sendJson` is exactly-once so a late body cannot write a second head. No duplicated per-route error handling.
|
|
26
|
+
- `refresh-quota` answers immediately with `pending: true` and runs the refresh in the background (deduped per account, with its own deadline so a hung pipeline cannot block future syncs). The existing 3s status poll delivers fresh numbers; the toast now says "syncing" instead of claiming "refreshed".
|
|
27
|
+
- Client `postJson`/`getJson` share one `timedSignal()` helper and a `useBusyAction()` watchdog: no busy flag can outlive `WRITE_TIMEOUT_MS + 5s`. All timeouts live in `src/common/timeouts.ts`.
|
|
28
|
+
- **Fix(models): one source of truth for models & thinking levels — the DSH picker now matches agy exactly, with zero duplicate definitions.**
|
|
29
|
+
- **`xhigh` no longer leaks in as a fake model.** agy 1.5.7 lists `gemini-4-hydrogen-xhigh`; the fold only knew `low/medium/high`, so DSH showed **both** `Gemini 4 Hydrogen` and `Gemini 4 Hydrogen (XHigh)` as separate models. Effort suffixes now come from `agy --help` (`low|medium|high|xhigh|max`) and are matched longest-first, so Hydrogen is ONE model with four levels, `xhigh` rendered as **Extra** (agy's own picker label).
|
|
30
|
+
- **The catalog is agy's catalog.** Fallback lineup refreshed to `agy models` 1.5.7 (adds `gemini-4-hydrogen`, `gemini-pro-orchestrator-g1-pro`; drops the retired Claude 4.6 line and `gemini-4-carbon`, which agy lists as *Unavailable*). Folded entries are now emitted in `agy models`' own order, so Orchestrator sits third, not last. A regression test replays the verbatim 1.5.7 output and asserts the fallback line-up is byte-identical to discovery.
|
|
31
|
+
- **Zero-redundancy vocabulary.** `src/common/reasoning.ts` is now the only definition of the effort list/labels/suffix parsing; `src/common/model-lineup.ts` the only place concrete model ids live. The settings default-effort buttons, the translate/image effort dropdowns, the model-visibility chips and `agy_ask`'s help text are all derived from the live catalog — the four independent hardcoded `low/medium/high` copies are gone. The defaults dropdown now offers `Extra` because the catalog exposes it.
|
|
32
|
+
- `agy_ask`: a level written into the model word (`"gemini-4-hydrogen extra"`) is now honoured as `--effort` instead of being silently dropped.
|
|
33
|
+
- **Fix(release): publishing now retries transient registry failures and verifies the version actually lands.**
|
|
34
|
+
- v0.6.19 and v0.6.20 both got GitHub Releases that were never installable: a single transient `404 Not Found - PUT https://registry.npmjs.org/dsh-agy-link` killed `npm publish`, and nothing checked whether the version was readable. v0.6.21 succeeded minutes later with the same token.
|
|
35
|
+
- `scripts/publish-retry.mjs` now: skips an already-published version (idempotent re-runs), retries only transient errors with backoff, fails fast on fatal auth/version errors, and polls `npm view <name>@<version> version` after a successful publish. Slow registry propagation (2–6 min observed) is a WARNING, not a failed run; `PUBLISH_STRICT_VERIFY=1` makes it fatal for canaries. Publish workflow uses the wrapper.
|
|
36
|
+
- 8 unit tests cover classification, retry/exhaustion, fatal fast-fail, idempotency, and post-publish verification.
|
|
37
|
+
- **Fix(test): widen the watchdog keep-alive tests' timing margin.** Two `proxy-keychain` tests timed out at 800ms whenever a fully parallel `npm test` starved the parent event loop; they are a Publish gate, so the flake could block releases. Child activity now outlives a 2000ms idle budget with the same keep-alive semantics. Full suite: 1028/1028.
|
|
38
|
+
- **Feature: subagent activity streams live into DSH, and local file links open in the native right Sidebar.**
|
|
39
|
+
- **Live subagent progress.** New `src/features/subagent/tracker.ts` follows agy's `brain/<conversationId>/.system_generated/` tree while a run is active: it discovers every `subagents/*.json` descriptor (nesting included), then tails each worker's `transcript.jsonl` and emits one `stepKind: 'subagent'` event per tool call and per planner milestone. A 40-minute delegation no longer looks like a single frozen `invoke_subagent` card — the reasoning channel shows which file each worker reads or edits, which command it runs, which concept art it generates. Every emitted event also refreshes the idle watchdog, because a worker writing to disk is real progress.
|
|
40
|
+
- **Bounded tailing.** Each poll reads only the bytes appended since the previous one and buffers a half-written trailing line, so an hours-long transcript costs one small read per tick instead of a full re-read and re-parse.
|
|
41
|
+
- **Honest failure reporting.** Unexpected tracker errors go to the run logger instead of being swallowed; ordinary churn (a row still being written, a rotated file, a denied read) stays quiet.
|
|
42
|
+
- **Subagent cards.** `invoke_subagent` now reads the flat `Role`/`TypeName` argv agy actually sends, so the mirror presenter and the client card both title the call `Subagent: DeepInvestigator (Deep Game Investigator)`; `toolStepBrief` follows the same keys.
|
|
43
|
+
- **Feature: local file links open in DSH's native right Sidebar.**
|
|
44
|
+
- The provider rewrites `[label](file:///…)` to the plain local path before DSH renders the Markdown (keeping a `#L…` anchor in the form DSH already parses), so a delivered artifact becomes a native file chip whose click opens the right Sidebar — no plugin code involved.
|
|
45
|
+
- Replies that already rendered a raw `file://` anchor are intercepted by the client scanner: clicking the link text opens the same `dsh-resource://file/session/<sessionId>/<path>` address through `ctx.sidebarRight.openResource` (no extra badge — the link is the affordance; a `#L12` anchor rides as `params.line`, and a path inside the workspace travels relative, exactly as `fileAddressFor` builds it). If no preview tab type can claim that address (web/headless profiles) the click falls back to the OS opener instead of reporting a false success.
|
|
46
|
+
- Opening no longer depends on the file's shell association: `/plugins/agy-link/open` resolves `~` paths, `#L12-L40` anchors and Antigravity's `brain/` directories (now media search roots), so an artifact under `~/.dsh/agy-accounts/…` stops 404ing.
|
|
47
|
+
- **Fix(windows): opening a local file honours the registry's modern default app.** `cmd /c start` silently did nothing when the `.md` association pointed at an uninstalled program; the opener now tries PowerShell `Start-Process` first (the ShellExecute path that respects the user's current choice, e.g. VS Code), then `code`/`notepad` for text files, then reveals the file in Explorer, and passes `/select,<path>` as the single argument Explorer expects.
|
|
48
|
+
- **Fix(test): the full suite is green on Windows.** Three cases redirected `HOME` alone although `os.homedir()` reads `USERPROFILE` there — they now redirect both (and no longer risk reading the developer's live token file); a path assertion compared `/`-separated prefixes against `path.join` output; the symlink-escape case is skipped where symlink creation is not permitted. Full suite: 1035/1035 (1 environment skip).
|
|
49
|
+
|
|
50
|
+
### 中文
|
|
51
|
+
|
|
52
|
+
- **修复(镜像, ptc):移除重放程序的顶层 `return`(修复 #103)。** 代码 / PTC 模式下生成的 `run_code` 包装脚本是 `return await tools['agy_tool'](...)`,而 DSH 的 REPL 语法校验不接受顶层 `return`(报 `Return statement is not allowed here`),导致每个 agy 工具步骤的镜像回放都失败。现改为以 `await tools['agy_tool'](...)` 作为末表达式,在 REPL 与函数体两种运行时下都能求值;解析器仍兼容旧的 `return await` 脚本,两种形态均有回归测试。感谢 @lzh-marble 的精确定位与 @fall2wish 的 PR #104。
|
|
53
|
+
- **新增(客户端):可隐藏会话头状态徽标与单条翻译按钮(修复 #105)。** 设置页新增 `showHeaderBadge`、`showTranslateAction` 两个开关(默认开启),同时支持 `DSH_AGY_SHOW_HEADER_BADGE` / `DSH_AGY_SHOW_TRANSLATE_ACTION` 环境变量与受白名单保护的 `/config` 接口。状态快照经统一的 `isUiVisible()` 规则下发:只有显式 `false` 才隐藏,状态未到达或旧宿主没有该字段时保持可见,不会闪退。窄屏(≤680px)下徽标文字自动隐藏、只留状态圆点。译文卡片、`/tsl` 与自动翻译功能均不受影响。配置优先级、HTTP 契约、SSR、jsdom 与四语言字典均有对应测试。
|
|
54
|
+
- **修复(号池):显式传入的 `home` 优先于 `DSH_STATE_DIR`。** 此前只要环境变量存在,`defaultPoolDir(home)` 就忽略参数直接返回父进程状态目录,破坏了隔离子账号的路径恢复逻辑(在导出该变量的环境中也会让回归测试失败)。生产调用不传参数,行为不变。
|
|
55
|
+
- **修复(传输层):30s 通用路由超时不再掐断慢速翻译(代码评审阻断项)。** `/translate` 承载一整轮 agy 调用(`translateTimeoutMs` 缺省 120s,medium 实测 20–45s);套用通用 deadline 会先回 504,而 `sendJson` 的恰好一次语义会丢弃随后真正的 200 —— 「译成人话」在慢速档位必然失败。现改为 `longRouteTimeout(cfg.translateTimeoutMs)`(任务预算 + 15s 宽限)。`sendJson` 同时吞掉客户端断连时的写异常,避免迟到的超时回调拖垮宿主;手动额度刷新的去重条目改由真实工作持有(90s 硬上限),不再被 30s 竞速提前释放而让第二次 `agy /usage` 叠加。两处均有假时钟回归测试。
|
|
56
|
+
- **修复(模型):目录发现失败时不再让 `listModels` 自激循环(修复 #106)。** 存在当前池账号时,每次 `listModels()` 都会调用无条件广播的 `forceRefreshAndNotify()` → 发出 `llm/adapters-updated` → DSH 浏览器重读模型目录 → 再次 `listModels`,形成闭环;而发现失败不会写入该账号的目录缓存,循环永不收敛,每圈还会 spawn 一次 `agy models`。读路径现改走带节流的 `ensureAccountCatalog()`(仅在内容真正变化时广播,按账号记录 60s 重试时间戳),`forceRefreshAndNotify()` 也不再为失败的首次发现广播,同时保留切号时的广播语义。新增回归测试复刻浏览器反馈环,验证 20 次读取 → 1 次探测 → 0 次广播。感谢 @Rey50 的分析与离线复现。
|
|
57
|
+
- **修复(运行时):宿主事件循环被阻塞后,空闲看门狗不再误杀仍在输出的子进程。** libuv 的 timers 阶段先于 poll 阶段,看门狗到期时可能子进程已写入的 stdout/stderr 还排在管道里没被投递,于是被误判为超时;满并发 `npm test` 下这会让两项保活用例偶发失败、挡住发布门禁。现给一次短暂宽限(`WATCHDOG_GRACE_MS`,不超过本次运行的空闲预算),让排队数据重新喂狗;新增确定性测试主动阻塞事件循环并断言运行不超时。
|
|
58
|
+
- **修复(控制台):「同步中」不再无限转圈——所有请求现在都有硬超时。**
|
|
59
|
+
- 三个原因叠加:宿主路由都是裸的 `void (async () => …)()`(依赖抛错会变成未处理的 rejection,**HTTP 永远不响应**);`refresh-quota` 要等 20s 的 `agy /usage` 子进程加若干 REST 调用才返回;而浏览器端写请求没有超时(只有 3s 的状态轮询有)。
|
|
60
|
+
- `respond.ts` 新增 `runRoute()`,作为全部 23 条异步路由的统一守卫:抛错返回 500、超过 `ROUTE_TIMEOUT_MS` 挂起返回 504,`sendJson` 保证只写一次(超时的迟到响应不会二次写 head)。不再有逐路由重复的错误处理。
|
|
61
|
+
- `refresh-quota` 立即返回 `pending: true`,刷新放到后台执行(按账号去重,并带独立超时,避免挂死的流水线永久挡住后续同步)。现有 3s 状态轮询会自动带出最新额度;提示文案改为「正在同步」而不是谎称「已刷新」。
|
|
62
|
+
- 客户端 `postJson`/`getJson` 共用 `timedSignal()`,并有 `useBusyAction()` 兜底:任何 busy 状态都不会超过 `WRITE_TIMEOUT_MS + 5s`。所有超时常量集中在 `src/common/timeouts.ts`。
|
|
63
|
+
- **修复(模型):模型与思考等级收敛为单一事实源——DSH 的模型列表现在与 agy 完全一致,且不再有重复定义。**
|
|
64
|
+
- **`xhigh` 不再被当成独立模型。** agy 1.5.7 列出的是 `gemini-4-hydrogen-xhigh`,而旧的折叠逻辑只认识 `low/medium/high`,于是 DSH 里同时出现了 `Gemini 4 Hydrogen` 和 `Gemini 4 Hydrogen (XHigh)` 两个模型。档位词表现已取自 `agy --help`(`low|medium|high|xhigh|max`)并按**后缀长度降序**匹配:Hydrogen 就是**一个**模型、带四个档位,`xhigh` 显示为 **Extra**(与 agy 自己的菜单一致)。
|
|
65
|
+
- **目录即 agy 目录。** 离线兜底阵容同步到 `agy models` 1.5.7(新增 `gemini-4-hydrogen`、`gemini-pro-orchestrator-g1-pro`;移除已下线的 Claude 4.6 线与 agy 标记为 *Unavailable* 的 `gemini-4-carbon`)。折叠后的条目也按 `agy models` 的原始顺序输出,Orchestrator 因此回到第三位而不是垫底。新增回归测试逐字回放 1.5.7 输出,并断言兜底阵容与真实发现结果完全一致。
|
|
66
|
+
- **词表零冗余。** `src/common/reasoning.ts` 成为档位列表/显示名/后缀解析的唯一定义;`src/common/model-lineup.ts` 成为具体模型 id 的唯一出处。设置页“默认思考强度”按钮、翻译/生图档位下拉、模型显示 chips 与 `agy_ask` 帮助文本全部由实时目录派生——原来四处各自硬编码的 `low/medium/high` 已全部删除;目录里有 `xhigh`,下拉框就自动多出「Extra」。
|
|
67
|
+
- `agy_ask`:写在模型词里的档位(如 `"gemini-4-hydrogen extra"`)现在会被识别为 `--effort`,不再被静默丢弃。
|
|
68
|
+
- **修复(发布):发布遇瞬态故障会自动重试,并校验版本真的可用。**
|
|
69
|
+
- 0.6.19/0.6.20 都建了 GitHub Release 却装不上:一次瞬态 `404 Not Found - PUT registry.npmjs.org` 直接打断 `npm publish`,且没有任何环节检查版本是否可读;0.6.21 用同一 token 几分钟后就成功了。
|
|
70
|
+
- `scripts/publish-retry.mjs`:已发布则跳过(可重复运行)、只对瞬态错误退避重试、鉴权/版本类致命错误立即失败,发布成功后轮询 `npm view` 确认。registry 传播慢(实测 2–6 分钟)只告警不误判失败,canary 可用 `PUBLISH_STRICT_VERIFY=1` 严格化。
|
|
71
|
+
- 8 项单测覆盖错误分类、重试/耗尽、致命快失败、幂等与发布后校验。
|
|
72
|
+
- **修复(测试):加宽 watchdog 保活用例的计时余量。** 两项 `proxy-keychain` 用例在满并发下会被父进程事件循环饿死导致 800ms 误超时;它们是发布门禁,flaky 会挡住发版。现子进程活动长于 2000ms 空闲预算且语义不变;全量 1028/1028。
|
|
73
|
+
|
|
74
|
+
- **新功能:子代理活动实时流式呈现,本地文件链接直接在 DSH 原生右侧边栏打开。**
|
|
75
|
+
- **子代理实时进度。** 新增 `src/features/subagent/tracker.ts`:运行期间跟随 agy 的 `brain/<会话ID>/.system_generated/` 目录树,自动发现每个 `subagents/*.json` 描述文件(含多层嵌套),并增量读取各专员的 `transcript.jsonl`;每次工具调用与每条规划里程碑都会产生一条 `stepKind: 'subagent'` 事件。40 分钟的委派不再只显示一张冻结的 `invoke_subagent` 卡片——思考区会实时显示专员正在读/改哪个文件、执行什么命令、生成哪张概念图。每条事件同时刷新空闲看门狗,因为专员在磁盘上写进度就是真实进展。
|
|
76
|
+
- **增量读取。** 每次轮询只读取上次之后新增的字节,并缓存未写完的最后一行;再长的会话记录每跳只付一次小读取,而不是整篇重读重解析。
|
|
77
|
+
- **失败不再静默。** 非预期的跟踪错误写入运行日志;正常抖动(行还没写完、文件被替换、读取被拒)保持安静。
|
|
78
|
+
- **子代理卡片。** `invoke_subagent` 现在读取 agy 实际发送的扁平 `Role`/`TypeName` 参数,镜像卡片与客户端卡片都显示 `Subagent: DeepInvestigator (Deep Game Investigator)`;`toolStepBrief` 同步。
|
|
79
|
+
- **新功能:本地文件链接在 DSH 原生右侧边栏打开。**
|
|
80
|
+
- Provider 在交给 DSH 渲染前把 `[label](file:///…)` 改写为纯本地路径(行号锚点保留为 DSH 已支持的 `#L…` 形式),于是交付件直接渲染成原生文件 chip,点击即打开右侧边栏,全程无需插件脚本。
|
|
81
|
+
- 已经渲染成裸 `file://` 锚点的历史回复,由客户端扫描器接管点击:点击链接文字即通过 `ctx.sidebarRight.openResource` 打开同一个 `dsh-resource://file/session/<会话ID>/<路径>` 地址(不再挂额外胶囊——链接文字本身就是入口;`#L12` 锚点以 `params.line` 传递,工作区内路径按 `fileAddressFor` 的规则转为相对路径)。若当前配置没有任何预览类型能接收该地址(web/headless 配置),点击回退到系统打开,而不是谎报成功。
|
|
82
|
+
- 打开不再依赖文件关联:`/plugins/agy-link/open` 现在能解析 `~` 路径、`#L12-L40` 锚点与 Antigravity 的 `brain/` 目录(已并入媒体检索根),`~/.dsh/agy-accounts/…` 下的交付件不再 404。
|
|
83
|
+
- **修复(Windows):用系统现代默认程序打开本地文件。** 当 `.md` 关联指向一个已卸载的程序时,`cmd /c start` 会静默失败;现在优先用 PowerShell `Start-Process`(ShellExecute 路径,尊重用户当前选择,例如 VS Code),文本类文件再回退 `code`/`notepad`,最后回退到在资源管理器中定位,并把 `/select,<路径>` 作为 Explorer 期望的单个参数传入。
|
|
84
|
+
- **修复(测试):Windows 下全量回归全绿。** 三处用例只重定向了 `HOME`,而 Windows 的 `os.homedir()` 读的是 `USERPROFILE`——现在两个都重定向(也避免误读开发者真实 token 文件);一处路径断言把 `/` 前缀与 `path.join` 的结果比较;符号链接逃逸用例在不允许创建符号链接的环境下跳过。全量:1035/1035(1 项环境跳过)。
|
|
85
|
+
|
|
3
86
|
## 0.6.21 (2026-11-12)
|
|
4
87
|
|
|
5
88
|
### English
|
package/README.md
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
- 🔄 **顺序耗尽故障转移 (Sequential Drain)**:当前账号额度用尽(触发 429 限流或 5h / 周额度耗尽)时,系统**自动平滑接力至下一个可用账号**,对话完全不中断!
|
|
63
63
|
- 🕰 **额度到期优先轮换 (Quota-Expiry-First)**:多个账号可用时,优先切换到**重置窗口最早到期**的账号,把"还剩很久才重置"的额度留给后面,整体池化利用率最大化。
|
|
64
64
|
- 🧠 **网络抖动智能甄别 (Jitter-Safe Auth)**:代理抖动导致的 keyring 鉴权超时会被自动识别为**可重试的网络错误**而非"登录失效"——基于 agy 本次运行日志的 `keyringAuth` 传输证据精准分类,且粘性"需重新登录"隔离需二次确认,健康账号绝不会被误标。
|
|
65
|
-
- 📊 **官方多 Bucket 配额监控 (Multi-Bucket Quota)**:直接调用 Antigravity 官方专用的 `v1internal:retrieveUserQuotaSummary` 接口,同时展示 **5小时滚动额度** 与 **7天周额度**。agy 1.5.5 起 Argon
|
|
65
|
+
- 📊 **官方多 Bucket 配额监控 (Multi-Bucket Quota)**:直接调用 Antigravity 官方专用的 `v1internal:retrieveUserQuotaSummary` 接口,同时展示 **5小时滚动额度** 与 **7天周额度**。agy 1.5.5 起 Argon 已并入普通 Gemini 池(`/usage` 只返回 Gemini / Claude & GPT 两组),因此不再单独显示 Argon 行;只有服务端仍上报 `Gemini 4 Argon` 独立组时(旧版后端或特定套餐)才额外显示该周额度池。
|
|
66
66
|
- 🔀 **手动切换当前账号 (Manual Switch-Active)**:控制台卡片一键「设为当前使用」,即刻把调度指针钉到指定账号。
|
|
67
67
|
- 🔑 **GUI 内浏览器免粘贴登录 (In-GUI Zero-Paste OAuth)**:点击「➕ 添加账号」自动调起系统浏览器,本地回环监听自动捕获授权凭证,**全程无需手动复制粘贴授权码**。
|
|
68
68
|
- 🎨 **多主题高对比度自适应 (Light & Dark Themes)**:原生适配 DSH 浅色/深色主题,告别发暗发灰与看不清文字,UI 视觉清晰锐利。
|