dsh-agy-link 0.5.5 → 0.5.6
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 +20 -0
- package/dist/client.js +2 -2
- package/dist/index.js +26 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.6 (2026-11-05)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **Fix(host): a proxy blip is classified NETWORK, not AUTH (issue #71).**
|
|
8
|
+
- `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.
|
|
9
|
+
|
|
10
|
+
- **Perf(client): stop re-sweeping expanded think rows and avoid forced layout.** (thanks @Ronnoc, #72)
|
|
11
|
+
- `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.
|
|
12
|
+
|
|
13
|
+
### 中文
|
|
14
|
+
|
|
15
|
+
- **修复(host):代理抖动判为 NETWORK 而非 AUTH(issue #71)。**
|
|
16
|
+
- `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 日志作为回归用例。
|
|
17
|
+
|
|
18
|
+
- **性能(client):不再重复扫描已展开的思考行,且避免强制重排。**(感谢 @Ronnoc,#72)
|
|
19
|
+
- `scanThinkingRows()` 改为查询 `div[data-variant="think"]:not([data-agy-expanded="true"])`,已处理的轮次由选择器引擎过滤;`tryExpandThinkRow()` 先查 `aria-expanded`/`data-expanded`/隐藏样式,再读 `body.clientHeight`,把强制同步布局移出长会话关键路径。
|
|
20
|
+
|
|
21
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.5.5...v0.5.6
|
|
22
|
+
|
|
3
23
|
## 0.5.5 (2026-11-05)
|
|
4
24
|
|
|
5
25
|
### 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
|
|
@@ -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.6",
|
|
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",
|