Skip to content

Commit 11a9745

Browse files
authored
Merge pull request #421 from skulidropek/codex/use-latest-plan-to-git-main
[codex] Install plan-to-git from main
2 parents 74b74e5 + 1e3d423 commit 11a9745

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

packages/container/src/core/templates/dockerfile-prelude.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,23 @@ RUN cargo install --git https://github.com/ProverCoderAI/rust-browser-connection
8383
RUN printf "%s\\n" "ALL ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/zz-all \
8484
&& chmod 0440 /etc/sudoers.d/zz-all`
8585

86-
const planToGitRevision = "4e58e315d3a06db3f9e75682455be315cd29d7c8"
86+
const planToGitBranch = "main"
87+
const planToGitCommitMetadataUrl = `https://api.github.com/repos/ProverCoderAI/plan-to-git/commits/${planToGitBranch}`
8788

8889
// CHANGE: install plan-to-git in generated project containers.
8990
// WHY: issue #397 requires multi-agent plan capture, Claude Code hooks, temp-backed state, and explicit PR sync.
9091
// QUOTE(ТЗ): "подключение новое версии plan-to-git и настройки hooks для claude code и настройки что бы всё уходило на гитхаб автоматически"
9192
// REF: issue-397
92-
// SOURCE: https://github.com/ProverCoderAI/plan-to-git/tree/4e58e315d3a06db3f9e75682455be315cd29d7c8
93+
// SOURCE: https://github.com/ProverCoderAI/plan-to-git/tree/main
9394
// FORMAT THEOREM: image_build_success -> executable(/usr/local/bin/plan-to-git)
9495
// PURITY: SHELL
95-
// EFFECT: Docker build downloads and installs a pinned Rust CLI from GitHub.
96-
// INVARIANT: plan-to-git is available on PATH with Claude hooks and sync --pr before agent hooks or git post-push actions run.
96+
// EFFECT: Docker build downloads and installs the current main branch Rust CLI from GitHub.
97+
// INVARIANT: plan-to-git is available on PATH with Claude hooks and sync --pr before agent hooks or git post-push actions run; moving main changes the remote ADD input and invalidates the install layer.
9798
// COMPLEXITY: O(network + cargo_build)
9899
const renderDockerfilePlanToGit = (): string =>
99100
`# Install plan-to-git for multi-agent plan capture and explicit PR sync (issue #397)
100-
RUN cargo install --git https://github.com/ProverCoderAI/plan-to-git --rev ${planToGitRevision} --locked --bins --root /usr/local \
101+
ADD ${planToGitCommitMetadataUrl} /tmp/docker-git-plan-to-git-main.json
102+
RUN cargo install --git https://github.com/ProverCoderAI/plan-to-git --branch ${planToGitBranch} --locked --bins --root /usr/local \
101103
&& /usr/local/bin/plan-to-git --help >/dev/null \
102104
&& /usr/local/bin/plan-to-git --help | grep -q -- "--repo" \
103105
&& /usr/local/bin/plan-to-git hook --help | grep -q -- "claude" \

packages/container/tests/core/templates.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ describe("renderDockerfile", () => {
208208
"rtk --version",
209209
"rtk gain >/dev/null 2>&1 || true",
210210
"# Install plan-to-git for multi-agent plan capture and explicit PR sync (issue #397)",
211-
"cargo install --git https://github.com/ProverCoderAI/plan-to-git --rev 4e58e315d3a06db3f9e75682455be315cd29d7c8 --locked --bins --root /usr/local",
211+
"ADD https://api.github.com/repos/ProverCoderAI/plan-to-git/commits/main /tmp/docker-git-plan-to-git-main.json",
212+
"cargo install --git https://github.com/ProverCoderAI/plan-to-git --branch main --locked --bins --root /usr/local",
212213
"/usr/local/bin/plan-to-git --help >/dev/null",
213214
'/usr/local/bin/plan-to-git --help | grep -q -- "--repo"',
214215
'/usr/local/bin/plan-to-git hook --help | grep -q -- "claude"',

0 commit comments

Comments
 (0)