@_xtribe/cli 2.2.49 → 2.2.50

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 +14 -0
  2. package/package.json +1 -1
package/install-tribe.js CHANGED
@@ -182,6 +182,17 @@ async function installTribeCLIQuiet() {
182
182
  }
183
183
  fs.chmodSync(tutorCollectorDest, '755');
184
184
 
185
+ // Also download tutor-server binary for self-hosting capability
186
+ const tutorServerDest = path.join(tribeBinDir, 'tutor-server');
187
+ const tutorServerUrl = `https://github.com/TRIBE-INC/tutor-server-community-release/releases/latest/download/tutor-server-${platform}-${arch}`;
188
+ try {
189
+ await downloadFile(tutorServerUrl, tutorServerDest);
190
+ fs.chmodSync(tutorServerDest, '755');
191
+ } catch (error) {
192
+ // Server binary is optional - don't fail installation if unavailable
193
+ console.warn('Warning: Could not download tutor-server binary (optional for self-hosting)');
194
+ }
195
+
185
196
  // Remove macOS quarantine if needed
186
197
  if (platform === 'darwin') {
187
198
  try {
@@ -189,6 +200,9 @@ async function installTribeCLIQuiet() {
189
200
  if (fs.existsSync(tutorCollectorDest)) {
190
201
  execSync(`xattr -d com.apple.quarantine "${tutorCollectorDest}"`, { stdio: 'ignore' });
191
202
  }
203
+ if (fs.existsSync(tutorServerDest)) {
204
+ execSync(`xattr -d com.apple.quarantine "${tutorServerDest}"`, { stdio: 'ignore' });
205
+ }
192
206
  } catch {
193
207
  // Not critical
194
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_xtribe/cli",
3
- "version": "2.2.49",
3
+ "version": "2.2.50",
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": {