@programinglive/dev-workflow-mcp-server 1.5.0 → 1.5.2

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 (99) hide show
  1. package/.agent/workflows/dev-workflow-bugfix.md +250 -250
  2. package/.agent/workflows/dev-workflow-feature.md +201 -201
  3. package/.agent/workflows/dev-workflow-full-cycle.md +400 -400
  4. package/.agent/workflows/dev-workflow-refactor.md +238 -238
  5. package/.github/ISSUE_TEMPLATE/bug_report.md +34 -34
  6. package/.github/ISSUE_TEMPLATE/feature_request.md +25 -25
  7. package/.github/pull_request_template.md +22 -22
  8. package/.github/workflows/npm-publish.yml +50 -47
  9. package/.husky/commit-msg +0 -0
  10. package/CHANGELOG.md +750 -491
  11. package/CODE_OF_CONDUCT.md +79 -79
  12. package/CONTRIBUTING.md +60 -60
  13. package/LICENSE +21 -21
  14. package/README.md +632 -609
  15. package/SECURITY.md +20 -20
  16. package/db/index.js +204 -204
  17. package/docs/NETLIFY_DEPLOYMENT.md +125 -0
  18. package/docs/PLESK_DEPLOYMENT.md +170 -0
  19. package/docs/WORKFLOW-BEST-PRACTICES.md +58 -0
  20. package/docs/antigravity/EXAMPLES.md +535 -535
  21. package/docs/antigravity/GETTING-STARTED.md +292 -292
  22. package/docs/antigravity/TROUBLESHOOTING.md +742 -742
  23. package/docs/antigravity/WALKTHROUGH.md +25 -25
  24. package/docs/antigravity/WORKFLOW-TEMPLATES.md +670 -670
  25. package/docs/product/PRD.md +67 -64
  26. package/docs/release-notes/RELEASE_NOTES.md +226 -132
  27. package/docs/web-dashboard.md +175 -163
  28. package/exec.js +49 -49
  29. package/index.js +279 -279
  30. package/install.js +73 -73
  31. package/package.json +11 -9
  32. package/release-wrapper.js +192 -157
  33. package/scripts/build-docs.js +63 -63
  34. package/scripts/hello-world.js +1 -1
  35. package/scripts/release.cjs +252 -252
  36. package/scripts/update-release-notes.cjs +178 -182
  37. package/server.json +23 -0
  38. package/tailwind.config.js +8 -10
  39. package/tests/build.test.js +83 -48
  40. package/tests/exec.test.js +35 -35
  41. package/tests/handlers.test.js +1058 -980
  42. package/tests/hello-world.test.js +13 -13
  43. package/tests/mcpRegistry.test.js +65 -0
  44. package/tests/release-wrapper.test.js +107 -105
  45. package/tests/workflowState.test.js +505 -502
  46. package/tools/definitions.js +332 -332
  47. package/tools/handlers.js +1019 -1019
  48. package/vite.config.js +43 -43
  49. package/vite.web.config.js +23 -0
  50. package/web/README.md +36 -0
  51. package/web/app/docs/page.tsx +202 -0
  52. package/web/app/favicon.ico +0 -0
  53. package/web/app/globals.css +91 -0
  54. package/web/app/layout.tsx +36 -0
  55. package/web/app/page.tsx +15 -0
  56. package/web/components/ApiReference.tsx +20 -0
  57. package/web/components/Features.tsx +61 -0
  58. package/web/components/Footer.tsx +9 -0
  59. package/web/components/Hero.tsx +96 -0
  60. package/web/components/History.tsx +143 -0
  61. package/web/components/Navbar.tsx +64 -0
  62. package/web/components/Terminal.tsx +114 -0
  63. package/web/eslint.config.mjs +18 -0
  64. package/web/lib/db.js +131 -0
  65. package/web/lib/docs.js +73 -0
  66. package/web/netlify.toml +3 -0
  67. package/web/next.config.ts +12 -0
  68. package/web/package-lock.json +6560 -0
  69. package/web/package.json +28 -0
  70. package/web/postcss.config.mjs +9 -0
  71. package/web/public/assets/android-chrome-192x192.png +0 -0
  72. package/web/public/assets/android-chrome-512x512.png +0 -0
  73. package/web/public/assets/apple-touch-icon.png +0 -0
  74. package/web/public/assets/favicon-16x16.png +0 -0
  75. package/web/public/assets/favicon-32x32.png +0 -0
  76. package/web/public/assets/favicon.ico +0 -0
  77. package/web/public/assets/favicon.png +0 -0
  78. package/web/public/assets/logo.png +0 -0
  79. package/web/public/assets/og-preview.png +0 -0
  80. package/web/public/assets/site.webmanifest +1 -0
  81. package/web/public/file.svg +1 -0
  82. package/web/public/globe.svg +1 -0
  83. package/web/public/next.svg +1 -0
  84. package/web/public/vercel.svg +1 -0
  85. package/web/public/window.svg +1 -0
  86. package/web/server.js +31 -159
  87. package/web/tailwind.config.ts +19 -0
  88. package/web/tsconfig.json +42 -0
  89. package/workflow-state.js +612 -626
  90. package/dist/docs/EXAMPLES.html +0 -411
  91. package/dist/docs/GETTING-STARTED.html +0 -233
  92. package/dist/docs/README.html +0 -535
  93. package/dist/docs/RELEASE_NOTES.html +0 -167
  94. package/dist/docs/TROUBLESHOOTING.html +0 -542
  95. package/dist/docs/WORKFLOW-TEMPLATES.html +0 -591
  96. package/dist/docs/web-dashboard.html +0 -158
  97. package/web/public/index.html +0 -1046
  98. package/web/public/input.css +0 -3
  99. package/web/public/output.css +0 -1
