Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
83 lines (65 loc) · 2.75 KB
/
Copy pathjustfile
File metadata and controls
83 lines (65 loc) · 2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Polyglot task entry point (ADR-0024). Run `just` to list recipes.
# Prerequisites: rustup (toolchain from rust-toolchain.toml), cargo-nextest,
# cargo-deny; Node.js 24 with Corepack enabled (`corepack enable`) for the
# JavaScript workspace (pnpm comes from `packageManager`).
# `cargo xtask` is an alias defined in .cargo/config.toml.
set shell := ["bash", "-euo", "pipefail", "-c"]
# Turborepo sends anonymous usage data unless told not to (ADR-0022).
export TURBO_TELEMETRY_DISABLED := "1"
# List available recipes.
default:
@just --list
# Format all Rust code.
fmt:
cargo fmt --all
# Verify formatting without changing files.
fmt-check:
cargo fmt --all --check
# Lint with clippy; warnings are errors (ADR-0025).
lint:
cargo clippy --workspace --all-targets --locked -- -D warnings
# Run the criterion benchmarks. Not part of `check`: results depend on the
# machine. Baselines: docs/architecture/performance.md.
bench:
cargo bench --workspace --locked
# Cleanup effectiveness on a seeded labeled home (issue #703): timings, peak
# memory and the score against the labels. macOS; not part of `check`.
effectiveness *args:
cargo xtask effectiveness {{args}}
# Run unit, integration and doc tests.
test:
cargo nextest run --workspace --locked --no-tests=warn
cargo test --workspace --doc --locked
# Check dependencies: advisories, licenses, bans, sources (ADR-0026).
deny:
cargo deny --all-features --locked check
# Regenerate committed artifacts (JSON Schemas, ADR-0011).
gen:
cargo xtask schema
# Fail if committed schemas differ from the Rust types.
schema-check:
cargo xtask schema --check
# Test the Claude Code guard hooks (ADR-0056); needs jq. CI runs it on Linux.
agent-hooks-test:
.claude/hooks/test-guards.sh
# Each problem it reports says how to fix it.
# Check crate layering, pure-crate IO, the ADR index and doc links (ADR-0056).
repo-lint:
cargo xtask lint
# Install the JavaScript workspace exactly as locked (ADR-0024).
js-install:
pnpm install --frozen-lockfile
# Format, lint and type-check the JavaScript workspace (ADR-0025).
js-check: js-install
pnpm run check
# Build the on-device judge helper for `lumen-jev-eval record --judge apple-fm`
# (ADR-0044). macOS 26 with Xcode 26 or later; not part of `check`, which also
# runs on Linux and Windows. CI builds and tests it on macOS (fm-judge.yml).
fm-judge:
swift build -c release --package-path apps/fm-judge
# Lint and test the on-device judge helper; its tests need no model.
fm-judge-test:
xcrun swift-format lint --strict -r apps/fm-judge/Package.swift apps/fm-judge/Sources apps/fm-judge/Tests
swift test --package-path apps/fm-judge
# Everything CI checks; run before every commit.
check: fmt-check lint test deny schema-check repo-lint js-check