@agiflowai/aicode-toolkit 0.6.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.
- package/LICENSE +661 -0
- package/README.md +151 -0
- package/dist/cli.cjs +732 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +727 -0
- package/dist/index.cjs +17 -0
- package/dist/index.d.cts +282 -0
- package/dist/index.d.ts +282 -0
- package/dist/index.js +4 -0
- package/dist/mcp-Bdxvi2Ej.cjs +4 -0
- package/dist/mcp-BmhiAfeF.js +47 -0
- package/dist/mcp-CZIiB-6Y.js +3 -0
- package/dist/mcp-Dwt8nYQV.cjs +65 -0
- package/dist/services-DNldrNnu.js +739 -0
- package/dist/services-s1vmufE4.cjs +859 -0
- package/package.json +85 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/constants/mcp.ts
|
|
3
|
+
/**
|
|
4
|
+
* MCP (Model Context Protocol) Server Constants
|
|
5
|
+
*
|
|
6
|
+
* DESIGN PATTERNS:
|
|
7
|
+
* - Centralized constants for MCP server configuration
|
|
8
|
+
* - Enum pattern for type-safe MCP server selection
|
|
9
|
+
*
|
|
10
|
+
* CODING STANDARDS:
|
|
11
|
+
* - Use UPPER_CASE for constant values
|
|
12
|
+
* - Document each constant with JSDoc comments
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Available MCP servers
|
|
16
|
+
*/
|
|
17
|
+
let MCPServer = /* @__PURE__ */ function(MCPServer$1) {
|
|
18
|
+
MCPServer$1["ARCHITECT"] = "architect-mcp";
|
|
19
|
+
MCPServer$1["SCAFFOLD"] = "scaffold-mcp";
|
|
20
|
+
return MCPServer$1;
|
|
21
|
+
}({});
|
|
22
|
+
/**
|
|
23
|
+
* MCP server configuration files
|
|
24
|
+
* Maps each MCP server to its specific configuration files
|
|
25
|
+
*
|
|
26
|
+
* - architect-mcp: Only needs RULES.yaml and architect.yaml
|
|
27
|
+
* - scaffold-mcp: Needs all other template files (excluding architect files)
|
|
28
|
+
*/
|
|
29
|
+
const MCP_CONFIG_FILES = {
|
|
30
|
+
[MCPServer.ARCHITECT]: ["RULES.yaml", "architect.yaml"],
|
|
31
|
+
[MCPServer.SCAFFOLD]: []
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* MCP server display names and descriptions for user prompts
|
|
35
|
+
*/
|
|
36
|
+
const MCP_SERVER_INFO = {
|
|
37
|
+
[MCPServer.ARCHITECT]: {
|
|
38
|
+
name: "Architect MCP",
|
|
39
|
+
description: "Code review, design patterns, and coding standards enforcement"
|
|
40
|
+
},
|
|
41
|
+
[MCPServer.SCAFFOLD]: {
|
|
42
|
+
name: "Scaffold MCP",
|
|
43
|
+
description: "Project scaffolding, boilerplates, and feature generation"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
Object.defineProperty(exports, 'MCPServer', {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return MCPServer;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, 'MCP_CONFIG_FILES', {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return MCP_CONFIG_FILES;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, 'MCP_SERVER_INFO', {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return MCP_SERVER_INFO;
|
|
64
|
+
}
|
|
65
|
+
});
|