mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-06 01:54:11 +08:00
- Implemented the ccw command as a main workflow orchestrator. - Added a 5-phase workflow including intent analysis, requirement clarification, workflow selection, user confirmation, and command execution. - Developed functions for analyzing user input, selecting workflows, and executing command chains. - Integrated TODO tracking for command execution progress. - Created comprehensive tests for the CommandRegistry, covering YAML parsing, command retrieval, and error handling.
Tools
This directory contains CCW “tools”: self-contained modules that implement concrete functionality (executors, integrations, etc.) that higher-level CLI and route layers call into.
CLI Executor
The CLI executor is split into focused modules to keep responsibilities clear and keep the public API stable via re-exports.
Entry point
ccw/src/tools/cli-executor.ts– thin facade that re-exports fromcli-executor-core.ts(stable import path for callers).
Modules
ccw/src/tools/cli-executor-core.ts– orchestrates tool execution, resume/merge logic, and conversation persistence wiring.ccw/src/tools/cli-executor-utils.ts– debug logging, tool availability checks (with cache), command building.ccw/src/tools/cli-executor-state.ts– conversation/history types + SQLite-backed storage helpers.ccw/src/tools/cli-prompt-builder.ts– prompt concatenation helpers (plain/YAML/JSON) and merged-conversation prompt formatting.
Dependency flow (high level)
cli-executor.ts
-> cli-executor-core.ts
-> cli-executor-utils.ts
-> cli-executor-state.ts
-> cli-prompt-builder.ts
Public API
- Prefer importing from
ccw/src/tools/cli-executor.ts. cli-executor-core.tsre-exports prompt helpers/types fromcli-prompt-builder.tsto preserve existing imports (PromptConcatenator,buildPrompt,PromptFormat, etc.).