automagik-forge 0.2.0 → 0.2.2
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
@@ -102,6 +102,39 @@ function getUnderlyingArch() {
|
|
102
102
|
return "x64";
|
103
103
|
}
|
104
104
|
|
105
|
+
// Handle help and version flags first
|
106
|
+
if (process.argv.includes("--help") || process.argv.includes("-h")) {
|
107
|
+
console.log(`
|
108
|
+
automagik-forge v${require("../package.json").version}
|
109
|
+
|
110
|
+
Usage: npx automagik-forge [options]
|
111
|
+
|
112
|
+
Options:
|
113
|
+
--help, -h Show this help message
|
114
|
+
--version, -v Show version
|
115
|
+
--mcp Run only MCP server (STDIO mode)
|
116
|
+
--mcp-sse Run only MCP server (SSE + STDIO mode)
|
117
|
+
|
118
|
+
Without options: Runs both backend server and MCP SSE server concurrently
|
119
|
+
|
120
|
+
Environment Variables:
|
121
|
+
BACKEND_PORT Backend server port (default: 8887)
|
122
|
+
MCP_SSE_PORT MCP SSE server port (default: 8889)
|
123
|
+
HOST Server host (default: 127.0.0.1)
|
124
|
+
|
125
|
+
Examples:
|
126
|
+
npx automagik-forge # Start both servers
|
127
|
+
npx automagik-forge --mcp # MCP server only (STDIO)
|
128
|
+
npx automagik-forge --mcp-sse # MCP server only (SSE + STDIO)
|
129
|
+
`);
|
130
|
+
process.exit(0);
|
131
|
+
}
|
132
|
+
|
133
|
+
if (process.argv.includes("--version") || process.argv.includes("-v")) {
|
134
|
+
console.log(require("../package.json").version);
|
135
|
+
process.exit(0);
|
136
|
+
}
|
137
|
+
|
105
138
|
const platform = process.platform;
|
106
139
|
const arch = getUnderlyingArch();
|
107
140
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "automagik-forge",
|
3
3
|
"private": false,
|
4
|
-
"version": "0.2.
|
4
|
+
"version": "0.2.2",
|
5
5
|
"main": "index.js",
|
6
6
|
"bin": {
|
7
7
|
"automagik-forge": "bin/cli.js"
|
@@ -14,7 +14,5 @@
|
|
14
14
|
"dist",
|
15
15
|
"bin"
|
16
16
|
],
|
17
|
-
"dependencies": {
|
18
|
-
"automagik-forge": "^0.2.0"
|
19
|
-
}
|
17
|
+
"dependencies": {}
|
20
18
|
}
|