build: depend on the Rhema crates by version
ci / checks (push) Successful in 55s
ci / test (push) Successful in 1m1s
ci / chart (push) Successful in 5s
ci / web (push) Successful in 18s
ci / docker (push) Successful in 2m1s
ci / publish-edge-image (push) Successful in 11s
ci / publish-edge-chart (push) Successful in 3s

The manifest pointed at `../rhema`, so a build needed that checkout
beside the repository. CI cloned it in two jobs and the Dockerfile
cloned a tag and rewrote the paths. The committed lock had drifted to
0.5.1 entries after the framework bumped to 0.5.2, so the first cargo
command in a clean tree rewrote it.

All twelve crates are on crates.io at 0.5.2, so the manifest names that
version and the lock pins it. The clone steps, the `RHEMA_REF`
argument, and the path rewrite are gone from the workflows and the
image. Moving the framework now means `cargo update` on the `rhema-*`
packages.
This commit is contained in:
vhaudiquet committed 2026-11-30 22:42:01 +01:00
1 parent 89aca58364
commit b5babb682e
8 files changed
+103 -69

No files matched your search

+1 -12
View File
@@ -11,7 +11,6 @@ permissions:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
OWNER: vhaudiquet OWNER: vhaudiquet
RHEMA_REF: v0.5.1
jobs: jobs:
checks: checks:
@@ -19,11 +18,6 @@ jobs:
steps: steps:
- uses: https://gitea.com/actions/checkout@v4 - uses: https://gitea.com/actions/checkout@v4
# The server consumes the framework by path. The image pins the
# same tag; the checks need a checkout at the same place.
- name: Clone the Rhema framework
run: git clone --depth 1 --branch "$RHEMA_REF" https://github.com/vhaudiquet/rhema.git ../rhema
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install native build dependencies - name: Install native build dependencies
@@ -40,9 +34,6 @@ jobs:
steps: steps:
- uses: https://gitea.com/actions/checkout@v4 - uses: https://gitea.com/actions/checkout@v4
- name: Clone the Rhema framework
run: git clone --depth 1 --branch "$RHEMA_REF" https://github.com/vhaudiquet/rhema.git ../rhema
- uses: actions-rust-lang/setup-rust-toolchain@v1 - uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install native build dependencies - name: Install native build dependencies
@@ -130,7 +121,7 @@ jobs:
- uses: https://gitea.com/actions/checkout@v4 - uses: https://gitea.com/actions/checkout@v4
- name: Build image - name: Build image
run: docker build --build-arg RHEMA_REF="$RHEMA_REF" -t rhema-together:ci . run: docker build -t rhema-together:ci .
- name: Smoke test - name: Smoke test
run: | run: |
@@ -190,8 +181,6 @@ jobs:
context: . context: .
file: Dockerfile file: Dockerfile
push: true push: true
build-args: |
RHEMA_REF=${{ env.RHEMA_REF }}
tags: | tags: |
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:latest git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:latest
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ gitea.sha }} git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ gitea.sha }}
-3
View File
@@ -16,7 +16,6 @@ permissions:
env: env:
REGISTRY: git.vhaudiquet.fr REGISTRY: git.vhaudiquet.fr
OWNER: vhaudiquet OWNER: vhaudiquet
RHEMA_REF: v0.5.1
jobs: jobs:
verify-tag: verify-tag:
@@ -59,8 +58,6 @@ jobs:
context: . context: .
file: Dockerfile file: Dockerfile
push: true push: true
build-args: |
RHEMA_REF=${{ env.RHEMA_REF }}
tags: | tags: |
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ steps.ver.outputs.version }} git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ steps.ver.outputs.version }}
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:stable git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:stable
+6 -4
View File
@@ -18,15 +18,17 @@ whole app.
## What this is ## What this is
rhema-together is a separate product that consumes the Rhema crates by rhema-together is a separate product that depends on the Rhema crates
path (`../rhema`). It is not `rhema-claw` and it is not a mode of it. from crates.io, at a version pinned in `Cargo.toml` and `Cargo.lock`. It
is not `rhema-claw` and it is not a mode of it.
The claw is resident and single-owner; this is a room with accounts, The claw is resident and single-owner; this is a room with accounts,
many sandboxes, and invite links. many sandboxes, and invite links.
Rules: Rules:
- Do not edit `../rhema` from here. If a framework change is needed, - Do not point the manifest at a local checkout of the framework. If a
note it in `specs/rhema-together.md` §11 and keep the workaround local. framework change is needed, note it in `specs/rhema-together.md` §11
and keep the workaround local until a release carries it.
- Do not copy claw code. `rhema-code` may be read for a pattern (the - Do not copy claw code. `rhema-code` may be read for a pattern (the
turn-level steering in `src/room/runner.rs` is copied from its turn turn-level steering in `src/room/runner.rs` is copied from its turn
loop), and the spec says where. loop), and the spec says where.
Generated
+75 -25
View File
@@ -3357,7 +3357,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-bash" name = "rhema-bash"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b17486a3f4f5a470658123465baae932f4b768d82652560899aeb5d65ac38ae"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.23.1", "base64 0.23.1",
@@ -3371,7 +3373,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-config" name = "rhema-config"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ebada21c5bc47aded8d1871652015e71ccfbaf6bfeb583871d67d712d188d573"
dependencies = [ dependencies = [
"age", "age",
"getrandom 0.2.17", "getrandom 0.2.17",
@@ -3385,7 +3389,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-core" name = "rhema-core"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69bd2c848d65f6662f87189b4526ae26068643845ae016652e6ca2d957e4967b"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"serde", "serde",
@@ -3395,7 +3401,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-host-agent" name = "rhema-host-agent"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a97b5e01a4f55843c764900c96baf47c677c6f3a40f85d7f408f1341f21d8da6"
dependencies = [ dependencies = [
"datealgo", "datealgo",
"minijinja", "minijinja",
@@ -3415,7 +3423,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-model-catalog" name = "rhema-model-catalog"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "05f004b2e3f1fa8f63703dec9adf0ae434526dbc5de12236ee0923348e7c8e45"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"reqwest", "reqwest",
@@ -3428,7 +3438,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-prompt" name = "rhema-prompt"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3fea5cfa044af04830e2318fbb93ce6810997adf41d85a3e46696fbac6e38c7"
dependencies = [ dependencies = [
"minijinja", "minijinja",
"rhema-core", "rhema-core",
@@ -3438,7 +3450,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider" name = "rhema-provider"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "feb1dd79cd543b5c35fc1be597eeffff8693c999bbfddb53f2d6880926c7d2b7"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-core", "futures-core",
@@ -3452,7 +3466,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-anthropic" name = "rhema-provider-anthropic"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44e1d2a26d57155a9ec860bdd58409a45d90ca55a59b7749263436aafdf07eb8"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3466,7 +3482,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-chatgpt" name = "rhema-provider-chatgpt"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3d2c4e5eb7ccdca45d78d83325de9ebbc96c184b42456400a4423dd3ea9c320a"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.23.1", "base64 0.23.1",
@@ -3483,7 +3501,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-copilot" name = "rhema-provider-copilot"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e974882e5eecf1d65d6ec0989f8b8afef776383a221bbf854bb7cd49dfb1f3f0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3500,7 +3520,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-google" name = "rhema-provider-google"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a186120b7157e67e1650768cf299ebf6f7fdbd178e22eea35e1de57ca7f498e3"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3514,7 +3536,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-llama-cpp" name = "rhema-provider-llama-cpp"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3e39a56b8509fc99bb2de2442ab1af2efb7517a0444232ceb1497c8b1aba44c0"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3529,7 +3553,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-mistral" name = "rhema-provider-mistral"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f32315a9237f4d3f6be443fca8c7619fe6ee6e21e98de92db3dda46f195b3ad"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.23.1", "base64 0.23.1",
@@ -3546,7 +3572,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-openai-compatible" name = "rhema-provider-openai-compatible"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0362510d4539453546bac48ad9eeecb1e472b5079f7c7639c92400c04176bb3"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3560,7 +3588,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-opencode" name = "rhema-provider-opencode"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95d84fa5bd49089f28503dbec7bd5c3f7f8d7fc6f298aaab61baab018b6074f5"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"reqwest", "reqwest",
@@ -3573,7 +3603,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-openrouter" name = "rhema-provider-openrouter"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e73531fb0eebe9a8a3d9d0c7e8d7b2d94d3b40c1b4819f13518c143c534efa39"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"futures-util", "futures-util",
@@ -3587,7 +3619,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-provider-registry" name = "rhema-provider-registry"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb4c7d60df367306e8567109600868f537ce91d5e9d8ab935c6e30acd84009cf"
dependencies = [ dependencies = [
"rhema-core", "rhema-core",
"rhema-model-catalog", "rhema-model-catalog",
@@ -3606,7 +3640,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-sandbox" name = "rhema-sandbox"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c993fc5e8f7463e1de90a79ebc6f47863142e7993e70a06b7c5323cdf0536207"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"rhema-bash", "rhema-bash",
@@ -3620,7 +3656,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-sandbox-http" name = "rhema-sandbox-http"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aefbd8ad43547ea54e138c3913f2b2c7a9f9d7a84fd19e837e56f8b67f458adb"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.23.1", "base64 0.23.1",
@@ -3632,7 +3670,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-sandbox-ssh" name = "rhema-sandbox-ssh"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6ce8ad5098679f81853a6435a23b29bd1a79df34565e0cf7bbd4d12e589dd8f"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"base64 0.23.1", "base64 0.23.1",
@@ -3644,7 +3684,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-session-store" name = "rhema-session-store"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b11df27dd036ade0733c2436e6d571b1e564bba055df2ddcd596a433ab25600b"
dependencies = [ dependencies = [
"rhema-core", "rhema-core",
"serde", "serde",
@@ -3654,7 +3696,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-session-store-file" name = "rhema-session-store-file"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6fc7bd04fd77522a7c11df7c86035496fe3580629df2c8ad35f942a30f373825"
dependencies = [ dependencies = [
"rhema-config", "rhema-config",
"rhema-core", "rhema-core",
@@ -3664,7 +3708,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-skills" name = "rhema-skills"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f677b6af4bc0393c918857f1167111da77045eb2b2664d68cd9da3c87e381fd6"
dependencies = [ dependencies = [
"rhema-core", "rhema-core",
"serde", "serde",
@@ -3673,7 +3719,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-submissions" name = "rhema-submissions"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fac05e3fab9565e40ce64da899490bf00e42f900522f59b0110c424df40a9cc"
dependencies = [ dependencies = [
"rhema-core", "rhema-core",
"rhema-session-store", "rhema-session-store",
@@ -3739,7 +3787,9 @@ dependencies = [
[[package]] [[package]]
name = "rhema-transcript" name = "rhema-transcript"
version = "0.5.1" version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14f33543ed6cfcc1bb1e3a2affedde392fd49a26f75708c8698da1d4a5f27f94"
dependencies = [ dependencies = [
"async-trait", "async-trait",
"rhema-core", "rhema-core",
+12 -12
View File
@@ -27,18 +27,18 @@ nix = { version = "0.31", features = ["process"] }
percent-encoding = "2" percent-encoding = "2"
rand = "0.8" rand = "0.8"
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "stream"] } reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "stream"] }
rhema-bash = { path = "../rhema/crates/rhema-bash" } rhema-bash = "0.5.2"
rhema-core = { path = "../rhema/crates/rhema-core" } rhema-core = "0.5.2"
rhema-host-agent = { path = "../rhema/crates/rhema-host-agent" } rhema-host-agent = "0.5.2"
rhema-provider = { path = "../rhema/crates/rhema-provider" } rhema-provider = "0.5.2"
rhema-provider-chatgpt = { path = "../rhema/crates/rhema-provider-chatgpt" } rhema-provider-chatgpt = "0.5.2"
rhema-provider-copilot = { path = "../rhema/crates/rhema-provider-copilot" } rhema-provider-copilot = "0.5.2"
rhema-provider-mistral = { path = "../rhema/crates/rhema-provider-mistral" } rhema-provider-mistral = "0.5.2"
rhema-provider-registry = { path = "../rhema/crates/rhema-provider-registry" } rhema-provider-registry = "0.5.2"
rhema-sandbox = { path = "../rhema/crates/rhema-sandbox" } rhema-sandbox = "0.5.2"
rhema-sandbox-http = { path = "../rhema/crates/rhema-sandbox-http" } rhema-sandbox-http = "0.5.2"
rhema-sandbox-ssh = { path = "../rhema/crates/rhema-sandbox-ssh" } rhema-sandbox-ssh = "0.5.2"
rhema-transcript = { path = "../rhema/crates/rhema-transcript" } rhema-transcript = "0.5.2"
russh = { version = "0.65", default-features = false, features = ["ring", "rsa"] } russh = { version = "0.65", default-features = false, features = ["ring", "rsa"] }
rusqlite = { version = "0.37", features = ["bundled"] } rusqlite = { version = "0.37", features = ["bundled"] }
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }
+3 -7
View File
@@ -9,18 +9,14 @@ RUN pnpm install --frozen-lockfile
COPY web/ ./ COPY web/ ./
RUN pnpm build RUN pnpm build
# The server consumes the Rhema crates. The clone is pinned so an image # The server depends on the Rhema crates by version. Cargo.lock pins
# does not move when the framework's main branch does. # them, so an image does not move when the framework's main branch does.
FROM rust:1.98.1-bookworm AS server FROM rust:1.98.1-bookworm AS server
ARG RHEMA_REPOSITORY=https://github.com/vhaudiquet/rhema.git
ARG RHEMA_REF=v0.5.1
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates cmake git pkg-config \ && apt-get install -y --no-install-recommends ca-certificates cmake pkg-config \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --branch "${RHEMA_REF}" "${RHEMA_REPOSITORY}" /rhema
WORKDIR /app WORKDIR /app
COPY Cargo.toml Cargo.lock ./ COPY Cargo.toml Cargo.lock ./
RUN sed -i 's#path = "../rhema/#path = "/rhema/#g' Cargo.toml
COPY src ./src COPY src ./src
RUN cargo build --release RUN cargo build --release
+3 -3
View File
@@ -1,8 +1,8 @@
# rhema-together # rhema-together
A shared room where people and a [Rhema](../rhema) coding agent work on A shared room where people and a [Rhema](https://github.com/vhaudiquet/rhema)
the same code. One conversation, one workspace, one agent; the people coding agent work on the same code. One conversation, one workspace, one
and the agent see the same sandbox. agent; the people and the agent see the same sandbox.
The room is a browser workspace: The room is a browser workspace:
+3 -3
View File
@@ -32,9 +32,9 @@ docker build -t registry.example.com/rhema-together:0.1.0 .
docker push registry.example.com/rhema-together:0.1.0 docker push registry.example.com/rhema-together:0.1.0
``` ```
The Dockerfile clones the Rhema framework at `v0.5.1` because this `Cargo.lock` pins the Rhema crates, so the image builds the same
repository consumes its crates by path. Override the pin with framework version on every run. Move the crates together with
`--build-arg RHEMA_REF=<tag>` if you move the framework. `cargo update -p rhema-core` and the other `rhema-*` packages.
## Values ## Values