← 返回列表
D

dsh-password-shield

v0.1.0 · 1 天前发布

Silence Chrome/iCloud password-manager prompts over DeepSeek Harness API-key inputs: rewrites password-type secret fields into masked text fields so browser password managers never treat DSH API keys as account passwords.

deepseekdeepseek-harnessdshdsh-pluginchromepassword-managerapi-keyautofill

README

dsh-password-shield

消除 DeepSeek Harness(dsh)Web 界面 API 密钥输入框上丑陋的浏览器密码提示。

DSH 官方 Web UI 把 API Key 输入框(首次启动的「添加一个 API Key 开始使用」弹窗、
设置 → 模型设置 → 插件 → 网页搜索)渲染成
<input type="password" autocomplete="off">。Chrome 对密码框会故意忽略
autocomplete="off",于是会在弹窗上冒出「保存密码?」/钥匙图标气泡;iCloud
密码等其他密码管理器也一样。老 dsh web 实例(比如长期运行或经 SSH 隧道访问的
旧 profile)里,首次引导或插件 API Key 弹窗还在,这个提示尤其容易出现。

这个纯客户端插件把所有 DSH 密码框改成 type="text",再用
-webkit-text-security: disc 保持圆点遮罩。Chrome 密码管理器只追踪真正的
type="password" 字段,所以提示不会再出现;React 受控值、输入和 dsh 凭证
存储流程完全不变。

安装

bash
dsh plugin --profile web add dsh-password-shield

重启正在运行的 dsh web


也可以手动在 ~/.dsh/profiles/web/cordis.patch.yml 加一行:

yaml
  • insert:

  • - id: password-shield
    name: 'dsh-password-shield'

    然后把包链接/安装进 profile,重启 dsh web

    改动对比

    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    dsh-password-shield
    Repo
    git+https://github.com/ruby1304/dsh-password-shield.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-cordis-client-runner"],"immediately":true}}