swagmanager-mcp 3.0.1 → 3.0.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.
@@ -18,9 +18,12 @@ import { colors, symbols, boxLine } from "../shared/Theme.js";
18
18
  import { loadConfig } from "../services/config-store.js";
19
19
  import { getStoresForUser, getValidToken, selectStore } from "../services/auth-service.js";
20
20
  import { createRequire } from "module";
21
+ import { fileURLToPath } from "url";
22
+ import { dirname, join } from "path";
21
23
  const PKG_NAME = "swagmanager-mcp";
22
- const require = createRequire(import.meta.url);
23
- const PKG_VERSION = require("../../package.json").version;
24
+ const __filename = fileURLToPath(import.meta.url);
25
+ const __dirname = dirname(__filename);
26
+ const PKG_VERSION = createRequire(import.meta.url)(join(__dirname, "..", "..", "..", "package.json")).version;
24
27
  export function ChatApp() {
25
28
  const { exit } = useApp();
26
29
  const [ready, setReady] = useState(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagmanager-mcp",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "description": "whale code — local-first AI agent CLI for inventory, orders, and analytics powered by MCP",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",