@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.
- package/.agent/workflows/dev-workflow-bugfix.md +250 -250
- package/.agent/workflows/dev-workflow-feature.md +201 -201
- package/.agent/workflows/dev-workflow-full-cycle.md +400 -400
- package/.agent/workflows/dev-workflow-refactor.md +238 -238
- package/.github/ISSUE_TEMPLATE/bug_report.md +34 -34
- package/.github/ISSUE_TEMPLATE/feature_request.md +25 -25
- package/.github/pull_request_template.md +22 -22
- package/.github/workflows/npm-publish.yml +50 -47
- package/.husky/commit-msg +0 -0
- package/CHANGELOG.md +750 -491
- package/CODE_OF_CONDUCT.md +79 -79
- package/CONTRIBUTING.md +60 -60
- package/LICENSE +21 -21
- package/README.md +632 -609
- package/SECURITY.md +20 -20
- package/db/index.js +204 -204
- package/docs/NETLIFY_DEPLOYMENT.md +125 -0
- package/docs/PLESK_DEPLOYMENT.md +170 -0
- package/docs/WORKFLOW-BEST-PRACTICES.md +58 -0
- package/docs/antigravity/EXAMPLES.md +535 -535
- package/docs/antigravity/GETTING-STARTED.md +292 -292
- package/docs/antigravity/TROUBLESHOOTING.md +742 -742
- package/docs/antigravity/WALKTHROUGH.md +25 -25
- package/docs/antigravity/WORKFLOW-TEMPLATES.md +670 -670
- package/docs/product/PRD.md +67 -64
- package/docs/release-notes/RELEASE_NOTES.md +226 -132
- package/docs/web-dashboard.md +175 -163
- package/exec.js +49 -49
- package/index.js +279 -279
- package/install.js +73 -73
- package/package.json +11 -9
- package/release-wrapper.js +192 -157
- package/scripts/build-docs.js +63 -63
- package/scripts/hello-world.js +1 -1
- package/scripts/release.cjs +252 -252
- package/scripts/update-release-notes.cjs +178 -182
- package/server.json +23 -0
- package/tailwind.config.js +8 -10
- package/tests/build.test.js +83 -48
- package/tests/exec.test.js +35 -35
- package/tests/handlers.test.js +1058 -980
- package/tests/hello-world.test.js +13 -13
- package/tests/mcpRegistry.test.js +65 -0
- package/tests/release-wrapper.test.js +107 -105
- package/tests/workflowState.test.js +505 -502
- package/tools/definitions.js +332 -332
- package/tools/handlers.js +1019 -1019
- package/vite.config.js +43 -43
- package/vite.web.config.js +23 -0
- package/web/README.md +36 -0
- package/web/app/docs/page.tsx +202 -0
- package/web/app/favicon.ico +0 -0
- package/web/app/globals.css +91 -0
- package/web/app/layout.tsx +36 -0
- package/web/app/page.tsx +15 -0
- package/web/components/ApiReference.tsx +20 -0
- package/web/components/Features.tsx +61 -0
- package/web/components/Footer.tsx +9 -0
- package/web/components/Hero.tsx +96 -0
- package/web/components/History.tsx +143 -0
- package/web/components/Navbar.tsx +64 -0
- package/web/components/Terminal.tsx +114 -0
- package/web/eslint.config.mjs +18 -0
- package/web/lib/db.js +131 -0
- package/web/lib/docs.js +73 -0
- package/web/netlify.toml +3 -0
- package/web/next.config.ts +12 -0
- package/web/package-lock.json +6560 -0
- package/web/package.json +28 -0
- package/web/postcss.config.mjs +9 -0
- package/web/public/assets/android-chrome-192x192.png +0 -0
- package/web/public/assets/android-chrome-512x512.png +0 -0
- package/web/public/assets/apple-touch-icon.png +0 -0
- package/web/public/assets/favicon-16x16.png +0 -0
- package/web/public/assets/favicon-32x32.png +0 -0
- package/web/public/assets/favicon.ico +0 -0
- package/web/public/assets/favicon.png +0 -0
- package/web/public/assets/logo.png +0 -0
- package/web/public/assets/og-preview.png +0 -0
- package/web/public/assets/site.webmanifest +1 -0
- package/web/public/file.svg +1 -0
- package/web/public/globe.svg +1 -0
- package/web/public/next.svg +1 -0
- package/web/public/vercel.svg +1 -0
- package/web/public/window.svg +1 -0
- package/web/server.js +31 -159
- package/web/tailwind.config.ts +19 -0
- package/web/tsconfig.json +42 -0
- package/workflow-state.js +612 -626
- package/dist/docs/EXAMPLES.html +0 -411
- package/dist/docs/GETTING-STARTED.html +0 -233
- package/dist/docs/README.html +0 -535
- package/dist/docs/RELEASE_NOTES.html +0 -167
- package/dist/docs/TROUBLESHOOTING.html +0 -542
- package/dist/docs/WORKFLOW-TEMPLATES.html +0 -591
- package/dist/docs/web-dashboard.html +0 -158
- package/web/public/index.html +0 -1046
- package/web/public/input.css +0 -3
- 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=<USER_ID></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
|
-
"summary": {
|
|
54
|
-
"totalTasks": 12,
|
|
55
|
-
"taskTypes": { "feature": 8, "bugfix": 3, "refactor": 1 },
|
|
56
|
-
"lastActive": "2025-10-01T09:25:41.123Z",
|
|
57
|
-
"recentTasks": [
|
|
58
|
-
{ "description": "feat: add billing webhooks", "type": "feature", "timestamp": "2025-10-01T09:25:41.123Z" }
|
|
59
|
-
],
|
|
60
|
-
"updatedAt": "2025-10-01T09:30:00.000Z"
|
|
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
|
-
"entries": [
|
|
77
|
-
{
|
|
78
|
-
"id": 42,
|
|
79
|
-
"user_id": "default",
|
|
80
|
-
"task_description": "feat: add reporting endpoint",
|
|
81
|
-
"task_type": "feature",
|
|
82
|
-
"commit_message": "feat: add reporting endpoint",
|
|
83
|
-
"timestamp": "2025-09-30T09:18:00.000Z"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"total": 42,
|
|
87
|
-
"page": 1,
|
|
88
|
-
"pageSize": 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
|
-
"summary": [
|
|
102
|
-
{ "period": "2025-09-30", "count": 3 },
|
|
103
|
-
{ "period": "2025-09-29", "count": 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/<user>/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>
|