Skip to content

Commit 48e3536

Browse files
authored
feat: enable independent Rook and Huginn releases with Release Please (#333)
1 parent 70a8fa9 commit 48e3536

17 files changed

Lines changed: 654 additions & 428 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ jobs:
192192
test:
193193
name: Test (Rust)
194194
runs-on: ubuntu-latest
195+
timeout-minutes: 45
195196
needs: [changes, build-dashboard, fmt, clippy]
196197
if: needs.changes.outputs.backend == 'true' || needs.changes.outputs.github == 'true'
197198
steps:

‎.github/workflows/release.yml‎

Lines changed: 262 additions & 379 deletions
Large diffs are not rendered by default.

‎.release-please-manifest.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"apps/rook": "0.0.1"
2+
"apps/rook": "0.0.1",
3+
"apps/huginn": "0.1.0"
34
}

‎README.md‎

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,30 @@ cd cortex
7373
cargo build --release -p rook
7474
```
7575

76+
#### Rust installation from a product tag
77+
78+
Rook GA supports installing directly from its immutable product tag. Publishing
79+
the internal crates to crates.io is a later distribution phase and is not a
80+
first-release requirement:
81+
82+
```bash
83+
cargo install \
84+
--git https://github.com/dallay/cortex.git \
85+
--tag rook@vX.Y.Z \
86+
--locked \
87+
-p rook
88+
```
89+
7690
#### Binary releases
7791
Download pre-built binaries from [Releases](https://github.com/dallay/cortex/releases) for:
78-
- Linux (x86_64, aarch64)
92+
- Linux (x86_64)
7993
- macOS (Intel, Apple Silicon)
80-
- Windows (x86_64, aarch64)
94+
- Windows (x86_64)
95+
96+
Rook and Huginn are separate products with separate versions and release tags.
97+
See the [release and distribution contract](docs/releasing.md) before relying
98+
on a registry or container channel. Huginn's public distribution remains
99+
blocked until its acceptance gates are complete.
81100

82101
### Quick Start
83102

@@ -238,6 +257,8 @@ just test-e2e
238257
- [Providers](docs/providers.md)
239258
- [API Reference](docs/api.md)
240259
- [Deployment](docs/deployment.md)
260+
- [Release and distribution contract](docs/releasing.md)
261+
- [ADR-0014: Product releases versus Cargo publishing](docs/adr/0014-separate-product-releases-from-cargo-publishing.md)
241262
- [API key troubleshooting](docs/api-key-troubleshooting.md)
242263
- [Rook dashboard](apps/rook/dashboard/README.md) (Vue SPA, embedded at `/dashboard/`)
243264
- [Local Docker testing](dev/README.md) (smoke, Playwright E2E, multi-distro)

‎apps/rook/CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Changelog
2+
3+
All notable Rook releases are documented in this file.
4+
5+
The file is maintained by Release Please. Rook releases use the independent
6+
`rook@vX.Y.Z` tag and never imply a repository-wide Cortex version.
7+
8+
## [0.0.1] - Unreleased
9+
10+
- Initial product-scoped release metadata.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@dallay/rook-darwin-arm64",
3+
"version": "0.0.1",
4+
"description": "Rook native binary for macOS Apple Silicon.",
5+
"license": "MIT",
6+
"os": ["darwin"],
7+
"cpu": ["arm64"],
8+
"files": ["bin"],
9+
"publishConfig": { "access": "public" },
10+
"repository": "dallay/cortex"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@dallay/rook-darwin-x64",
3+
"version": "0.0.1",
4+
"description": "Rook native binary for macOS Intel.",
5+
"license": "MIT",
6+
"os": ["darwin"],
7+
"cpu": ["x64"],
8+
"files": ["bin"],
9+
"publishConfig": { "access": "public" },
10+
"repository": "dallay/cortex"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@dallay/rook-linux-x64",
3+
"version": "0.0.1",
4+
"description": "Rook native binary for Linux x64.",
5+
"license": "MIT",
6+
"os": ["linux"],
7+
"cpu": ["x64"],
8+
"files": ["bin"],
9+
"publishConfig": { "access": "public" },
10+
"repository": "dallay/cortex"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@dallay/rook-windows-x64",
3+
"version": "0.0.1",
4+
"description": "Rook native binary for Windows x64.",
5+
"license": "MIT",
6+
"os": ["win32"],
7+
"cpu": ["x64"],
8+
"files": ["bin"],
9+
"publishConfig": { "access": "public" },
10+
"repository": "dallay/cortex"
11+
}

‎apps/rook/npm/rook/package.json‎

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@dallay/rook",
3+
"version": "0.0.1",
34
"description": "AI proxy/router that routes LLM requests to multiple providers (OpenAI, Anthropic, Ollama, Gemini, Groq) with fallback, caching, and audit logging.",
45
"author": "Yuniel Acosta <info@yunielacosta.com>",
56
"license": "MIT",
@@ -36,23 +37,14 @@
3637
"lib"
3738
],
3839
"scripts": {
39-
"test": "pnpm run typecheck",
40-
"typecheck": "tsc --noEmit",
41-
"build": "tsc",
42-
"clean": "node -e \"require('fs').rmSync('lib', {recursive: true, force: true})\"",
43-
"prepublishOnly": "npm run build"
44-
},
45-
"devDependencies": {
46-
"@types/node": "22.20.5",
47-
"typescript": "6.0.3"
40+
"test": "node --check lib/index.js",
41+
"prepublishOnly": "node --check lib/index.js"
4842
},
4943
"optionalDependencies": {
50-
"`@dallay/rook-darwin-arm64`": "0.0.1",
51-
"`@dallay/rook-darwin-x64`": "0.0.1",
52-
"`@dallay/rook-linux-arm64`": "0.0.1",
53-
"`@dallay/rook-linux-x64`": "0.0.1",
54-
"`@dallay/rook-windows-arm64`": "0.0.1",
55-
"`@dallay/rook-windows-x64`": "0.0.1"
44+
"@dallay/rook-darwin-arm64": "0.0.1",
45+
"@dallay/rook-darwin-x64": "0.0.1",
46+
"@dallay/rook-linux-x64": "0.0.1",
47+
"@dallay/rook-windows-x64": "0.0.1"
5648
},
5749
"engines": {
5850
"node": ">=18"

0 commit comments

Comments
 (0)