genbox 1.0.46 → 1.0.48

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.
@@ -238,7 +238,7 @@ exports.createCommand = new commander_1.Command('create')
238
238
  return;
239
239
  }
240
240
  const configVersion = (0, schema_v4_1.getConfigVersion)(loadResult.config);
241
- if (configVersion === 'unknown') {
241
+ if (configVersion === 'invalid') {
242
242
  console.log(chalk_1.default.red('Unknown config version'));
243
243
  console.log(chalk_1.default.dim('Run "genbox init" to create a new configuration.'));
244
244
  return;
@@ -735,13 +735,8 @@ function buildPayload(resolved, config, publicKey, privateKey, configLoader) {
735
735
  // Build services map
736
736
  const services = {};
737
737
  for (const app of resolved.apps) {
738
- if (app.services) {
739
- for (const [name, svc] of Object.entries(app.services)) {
740
- services[name] = { port: svc.port, healthcheck: svc.healthcheck };
741
- }
742
- }
743
- else if (app.port) {
744
- services[app.name] = { port: app.port };
738
+ if (app.port) {
739
+ services[app.name] = { port: app.port, healthcheck: app.healthcheck };
745
740
  }
746
741
  }
747
742
  // Build files bundle
@@ -78,7 +78,7 @@ exports.dbSyncCommand
78
78
  const config = loadResult.config;
79
79
  const source = options.source;
80
80
  // Validate source environment exists
81
- if (config.version === '3.0' && !config.environments?.[source]) {
81
+ if (config.version === 4 && !config.environments?.[source]) {
82
82
  console.log(chalk_1.default.yellow(`Environment '${source}' not configured in genbox.yaml`));
83
83
  console.log(chalk_1.default.dim('Available environments:'));
84
84
  for (const env of Object.keys(config.environments || {})) {