@_xtribe/cli 1.0.44 → 1.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
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 \