@codemcp/workflows 6.0.3 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows",
3
- "version": "6.0.3",
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.3"
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: isWindows ? ["cmd", "/c", "npx", "@codemcp/workflows-server@latest"] : ["npx", "@codemcp/workflows-server@latest"]
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 claudeMdPath = join2(outputDir, "CLAUDE.md");
257
- await this.writeFile(claudeMdPath, systemPrompt);
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(outputDir, "settings.json");
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: isWindows ? ["cmd", "/c", "npx", "@codemcp/workflows-server@latest"] : ["npx", "@codemcp/workflows-server@latest"]
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 modeIndex = args.findIndex((arg) => arg === "--mode");
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 outputDirIndex = args.findIndex((arg) => arg === "--output-dir");
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
  };
@@ -18,6 +18,6 @@ if (args.length === 0) {
18
18
  await startMcpServer();
19
19
  }
20
20
  } else {
21
- const { runCli } = await import("./cli-CZ4FMSWR.js");
21
+ const { runCli } = await import("./cli-NHYEKRXH.js");
22
22
  await runCli();
23
23
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-cli",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "CLI tools for responsible-vibe development workflows",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-core",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-docs",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "Documentation site for Responsible Vibe MCP",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-server",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "MCP server for responsible-vibe development workflows - provides structured workflow guidance",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemcp/workflows-visualizer",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.ts",
6
6
  "module": "dist/index.ts",