dsh-agy-link 0.4.90 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
3
17
  ## 0.4.90 (2026-10-29)
4
18
 
5
19
  ### English
package/dist/index.js CHANGED
@@ -32433,6 +32433,7 @@ function redactLine(line) {
32433
32433
  out = out.replace(/\bsk-[A-Za-z0-9_-]{16,}\b/g, "<api-key-redacted>");
32434
32434
  out = out.replace(/\bGOCSPX-[A-Za-z0-9_-]{10,}\b/g, "<api-key-redacted>");
32435
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>");
32436
32437
  out = out.replace(/\b(?:https?|socks[45]):\/\/[^\s/]*:[^\s/@]*@[^\s]+/gi, "<proxy-url-redacted>");
32437
32438
  return out;
32438
32439
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.4.90",
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",