dsh-agy-link 0.5.5 → 0.5.7
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 +34 -0
- package/dist/client.js +2 -2
- package/dist/index.js +27 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.7 (2026-11-05)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **Fix(adapter): a generic agy CLI failure no longer blacklists a model as effort-unsupported.** (thanks @skyzzq, #73)
|
|
8
|
+
- `parseEffortUnsupported()` had a fallback branch that learned ANY `invalid model selection … --effort` echo. agy echoes the whole invocation on unrelated failures (`…): quota exhausted`, `rate limit exceeded`, TLS/auth jitter), so one quota blip permanently recorded the model in `effort-unsupported.json`; DSH core then threw `model … does not support reasoning effort` on every later turn. The fallback now requires the error text itself to say effort is unsupported; adds regression cases for quota/rate-limit echoes.
|
|
9
|
+
|
|
10
|
+
### 中文
|
|
11
|
+
|
|
12
|
+
- **修复(adapter):agy 的普通 CLI 失败不再把模型误记为「不支持 effort」。**(感谢 @skyzzq,#73)
|
|
13
|
+
- `parseEffortUnsupported()` 的回退分支会对任何包含 `invalid model selection … --effort` 的报错做学习。agy 在额度耗尽/限流/TLS 抖动时会回显整条调用(`…): quota exhausted`、`rate limit exceeded`),于是一次抖动就把模型永久写进 `effort-unsupported.json`,随后 DSH 核心对之后每一轮都抛 `model … does not support reasoning effort`。现回退分支要求错误文本自身明确说明 effort 不受支持;补充额度/限流回显的回归用例。
|
|
14
|
+
|
|
15
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.5.6...v0.5.7
|
|
16
|
+
|
|
17
|
+
## 0.5.6 (2026-11-05)
|
|
18
|
+
|
|
19
|
+
### English
|
|
20
|
+
|
|
21
|
+
- **Fix(host): a proxy blip is classified NETWORK, not AUTH (issue #71).**
|
|
22
|
+
- `runLogText` reached only the narrow `looksLikeAuthVerificationJitter` set. agy 1.4.12 logs a two-second proxy flap as `keyringAuth: token validation failed due to network error (token may still be valid)`, which only the wide `looksLikeNetworkError` matches — so `transportFailure` was false and a healthy account was quarantined as `AUTH`. The decision now lives in a pure, tested `isTransportFailure({…})` seam that feeds the same evidence (raw error, auth text, stderr, stdout head, run log) to both matchers; the exact 1.4.12 log is a regression test.
|
|
23
|
+
|
|
24
|
+
- **Perf(client): stop re-sweeping expanded think rows and avoid forced layout.** (thanks @Ronnoc, #72)
|
|
25
|
+
- `scanThinkingRows()` now queries `div[data-variant="think"]:not([data-agy-expanded="true"])`, so already-handled turns are filtered by the selector engine instead of re-walked on every mutation. `tryExpandThinkRow()` checks `aria-expanded`/`data-expanded`/hidden-display before reading `body.clientHeight`, removing a forced synchronous layout from the critical path in long conversations.
|
|
26
|
+
|
|
27
|
+
### 中文
|
|
28
|
+
|
|
29
|
+
- **修复(host):代理抖动判为 NETWORK 而非 AUTH(issue #71)。**
|
|
30
|
+
- `runLogText` 只喂给了窄匹配 `looksLikeAuthVerificationJitter`。agy 1.4.12 会把两秒的代理抖动记成 `keyringAuth: token validation failed due to network error (token may still be valid)`,而只有宽匹配 `looksLikeNetworkError` 认这句 → `transportFailure` 为 false,健康账号被当作 `AUTH` 隔离。现把判断收敛到纯函数、可测试的 `isTransportFailure({…})`(原始错误、auth 文本、stderr、stdout 头部、运行日志统一输入两个匹配器),并把真实 1.4.12 日志作为回归用例。
|
|
31
|
+
|
|
32
|
+
- **性能(client):不再重复扫描已展开的思考行,且避免强制重排。**(感谢 @Ronnoc,#72)
|
|
33
|
+
- `scanThinkingRows()` 改为查询 `div[data-variant="think"]:not([data-agy-expanded="true"])`,已处理的轮次由选择器引擎过滤;`tryExpandThinkRow()` 先查 `aria-expanded`/`data-expanded`/隐藏样式,再读 `body.clientHeight`,把强制同步布局移出长会话关键路径。
|
|
34
|
+
|
|
35
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.5.5...v0.5.6
|
|
36
|
+
|
|
3
37
|
## 0.5.5 (2026-11-05)
|
|
4
38
|
|
|
5
39
|
### English
|
package/dist/client.js
CHANGED
|
@@ -3917,7 +3917,7 @@ div[data-variant="think"] [class*="thinkBody"] {
|
|
|
3917
3917
|
});
|
|
3918
3918
|
}
|
|
3919
3919
|
if (isInteractionLocked()) return;
|
|
3920
|
-
if (body.clientHeight > 8) {
|
|
3920
|
+
if (toggle.getAttribute("aria-expanded") === "true" || toggle.dataset.expanded === "true" || root.dataset.expanded === "true" || !body.hidden && body.style.display !== "none" && body.clientHeight > 8) {
|
|
3921
3921
|
handledTurns.add(turnKey);
|
|
3922
3922
|
root.dataset.agyExpanded = "true";
|
|
3923
3923
|
return;
|
|
@@ -3931,7 +3931,7 @@ div[data-variant="think"] [class*="thinkBody"] {
|
|
|
3931
3931
|
function scanThinkingRows() {
|
|
3932
3932
|
if (typeof document === "undefined") return;
|
|
3933
3933
|
if (isInteractionLocked()) return;
|
|
3934
|
-
const rows = document.querySelectorAll("div[data-variant=\"think\"]");
|
|
3934
|
+
const rows = document.querySelectorAll("div[data-variant=\"think\"]:not([data-agy-expanded=\"true\"])");
|
|
3935
3935
|
for (let i = 0; i < rows.length; i++) {
|
|
3936
3936
|
const row = rows[i];
|
|
3937
3937
|
if (row) tryExpandThinkRow(row);
|
package/dist/index.js
CHANGED
|
@@ -184,6 +184,26 @@ function looksLikeNetworkError(message) {
|
|
|
184
184
|
return /dial tcp|fetch failed|econn(?:refused|reset|aborted)|enotfound|ehostunreach|enetunreach|socket hang up|getaddrinfo|bad gateway|service unavailable|unexpected eof|\beof\b|tls handshake timeout|i\/o timeout|network (?:error|is unreachable)|no route to host|connection reset|context deadline exceeded|temporary failure in name resolution|proxyconnect|token validation failed|validate (?:the )?token|silent auth failed/i.test(message);
|
|
185
185
|
}
|
|
186
186
|
/**
|
|
187
|
+
* Decide AUTH vs NETWORK for one failed agy run.
|
|
188
|
+
*
|
|
189
|
+
* Both the wide transport regex and the narrow keyring-jitter regex must see
|
|
190
|
+
* the SAME evidence. The run log used to reach only the narrow one, so a proxy
|
|
191
|
+
* blip that agy 1.4.12 logs as "keyringAuth: token validation failed due to
|
|
192
|
+
* network error" was classified AUTH and quarantined a healthy account
|
|
193
|
+
* (issue #71). Exported so the decision stays a pure, testable seam.
|
|
194
|
+
*/
|
|
195
|
+
function isTransportFailure(input) {
|
|
196
|
+
const runLogText = input.runLogText ?? "";
|
|
197
|
+
if (looksLikeAuthVerificationJitter(runLogText)) return true;
|
|
198
|
+
return looksLikeNetworkError([
|
|
199
|
+
input.rawErrText,
|
|
200
|
+
input.authFailureText ?? "",
|
|
201
|
+
input.stderrTail ?? "",
|
|
202
|
+
(input.stdoutHead ?? "").slice(0, 4e3),
|
|
203
|
+
runLogText
|
|
204
|
+
].filter(Boolean).join(" "));
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
187
207
|
* Backoff schedule for CONSECUTIVE transport (NETWORK) failures.
|
|
188
208
|
*
|
|
189
209
|
* DSH's generic backoff starts at 2s and doubles, which spends the whole retry
|
|
@@ -30560,7 +30580,7 @@ function parseEffortUnsupported(text) {
|
|
|
30560
30580
|
if (text === "" || !/--effort/i.test(text)) return null;
|
|
30561
30581
|
const named = text.match(/--effort(?:\s+"?[A-Za-z0-9._-]+"?)?\s+is not supported for model\s+"?([A-Za-z0-9._:\/-]+)"?/i);
|
|
30562
30582
|
if (named !== null && named[1] !== void 0 && named[1] !== "") return named[1];
|
|
30563
|
-
if (/invalid model selection/i.test(text)) {
|
|
30583
|
+
if (/invalid model selection/i.test(text) && /--effort[^\n:]*(?:is not supported|not supported|unsupported)/i.test(text)) {
|
|
30564
30584
|
const model = text.match(/--model\s+"?([A-Za-z0-9._:\/-]+)"?/i);
|
|
30565
30585
|
if (model !== null && model[1] !== void 0 && model[1] !== "") return model[1];
|
|
30566
30586
|
}
|
|
@@ -31872,12 +31892,13 @@ var AgyAdapter = class AgyAdapter extends LlmAdapter {
|
|
|
31872
31892
|
const isRateLimit = looksLikeRateLimit(rawErrText);
|
|
31873
31893
|
const runLogText = readAgyRunLogText(runLogHome, runLogsBefore);
|
|
31874
31894
|
const keyringJitter = looksLikeAuthVerificationJitter(runLogText);
|
|
31875
|
-
const transportFailure =
|
|
31895
|
+
const transportFailure = isTransportFailure({
|
|
31876
31896
|
rawErrText,
|
|
31877
|
-
parser.stats.authFailureText ?? "",
|
|
31878
|
-
outcome.stderrTail,
|
|
31879
|
-
outcome.stdout
|
|
31880
|
-
|
|
31897
|
+
authFailureText: parser.stats.authFailureText ?? "",
|
|
31898
|
+
stderrTail: outcome.stderrTail,
|
|
31899
|
+
stdoutHead: outcome.stdout,
|
|
31900
|
+
runLogText
|
|
31901
|
+
});
|
|
31881
31902
|
const silentTimeout = outcome.timedOut === true && outcome.stdout.trim() === "";
|
|
31882
31903
|
let failure = null;
|
|
31883
31904
|
if (outcome.aborted) failure = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agy-link",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
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",
|