@codemcp/workflows 6.0.2 → 6.0.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/package.json +2 -2
- package/packages/cli/dist/{cli-CZ4FMSWR.js → cli-NHYEKRXH.js} +47 -9
- package/packages/cli/dist/{dist-UGVUJIDN.js → dist-6TO57O6M.js} +3 -2
- package/packages/cli/dist/index.js +5 -3
- package/packages/cli/package.json +1 -1
- package/packages/core/package.json +1 -1
- package/packages/docs/package.json +1 -1
- package/packages/mcp-server/dist/index.js +3 -2
- package/packages/mcp-server/package.json +1 -1
- package/packages/visualizer/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codemcp/workflows",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.4",
|
|
4
4
|
"description": "A Model Context Protocol server that acts as an intelligent conversation state manager and development guide for LLMs, featuring comprehensive long-term memory with persistent project artifacts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "packages/cli/dist/index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typescript": "^5.9.3",
|
|
52
52
|
"vitepress": "^1.6.4",
|
|
53
53
|
"vitest": "4.0.18",
|
|
54
|
-
"@codemcp/workflows-core": "6.0.
|
|
54
|
+
"@codemcp/workflows-core": "6.0.4"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.{ts,js,mts,cts,tsx,jsx}": [
|
|
@@ -180,9 +180,18 @@ var ConfigGenerator = class {
|
|
|
180
180
|
*/
|
|
181
181
|
getDefaultMcpConfig() {
|
|
182
182
|
const isWindows = process.platform.startsWith("win");
|
|
183
|
+
if (isWindows) {
|
|
184
|
+
return {
|
|
185
|
+
workflows: {
|
|
186
|
+
command: "cmd",
|
|
187
|
+
args: ["/c", "npx", "@codemcp/workflows-server@latest"]
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
183
191
|
return {
|
|
184
192
|
workflows: {
|
|
185
|
-
command:
|
|
193
|
+
command: "npx",
|
|
194
|
+
args: ["@codemcp/workflows-server@latest"]
|
|
186
195
|
}
|
|
187
196
|
};
|
|
188
197
|
}
|
|
@@ -253,8 +262,17 @@ var ClaudeConfigGenerator = class extends ConfigGenerator {
|
|
|
253
262
|
async generate(outputDir) {
|
|
254
263
|
const systemPrompt = this.getSystemPrompt();
|
|
255
264
|
const mcpServers = this.getDefaultMcpConfig();
|
|
256
|
-
const
|
|
257
|
-
|
|
265
|
+
const claudeDir = join2(outputDir, ".claude");
|
|
266
|
+
const agentsDir = join2(claudeDir, "agents");
|
|
267
|
+
await mkdir(agentsDir, { recursive: true });
|
|
268
|
+
const agentContent = `---
|
|
269
|
+
name: Responsible Vibe
|
|
270
|
+
description: AI assistant that helps users develop software features using structured development workflows.
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
${systemPrompt}`;
|
|
274
|
+
const agentPath = join2(agentsDir, "vibe.md");
|
|
275
|
+
await this.writeFile(agentPath, agentContent);
|
|
258
276
|
const mcpConfig = {
|
|
259
277
|
mcpServers
|
|
260
278
|
};
|
|
@@ -279,7 +297,7 @@ var ClaudeConfigGenerator = class extends ConfigGenerator {
|
|
|
279
297
|
deny: ["Read(./.env)", "Read(./.env.*)", "Read(./secrets/**)"]
|
|
280
298
|
}
|
|
281
299
|
};
|
|
282
|
-
const settingsPath = join2(
|
|
300
|
+
const settingsPath = join2(claudeDir, "settings.json");
|
|
283
301
|
const finalSettings = await this.mergeWithExistingConfig(
|
|
284
302
|
settingsPath,
|
|
285
303
|
settings
|
|
@@ -620,9 +638,18 @@ var SkillGenerator = class {
|
|
|
620
638
|
*/
|
|
621
639
|
getDefaultMcpConfig() {
|
|
622
640
|
const isWindows = process.platform.startsWith("win");
|
|
641
|
+
if (isWindows) {
|
|
642
|
+
return {
|
|
643
|
+
workflows: {
|
|
644
|
+
command: "cmd",
|
|
645
|
+
args: ["/c", "npx", "@codemcp/workflows-server@latest"]
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
}
|
|
623
649
|
return {
|
|
624
650
|
workflows: {
|
|
625
|
-
command:
|
|
651
|
+
command: "npx",
|
|
652
|
+
args: ["@codemcp/workflows-server@latest"]
|
|
626
653
|
}
|
|
627
654
|
};
|
|
628
655
|
}
|
|
@@ -958,6 +985,18 @@ if (isLocal) {
|
|
|
958
985
|
generateSystemPrompt2 = coreModule.generateSystemPrompt;
|
|
959
986
|
StateMachineLoader2 = coreModule.StateMachineLoader;
|
|
960
987
|
}
|
|
988
|
+
function parseFlag(args, flag) {
|
|
989
|
+
for (let i = 0; i < args.length; i++) {
|
|
990
|
+
const arg = args[i];
|
|
991
|
+
if (arg.startsWith(`${flag}=`)) {
|
|
992
|
+
return arg.slice(flag.length + 1);
|
|
993
|
+
}
|
|
994
|
+
if (arg === flag && i + 1 < args.length) {
|
|
995
|
+
return args[i + 1];
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
return void 0;
|
|
999
|
+
}
|
|
961
1000
|
async function parseCliArgs() {
|
|
962
1001
|
const args = process.argv.slice(2);
|
|
963
1002
|
if (args.includes("--help") || args.includes("-h")) {
|
|
@@ -971,8 +1010,7 @@ async function parseCliArgs() {
|
|
|
971
1010
|
handleSetupList();
|
|
972
1011
|
return { shouldExit: true };
|
|
973
1012
|
} else if (subcommand) {
|
|
974
|
-
const
|
|
975
|
-
const mode = modeIndex !== -1 ? args[modeIndex + 1] : "skill";
|
|
1013
|
+
const mode = parseFlag(args, "--mode") ?? "skill";
|
|
976
1014
|
if (mode !== "skill" && mode !== "config") {
|
|
977
1015
|
console.error('\u274C Error: --mode must be "skill" or "config"');
|
|
978
1016
|
process.exit(1);
|
|
@@ -1015,8 +1053,7 @@ async function parseCliArgs() {
|
|
|
1015
1053
|
handleCrowdList();
|
|
1016
1054
|
return { shouldExit: true };
|
|
1017
1055
|
} else if (subcommand === "copy") {
|
|
1018
|
-
const
|
|
1019
|
-
const outputDir = outputDirIndex !== -1 ? args[outputDirIndex + 1] : void 0;
|
|
1056
|
+
const outputDir = parseFlag(args, "--output-dir");
|
|
1020
1057
|
handleCrowdCopy(outputDir);
|
|
1021
1058
|
return { shouldExit: true };
|
|
1022
1059
|
} else {
|
|
@@ -1417,5 +1454,6 @@ async function runCli() {
|
|
|
1417
1454
|
}
|
|
1418
1455
|
}
|
|
1419
1456
|
export {
|
|
1457
|
+
parseFlag,
|
|
1420
1458
|
runCli
|
|
1421
1459
|
};
|
|
@@ -14457,7 +14457,7 @@ async function main() {
|
|
|
14457
14457
|
process.exit(1);
|
|
14458
14458
|
}
|
|
14459
14459
|
}
|
|
14460
|
-
var isMainModule = import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("
|
|
14460
|
+
var isMainModule = import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("ade-workflows-server") || process.argv[1]?.endsWith("index.js");
|
|
14461
14461
|
if (isMainModule) {
|
|
14462
14462
|
await main().catch((error) => {
|
|
14463
14463
|
logger37.error("Unhandled error in main", error);
|
|
@@ -14466,7 +14466,8 @@ if (isMainModule) {
|
|
|
14466
14466
|
}
|
|
14467
14467
|
export {
|
|
14468
14468
|
ResponsibleVibeMCPServer,
|
|
14469
|
-
createResponsibleVibeMCPServer
|
|
14469
|
+
createResponsibleVibeMCPServer,
|
|
14470
|
+
main as startMcpServer
|
|
14470
14471
|
};
|
|
14471
14472
|
/*! Bundled license information:
|
|
14472
14473
|
|
|
@@ -10,12 +10,14 @@ var args = process.argv.slice(2);
|
|
|
10
10
|
if (args.length === 0) {
|
|
11
11
|
const isLocal = existsSync(join(__dirname, "../../mcp-server/dist/index.js"));
|
|
12
12
|
if (isLocal) {
|
|
13
|
-
import("./dist-
|
|
13
|
+
const { startMcpServer } = await import("./dist-6TO57O6M.js");
|
|
14
|
+
await startMcpServer();
|
|
14
15
|
} else {
|
|
15
16
|
const mcpServerModule = "@codemcp/workflows-server";
|
|
16
|
-
import(mcpServerModule);
|
|
17
|
+
const { startMcpServer } = await import(mcpServerModule);
|
|
18
|
+
await startMcpServer();
|
|
17
19
|
}
|
|
18
20
|
} else {
|
|
19
|
-
const { runCli } = await import("./cli-
|
|
21
|
+
const { runCli } = await import("./cli-NHYEKRXH.js");
|
|
20
22
|
await runCli();
|
|
21
23
|
}
|
|
@@ -10528,7 +10528,7 @@ async function main() {
|
|
|
10528
10528
|
process.exit(1);
|
|
10529
10529
|
}
|
|
10530
10530
|
}
|
|
10531
|
-
var isMainModule = import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("
|
|
10531
|
+
var isMainModule = import.meta.url === `file://${process.argv[1]}` || process.argv[1]?.endsWith("ade-workflows-server") || process.argv[1]?.endsWith("index.js");
|
|
10532
10532
|
if (isMainModule) {
|
|
10533
10533
|
await main().catch((error) => {
|
|
10534
10534
|
logger37.error("Unhandled error in main", error);
|
|
@@ -10537,7 +10537,8 @@ if (isMainModule) {
|
|
|
10537
10537
|
}
|
|
10538
10538
|
export {
|
|
10539
10539
|
ResponsibleVibeMCPServer,
|
|
10540
|
-
createResponsibleVibeMCPServer
|
|
10540
|
+
createResponsibleVibeMCPServer,
|
|
10541
|
+
main as startMcpServer
|
|
10541
10542
|
};
|
|
10542
10543
|
/*! Bundled license information:
|
|
10543
10544
|
|