claude-code-workflow 6.3.16 → 6.3.18

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 (61) hide show
  1. package/.claude/CLAUDE.md +2 -2
  2. package/.claude/agents/action-planning-agent.md +3 -0
  3. package/.claude/agents/cli-execution-agent.md +2 -0
  4. package/.claude/agents/cli-explore-agent.md +3 -0
  5. package/.claude/agents/cli-lite-planning-agent.md +3 -0
  6. package/.claude/agents/cli-planning-agent.md +3 -0
  7. package/.claude/agents/code-developer.md +3 -0
  8. package/.claude/agents/context-search-agent.md +3 -0
  9. package/.claude/agents/doc-generator.md +3 -0
  10. package/.claude/agents/issue-plan-agent.md +3 -0
  11. package/.claude/agents/issue-queue-agent.md +3 -0
  12. package/.claude/agents/universal-executor.md +3 -0
  13. package/.claude/commands/issue/new.md +323 -309
  14. package/.codex/AGENTS.md +6 -0
  15. package/.codex/prompts/issue-plan.md +46 -1
  16. package/.codex/prompts/issue-queue.md +45 -3
  17. package/ccw/dist/commands/cli.d.ts.map +1 -1
  18. package/ccw/dist/commands/cli.js +106 -14
  19. package/ccw/dist/commands/cli.js.map +1 -1
  20. package/ccw/dist/commands/issue.d.ts.map +1 -1
  21. package/ccw/dist/commands/issue.js +29 -4
  22. package/ccw/dist/commands/issue.js.map +1 -1
  23. package/ccw/dist/core/routes/litellm-api-routes.d.ts.map +1 -1
  24. package/ccw/dist/core/routes/litellm-api-routes.js +8 -3
  25. package/ccw/dist/core/routes/litellm-api-routes.js.map +1 -1
  26. package/ccw/dist/tools/cli-executor.d.ts +5 -0
  27. package/ccw/dist/tools/cli-executor.d.ts.map +1 -1
  28. package/ccw/dist/tools/cli-executor.js +24 -0
  29. package/ccw/dist/tools/cli-executor.js.map +1 -1
  30. package/ccw/dist/tools/codex-lens.d.ts.map +1 -1
  31. package/ccw/dist/tools/codex-lens.js +2 -19
  32. package/ccw/dist/tools/codex-lens.js.map +1 -1
  33. package/ccw/dist/utils/python-utils.d.ts +36 -0
  34. package/ccw/dist/utils/python-utils.d.ts.map +1 -0
  35. package/ccw/dist/utils/python-utils.js +115 -0
  36. package/ccw/dist/utils/python-utils.js.map +1 -0
  37. package/ccw/src/commands/cli.ts +120 -14
  38. package/ccw/src/commands/issue.ts +31 -4
  39. package/ccw/src/core/routes/litellm-api-routes.ts +10 -3
  40. package/ccw/src/templates/dashboard-css/33-cli-stream-viewer.css +8 -12
  41. package/ccw/src/tools/cli-executor.ts +28 -0
  42. package/ccw/src/tools/codex-lens.ts +2 -19
  43. package/ccw/src/utils/python-utils.ts +121 -0
  44. package/codex-lens/src/codexlens/__pycache__/config.cpython-313.pyc +0 -0
  45. package/codex-lens/src/codexlens/__pycache__/entities.cpython-313.pyc +0 -0
  46. package/codex-lens/src/codexlens/indexing/__pycache__/symbol_extractor.cpython-313.pyc +0 -0
  47. package/codex-lens/src/codexlens/parsers/__pycache__/factory.cpython-313.pyc +0 -0
  48. package/codex-lens/src/codexlens/parsers/__pycache__/treesitter_parser.cpython-313.pyc +0 -0
  49. package/codex-lens/src/codexlens/search/__pycache__/chain_search.cpython-313.pyc +0 -0
  50. package/codex-lens/src/codexlens/search/__pycache__/enrichment.cpython-313.pyc +0 -0
  51. package/codex-lens/src/codexlens/search/__pycache__/graph_expander.cpython-313.pyc +0 -0
  52. package/codex-lens/src/codexlens/search/__pycache__/hybrid_search.cpython-313.pyc +0 -0
  53. package/codex-lens/src/codexlens/search/__pycache__/ranking.cpython-313.pyc +0 -0
  54. package/codex-lens/src/codexlens/search/enrichment.py +150 -150
  55. package/codex-lens/src/codexlens/semantic/__pycache__/reranker.cpython-313.pyc +0 -0
  56. package/codex-lens/src/codexlens/storage/__pycache__/dir_index.cpython-313.pyc +0 -0
  57. package/codex-lens/src/codexlens/storage/__pycache__/index_tree.cpython-313.pyc +0 -0
  58. package/codex-lens/src/codexlens/storage/migrations/__pycache__/migration_006_enhance_relationships.cpython-313.pyc +0 -0
  59. package/codex-lens/src/codexlens/storage/migrations/__pycache__/migration_007_add_graph_neighbors.cpython-313.pyc +0 -0
  60. package/codex-lens/src/codexlens/storage/migrations/__pycache__/migration_008_add_merkle_hashes.cpython-313.pyc +0 -0
  61. package/package.json +1 -1
package/.claude/CLAUDE.md CHANGED
@@ -22,11 +22,11 @@ Available CLI endpoints are dynamically defined by the config file:
22
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
23
23
 
24
24
  ### CLI Tool Calls (ccw cli)
