red64-cli 0.2.0 → 0.5.0

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 (63) hide show
  1. package/README.md +186 -337
  2. package/dist/cli/parseArgs.d.ts.map +1 -1
  3. package/dist/cli/parseArgs.js +5 -13
  4. package/dist/cli/parseArgs.js.map +1 -1
  5. package/dist/components/init/types.d.ts +0 -2
  6. package/dist/components/init/types.d.ts.map +1 -1
  7. package/dist/components/screens/HelpScreen.d.ts.map +1 -1
  8. package/dist/components/screens/HelpScreen.js +0 -2
  9. package/dist/components/screens/HelpScreen.js.map +1 -1
  10. package/dist/components/screens/InitScreen.d.ts.map +1 -1
  11. package/dist/components/screens/InitScreen.js +5 -8
  12. package/dist/components/screens/InitScreen.js.map +1 -1
  13. package/dist/components/screens/ListScreen.d.ts.map +1 -1
  14. package/dist/components/screens/ListScreen.js +28 -3
  15. package/dist/components/screens/ListScreen.js.map +1 -1
  16. package/dist/components/screens/StartScreen.d.ts.map +1 -1
  17. package/dist/components/screens/StartScreen.js +149 -15
  18. package/dist/components/screens/StartScreen.js.map +1 -1
  19. package/dist/components/screens/StatusScreen.d.ts.map +1 -1
  20. package/dist/components/screens/StatusScreen.js +16 -1
  21. package/dist/components/screens/StatusScreen.js.map +1 -1
  22. package/dist/components/ui/ArtifactsSidebar.d.ts +19 -0
  23. package/dist/components/ui/ArtifactsSidebar.d.ts.map +1 -0
  24. package/dist/components/ui/ArtifactsSidebar.js +51 -0
  25. package/dist/components/ui/ArtifactsSidebar.js.map +1 -0
  26. package/dist/components/ui/FeatureSidebar.d.ts.map +1 -1
  27. package/dist/components/ui/FeatureSidebar.js +1 -1
  28. package/dist/components/ui/FeatureSidebar.js.map +1 -1
  29. package/dist/components/ui/index.d.ts +1 -0
  30. package/dist/components/ui/index.d.ts.map +1 -1
  31. package/dist/components/ui/index.js +1 -0
  32. package/dist/components/ui/index.js.map +1 -1
  33. package/dist/services/AgentInvoker.d.ts.map +1 -1
  34. package/dist/services/AgentInvoker.js +76 -37
  35. package/dist/services/AgentInvoker.js.map +1 -1
  36. package/dist/services/ClaudeErrorDetector.d.ts +1 -1
  37. package/dist/services/ClaudeErrorDetector.d.ts.map +1 -1
  38. package/dist/services/ClaudeErrorDetector.js +4 -3
  39. package/dist/services/ClaudeErrorDetector.js.map +1 -1
  40. package/dist/services/ClaudeHealthCheck.d.ts +2 -0
  41. package/dist/services/ClaudeHealthCheck.d.ts.map +1 -1
  42. package/dist/services/ClaudeHealthCheck.js +38 -12
  43. package/dist/services/ClaudeHealthCheck.js.map +1 -1
  44. package/dist/services/ConfigService.d.ts +1 -0
  45. package/dist/services/ConfigService.d.ts.map +1 -1
  46. package/dist/services/ConfigService.js.map +1 -1
  47. package/dist/services/DockerRunner.js +1 -1
  48. package/dist/services/DockerRunner.js.map +1 -1
  49. package/dist/services/PhaseExecutor.d.ts.map +1 -1
  50. package/dist/services/PhaseExecutor.js +2 -1
  51. package/dist/services/PhaseExecutor.js.map +1 -1
  52. package/dist/services/TaskRunner.d.ts.map +1 -1
  53. package/dist/services/TaskRunner.js +2 -1
  54. package/dist/services/TaskRunner.js.map +1 -1
  55. package/dist/types/index.d.ts +16 -3
  56. package/dist/types/index.d.ts.map +1 -1
  57. package/dist/types/index.js.map +1 -1
  58. package/framework/.red64/settings/templates/specs/gap-analysis.md +163 -0
  59. package/framework/agents/claude/.claude/agents/red64/validate-gap.md +13 -7
  60. package/framework/agents/claude/.claude/commands/red64/validate-gap.md +4 -0
  61. package/framework/agents/codex/.codex/agents/red64/validate-gap.md +13 -7
  62. package/framework/agents/codex/.codex/commands/red64/validate-gap.md +4 -0
  63. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: validate-gap-agent
