mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
feat: 更新工具列表,支持 .ccw 目录的安装和升级,调整相关路径
This commit is contained in:
@@ -948,10 +948,10 @@ export function updateCodeIndexMcp(
|
||||
// Only update global CLAUDE.md (consistent with Chinese response / Windows platform)
|
||||
const globalClaudeMdPath = path.join(os.homedir(), '.claude', 'CLAUDE.md');
|
||||
|
||||
// Define patterns for all formats
|
||||
const codexlensPattern = /@~\/\.claude\/workflows\/context-tools\.md/g;
|
||||
const acePattern = /@~\/\.claude\/workflows\/context-tools-ace\.md/g;
|
||||
const nonePattern = /@~\/\.claude\/workflows\/context-tools-none\.md/g;
|
||||
// Define patterns for all formats (match both old .claude and new .ccw paths)
|
||||
const codexlensPattern = /@~\/\.(?:claude|ccw)\/workflows\/context-tools\.md/g;
|
||||
const acePattern = /@~\/\.(?:claude|ccw)\/workflows\/context-tools-ace\.md/g;
|
||||
const nonePattern = /@~\/\.(?:claude|ccw)\/workflows\/context-tools-none\.md/g;
|
||||
|
||||
// Determine target file based on provider
|
||||
const targetFile = provider === 'ace'
|
||||
|
||||
Reference in New Issue
Block a user