feat: 更新工作流路径至用户主目录,优化文件引用

This commit is contained in:
catlog22
2026-02-07 23:45:55 +08:00
parent 41cff28799
commit 50570a9820
11 changed files with 22 additions and 22 deletions

View File

@@ -31,7 +31,7 @@ const DEFAULT_MODELS: Record<string, string> = {
};
// Template paths (relative to user home directory)
const TEMPLATE_BASE = '.claude/workflows/cli-templates/prompts/documentation';
const TEMPLATE_BASE = '~/.ccw/workflows/cli-templates/prompts/documentation';
// Define Zod schema for validation
const ParamsSchema = z.object({

View File

@@ -40,7 +40,7 @@ function detectMatrixDimensions(prototypesDir) {
function loadTemplate(templatePath) {
const defaultPath = resolve(
process.env.HOME || process.env.USERPROFILE,
'.claude/workflows/_template-compare-matrix.html'
'~/.ccw/workflows/_template-compare-matrix.html'
);
const path = templatePath || defaultPath;

View File

@@ -130,7 +130,7 @@ function scanDirectoryStructure(targetPath, strategy) {
function loadTemplate() {
const templatePath = join(
process.env.HOME || process.env.USERPROFILE,
'.claude/workflows/cli-templates/prompts/memory/02-document-module-structure.txt'
'~/.ccw/workflows/cli-templates/prompts/memory/02-document-module-structure.txt'
);
if (existsSync(templatePath)) {