mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 00:05:51 +00:00
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>
This commit is contained in:
30
src/commands/memory-stores/index.ts
Normal file
30
src/commands/memory-stores/index.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user