@_xtribe/cli 2.2.8 → 2.2.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/install-tribe.js +19 -2
  2. package/package.json +1 -1
package/install-tribe.js CHANGED
@@ -217,8 +217,25 @@ async function main() {
217
217
 
218
218
  spinner.succeed('Ready!');
219
219
 
220
- // Show completion
221
- console.log('Type ' + chalk.cyan.bold('tribe') + ' to get started');
220
+ // Test if tribe command works immediately
221
+ let commandWorks = false;
222
+ try {
223
+ execSync('which tribe', { stdio: 'ignore', timeout: 2000 });
224
+ commandWorks = true;
225
+ } catch (error) {
226
+ commandWorks = false;
227
+ }
228
+
229
+ // Show appropriate completion message
230
+ if (commandWorks) {
231
+ console.log(chalk.green('\n✅ TRIBE CLI is ready to use!'));
232
+ console.log('Type ' + chalk.cyan.bold('tribe') + ' to get started');
233
+ } else {
234
+ console.log(chalk.yellow('\n⚠️ TRIBE CLI installed successfully!'));
235
+ console.log(chalk.blue('To use the tribe command, please restart your terminal'));
236
+ console.log(chalk.gray('or run: ') + chalk.cyan.bold('source ~/.tribe/tribe-env.sh'));
237
+ console.log(chalk.gray('\nThen type: ') + chalk.cyan.bold('tribe') + chalk.gray(' to get started'));
238
+ }
222
239
 
223
240
  } catch (error) {
224
241
  spinner.fail('Installation failed');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "2.2.8",
3
+ "version": "2.2.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": {