borgmcp 0.2.0-beta.2 → 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.
- package/dist/postinstall.d.ts +2 -3
- package/dist/postinstall.d.ts.map +1 -1
- package/dist/postinstall.js +12 -9
- package/dist/postinstall.js.map +1 -1
- package/package.json +1 -1
package/dist/postinstall.d.ts
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Post-install script
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
* Non-interactive - just shows next steps
|
|
7
|
-
* Uses plain console.log (no dependencies) to ensure it always runs
|
|
5
|
+
* Detects local vs global installation and rejects local installs
|
|
8
6
|
*/
|
|
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
|
|
1
|
+
{"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;GAIG;AAGH,QAAA,MAAM,QAAQ,SAA2C,CAAC"}
|
package/dist/postinstall.js
CHANGED
|
@@ -3,18 +3,21 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Post-install script
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* Non-interactive - just shows next steps
|
|
8
|
-
* Uses plain console.log (no dependencies) to ensure it always runs
|
|
6
|
+
* Detects local vs global installation and rejects local installs
|
|
9
7
|
*/
|
|
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);
|
|
16
|
+
}
|
|
17
|
+
// Global install - show instructions
|
|
10
18
|
console.log('\n╔════════════════════════════════════╗');
|
|
11
19
|
console.log('║ 🧠 Borg MCP Installed! 🎉 ║');
|
|
12
20
|
console.log('╚════════════════════════════════════╝\n');
|
|
13
|
-
console.log('Centralized context storage for Claude\n');
|
|
14
21
|
console.log('Next step:');
|
|
15
|
-
console.log('
|
|
16
|
-
console.log('This will:');
|
|
17
|
-
console.log(' • Configure Claude Code');
|
|
18
|
-
console.log(' • Authenticate with Google');
|
|
19
|
-
console.log(' • Set up your 7-day trial\n');
|
|
22
|
+
console.log(' borgmcp setup\n');
|
|
20
23
|
//# sourceMappingURL=postinstall.js.map
|
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";;AACA
|
|
1
|
+
{"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";;AACA;;;;GAIG;AAEH,kEAAkE;AAClE,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,KAAK,MAAM,CAAC;AAE1D,IAAI,CAAC,QAAQ,EAAE,CAAC;IACd,OAAO,CAAC,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACjE,OAAO,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,iCAAiC,CAAC,CAAC;IACjD,OAAO,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;IACxD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,qCAAqC;AACrC,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,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"}
|