dsh-agy-link 0.4.89 → 0.4.90

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.4.90 (2026-10-29)
4
+
5
+ ### English
6
+
7
+ - **Fix(config): parse boolean env/plugin values case-insensitively (`TRUE`, `Yes`, `on`, …).**
8
+ - `asBool()` only accepted the exact strings `true`/`1`, so `DSH_AGY_MCP_BRIDGE=TRUE` (or `Yes`/`on`) was silently ignored and fell back to the default — a common footgun for boolean env vars. It now trims + lowercases and accepts `true/1/yes/on` and `false/0/no/off`; anything else still falls back. Adds a regression test.
9
+
10
+ ### 中文
11
+
12
+ - **修复(config):布尔型 env/配置值大小写不敏感(`TRUE`、`Yes`、`on` 等)。**
13
+ - `asBool()` 之前只认精确的 `true`/`1`,于是 `DSH_AGY_MCP_BRIDGE=TRUE`(或 `Yes`/`on`)被静默忽略、回落到默认值——布尔环境变量的常见坑。现 trim+小写后接受 `true/1/yes/on` 与 `false/0/no/off`,其它仍回落。补充回归测试。
14
+
15
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.4.89...v0.4.90
16
+
3
17
  ## 0.4.89 (2026-10-29)
4
18
 
5
19
  ### English
package/dist/index.js CHANGED
@@ -451,7 +451,11 @@ function asMcpConfigScope(v) {
451
451
  }
452
452
  function asBool(v) {
453
453
  if (typeof v === "boolean") return v;
454
- if (typeof v === "string") return v === "true" || v === "1";
454
+ if (typeof v === "string") {
455
+ const s = v.trim().toLowerCase();
456
+ if (s === "true" || s === "1" || s === "yes" || s === "on") return true;
457
+ if (s === "false" || s === "0" || s === "no" || s === "off") return false;
458
+ }
455
459
  }
456
460
  function asNum(v) {
457
461
  if (typeof v === "number" && Number.isFinite(v)) return v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.4.89",
3
+ "version": "0.4.90",
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",