borgmcp 0.2.0-beta.3 → 0.2.0-beta.4

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.
@@ -2,8 +2,7 @@
2
2
  /**
3
3
  * Post-install script
4
4
  *
5
- * Auto-runs borgmcp setup when TTY is available (interactive terminal)
6
- * Otherwise shows instructions to run setup manually
5
+ * Detects local vs global installation and rejects local installs
7
6
  */
8
- export {};
7
+ declare const isGlobal: boolean;
9
8
  //# sourceMappingURL=postinstall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;;GAKG"}
1
+ {"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAGH,QAAA,MAAM,QAAQ,SAA2C,CAAC"}
@@ -1,38 +1,23 @@
1
1
  #!/usr/bin/env node
2
+ "use strict";
2
3
  /**
3
4
  * Post-install script
4
5
  *
5
- * Auto-runs borgmcp setup when TTY is available (interactive terminal)
6
- * Otherwise shows instructions to run setup manually
6
+ * Detects local vs global installation and rejects local installs
7
7
  */
8
- import { spawn } from 'child_process';
9
- // Check if running in interactive terminal
10
- if (process.stdout.isTTY && process.stdin.isTTY) {
11
- console.log('\n╔════════════════════════════════════╗');
12
- console.log('║ 🧠 Borg MCP Installed! 🎉 ║');
13
- console.log('╚════════════════════════════════════╝\n');
14
- console.log('Starting setup wizard...\n');
15
- // Run borgmcp setup
16
- const setup = spawn('borgmcp', ['setup'], {
17
- stdio: 'inherit',
18
- shell: true
19
- });
20
- setup.on('error', (err) => {
21
- console.error('\n⚠️ Could not auto-run setup.');
22
- console.error('Please run manually: borgmcp setup\n');
23
- });
24
- }
25
- else {
26
- // Non-interactive (CI/CD, piped output, etc.)
27
- console.log('\n╔════════════════════════════════════╗');
28
- console.log('║ 🧠 Borg MCP Installed! 🎉 ║');
29
- console.log('╚════════════════════════════════════╝\n');
30
- console.log('Centralized context storage for Claude\n');
31
- console.log('Next step:');
32
- console.log(' $ borgmcp setup\n');
33
- console.log('This will:');
34
- console.log(' • Configure Claude Code');
35
- console.log(' • Authenticate with Google');
36
- console.log(' • Set up your 7-day trial\n');
8
+ // Check if this is a local install (npm_config_global is not set)
9
+ const isGlobal = process.env.npm_config_global === 'true';
10
+ if (!isGlobal) {
11
+ console.error('\n❌ Error: borgmcp must be installed globally\n');
12
+ console.error('Please install with:');
13
+ console.error(' npm install -g borgmcp@beta\n');
14
+ console.error('Local installation is not supported.\n');
15
+ process.exit(1);
37
16
  }
17
+ // Global install - show instructions
18
+ console.log('\n╔════════════════════════════════════╗');
19
+ console.log('║ 🧠 Borg MCP Installed! 🎉 ║');
20
+ console.log('╚════════════════════════════════════╝\n');
21
+ console.log('Next step:');
22
+ console.log(' borgmcp setup\n');
38
23
  //# sourceMappingURL=postinstall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,2CAA2C;AAC3C,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;IACrD,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;IACxD,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAE1C,oBAAoB;IACpB,MAAM,KAAK,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC,OAAO,CAAC,EAAE;QACxC,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;IAEH,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,CAA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C,CAAC;AACxD,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AACrD,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AACxD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAC1B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "borgmcp",
3
- "version": "0.2.0-beta.3",
3
+ "version": "0.2.0-beta.4",
4
4
  "description": "Centralized context storage for Claude - install once, sync everywhere",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",