dsh-cookie-cleaner

桌面客户端的赛博端粒不老药:解决启动报 `desktop welcome: Web authentication failed`(HTTP 431)的现象——Electron 随机端口启动,`dsh-auth-*` 登录 cookie 随端口越积越多(70 余条、单条约 229 B),启动请求头撑爆 Node 默认 16 KB 上限,客户端直接起不来。两味药:脚本化清理器——报告并清理 cookie 库(Chromium SQLite)里残留的登录凭据,显式、离线、保留 `.bak` 副本,`--expired-only` 可收窄范围;设置面 patch 功能——经由 profile 的 `cordis.patch.yml` 把启动端口固定化,保证客户端始终从单一端口启动,cookie 不再随不同端口累计(`port` 改写成 `!!js` 表达式可让 `--port` 旗标继续优先,按 profile 留快照、点一次即可回滚)。用法详见 README。界面、CLI 输出与市场元数据覆盖 9 语。清理需在客户端完全退出后运行包内 CLI(`dsh-cookie-cleaner --clean`),插件本体只读。npm 包名:`dsh-cookie-cleaner`。

插件介绍

桌面客户端的赛博端粒不老药:解决启动报 `desktop welcome: Web authentication failed`(HTTP 431)的现象——Electron 随机端口启动,`dsh-auth-*` 登录 cookie 随端口越积越多(70 余条、单条约 229 B),启动请求头撑爆 Node 默认 16 KB 上限,客户端直接起不来。两味药:脚本化清理器——报告并清理 cookie 库(Chromium SQLite)里残留的登录凭据,显式、离线、保留 `.bak` 副本,`--expired-only` 可收窄范围;设置面 patch 功能——经由 profile 的 `cordis.patch.yml` 把启动端口固定化,保证客户端始终从单一端口启动,cookie 不再随不同端口累计(`port` 改写成 `!!js` 表达式可让 `--port` 旗标继续优先,按 profile 留快照、点一次即可回滚)。用法详见 README。界面、CLI 输出与市场元数据覆盖 9 语。清理需在客户端完全退出后运行包内 CLI(`dsh-cookie-cleaner --clean`),插件本体只读。npm 包名:`dsh-cookie-cleaner`。

安装方式

通过 npm 安装

dsh plugin --profile web add dsh-cookie-cleaner

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

从 GitHub 安装

dsh plugin --profile web add github:drscrewdriver/dsh-cookie-cleaner

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令