dsh-agy-link 0.6.11 → 0.6.13

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,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.13 (2026-11-10)
4
+
5
+ ### English
6
+
7
+ - **Fix(models/warmup): follow the 5.5 migration everywhere — no shipped default points at the retired Claude 4.6 any more.**
8
+ - Found during the 5-day architecture review: after 0.6.11/0.6.12 moved the catalog to Claude 5.5, four places still pinned 4.6 — the `warmupModels` config default (`types.ts`), the warmup family fallback and its internal default list (`warmup.ts`), and the cross-family failover map (`adapter.ts`). With 4.6 retired upstream, an auto-warmup probe or a family failover could therefore target a model that no longer exists.
9
+ - All four now use `claude-sonnet-5-5`; legacy accounts still get their own 4.6 picked from `quotas.anthropic.models` first (per-account resolution from #88), so nothing regresses for older plans.
10
+ - Bare name aliases (`claude-sonnet`, `claude-opus`) now resolve to the 5.5 line, while explicit `claude-*-4.x` names keep resolving to 4.6 (legacy sessions untouched).
11
+ - Tests: warmup default + anthropic fallback + alias resolution; README/CONFIGURATION warmup rows and the `/tsl` example updated.
12
+
13
+ ### 中文
14
+
15
+ - **修复(models/warmup):处处跟上 5.5 迁移——不再有任何出厂默认指向已下线的 Claude 4.6。**
16
+ - 5 天架构 review 发现:0.6.11/0.6.12 把目录迁到 Claude 5.5 后,仍有四处钉着 4.6——`warmupModels` 配置默认值(`types.ts`)、预热族回退与内部默认列表(`warmup.ts`)、跨族失败转移映射(`adapter.ts`)。4.6 上游已退役,自动预热或跨族回退可能打到一个不存在的模型。
17
+ - 四处统一改为 `claude-sonnet-5-5`;旧账号仍会**优先**从 `quotas.anthropic.models` 里取自己的 4.6(#88 的按账号解析),不会回退。
18
+ - 裸名别名(`claude-sonnet`、`claude-opus`)解析到 5.5 世代;显式 `claude-*-4.x` 仍解析到 4.6(不影响历史会话)。
19
+ - 测试:预热默认值、anthropic 回退、别名解析;README/CONFIGURATION 的预热行与 `/tsl` 示例同步更新。
20
+
21
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.6.12...v0.6.13
22
+
23
+ ## 0.6.12 (2026-11-09)
24
+
25
+ ### English
26
+
27
+ - **Fix(models): enable reasoning effort for Claude 5.5 — verified against agy 1.5.3.**
28
+ - `agy models` lists Claude 5.5 only as tiered slugs (`claude-sonnet-5-5-low/medium/high`), and agy **rejects a tiered slug combined with `--effort`** (`--model claude-sonnet-5-5-low conflicts with --effort=high`), while the **base slug accepts it** (`--model claude-sonnet-5-5 --effort high` → works).
29
+ - Therefore the catalog now folds the Claude 5.5 tiers into one entry with `efforts: low|medium|high`, `resolveModelSlug()` strips a tiered Claude 5.5 slug back to its base (so a stored tiered id can never collide with the flag), and `buildArgs` passes `--effort` for a base Claude 5.5 model.
30
+ - Claude 4.6 keeps its documented no-effort behaviour (it is no longer in the live catalog, and was not verified).
31
+
32
+ ### 中文
33
+
34
+ - **修复(models):Claude 5.5 支持推理档位 —— 已用本机 agy 1.5.3 实测确认。**
35
+ - `agy models` 只列出带档位的 slug(`claude-sonnet-5-5-low/medium/high`),而 agy 对「带档位 slug + `--effort`」会直接报冲突(`--model claude-sonnet-5-5-low conflicts with --effort=high`),**base slug 则接受**(`--model claude-sonnet-5-5 --effort high` 正常返回)。
36
+ - 因此目录把 5.5 的档位折叠为一个条目(`efforts: low|medium|high`);`resolveModelSlug()` 会把带档位的 5.5 slug 还原成 base(避免与 `--effort` 冲突);`buildArgs` 对 base 的 Claude 5.5 传 `--effort`。
37
+ - Claude 4.6 维持原有「不传 effort」行为(已不在在线目录,也未验证)。
38
+
39
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.6.11...v0.6.12
40
+
3
41
  ## 0.6.11 (2026-11-09)
4
42
 
5
43
  ### English
package/README.md CHANGED
@@ -168,7 +168,7 @@ dsh plugin --profile web add dsh-agy-link
168
168
  | `proxyUrl` | `DSH_AGY_PROXY_URL` | 空字符串 | 全局代理 URL;若在控制台中单独配置了代理,优先使用账号独立代理 |
169
169
  | `suppressAgyAutoUpdate` | `DSH_AGY_SUPPRESS_AUTOUPDATE` | Windows `true`,其他平台 `false` | 每次 spawn 前刷新 agy 的更新检查时间戳,阻断 `--bg-updater` 子进程链(Windows 闪窗根因)。关闭后 agy 恢复自动更新检查 |
170
170
  | `autoWarmup` | `DSH_AGY_AUTO_WARMUP` | `false` | 7 天周配额自动预热(opt-in):周额度到达重置时间或冷启动时发送极小探活请求,提前激活 7 天计时器。开启后每 5 分钟巡检一次;该路径直连 Google 内部端点,请自行评估风控风险 |
171
- | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-4-6` | 自动预热使用的模型列表(逗号分隔);空数组表示不自动预热 |
171
+ | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-5-5` | 自动预热使用的模型列表(逗号分隔);空数组表示不自动预热 |
172
172
  | `autoTranslate` | `DSH_AGY_AUTO_TRANSLATE` | `false` | 每轮对话完成后自动调用 `/tsl` 生成大白话翻译卡片;亦可在会话中通过 `/tsl auto on` 动态开启 |
173
173
  | `translateModel` | `DSH_AGY_TRANSLATE_MODEL` | `gemini-3.8-flash` | `/tsl` 默认使用的翻译模型,缺失时按目录回退 |
174
174
  | `translateEffort` | `DSH_AGY_TRANSLATE_EFFORT` | `high` | 翻译模型思考强度档位 |
@@ -188,7 +188,7 @@ dsh plugin --profile web add dsh-agy-link
188
188
  /tsl 3 # 翻译指定第 3 轮回复
189
189
  /tsl --full # 连同中间工具调用的叙述一并翻译
190
190
  /tsl --text 任意文本… # 纯文本翻译模式(在终端直接输出,不生成卡片)
191
- /tsl --model claude-sonnet-4-6 --effort medium # 临时指定翻译模型与思考强度
191
+ /tsl --model claude-sonnet-5-5 --effort medium # 临时指定翻译模型与思考强度
192
192
  /tsl --print # 在命令执行输出中同步回显译文
193
193
  /tsl auto on|off|status # 针对当前会话开启、关闭或查看自动翻译状态
194
194
  ```
@@ -401,7 +401,7 @@ dsh plugin --profile web add dsh-agy-link
401
401
  | `proxyUrl` | `DSH_AGY_PROXY_URL` | empty string | Global proxy URL; per-account proxies configured in console take precedence |
402
402
  | `suppressAgyAutoUpdate` | `DSH_AGY_SUPPRESS_AUTOUPDATE` | `true` on Windows, `false` elsewhere | Refreshes agy's update-check timestamp before every spawn so its `--bg-updater` child chain (the Windows console-flash root cause) never starts. `false` restores agy's own auto-update checks |
403
403
  | `autoWarmup` | `DSH_AGY_AUTO_WARMUP` | `false` | Opt-in 7-day weekly quota warmup: sends a minimal probe when the weekly window has reset or is cold, activating the 7-day timer. Scans every 5 minutes; this path talks directly to Google's internal endpoints, so assess the risk-control tradeoff yourself |
404
- | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-4-6` | Model list used for warmup probes (comma-separated); an empty list disables automatic warmup |
404
+ | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-5-5` | Model list used for warmup probes (comma-separated); an empty list disables automatic warmup |
405
405
  | `autoTranslate` | `DSH_AGY_AUTO_TRANSLATE` | `false` | Auto plain-language translation after every completed turn (card under the reply). Per-session override: `/tsl auto on\|off` |
406
406
  | `translateModel` | `DSH_AGY_TRANSLATE_MODEL` | `gemini-3.8-flash` | Model used by `/tsl` and auto mode; falls back through the live catalog when absent |
407
407
  | `translateEffort` | `DSH_AGY_TRANSLATE_EFFORT` | `high` | Reasoning effort for effort-capable translate models |
package/dist/index.js CHANGED
@@ -47,11 +47,21 @@ const DEFAULT_FALLBACK_MODELS = [
47
47
  },
48
48
  {
49
49
  id: "claude-sonnet-5-5",
50
- name: "Claude Sonnet 5.5"
50
+ name: "Claude Sonnet 5.5",
51
+ efforts: [
52
+ "low",
53
+ "medium",
54
+ "high"
55
+ ]
51
56
  },
52
57
  {
53
58
  id: "claude-opus-5-5",
54
- name: "Claude Opus 5.5"
59
+ name: "Claude Opus 5.5",
60
+ efforts: [
61
+ "low",
62
+ "medium",
63
+ "high"
64
+ ]
55
65
  },
56
66
  {
57
67
  id: "gpt-oss-120b-medium",
@@ -126,7 +136,7 @@ function defaultConfig() {
126
136
  proxyUrl: "",
127
137
  suppressAgyAutoUpdate: process.platform === "win32",
128
138
  autoWarmup: false,
129
- warmupModels: ["gemini-3.8-flash", "claude-sonnet-4-6"],
139
+ warmupModels: ["gemini-3.8-flash", "claude-sonnet-5-5"],
130
140
  autoTranslate: false,
131
141
  translateModel: "gemini-3.8-flash",
132
142
  translateEffort: "high",
@@ -2511,13 +2521,16 @@ const EFFORT_SUFFIXES = [
2511
2521
  "medium",
2512
2522
  "high"
2513
2523
  ];
2514
- /** Fold Gemini effort variants into base + effort set (spec ADR-10). */
2524
+ /** Fold Gemini/Argon/Claude effort variants into base + effort set (spec ADR-10).
2525
+ * Claude 5.5 is listed only as tiered slugs by agy 1.5.3; the base slug is the
2526
+ * one that accepts `--effort`, and passing a tiered slug together with the flag
2527
+ * is rejected ("--model … conflicts with --effort=…"). */
2515
2528
  function foldEfforts(raw) {
2516
2529
  const bases = /* @__PURE__ */ new Map();
2517
2530
  const verbatim = [];
2518
2531
  const slugSet = new Set(raw.map((r) => r.slug));
2519
2532
  for (const r of raw) {
2520
- if (!r.slug.startsWith("gemini") && !r.slug.startsWith("argon")) {
2533
+ if (!r.slug.startsWith("gemini") && !r.slug.startsWith("argon") && !r.slug.startsWith("claude")) {
2521
2534
  verbatim.push({
2522
2535
  id: r.slug,
2523
2536
  name: r.label,
@@ -2726,9 +2739,13 @@ var ModelCatalog = class ModelCatalog {
2726
2739
  };
2727
2740
  function resolveModelSlug(id) {
2728
2741
  const s = id.trim().toLowerCase();
2729
- if (s === "claude-opus-4-6" || s === "claude-opus-4-8" || s === "claude-opus" || s === "claude-opus-4.6" || s === "claude-opus-4-5") return "claude-opus-4-6-thinking";
2730
- if (s === "claude-sonnet" || s === "claude-sonnet-4.6" || s === "claude-sonnet-4-5") return "claude-sonnet-4-6";
2742
+ if (s === "claude-opus") return "claude-opus-5-5";
2743
+ if (s === "claude-sonnet") return "claude-sonnet-5-5";
2744
+ if (s === "claude-opus-4-6" || s === "claude-opus-4-8" || s === "claude-opus-4.6" || s === "claude-opus-4-5") return "claude-opus-4-6-thinking";
2745
+ if (s === "claude-sonnet-4.6" || s === "claude-sonnet-4-5") return "claude-sonnet-4-6";
2731
2746
  if (s === "gpt-oss-120b" || s === "gpt-oss-20b" || s === "gpt-oss") return "gpt-oss-120b-medium";
2747
+ const claude55 = s.match(/^(claude-(?:sonnet|opus)-5-5)-(?:low|medium|high)$/);
2748
+ if (claude55 !== null && claude55[1] !== void 0) return claude55[1];
2732
2749
  return id.trim();
2733
2750
  }
2734
2751
  function findEntry(catalog, id) {
@@ -31343,7 +31360,8 @@ var AgyAdapter = class AgyAdapter extends LlmAdapter {
31343
31360
  else args.push("--mode", opts.permissionMode);
31344
31361
  const effectiveModel = resolveModelSlug(opts.model);
31345
31362
  if (effectiveModel !== "") args.push("--model", effectiveModel);
31346
- if ((effectiveModel === "" || effectiveModel.toLowerCase().startsWith("gemini") || effectiveModel.toLowerCase().startsWith("argon")) && opts.effort && opts.effort !== "") args.push("--effort", opts.effort);
31363
+ const effortModel = effectiveModel.toLowerCase();
31364
+ if ((effectiveModel === "" || effortModel.startsWith("gemini") || effortModel.startsWith("argon") || /^claude-(?:sonnet|opus)-5-5$/.test(effortModel)) && opts.effort && opts.effort !== "") args.push("--effort", opts.effort);
31347
31365
  if (opts.conversationId) args.push("--conversation", opts.conversationId);
31348
31366
  for (const d of opts.addDirs ?? []) args.push("--add-dir", d);
31349
31367
  args.push(...opts.extraArgs);
@@ -31528,7 +31546,7 @@ var AgyAdapter = class AgyAdapter extends LlmAdapter {
31528
31546
  if (cfg.autoFallbackModel) {
31529
31547
  const familyModel = {
31530
31548
  google: "gemini-3.8-flash",
31531
- anthropic: "claude-sonnet-4-6",
31549
+ anthropic: "claude-sonnet-5-5",
31532
31550
  openai: "gpt-oss-120b-medium"
31533
31551
  };
31534
31552
  for (const fbFam of [
@@ -35876,7 +35894,7 @@ function pickWarmupModelForFamily(family, monitoredModels = [], account) {
35876
35894
  const anyClaude = accountModels.find((m) => m.toLowerCase().includes("claude"));
35877
35895
  if (anyClaude) return anyClaude;
35878
35896
  }
35879
- return monitoredModels.find((m) => m.toLowerCase().includes("claude")) ?? "claude-sonnet-4-6";
35897
+ return monitoredModels.find((m) => m.toLowerCase().includes("claude")) ?? "claude-sonnet-5-5";
35880
35898
  }
35881
35899
  if (family === "openai") return monitoredModels.find((m) => m.toLowerCase().includes("gpt")) ?? "gpt-oss-120b-medium";
35882
35900
  return monitoredModels.find((m) => m.toLowerCase().includes("gemini") && !m.toLowerCase().includes("argon")) ?? "gemini-3.8-flash";
@@ -36198,7 +36216,7 @@ var WarmupService = class {
36198
36216
  skipped: true,
36199
36217
  skipReason: "No warmup models configured"
36200
36218
  }];
36201
- const monitored = configuredModels ?? ["gemini-3.8-flash", "claude-sonnet-4-6"];
36219
+ const monitored = configuredModels ?? ["gemini-3.8-flash", "claude-sonnet-5-5"];
36202
36220
  const quotas = account.quotas ?? {};
36203
36221
  const families = Object.keys(quotas);
36204
36222
  const modelsToPing = [];
@@ -81,7 +81,7 @@ Resolution order (highest first): `DSH_AGY_*` environment variable → runtime o
81
81
  | `quotaPollIntervalMs` | `DSH_AGY_QUOTA_POLL_INTERVAL_MS` | `3600000` | Background quota poll interval (minimum 60 s) |
82
82
  | `quotaViaCli` | `DSH_AGY_QUOTA_VIA_CLI` | `true` | Prefer the agy CLI path for quota queries |
83
83
  | `autoWarmup` | `DSH_AGY_AUTO_WARMUP` | `false` | Opt-in weekly-quota warmup |
84
- | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-4-6` | Models used for warmup probes |
84
+ | `warmupModels` | `DSH_AGY_WARMUP_MODELS` | `gemini-3.8-flash,claude-sonnet-5-5` | Models used for warmup probes |
85
85
  | `suppressAgyAutoUpdate` | `DSH_AGY_SUPPRESS_AUTOUPDATE` | `true` on Windows, `false` elsewhere | Refresh agy's update-check timestamp before every spawn to stop the `--bg-updater` console flash chain |
86
86
 
87
87
  ## Translation (`/tsl`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
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",