@programinglive/dev-workflow-mcp-server 1.8.1 → 1.10.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 (114) hide show
  1. package/.env.example +21 -1
  2. package/AGENTS.md +25 -0
  3. package/README.md +372 -649
  4. package/factory-client.js +554 -0
  5. package/git-facade.js +35 -0
  6. package/index.js +9 -34
  7. package/package.json +21 -20
  8. package/scripts/bootstrap-unix.sh +55 -0
  9. package/scripts/bootstrap-windows.ps1 +75 -0
  10. package/scripts/install-husky.js +43 -0
  11. package/scripts/setup-stack.js +436 -0
  12. package/scripts/setup-test-dbs.sh +61 -0
  13. package/scripts/test-db-adapters.sh +71 -0
  14. package/scripts/verify-bundle.mjs +92 -0
  15. package/tools/definitions.js +143 -0
  16. package/tools/handler-modules/commit-handlers.js +2 -1
  17. package/tools/handler-modules/factory-handlers.js +276 -0
  18. package/tools/handler-modules/index.js +24 -7
  19. package/tools/handler-modules/shared.js +7 -41
  20. package/tools/handler-modules/status-handlers.js +25 -3
  21. package/tools/handler-modules/workflow-handlers.js +57 -10
  22. package/vite.config.js +6 -0
  23. package/workflow-state.js +176 -2
  24. package/.agent/workflows/dev-workflow-bugfix.md +0 -250
  25. package/.agent/workflows/dev-workflow-feature.md +0 -201
  26. package/.agent/workflows/dev-workflow-full-cycle.md +0 -400
  27. package/.agent/workflows/dev-workflow-refactor.md +0 -238
  28. package/.env.production +0 -16
  29. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -34
  30. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -25
  31. package/.github/pull_request_template.md +0 -22
  32. package/.github/workflows/github-release.yml +0 -131
  33. package/.husky/commit-msg +0 -3
  34. package/.husky/pre-commit +0 -2
  35. package/CHANGELOG.md +0 -1145
  36. package/docs/GCP_DEPLOYMENT.md +0 -298
  37. package/docs/NETLIFY_DEPLOYMENT.md +0 -125
  38. package/docs/PLESK_DEPLOYMENT.md +0 -170
  39. package/docs/PRD.md +0 -86
  40. package/docs/WORKFLOW-BEST-PRACTICES.md +0 -58
  41. package/docs/antigravity/EXAMPLES.md +0 -535
  42. package/docs/antigravity/GETTING-STARTED.md +0 -292
  43. package/docs/antigravity/TROUBLESHOOTING.md +0 -742
  44. package/docs/antigravity/WALKTHROUGH.md +0 -25
  45. package/docs/antigravity/WORKFLOW-TEMPLATES.md +0 -670
  46. package/docs/release-notes/RELEASE_NOTES.md +0 -524
  47. package/docs/web-dashboard.md +0 -175
  48. package/scripts/test-auth-flow.js +0 -75
  49. package/tailwind.config.js +0 -8
  50. package/tests/build.test.js +0 -74
  51. package/tests/db-adapters.test.js +0 -108
  52. package/tests/env-support.test.js +0 -46
  53. package/tests/exec.test.js +0 -35
  54. package/tests/handlers-commit.test.js +0 -174
  55. package/tests/handlers-release.test.js +0 -212
  56. package/tests/handlers-workflow.test.js +0 -68
  57. package/tests/handlers.test.js +0 -1142
  58. package/tests/hello-world.test.js +0 -13
  59. package/tests/mcpRegistry.test.js +0 -65
  60. package/tests/patch-release.test.js +0 -7
  61. package/tests/release-wrapper.test.js +0 -107
  62. package/tests/startup-resilience.test.js +0 -73
  63. package/tests/test-helpers.js +0 -50
  64. package/tests/workflowState.test.js +0 -520
  65. package/web/Dockerfile.api +0 -25
  66. package/web/README.md +0 -133
  67. package/web/__tests__/api/workflow-history.test.js +0 -63
  68. package/web/api-server.js +0 -211
  69. package/web/app/docs/page.tsx +0 -202
  70. package/web/app/favicon.ico +0 -0
  71. package/web/app/globals.css +0 -91
  72. package/web/app/history/page.tsx +0 -220
  73. package/web/app/layout.tsx +0 -39
  74. package/web/app/login/page.tsx +0 -142
  75. package/web/app/page.tsx +0 -13
  76. package/web/components/ApiReference.tsx +0 -20
  77. package/web/components/Features.tsx +0 -61
  78. package/web/components/Footer.tsx +0 -9
  79. package/web/components/Hero.tsx +0 -96
  80. package/web/components/History.tsx +0 -175
  81. package/web/components/Navbar.tsx +0 -208
  82. package/web/components/Terminal.tsx +0 -114
  83. package/web/components/ThemeProvider.tsx +0 -58
  84. package/web/eslint.config.mjs +0 -18
  85. package/web/lib/api-client.ts +0 -123
  86. package/web/lib/auth.js +0 -75
  87. package/web/lib/db.js +0 -131
  88. package/web/lib/docs.js +0 -73
  89. package/web/middleware/auth.js +0 -26
  90. package/web/netlify.toml +0 -8
  91. package/web/next.config.ts +0 -19
  92. package/web/package-lock.json +0 -10911
  93. package/web/package.json +0 -42
  94. package/web/postcss.config.mjs +0 -9
  95. package/web/public/assets/android-chrome-192x192.png +0 -0
  96. package/web/public/assets/android-chrome-512x512.png +0 -0
  97. package/web/public/assets/apple-touch-icon.png +0 -0
  98. package/web/public/assets/favicon-16x16.png +0 -0
  99. package/web/public/assets/favicon-32x32.png +0 -0
  100. package/web/public/assets/favicon.ico +0 -0
  101. package/web/public/assets/favicon.png +0 -0
  102. package/web/public/assets/logo.png +0 -0
  103. package/web/public/assets/og-preview.png +0 -0
  104. package/web/public/assets/site.webmanifest +0 -1
  105. package/web/public/file.svg +0 -1
  106. package/web/public/globe.svg +0 -1
  107. package/web/public/next.svg +0 -1
  108. package/web/public/vercel.svg +0 -1
  109. package/web/public/window.svg +0 -1
  110. package/web/scripts/db-query-history.js +0 -120
  111. package/web/scripts/smoke-test.js +0 -30
  112. package/web/server.js +0 -184
  113. package/web/tailwind.config.ts +0 -20
  114. package/web/tsconfig.json +0 -42
