Skip to content

Commit 9112a81

Browse files
committed
Merge main into fix/query-config-home-test-race
2 parents 191db49 + 524db31 commit 9112a81

21 files changed

Lines changed: 763 additions & 193 deletions

‎.github/workflows/patch-release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
- uses: actions/checkout@v5
129129

130130
- name: Install Rust toolchain
131-
uses: dtolnay/rust-toolchain@stable
131+
uses: dtolnay/rust-toolchain@1.100.0
132132
with:
133133
targets: ${{ matrix.target }}
134134

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
name: Release candidate build
2+
3+
# Builds, packages and runs the five release archives without publishing.
4+
# Nothing here can create a tag or a release: the token is read-only and no
5+
# step uploads anywhere except this run's own artifacts.
6+
on:
7+
pull_request:
8+
paths:
9+
- '.github/workflows/release-candidate.yml'
10+
- '.github/workflows/release.yml'
11+
- 'scripts/package-release.py'
12+
- 'scripts/generate-release-checksums.mjs'
13+
- 'scripts/smoke-release-archive.py'
14+
- 'scripts/test-release-candidate.py'
15+
# bump-version.py rewrites this file, so a version-stamp pull request
16+
# gets its candidate archives built and run before the release.
17+
- 'src-rust/crates/acp/registry-template/agent.json'
18+
workflow_dispatch:
19+
20+
concurrency:
21+
group: release-candidate-${{ github.ref }}
22+
cancel-in-progress: true
23+
24+
permissions:
25+
contents: read
26+
27+
env:
28+
CARGO_TERM_COLOR: always
29+
30+
jobs:
31+
# ── Contract: workflow mirror, smoke fixtures and stamp preflight ───
32+
contract:
33+
runs-on: ubuntu-latest
34+
name: Candidate contract and stamps
35+
timeout-minutes: 5
36+
steps:
37+
- uses: actions/checkout@v5
38+
with:
39+
persist-credentials: false
40+
41+
- uses: actions/setup-python@v6
42+
with:
43+
python-version: '3.12'
44+
45+
- name: Verify the build mirrors release.yml and cannot publish
46+
run: python3 -B scripts/test-release-candidate.py -v
47+
48+
# A stamped version with no tag yet is a real candidate and gets the
49+
# release preflight. An already released version only rehearses the build.
50+
- name: Verify canonical stamps for an unreleased version
51+
run: |
52+
version="v$(python3 -c "import pathlib, tomllib; print(tomllib.loads(pathlib.Path('src-rust/Cargo.toml').read_text())['workspace']['package']['version'])")"
53+
if git ls-remote --exit-code --tags origin "refs/tags/$version" >/dev/null 2>&1; then
54+
echo "::notice::$version is already released. This run rehearses the release build; it is not a release candidate."
55+
else
56+
python scripts/check-release-version.py "$version"
57+
fi
58+
59+
# ── Build matrix: kept identical to the build job in release.yml ────
60+
build:
61+
needs: contract
62+
strategy:
63+
fail-fast: true
64+
matrix:
65+
include:
66+
- target: x86_64-pc-windows-msvc
67+
os: windows-latest
68+
artifact: coven-code-windows-x86_64
69+
ext: .exe
70+
- target: x86_64-unknown-linux-gnu
71+
os: ubuntu-latest
72+
artifact: coven-code-linux-x86_64
73+
ext: ""
74+
- target: aarch64-unknown-linux-gnu
75+
os: ubuntu-latest
76+
artifact: coven-code-linux-aarch64
77+
ext: ""
78+
cross: true
79+
- target: x86_64-apple-darwin
80+
os: macos-latest
81+
artifact: coven-code-macos-x86_64
82+
ext: ""
83+
- target: aarch64-apple-darwin
84+
os: macos-latest
85+
artifact: coven-code-macos-aarch64
86+
ext: ""
87+
88+
runs-on: ${{ matrix.os }}
89+
name: Build ${{ matrix.artifact }}
90+
91+
steps:
92+
- uses: actions/checkout@v5
93+
with:
94+
persist-credentials: false
95+
96+
- name: Install Rust toolchain
97+
uses: dtolnay/rust-toolchain@1.100.0
98+
with:
99+
targets: ${{ matrix.target }}
100+
101+
# Linux native: install system libraries for ALSA (voice feature).
102+
- name: Install Linux system dependencies
103+
if: runner.os == 'Linux' && !matrix.cross
104+
run: |
105+
sudo apt-get update
106+
sudo apt-get install -y libasound2-dev pkg-config
107+
108+
# Linux ARM64: use cross for reliable cross-compilation (handles
109+
# sysroot, pkg-config, ALSA automatically via Docker).
110+
- name: Install cross (aarch64-linux)
111+
if: matrix.cross
112+
run: cargo install cross --git https://github.com/cross-rs/cross
113+
114+
- name: Cache cargo registry & build
115+
uses: actions/cache@v5
116+
with:
117+
path: |
118+
~/.cargo/registry
119+
~/.cargo/git
120+
src-rust/target
121+
key: ${{ matrix.target }}-cargo-${{ hashFiles('src-rust/Cargo.lock') }}
122+
restore-keys: ${{ matrix.target }}-cargo-
123+
124+
- name: Build release binary (native)
125+
if: ${{ !matrix.cross }}
126+
working-directory: src-rust
127+
run: cargo build --release --locked --package claurst --target ${{ matrix.target }}
128+
129+
- name: Create Cross.toml for cross-compilation
130+
if: matrix.cross
131+
working-directory: src-rust
132+
run: |
133+
cat > Cross.toml << 'EOF'
134+
[target.aarch64-unknown-linux-gnu]
135+
pre-build = [
136+
"dpkg --add-architecture $CROSS_DEB_ARCH",
137+
"apt-get update",
138+
"apt-get install -y pkg-config libasound2-dev:$CROSS_DEB_ARCH"
139+
]
140+
EOF
141+
142+
- name: Build release binary (cross)
143+
if: matrix.cross
144+
working-directory: src-rust
145+
run: cross build --release --locked --package claurst --target ${{ matrix.target }}
146+
147+
- name: Verify binary exists
148+
shell: bash
149+
run: |
150+
BINARY="src-rust/target/${{ matrix.target }}/release/coven-code${{ matrix.ext }}"
151+
if [[ ! -f "$BINARY" ]]; then
152+
echo "::error::Binary not found at $BINARY"
153+
exit 1
154+
fi
155+
ls -lh "$BINARY"
156+
157+
# Stage the binary into a per-archive directory using the canonical
158+
# name "coven-code" (or "coven-code.exe"). The install scripts assume this
159+
# name inside the archive — do not change without updating install.sh
160+
# and install.ps1.
161+
- name: Stage binary for packaging
162+
shell: bash
163+
run: |
164+
mkdir -p "stage/${{ matrix.artifact }}"
165+
cp "src-rust/target/${{ matrix.target }}/release/coven-code${{ matrix.ext }}" \
166+
"stage/${{ matrix.artifact }}/coven-code${{ matrix.ext }}"
167+
168+
- name: Upload artifact
169+
uses: actions/upload-artifact@v7
170+
with:
171+
name: ${{ matrix.artifact }}
172+
path: stage/${{ matrix.artifact }}/coven-code${{ matrix.ext }}
173+
174+
# ── Package exactly as the release job does, then keep the result ───
175+
package:
176+
needs: build
177+
runs-on: ubuntu-latest
178+
name: Package archives without publishing
179+
timeout-minutes: 10
180+
181+
steps:
182+
- uses: actions/checkout@v5
183+
with:
184+
persist-credentials: false
185+
186+
- name: Download all artifacts
187+
uses: actions/download-artifact@v8
188+
with:
189+
path: artifacts
190+
191+
- uses: actions/setup-python@v6
192+
with:
193+
python-version: '3.12'
194+
195+
- name: Validate and package release artifacts
196+
run: |
197+
python scripts/package-release.py artifacts release
198+
node scripts/generate-release-checksums.mjs release
199+
ls -lh release/
200+
cat release/SHA256SUMS
201+
202+
- name: Upload candidate archives
203+
uses: actions/upload-artifact@v7
204+
with:
205+
name: release-candidate
206+
path: release/
207+
retention-days: 14
208+
209+
# ── Native smoke: each archive runs on its own platform ─────────────
210+
smoke:
211+
needs: package
212+
strategy:
213+
fail-fast: false
214+
matrix:
215+
include:
216+
- artifact: coven-code-windows-x86_64
217+
os: windows-latest
218+
- artifact: coven-code-linux-x86_64
219+
os: ubuntu-latest
220+
- artifact: coven-code-linux-aarch64
221+
os: ubuntu-24.04-arm
222+
- artifact: coven-code-macos-x86_64
223+
os: macos-15-intel
224+
- artifact: coven-code-macos-aarch64
225+
os: macos-latest
226+
227+
runs-on: ${{ matrix.os }}
228+
name: Run ${{ matrix.artifact }}
229+
timeout-minutes: 15
230+
231+
steps:
232+
- uses: actions/checkout@v5
233+
with:
234+
persist-credentials: false
235+
236+
- name: Download candidate archives
237+
uses: actions/download-artifact@v8
238+
with:
239+
name: release-candidate
240+
path: release
241+
242+
- uses: actions/setup-python@v6
243+
with:
244+
python-version: '3.12'
245+
246+
# Linux archives load the system ALSA library for the voice feature.
247+
- name: Install the Linux audio runtime library
248+
if: runner.os == 'Linux'
249+
run: |
250+
sudo apt-get update
251+
sudo apt-get install -y libasound2t64 || sudo apt-get install -y libasound2
252+
253+
- name: Verify digest, contents, version and one turn
254+
run: python scripts/smoke-release-archive.py release ${{ matrix.artifact }}

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
persist-credentials: false
108108

