@virsanghavi/axis-server 1.0.6 → 1.0.7
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/mcp-server.mjs +6 -5
- package/package.json +1 -1
package/dist/mcp-server.mjs
CHANGED
|
@@ -20,15 +20,16 @@ import dotenv2 from "dotenv";
|
|
|
20
20
|
import fs from "fs/promises";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { Mutex } from "async-mutex";
|
|
23
|
-
var LEGACY_INSTRUCTIONS_DIR = path.resolve(process.cwd(), "agent-instructions");
|
|
24
|
-
var AXIS_DIR = path.resolve(process.cwd(), ".axis");
|
|
25
|
-
var INSTRUCTIONS_DIR = path.resolve(AXIS_DIR, "instructions");
|
|
26
23
|
function getEffectiveInstructionsDir() {
|
|
24
|
+
const cwd = process.cwd();
|
|
25
|
+
const axisDir = path.resolve(cwd, ".axis");
|
|
26
|
+
const instructionsDir = path.resolve(axisDir, "instructions");
|
|
27
|
+
const legacyDir = path.resolve(cwd, "agent-instructions");
|
|
27
28
|
try {
|
|
28
|
-
if (__require("fs").existsSync(
|
|
29
|
+
if (__require("fs").existsSync(instructionsDir)) return instructionsDir;
|
|
29
30
|
} catch {
|
|
30
31
|
}
|
|
31
|
-
return
|
|
32
|
+
return legacyDir;
|
|
32
33
|
}
|
|
33
34
|
var ContextManager = class {
|
|
34
35
|
mutex;
|