@programinglive/dev-workflow-mcp-server 1.5.2 → 1.5.4
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/github-release.yml +56 -0
- package/.github/workflows/npm-publish.yml +50 -50
- package/.husky/commit-msg +0 -0
- package/CHANGELOG.md +759 -741
- package/CODE_OF_CONDUCT.md +79 -79
- package/CONTRIBUTING.md +60 -60
- package/LICENSE +21 -21
- package/README.md +632 -632
- package/SECURITY.md +20 -20
- package/db/index.js +204 -204
- package/docs/NETLIFY_DEPLOYMENT.md +125 -125
- package/docs/PLESK_DEPLOYMENT.md +170 -170
- package/docs/WORKFLOW-BEST-PRACTICES.md +58 -58
- 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 -67
- package/docs/release-notes/RELEASE_NOTES.md +233 -226
- package/docs/web-dashboard.md +175 -175
- package/exec.js +49 -49
- package/index.js +279 -279
- package/install.js +73 -73
- package/package.json +4 -4
- package/release-wrapper.js +192 -192
- package/scripts/build-docs.js +63 -63
- package/scripts/extract-release-notes.cjs +78 -0
- package/scripts/hello-world.js +1 -1
- package/scripts/release.cjs +252 -252
- package/scripts/release.js +252 -0
- package/scripts/update-release-notes.cjs +178 -178
- package/scripts/update-release-notes.js +182 -0
- package/server.json +23 -23
- package/tailwind.config.js +8 -8
- package/tests/build.test.js +83 -83
- package/tests/exec.test.js +35 -35
- package/tests/handlers.test.js +1058 -1058
- package/tests/hello-world.test.js +13 -13
- package/tests/mcpRegistry.test.js +65 -65
- package/tests/patch-release.test.js +7 -0
- package/tests/release-wrapper.test.js +107 -107
- package/tests/workflowState.test.js +505 -505
- package/tools/definitions.js +332 -332
- package/tools/handlers.js +1019 -1019
- package/vite.config.js +43 -43
- package/vite.web.config.js +23 -23
- package/web/README.md +36 -36
- package/web/app/docs/page.tsx +202 -202
- package/web/app/globals.css +90 -90
- package/web/app/layout.tsx +36 -36
- package/web/app/page.tsx +15 -15
- package/web/components/ApiReference.tsx +20 -20
- package/web/components/Features.tsx +61 -61
- package/web/components/Footer.tsx +9 -9
- package/web/components/Hero.tsx +96 -96
- package/web/components/History.tsx +143 -143
- package/web/components/Navbar.tsx +64 -64
- package/web/components/Terminal.tsx +114 -114
- package/web/eslint.config.mjs +18 -18
- package/web/lib/db.js +131 -131
- package/web/lib/docs.js +73 -73
- package/web/netlify.toml +3 -3
- package/web/next.config.ts +12 -12
- package/web/package-lock.json +6560 -6560
- package/web/package.json +28 -28
- package/web/postcss.config.mjs +9 -9
- package/web/server.js +31 -31
- package/web/tailwind.config.ts +19 -19
- package/web/tsconfig.json +42 -42
- package/workflow-state.js +612 -612
package/scripts/build-docs.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { readFile, writeFile, mkdir } from 'node:fs/promises';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import { marked } from 'marked';
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = path.dirname(__filename);
|
|
8
|
-
const projectRoot = path.join(__dirname, '..');
|
|
9
|
-
|
|
10
|
-
const docs = [
|
|
11
|
-
{
|
|
12
|
-
key: 'README.md',
|
|
13
|
-
source: path.join(projectRoot, 'README.md'),
|
|
14
|
-
output: 'README.html',
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
key: 'web-dashboard.md',
|
|
18
|
-
source: path.join(projectRoot, 'docs', 'web-dashboard.md'),
|
|
19
|
-
output: 'web-dashboard.html',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
key: 'GETTING-STARTED.md',
|
|
23
|
-
source: path.join(projectRoot, 'docs', 'antigravity', 'GETTING-STARTED.md'),
|
|
24
|
-
output: 'GETTING-STARTED.html',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
key: 'EXAMPLES.md',
|
|
28
|
-
source: path.join(projectRoot, 'docs', 'antigravity', 'EXAMPLES.md'),
|
|
29
|
-
output: 'EXAMPLES.html',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: 'WORKFLOW-TEMPLATES.md',
|
|
33
|
-
source: path.join(projectRoot, 'docs', 'antigravity', 'WORKFLOW-TEMPLATES.md'),
|
|
34
|
-
output: 'WORKFLOW-TEMPLATES.html',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
key: 'TROUBLESHOOTING.md',
|
|
38
|
-
source: path.join(projectRoot, 'docs', 'antigravity', 'TROUBLESHOOTING.md'),
|
|
39
|
-
output: 'TROUBLESHOOTING.html',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: 'RELEASE_NOTES.md',
|
|
43
|
-
source: path.join(projectRoot, 'docs', 'release-notes', 'RELEASE_NOTES.md'),
|
|
44
|
-
output: 'RELEASE_NOTES.html',
|
|
45
|
-
},
|
|
46
|
-
];
|
|
47
|
-
|
|
48
|
-
const distDocDir = path.join(projectRoot, 'dist', 'docs');
|
|
49
|
-
|
|
50
|
-
async function buildDocs() {
|
|
51
|
-
await mkdir(distDocDir, { recursive: true });
|
|
52
|
-
|
|
53
|
-
for (const doc of docs) {
|
|
54
|
-
const markdown = await readFile(doc.source, 'utf-8');
|
|
55
|
-
const html = marked.parse(markdown);
|
|
56
|
-
await writeFile(path.join(distDocDir, doc.output), html, 'utf-8');
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
buildDocs().catch((error) => {
|
|
61
|
-
console.error('Failed to build documentation assets:', error);
|
|
62
|
-
process.exitCode = 1;
|
|
63
|
-
});
|
|
1
|
+
import { readFile, writeFile, mkdir } from 'node:fs/promises';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { marked } from 'marked';
|
|
5
|
+
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
const projectRoot = path.join(__dirname, '..');
|
|
9
|
+
|
|
10
|
+
const docs = [
|
|
11
|
+
{
|
|
12
|
+
key: 'README.md',
|
|
13
|
+
source: path.join(projectRoot, 'README.md'),
|
|
14
|
+
output: 'README.html',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'web-dashboard.md',
|
|
18
|
+
source: path.join(projectRoot, 'docs', 'web-dashboard.md'),
|
|
19
|
+
output: 'web-dashboard.html',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'GETTING-STARTED.md',
|
|
23
|
+
source: path.join(projectRoot, 'docs', 'antigravity', 'GETTING-STARTED.md'),
|
|
24
|
+
output: 'GETTING-STARTED.html',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: 'EXAMPLES.md',
|
|
28
|
+
source: path.join(projectRoot, 'docs', 'antigravity', 'EXAMPLES.md'),
|
|
29
|
+
output: 'EXAMPLES.html',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'WORKFLOW-TEMPLATES.md',
|
|
33
|
+
source: path.join(projectRoot, 'docs', 'antigravity', 'WORKFLOW-TEMPLATES.md'),
|
|
34
|
+
output: 'WORKFLOW-TEMPLATES.html',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: 'TROUBLESHOOTING.md',
|
|
38
|
+
source: path.join(projectRoot, 'docs', 'antigravity', 'TROUBLESHOOTING.md'),
|
|
39
|
+
output: 'TROUBLESHOOTING.html',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: 'RELEASE_NOTES.md',
|
|
43
|
+
source: path.join(projectRoot, 'docs', 'release-notes', 'RELEASE_NOTES.md'),
|
|
44
|
+
output: 'RELEASE_NOTES.html',
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
const distDocDir = path.join(projectRoot, 'dist', 'docs');
|
|
49
|
+
|
|
50
|
+
async function buildDocs() {
|
|
51
|
+
await mkdir(distDocDir, { recursive: true });
|
|
52
|
+
|
|
53
|
+
for (const doc of docs) {
|
|
54
|
+
const markdown = await readFile(doc.source, 'utf-8');
|
|
55
|
+
const html = marked.parse(markdown);
|
|
56
|
+
await writeFile(path.join(distDocDir, doc.output), html, 'utf-8');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
buildDocs().catch((error) => {
|
|
61
|
+
console.error('Failed to build documentation assets:', error);
|
|
62
|
+
process.exitCode = 1;
|
|
63
|
+
});
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
function escapeRegExp(value) {
|
|
7
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function findReleaseSection(content, version) {
|
|
11
|
+
const headingPattern = new RegExp(`^##\\s+${escapeRegExp(version)}(?:\\s+—[^\\n]*)?`, 'm');
|
|
12
|
+
const headingMatch = content.match(headingPattern);
|
|
13
|
+
if (!headingMatch) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const startIndex = headingMatch.index;
|
|
18
|
+
const afterHeadingIndex = startIndex + headingMatch[0].length;
|
|
19
|
+
const rest = content.slice(afterHeadingIndex);
|
|
20
|
+
|
|
21
|
+
const nextHeadingPattern = /^##\s+/m;
|
|
22
|
+
const nextHeadingMatch = nextHeadingPattern.exec(rest);
|
|
23
|
+
const sectionEnd = nextHeadingMatch ? afterHeadingIndex + nextHeadingMatch.index : content.length;
|
|
24
|
+
|
|
25
|
+
const section = content.slice(startIndex, sectionEnd).trim();
|
|
26
|
+
return section || null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function main() {
|
|
30
|
+
const rawVersionArg = process.argv[2];
|
|
31
|
+
let version = rawVersionArg;
|
|
32
|
+
|
|
33
|
+
if (!version) {
|
|
34
|
+
try {
|
|
35
|
+
const pkg = JSON.parse(fs.readFileSync(path.join(process.cwd(), 'package.json'), 'utf8'));
|
|
36
|
+
version = pkg.version;
|
|
37
|
+
} catch {
|
|
38
|
+
// ignore
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!version) {
|
|
43
|
+
console.error('Unable to determine version. Provide one explicitly, e.g., node scripts/extract-release-notes.cjs 1.5.3');
|
|
44
|
+
process.exit(1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
version = version.replace(/^v/i, '');
|
|
48
|
+
|
|
49
|
+
const releaseNotesPath = path.join(process.cwd(), 'docs', 'release-notes', 'RELEASE_NOTES.md');
|
|
50
|
+
if (!fs.existsSync(releaseNotesPath)) {
|
|
51
|
+
console.error(`Release notes file not found at ${releaseNotesPath}`);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const content = fs.readFileSync(releaseNotesPath, 'utf8');
|
|
56
|
+
const section = findReleaseSection(content, version);
|
|
57
|
+
|
|
58
|
+
if (!section) {
|
|
59
|
+
console.warn(`No release notes section found for version ${version}.`);
|
|
60
|
+
process.stdout.write(`## ${version}\n\nNo detailed release notes were found. Please refer to the CHANGELOG.\n`);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
process.stdout.write(`${section.trim()}\n`);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (require.main === module) {
|
|
68
|
+
try {
|
|
69
|
+
main();
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.error(`Failed to extract release notes: ${error.message}`);
|
|
72
|
+
process.exit(1);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
module.exports = {
|
|
77
|
+
findReleaseSection,
|
|
78
|
+
};
|
package/scripts/hello-world.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
console.log('Hello from Antigravity!');
|
|
1
|
+
console.log('Hello from Antigravity!');
|