109109
- name: Install Rust toolchain
110-
uses: dtolnay/rust-toolchain@stable
110+
uses: dtolnay/rust-toolchain@1.100.0
111111
with:
112112
targets: ${{ matrix.target }}
113113

‎.github/workflows/rust-ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
persist-credentials: false
9595

9696
- name: Install Rust toolchain
97-
uses: dtolnay/rust-toolchain@stable
97+
uses: dtolnay/rust-toolchain@1.100.0
9898
with:
9999
components: rustfmt, clippy
100100

@@ -157,7 +157,7 @@ jobs:
157157
persist-credentials: false
158158

159159
- name: Install Rust toolchain
160-
uses: dtolnay/rust-toolchain@stable
160+
uses: dtolnay/rust-toolchain@1.100.0
161161
with:
162162
components: clippy
163163

@@ -189,7 +189,7 @@ jobs:
189189
persist-credentials: false
190190

191191
- name: Install Rust toolchain
192-
uses: dtolnay/rust-toolchain@stable
192+
uses: dtolnay/rust-toolchain@1.100.0
193193

194194
- name: Install system dependencies (engine + coven)
195195
run: |

‎.github/workflows/tui-tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
run: python3 -m unittest discover -s scripts/tui-tests -p 'test_*.py' -v
5555