3
3
  description: Analyze implementation gap between requirements and existing codebase
4
- tools: Read, Grep, Glob, WebSearch, WebFetch
4
+ tools: Read, Write, Edit, Grep, Glob, WebSearch, WebFetch
5
5
  model: inherit
6
6
  color: yellow
7
7
  ---
@@ -49,6 +49,7 @@ Analyze implementation gap for feature based on approved requirements and existi
49
49
 
50
50
  2. **Read Analysis Guidelines**:
51
51
  - Read `.red64/settings/rules/gap-analysis.md` for comprehensive analysis framework
52
+ - Read `.red64/settings/templates/specs/gap-analysis.md` for document structure
52
53
 
53
54
  3. **Execute Gap Analysis**:
54
55
  - Follow gap-analysis.md framework for thorough investigation
@@ -57,11 +58,15 @@ Analyze implementation gap for feature based on approved requirements and existi
57
58
  - Evaluate multiple implementation approaches (extend/new/hybrid)
58
59
  - Use language specified in spec.json for output
59
60
 
60
- 4. **Generate Analysis Document**:
61
- - Create comprehensive gap analysis following the output guidelines in gap-analysis.md
61
+ 4. **Write Analysis Document**:
62
+ - **Write gap analysis to `.red64/specs/{feature}/gap-analysis.md`** using the template structure
63
+ - Include: Requirement-to-Asset Map, Options A/B/C, Effort/Risk assessments, Recommendations
62
64
  - Present multiple viable options with trade-offs
63
65
  - Flag areas requiring further research
64
66
 
67
+ 5. **Update Metadata**:
68
+ - Edit `.red64/specs/{feature}/spec.json` to set `phase: "gap-analyzed"` if needed
69
+
65
70
  ## Important Constraints
66
71
  - **Information over Decisions**: Provide analysis and options, not final implementation choices
67
72
  - **Multiple Options**: Present viable alternatives when applicable
@@ -69,22 +74,23 @@ Analyze implementation gap for feature based on approved requirements and existi
69
74
  - **Explicit Gaps**: Clearly flag areas needing research or investigation
70
75
 
71
76
  ## Tool Guidance
72
- - **Read first**: Load all context (spec, steering, rules) before analysis
77
+ - **Read first**: Load all context (spec, steering, rules, templates) before analysis
73
78
  - **Grep extensively**: Search codebase for patterns, conventions, and integration points
74
79
  - **WebSearch/WebFetch**: Research external dependencies and best practices when needed
75
- - **Write last**: Generate analysis only after complete investigation
80
+ - **Write last**: Write gap-analysis.md only after complete investigation
76
81
 
77
82
  ## Output Description
78
83
  Provide output in the language specified in spec.json with:
79
84
 
80
85
  1. **Analysis Summary**: Brief overview (3-5 bullets) of scope, challenges, and recommendations
81
- 2. **Document Status**: Confirm analysis approach used
86
+ 2. **Document Status**: Confirm gap-analysis.md was created at `.red64/specs/{feature}/gap-analysis.md`
82
87
  3. **Next Steps**: Guide user on proceeding to design phase
83
88
 
84
89
  **Format Requirements**:
85
90
  - Use Markdown headings for clarity
86
91
  - Keep summary concise (under 300 words)
87
- - Detailed analysis follows gap-analysis.md output guidelines
92
+ - Include the full path to the generated gap-analysis.md file
93
+ - Detailed analysis is in the generated document
88
94
 
89
95
  ## Safety & Fallback
90
96
 
@@ -35,6 +35,10 @@ File patterns to read:
35
35
  - .red64/specs/$1/requirements.md
36
36
  - .red64/steering/*.md
37
37
  - .red64/settings/rules/gap-analysis.md
38
+ - .red64/settings/templates/specs/gap-analysis.md
39
+
40
+ Output:
41
+ - Write gap analysis document to: .red64/specs/$1/gap-analysis.md
38
42
  """
39
43
  )
40
44
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "red64-cli",
3
- "version": "0.2.0",
3
+ "version": "0.5.0",
4
4
  "description": "Red64 Flow Orchestrator - Deterministic spec-driven development CLI",
5
5
  "type": "module",
6
6
  "bin": {