mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 06:15:51 +00:00
- /memory-stores: 远程记忆存储管理 - /vault: 密钥保险库管理 - /schedule: 云端定时触发器管理(cron) - /skill-store: 技能商店浏览和安装 - /agents-platform: 远程 agent 调度管理 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
31 lines
1.3 KiB
TypeScript
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
|