@_xtribe/cli 2.1.8 → 2.1.9

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tribe.js +14 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "TRIBE - Track, measure and optimize your AI coding agents to become 10x faster",
5
5
  "main": "install-tribe.js",
6
6
  "bin": {
package/tribe.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  /**
4
4
  * TRIBE CLI wrapper for npm users
5
- * This tries to run the installed tribe binary, or installs it if not found
5
+ * This tries to run the installed tribe binary, or gives installation instructions
6
6
  */
7
7
 
8
- const { spawn, execSync } = require('child_process');
8
+ const { spawn } = require('child_process');
9
9
  const fs = require('fs');
10
10
  const path = require('path');
11
11
  const os = require('os');
@@ -26,19 +26,16 @@ if (fs.existsSync(tribeBinPath)) {
26
26
  process.exit(code || 0);
27
27
  });
28
28
  } else {
29
- // Tribe not installed, run installer first
30
- console.log('šŸš€ TRIBE CLI not found. Installing...\n');
31
-
32
- const installerPath = path.join(__dirname, 'install-tribe.js');
33
- const child = spawn(process.execPath, [installerPath, ...process.argv.slice(2)], {
34
- stdio: 'inherit',
35
- env: process.env
36
- });
37
-
38
- child.on('exit', (code) => {
39
- if (code === 0) {
40
- console.log('\nāœ… Installation complete! You can now run: tribe');
41
- }
42
- process.exit(code || 0);
43
- });
29
+ // Tribe not installed, show installation instructions
30
+ console.log('āŒ TRIBE CLI not found');
31
+ console.log('');
32
+ console.log('šŸ“¦ To install TRIBE CLI, run:');
33
+ console.log(' npx @_xtribe/cli');
34
+ console.log('');
35
+ console.log('šŸ’” Then you can use:');
36
+ console.log(' tribe --version');
37
+ console.log(' tribe status');
38
+ console.log(' tribe login');
39
+ console.log('');
40
+ process.exit(1);
44
41
  }