dsh-vault 1.4.0 → 1.5.0-rc.10

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/README-zh.md CHANGED
@@ -69,6 +69,9 @@ dsh-vault 是一个面向 DeepSeek Harness 的安全加密插件:把你在使
69
69
  | `vault_duplicates` | 查找重复分组:`mode` = `both`(默认)/ `title` / `content`(不含密钥) |
70
70
  | `vault_report` | 可打印清单,含到期/轮换列与统计页脚(不含密钥) |
71
71
  | `vault_export` / `vault_import` | 整库加密备份/迁移(独立导出密码) |
72
+ | `vault_backup` / `vault_backup_now` | 时间戳加密备份,文件名 `<库名>-backups-YYYY-MM-DD_HH-MM-SS-<hex>.json`(库名+日期一目了然);自动保留最近 N 份 |
73
+ | `vault_restore_backup` | 从备份还原:`mode: "merge"`(默认)把备份条目复制进当前库,出现在条目列表;`mode: "replace"` 整体覆盖(先写安全快照) |
74
+ | `vault_vault_rename` / `vault_vault_delete` | 重命名命名库(文件移动,当前会话跟随)或永久删除(default 库受保护) |
72
75
  | `vault_fill` | 按 host/URL/用户名/标题匹配条目并返回其凭据 |
73
76
  | `vault_env` | 把标记 env 的条目(tags 含 `env`)渲染为 `KEY=VALUE` 行 |
74
77
  | `vault_export_bitwarden` / `vault_import_bitwarden` | Bitwarden/Vaultwarden JSON 互通(完整字段映射,支持覆盖) |
@@ -78,9 +81,17 @@ dsh-vault 是一个面向 DeepSeek Harness 的安全加密插件:把你在使
78
81
  | `vault_import_1password` / `vault_import_1pif` | 1Password 1PUX(ZIP)与旧版 1PIF 文本导出 |
79
82
  | `vault_import_enpass` | Enpass JSON 导出(文件夹→标签、类型化字段、TOTP) |
80
83
  | `vault_import_keepass_xml` | KeePass 2.x XML 导出(明文或 ****** 掩码值) |
81
- | `vault_import_chrome` / `vault_import_keychain` | 从 Chrome Login Data(macOS 钥匙串 / Linux 钥匙环或 peanuts / Windows DPAPI)或 macOS 钥匙串导入密码(会话缓存 + 预览,避免授权弹窗轰炸);所有文件导入均支持 dryRun 预览 |
84
+ | `vault_import_chrome` / `vault_import_keychain` | 从 Chrome Login Data(macOS 钥匙串 / Linux 钥匙环或 peanuts / Windows DPAPI)或 macOS 钥匙串导入密码(默认只读互联网密码 `inet`——真正用于网站登录的条目,`classes: ["genp"]` 可改读通用密码;会话缓存 + 预览,避免授权弹窗轰炸);所有文件导入均支持 dryRun 预览 |
82
85
  | `vault_import_firefox` | Firefox 配置导入(logins.json + key4.db,NSS 3DES / PBES2-AES,支持主密码) |
83
86
  | `vault_search_system` | 在 Chrome / 钥匙串中搜索站点与用户名——绝不暴露密码 |
87
+ | `vault_session_open` | 在真实浏览器窗口中打开指定网址,供用户手动登录(密码、二次验证、验证码)——对禁止嵌入的网站也能捕获登录态 |
88
+ | `vault_session_collect` | 收集已打开浏览器会话的全部 cookie(含 HttpOnly),保存为 `cookie` 条目 |
89
+ | `vault_session_import` | 从粘贴的 JSON cookie 数组(开发者工具导出格式)或原始 `Cookie` 头字符串保存会话 cookie——无需浏览器的替代方案 |
90
+ | `vault_session_import_file` | 导入 Netscape cookie-jar 文件(curl `-b` / wget / 浏览器扩展导出;与 `vault_session_export` 输出的格式一致) |
91
+ | `vault_session_list` | 列出已保存的登录会话、cookie 数量、已过期与 7 天内过期数量(不含值) |
92
+ | `vault_session_export` | 将会话导出为 `Cookie` 请求头、Netscape cookie-jar 文件(curl `-b`)、原始 JSON(Playwright `addCookies` 格式)或可直接运行的 Playwright 片段 |
93
+ | `vault_session_close` | 关闭已打开的浏览器登录会话(已收集的 cookie 仍保留在保险库中) |
94
+ | `vault_session_prune` | 移除已保存会话中的过期 cookie(无过期的会话 cookie 保留);`preview: true` 只报告不修改 |
84
95
  | `vault_copy` | 复制条目(含密钥)到另一个命名保险库 |
