@_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.
@@ -120,32 +120,15 @@ if (Test-Path $TribeBinDir) {
120
120
  }`;
121
121
  } else {
122
122
  // Bash/Zsh with enhanced detection
123
- envScript = `#!/bin/bash
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
- # Enhanced PATH detection - handles edge cases
130
- if [[ -d "$TRIBE_BIN_DIR" ]]; then
131
- # Check if already in PATH using multiple methods
132
- case ":$PATH:" in
133
- *":$TRIBE_BIN_DIR:"*)
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);
@@ -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/bash
110
- # TRIBE CLI Environment Setup
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
- if [[ -d "$TRIBE_BIN_DIR" ]] && [[ ":$PATH:" != *":$TRIBE_BIN_DIR:"* ]]; then
117
- export PATH="$TRIBE_BIN_DIR:$PATH"
118
- fi
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.76",
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": {