GuYou9799/dsh-auth-cookie-sweep ↗★ 1

dsh-auth-cookie-sweep

Expire stale dsh-auth-* browser-session cookies so DeepSeek Harness keeps opening after months of launches.

包名
dsh-auth-cookie-sweep
兼容性
待验证
Harness 依赖范围
>=0.2.0-rc.2
版本
0.1.4
许可证
MIT
最近更新
2026年11月9日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-auth-cookie-sweep

配置

在 bundle 的 insert 行上加可选 config:

- insert:
    - id: dsh-auth-cookie-sweep
      name: dsh-auth-cookie-sweep
      config:
        minStaleCookies: 3         # 1..256,达到多少条外来 cookie 才清理
        maxCookieHeaderBytes: 4096 # 512..16384,请求头多大就立刻清理
        maxDeletions: 64           # 1..512,单次响应最多下发多少条过期指令
        secure: false              # 省略则自动跟随 Host 协议

非法或越界取值会被收敛到安全范围,未知字段忽略。

Configuration

Optional config on the bundle's insert row:

- insert:
    - id: dsh-auth-cookie-sweep
      name: dsh-auth-cookie-sweep
      config:
        minStaleCookies: 3        # 1..256, foreign cookies before cleaning
        maxCookieHeaderBytes: 4096 # 512..16384, clean as soon as the header is this big
        maxDeletions: 64          # 1..512, expiries per response
        secure: false             # omit to follow the Host protocol automatically

Wrong or out-of-range values are clamped; unknown keys are ignored.