dsh-agy-link 0.4.79 → 0.4.80

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.80 (2026-10-29)
4
+
5
+ ### English
6
+
7
+ - **Security(doctor): redact OIDC/JWT id_tokens and more provider secret shapes in `/agy doctor`.**
8
+ - `redactLine()` already stripped `ya29.*`, `1//0…` refresh tokens, `AIza…` keys, `Bearer` headers, `4/` codes and proxy credentials, but a Google `id_token` (a JWT `header.payload.signature`), `sk-…` provider keys, and `GOCSPX-…` OAuth client secrets passed through verbatim when agy echoed them into the log ring buffer. All three are now redacted; ordinary text is preserved. Adds regression tests.
9
+
10
+ ### 中文
11
+
12
+ - **安全(doctor):`/agy doctor` 额外脱敏 OIDC/JWT id_token 及更多密钥形态。**
13
+ - `redactLine()` 原本已脱敏 `ya29.*`、`1//0…` refresh token、`AIza…` key、`Bearer` 头、`4/` 授权码与代理凭证,但 Google `id_token`(JWT `header.payload.signature`)、`sk-…` 提供方密钥、`GOCSPX-…` OAuth client secret 在 agy 回显进日志环时仍会原样落入报告。现三类均已脱敏,普通文本保持不变。补充回归测试。
14
+
15
+ **Full Changelog**: https://github.com/amlyczz/dsh-agy-link/compare/v0.4.79...v0.4.80
16
+
3
17
  ## 0.4.79 (2026-10-29)
4
18
 
5
19
  ### English
package/dist/index.js CHANGED
@@ -32399,6 +32399,9 @@ function redactLine(line) {
32399
32399
  out = out.replace(/Bearer\s+\S+/gi, "Bearer <redacted>");
32400
32400
  out = out.replace(/\b1\/\/0[A-Za-z0-9._-]{10,}/g, "<oauth-refresh-token-redacted>");
32401
32401
  out = out.replace(/\bAIza[0-9A-Za-z_-]{30,}\b/g, "<api-key-redacted>");
32402
+ out = out.replace(/\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]{6,}\b/g, "<jwt-redacted>");
32403
+ out = out.replace(/\bsk-[A-Za-z0-9_-]{16,}\b/g, "<api-key-redacted>");
32404
+ out = out.replace(/\bGOCSPX-[A-Za-z0-9_-]{10,}\b/g, "<api-key-redacted>");
32402
32405
  out = out.replace(/\b(?:https?|socks[45]):\/\/[^\s/]*:[^\s/@]*@[^\s]+/gi, "<proxy-url-redacted>");
32403
32406
  return out;
32404
32407
  }
@@ -42,8 +42,10 @@ choice, not a fallback applied by this plugin.
42
42
  ## Report hygiene
43
43
 
44
44
  `/agy doctor` writes its report with redaction: Google auth URLs,
45
- `4/...` authorization codes, `ya29.*` tokens, and `Bearer` headers are
46
- stripped before the file hits disk. Still read it before attaching.
45
+ `4/...` authorization codes, `ya29.*` access tokens, `1//0…` refresh tokens,
46
+ OIDC/JWT `id_token`s, `AIza…`/`sk-…`/`GOCSPX-…` API keys, credentialed proxy
47
+ URLs, and `Bearer` headers are stripped before the file hits disk. Still read it
48
+ before attaching.
47
49
 
48
50
  ## HTTP surfaces and request-body caps
49
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-agy-link",
3
- "version": "0.4.79",
3
+ "version": "0.4.80",
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",