@codemcp/workflows 6.19.2 → 6.20.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 (164) hide show
  1. package/package.json +2 -2
  2. package/packages/cli/dist/{chunk-4TXLRBGW.js → chunk-4N42FFJE.js} +2 -228
  3. package/packages/cli/dist/{cli-MNJS4MGX.js → cli-MFHC7UWY.js} +3 -3
  4. package/packages/cli/dist/{dist-T6Q2II5X.js → dist-ISN3FRV4.js} +2 -1
  5. package/packages/cli/dist/{dist-WS5DFBKD.js → dist-TDV3DJ2J.js} +1 -13
  6. package/packages/cli/dist/index.js +2 -2
  7. package/packages/cli/package.json +1 -1
  8. package/packages/cli/resources/workflows/adr.yaml +2 -4
  9. package/packages/cli/resources/workflows/boundary-testing.yaml +2 -9
  10. package/packages/cli/resources/workflows/bugfix.yaml +2 -13
  11. package/packages/cli/resources/workflows/c4-analysis.yaml +3 -5
  12. package/packages/cli/resources/workflows/epcc.yaml +2 -13
  13. package/packages/cli/resources/workflows/greenfield.yaml +2 -13
  14. package/packages/cli/resources/workflows/minor.yaml +2 -13
  15. package/packages/cli/resources/workflows/posts.yaml +2 -17
  16. package/packages/cli/resources/workflows/pr-review.yaml +2 -4
  17. package/packages/cli/resources/workflows/qrspi.yaml +10 -16
  18. package/packages/cli/resources/workflows/skilled-bugfix.yaml +2 -13
  19. package/packages/cli/resources/workflows/skilled-epcc.yaml +2 -13
  20. package/packages/cli/resources/workflows/skilled-greenfield.yaml +2 -13
  21. package/packages/cli/resources/workflows/slides.yaml +2 -22
  22. package/packages/cli/resources/workflows/tdd.yaml +12 -2
  23. package/packages/cli/resources/workflows/waterfall.yaml +2 -8
  24. package/packages/core/dist/index.d.ts +0 -1
  25. package/packages/core/dist/index.js +0 -1
  26. package/packages/core/dist/index.js.map +1 -1
  27. package/packages/core/dist/project-docs-manager.js +1 -0
  28. package/packages/core/dist/project-docs-manager.js.map +1 -1
  29. package/packages/core/package.json +1 -1
  30. package/packages/core/resources/workflows/adr.yaml +2 -4
  31. package/packages/core/resources/workflows/boundary-testing.yaml +2 -9
  32. package/packages/core/resources/workflows/bugfix.yaml +2 -13
  33. package/packages/core/resources/workflows/c4-analysis.yaml +3 -5
  34. package/packages/core/resources/workflows/epcc.yaml +2 -13
  35. package/packages/core/resources/workflows/greenfield.yaml +2 -13
  36. package/packages/core/resources/workflows/minor.yaml +2 -13
  37. package/packages/core/resources/workflows/posts.yaml +2 -17
  38. package/packages/core/resources/workflows/pr-review.yaml +2 -4
  39. package/packages/core/resources/workflows/qrspi.yaml +10 -16
  40. package/packages/core/resources/workflows/skilled-bugfix.yaml +2 -13
  41. package/packages/core/resources/workflows/skilled-epcc.yaml +2 -13
  42. package/packages/core/resources/workflows/skilled-greenfield.yaml +2 -13
  43. package/packages/core/resources/workflows/slides.yaml +2 -22
  44. package/packages/core/resources/workflows/tdd.yaml +12 -2
  45. package/packages/core/resources/workflows/waterfall.yaml +2 -8
  46. package/packages/docs/.vitepress/dist/404.html +1 -1
  47. package/packages/docs/.vitepress/dist/assets/{style.DfNfC54K.css → style.CuNDUwrv.css} +1 -1
  48. package/packages/docs/.vitepress/dist/dev/ARCHITECTURE.html +1 -1
  49. package/packages/docs/.vitepress/dist/dev/DEVELOPMENT.html +1 -1
  50. package/packages/docs/.vitepress/dist/dev/LOGGING.html +1 -1
  51. package/packages/docs/.vitepress/dist/dev/PUBLISHING.html +1 -1
  52. package/packages/docs/.vitepress/dist/index.html +1 -1
  53. package/packages/docs/.vitepress/dist/user/advanced-engineering.html +1 -1
  54. package/packages/docs/.vitepress/dist/user/agent-setup.html +1 -1
  55. package/packages/docs/.vitepress/dist/user/beads-integration.html +1 -1
  56. package/packages/docs/.vitepress/dist/user/crowd-mcp-integration.html +1 -1
  57. package/packages/docs/.vitepress/dist/user/custom-workflows.html +1 -1
  58. package/packages/docs/.vitepress/dist/user/git-commit-feature.html +1 -1
  59. package/packages/docs/.vitepress/dist/user/how-it-works.html +1 -1
  60. package/packages/docs/.vitepress/dist/user/long-term-memory.html +1 -1
  61. package/packages/docs/.vitepress/dist/user/packaged-workflows.html +1 -1
  62. package/packages/docs/.vitepress/dist/user/tutorial.html +1 -1
  63. package/packages/docs/.vitepress/dist/user/workflow-selection.html +1 -1
  64. package/packages/docs/.vitepress/dist/workflows/adr.html +1 -1
  65. package/packages/docs/.vitepress/dist/workflows/adr.yaml +2 -4
  66. package/packages/docs/.vitepress/dist/workflows/big-bang-conversion.html +1 -1
  67. package/packages/docs/.vitepress/dist/workflows/boundary-testing.html +1 -1
  68. package/packages/docs/.vitepress/dist/workflows/boundary-testing.yaml +2 -9
  69. package/packages/docs/.vitepress/dist/workflows/bugfix.html +1 -1
  70. package/packages/docs/.vitepress/dist/workflows/bugfix.yaml +2 -13
  71. package/packages/docs/.vitepress/dist/workflows/business-analysis.html +1 -1
  72. package/packages/docs/.vitepress/dist/workflows/c4-analysis.html +1 -1
  73. package/packages/docs/.vitepress/dist/workflows/c4-analysis.yaml +3 -5
  74. package/packages/docs/.vitepress/dist/workflows/epcc.html +1 -1
  75. package/packages/docs/.vitepress/dist/workflows/epcc.yaml +2 -13
  76. package/packages/docs/.vitepress/dist/workflows/game-beginner.html +1 -1
  77. package/packages/docs/.vitepress/dist/workflows/greenfield.html +1 -1
  78. package/packages/docs/.vitepress/dist/workflows/greenfield.yaml +2 -13
  79. package/packages/docs/.vitepress/dist/workflows/minor.html +1 -1
  80. package/packages/docs/.vitepress/dist/workflows/minor.yaml +2 -13
  81. package/packages/docs/.vitepress/dist/workflows/posts.html +1 -1
  82. package/packages/docs/.vitepress/dist/workflows/posts.yaml +2 -17
  83. package/packages/docs/.vitepress/dist/workflows/pr-review.html +1 -1
  84. package/packages/docs/.vitepress/dist/workflows/pr-review.yaml +2 -4
  85. package/packages/docs/.vitepress/dist/workflows/qrspi.html +1 -1
  86. package/packages/docs/.vitepress/dist/workflows/qrspi.yaml +10 -16
  87. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix-crowd.html +1 -1
  88. package/packages/docs/.vitepress/dist/workflows/sdd-bugfix.html +1 -1
  89. package/packages/docs/.vitepress/dist/workflows/sdd-feature-crowd.html +1 -1
  90. package/packages/docs/.vitepress/dist/workflows/sdd-feature.html +1 -1
  91. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield-crowd.html +1 -1
  92. package/packages/docs/.vitepress/dist/workflows/sdd-greenfield.html +1 -1
  93. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.html +1 -1
  94. package/packages/docs/.vitepress/dist/workflows/skilled-bugfix.yaml +2 -13
  95. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.html +1 -1
  96. package/packages/docs/.vitepress/dist/workflows/skilled-epcc.yaml +2 -13
  97. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.html +1 -1
  98. package/packages/docs/.vitepress/dist/workflows/skilled-greenfield.yaml +2 -13
  99. package/packages/docs/.vitepress/dist/workflows/slides.html +1 -1
  100. package/packages/docs/.vitepress/dist/workflows/slides.yaml +2 -22
  101. package/packages/docs/.vitepress/dist/workflows/tdd.html +1 -1
  102. package/packages/docs/.vitepress/dist/workflows/tdd.yaml +12 -2
  103. package/packages/docs/.vitepress/dist/workflows/waterfall.html +1 -1
  104. package/packages/docs/.vitepress/dist/workflows/waterfall.yaml +2 -8
  105. package/packages/docs/.vitepress/dist/workflows.html +1 -1
  106. package/packages/docs/package.json +1 -1
  107. package/packages/mcp-server/dist/index.js +2 -1
  108. package/packages/mcp-server/package.json +1 -1
  109. package/packages/mcp-server/resources/workflows/adr.yaml +2 -4
  110. package/packages/mcp-server/resources/workflows/boundary-testing.yaml +2 -9
  111. package/packages/mcp-server/resources/workflows/bugfix.yaml +2 -13
  112. package/packages/mcp-server/resources/workflows/c4-analysis.yaml +3 -5
  113. package/packages/mcp-server/resources/workflows/epcc.yaml +2 -13
  114. package/packages/mcp-server/resources/workflows/greenfield.yaml +2 -13
  115. package/packages/mcp-server/resources/workflows/minor.yaml +2 -13
  116. package/packages/mcp-server/resources/workflows/posts.yaml +2 -17
  117. package/packages/mcp-server/resources/workflows/pr-review.yaml +2 -4
  118. package/packages/mcp-server/resources/workflows/qrspi.yaml +10 -16
  119. package/packages/mcp-server/resources/workflows/skilled-bugfix.yaml +2 -13
  120. package/packages/mcp-server/resources/workflows/skilled-epcc.yaml +2 -13
  121. package/packages/mcp-server/resources/workflows/skilled-greenfield.yaml +2 -13
  122. package/packages/mcp-server/resources/workflows/slides.yaml +2 -22
  123. package/packages/mcp-server/resources/workflows/tdd.yaml +12 -2
  124. package/packages/mcp-server/resources/workflows/waterfall.yaml +2 -8
  125. package/packages/opencode-plugin/dist/index.js +2 -1
  126. package/packages/opencode-plugin/package.json +1 -1
  127. package/packages/opencode-plugin/resources/workflows/adr.yaml +2 -4
  128. package/packages/opencode-plugin/resources/workflows/boundary-testing.yaml +2 -9
  129. package/packages/opencode-plugin/resources/workflows/bugfix.yaml +2 -13
  130. package/packages/opencode-plugin/resources/workflows/c4-analysis.yaml +3 -5
  131. package/packages/opencode-plugin/resources/workflows/epcc.yaml +2 -13
  132. package/packages/opencode-plugin/resources/workflows/greenfield.yaml +2 -13
  133. package/packages/opencode-plugin/resources/workflows/minor.yaml +2 -13
  134. package/packages/opencode-plugin/resources/workflows/posts.yaml +2 -17
  135. package/packages/opencode-plugin/resources/workflows/pr-review.yaml +2 -4
  136. package/packages/opencode-plugin/resources/workflows/qrspi.yaml +10 -16
  137. package/packages/opencode-plugin/resources/workflows/skilled-bugfix.yaml +2 -13
  138. package/packages/opencode-plugin/resources/workflows/skilled-epcc.yaml +2 -13
  139. package/packages/opencode-plugin/resources/workflows/skilled-greenfield.yaml +2 -13
  140. package/packages/opencode-plugin/resources/workflows/slides.yaml +2 -22
  141. package/packages/opencode-plugin/resources/workflows/tdd.yaml +12 -2
  142. package/packages/opencode-plugin/resources/workflows/waterfall.yaml +2 -8
  143. package/packages/opencode-tui-plugin/package.json +1 -1
  144. package/packages/visualizer/dist/WorkflowVisualizer.vue +8 -0
  145. package/packages/visualizer/package.json +1 -1
  146. package/resources/workflows/adr.yaml +2 -4
  147. package/resources/workflows/boundary-testing.yaml +2 -9
  148. package/resources/workflows/bugfix.yaml +2 -13
  149. package/resources/workflows/c4-analysis.yaml +3 -5
  150. package/resources/workflows/epcc.yaml +2 -13
  151. package/resources/workflows/greenfield.yaml +2 -13
  152. package/resources/workflows/minor.yaml +2 -13
  153. package/resources/workflows/posts.yaml +2 -17
  154. package/resources/workflows/pr-review.yaml +2 -4
  155. package/resources/workflows/qrspi.yaml +10 -16
  156. package/resources/workflows/skilled-bugfix.yaml +2 -13
  157. package/resources/workflows/skilled-epcc.yaml +2 -13
  158. package/resources/workflows/skilled-greenfield.yaml +2 -13
  159. package/resources/workflows/slides.yaml +2 -22
  160. package/resources/workflows/tdd.yaml +12 -2
  161. package/resources/workflows/waterfall.yaml +2 -8
  162. package/packages/core/dist/state-machine.d.ts +0 -52
  163. package/packages/core/dist/state-machine.js +0 -256
  164. package/packages/core/dist/state-machine.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows",