85
96
  | `vault_templates` | 内建 + 用户自定义模板(save/list/remove,KeePassXC 风格) |
86
97
 
package/README.md CHANGED
@@ -71,6 +71,9 @@ Each record has a `title`, an optional `kind`, and any combination of fields:
71
71
  | `vault_duplicates` | Find duplicate groups: `mode` = `both` (default) / `title` / `content` (no secrets) |
72
72
  | `vault_report` | Printable inventory with expiry/rotation columns and a stats footer (no secrets) |
73
73
  | `vault_export` / `vault_import` | Portable encrypted backup/migration of the whole vault (separate export password) |
74
+ | `vault_backup` / `vault_backup_now` | Timestamped encrypted backup named `<vault>-backups-YYYY-MM-DD_HH-MM-SS-<hex>.json` (owning vault + date visible); retention pruning keeps the newest N |
75
+ | `vault_restore_backup` | Restore from a backup: `mode: "merge"` (default) copies the backup entries INTO the current vault so they appear in the entries list; `mode: "replace"` overwrites the whole vault with a safety snapshot first |
76
+ | `vault_vault_rename` / `vault_vault_delete` | Rename a named vault (file moves, active session follows) or permanently delete one (default vault protected) |
74
77
  | `vault_fill` | Find the entry matching a host/URL/username/title and return its credentials |
75
78
  | `vault_env` | Render env-flagged entries (tags contain `env`) as `KEY=VALUE` lines |
76
79
  | `vault_export_bitwarden` / `vault_import_bitwarden` | Bitwarden/Vaultwarden JSON interop (full field mapping, overwrite support) |
@@ -80,9 +83,17 @@ Each record has a `title`, an optional `kind`, and any combination of fields:
80
83
  | `vault_import_1password` / `vault_import_1pif` | 1Password 1PUX (ZIP) and legacy 1PIF text exports |
81
84
  | `vault_import_enpass` | Enpass JSON export (folders → tags, typed fields, TOTP) |
82
85
  | `vault_import_keepass_xml` | KeePass 2.x XML export (plaintext or `********` masked values) |
83
- | `vault_import_chrome` / `vault_import_keychain` | Import passwords from Chrome's Login Data (macOS keychain / Linux keyring or `peanuts` / Windows DPAPI) or the macOS Keychain (session cache + preview, no prompt spam); every file import supports `dryRun` preview |
86
+ | `vault_import_chrome` / `vault_import_keychain` | Import passwords from Chrome's Login Data (macOS keychain / Linux keyring or `peanuts` / Windows DPAPI) or the macOS Keychain (internet passwords `inet` by default — the ones that actually back website logins — or generic `genp` via `classes`; session cache + preview, no prompt spam); every file import supports `dryRun` preview |
84
87
  | `vault_import_firefox` | Firefox profile import (logins.json + key4.db, NSS 3DES / PBES2-AES, primary-password aware) |
85
88
  | `vault_search_system` | Search Chrome / Keychain for sites & usernames — never exposes passwords |
89
+ | `vault_session_open` | Open a real headed browser window at a URL so the user can log in manually (password, 2FA, captcha) — the portable way to capture login state for sites that block embedding |
90
+ | `vault_session_collect` | Collect every cookie of an open browser session (incl. HttpOnly) and save it as a `cookie` entry |
91
+ | `vault_session_import` | Save session cookies from pasted JSON (devtools export shape) or a raw `Cookie` header string — the no-browser alternative |
92
+ | `vault_session_import_file` | Import a Netscape cookie-jar file (curl `-b` / wget / browser-extension export; the same format `vault_session_export` writes) |
93
+ | `vault_session_list` | List saved login sessions with cookie counts, expired and expiring-in-7d counts (no values) |
94
+ | `vault_session_export` | Export a saved session as a `Cookie` header value, a Netscape cookie-jar file (curl `-b`), raw JSON (Playwright `addCookies` shape), or a ready-to-run Playwright snippet |
95
+ | `vault_session_close` | Close an open browser login session (collected cookies stay in the vault) |
96
+ | `vault_session_prune` | Remove expired cookies from a saved session (session cookies are kept); `preview: true` reports without writing |
86
97
  | `vault_copy` | Copy an entry (secrets included) into another named vault |
87
98
  | `vault_templates` | Built-in + user-defined templates (save/list/remove), KeePassXC-style |
88
99