@_xtribe/cli 1.0.14 → 1.0.15
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/install-tribe.js +15 -4
- package/install.sh +43 -0
- package/package.json +2 -1
package/install-tribe.js
CHANGED
|
@@ -385,6 +385,16 @@ command -v tribe &> /dev/null || true
|
|
|
385
385
|
// Store that we created the env script
|
|
386
386
|
global.envScriptCreated = true;
|
|
387
387
|
|
|
388
|
+
// Now automatically run setup-path to configure the shell
|
|
389
|
+
try {
|
|
390
|
+
const setupPath = require('./setup-path.js');
|
|
391
|
+
setupPath();
|
|
392
|
+
global.pathSetupComplete = true;
|
|
393
|
+
} catch (error) {
|
|
394
|
+
// If setup-path fails, we'll still show manual instructions
|
|
395
|
+
log.info('Could not automatically configure PATH');
|
|
396
|
+
}
|
|
397
|
+
|
|
388
398
|
return true;
|
|
389
399
|
} catch (error) {
|
|
390
400
|
spinner.fail(`Failed to create PATH environment script: ${error.message}`);
|
|
@@ -1571,11 +1581,12 @@ async function main() {
|
|
|
1571
1581
|
|
|
1572
1582
|
// Provide immediate access to tribe command
|
|
1573
1583
|
if (global.pathSetupComplete) {
|
|
1574
|
-
log.info('
|
|
1584
|
+
log.info('PATH configuration updated automatically!');
|
|
1585
|
+
console.log('');
|
|
1586
|
+
console.log(chalk.bold('✨ TRIBE is ready to use!'));
|
|
1575
1587
|
console.log('');
|
|
1576
|
-
console.log(chalk.
|
|
1577
|
-
console.log(chalk.
|
|
1578
|
-
console.log(chalk.green(' tribe # In new terminal'));
|
|
1588
|
+
console.log(chalk.yellow(' Current terminal: ') + chalk.green('source ~/.tribe/tribe-env.sh'));
|
|
1589
|
+
console.log(chalk.yellow(' New terminal: ') + chalk.green('tribe'));
|
|
1579
1590
|
} else if (global.envScriptCreated) {
|
|
1580
1591
|
log.info('TRIBE command is installed!');
|
|
1581
1592
|
console.log('');
|
package/install.sh
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# TRIBE Quick Installer
|
|
3
|
+
# This script provides a one-command installation with immediate PATH access
|
|
4
|
+
|
|
5
|
+
# Colors
|
|
6
|
+
RED='\033[0;31m'
|
|
7
|
+
GREEN='\033[0;32m'
|
|
8
|
+
BLUE='\033[0;34m'
|
|
9
|
+
YELLOW='\033[1;33m'
|
|
10
|
+
NC='\033[0m' # No Color
|
|
11
|
+
|
|
12
|
+
echo -e "${BLUE}🚀 TRIBE Quick Installer${NC}"
|
|
13
|
+
echo ""
|
|
14
|
+
|
|
15
|
+
# Download and run the installer
|
|
16
|
+
echo "Installing TRIBE components..."
|
|
17
|
+
npx @_xtribe/cli@latest "$@"
|
|
18
|
+
|
|
19
|
+
# Check if installation was successful
|
|
20
|
+
if [ -f ~/.tribe/tribe-env.sh ]; then
|
|
21
|
+
# Source the environment file
|
|
22
|
+
source ~/.tribe/tribe-env.sh
|
|
23
|
+
|
|
24
|
+
echo ""
|
|
25
|
+
echo -e "${GREEN}✅ Installation complete!${NC}"
|
|
26
|
+
echo -e "${GREEN}✅ PATH configured for this session!${NC}"
|
|
27
|
+
echo ""
|
|
28
|
+
|
|
29
|
+
# Verify tribe is available
|
|
30
|
+
if command -v tribe &> /dev/null; then
|
|
31
|
+
echo -e "${YELLOW}You can now use the 'tribe' command immediately!${NC}"
|
|
32
|
+
echo ""
|
|
33
|
+
echo "Try these commands:"
|
|
34
|
+
echo -e " ${GREEN}tribe${NC} - Launch TRIBE"
|
|
35
|
+
echo -e " ${GREEN}tribe status${NC} - Check cluster status"
|
|
36
|
+
else
|
|
37
|
+
echo -e "${YELLOW}Run this command to use tribe:${NC}"
|
|
38
|
+
echo -e " ${GREEN}source ~/.tribe/tribe-env.sh${NC}"
|
|
39
|
+
fi
|
|
40
|
+
else
|
|
41
|
+
echo -e "${RED}❌ Installation may have failed${NC}"
|
|
42
|
+
exit 1
|
|
43
|
+
fi
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_xtribe/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "TRIBE multi-agent development system - Zero to productive with one command",
|
|
5
5
|
"main": "install-tribe.js",
|
|
6
6
|
"bin": {
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"index.js",
|
|
40
40
|
"install-tribe.js",
|
|
41
41
|
"setup-path.js",
|
|
42
|
+
"install.sh",
|
|
42
43
|
"README.md",
|
|
43
44
|
"package.json"
|
|
44
45
|
],
|