automagik-forge 0.4.2 → 0.4.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/bin/cli.js CHANGED
@@ -62,7 +62,8 @@ function getBinaryName(base) {
62
62
 
63
63
  const platformDir = getPlatformDir();
64
64
  const extractDir = path.join(__dirname, "..", "dist", platformDir);
65
- const isMcpMode = process.argv.includes("--mcp");
65
+ const isMcpMode = process.argv.includes("--mcp") || process.argv.includes("--mcp-advanced");
66
+ const isAdvancedMode = process.argv.includes("--mcp-advanced");
66
67
 
67
68
  // ensure output dir
68
69
  fs.mkdirSync(extractDir, { recursive: true });
@@ -100,14 +101,15 @@ function extractAndRun(baseName, launch) {
100
101
  if (isMcpMode) {
101
102
  extractAndRun("automagik-forge-mcp", (bin) => {
102
103
  const env = { ...process.env };
103
- const proc = spawn(bin, [], { stdio: "inherit", env });
104
+ const args = isAdvancedMode ? ["--advanced"] : [];
105
+ const proc = spawn(bin, args, { stdio: "inherit", env });
104
106
  proc.on("exit", (c) => process.exit(c || 0));
105
107
  proc.on("error", (e) => {
106
108
  console.error("āŒ MCP server error:", e.message);
107
109
  process.exit(1);
108
110
  });
109
111
  process.on("SIGINT", () => {
110
- console.error("\nšŸ›‘ Shutting down MCP server...");
112
+ console.log("\nšŸ›‘ Shutting down MCP server...");
111
113
  proc.kill("SIGINT");
112
114
  });
113
115
  process.on("SIGTERM", () => proc.kill("SIGTERM"));
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "automagik-forge",
3
3
  "private": false,
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "automagik-forge": "bin/cli.js"