dsh-agy-link 0.5.6 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## 0.5.6 (2026-11-05)
4
18
 
5
19
  ### English
package/dist/index.js CHANGED
@@ -30580,7 +30580,7 @@ function parseEffortUnsupported(text) {
30580
30580
  if (text === "" || !/--effort/i.test(text)) return null;
30581
30581
  const named = text.match(/--effort(?:\s+"?[A-Za-z0-9._-]+"?)?\s+is not supported for model\s+"?([A-Za-z0-9._:\/-]+)"?/i);
30582
30582
  if (named !== null && named[1] !== void 0 && named[1] !== "") return named[1];
30583
- 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)) {
30584
30584
  const model = text.match(/--model\s+"?([A-Za-z0-9._:\/-]+)"?/i);
30585
30585
  if (model !== null && model[1] !== void 0 && model[1] !== "") return model[1];
30586
30586
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.5.6",
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",