@prover-coder-ai/docker-git 1.0.28 → 1.0.30
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/README.md +19 -0
- package/dist/src/docker-git/main.js +10 -7
- package/dist/src/docker-git/main.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,6 +37,25 @@ pnpm run docker-git clone https://github.com/agiens/crm/issues/123 --force-env
|
|
|
37
37
|
pnpm run docker-git clone https://github.com/agiens/crm/tree/vova-fork --force --mcp-playwright
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
+
## API Docker (separate runtime)
|
|
41
|
+
|
|
42
|
+
HTTP API (`packages/api`) has a dedicated Docker image and compose file:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
docker compose -f docker-compose.api.yml up -d --build
|
|
46
|
+
curl -s http://127.0.0.1:3334/health
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
By default API port `3334` is published to host (`127.0.0.1:3334`).
|
|
50
|
+
|
|
51
|
+
Useful env overrides:
|
|
52
|
+
- `DOCKER_GIT_API_BIND_HOST` (default: `127.0.0.1`)
|
|
53
|
+
- `DOCKER_GIT_API_PORT` (default: `3334`)
|
|
54
|
+
- `DOCKER_GIT_PROJECTS_ROOT_HOST` (host path, default: `/home/dev/.docker-git`)
|
|
55
|
+
- `DOCKER_GIT_PROJECTS_ROOT` (container path, default: `/home/dev/.docker-git`)
|
|
56
|
+
|
|
57
|
+
Detailed federation subscription workflow and JSON examples are documented in `packages/api/README.md`.
|
|
58
|
+
|
|
40
59
|
## Parallel Issues / PRs
|
|
41
60
|
|
|
42
61
|
When you clone GitHub issue or PR URLs, docker-git creates isolated project paths and container names:
|
|
@@ -2618,8 +2618,11 @@ else
|
|
|
2618
2618
|
mkdir -p "$(dirname "$CODEX_CONFIG_FILE")" || true
|
|
2619
2619
|
cat <<'EOF' > "$CODEX_CONFIG_FILE"
|
|
2620
2620
|
# docker-git codex config
|
|
2621
|
-
model = "gpt-5.
|
|
2621
|
+
model = "gpt-5.4"
|
|
2622
|
+
model_context_window = 1050000
|
|
2623
|
+
model_auto_compact_token_limit = 945000
|
|
2622
2624
|
model_reasoning_effort = "xhigh"
|
|
2625
|
+
plan_mode_reasoning_effort = "xhigh"
|
|
2623
2626
|
personality = "pragmatic"
|
|
2624
2627
|
|
|
2625
2628
|
approval_policy = "never"
|
|
@@ -2749,10 +2752,7 @@ if [[ -s /etc/zsh/zshrc ]] && ! grep -q "zz-codex-resume.sh" /etc/zsh/zshrc 2>/d
|
|
|
2749
2752
|
fi`;
|
|
2750
2753
|
const escapeForDoubleQuotes = (value) => {
|
|
2751
2754
|
const backslash = String.fromCodePoint(92);
|
|
2752
|
-
|
|
2753
|
-
const escapedBackslash = `${backslash}${backslash}`;
|
|
2754
|
-
const escapedQuote = `${backslash}${quote}`;
|
|
2755
|
-
return value.replaceAll(backslash, escapedBackslash).replaceAll(quote, escapedQuote);
|
|
2755
|
+
return value.replaceAll(backslash, `${backslash}${backslash}`).replaceAll(String.fromCodePoint(34), `${backslash}${String.fromCodePoint(34)}`);
|
|
2756
2756
|
};
|
|
2757
2757
|
const renderEntrypointCodexResumeHint = (config) => entrypointCodexResumeHintTemplate.replaceAll("__REPO_REF_DEFAULT__", escapeForDoubleQuotes(config.repoRef)).replaceAll("__REPO_URL_DEFAULT__", escapeForDoubleQuotes(config.repoUrl));
|
|
2758
2758
|
const entrypointAgentsNoticeTemplate = String.raw`# Ensure global AGENTS.md exists for container context
|
|
@@ -3806,7 +3806,7 @@ const renderDockerfileWorkspace = (config) => `# Workspace path (supports root-l
|
|
|
3806
3806
|
RUN mkdir -p ${config.targetDir} && chown -R 1000:1000 /home/${config.sshUser} && if [ "${config.targetDir}" != "/" ]; then chown -R 1000:1000 "${config.targetDir}"; fi
|
|
3807
3807
|
|
|
3808
3808
|
COPY entrypoint.sh /entrypoint.sh
|
|
3809
|
-
RUN chmod +x /entrypoint.sh
|
|
3809
|
+
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
|
|
3810
3810
|
|
|
3811
3811
|
EXPOSE 22
|
|
3812
3812
|
ENTRYPOINT ["/entrypoint.sh"]`;
|
|
@@ -4616,8 +4616,11 @@ const defaultEnvContents = "# docker-git env\n# KEY=value\n";
|
|
|
4616
4616
|
const codexConfigMarker = "# docker-git codex config";
|
|
4617
4617
|
const defaultCodexConfig = [
|
|
4618
4618
|
"# docker-git codex config",
|
|
4619
|
-
'model = "gpt-5.
|
|
4619
|
+
'model = "gpt-5.4"',
|
|
4620
|
+
"model_context_window = 1050000",
|
|
4621
|
+
"model_auto_compact_token_limit = 945000",
|
|
4620
4622
|
'model_reasoning_effort = "xhigh"',
|
|
4623
|
+
'plan_mode_reasoning_effort = "xhigh"',
|
|
4621
4624
|
'personality = "pragmatic"',
|
|
4622
4625
|
"",
|
|
4623
4626
|
'approval_policy = "never"',
|