@@ -1,250 +0,0 @@
1
- ---
2
- description: Bug fix workflow using dev-workflow MCP server
3
- ---
4
-
5
- # Bug Fix Workflow
6
-
7
- This workflow guides you through fixing bugs with the dev-workflow MCP server, ensuring proper testing and documentation.
8
-
9
- ## When to Use
10
-
11
- - Fixing defects
12
- -修复 unexpected behavior
13
- - Addressing user-reported issues
14
- - Fixing regressions
15
-
16
- ## Workflow Steps
17
-
18
- ### 1. Start the Task
19
-
20
- Begin by defining the bug:
21
-
22
- ```
23
- Use start_task tool:
24
- - description: "Fix [bug description]"
25
- - type: "bugfix"
26
- ```
27
-
28
- ### 2. Reproduce and Fix
29
-
30
- 1. **Reproduce** the bug locally
31
- 2. **Identify** the root cause
32
- 3. **Fix** the issue
33
- 4. **Verify** the fix works
34
-
35
- Tips:
36
- - Document expected vs actual behavior
37
- - Take notes on the root cause
38
- - Test edge cases
39
-
40
- ### 3. Mark as Fixed
41
-
42
- Once the fix is implemented:
43
-
44
- ```
45
- Use mark_bug_fixed tool:
46
- - summary: "[Brief description of the fix]"
47
- ```
48
-
49
- ### 4. Create Regression Tests
50
-
51
- **Critical:** Write tests that would have caught this bug!
52
-
53
- Create regression tests:
54
- - Test the specific bug scenario
55
- - Test edge cases around the bug
56
- - Update existing tests if needed
57
-
58
- Then mark tests as created:
59
-
60
- ```
61
- Use create_tests tool
62
- ```
63
-
64
- ### 5. Run Tests
65
-
66
- // turbo
67
- Execute your test suite:
68
-
69
- ```bash
70
- npm test
71
- ```
72
-
73
- Ensure the new regression tests pass:
74
-
75
- ```
76
- Use run_tests tool:
77
- - passed: true
78
- - testCommand: "npm test"
79
- - details: "[Include regression test results]"
80
- ```
81
-
82
- ### 6. Document the Fix
83
-
84
- Update documentation:
85
- - **CHANGELOG** - Add bug fix entry
86
- - **Code comments** - Explain why the fix was necessary
87
- - **Issue tracker** - Reference issue number
88
-
89
- ```
90
- Use create_documentation tool:
91
- - documentationType: "changelog"
92
- - summary: "[What you documented]"
93
- ```
94
-
95
- ### 7. Commit and Push
96
-
97
- Use conventional commit with `fix` type:
98
-
99
- ```
100
- Use commit_and_push tool:
101
- - commitMessage: "fix([scope]): [description]"
102
- ```
103
-
104
- Examples:
105
- - `fix(auth): prevent token expiration edge case`
106
- - `fix(ui): correct button alignment on mobile`
107
-
108
- ### 8. Perform Release
109
-
110
- Bug fixes are patch releases:
111
-
112
- ```
113
- Use perform_release tool:
114
- - command: "npm run release:patch"
115
- - notes: "v[X.Y.Z] - Bugfix for [issue]"
116
- ```
117
-
118
- ### 9. Complete Task
119
-
120
- ```
121
- Use complete_task tool:
122
- - commitMessage: "fix([scope]): [description]"
123
- ```
124
-
125
- ## Example: Date Formatting Bug
126
-
127
- ```
128
- 1. start_task:
129
- description: "Fix incorrect date format in transaction history"
130
- type: "bugfix"
131
-
132
- 2. [Reproduce bug, find issue in formatDate.js, implement fix]
133
-
134
- 3. mark_bug_fixed:
135
- summary: "Corrected date formatting to use ISO 8601 format"
136
-
137
- 4. [Write regression test in formatDate.test.js]
138
-
139
- 5. create_tests
140
-
141
- 6. Run: npm test
142
-
143
- 7. run_tests:
144
- passed: true
145
- testCommand: "npm test -- utils/formatDate.test.js"
146
- details: "2 new regression tests pass, all 45 tests pass"
147
-
148
- 8. [Update CHANGELOG.md with fix entry]
149
-
150
- 9. create_documentation:
151
- documentationType: "changelog"
152
- summary: "Added bug fix entry for date formatting issue"
153
-
154
- 10. commit_and_push:
155
- commitMessage: "fix(utils): correct date formatting to use ISO 8601"
156
-
157
- 11. perform_release:
158
- command: "npm run release:patch"
159
- notes: "v1.2.1 - Date formatting hotfix"
160
-
161
- 12. complete_task:
162
- commitMessage: "fix(utils): correct date formatting to use ISO 8601"
163
- ```
164
-
165
- ## Handling Test Failures
166
-
167
- If tests fail during development:
168
-
169
- ```
170
- run_tests:
171
- passed: false
172
- testCommand: "npm test"
173
- details: "3 tests failed in auth module"
174
- ```
175
-
176
- Response:
177
- ```
178
- ❌ Tests FAILED!
179
- 🚫 Cannot proceed with failing tests
180
- ```
181
-
182
- Fix the issues, then re-run:
183
-
184
- ```
185
- run_tests:
186
- passed: true
187
- testCommand: "npm test"
188
- details: "All tests now pass"
189
- ```
190
-
191
- ## Quick Reference
192
-
193
- ```
194
- 1. start_task → 2. Reproduce & fix → 3. mark_bug_fixed
195
- → 4. Write regression tests → 5. create_tests → 6. run_tests
196
- → 7. Document → 8. create_documentation → 9. commit_and_push
197
- → 10. perform_release → 11. complete_task
198
- ```
199
-
200
- ## Tips
201
-
202
- - **Regression tests** - Always write tests that would catch this bug
203
- - **Root cause** - Fix the underlying issue, not just symptoms
204
- - **Documentation** - Update CHANGELOG for user visibility
205
- - **Patch versions** - Bug fixes bump patch version (X.Y.Z)
206
- - **Conventional commits** - Use `fix` prefix
207
-
208
- ## Hotfix Workflow
209
-
210
- For critical production bugs:
211
-
212
- ```
213
- start_task:
214
- description: "HOTFIX: [critical issue]"
215
- type: "bugfix"
216
-
217
- [Implement minimal fix]
218
-
219
- mark_bug_fixed:
220
- summary: "[Fix description]"
221
-
222
- [Focused regression test]
223
-
224
- create_tests
225
-
226
- run_tests:
227
- passed: true
228
- testCommand: "npm test -- [critical-path]"
229
- details: "[Critical tests pass]"
230
-
231
- create_documentation:
232
- documentationType: "changelog"
233
- summary: "HOTFIX: [issue] - [fix]"
234
-
235
- commit_and_push:
236
- commitMessage: "fix([scope])!: HOTFIX - [description]"
237
-
238
- perform_release:
239
- command: "npm run release:patch"
240
- notes: "v[X.Y.Z] - HOTFIX: [issue]"
241
-
242
- complete_task:
243
- commitMessage: "fix([scope])!: HOTFIX - [description]"
244
- ```
245
-
246
- ## Need Help?
247
-
248
- - `get_workflow_status` - Check current phase
249
- - [EXAMPLES.md](../docs/antigravity/EXAMPLES.md) - Detailed examples
250
- - [TROUBLESHOOTING.md](../docs/antigravity/TROUBLESHOOTING.md) - Common issues
@@ -1,201 +0,0 @@
1
- ---
2
- description: Feature development workflow using dev-workflow MCP server
3
- ---
4
-
5
- # Feature Development Workflow
6
-
7
- This workflow guides you through developing a new feature with the dev-workflow MCP server.
8
-
9
- ## When to Use
10
-
11
- - Adding new functionality
12
- - Building new components
13
- - Implementing new features
14
-
15
- ## Workflow Steps
16
-
17
- ### 1. Start the Task
18
-
19
- Begin by defining your feature:
20
-
21
- ```
22
- Use start_task tool:
23
- - description: "Add [feature name] to [component/area]"
24
- - type: "feature"
25
- ```
26
-
27
- The server confirms task start and moves you to the implementation phase.
28
-
29
- ### 2. Implement the Feature
30
-
31
- Write your code as usual. The workflow doesn't interfere with your development process.
32
-
33
- Tips:
34
- - Keep commits atomic
35
- - Follow coding standards
36
- - Write clean, maintainable code
37
-
38
- ### 3. Mark as Fixed
39
-
40
- Once implementation is complete:
41
-
42
- ```
43
- Use mark_bug_fixed tool:
44
- - summary: "[Brief description of what was implemented]"
45
- ```
46
-
47
- The server reminds you that tests are now mandatory.
48
-
49
- ### 4. Create Tests
50
-
51
- Write comprehensive tests:
52
- - Unit tests for new functions/components
53
- - Integration tests for interactions
54
- - End-to-end tests for user flows (if applicable)
55
-
56
- Then mark tests as created:
57
-
58
- ```
59
- Use create_tests tool
60
- (no parameters needed)
61
- ```
62
-
63
- ### 5. Run Tests
64
-
65
- // turbo
66
- Execute your test suite:
67
-
68
- ```bash
69
- npm test
70
- ```
71
-
72
- Record the results:
73
-
74
- ```
75
- Use run_tests tool:
76
- - passed: true (or false if tests failed)
77
- - testCommand: "npm test"
78
- - details: "[Number of tests, coverage, etc.]"
79
- ```
80
-
81
- **Important:** If tests fail, fix them before proceeding. The workflow blocks commits with failing tests.
82
-
83
- ### 6. Create Documentation
84
-
85
- Update relevant documentation:
86
- - README with feature usage
87
- - Inline code comments
88
- - API documentation
89
- - CHANGELOG entry
90
-
91
- Then mark documentation as complete:
92
-
93
- ```
94
- Use create_documentation tool:
95
- - documentationType: "README" (or "inline-comments", "API-docs", "changelog")
96
- - summary: "[What you documented]"
97
- ```
98
-
99
- ### 7. Commit and Push
100
-
101
- The MCP server automatically stages, commits, and pushes:
102
-
103
- ```
104
- Use commit_and_push tool:
105
- - commitMessage: "feat([scope]): [description]"
106
- ```
107
-
108
- Use conventional commit format:
109
- - `feat(auth): add social login`
110
- - `feat(ui): add dark mode toggle`
111
-
112
- The branch is auto-detected (main or master). To specify a branch:
113
-
114
- ```
115
- Use commit_and_push tool:
116
- - commitMessage: "feat([scope]): [description]"
117
- - branch: "feature/your-branch"
118
- ```
119
-
120
- ### 8. Perform Release
121
-
122
- Record the release:
123
-
124
- ```
125
- Use perform_release tool:
126
- - command: "npm run release:minor" (features are usually minor versions)
127
- - notes: "v[X.Y.Z] - [Feature highlights]"
128
- ```
129
-
130
- ### 9. Complete Task
131
-
132
- Mark the task as complete:
133
-
134
- ```
135
- Use complete_task tool:
136
- - commitMessage: "feat([scope]): [description]" (same as commit message)
137
- ```
138
-
139
- This resets the workflow for your next task.
140
-
141
- ## Example: Adding Shopping Cart
142
-
143
- ```
144
- 1. start_task:
145
- description: "Add shopping cart functionality"
146
- type: "feature"
147
-
148
- 2. [Implement cart component, add/remove logic, localStorage persistence]
149
-
150
- 3. mark_bug_fixed:
151
- summary: "Shopping cart with add/remove items and localStorage persistence"
152
-
153
- 4. [Write cart tests: add item, remove item, update quantity, persistence]
154
-
155
- 5. create_tests
156
-
157
- 6. Run: npm test
158
-
159
- 7. run_tests:
160
- passed: true
161
- testCommand: "npm test"
162
- details: "12 cart tests added, all pass. Coverage: 94%"
163
-
164
- 8. [Update README with cart API, add inline comments]
165
-
166
- 9. create_documentation:
167
- documentationType: "README"
168
- summary: "Added shopping cart API documentation and usage examples"
169
-
170
- 10. commit_and_push:
171
- commitMessage: "feat(cart): add shopping cart with localStorage persistence"
172
-
173
- 11. perform_release:
174
- command: "npm run release:minor"
175
- notes: "v1.5.0 - Shopping cart feature"
176
-
177
- 12. complete_task:
178
- commitMessage: "feat(cart): add shopping cart with localStorage persistence"
179
- ```
180
-
181
- ## Quick Reference
182
-
183
- ```
184
- 1. start_task → 2. Code → 3. mark_bug_fixed → 4. Write tests
185
- → 5. create_tests → 6. run_tests → 7. Document → 8. create_documentation
186
- → 9. commit_and_push → 10. perform_release → 11. complete_task
187
- ```
188
-
189
- ## Tips
190
-
191
- - **Keep features small** - One complete feature per workflow
192
- - **Test thoroughly** - Don't skip tests
193
- - **Document as you go** - Don't wait until the end
194
- - **Use conventional commits** - feat(scope): description
195
- - **Minor versions** - Features bump minor version (X.Y.0)
196
-
197
- ## Need Help?
198
-
199
- - Check `get_workflow_status` to see where you are
200
- - Review [EXAMPLES.md](../docs/antigravity/EXAMPLES.md) for detailed examples
201
- - See [TROUBLESHOOTING.md](../docs/antigravity/TROUBLESHOOTING.md) for common issues