genbox 1.0.94 → 1.0.96

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.
@@ -54,10 +54,10 @@ const db_utils_1 = require("../db-utils");
54
54
  const utils_1 = require("../utils");
55
55
  // Credits consumed per hour for each size (matches API billing.config.ts)
56
56
  const CREDITS_PER_HOUR = {
57
- cx22: 1,
58
- cx32: 2,
59
- cx42: 4,
60
- cx52: 8,
57
+ cx23: 1,
58
+ cx33: 2,
59
+ cx43: 4,
60
+ cx53: 8,
61
61
  small: 1,
62
62
  medium: 2,
63
63
  large: 4,
@@ -1339,11 +1339,16 @@ function generateConfig(detected, settings, repos, environments, profiles) {
1339
1339
  const provides = {};
1340
1340
  if (detected.infrastructure) {
1341
1341
  for (const infra of detected.infrastructure) {
1342
- provides[infra.name] = {
1342
+ const providerConfig = {
1343
1343
  type: infra.type,
1344
1344
  image: infra.image,
1345
1345
  port: infra.port,
1346
1346
  };
1347
+ // Include replicaSet for MongoDB if detected
1348
+ if (infra.replicaSet) {
1349
+ providerConfig.replicaSet = infra.replicaSet;
1350
+ }
1351
+ provides[infra.name] = providerConfig;
1347
1352
  }
1348
1353
  }
1349
1354
  // Build defaults
@@ -446,16 +446,30 @@ exports.statusCommand = new commander_1.Command('status')
446
446
  console.log(chalk_1.default.green('[SUCCESS] Setup completed!'));
447
447
  const finalTiming = getTimingBreakdown(target.ipAddress, keyPath);
448
448
  displayTimingBreakdown(finalTiming);
449
+ // Show URLs if available
450
+ if (target.urls && Object.keys(target.urls).length > 0) {
451
+ console.log(chalk_1.default.blue('[INFO] === Service URLs ==='));
452
+ for (const [service, url] of Object.entries(target.urls)) {
453
+ console.log(` ${service}: ${chalk_1.default.cyan(url)}`);
454
+ }
455
+ console.log('');
456
+ }
457
+ console.log(chalk_1.default.dim('Run `gb connect` to SSH into the genbox.'));
458
+ process.exit(0);
449
459
  }
450
460
  else if (finalStatus.includes('error')) {
451
461
  console.log(chalk_1.default.red('[ERROR] Setup encountered an error!'));
452
462
  console.log(chalk_1.default.dim(' Run `gb connect` to investigate.'));
463
+ process.exit(1);
453
464
  }
454
465
  else if (finalStatus.includes('running')) {
455
466
  console.log(chalk_1.default.yellow('[INFO] Setup still in progress...'));
467
+ console.log(chalk_1.default.dim(' Run `gb status -w` again to continue watching.'));
468
+ process.exit(0);
456
469
  }
457
470
  else {
458
471
  console.log(chalk_1.default.yellow(`[INFO] Final status: ${finalStatus}`));
472
+ process.exit(0);
459
473
  }
460
474
  }
461
475
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genbox",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Genbox CLI - AI-Powered Development Environments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {