bitcompass 0.3.6 → 0.3.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.js +2 -1
- package/package.json +1 -1
package/dist/mcp/server.js
CHANGED
|
@@ -7,7 +7,8 @@ import { loadCredentials } from '../auth/config.js';
|
|
|
7
7
|
import { getProjectConfig } from '../auth/project-config.js';
|
|
8
8
|
import { pullRuleToFile } from '../lib/rule-file-ops.js';
|
|
9
9
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
|
|
10
|
+
// From dist/mcp/server.js (or src/mcp/server.ts when run via Bun), package.json is at package root
|
|
11
|
+
const packageJsonPath = join(__dirname, '..', '..', 'package.json');
|
|
11
12
|
const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
|
|
12
13
|
const VERSION = packageJson.version ?? '0.0.0';
|
|
13
14
|
/** When token is missing, we fail initialize so Cursor shows "Needs authentication" (yellow) instead of success (green). */
|