mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
- /local-memory: 本地记忆管理(store/entry CRUD、搜索、归档) - /local-vault: 本地密钥保险库管理(加解密、keychain 集成) - permissionValidation: vault 权限校验增强 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
22 lines
751 B
TypeScript
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;
|