@prover-coder-ai/docker-git 1.0.49 → 1.0.51

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.
@@ -286,7 +286,13 @@ var runCommandWithExitCodes = (spec, okExitCodes, onFailure) => Effect.gen(funct
286
286
  const exitCode = yield* _(Command.exitCode(buildCommand(spec, "inherit", "inherit", "inherit")));
287
287
  yield* _(ensureExitCode(Number(exitCode), okExitCodes, onFailure));
288
288
  });
289
- var runCommandExitCode = (spec) => Effect.map(Command.exitCode(buildCommand(spec, "pipe", "pipe", "pipe")), Number);
289
+ var runCommandExitCode = (spec) => Effect.scoped(Effect.gen(function* (_) {
290
+ const process = yield* _((yield* _(CommandExecutor.CommandExecutor)).start(buildCommand(spec, "pipe", "pipe", "pipe")));
291
+ yield* _(Effect.forkDaemon(Stream.runDrain(process.stdout)));
292
+ yield* _(Effect.forkDaemon(Stream.runDrain(process.stderr)));
293
+ const exitCode = yield* _(process.exitCode);
294
+ return Number(exitCode);
295
+ }));
290
296
  var collectUint8Array$1 = (chunks) => Chunk.reduce(chunks, new Uint8Array(), (acc, curr) => {
291
297
  const next = new Uint8Array(acc.length + curr.length);
292
298
  next.set(acc);
@@ -295,6 +301,7 @@ var collectUint8Array$1 = (chunks) => Chunk.reduce(chunks, new Uint8Array(), (ac
295
301
  });
296
302
  var runCommandCapture = (spec, okExitCodes, onFailure) => Effect.scoped(Effect.gen(function* (_) {
297
303
  const process = yield* _((yield* _(CommandExecutor.CommandExecutor)).start(buildCommand(spec, "pipe", "pipe", "pipe")));
304
+ yield* _(Effect.forkDaemon(Stream.runDrain(process.stderr)));
298
305
  const bytes = yield* _(pipe(process.stdout, Stream.runCollect, Effect.map((chunks) => collectUint8Array$1(chunks))));
299
306
  const exitCode = yield* _(process.exitCode);
300
307
  yield* _(ensureExitCode(Number(exitCode), okExitCodes, onFailure));
@@ -4314,11 +4321,12 @@ RUN npm install -g @anthropic-ai/claude-code@latest
4314
4321
  RUN claude --version
4315
4322
  RUN npm install -g @google/gemini-cli@latest --force
4316
4323
  RUN gemini --version`;
4324
+ var openCodeVersion = "1.2.27";
4317
4325
  var renderDockerfileOpenCode = () => `# Tooling: OpenCode (binary)
4318
4326
  RUN set -eu; \
4319
4327
  for attempt in 1 2 3 4 5; do \
4320
4328
  if curl -fsSL --retry 5 --retry-all-errors --retry-delay 2 https://opencode.ai/install \
4321
- | HOME=/usr/local bash -s -- --no-modify-path; then \
4329
+ | HOME=/usr/local bash -s -- --version ${openCodeVersion} --no-modify-path; then \
4322
4330
  exit 0; \
4323
4331
  fi; \
4324
4332
  echo "opencode install attempt \${attempt} failed; retrying..." >&2; \
@@ -4456,7 +4464,7 @@ RUN mkdir -p ${config.targetDir} \
4456
4464
  && if [ "${config.targetDir}" != "/" ]; then chown -R 1000:1000 "${config.targetDir}"; fi
4457
4465
 
4458
4466
  COPY entrypoint.sh /entrypoint.sh
4459
- RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
4467
+ RUN sed -i 's/\\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
4460
4468
 
4461
4469
  EXPOSE 22
4462
4470
  ENTRYPOINT ["/entrypoint.sh"]`;