claude-code-workflow 6.3.1 → 6.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/.claude/CLAUDE.md +9 -1
  2. package/.claude/commands/workflow/lite-plan.md +2 -2
  3. package/.claude/workflows/cli-tools-usage.md +515 -516
  4. package/ccw/dist/cli.d.ts.map +1 -1
  5. package/ccw/dist/cli.js +6 -1
  6. package/ccw/dist/cli.js.map +1 -1
  7. package/ccw/dist/commands/cli.d.ts +1 -1
  8. package/ccw/dist/commands/cli.d.ts.map +1 -1
  9. package/ccw/dist/commands/cli.js +71 -7
  10. package/ccw/dist/commands/cli.js.map +1 -1
  11. package/ccw/dist/tools/cli-executor.d.ts.map +1 -1
  12. package/ccw/dist/tools/cli-executor.js +19 -7
  13. package/ccw/dist/tools/cli-executor.js.map +1 -1
  14. package/ccw/dist/tools/cli-history-store.d.ts +33 -0
  15. package/ccw/dist/tools/cli-history-store.d.ts.map +1 -1
  16. package/ccw/dist/tools/cli-history-store.js +89 -5
  17. package/ccw/dist/tools/cli-history-store.js.map +1 -1
  18. package/ccw/src/cli.ts +263 -258
  19. package/ccw/src/commands/cli.ts +967 -884
  20. package/ccw/src/tools/cli-executor.ts +20 -7
  21. package/ccw/src/tools/cli-history-store.ts +125 -5
  22. package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
  23. package/codex-lens/src/codexlens/config.py +3 -0
  24. package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-313.pyc +0 -0
  25. package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
  26. package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
  27. package/codex-lens/src/codexlens/search/chain_search.py +71 -1
  28. package/codex-lens/src/codexlens/search/ranking.py +274 -274
  29. package/codex-lens/src/codexlens/semantic/__pycache__/chunker.cpython-313.pyc +0 -0
  30. package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-313.pyc +0 -0
  31. package/codex-lens/src/codexlens/storage/__pycache__/global_index.cpython-313.pyc +0 -0
  32. package/codex-lens/src/codexlens/storage/__pycache__/index_tree.cpython-313.pyc +0 -0
  33. package/codex-lens/src/codexlens/storage/dir_index.py +1888 -1850
  34. package/codex-lens/src/codexlens/storage/global_index.py +365 -0
  35. package/codex-lens/src/codexlens/storage/index_tree.py +83 -10
  36. package/package.json +1 -1
package/.claude/CLAUDE.md CHANGED
@@ -15,11 +15,19 @@ Available CLI endpoints are dynamically defined by the config file:
15
15
  - Custom API endpoints registered via the Dashboard
16
16
  - Managed through the CCW Dashboard Status page
17
17
 
18
- ## Agent Execution
18
+ ## Tool Execution
19
19
 
20
+ ### Agent Calls
20
21
  - **Always use `run_in_background: false`** for Task tool agent calls: `Task({ subagent_type: "xxx", prompt: "...", run_in_background: false })` to ensure synchronous execution and immediate result visibility
21
22
  - **TaskOutput usage**: Only use `TaskOutput({ task_id: "xxx", block: false })` + sleep loop to poll completion status. NEVER read intermediate output during agent/CLI execution - wait for final result only
22
23
 
24
+ ### CLI Tool Calls (ccw cli)
25
+ - **Always use `run_in_background: true`** for Bash tool when calling ccw cli:
26
+ ```
27
+ Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true })
28
+ ```
29
+ - **After CLI call**: If no other tasks, stop immediately - let CLI execute in background, do NOT poll with TaskOutput
30
+
23
31
  ## Code Diagnostics
24
32
 
25
33
  - **Prefer `mcp__ide__getDiagnostics`** for code error checking over shell-based TypeScript compilation
@@ -15,7 +15,7 @@ Intelligent lightweight planning command with dynamic workflow adaptation based
15
15
  - Intelligent task analysis with automatic exploration detection
16
16
  - Dynamic code exploration (cli-explore-agent) when codebase understanding needed
17
17
  - Interactive clarification after exploration to gather missing information
18
- - Adaptive planning strategy (direct Claude vs cli-lite-planning-agent) based on complexity
18
+ - Adaptive planning: Low complexity → Direct Claude; Medium/High cli-lite-planning-agent
19
19
  - Two-step confirmation: plan display → multi-dimensional input collection
20
20
  - Execution dispatch with complete context handoff to lite-execute
21
21
 
@@ -38,7 +38,7 @@ Phase 1: Task Analysis & Exploration
38
38
  ├─ Parse input (description or .md file)
39
39
  ├─ intelligent complexity assessment (Low/Medium/High)
40
40
  ├─ Exploration decision (auto-detect or --explore flag)
41
- ├─ ⚠️ Context protection: If file reading ≥50k chars → force cli-explore-agent
41
+ ├─ Context protection: If file reading ≥50k chars → force cli-explore-agent
42
42
  └─ Decision:
43
43
  ├─ needsExploration=true → Launch parallel cli-explore-agents (1-4 based on complexity)
44
44
  └─ needsExploration=false → Skip to Phase 2/3