@_xtribe/cli 1.0.43 → 1.0.45

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 CHANGED
@@ -1824,6 +1824,21 @@ async function main() {
1824
1824
  log.info('Then run: tribe start');
1825
1825
  }
1826
1826
 
1827
+ // Auto-launch handling (only for successful installations)
1828
+ if (checks.kubectl && checks.tribe) {
1829
+ try {
1830
+ const autoLaunch = require('./install-tribe-autolaunch.js');
1831
+ if (autoLaunch.shouldAutoLaunch()) {
1832
+ console.log(''); // Spacing before auto-launch
1833
+ await autoLaunch.handleAutoLaunch();
1834
+ // If auto-launch takes over, we won't reach here
1835
+ }
1836
+ } catch (error) {
1837
+ // Silently ignore auto-launch errors to not break the installer
1838
+ // Auto-launch is a nice-to-have feature, not critical
1839
+ }
1840
+ }
1841
+
1827
1842
  // Exit cleanly
1828
1843
  process.exit(0);
1829
1844
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "description": "TRIBE multi-agent development system - Zero to productive with one command",
5
5
  "main": "install-tribe.js",
6
6
  "bin": {
@@ -466,6 +466,32 @@ spec:
466
466
 
467
467
  echo "Token created successfully"
468
468
 
469
+ # Create organization
470
+ echo "Creating Tribe organization..."
471
+ ORG_RESPONSE=$(curl -s -X POST http://gitea:3000/api/v1/orgs \
472
+ -H "Authorization: token $TOKEN" \
473
+ -H "Content-Type: application/json" \
474
+ -d '{"username": "tribe", "full_name": "Tribe Organization", "description": "Default organization for Tribe"}')
475
+
476
+ if echo "$ORG_RESPONSE" | grep -q '"id"'; then
477
+ echo "Organization created successfully"
478
+ else
479
+ echo "Organization creation response: $ORG_RESPONSE"
480
+ fi
481
+
482
+ # Create project repository
483
+ echo "Creating project repository..."
484
+ REPO_RESPONSE=$(curl -s -X POST http://gitea:3000/api/v1/orgs/tribe/repos \
485
+ -H "Authorization: token $TOKEN" \
486
+ -H "Content-Type: application/json" \
487
+ -d '{"name": "project", "description": "Default project repository", "private": false, "auto_init": true}')
488
+
489
+ if echo "$REPO_RESPONSE" | grep -q '"id"'; then
490
+ echo "Repository created successfully"
491
+ else
492
+ echo "Repository creation response: $REPO_RESPONSE"
493
+ fi
494
+
469
495
  # Update TaskMaster with the token
470
496
  echo "Updating TaskMaster configuration..."
471
497
  curl -X POST http://taskmaster:5000/api/config \