borgmcp 0.2.0-beta.1 → 0.2.0-beta.3
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 -2
- package/dist/postinstall.js +32 -13
- package/dist/postinstall.js.map +1 -1
- package/package.json +1 -1
package/dist/postinstall.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Post-install script
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Auto-runs borgmcp setup when TTY is available (interactive terminal)
|
|
6
|
+
* Otherwise shows instructions to run setup manually
|
|
7
7
|
*/
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=postinstall.d.ts.map
|
package/dist/postinstall.js
CHANGED
|
@@ -2,18 +2,37 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Post-install script
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Auto-runs borgmcp setup when TTY is available (interactive terminal)
|
|
6
|
+
* Otherwise shows instructions to run setup manually
|
|
7
7
|
*/
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
console.log(
|
|
12
|
-
console.log(
|
|
13
|
-
console.log(
|
|
14
|
-
console.log(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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');
|
|
37
|
+
}
|
|
19
38
|
//# 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;;;;;GAKG;AAEH,OAAO,KAAK,MAAM,
|
|
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,KAA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