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.
- package/dist/postinstall.d.ts +2 -3
- package/dist/postinstall.d.ts.map +1 -1
- package/dist/postinstall.js +16 -31
- 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
|
-
* Otherwise shows instructions to run setup manually
|
|
5
|
+
* Detects local vs global installation and rejects local installs
|
|
7
6
|
*/
|
|
8
|
-
|
|
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
|
@@ -1,38 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
2
3
|
/**
|
|
3
4
|
* Post-install script
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
* Otherwise shows instructions to run setup manually
|
|
6
|
+
* Detects local vs global installation and rejects local installs
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
console.
|
|
12
|
-
console.
|
|
13
|
-
console.
|
|
14
|
-
console.
|
|
15
|
-
|
|
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
|
package/dist/postinstall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":"
|
|
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"}
|