@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.
@@ -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(INSTRUCTIONS_DIR)) return INSTRUCTIONS_DIR;
29
+ if (__require("fs").existsSync(instructionsDir)) return instructionsDir;
29
30
  } catch {
30
31
  }
31
- return LEGACY_INSTRUCTIONS_DIR;
32
+ return legacyDir;
32
33
  }
33
34
  var ContextManager = class {
34
35
  mutex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virsanghavi/axis-server",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Axis MCP Server CLI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {