@_xtribe/cli 2.2.76 → 2.2.77
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/enhanced-path-setup.js +8 -25
- package/install-tribe-minimal.js +7 -9
- package/package.json +1 -1
package/enhanced-path-setup.js
CHANGED
|
@@ -120,32 +120,15 @@ if (Test-Path $TribeBinDir) {
|
|
|
120
120
|
}`;
|
|
121
121
|
} else {
|
|
122
122
|
// Bash/Zsh with enhanced detection
|
|
123
|
-
envScript = `#!/bin/
|
|
124
|
-
# TRIBE CLI Environment
|
|
125
|
-
# Generated on $(date) - Install ID: ${this.installId}
|
|
126
|
-
|
|
123
|
+
envScript = `#!/bin/sh
|
|
124
|
+
# TRIBE CLI Environment - PATH setup only (no commands executed at shell startup)
|
|
127
125
|
TRIBE_BIN_DIR="$HOME/.tribe/bin"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
# Already in PATH, do nothing
|
|
135
|
-
;;
|
|
136
|
-
*)
|
|
137
|
-
# Add to PATH
|
|
138
|
-
export PATH="$TRIBE_BIN_DIR:$PATH"
|
|
139
|
-
;;
|
|
140
|
-
esac
|
|
141
|
-
fi
|
|
142
|
-
|
|
143
|
-
# Validate installation
|
|
144
|
-
if command -v tribe >/dev/null 2>&1; then
|
|
145
|
-
# Optional: Set additional TRIBE environment variables
|
|
146
|
-
export TRIBE_HOME="$HOME/.tribe"
|
|
147
|
-
export TRIBE_VERSION="$(tribe version 2>/dev/null || echo 'unknown')"
|
|
148
|
-
fi`;
|
|
126
|
+
case ":$PATH:" in
|
|
127
|
+
*":$TRIBE_BIN_DIR:"*) ;;
|
|
128
|
+
*) [ -d "$TRIBE_BIN_DIR" ] && export PATH="$TRIBE_BIN_DIR:$PATH" ;;
|
|
129
|
+
esac
|
|
130
|
+
export TRIBE_HOME="$HOME/.tribe"
|
|
131
|
+
`;
|
|
149
132
|
}
|
|
150
133
|
|
|
151
134
|
fs.writeFileSync(envScriptPath, envScript);
|
package/install-tribe-minimal.js
CHANGED
|
@@ -106,16 +106,14 @@ async function installTribe() {
|
|
|
106
106
|
function updatePath() {
|
|
107
107
|
// Create tribe-env.sh script
|
|
108
108
|
const tribeEnvPath = path.join(tribeDir, 'tribe-env.sh');
|
|
109
|
-
const envScriptContent = `#!/bin/
|
|
110
|
-
# TRIBE CLI Environment
|
|
111
|
-
# Auto-generated by TRIBE installer
|
|
112
|
-
|
|
113
|
-
# Add TRIBE bin directory to PATH if not already present
|
|
109
|
+
const envScriptContent = `#!/bin/sh
|
|
110
|
+
# TRIBE CLI Environment - PATH setup only (no commands executed at shell startup)
|
|
114
111
|
TRIBE_BIN_DIR="$HOME/.tribe/bin"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export PATH="$TRIBE_BIN_DIR:$PATH"
|
|
118
|
-
|
|
112
|
+
case ":$PATH:" in
|
|
113
|
+
*":$TRIBE_BIN_DIR:"*) ;;
|
|
114
|
+
*) [ -d "$TRIBE_BIN_DIR" ] && export PATH="$TRIBE_BIN_DIR:$PATH" ;;
|
|
115
|
+
esac
|
|
116
|
+
export TRIBE_HOME="$HOME/.tribe"
|
|
119
117
|
`;
|
|
120
118
|
|
|
121
119
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_xtribe/cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.77",
|
|
4
4
|
"description": "TRIBE - Privacy-first AI development analytics. Self-host your telemetry, skip authentication, or run completely offline. Your data stays on your machine.",
|
|
5
5
|
"main": "install-tribe.js",
|
|
6
6
|
"bin": {
|