@episoda/cli 0.2.200 → 0.2.201

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.
package/dist/index.js CHANGED
@@ -3046,7 +3046,7 @@ var require_package = __commonJS({
3046
3046
  "package.json"(exports2, module2) {
3047
3047
  module2.exports = {
3048
3048
  name: "@episoda/cli",
3049
- version: "0.2.200",
3049
+ version: "0.2.201",
3050
3050
  description: "CLI tool for Episoda local development workflow orchestration",
3051
3051
  main: "dist/index.js",
3052
3052
  types: "dist/index.d.ts",
@@ -16460,6 +16460,9 @@ async function configureGitUser(projectPath, userId, workspaceId, machineId, pro
16460
16460
  const { execSync: execSync19 } = await import("child_process");
16461
16461
  const { gitDir, workDir } = getGitDirs(projectPath);
16462
16462
  const gitCmd = gitDir ? `git --git-dir="${gitDir}"` : "git";
16463
+ const gitEmailDomain = process.env.EPISODA_AGENT_GIT_EMAIL_DOMAIN || "users.episoda.dev";
16464
+ const gitIdentityName = `Episoda ${userId}`;
16465
+ const gitIdentityEmail = `${userId}@${gitEmailDomain}`;
16463
16466
  execSync19(`${gitCmd} config episoda.userId ${userId}`, {
16464
16467
  cwd: workDir,
16465
16468
  encoding: "utf8",
@@ -16487,7 +16490,17 @@ async function configureGitUser(projectPath, userId, workspaceId, machineId, pro
16487
16490
  stdio: "pipe"
16488
16491
  });
16489
16492
  }
16490
- console.log(`[Daemon] Configured git for project: episoda.userId=${userId}, machineId=${machineId}, projectId=${projectId}${machineUuid ? `, machineUuid=${machineUuid}` : ""}`);
16493
+ execSync19(`${gitCmd} config user.name "${gitIdentityName.replace(/"/g, '\\"')}"`, {
16494
+ cwd: workDir,
16495
+ encoding: "utf8",
16496
+ stdio: "pipe"
16497
+ });
16498
+ execSync19(`${gitCmd} config user.email ${gitIdentityEmail}`, {
16499
+ cwd: workDir,
16500
+ encoding: "utf8",
16501
+ stdio: "pipe"
16502
+ });
16503
+ console.log(`[Daemon] Configured git for project: episoda.userId=${userId}, machineId=${machineId}, projectId=${projectId}, gitIdentity=${gitIdentityEmail}${machineUuid ? `, machineUuid=${machineUuid}` : ""}`);
16491
16504
  } catch (error) {
16492
16505
  console.warn(`[Daemon] Failed to configure git user for ${projectPath}:`, error instanceof Error ? error.message : error);
16493
16506
  }