claude-code-best/src/commands/local-memory/index.tsx
claude-code-best fc43aa9e7a 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

23 lines
819 B
TypeScript

import type { Command } from '../../types/command.js';
const localMemoryCommand: Command = {
type: 'local-jsx',
name: 'local-memory',
aliases: ['lm'],
description:
'Manage local memory stores for notes and context. Stored in ~/.claude/local-memory/ — no API key required.',
// Avoid `<store>` / `<key>` / `<value>` in hint — REPL markdown renderer
// strips angle-bracketed words as HTML tags. Uppercase placeholders are
// visible. Same fix as /local-vault.
argumentHint: 'list | create STORE | store STORE KEY VALUE | fetch STORE KEY | entries STORE | archive STORE',
isHidden: false,
isEnabled: () => true,
bridgeSafe: true,
load: async () => {
const m = await import('./launchLocalMemory.js');
return { call: m.callLocalMemory };
},
};
export default localMemoryCommand;