Files
claude-code/src/commands/local-vault/index.tsx
claude-code-best 4f0aa8615a 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>
2026-05-09 23:04:20 +08:00

22 lines
751 B
TypeScript

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;