mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
feat: 更新工作流路径至用户主目录,优化文件引用
This commit is contained in:
@@ -344,7 +344,7 @@ Write({ file_path: filePath, content: newContent })
|
|||||||
.workflow/issues/solutions/{issue-id}.jsonl
|
.workflow/issues/solutions/{issue-id}.jsonl
|
||||||
```
|
```
|
||||||
|
|
||||||
Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cli-templates/schemas/solution-schema.json`
|
Each line is a solution JSON containing tasks. Schema: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json`
|
||||||
|
|
||||||
### 2.2 Return Summary
|
### 2.2 Return Summary
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl
|
|||||||
|
|
||||||
**ALWAYS**:
|
**ALWAYS**:
|
||||||
1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`)
|
1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`)
|
||||||
2. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json`
|
2. Read schema first: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json`
|
||||||
3. Use ACE semantic search as PRIMARY exploration tool
|
3. Use ACE semantic search as PRIMARY exploration tool
|
||||||
4. Fetch issue details via `ccw issue status <id> --json`
|
4. Fetch issue details via `ccw issue status <id> --json`
|
||||||
5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute'
|
5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute'
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ TodoWrite([
|
|||||||
# 3. Launch parallel jobs (max 4)
|
# 3. Launch parallel jobs (max 4)
|
||||||
|
|
||||||
# Depth 5 example (Layer 3 - use multi-layer):
|
# Depth 5 example (Layer 3 - use multi-layer):
|
||||||
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/analysis","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/analysis","tool":"gemini"}' &
|
||||||
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/development","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/development","tool":"gemini"}' &
|
||||||
|
|
||||||
# Depth 1 example (Layer 2 - use single-layer):
|
# Depth 1 example (Layer 2 - use single-layer):
|
||||||
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' &
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ Write({ file_path: filePath, content: newContent })
|
|||||||
.workflow/issues/solutions/{issue-id}.jsonl
|
.workflow/issues/solutions/{issue-id}.jsonl
|
||||||
```
|
```
|
||||||
|
|
||||||
Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cli-templates/schemas/solution-schema.json`
|
Each line is a solution JSON containing tasks. Schema: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json`
|
||||||
|
|
||||||
### 2.2 Return Summary
|
### 2.2 Return Summary
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl
|
|||||||
|
|
||||||
**ALWAYS**:
|
**ALWAYS**:
|
||||||
1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`)
|
1. **Search Tool Priority**: ACE (`mcp__ace-tool__search_context`) → CCW (`mcp__ccw-tools__smart_search`) / Built-in (`Grep`, `Glob`, `Read`)
|
||||||
2. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json`
|
2. Read schema first: `cat ~/.ccw/workflows/cli-templates/schemas/solution-schema.json`
|
||||||
3. Use ACE semantic search as PRIMARY exploration tool
|
3. Use ACE semantic search as PRIMARY exploration tool
|
||||||
4. Fetch issue details via `ccw issue status <id> --json`
|
4. Fetch issue details via `ccw issue status <id> --json`
|
||||||
5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute'
|
5. **Analyze failure history**: Check `issue.feedback` for type='failure', stage='execute'
|
||||||
|
|||||||
@@ -42,8 +42,8 @@ TodoWrite([
|
|||||||
# 3. Launch parallel jobs (max 4)
|
# 3. Launch parallel jobs (max 4)
|
||||||
|
|
||||||
# Depth 5 example (Layer 3 - use multi-layer):
|
# Depth 5 example (Layer 3 - use multi-layer):
|
||||||
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/analysis","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/analysis","tool":"gemini"}' &
|
||||||
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./.claude/workflows/cli-templates/prompts/development","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"multi-layer","path":"./~/.ccw/workflows/cli-templates/prompts/development","tool":"gemini"}' &
|
||||||
|
|
||||||
# Depth 1 example (Layer 2 - use single-layer):
|
# Depth 1 example (Layer 2 - use single-layer):
|
||||||
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' &
|
ccw tool exec update_module_claude '{"strategy":"single-layer","path":"./src/auth","tool":"gemini"}' &
|
||||||
|
|||||||
14
CHANGELOG.md
14
CHANGELOG.md
@@ -767,10 +767,10 @@ This release introduces a comprehensive reorganization of the CLI template syste
|
|||||||
#### 📦 Modified Files
|
#### 📦 Modified Files
|
||||||
|
|
||||||
**Templates** (19 renames, 2 directory removals):
|
**Templates** (19 renames, 2 directory removals):
|
||||||
- `.claude/workflows/cli-templates/prompts/analysis/` - 8 templates reorganized
|
- `~/.ccw/workflows/cli-templates/prompts/analysis/` - 8 templates reorganized
|
||||||
- `.claude/workflows/cli-templates/prompts/development/` - 5 templates reorganized
|
- `~/.ccw/workflows/cli-templates/prompts/development/` - 5 templates reorganized
|
||||||
- `.claude/workflows/cli-templates/prompts/planning/` - 5 templates reorganized
|
- `~/.ccw/workflows/cli-templates/prompts/planning/` - 5 templates reorganized
|
||||||
- `.claude/workflows/cli-templates/prompts/memory/` - 1 template reorganized
|
- `~/.ccw/workflows/cli-templates/prompts/memory/` - 1 template reorganized
|
||||||
- Removed: `implementation/`, `review/` directories
|
- Removed: `implementation/`, `review/` directories
|
||||||
|
|
||||||
**Commands** (5 files, 21 references):
|
**Commands** (5 files, 21 references):
|
||||||
@@ -781,8 +781,8 @@ This release introduces a comprehensive reorganization of the CLI template syste
|
|||||||
- `.claude/commands/workflow/tools/test-task-generate.md`
|
- `.claude/commands/workflow/tools/test-task-generate.md`
|
||||||
|
|
||||||
**Documentation**:
|
**Documentation**:
|
||||||
- `.claude/workflows/intelligent-tools-strategy.md`
|
- `~/.ccw/workflows/intelligent-tools-strategy.md`
|
||||||
- `.claude/workflows/command-template-update-summary.md` (new)
|
- `~/.ccw/workflows/command-template-update-summary.md` (new)
|
||||||
|
|
||||||
#### 🔗 Upgrade Notes
|
#### 🔗 Upgrade Notes
|
||||||
|
|
||||||
@@ -1067,7 +1067,7 @@ This release consolidates the agent architecture and enhances workflow commands
|
|||||||
- `.claude/agents/universal-executor.md` - New consolidated agent definition
|
- `.claude/agents/universal-executor.md` - New consolidated agent definition
|
||||||
- `.claude/commands/workflow/session/complete.md` - Enhanced session management
|
- `.claude/commands/workflow/session/complete.md` - Enhanced session management
|
||||||
- `.claude/commands/workflow/tools/context-gather.md` - Improved context filtering
|
- `.claude/commands/workflow/tools/context-gather.md` - Improved context filtering
|
||||||
- `.claude/workflows/cli-templates/prompts/archive/` - Legacy template archive
|
- `~/.ccw/workflows/cli-templates/prompts/archive/` - Legacy template archive
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { getPackageRoot as findPackageRoot, getPackageVersion } from '../utils/p
|
|||||||
|
|
||||||
// Workflow source directories (relative to package root)
|
// Workflow source directories (relative to package root)
|
||||||
const WORKFLOW_SOURCES = [
|
const WORKFLOW_SOURCES = [
|
||||||
{ name: '.claude/workflows', description: 'Claude workflows' },
|
{ name: '~/.ccw/workflows', description: 'Claude workflows' },
|
||||||
{ name: '.claude/scripts', description: 'Claude scripts' },
|
{ name: '.claude/scripts', description: 'Claude scripts' },
|
||||||
{ name: '.claude/templates', description: 'Claude templates' },
|
{ name: '.claude/templates', description: 'Claude templates' },
|
||||||
{ name: '.codex/prompts', description: 'Codex prompts' },
|
{ name: '.codex/prompts', description: 'Codex prompts' },
|
||||||
@@ -314,7 +314,7 @@ function showWorkflowHelp(): void {
|
|||||||
console.log(chalk.white(' Examples:'));
|
console.log(chalk.white(' Examples:'));
|
||||||
console.log(chalk.gray(' ccw workflow install # Install all workflows'));
|
console.log(chalk.gray(' ccw workflow install # Install all workflows'));
|
||||||
console.log(chalk.gray(' ccw workflow install -f # Force install'));
|
console.log(chalk.gray(' ccw workflow install -f # Force install'));
|
||||||
console.log(chalk.gray(' ccw workflow install --source .claude/workflows'));
|
console.log(chalk.gray(' ccw workflow install --source ~/.ccw/workflows'));
|
||||||
console.log(chalk.gray(' ccw workflow list # List installed'));
|
console.log(chalk.gray(' ccw workflow list # List installed'));
|
||||||
console.log(chalk.gray(' ccw workflow sync # Update workflows'));
|
console.log(chalk.gray(' ccw workflow sync # Update workflows'));
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const DEFAULT_MODELS: Record<string, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Template paths (relative to user home directory)
|
// 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
|
// Define Zod schema for validation
|
||||||
const ParamsSchema = z.object({
|
const ParamsSchema = z.object({
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ function detectMatrixDimensions(prototypesDir) {
|
|||||||
function loadTemplate(templatePath) {
|
function loadTemplate(templatePath) {
|
||||||
const defaultPath = resolve(
|
const defaultPath = resolve(
|
||||||
process.env.HOME || process.env.USERPROFILE,
|
process.env.HOME || process.env.USERPROFILE,
|
||||||
'.claude/workflows/_template-compare-matrix.html'
|
'~/.ccw/workflows/_template-compare-matrix.html'
|
||||||
);
|
);
|
||||||
|
|
||||||
const path = templatePath || defaultPath;
|
const path = templatePath || defaultPath;
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ function scanDirectoryStructure(targetPath, strategy) {
|
|||||||
function loadTemplate() {
|
function loadTemplate() {
|
||||||
const templatePath = join(
|
const templatePath = join(
|
||||||
process.env.HOME || process.env.USERPROFILE,
|
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)) {
|
if (existsSync(templatePath)) {
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ function writePrototypeHtml(filePath: string, target: string, style: number, lay
|
|||||||
|
|
||||||
describe('ui_generate_preview visual regression', () => {
|
describe('ui_generate_preview visual regression', () => {
|
||||||
const prototypesDir = mkdtempSync(join(tmpdir(), 'ccw-ui-generate-preview-'));
|
const prototypesDir = mkdtempSync(join(tmpdir(), 'ccw-ui-generate-preview-'));
|
||||||
const templatePath = resolve(process.cwd(), '.claude/workflows/_template-compare-matrix.html');
|
const templatePath = resolve(process.cwd(), '~/.ccw/workflows/_template-compare-matrix.html');
|
||||||
|
|
||||||
let server: StaticServer | undefined;
|
let server: StaticServer | undefined;
|
||||||
let browser: import('playwright').Browser | undefined;
|
let browser: import('playwright').Browser | undefined;
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
".claude/agents/",
|
".claude/agents/",
|
||||||
".claude/commands/",
|
".claude/commands/",
|
||||||
".claude/output-styles/",
|
".claude/output-styles/",
|
||||||
".claude/workflows/",
|
"~/.ccw/workflows/",
|
||||||
".claude/scripts/",
|
".claude/scripts/",
|
||||||
".claude/prompt-templates/",
|
".claude/prompt-templates/",
|
||||||
".claude/python_script/",
|
".claude/python_script/",
|
||||||
|
|||||||
Reference in New Issue
Block a user