3
- "version": "6.19.2",
3
+ "version": "6.20.0",
4
4
  "description": "A Model Context Protocol server that acts as an intelligent conversation state manager and development guide for LLMs, featuring comprehensive long-term memory with persistent project artifacts",
5
5
  "type": "module",
6
6
  "main": "packages/cli/dist/index.js",
@@ -51,7 +51,7 @@
51
51
  "typescript": "^5.9.3",
52
52
  "vitepress": "^1.6.4",
53
53
  "vitest": "4.0.18",
54
- "@codemcp/workflows-core": "6.19.2"
54
+ "@codemcp/workflows-core": "6.20.0"
55
55
  },
56
56
  "lint-staged": {
57
57
  "*.{ts,js,mts,cts,tsx,jsx}": [
@@ -2,227 +2,6 @@ import {
2
2
  __require
3
3
  } from "./chunk-R5U7XKVJ.js";
4
4
 
5
- // ../core/dist/state-machine.js
6
- var STATE_TRANSITIONS = [
7
- // FROM IDLE
8
- {
9
- from: "idle",
10
- to: "requirements",
11
- trigger: "new_feature_request",
12
- isModeled: true,
13
- instructions: "New feature request detected! Start requirements analysis by asking the user clarifying questions about WHAT they need. Focus on understanding their goals, scope, and constraints. Break down their needs into specific, actionable tasks and document them in the plan file. Mark completed requirements tasks as you progress.",
14
- transitionReason: "New feature request detected, starting requirements analysis"
15
- },
16
- // FROM REQUIREMENTS
17
- {
18
- from: "requirements",
19
- to: "requirements",
20
- trigger: "refine_requirements",
21
- isModeled: true,
22
- instructions: "Continue refining requirements. Ask more detailed questions to clarify scope, constraints, and user needs. Add any new requirements to the plan file and mark completed tasks. Ensure you have a complete understanding of WHAT needs to be built before moving to design.",
23
- transitionReason: "Requirements need further refinement and clarification"
24
- },
25
- {
26
- from: "requirements",
27
- to: "design",
28
- trigger: "requirements_complete",
29
- isModeled: true,
30
- instructions: "Requirements are complete! \u2705 Now transition to design phase. Help the user design the technical solution by asking about architecture, technologies, quality goals, and implementation approach. Focus on HOW to build what was defined in requirements. Document design decisions in the plan file and mark completed requirements tasks.",
31
- transitionReason: "All requirements tasks completed, moving to technical design"
32
- },
33
- {
34
- from: "requirements",
35
- to: "idle",
36
- trigger: "abandon_feature",
37
- isModeled: true,
38
- instructions: "Feature development abandoned. Clean up any temporary work and return to idle state. The plan file will remain for future reference if the user wants to resume this feature later.",
39
- transitionReason: "User decided to abandon this feature development"
40
- },
41
- // FROM DESIGN
42
- {
43
- from: "design",
44
- to: "design",
45
- trigger: "refine_design",
46
- isModeled: true,
47
- instructions: "Continue refining the technical design. Ask about architecture details, technology choices, data models, API design, and quality considerations. Update the plan file with design decisions and mark completed design tasks. Ensure the design is solid before implementation.",
48
- transitionReason: "Design needs further refinement and detail"
49
- },
50
- {
51
- from: "design",
52
- to: "requirements",
53
- trigger: "requirements_unclear",
54
- isModeled: true,
55
- instructions: "Design phase revealed unclear requirements. Return to requirements analysis to clarify the WHAT before continuing with HOW. Ask specific questions about the unclear aspects and update the plan file with refined requirements.",
56
- transitionReason: "Design work revealed gaps or ambiguities in requirements"
57
- },
58
- {
59
- from: "design",
60
- to: "implementation",
61
- trigger: "design_complete",
62
- isModeled: true,
63
- instructions: "Design is complete! \u2705 Now transition to implementation. Guide the user through building the solution following the design. Focus on coding best practices, proper structure, error handling, and basic testing. Update the plan file with implementation progress and mark completed design tasks.",
64
- transitionReason: "Technical design is complete, ready to start building"
65
- },
66
- {
67
- from: "design",
68
- to: "idle",
69
- trigger: "abandon_feature",
70
- isModeled: true,
71
- instructions: "Feature development abandoned during design phase. Clean up any design artifacts and return to idle state. The plan file will remain for future reference.",
72
- transitionReason: "User decided to abandon feature during design phase"
73
- },
74
- // FROM IMPLEMENTATION
75
- {
76
- from: "implementation",
77
- to: "implementation",
78
- trigger: "refine_implementation",
79
- isModeled: true,
80
- instructions: "Continue implementation work. Help with coding, debugging, structure improvements, and adding functionality. Follow best practices and ensure code quality. Update the plan file with progress and mark completed implementation tasks.",
81
- transitionReason: "Implementation work continues, adding features or improving code"
82
- },
83
- {
84
- from: "implementation",
85
- to: "design",
86
- trigger: "design_issues",
87
- isModeled: true,
88
- instructions: "Implementation revealed issues with the design. Return to design phase to address architectural problems or design gaps. Analyze what's not working and revise the technical approach. Update the plan file with design changes.",
89
- transitionReason: "Implementation work revealed problems with the current design"
90
- },
91
- {
92
- from: "implementation",
93
- to: "qa",
94
- trigger: "implementation_complete",
95
- isModeled: true,
96
- instructions: "Implementation is complete! \u2705 Now transition to quality assurance. Take these specific actions:\n\n1. **Syntax Check**: Run syntax checking tools or validate syntax manually\n2. **Build Project**: Build the project to verify it compiles without errors\n3. **Run Linter**: Execute linting tools to ensure code style consistency\n4. **Execute Tests**: Run existing tests to verify functionality\n\nThen conduct a multi-perspective code review:\n- **Security Perspective**: Check for vulnerabilities, input validation, authentication issues\n- **Performance Perspective**: Identify bottlenecks, inefficient algorithms, resource usage\n- **UX Perspective**: Evaluate from the end-user's viewpoint\n- **Maintainability Perspective**: Assess code readability, documentation, future maintenance\n- **Requirement Compliance**: Verify all requirements are properly implemented\n\nUpdate the plan file and mark completed implementation tasks.",
97
- transitionReason: "Core implementation is complete, ready for quality review"
98
- },
99
- {
100
- from: "implementation",
101
- to: "idle",
102
- trigger: "abandon_feature",
103
- isModeled: true,
104
- instructions: "Feature development abandoned during implementation. Clean up any incomplete code and return to idle state. The plan file and any completed work will remain for future reference.",
105
- transitionReason: "User decided to abandon feature during implementation"
106
- },
107
- // FROM QA (Quality Assurance)
108
- {
109
- from: "qa",
110
- to: "qa",
111
- trigger: "refine_qa",
112
- isModeled: true,
113
- instructions: "Continue quality assurance work. Take these specific actions if not already completed:\n\n1. **Syntax Check**: Run syntax checking tools or validate syntax manually\n2. **Build Project**: Build the project to verify it compiles without errors\n3. **Run Linter**: Execute linting tools to ensure code style consistency\n4. **Execute Tests**: Run existing tests to verify functionality\n\nContinue multi-perspective code review:\n- **Security Perspective**: Check for vulnerabilities, input validation, authentication issues\n- **Performance Perspective**: Identify bottlenecks, inefficient algorithms, resource usage\n- **UX Perspective**: Evaluate from the end-user's viewpoint\n- **Maintainability Perspective**: Assess code readability, documentation, future maintenance\n- **Requirement Compliance**: Verify all requirements are properly implemented\n\nUpdate the plan file with QA progress and mark completed tasks.",
114
- transitionReason: "Quality assurance work continues, improving code quality"
115
- },
116
- {
117
- from: "qa",
118
- to: "implementation",
119
- trigger: "implementation_issues",
120
- isModeled: true,
121
- instructions: "Quality assurance revealed implementation issues. Return to implementation phase to fix bugs, improve code quality, or add missing functionality. Focus on addressing the specific issues identified during QA review.",
122
- transitionReason: "QA review found issues that require implementation changes"
123
- },
124
- {
125
- from: "qa",
126
- to: "testing",
127
- trigger: "qa_complete",
128
- isModeled: true,
129
- instructions: "Quality assurance is complete! \u2705 Now transition to testing phase. Create comprehensive test plans, write and execute tests, validate feature completeness, and ensure everything works as expected. Update the plan file and mark completed QA tasks.",
130
- transitionReason: "Quality assurance is complete, ready for comprehensive testing"
131
- },
132
- {
133
- from: "qa",
134
- to: "idle",
135
- trigger: "abandon_feature",
136
- isModeled: true,
137
- instructions: "Feature development abandoned during QA phase. Clean up any QA artifacts and return to idle state. The plan file and completed work will remain for future reference.",
138
- transitionReason: "User decided to abandon feature during quality assurance"
139
- },
140
- // FROM TESTING
141
- {
142
- from: "testing",
143
- to: "testing",
144
- trigger: "refine_testing",
145
- isModeled: true,
146
- instructions: "Continue testing work. Create more test cases, improve test coverage, run integration tests, and validate edge cases. Update the plan file with testing progress and mark completed testing tasks.",
147
- transitionReason: "Testing work continues, improving coverage and validation"
148
- },
149
- {
150
- from: "testing",
151
- to: "qa",
152
- trigger: "qa_issues",
153
- isModeled: true,
154
- instructions: "Testing revealed quality issues. Return to QA phase to address code quality problems, documentation gaps, or requirement compliance issues identified during testing. Focus on the specific QA issues found.",
155
- transitionReason: "Testing found issues that require quality assurance attention"
156
- },
157
- {
158
- from: "testing",
159
- to: "complete",
160
- trigger: "testing_complete",
161
- isModeled: true,
162
- instructions: "Testing is complete! \u2705 The feature is fully implemented, tested, and ready for delivery. Transition to complete state. Summarize what was accomplished and prepare final documentation. Mark all testing tasks as complete.",
163
- transitionReason: "All testing is complete, feature is ready for delivery"
164
- },
165
- {
166
- from: "testing",
167
- to: "idle",
168
- trigger: "abandon_feature",
169
- isModeled: true,
170
- instructions: "Feature development abandoned during testing phase. Clean up any testing artifacts and return to idle state. The plan file and completed work will remain for future reference.",
171
- transitionReason: "User decided to abandon feature during testing phase"
172
- },
173
- // FROM COMPLETE
174
- {
175
- from: "complete",
176
- to: "idle",
177
- trigger: "feature_delivered",
178
- isModeled: true,
179
- instructions: "Feature has been delivered successfully! Return to idle state, ready for the next development task. The completed plan file serves as documentation of what was accomplished.",
180
- transitionReason: "Feature delivery complete, returning to idle state"
181
- },
182
- {
183
- from: "complete",
184
- to: "requirements",
185
- trigger: "new_feature_request",
186
- isModeled: true,
187
- instructions: "New feature request while previous feature is complete. Start fresh requirements analysis for the new feature. Ask clarifying questions about what they need and create a new development plan.",
188
- transitionReason: "New feature request received, starting new development cycle"
189
- }
190
- ];
191
- var DIRECT_PHASE_INSTRUCTIONS = {
192
- idle: "Returned to idle state. Ready to help with new feature development or other tasks.",
193
- requirements: "Starting requirements analysis. Ask the user clarifying questions about WHAT they need. Focus on understanding their goals, scope, constraints, and success criteria. Break down their needs into specific, actionable tasks and document them in the plan file. Mark completed requirements tasks as you progress.",
194
- design: "Starting design phase. Help the user design the technical solution by asking about architecture, technologies, data models, API design, and quality goals. Focus on HOW to implement what's needed. Document design decisions in the plan file and ensure the approach is solid before implementation.",
195
- implementation: "Starting implementation phase. Guide the user through building the solution following best practices. Focus on code structure, error handling, security, and maintainability. Write clean, well-documented code and include basic testing. Update the plan file with implementation progress.",
196
- qa: "Starting quality assurance phase. Take the following specific actions:\n\n1. **Syntax Check**: Run syntax checking tools or validate syntax manually\n2. **Build Project**: Build the project to verify it compiles without errors\n3. **Run Linter**: Execute linting tools to ensure code style consistency\n4. **Execute Tests**: Run existing tests to verify functionality\n\nThen conduct a multi-perspective code review:\n- **Security Perspective**: Check for vulnerabilities, input validation, authentication issues\n- **Performance Perspective**: Identify bottlenecks, inefficient algorithms, resource usage\n- **UX Perspective**: Evaluate from the end-user's viewpoint\n- **Maintainability Perspective**: Assess code readability, documentation, future maintenance\n- **Requirement Compliance**: Verify all requirements are properly implemented\n\nUpdate the plan file with QA progress and mark completed tasks.",
197
- testing: "Starting testing phase. Create comprehensive test plans, write and execute tests, validate feature completeness, and ensure everything works as expected. Focus on test coverage, edge cases, integration testing, and user acceptance validation.",
198
- complete: "Feature development is complete! All phases have been finished successfully. The feature is implemented, tested, and ready for delivery. Summarize what was accomplished and ensure all documentation is finalized."
199
- };
200
- function getTransitionInstructions(fromState, toState, trigger) {
201
- const modeledTransition = STATE_TRANSITIONS.find((t) => t.from === fromState && t.to === toState && (trigger ? t.trigger === trigger : true));
202
- if (modeledTransition) {
203
- return {
204
- instructions: modeledTransition.instructions,
205
- transitionReason: modeledTransition.transitionReason,
206
- isModeled: true
207
- };
208
- }
209
- return {
210
- instructions: DIRECT_PHASE_INSTRUCTIONS[toState],
211
- transitionReason: `Direct transition to ${toState} phase`,
212
- isModeled: false
213
- };
214
- }
215
- function getPossibleTransitions(fromState) {
216
- return STATE_TRANSITIONS.filter((t) => t.from === fromState);
217
- }
218
- function isModeledTransition(fromState, toState) {
219
- return STATE_TRANSITIONS.some((t) => t.from === fromState && t.to === toState && t.isModeled);
220
- }
221
- function getContinuePhaseInstructions(phase) {
222
- const continueTransition = STATE_TRANSITIONS.find((t) => t.from === phase && t.to === phase);
223
- return continueTransition?.instructions || DIRECT_PHASE_INSTRUCTIONS[phase];
224
- }
225
-
226
5
  // ../core/dist/state-machine-loader.js
227
6
  import fs from "fs";
228
7
 
@@ -5441,7 +5220,8 @@ var ProjectDocsManager = class {
5441
5220
  $DESIGN_DOC: paths.design,
5442
5221
  $VIBE_DIR: vibeDir,
5443
5222
  $BRANCH_NAME: branchDirName,
5444
- $VIBE_ROLE: agentRole
5223
+ $VIBE_ROLE: agentRole,
5224
+ $DONE_DEFAULT: "Feature work is complete. Do NOT transition to any other state \u2014 this is a terminal state. If this is a GitHub repository: create a PR. Always: present the final result to the user."
5445
5225
  };
5446
5226
  }
5447
5227
  /**
@@ -6640,12 +6420,6 @@ Do not use your own task management tools.`;
6640
6420
  }
6641
6421
 
6642
6422
  export {
6643
- STATE_TRANSITIONS,
6644
- DIRECT_PHASE_INSTRUCTIONS,
6645
- getTransitionInstructions,
6646
- getPossibleTransitions,
6647
- isModeledTransition,
6648
- getContinuePhaseInstructions,
6649
6423
  LogLevel,
6650
6424
  registerLogSink,
6651
6425
  clearLogSink,
@@ -2,7 +2,7 @@ import {
2
2
  StateMachineLoader,
3
3
  WorkflowManager,
4
4
  generateSystemPrompt
5
- } from "./chunk-4TXLRBGW.js";
5
+ } from "./chunk-4N42FFJE.js";
6
6
  import "./chunk-R5U7XKVJ.js";
7
7
 
8
8
  // src/cli.ts
@@ -998,11 +998,11 @@ var isLocal = existsSync3(join5(__dirname3, "../../core/dist/index.js"));
998
998
  var generateSystemPrompt2;
999
999
  var StateMachineLoader2;
1000
1000
  if (isLocal) {
1001
- const coreModule = await import("./dist-WS5DFBKD.js");
1001
+ const coreModule = await import("./dist-TDV3DJ2J.js");
1002
1002
  generateSystemPrompt2 = coreModule.generateSystemPrompt;
1003
1003
  StateMachineLoader2 = coreModule.StateMachineLoader;
1004
1004
  } else {
1005
- const coreModule = await import("./dist-WS5DFBKD.js");
1005
+ const coreModule = await import("./dist-TDV3DJ2J.js");
1006
1006
  generateSystemPrompt2 = coreModule.generateSystemPrompt;
1007
1007
  StateMachineLoader2 = coreModule.StateMachineLoader;
1008
1008
  }
@@ -9261,7 +9261,8 @@ var ProjectDocsManager = class {
9261
9261
  $DESIGN_DOC: paths.design,
9262
9262
  $VIBE_DIR: vibeDir,
9263
9263
  $BRANCH_NAME: branchDirName,
9264
- $VIBE_ROLE: agentRole
9264
+ $VIBE_ROLE: agentRole,
9265
+ $DONE_DEFAULT: "Feature work is complete. Do NOT transition to any other state \u2014 this is a terminal state. If this is a GitHub repository: create a PR. Always: present the final result to the user."
9265
9266
  };
9266
9267
  }
9267
9268
  /**
@@ -3,7 +3,6 @@ import {
3
3
  BeadsStateManager,
4
4
  ConfigManager,
5
5
  ConversationManager,
6
- DIRECT_PHASE_INSTRUCTIONS,
7
6
  FileDetectionManager,
8
7
  FileStorage,
9
8
  GitManager,
@@ -13,7 +12,6 @@ import {
13
12
  PathValidationUtils,
14
13
  PlanManager,
15
14
  ProjectDocsManager,
16
- STATE_TRANSITIONS,
17
15
  StateMachineLoader,
18
16
  TaskBackendManager,
19
17
  TemplateManager,
@@ -23,23 +21,18 @@ import {
23
21
  clearLogSink,
24
22
  createLogger,
25
23
  generateSystemPrompt,
26
- getContinuePhaseInstructions,
27
24
  getPathBasename,
28
- getPossibleTransitions,
29
- getTransitionInstructions,
30
- isModeledTransition,
31
25
  logger,
32
26
  registerLogSink,
33
27
  setLoggingLevel,
34
28
  setLoggingLevelFromString
35
- } from "./chunk-4TXLRBGW.js";
29
+ } from "./chunk-4N42FFJE.js";
36
30
  import "./chunk-R5U7XKVJ.js";
37
31
  export {
38
32
  BeadsIntegration,
39
33
  BeadsStateManager,
40
34
  ConfigManager,
41
35
  ConversationManager,
42
- DIRECT_PHASE_INSTRUCTIONS,
43
36
  FileDetectionManager,
44
37
  FileStorage,
45
38
  GitManager,
@@ -49,7 +42,6 @@ export {
49
42
  PathValidationUtils,
50
43
  PlanManager,
51
44
  ProjectDocsManager,
52
- STATE_TRANSITIONS,
53
45
  StateMachineLoader,
54
46
  TaskBackendManager,
55
47
  TemplateManager,
@@ -59,11 +51,7 @@ export {
59
51
  clearLogSink,
60
52
  createLogger,
61
53
  generateSystemPrompt,
62
- getContinuePhaseInstructions,
63
54
  getPathBasename,
64
- getPossibleTransitions,
65
- getTransitionInstructions,
66
- isModeledTransition,
67
55
  logger,
68
56
  registerLogSink,
69
57
  setLoggingLevel,
@@ -10,7 +10,7 @@ var args = process.argv.slice(2);
10
10
  if (args.length === 0) {
11
11
  const isLocal = existsSync(join(__dirname, "../../mcp-server/dist/index.js"));
12
12
  if (isLocal) {
13
- const { startMcpServer } = await import("./dist-T6Q2II5X.js");
13
+ const { startMcpServer } = await import("./dist-ISN3FRV4.js");
14
14
  await startMcpServer();
15
15
  } else {
16
16
  const mcpServerModule = "@codemcp/workflows-server";
@@ -18,6 +18,6 @@ if (args.length === 0) {
18
18
  await startMcpServer();
19
19
  }
20
20
  } else {
21
- const { runCli } = await import("./cli-MNJS4MGX.js");
21
+ const { runCli } = await import("./cli-MFHC7UWY.js");
22
22
  await runCli();
23
23
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-cli",
3
- "version": "6.19.2",
3
+ "version": "6.20.0",
4
4
  "description": "CLI tools for responsible-vibe development workflows",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -151,7 +151,5 @@ states:
151
151
 
152
152
  Complete final validation and cleanup before the ADR is finalized.
153
153
 
154
- transitions:
155
- - trigger: need_decision_changes
156
- to: decide
157
- transition_reason: 'Final review found problems with the decision documentation'
154
+ $DONE_DEFAULT
155
+ transitions: []
@@ -364,13 +364,6 @@ states:
364
364
  - Ensure test suite is ready for ongoing use and maintenance
365
365
 
366
366
  Update the plan file with finalization progress and mark completed tasks.
367
- transitions:
368
- - trigger: 'need_test_changes'
369
- to: 'test_suite_implementation'
370
- additional_instructions: 'Finalization revealed issues with the test suite. Focus on addressing the specific problems identified during final review.'
371
- transition_reason: 'Finalization revealed issues requiring test implementation changes'
372
367
 
373
- - trigger: 'finalization_complete'
374
- to: 'architecture_analysis'
375
- additional_instructions: 'Boundary testing workflow complete! Test suite is ready for ongoing use and maintenance. Prepare for next boundary testing project.'
376
- transition_reason: 'Test suite finalization complete, ready for production use'
368
+ $DONE_DEFAULT
369
+ transitions: []
@@ -162,17 +162,6 @@ states:
162
162
  - Verify documentation accuracy with a final review
163
163
  - Ensure bug fix is ready for production
164
164
  - Update task progress and mark completed work as you finalize the bug fix
165
- transitions:
166
- - trigger: 'need_fix_changes'
167
- to: 'fix'
168
- additional_instructions: 'Finalization revealed issues with the bug fix. Focus on addressing the specific problems identified during final review.'
169
- transition_reason: 'Finalization revealed issues requiring fix changes'
170
-
171
- - trigger: 'finalization_complete'
172
- to: 'reproduce'
173
- transition_reason: 'Bug fix complete and finalized, ready for next issue'
174
165
 
175
- - trigger: 'abandon_bug'
176
- to: 'reproduce'
177
- additional_instructions: 'Bug finalization abandoned. Clean up any finalization work and prepare for new bug reports.'
178
- transition_reason: 'Bug finalization abandoned'
166
+ $DONE_DEFAULT
167
+ transitions: []
@@ -464,8 +464,6 @@ states:
464
464
  - Modernization roadmap
465
465
 
466
466
  The analysis provides a foundation for future development. Consider using other workflows (waterfall, epcc, etc.) with the comprehensive understanding gained.
467
- transitions:
468
- - trigger: 'refine_analysis'
469
- to: 'component_analysis'
470
- additional_instructions: 'Refine specific aspects of analysis. Focus on areas that need additional investigation.'
471
- transition_reason: 'Analysis review revealed need for additional component analysis'
467
+
468
+ $DONE_DEFAULT
469
+ transitions: []
@@ -180,17 +180,6 @@ states:
180
180
  - Ensure code is ready for production/delivery
181
181
 
182
182
  Update task progress and mark completed work as you finalize the feature.
183
- transitions:
184
- - trigger: 'need_code_changes'
185
- to: 'code'
186
- additional_instructions: 'Focus on the problems identified during final review.'
187
- transition_reason: 'Final review found issues requiring code changes'
188
-
189
- - trigger: 'commit_complete'
190
- to: 'explore'
191
- transition_reason: 'Feature delivery complete, ready for next task'
192
183
 
193
- - trigger: 'abandon_feature'
194
- to: 'explore'
195
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
196
- transition_reason: 'User decided to abandon feature during finalization'
184
+ $DONE_DEFAULT
185
+ transitions: []
@@ -201,17 +201,6 @@ states:
201
201
  - Verify documentation accuracy with a final review
202
202
  - Ensure project is ready for users and contributors
203
203
  - Update task progress and mark completed work as you finalize the project
204
- transitions:
205
- - trigger: 'need_code_changes'
206
- to: 'code'
207
- additional_instructions: 'Finalization revealed issues that require code changes. Focus on the problems identified during final review that affect usability or functionality.'
208
- transition_reason: 'Finalization revealed issues requiring code changes'
209
-
210
- - trigger: 'finalization_complete'
211
- to: 'ideation'
212
- transition_reason: 'Project delivery complete with finalized code and documentation, ready for next greenfield project'
213
204
 
214
- - trigger: 'abandon_project'
215
- to: 'ideation'
216
- additional_instructions: 'Project development abandoned during finalization. Clean up any finalization artifacts and prepare for new projects.'
217
- transition_reason: 'User decided to abandon project during finalization phase'
205
+ $DONE_DEFAULT
206
+ transitions: []
@@ -130,17 +130,6 @@ states:
130
130
  - Verify documentation accuracy with a final review
131
131
  - Ensure minor enhancement is ready for delivery
132
132
  - Update task progress and mark completed work as you finalize the minor enhancement
133
- transitions:
134
- - trigger: 'need_implementation_changes'
135
- to: 'implement'
136
- additional_instructions: 'Finalization revealed issues that require implementation changes. Focus on the specific problems identified during final review.'
137
- transition_reason: 'Finalization revealed issues requiring implementation changes'
138
-
139
- - trigger: 'finalization_complete'
140
- to: 'explore'
141
- transition_reason: 'Minor enhancement delivery complete, ready for next task'
142
133
 
143
- - trigger: 'abandon_feature'
144
- to: 'explore'
145
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
146
- transition_reason: 'User decided to abandon minor enhancement during finalization'
134
+ $DONE_DEFAULT
135
+ transitions: []
@@ -178,20 +178,5 @@ states:
178
178
  Maximize reach while maintaining content quality and consistency.
179
179
  Update `$PLAN_FILE` with distribution progress and publishing decisions.
180
180
 
181
- transitions:
182
- - trigger: distribution_complete
183
- to: discovery
184
- transition_reason: 'Post publishing completed successfully, ready for new projects'
185
-
186
- - trigger: need_final_review
187
- to: illustration
188
- additional_instructions: 'Refine visuals or content presentation based on issues identified during publishing preparation.'
189
- transition_reason: 'Publishing preparation identified issues requiring visual or content refinement'
190
-
191
- - trigger: abandon_post
192
- to: discovery
193
- instructions: |
194
- Abandon post development before distribution. Clean up distribution preparation and return to discovery.
195
- The `$PLAN_FILE` and completed work will remain for future reference.
196
- additional_instructions: 'Clean up and prepare for new topics.'
197
- transition_reason: 'User decided to abandon post before distribution'
181
+ $DONE_DEFAULT
182
+ transitions: []
@@ -171,7 +171,5 @@ states:
171
171
  Once confirmed, deliver accordingly. For inline comments, attach each finding to the
172
172
  specific file and line it refers to. For cross-cutting findings, use a top-level comment.
173
173
 
174
- transitions:
175
- - trigger: 'review_published'
176
- to: 'determine_intent'
177
- transition_reason: 'Review delivered, ready for next PR'
174
+ $DONE_DEFAULT
175
+ transitions: []
@@ -8,7 +8,7 @@ metadata:
8
8
  domain: 'code'
9
9
  complexity: 'high'
10
10
  bestFor:
11
- - 'Creative and complex challenges'
11
+ - 'Creative or complex challenges'
12
12
  - 'Deep alignment before execution'
13
13
  - 'Unconventional problems'
14
14
  - 'Architecture-heavy features'
@@ -34,7 +34,11 @@ states:
34
34
  - '**/*.adoc'
35
35
  default_instructions: |
36
36
  **Principle**: Clarify intent before exploring solutions.
37
-
37
+ This is the most important phase: You need to really deeply understand what makes the user want to introduce a change.
38
+ Ask questions about everything you can't determine straight from the existing codebase.
39
+ - Ask about the context
40
+ - follow up on explanations
41
+ - Ask about rejected alternatives or workarounds
38
42
  Document in the development plan: the problem being solved, success criteria, constraints, and any clarifying questions asked. Use `$REQUIREMENTS_DOC` as context only — do not modify it.
39
43
 
40
44
  Do not research, design, plan, or write code.
@@ -83,8 +87,9 @@ states:
83
87
  - '**/*.adoc'
84
88
  default_instructions: |
85
89
  **Principle**: Align on WHAT and WHY before deciding detailed HOW.
86
-
90
+ This is the phase when the we imagening a suitable solution given the boundary conditions.
87
91
  Propose 2-3 viable high-level approaches with trade-offs. Reference `$DESIGN_DOC` and `$ARCHITECTURE_DOC` if they exist. Reach consensus with the user on the direction. On loop-back from `need_design_changes`, update those docs if they exist.
92
+ It's crucial that the user gets actively involved to take an educated decision.
88
93
 
89
94
  Document the agreed direction in the development plan.
90
95
 
@@ -231,17 +236,6 @@ states:
231
236
  **Validation**: Run tests to ensure no regressions. Verify the development plan is accurate.
232
237
 
233
238
  Do not add new features.
234
- transitions:
235
- - trigger: 'commit_complete'
236
- to: 'questions'
237
- transition_reason: 'Feature delivered, ready for next task'
238
239
 
239
- - trigger: 'need_code_changes'
240
- to: 'implement'
241
- additional_instructions: 'Fix the problems identified during final review.'
242
- transition_reason: 'Final review found issues requiring code changes'
243
-
244
- - trigger: 'abandon_feature'
245
- to: 'questions'
246
- instructions: 'Feature abandoned. Clean up artifacts and reset for new tasks.'
247
- transition_reason: 'User abandoned feature during finalization'
240
+ $DONE_DEFAULT
241
+ transitions: []
@@ -158,17 +158,6 @@ states:
158
158
  - Verify documentation accuracy with a final review
159
159
  - Ensure bug fix is ready for production
160
160
  - Update task progress and mark completed work as you finalize the bug fix
161
- transitions:
162
- - trigger: 'need_fix_changes'
163
- to: 'fix'
164
- additional_instructions: 'Finalization revealed issues with the bug fix. Focus on addressing the specific problems identified during final review.'
165
- transition_reason: 'Finalization revealed issues requiring fix changes'
166
-
167
- - trigger: 'finalization_complete'
168
- to: 'reproduce'
169
- transition_reason: 'Bug fix complete and finalized, ready for next issue'
170
161
 
171
- - trigger: 'abandon_bug'
172
- to: 'reproduce'
173
- additional_instructions: 'Bug finalization abandoned. Clean up any finalization work and prepare for new bug reports.'
174
- transition_reason: 'Bug finalization abandoned'
162
+ $DONE_DEFAULT
163
+ transitions: []
@@ -155,17 +155,6 @@ states:
155
155
  - Ensure code is ready for production/delivery
156
156
 
157
157
  Update task progress and mark completed work as you finalize the feature.
158
- transitions:
159
- - trigger: 'need_code_changes'
160
- to: 'code'
161
- additional_instructions: 'Focus on the problems identified during final review.'
162
- transition_reason: 'Final review found issues requiring code changes'
163
-
164
- - trigger: 'commit_complete'
165
- to: 'explore'
166
- transition_reason: 'Feature delivery complete, ready for next task'
167
158
 
168
- - trigger: 'abandon_feature'
169
- to: 'explore'
170
- additional_instructions: 'Clean up any finalization artifacts and prepare for new tasks.'
171
- transition_reason: 'User decided to abandon feature during finalization'
159
+ $DONE_DEFAULT
160
+ transitions: []