@@ -1,158 +0,0 @@
1
- <h1>Dev Workflow Web Dashboard</h1>
2
- <p>Learn how to start and use the Dev Workflow dashboard included with the MCP server. The dashboard exposes project history, summaries, and aggregates through a small Node.js service.</p>
3
- <h2>Prerequisites</h2>
4
- <p>Before launching the dashboard, confirm the following:</p>
5
- <ul>
6
- <li>Node.js 18+ installed (same requirement as the MCP server)</li>
7
- <li>Project dependencies installed with <code>npm install</code></li>
8
- <li>Workflow history stored under <code>.state/</code> (created automatically when using the MCP server)</li>
9
- </ul>
10
- <blockquote>
11
- <p><strong>Plesk users:</strong> follow the <a href="../README.md#option-3-install-on-plesk-hosting">Plesk installation guide</a> first and ensure SSH access is enabled.</p>
12
- </blockquote>
13
- <h2>Features</h2>
14
- <ul>
15
- <li><strong>Task history browser</strong> – Paginated list of completed workflow entries.</li>
16
- <li><strong>Summary stats</strong> – Counts of tasks by type and recent activity timeline.</li>
17
- <li><strong>Aggregated trends</strong> – Daily, monthly, or yearly breakdowns of workflow activity.</li>
18
- <li><strong>Multi-user support</strong> – Switch between user identifiers recorded in the <code>.state</code> directory.</li>
19
- </ul>
20
- <h2>Getting Started</h2>
21
- <p>Launch the dashboard from your project directory:</p>
22
- <pre><code class="language-bash">npm run web
23
- </code></pre>
24
- <p>When the server is ready you will see:</p>
25
- <pre><code>🌐 Dev Workflow Dashboard running at http://localhost:3111
26
- </code></pre>
27
- <p>Open the URL in your browser. If port 3111 is in use, the script automatically selects a nearby free port.</p>
28
- <h3>Choosing a Port</h3>
29
- <p>Set <code>DEV_WORKFLOW_WEB_PORT</code> to force a specific port:</p>
30
- <pre><code class="language-bash">DEV_WORKFLOW_WEB_PORT=5000 npm run web
31
- </code></pre>
32
- <h3>Selecting a User</h3>
33
- <p>The dashboard defaults to the <code>default</code> user. Append <code>?user=&lt;USER_ID&gt;</code> to view another user’s data. User IDs map to the subdirectories under <code>.state/users/</code>.</p>
34
- <pre><code>http://localhost:3111/?user=my-teammate
35
- </code></pre>
36
- <h2>Navigation</h2>
37
- <p>The HTML frontend lives in <code>web/index.html</code>. The default UI includes:</p>
38
- <ul>
39
- <li><strong>Summary cards</strong> – Total tasks completed and last active date.</li>
40
- <li><strong>Recent tasks table</strong> – Paginated entries with task descriptions and timestamps.</li>
41
- <li><strong>Charts</strong> (if script extensions are enabled) – Visual trends per frequency selection.</li>
42
- </ul>
43
- <h2>API Reference</h2>
44
- <p>Interact with the dashboard programmatically using the JSON endpoints served by <code>web/server.js</code>.</p>
45
- <h3><code>GET /api/summary</code></h3>
46
- <p>Returns aggregate statistics for a user.</p>
47
- <p><strong>Query parameters</strong></p>
48
- <ul>
49
- <li><code>user</code> <em>(optional, string)</em> – User identifier (default <code>default</code>).</li>
50
- </ul>
51
- <p><strong>Response</strong></p>
52
- <pre><code class="language-json">{
53
- &quot;summary&quot;: {
54
- &quot;totalTasks&quot;: 12,
55
- &quot;taskTypes&quot;: { &quot;feature&quot;: 8, &quot;bugfix&quot;: 3, &quot;refactor&quot;: 1 },
56
- &quot;lastActive&quot;: &quot;2025-10-01T09:25:41.123Z&quot;,
57
- &quot;recentTasks&quot;: [
58
- { &quot;description&quot;: &quot;feat: add billing webhooks&quot;, &quot;type&quot;: &quot;feature&quot;, &quot;timestamp&quot;: &quot;2025-10-01T09:25:41.123Z&quot; }
59
- ],
60
- &quot;updatedAt&quot;: &quot;2025-10-01T09:30:00.000Z&quot;
61
- }
62
- }
63
- </code></pre>
64
- <h3><code>GET /api/history</code></h3>
65
- <p>Returns paginated task history.</p>
66
- <p><strong>Query parameters</strong></p>
67
- <ul>
68
- <li><code>user</code> <em>(optional, string)</em> – User identifier (default <code>default</code>).</li>
69
- <li><code>page</code> <em>(optional, number)</em> – Page number (default <code>1</code>).</li>
70
- <li><code>pageSize</code> <em>(optional, number)</em> – Items per page (default <code>20</code>, max <code>100</code>).</li>
71
- <li><code>startDate</code> <em>(optional, string)</em> – Filter by ISO date (inclusive).</li>
72
- <li><code>endDate</code> <em>(optional, string)</em> – Filter by ISO date (inclusive).</li>
73
- </ul>
74
- <p><strong>Response</strong></p>
75
- <pre><code class="language-json">{
76
- &quot;entries&quot;: [
77
- {
78
- &quot;id&quot;: 42,
79
- &quot;user_id&quot;: &quot;default&quot;,
80
- &quot;task_description&quot;: &quot;feat: add reporting endpoint&quot;,
81
- &quot;task_type&quot;: &quot;feature&quot;,
82
- &quot;commit_message&quot;: &quot;feat: add reporting endpoint&quot;,
83
- &quot;timestamp&quot;: &quot;2025-09-30T09:18:00.000Z&quot;
84
- }
85
- ],
86
- &quot;total&quot;: 42,
87
- &quot;page&quot;: 1,
88
- &quot;pageSize&quot;: 20
89
- }
90
- </code></pre>
91
- <h3><code>GET /api/history-summary</code></h3>
92
- <p>Returns an array of task counts grouped by period.</p>
93
- <p><strong>Query parameters</strong></p>
94
- <ul>
95
- <li><code>user</code> <em>(optional, string)</em> – User identifier (default <code>default</code>).</li>
96
- <li><code>frequency</code> <em>(optional, string)</em> – <code>daily</code>, <code>monthly</code>, or <code>yearly</code> (default <code>daily</code>).</li>
97
- <li><code>startDate</code>, <code>endDate</code> <em>(optional, string)</em> – Limit range by ISO dates.</li>
98
- </ul>
99
- <p><strong>Response</strong></p>
100
- <pre><code class="language-json">{
101
- &quot;summary&quot;: [
102
- { &quot;period&quot;: &quot;2025-09-30&quot;, &quot;count&quot;: 3 },
103
- { &quot;period&quot;: &quot;2025-09-29&quot;, &quot;count&quot;: 1 }
104
- ]
105
- }
106
- </code></pre>
107
- <h2>Configuration</h2>
108
- <table>
109
- <thead>
110
- <tr>
111
- <th>Variable</th>
112
- <th>Description</th>
113
- <th>Default</th>
114
- </tr>
115
- </thead>
116
- <tbody><tr>
117
- <td><code>DEV_WORKFLOW_WEB_PORT</code></td>
118
- <td>Port for the dashboard</td>
119
- <td><code>3111</code> or next available</td>
120
- </tr>
121
- <tr>
122
- <td><code>DEV_WORKFLOW_USER_ID</code></td>
123
- <td>User identifier when launching via MCP</td>
124
- <td>auto-generated</td>
125
- </tr>
126
- <tr>
127
- <td><code>DEV_WORKFLOW_STATE_FILE</code></td>
128
- <td>Overrides path to workflow state JSON</td>
129
- <td>auto-detected</td>
130
- </tr>
131
- </tbody></table>
132
- <h2>Troubleshooting</h2>
133
- <table>
134
- <thead>
135
- <tr>
136
- <th>Symptom</th>
137
- <th>Fix</th>
138
- </tr>
139
- </thead>
140
- <tbody><tr>
141
- <td>Server fails with <code>better-sqlite3</code> build error</td>
142
- <td>Install Python 3 and build tools (Windows) or ensure SQLite build dependencies exist (Linux/macOS).</td>
143
- </tr>
144
- <tr>
145
- <td>Dashboard shows empty data</td>
146
- <td>Confirm the MCP server has generated <code>.state/users/&lt;user&gt;/workflow-state.json</code> and that the chosen <code>user</code> matches.</td>
147
- </tr>
148
- <tr>
149
- <td>Port already in use</td>
150
- <td>Set <code>DEV_WORKFLOW_WEB_PORT</code> to a free port before running <code>npm run web</code>.</td>
151
- </tr>
152
- </tbody></table>
153
- <h2>Related Topics</h2>
154
- <ul>
155
- <li><a href="../README.md">Main README</a></li>
156
- <li><a href="./state.md">Workflow State Internals</a> <em>(coming soon)</em></li>
157
- <li><a href="../README.md#%F0%9F%9B%A0%EF%B8%8F-available-tools">CLI Tools</a></li>
158
- </ul>