Files
claude-code/src/commands/memory-stores/index.ts
claude-code-best 2437040b5b feat: 添加云端管理命令(memory-stores、vault、schedule、skill-store、agents-platform)
- /memory-stores: 远程记忆存储管理
- /vault: 密钥保险库管理
- /schedule: 云端定时触发器管理(cron)
- /skill-store: 技能商店浏览和安装
- /agents-platform: 远程 agent 调度管理

Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
2026-05-09 23:04:17 +08:00

31 lines
1.3 KiB
TypeScript

import { getGlobalConfig } from '../../utils/config.js'
import type { Command } from '../../types/command.js'
const memoryStoresCommand: Command = {
type: 'local-jsx',
name: 'memory-stores',
aliases: ['mem', 'mstore'],
description:
'Manage remote memory stores (cross-device memory persistence). Requires Claude Pro/Max/Team subscription.',
// REPL markdown renderer strips `<...>` as HTML tags — use uppercase.
argumentHint:
'list | get ID | create NAME | archive ID | memories STORE_ID | create-memory STORE_ID CONTENT | get-memory STORE_ID MEMORY_ID | update-memory STORE_ID MEMORY_ID CONTENT | delete-memory STORE_ID MEMORY_ID | versions STORE_ID | redact STORE_ID VERSION_ID',
// Visible when a workspace API key is available from env or saved settings.
// Use a getter so getGlobalConfig() runs lazily (after enableConfigs())
// instead of at module-load time, which races bootstrap and throws.
get isHidden(): boolean {
return (
!process.env['ANTHROPIC_API_KEY'] && !getGlobalConfig().workspaceApiKey
)
},
isEnabled: () => true,
bridgeSafe: false,
availability: ['claude-ai'],
load: async () => {
const m = await import('./launchMemoryStores.js')
return { call: m.callMemoryStores }
},
}
export default memoryStoresCommand