mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
feat: 添加本地 Memory/Vault 管理命令
- /local-memory: 本地记忆管理(store/entry CRUD、搜索、归档) - /local-vault: 本地密钥保险库管理(加解密、keychain 集成) - permissionValidation: vault 权限校验增强 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
This commit is contained in:
21
src/commands/local-vault/index.tsx
Normal file
21
src/commands/local-vault/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { Command } from '../../types/command.js';
|
||||
|
||||
const localVaultCommand: Command = {
|
||||
type: 'local-jsx',
|
||||
name: 'local-vault',
|
||||
aliases: ['lv', 'local-secret'],
|
||||
description:
|
||||
'Manage local encrypted secrets. Stored in OS keychain or encrypted file fallback — no API key required.',
|
||||
// Avoid `<key>` / `<value>` in the hint — REPL markdown renderer eats angle-
|
||||
// bracketed words as HTML tags. Uppercase placeholders survive intact.
|
||||
argumentHint: 'list | set KEY VALUE | get KEY [--reveal] | delete KEY',
|
||||
isHidden: false,
|
||||
isEnabled: () => true,
|
||||
bridgeSafe: true,
|
||||
load: async () => {
|
||||
const m = await import('./launchLocalVault.js');
|
||||
return { call: m.callLocalVault };
|
||||
},
|
||||
};
|
||||
|
||||
export default localVaultCommand;
|
||||
Reference in New Issue
Block a user