dsh-agy-link 0.6.14 → 0.6.15
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 +18 -0
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.15 (2026-11-10)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **Fix(catalog): `listModels()` is side-effect free — the `agy models` feedback loop is gone (no more 100% CPU / fan spin / UI flashing).**
|
|
8
|
+
- `listModels()` kicked off `catalog.refreshIfNeeded()`, and a refresh that discovered models emits `llm/adapters-updated` — which makes DSH call `listModels()` again. Each round could spawn `agy models`, producing a self-sustaining probe loop until the TTL happened to suppress it (and for an account with no cached catalog the TTL guards were skipped entirely).
|
|
9
|
+
- Listing is now pure: it reads the cached catalog only. Freshness is owned by the startup probe, a new **30-minute periodic TTL refresh** (one probe per window at most), account switches (`forceRefreshAndNotify`) and the explicit `/agy` refresh paths.
|
|
10
|
+
- Test asserts two consecutive `listModels()` calls spawn zero discovery processes even with a zero TTL.
|
|
11
|
+
|
|
12
|
+
### 中文
|
|
13
|
+
|
|
14
|
+
- **修复(catalog):`listModels()` 无副作用——`agy models` 反馈循环消失(不再 100% CPU / 风扇狂转 / UI 闪烁)。**
|
|
15
|
+
- 原实现里 `listModels()` 会触发 `catalog.refreshIfNeeded()`,而刷新发现新模型时会发 `llm/adapters-updated`,DSH 收到后又调用 `listModels()`——每轮都可能 spawn `agy models`,形成自维持的探测循环(对「尚无缓存目录」的账号更是完全跳过 TTL 守卫)。
|
|
16
|
+
- 现在列举是纯读缓存;新鲜度由启动探测、新增的**每 30 分钟 TTL 刷新**(每窗口最多一次探测)、切换账号(`forceRefreshAndNotify`)与显式 `/agy` 刷新负责。
|
|
17
|
+
- 测试断言:即使 TTL=0,连续两次 `listModels()` 也不会 spawn 任何探测进程。
|
|
18
|
+
|
|
19
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.6.14...v0.6.15
|
|
20
|
+
|
|
3
21
|
## 0.6.14 (2026-11-10)
|
|
4
22
|
|
|
5
23
|
### English
|
package/dist/index.js
CHANGED
|
@@ -31270,7 +31270,6 @@ var AgyAdapter = class AgyAdapter extends LlmAdapter {
|
|
|
31270
31270
|
}
|
|
31271
31271
|
async listModels(_provider) {
|
|
31272
31272
|
const activeAcc = this.getActiveAccount();
|
|
31273
|
-
this.deps.catalog.refreshIfNeeded(activeAcc?.id);
|
|
31274
31273
|
const cfg = this.deps.getConfig();
|
|
31275
31274
|
const cat = this.deps.catalog.get(activeAcc?.id);
|
|
31276
31275
|
let models = cat.models;
|
|
@@ -37365,6 +37364,11 @@ function apply(ctx, entryConfig = {}) {
|
|
|
37365
37364
|
}, 4e3);
|
|
37366
37365
|
bootProbeTimer.unref?.();
|
|
37367
37366
|
ctx.effect(() => () => clearTimeout(bootProbeTimer));
|
|
37367
|
+
const catalogPollTimer = setInterval(() => {
|
|
37368
|
+
catalog.refreshIfNeeded().catch(() => void 0);
|
|
37369
|
+
}, 18e5);
|
|
37370
|
+
catalogPollTimer.unref?.();
|
|
37371
|
+
ctx.effect(() => () => clearInterval(catalogPollTimer));
|
|
37368
37372
|
if (getConfig().enabled) try {
|
|
37369
37373
|
ctx.llm.registerAdapter([PROVIDER_ID], adapter);
|
|
37370
37374
|
log("registered provider route: antigravity");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agy-link",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
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",
|