@ufira/vibma 0.2.1 → 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/dist/mcp.cjs CHANGED
@@ -46,6 +46,7 @@ var import_ws = __toESM(require("ws"), 1);
46
46
  var import_uuid = require("uuid");
47
47
  var import_fs = require("fs");
48
48
  var import_path = require("path");
49
+ var import_url = require("url");
49
50
 
50
51
  // src/tools/document.ts
51
52
  var import_zod = require("zod");
@@ -1885,9 +1886,10 @@ function registerAllTools(server2, sendCommand) {
1885
1886
  }
1886
1887
 
1887
1888
  // src/mcp.ts
1889
+ var import_meta = {};
1888
1890
  var VIBMA_VERSION = "0.0.0";
1889
1891
  try {
1890
- const start = typeof __dirname !== "undefined" ? __dirname : process.cwd();
1892
+ const start = typeof import_meta?.url !== "undefined" ? (0, import_path.join)((0, import_url.fileURLToPath)(import_meta.url), "..") : typeof __dirname !== "undefined" ? __dirname : process.cwd();
1891
1893
  for (let dir = start; dir !== "/"; dir = (0, import_path.join)(dir, "..")) {
1892
1894
  try {
1893
1895
  const pkg = JSON.parse((0, import_fs.readFileSync)((0, import_path.join)(dir, "package.json"), "utf8"));