@mysterycode-liwen/dsh-credential-vault 0.0.0-stage → 1.3.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 李文
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,67 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # 凭据保险箱 / Credential Vault
2
+
3
+ 一个 [DeepSeek Harness](https://github.com/deepseek-ai/DeepSeek-Harness) 侧边栏插件:把账号密码、API Key、恢复码等凭据集中保存在本机,并提供一个 Agent 工具让 Harness 读取。
4
+
5
+ A sidebar plugin for DeepSeek Harness that keeps accounts, passwords, API keys and recovery codes locally, plus an agent tool so the Harness can read them.
6
+
7
+ ## 安装 / Install
8
+
9
+ 从 npm 安装(推荐):
10
+
11
+ ```bash
12
+ dsh plugin --profile desktop add @mysterycode-liwen/dsh-credential-vault
13
+ ```
14
+
15
+ npm 页面:<https://www.npmjs.com/package/@mysterycode-liwen/dsh-credential-vault>
16
+
17
+ 也可以在 DeepSeek Harness 的「设置 → 插件 → 插件市场」中搜索 `credential vault`(市场索引刷新后可见)。
18
+
19
+ 固定到某个提交从源码安装:
20
+
21
+ ```bash
22
+ dsh plugin --profile desktop add github:mysterycode-liwen/dsh-credential-vault
23
+ ```
24
+
25
+ 从本地目录安装(开发用):
26
+
27
+ ```bash
28
+ dsh plugin --profile desktop add link:E:/deepseek-harness/dsh-credential-vault
29
+ ```
30
+
31
+ ## 功能 / Features
32
+
33
+ - 侧边栏「凭据保险箱」面板,三类凭据各有独立表单:
34
+ - 账号密码:标题 / 账号 / 密码 / 登录网址 / 备注
35
+ - API Key:标题 / 平台 / Key / Base URL / 到期日期 / 备注
36
+ - 其他:标题 / 任意文本(如恢复码、许可证)/ 备注
37
+ - 搜索、类型筛选、排序(最近更新 / 名称 / 类型);大量条目用滚动列表浏览。
38
+ - 逐条显示 / 隐藏、复制到剪贴板、编辑、删除。
39
+ - **密码生成器**:在账号密码字段旁点「⚙ 生成」,用加密安全随机数(Web Crypto)生成强密码,可设置长度与字符类型、避开易混淆字符,并实时显示强度;可直接填入表单或复制。(仅账号密码类提供,API Key / 其他类不显示)
40
+ - **健康审计**:点「🛡 健康审计」扫描全部凭据,列出弱密码 / 空密钥、重复使用、已过期 / 即将到期等问题并按严重程度排序,点击条目可直接跳转编辑。
41
+ - 登录网址 / Base URL 字段旁提供「访问」按钮,默认用 DeepSeek Harness 内置浏览器打开。
42
+ - 导入 / 导出:把全部凭据导出为 JSON 备份文件,或从备份文件恢复;导入时可选「合并(跳过重复 ID)」或「替换全部」。
43
+ - 设置页:访问密码开关、设置 / 修改密码、密保问题重置、闲置自动锁定(可开关、可选时长)、插件版本与检查更新。
44
+ - Agent 工具 `dsh_credential_vault_read`:`mode=summary|full`、`limit`、`offset`、`query`、`category`、`revealSecrets`,默认脱敏。Host 端把浏览器同步过来的快照写到 `~/.dsh/dsh-credential-vault/vault.json`(旧版路径 `~/.dsh/credential-vault/vault.json` 会自动迁移)。
45
+
46
+ ## 安全说明 / Security notice
47
+
48
+ - 浏览器端数据保存在 **localStorage**,Host 端镜像文件是**明文 JSON**:都不加密、不跨设备同步。请勿在公用 / 共享电脑上使用。
49
+ - 插件没有网络上传行为;数据只在你本机和本机 Harness 之间流转。
50
+ - `dsh_credential_vault_read` 默认把 `password` / `apiKey` / `content` 显示为 `••••••••`,只有显式传 `revealSecrets: true` 才返回明文。
51
+ - **导出的备份文件包含明文密码 / API Key**:请像对待密码本身一样妥善保管,用完及时删除;导入仅在本机浏览器内进行。
52
+ - Host 工具的注册发生在 Harness 启动时:首次安装后请**重启 Harness 或在插件管理里关闭再启用**该插件。
53
+
54
+ ## 发布 / Publishing
55
+
56
+ ```bash
57
+ npm run check # 发布前自检:client.js 的模块 id 与 cordis.patch.yml 的 name 必须等于包名
58
+ npm pack --dry-run # 核对实际打包的文件清单
59
+ npm publish # publishConfig.access = public;会先自动跑一次 npm run check,不一致则中止
60
+ git tag v1.3.0 && git push --tags
61
+ ```
62
+
63
+ `client.js` 里 `window.__ModuleLoader__.load({ id })` 的 `id` **必须等于 `package.json` 的 `name`**:DSH 按包名去浏览器模块表里查找,不一致时浏览器端不会挂载,表现为侧边栏入口与设置页整块消失(Host 端仍然正常)。改包名或改 scope 时,三处要同步:`package.json` 的 `name`、`client.js` 的 `id`、`cordis.patch.yml` 的 `name`。
64
+
65
+ ## 许可 / License
66
+
67
+ MIT