borgmcp 0.2.0-beta.2 → 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.
@@ -2,8 +2,8 @@
2
2
  /**
3
3
  * Post-install script
4
4
  *
5
- * Displays welcome message after npm install
6
- * Non-interactive - just shows next steps
7
- * Uses plain console.log (no dependencies) to ensure it always runs
5
+ * Auto-runs borgmcp setup when TTY is available (interactive terminal)
6
+ * Otherwise shows instructions to run setup manually
8
7
  */
8
+ export {};
9
9
  //# sourceMappingURL=postinstall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;;;GAMG"}
1
+ {"version":3,"file":"postinstall.d.ts","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;;GAKG"}
@@ -1,20 +1,38 @@
1
1
  #!/usr/bin/env node
2
- "use strict";
3
2
  /**
4
3
  * Post-install script
5
4
  *
6
- * Displays welcome message after npm install
7
- * Non-interactive - just shows next steps
8
- * Uses plain console.log (no dependencies) to ensure it always runs
5
+ * Auto-runs borgmcp setup when TTY is available (interactive terminal)
6
+ * Otherwise shows instructions to run setup manually
9
7
  */
10
- console.log('\n╔════════════════════════════════════╗');
11
- console.log('║ 🧠 Borg MCP Installed! 🎉 ║');
12
- console.log('╚════════════════════════════════════╝\n');
13
- console.log('Centralized context storage for Claude\n');
14
- console.log('Next step:');
15
- console.log(' $ borgmcp setup\n');
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');
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
+ }
20
38
  //# sourceMappingURL=postinstall.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";;AACA;;;;;;GAMG;AAEH,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AACxD,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAC;AACrD,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AAExD,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;AAExD,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAC1B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;AAEnC,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AAC1B,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;AACzC,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;AAC5C,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAC"}
1
+ {"version":3,"file":"postinstall.js","sourceRoot":"","sources":["../src/postinstall.ts"],"names":[],"mappings":";AACA;;;;;GAKG;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CAAC,CAAC;AAC/C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "borgmcp",
3
- "version": "0.2.0-beta.2",
3
+ "version": "0.2.0-beta.3",
4
4
  "description": "Centralized context storage for Claude - install once, sync everywhere",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",