5656
- name: Install Rust toolchain
57-
uses: dtolnay/rust-toolchain@stable
57+
uses: dtolnay/rust-toolchain@1.100.0
5858

5959
# tmux drives the pseudo-terminal; ALSA + pkg-config are needed to build
6060
# the binary (voice feature), mirroring the release workflow.

‎COVEN.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,13 @@ tag; use a new version for fixes rather than replacing published assets.
192192
Each contains `coven-code` (Windows: `coven-code.exe`). Require the final
193193
checksum manifest and verify archive contents and native smoke tests before
194194
declaring the candidate ready. Do not infer platform support from compilation
195-
alone.
195+
alone. The
196+
[release-candidate workflow](.github/workflows/release-candidate.yml) does
197+
this without publishing: it runs on a version-stamp pull request or by
198+
manual dispatch on any ref, repeats the release build and packaging, keeps
199+
the archives and manifest as run artifacts, and runs each archive on its own
200+
platform. Its archives are not the published ones; the release workflow
201+
builds those again.
196202
6. After authorized Git delivery and passing exact-commit CI, dispatch
197203
`.github/workflows/release.yml` from the approved main commit with the chosen
198204
version. The workflow publishes a GitHub Release; it is not a dry run.

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
> npm install -g @opencoven/cli
99
> ```
1010
>
11-
> This repository is the **Coven engine** — `coven-code` **v0.9.1**. The unified `coven` CLI (`@opencoven/cli`) installs and checksum-verifies its pinned engine version, which may differ from this release. You no longer install `coven-code` from npm directly. See the [release notes](https://github.com/OpenCoven/coven/blob/main/docs/release-notes-unified-cli.md) and the [merge guide](docs/unification.md).
11+
> This repository is the **Coven engine** — `coven-code` **v0.9.2**. The unified `coven` CLI (`@opencoven/cli`) installs and checksum-verifies its pinned engine version, which may differ from this release. You no longer install `coven-code` from npm directly. See the [release notes](https://github.com/OpenCoven/coven/blob/main/docs/release-notes-unified-cli.md) and the [merge guide](docs/unification.md).
1212
1313
**Coven Code** is an open-source agentic coding TUI built in Rust. It is maintained by [OpenCoven](https://opencoven.ai) as a GPL-3.0 fork of [Claurst](https://github.com/Kuberwastaken/claurst) by Kuber Mehta.
1414
@@ -26,7 +26,7 @@ Terminal coding agent with a rich ratatui TUI: chat forking, memory consolidatio
2626
2727
## Status
2828
29-
> **Beta (v0.9.1).** Core agent, provider routing, and TUI are stable for daily use. Experimental features are flagged below.
29+
> **Beta (v0.9.2).** Core agent, provider routing, and TUI are stable for daily use. Experimental features are flagged below.
3030
3131
Recent highlights:
3232
- **/share** — share sessions via unlisted GitHub Gists `[EXPERIMENTAL]`

‎docs/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Coven Code is a high-performance Rust reimplementation of Claude Code — a terminal-native AI coding agent with streaming responses, 40+ built-in tools, 15+ LLM provider integrations, a full ratatui TUI, and an extensible plugin system.
88

9-
**Version:** 0.9.1 (Beta) · **License:** GPL-3.0 · [GitHub](https://github.com/OpenCoven/coven-code)
9+
**Version:** 0.9.2 (Beta) · **License:** GPL-3.0 · [GitHub](https://github.com/OpenCoven/coven-code)
1010

1111
</div>
1212

‎docs/installation.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ coven-code --version
121121
Example engine output:
122122

123123
```
124-
coven-code 0.9.1
124+
coven-code 0.9.2
125125
```
126126

127127
Use `command -v coven-code` on Unix or `Get-Command coven-code` in PowerShell to
@@ -130,8 +130,10 @@ selection; the two paths may differ.
130130

131131
## Building from source
132132

133-
Use the stable Rust toolchain used by CI and the checked-in lockfile. No older
134-
minimum Rust version is asserted here without a corresponding build check.
133+
Use the Rust toolchain CI and release builds use, and the checked-in lockfile.
134+
That toolchain is Rust 1.100.0, pinned in the `Install Rust toolchain` steps
135+
under `.github/workflows/`. No older minimum Rust version is asserted here
136+
without a corresponding build check.
135137

136138
```bash
137139
git clone https://github.com/OpenCoven/coven-code.git

‎npm/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opencoven/coven-code",
3-
"version": "0.9.1",
3+
"version": "0.9.2",
44
"description": "Coven engine (agentic coding TUI). The unified CLI is @opencoven/cli \u2014 'npm i -g @opencoven/cli'. This package installs the engine binary directly.",
55
"license": "GPL-3.0-only",
66
"repository": {

0 commit comments

Comments
 (0)