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 +5 -3
- package/dist/linux-arm64/automagik-forge-mcp.zip +0 -0
- package/dist/linux-arm64/automagik-forge.zip +0 -0
- package/dist/linux-x64/automagik-forge-mcp.zip +0 -0
- package/dist/linux-x64/automagik-forge.zip +0 -0
- package/dist/macos-arm64/automagik-forge-mcp.zip +0 -0
- package/dist/macos-arm64/automagik-forge.zip +0 -0
- package/dist/windows-x64/automagik-forge-mcp.zip +0 -0
- package/dist/windows-x64/automagik-forge.zip +0 -0
- package/package.json +1 -1
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
|
|
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.
|
|
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
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|