25
- - **Always use `run_in_background: true`** for Bash tool when calling ccw cli:
25
+ - **Default: `run_in_background: true`** - Unless otherwise specified, always use background execution for CLI calls:
26
26
  ```
27
27
  Bash({ command: "ccw cli -p '...' --tool gemini", run_in_background: true })
28
28
  ```
29
- - **After CLI call**: If no other tasks, stop immediately - let CLI execute in background, do NOT poll with TaskOutput
29
+ - **After CLI call**: Stop immediately - let CLI execute in background, do NOT poll with TaskOutput
30
30
 
31
31
  ## Code Diagnostics
32
32
 
@@ -847,6 +847,9 @@ Use `analysis_results.complexity` or task count to determine structure:
847
847
  - Apply 举一反三 principle: Adapt pre-analysis patterns to task-specific needs dynamically
848
848
  - Follow template validation: Complete IMPL_PLAN.md template validation checklist before finalization
849
849
 
850
+ **Bash Tool**:
851
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
852
+
850
853
  **NEVER:**
851
854
  - Load files directly (use provided context package instead)
852
855
  - Assume default locations (always use session_id in paths)
@@ -181,6 +181,8 @@ ccw cli -p "CONTEXT: @**/* @../shared/**/*" --tool gemini --mode analysis --cd s
181
181
 
182
182
  **Timeout**: Simple 20min | Medium 40min | Complex 60min (Codex ×1.5)
183
183
 
184
+ **Bash Tool**: Use `run_in_background=false` for all CLI calls to ensure foreground execution
185
+
184
186
  ---
185
187
 
186
188
  ## Phase 5: Output Routing
@@ -174,6 +174,9 @@ Brief summary:
174
174
  7. Include file:line references in findings
175
175
  8. Attribute discovery source (bash/gemini)
176
176
 
177
+ **Bash Tool**:
178
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
179
+
177
180
  **NEVER**:
178
181
  1. Modify any files (read-only agent)
179
182
  2. Skip schema reading step when schema is specified
@@ -437,6 +437,9 @@ function validateTask(task) {
437
437
  - Generate flow_control from dependencies
438
438
  - Handle CLI errors with fallback chain
439
439
 
440
+ **Bash Tool**:
441
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
442
+
440
443
  **NEVER**:
441
444
  - Execute implementation (return plan only)
442
445
  - Use vague acceptance criteria
@@ -446,6 +446,9 @@ See: `.process/iteration-{iteration}-cli-output.txt`
446
446
  - **Generate measurable acceptance criteria**: Include verification commands
447
447
  - **Apply layer-specific guidance**: Use test_type to customize analysis approach
448
448
 
449
+ **Bash Tool**:
450
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
451
+
449
452
  **NEVER:**
450
453
  - Execute tests directly (orchestrator manages test execution)
451
454
  - Skip CLI analysis (always run CLI even for simple failures)
@@ -296,6 +296,9 @@ Before completing any task, verify:
296
296
  - Make assumptions - verify with existing code
297
297
  - Create unnecessary complexity
298
298
 
299
+ **Bash Tool**:
300
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
301
+
299
302
  **ALWAYS:**
300
303
  - Verify module/package existence with rg/grep/search before referencing
301
304
  - Write working code incrementally
@@ -561,6 +561,9 @@ Output: .workflow/session/{session}/.process/context-package.json
561
561
  - Include binaries/generated files
562
562
  - Use ripgrep if CodexLens available
563
563
 
564
+ **Bash Tool**:
565
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
566
+
564
567
  **ALWAYS**:
565
568
  - Initialize CodexLens in Phase 0
566
569
  - Execute get_modules_by_depth.sh
@@ -322,6 +322,9 @@ Before completing the task, you must verify the following:
322
322
  - **Update Progress**: Use `TodoWrite` to track each step of the execution.
323
323
  - **Generate a Summary**: Create a detailed summary upon task completion.
324
324
 
325
+ **Bash Tool**:
326
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
327
+
325
328
  **NEVER**:
326
329
  - **Make Planning Decisions**: Do not deviate from the instructions in the task JSON.
327
330
  - **Assume Context**: Do not guess information; gather it autonomously through the `pre_analysis` steps.
@@ -271,6 +271,9 @@ Each line is a solution JSON containing tasks. Schema: `cat .claude/workflows/cl
271
271
 
272
272
  ### 3.3 Guidelines
273
273
 
274
+ **Bash Tool**:
275
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
276
+
274
277
  **ALWAYS**:
275
278
  1. Read schema first: `cat .claude/workflows/cli-templates/schemas/solution-schema.json`
276
279
  2. Use ACE semantic search as PRIMARY exploration tool
@@ -271,6 +271,9 @@ Return brief summaries; full conflict details in separate files:
271
271
 
272
272
  ### 4.3 Guidelines
273
273
 
274
+ **Bash Tool**:
275
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
276
+
274
277
  **ALWAYS**:
275
278
  1. Build dependency graph before ordering
276
279
  2. Detect file overlaps between solutions
@@ -120,6 +120,9 @@ Before completing any task, verify:
120
120
  - Make assumptions - verify with existing materials
121
121
  - Skip quality verification steps
122
122
 
123
+ **Bash Tool**:
124
+ - Use `run_in_background=false` for all Bash/CLI calls to ensure foreground execution
125
+
123
126
  **ALWAYS:**
124
127
  - Verify resource/dependency existence before referencing
125
128
  - Execute tasks systematically and incrementally