@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.
@@ -3051,7 +3051,7 @@ var require_package = __commonJS({
3051
3051
  "package.json"(exports2, module2) {
3052
3052
  module2.exports = {
3053
3053
  name: "@episoda/cli",
3054
- version: "0.2.200",
3054
+ version: "0.2.201",
3055
3055
  description: "CLI tool for Episoda local development workflow orchestration",
3056
3056
  main: "dist/index.js",
3057
3057
  types: "dist/index.d.ts",
@@ -15382,6 +15382,9 @@ async function configureGitUser(projectPath, userId, workspaceId, machineId, pro
15382
15382
  const { execSync: execSync11 } = await import("child_process");
15383
15383
  const { gitDir, workDir } = getGitDirs(projectPath);
15384
15384
  const gitCmd = gitDir ? `git --git-dir="${gitDir}"` : "git";
15385
+ const gitEmailDomain = process.env.EPISODA_AGENT_GIT_EMAIL_DOMAIN || "users.episoda.dev";
15386
+ const gitIdentityName = `Episoda ${userId}`;
15387
+ const gitIdentityEmail = `${userId}@${gitEmailDomain}`;
15385
15388
  execSync11(`${gitCmd} config episoda.userId ${userId}`, {
15386
15389
  cwd: workDir,
15387
15390
  encoding: "utf8",
@@ -15409,7 +15412,17 @@ async function configureGitUser(projectPath, userId, workspaceId, machineId, pro
15409
15412
  stdio: "pipe"
15410
15413
  });
15411
15414
  }
15412
- console.log(`[Daemon] Configured git for project: episoda.userId=${userId}, machineId=${machineId}, projectId=${projectId}${machineUuid ? `, machineUuid=${machineUuid}` : ""}`);
15415
+ execSync11(`${gitCmd} config user.name "${gitIdentityName.replace(/"/g, '\\"')}"`, {
15416
+ cwd: workDir,
15417
+ encoding: "utf8",
15418
+ stdio: "pipe"
15419
+ });
15420
+ execSync11(`${gitCmd} config user.email ${gitIdentityEmail}`, {
15421
+ cwd: workDir,
15422
+ encoding: "utf8",
15423
+ stdio: "pipe"
15424
+ });
15425
+ console.log(`[Daemon] Configured git for project: episoda.userId=${userId}, machineId=${machineId}, projectId=${projectId}, gitIdentity=${gitIdentityEmail}${machineUuid ? `, machineUuid=${machineUuid}` : ""}`);
15413
15426
  } catch (error) {
15414
15427
  console.warn(`[Daemon] Failed to configure git user for ${projectPath}:`, error instanceof Error ? error.message : error);
15415
15428
  }