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.
@@ -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
- const packageJsonPath = join(__dirname, '..', 'package.json');
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). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitcompass",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "BitCompass CLI - rules, solutions, and MCP server",
5
5
  "type": "module",
6
6
  "bin": {