Contributing
Build and test
How to build the Cori CLI, run lints and tests, and run the binary end-to-end locally.
Prerequisites
- Rust toolchain (see MSRV in root
Cargo.toml) - Node.js ≥ 20
- pnpm (
npm install -g pnpm)
Build the CLI
cargo build
# or for a release build:
cargo build --releaseThe binary is at target/debug/cori (or target/release/cori).
Lint
cargo clippy --all-targets --all-featuresFor TypeScript packages:
pnpm lintUnit tests
cargo testFor TypeScript packages:
pnpm testIntegration tests (Temporal required)
Integration tests require a running Temporal dev server:
temporal server start-devThen in a separate terminal:
cargo test --features integrationRun the binary end-to-end
# From the repo root, build first:
cargo build
# Run the hello_world example:
./target/debug/cori run examples/hello_world
# Check the translate example:
./target/debug/cori check examples/translate_product_sheets_frTypeScript SDK development
cd packages/sdk
pnpm install
pnpm build
pnpm testSkill development
cd packages/skill
pnpm install
pnpm buildRefer to AGENTS.md in the repository root for the authoritative build instructions and any recent changes.