dsh-agy-link 0.4.89 → 0.4.91
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 +28 -0
- package/dist/index.js +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.91 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
### English
|
|
6
|
+
|
|
7
|
+
- **Security(doctor): redact secret URL query parameters (`access_token`, `token`, `api_key`, …).**
|
|
8
|
+
- `redactLine()` fully redacted accounts.google.com URLs but left secret-bearing query parameters on any other URL (OAuth callbacks, signed URLs) in the clear. Query keys `access_token/refresh_token/id_token/token/api_key/apikey/client_secret/key` are now masked as `<key>=<redacted>` while other query parameters are preserved. Adds a regression test.
|
|
9
|
+
|
|
10
|
+
### 中文
|
|
11
|
+
|
|
12
|
+
- **安全(doctor):脱敏 URL 查询串中的密钥参数(`access_token`、`token`、`api_key` 等)。**
|
|
13
|
+
- `redactLine()` 只整体脱敏 accounts.google.com 的 URL,其它 URL(OAuth 回调、签名链接)上的密钥查询参数会明文残留。现对 `access_token/refresh_token/id_token/token/api_key/apikey/client_secret/key` 统一掩码为 `<key>=<redacted>`,其它查询参数保留。补充回归测试。
|
|
14
|
+
|
|
15
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.4.90...v0.4.91
|
|
16
|
+
|
|
17
|
+
## 0.4.90 (2026-10-29)
|
|
18
|
+
|
|
19
|
+
### English
|
|
20
|
+
|
|
21
|
+
- **Fix(config): parse boolean env/plugin values case-insensitively (`TRUE`, `Yes`, `on`, …).**
|
|
22
|
+
- `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.
|
|
23
|
+
|
|
24
|
+
### 中文
|
|
25
|
+
|
|
26
|
+
- **修复(config):布尔型 env/配置值大小写不敏感(`TRUE`、`Yes`、`on` 等)。**
|
|
27
|
+
- `asBool()` 之前只认精确的 `true`/`1`,于是 `DSH_AGY_MCP_BRIDGE=TRUE`(或 `Yes`/`on`)被静默忽略、回落到默认值——布尔环境变量的常见坑。现 trim+小写后接受 `true/1/yes/on` 与 `false/0/no/off`,其它仍回落。补充回归测试。
|
|
28
|
+
|
|
29
|
+
**Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.4.89...v0.4.90
|
|
30
|
+
|
|
3
31
|
## 0.4.89 (2026-10-29)
|
|
4
32
|
|
|
5
33
|
### 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")
|
|
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;
|
|
@@ -32429,6 +32433,7 @@ function redactLine(line) {
|
|
|
32429
32433
|
out = out.replace(/\bsk-[A-Za-z0-9_-]{16,}\b/g, "<api-key-redacted>");
|
|
32430
32434
|
out = out.replace(/\bGOCSPX-[A-Za-z0-9_-]{10,}\b/g, "<api-key-redacted>");
|
|
32431
32435
|
out = out.replace(/\b((?:proxy-)?authorization|cookie|set-cookie|x-api-key)\s*:\s*[^\r\n]+/gi, "$1: <redacted>");
|
|
32436
|
+
out = out.replace(/([?&](?:access_token|refresh_token|id_token|token|api_key|apikey|client_secret|key)=)[^&\s]+/gi, "$1<redacted>");
|
|
32432
32437
|
out = out.replace(/\b(?:https?|socks[45]):\/\/[^\s/]*:[^\s/@]*@[^\s]+/gi, "<proxy-url-redacted>");
|
|
32433
32438
|
return out;
|
|
32434
32439
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agy-link",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.91",
|
|
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",
|