@prover-coder-ai/docker-git 1.0.33 → 1.0.35

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.
@@ -1268,7 +1268,12 @@ const findKeyByPriority = (fs, path, cwd, spec) => Effect.gen(function* (_) {
1268
1268
  return fallback;
1269
1269
  }
1270
1270
  }
1271
- const home = resolveEnvPath("HOME");
1271
+ const dockerGitHomeKey = path.join(defaultProjectsRoot(cwd), spec.devKeyName);
1272
+ const dockerGitHomeExisting = yield* _(findExistingPath(fs, dockerGitHomeKey));
1273
+ if (dockerGitHomeExisting !== null) {
1274
+ return dockerGitHomeExisting;
1275
+ }
1276
+ const home = resolveHomeDir();
1272
1277
  if (home === null) {
1273
1278
  return null;
1274
1279
  }
@@ -1332,7 +1337,7 @@ const ensureDockerImage = (fs, path, cwd, spec) => Effect.gen(function* (_) {
1332
1337
  );
1333
1338
  });
1334
1339
  const ghAuthRoot = ".docker-git/.orch/auth/gh";
1335
- const ghAuthDir = "/root/.config/gh";
1340
+ const ghAuthDir = "/gh-auth";
1336
1341
  const ghImageName = "docker-git-auth-gh:latest";
1337
1342
  const ghImageDir = ".docker-git/.orch/auth/gh/.image";
1338
1343
  const renderGhDockerfile = () => String.raw`FROM ubuntu:24.04
@@ -6717,7 +6722,7 @@ const authClaudeLogout = (command) => Effect.gen(function* (_) {
6717
6722
  }).pipe(Effect.asVoid);
6718
6723
  const codexImageName = "docker-git-auth-codex:latest";
6719
6724
  const codexImageDir = ".docker-git/.orch/auth/codex/.image";
6720
- const codexHome = "/root/.codex";
6725
+ const codexHome = "/codex-home";
6721
6726
  const ensureCodexOrchLayout = (cwd, codexAuthPath) => migrateLegacyOrchLayout(cwd, {
6722
6727
  envGlobalPath: defaultTemplateConfig.envGlobalPath,
6723
6728
  envProjectPath: defaultTemplateConfig.envProjectPath,
@@ -6873,6 +6878,7 @@ const resolveGithubTokenFromGh = (cwd, accountPath) => runDockerAuthCapture(
6873
6878
  image: ghImageName,
6874
6879
  hostPath: accountPath,
6875
6880
  containerPath: ghAuthDir,
6881
+ env: `GH_CONFIG_DIR=${ghAuthDir}`,
6876
6882
  args: ["auth", "token"],
6877
6883
  interactive: false
6878
6884
  }),
@@ -6891,7 +6897,7 @@ const runGithubLogin = (cwd, accountPath, scopes) => runDockerAuth(
6891
6897
  image: ghImageName,
6892
6898
  hostPath: accountPath,
6893
6899
  containerPath: ghAuthDir,
6894
- env: "BROWSER=echo",
6900
+ env: ["BROWSER=echo", `GH_CONFIG_DIR=${ghAuthDir}`],
6895
6901
  args: [
6896
6902
  "auth",
6897
6903
  "login",
@@ -11293,21 +11299,26 @@ const TuiApp = () => {
11293
11299
  });
11294
11300
  };
11295
11301
  const runMenu = pipe(
11296
- Effect.sync(() => {
11297
- resumeTui();
11298
- }),
11299
- Effect.zipRight(
11300
- Effect.tryPromise({
11301
- try: () => render(React.createElement(TuiApp)).waitUntilExit(),
11302
- catch: (error) => new InputReadError({ message: error instanceof Error ? error.message : String(error) })
11303
- })
11304
- ),
11305
- Effect.ensuring(
11306
- Effect.sync(() => {
11307
- leaveTui();
11308
- })
11309
- ),
11310
- Effect.asVoid
11302
+ Effect.sync(() => process.stdin.isTTY && typeof process.stdin.setRawMode === "function"),
11303
+ Effect.flatMap(
11304
+ (hasTty) => hasTty ? pipe(
11305
+ Effect.sync(() => {
11306
+ resumeTui();
11307
+ }),
11308
+ Effect.zipRight(
11309
+ Effect.tryPromise({
11310
+ try: () => render(React.createElement(TuiApp)).waitUntilExit(),
11311
+ catch: (error) => new InputReadError({ message: error instanceof Error ? error.message : String(error) })
11312
+ })
11313
+ ),
11314
+ Effect.ensuring(
11315
+ Effect.sync(() => {
11316
+ leaveTui();
11317
+ })
11318
+ ),
11319
+ Effect.asVoid
11320
+ ) : Effect.ignore(listProjectStatus)
11321
+ )
11311
11322
  );
11312
11323
  const isParseError = (error) => error._tag === "UnknownCommand" || error._tag === "UnknownOption" || error._tag === "MissingOptionValue" || error._tag === "MissingRequiredOption" || error._tag === "InvalidOption" || error._tag === "UnexpectedArgument";
11313
11324
  const setExitCode = (code) => Effect.sync(() => {