forked from vhaudiquet/rhema-together
build: depend on the Rhema crates by version
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:
1 parent
89aca58364
commit
b5babb682e
8 files changed
+103
-69
No files matched your search
+1
-12
@@ -11,7 +11,6 @@ permissions:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
OWNER: vhaudiquet
|
||||
RHEMA_REF: v0.5.1
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
@@ -19,11 +18,6 @@ jobs:
|
||||
steps:
|
||||
- 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
|
||||
|
||||
- name: Install native build dependencies
|
||||
@@ -40,9 +34,6 @@ jobs:
|
||||
steps:
|
||||
- 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
|
||||
|
||||
- name: Install native build dependencies
|
||||
@@ -130,7 +121,7 @@ jobs:
|
||||
- uses: https://gitea.com/actions/checkout@v4
|
||||
|
||||
- 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
|
||||
run: |
|
||||
@@ -190,8 +181,6 @@ jobs:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
build-args: |
|
||||
RHEMA_REF=${{ env.RHEMA_REF }}
|
||||
tags: |
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:latest
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ gitea.sha }}
|
||||
|
||||
@@ -16,7 +16,6 @@ permissions:
|
||||
env:
|
||||
REGISTRY: git.vhaudiquet.fr
|
||||
OWNER: vhaudiquet
|
||||
RHEMA_REF: v0.5.1
|
||||
|
||||
jobs:
|
||||
verify-tag:
|
||||
@@ -59,8 +58,6 @@ jobs:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
push: true
|
||||
build-args: |
|
||||
RHEMA_REF=${{ env.RHEMA_REF }}
|
||||
tags: |
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:${{ steps.ver.outputs.version }}
|
||||
git.vhaudiquet.fr/${{ env.OWNER }}/rhema-together:stable
|
||||
|
||||
@@ -18,15 +18,17 @@ whole app.
|
||||
|
||||
## What this is
|
||||
|
||||
rhema-together is a separate product that consumes the Rhema crates by
|
||||
path (`../rhema`). It is not `rhema-claw` and it is not a mode of it.
|
||||
rhema-together is a separate product that depends on the Rhema crates
|
||||
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,
|
||||
many sandboxes, and invite links.
|
||||
|
||||
Rules:
|
||||
|
||||
- Do not edit `../rhema` from here. If a framework change is needed,
|
||||
note it in `specs/rhema-together.md` §11 and keep the workaround local.
|
||||
- Do not point the manifest at a local checkout of the framework. If a
|
||||
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
|
||||
turn-level steering in `src/room/runner.rs` is copied from its turn
|
||||
loop), and the spec says where.
|
||||
|
||||
Generated
+75
-25
@@ -3357,7 +3357,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-bash"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2b17486a3f4f5a470658123465baae932f4b768d82652560899aeb5d65ac38ae"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3371,7 +3373,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-config"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "ebada21c5bc47aded8d1871652015e71ccfbaf6bfeb583871d67d712d188d573"
|
||||
dependencies = [
|
||||
"age",
|
||||
"getrandom 0.2.17",
|
||||
@@ -3385,7 +3389,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-core"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "69bd2c848d65f6662f87189b4526ae26068643845ae016652e6ca2d957e4967b"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"serde",
|
||||
@@ -3395,7 +3401,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"datealgo",
|
||||
"minijinja",
|
||||
@@ -3415,7 +3423,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"reqwest",
|
||||
@@ -3428,7 +3438,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-prompt"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c3fea5cfa044af04830e2318fbb93ce6810997adf41d85a3e46696fbac6e38c7"
|
||||
dependencies = [
|
||||
"minijinja",
|
||||
"rhema-core",
|
||||
@@ -3438,7 +3450,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-provider"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "feb1dd79cd543b5c35fc1be597eeffff8693c999bbfddb53f2d6880926c7d2b7"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"futures-core",
|
||||
@@ -3452,7 +3466,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3466,7 +3482,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3483,7 +3501,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3500,7 +3520,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3514,7 +3536,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3529,7 +3553,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3546,7 +3572,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3560,7 +3588,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"reqwest",
|
||||
@@ -3573,7 +3603,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"futures-util",
|
||||
@@ -3587,7 +3619,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"rhema-core",
|
||||
"rhema-model-catalog",
|
||||
@@ -3606,7 +3640,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-sandbox"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c993fc5e8f7463e1de90a79ebc6f47863142e7993e70a06b7c5323cdf0536207"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"rhema-bash",
|
||||
@@ -3620,7 +3656,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3632,7 +3670,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"async-trait",
|
||||
"base64 0.23.1",
|
||||
@@ -3644,7 +3684,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"rhema-core",
|
||||
"serde",
|
||||
@@ -3654,7 +3696,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
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 = [
|
||||
"rhema-config",
|
||||
"rhema-core",
|
||||
@@ -3664,7 +3708,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-skills"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f677b6af4bc0393c918857f1167111da77045eb2b2664d68cd9da3c87e381fd6"
|
||||
dependencies = [
|
||||
"rhema-core",
|
||||
"serde",
|
||||
@@ -3673,7 +3719,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-submissions"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "5fac05e3fab9565e40ce64da899490bf00e42f900522f59b0110c424df40a9cc"
|
||||
dependencies = [
|
||||
"rhema-core",
|
||||
"rhema-session-store",
|
||||
@@ -3739,7 +3787,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rhema-transcript"
|
||||
version = "0.5.1"
|
||||
version = "0.5.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "14f33543ed6cfcc1bb1e3a2affedde392fd49a26f75708c8698da1d4a5f27f94"
|
||||
dependencies = [
|
||||
"async-trait",
|
||||
"rhema-core",
|
||||
|
||||
+12
-12
@@ -27,18 +27,18 @@ nix = { version = "0.31", features = ["process"] }
|
||||
percent-encoding = "2"
|
||||
rand = "0.8"
|
||||
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "stream"] }
|
||||
rhema-bash = { path = "../rhema/crates/rhema-bash" }
|
||||
rhema-core = { path = "../rhema/crates/rhema-core" }
|
||||
rhema-host-agent = { path = "../rhema/crates/rhema-host-agent" }
|
||||
rhema-provider = { path = "../rhema/crates/rhema-provider" }
|
||||
rhema-provider-chatgpt = { path = "../rhema/crates/rhema-provider-chatgpt" }
|
||||
rhema-provider-copilot = { path = "../rhema/crates/rhema-provider-copilot" }
|
||||
rhema-provider-mistral = { path = "../rhema/crates/rhema-provider-mistral" }
|
||||
rhema-provider-registry = { path = "../rhema/crates/rhema-provider-registry" }
|
||||
rhema-sandbox = { path = "../rhema/crates/rhema-sandbox" }
|
||||
rhema-sandbox-http = { path = "../rhema/crates/rhema-sandbox-http" }
|
||||
rhema-sandbox-ssh = { path = "../rhema/crates/rhema-sandbox-ssh" }
|
||||
rhema-transcript = { path = "../rhema/crates/rhema-transcript" }
|
||||
rhema-bash = "0.5.2"
|
||||
rhema-core = "0.5.2"
|
||||
rhema-host-agent = "0.5.2"
|
||||
rhema-provider = "0.5.2"
|
||||
rhema-provider-chatgpt = "0.5.2"
|
||||
rhema-provider-copilot = "0.5.2"
|
||||
rhema-provider-mistral = "0.5.2"
|
||||
rhema-provider-registry = "0.5.2"
|
||||
rhema-sandbox = "0.5.2"
|
||||
rhema-sandbox-http = "0.5.2"
|
||||
rhema-sandbox-ssh = "0.5.2"
|
||||
rhema-transcript = "0.5.2"
|
||||
russh = { version = "0.65", default-features = false, features = ["ring", "rsa"] }
|
||||
rusqlite = { version = "0.37", features = ["bundled"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
||||
+3
-7
@@ -9,18 +9,14 @@ RUN pnpm install --frozen-lockfile
|
||||
COPY web/ ./
|
||||
RUN pnpm build
|
||||
|
||||
# The server consumes the Rhema crates. The clone is pinned so an image
|
||||
# does not move when the framework's main branch does.
|
||||
# The server depends on the Rhema crates by version. Cargo.lock pins
|
||||
# them, so an image does not move when the framework's main branch does.
|
||||
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 \
|
||||
&& 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/*
|
||||
RUN git clone --depth 1 --branch "${RHEMA_REF}" "${RHEMA_REPOSITORY}" /rhema
|
||||
WORKDIR /app
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
RUN sed -i 's#path = "../rhema/#path = "/rhema/#g' Cargo.toml
|
||||
COPY src ./src
|
||||
RUN cargo build --release
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# rhema-together
|
||||
|
||||
A shared room where people and a [Rhema](../rhema) coding agent work on
|
||||
the same code. One conversation, one workspace, one agent; the people
|
||||
and the agent see the same sandbox.
|
||||
A shared room where people and a [Rhema](https://github.com/vhaudiquet/rhema)
|
||||
coding agent work on the same code. One conversation, one workspace, one
|
||||
agent; the people and the agent see the same sandbox.
|
||||
|
||||
The room is a browser workspace:
|
||||
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
The Dockerfile clones the Rhema framework at `v0.5.1` because this
|
||||
repository consumes its crates by path. Override the pin with
|
||||
`--build-arg RHEMA_REF=<tag>` if you move the framework.
|
||||
`Cargo.lock` pins the Rhema crates, so the image builds the same
|
||||
framework version on every run. Move the crates together with
|
||||
`cargo update -p rhema-core` and the other `rhema-*` packages.
|
||||
|
||||
## Values
|
||||
|
||||
|
||||
Reference in new issue
Block a user