dsh-agy-link 0.6.11 → 0.6.12

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,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.12 (2026-11-09)
4
+
5
+ ### English
6
+
7
+ - **Fix(models): enable reasoning effort for Claude 5.5 — verified against agy 1.5.3.**
8
+ - `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).
9
+ - 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.
10
+ - Claude 4.6 keeps its documented no-effort behaviour (it is no longer in the live catalog, and was not verified).
11
+
12
+ ### 中文
13
+
14
+ - **修复(models):Claude 5.5 支持推理档位 —— 已用本机 agy 1.5.3 实测确认。**
15
+ - `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` 正常返回)。
16
+ - 因此目录把 5.5 的档位折叠为一个条目(`efforts: low|medium|high`);`resolveModelSlug()` 会把带档位的 5.5 slug 还原成 base(避免与 `--effort` 冲突);`buildArgs` 对 base 的 Claude 5.5 传 `--effort`。
17
+ - Claude 4.6 维持原有「不传 effort」行为(已不在在线目录,也未验证)。
18
+
19
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.6.11...v0.6.12
20
+
3
21
  ## 0.6.11 (2026-11-09)
4
22
 
5
23
  ### English
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",
@@ -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,
@@ -2729,6 +2742,8 @@ function resolveModelSlug(id) {
2729
2742
  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
2743
  if (s === "claude-sonnet" || s === "claude-sonnet-4.6" || s === "claude-sonnet-4-5") return "claude-sonnet-4-6";
2731
2744
  if (s === "gpt-oss-120b" || s === "gpt-oss-20b" || s === "gpt-oss") return "gpt-oss-120b-medium";
2745
+ const claude55 = s.match(/^(claude-(?:sonnet|opus)-5-5)-(?:low|medium|high)$/);
2746
+ if (claude55 !== null && claude55[1] !== void 0) return claude55[1];
2732
2747
  return id.trim();
2733
2748
  }
2734
2749
  function findEntry(catalog, id) {
@@ -31343,7 +31358,8 @@ var AgyAdapter = class AgyAdapter extends LlmAdapter {
31343
31358
  else args.push("--mode", opts.permissionMode);
31344
31359
  const effectiveModel = resolveModelSlug(opts.model);
31345
31360
  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);
31361
+ const effortModel = effectiveModel.toLowerCase();
31362
+ 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
31363
  if (opts.conversationId) args.push("--conversation", opts.conversationId);
31348
31364
  for (const d of opts.addDirs ?? []) args.push("--add-dir", d);
31349
31365
  args.push(...opts.extraArgs);
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.12",
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",