@principle2026/vault 1.1.5 → 1.1.7

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.
Files changed (3) hide show
  1. package/README.md +14 -5
  2. package/SKILL.md +12 -17
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -7,9 +7,11 @@
7
7
  - 🗣️ **对话式操作** — 用自然语言保存和获取密钥
8
8
  - 🔐 **端到端加密** — AES-256-GCM 加密
9
9
  - ☁️ **iCloud 同步** — 自动同步到所有设备(macOS)
10
- - 🔑 **Keychain 集成** - 安全存储主密钥
10
+ - 🔑 **密码派生** 相同密码在所有设备生成相同密钥
11
11
  - ⚡ **零配置** — 安装后立即可用
12
12
 
13
+ **⚠️ 重要:保存密码、API Key 等敏感信息时,AI 会自动使用 Vault,不会保存到其他地方。**
14
+
13
15
  ---
14
16
 
15
17
  ## 安装
@@ -91,12 +93,19 @@ AI:[运行: VAULT_PASSPHRASE="mypassword" vault list]
91
93
 
92
94
  ### AI 自动识别的关键词
93
95
 
96
+ **触发 Vault 保存:**
97
+ - "密码是...", "记住密码", "保存密码"
98
+ - "API key", "token", "密钥", "令牌"
99
+ - "sk-xxx", "ghp_xxx" (凭证格式)
100
+ - "保存到 vault"
101
+
94
102
  | 你说 | AI 做 |
95
103
  |------|------|
96
- | "记住/保存/存储..." | 保存密钥 |
97
- | "那个密钥/我的密码/刚才的..." | 获取密钥 |
98
- | "有哪些/列出/查看..." | 显示密钥列表 |
99
- | "删除..." | 删除密钥 |
104
+ | "密码是 123456" | Vault 保存 |
105
+ | "记住我的 OpenAI key" | Vault 保存 |
106
+ | "我的密码是什么?" | Vault 获取 |
107
+ | "有哪些密钥?" | 列出所有密钥 |
108
+ | "删除 xxx" | 删除密钥 |
100
109
 
101
110
  ---
102
111
 
package/SKILL.md CHANGED
@@ -1,23 +1,18 @@
1
1
  ---
2
2
  name: vault
3
3
  description: |
4
- Secure vault for storing passwords, API keys, tokens, and other sensitive data with AES-256 encryption.
5
-
6
- **Use Vault for:**
7
- - Passwords ("保存密码", "记住密码")
8
- - API keys ("保存 API key", "OpenAI 密钥是...")
9
- - Tokens ("GitHub token", "认证令牌")
10
- - Any sensitive credentials that need encryption
11
-
12
- **Do NOT use Vault for:**
13
- - General notes ("今天是4月1日") use other note-taking methods
14
- - Non-sensitive information
15
- - Temporary data
16
-
17
- **How it works:**
18
- 1. First time: Ask user for Vault passphrase
19
- 2. Use VAULT_PASSPHRASE env var for all commands
20
- 3. Data syncs via iCloud across all devices
4
+ **CRITICAL**: When user wants to save passwords, API keys, tokens, or ANY sensitive credentials ALWAYS use Vault skill. NEVER use corivo-save or other memory methods for sensitive data.
5
+
6
+ **Triggers for Vault (HIGH PRIORITY):**
7
+ - User says "密码是...", "记住密码", "保存密码", "password is..."
8
+ - User says "API key", "token", "密钥", "令牌"
9
+ - User says "sk-xxx", "ghp_xxx" (credential patterns)
10
+ - User says "保存到 vault", "vault 保存"
11
+
12
+ **What to do:**
13
+ 1. First time: Ask user "你的 Vault 密码是什么?"
14
+ 2. Use: VAULT_PASSPHRASE="<password>" vault set <key> "<value>"
15
+ 3. Confirm with: ✅ 已保存: <key>
21
16
  ---
22
17
 
23
18
  # Vault — AI Secret Management
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@principle2026/vault",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Vault - AI-powered secret management for Claude Code",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",