genbox 1.0.88 → 1.0.90

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.
@@ -826,11 +826,12 @@ function buildPayload(resolved, config, publicKey, privateKey, configLoader) {
826
826
  }
827
827
  }
828
828
  }
829
- // Add setup script if generated
829
+ // Add env setup script if generated (processes .env.genbox for multi-app projects)
830
+ // Named setup-env.sh to avoid conflict with API's setup-genbox.sh
830
831
  const setupScript = generateSetupScript(resolved, config, envFilesToMove);
831
832
  if (setupScript) {
832
833
  files.push({
833
- path: '/home/dev/setup-genbox.sh',
834
+ path: '/home/dev/setup-env.sh',
834
835
  content: setupScript,
835
836
  permissions: '0755',
836
837
  });
@@ -957,37 +958,8 @@ function generateSetupScript(resolved, config, envFilesToMove = []) {
957
958
  lines.push('rm -rf /home/dev/.env-staging 2>/dev/null || true');
958
959
  lines.push('');
959
960
  }
960
- // Change to project directory
961
- if (resolved.repos.length > 0) {
962
- lines.push(`cd ${resolved.repos[0].path} || exit 1`);
963
- lines.push('');
964
- }
965
- // Install dependencies - detect package manager from lockfiles
966
- lines.push('# Install dependencies');
967
- lines.push('if [ -f "pnpm-lock.yaml" ]; then');
968
- lines.push(' echo "Installing dependencies with pnpm..."');
969
- lines.push(' pnpm install --frozen-lockfile');
970
- lines.push('elif [ -f "yarn.lock" ]; then');
971
- lines.push(' echo "Installing dependencies with yarn..."');
972
- lines.push(' yarn install --frozen-lockfile');
973
- lines.push('elif [ -f "bun.lockb" ]; then');
974
- lines.push(' echo "Installing dependencies with bun..."');
975
- lines.push(' bun install --frozen-lockfile');
976
- lines.push('elif [ -f "package-lock.json" ]; then');
977
- lines.push(' echo "Installing dependencies with npm..."');
978
- lines.push(' npm ci');
979
- lines.push('fi');
980
- // Start Docker if API is included locally
981
- const hasLocalApi = resolved.apps.some(a => a.name === 'api' || a.type === 'backend');
982
- if (hasLocalApi) {
983
- lines.push('');
984
- lines.push('echo "Starting Docker services..."');
985
- lines.push('if [ -f "docker-compose.yml" ] || [ -f "compose.yml" ]; then');
986
- lines.push(' docker compose up -d');
987
- lines.push('fi');
988
- }
989
- lines.push('');
990
- lines.push('echo "Setup complete!"');
961
+ // NOTE: Dependencies installation, Docker setup, and app startup are handled
962
+ // by the API's cloud-init setup script. This script only handles env file processing.
991
963
  return lines.join('\n');
992
964
  }
993
965
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genbox",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Genbox CLI - AI-Powered Development Environments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {