genbox 1.0.43 → 1.0.44

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.
@@ -114,6 +114,27 @@ function getPrivateSshKey() {
114
114
  }
115
115
  return undefined;
116
116
  }
117
+ /**
118
+ * Get local git config for commits on genbox
119
+ */
120
+ function getGitConfig() {
121
+ const { execSync } = require('child_process');
122
+ let userName;
123
+ let userEmail;
124
+ try {
125
+ userName = execSync('git config --global user.name', { encoding: 'utf-8' }).trim();
126
+ }
127
+ catch {
128
+ // Git config not set
129
+ }
130
+ try {
131
+ userEmail = execSync('git config --global user.email', { encoding: 'utf-8' }).trim();
132
+ }
133
+ catch {
134
+ // Git config not set
135
+ }
136
+ return { userName, userEmail };
137
+ }
117
138
  /**
118
139
  * Prompt user for environment name
119
140
  */
@@ -794,6 +815,8 @@ function buildPayload(resolved, config, publicKey, privateKey, configLoader) {
794
815
  sourceBranch: repo.sourceBranch,
795
816
  };
796
817
  }
818
+ // Get local git config for commits
819
+ const gitConfig = getGitConfig();
797
820
  return {
798
821
  name: resolved.name,
799
822
  size: resolved.size,
@@ -805,6 +828,8 @@ function buildPayload(resolved, config, publicKey, privateKey, configLoader) {
805
828
  repos,
806
829
  privateKey,
807
830
  gitToken: envVars.GIT_TOKEN,
831
+ gitUserName: gitConfig.userName,
832
+ gitUserEmail: gitConfig.userEmail,
808
833
  envVars: resolved.env,
809
834
  apps: resolved.apps.map(a => a.name),
810
835
  appConfigs: resolved.apps.map(a => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genbox",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "Genbox CLI - AI-Powered Development Environments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {