@codai/axiom-mcp 1.0.21 → 1.0.23
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/dist/server.js +27 -8
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -65,14 +65,33 @@ const server = http.createServer(async (req, res) => {
|
|
|
65
65
|
if (!input.manifest)
|
|
66
66
|
return send(res, 400, { error: "Missing manifest" });
|
|
67
67
|
const mode = input.mode || "fs";
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
try {
|
|
69
|
+
const result = await apply({
|
|
70
|
+
manifest: input.manifest,
|
|
71
|
+
mode: mode,
|
|
72
|
+
repoPath: input.repoPath, // Optional - va folosi process.cwd() dacă lipsește
|
|
73
|
+
branchName: input.branchName,
|
|
74
|
+
commitMessage: input.commitMessage,
|
|
75
|
+
});
|
|
76
|
+
// Check for ERR_REPOPATH_RELATIVE_UNSAFE and provide friendly guidance
|
|
77
|
+
if (!result.success && result.error?.includes("ERR_REPOPATH_RELATIVE_UNSAFE")) {
|
|
78
|
+
return send(res, 200, {
|
|
79
|
+
...result,
|
|
80
|
+
errorCode: "ERR_REPOPATH_RELATIVE_UNSAFE",
|
|
81
|
+
hint: "Furnizează repoPath absolut sau setează AXIOM_REPO_ROOT la rădăcina repo-ului."
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
return send(res, 200, result);
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
// Catch any other apply errors
|
|
88
|
+
return send(res, 500, {
|
|
89
|
+
success: false,
|
|
90
|
+
mode,
|
|
91
|
+
filesWritten: [],
|
|
92
|
+
error: err.message
|
|
93
|
+
});
|
|
94
|
+
}
|
|
76
95
|
}
|
|
77
96
|
if (req.method === "POST" && req.url === "/fs-probe-write") {
|
|
78
97
|
// Independent cross-drive write testing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codai/axiom-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"axiom-mcp": "dist/server.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@codai/axiom-emitter-batchjob": "^1.0.1",
|
|
26
26
|
"@codai/axiom-emitter-docker": "^1.0.1",
|
|
27
27
|
"@codai/axiom-emitter-webapp": "^1.0.1",
|
|
28
|
-
"@codai/axiom-engine": "^1.0.
|
|
28
|
+
"@codai/axiom-engine": "^1.0.23",
|
|
29
29
|
"@codai/axiom-policies": "^1.0.1",
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.20.1"
|
|
31
31
|
},
|