-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
92 lines (69 loc) · 2.02 KB
/
Copy pathjustfile
File metadata and controls
92 lines (69 loc) · 2.02 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
84
85
86
87
88
89
90
91
92
set shell := ["bash", "-euo", "pipefail", "-c"]
default: list
# List available recipes
list:
@just --list
# Install system build dependencies (protoc, etc.) — run once after checkout
install-deps:
./scripts/install-deps.sh
# Format Rust and TOML files
fmt:
cargo fmt --all
taplo format
# Check formatting without modifying files
fmt-check:
cargo fmt --all -- --check
taplo format --check
# Lint TOML and Rust code
lint:
taplo lint
cargo clippy --all-targets --all-features
# Lint TOML and Rust code with warnings denied (CI parity)
lint-strict:
taplo lint
cargo clippy --all-targets --all-features -- -D warnings
# Type-check all targets and features
check:
cargo check --all-targets --all-features
# Run tests for all targets and features
test:
cargo test --all-targets --all-features
# Run local offline end-to-end verification
e2e:
cargo test -p nanobot --test e2e_local -- --nocapture
# Run local end-to-end verification including optional codex MCP connect
e2e-codex:
cargo test -p nanobot --test e2e_local codex_mcp_connect_smoke -- --ignored --nocapture
# Local CI parity
ci: fmt-check lint test
# Quality gate used by hooks before commit
hook-commit: fmt-check lint-strict
# Quality gate used by hooks before push
hook-push: test
# Build debug binary
build:
cargo build
# Build release binary
build-release:
cargo build --release
# Generate changelog entry for a release version
changelog version:
bash scripts/generate-changelog.sh {{version}}
# Preview changelog entry without writing files
changelog-preview version:
bash scripts/generate-changelog.sh {{version}} --dry-run
# Run with arbitrary arguments, e.g. `just run agent -m "hello"`
run *args:
cargo run -- {{args}}
# Start agent mode, pass through extra args
agent *args:
cargo run -- agent {{args}}
# Start gateway mode, pass through extra args
gateway *args:
cargo run -- gateway {{args}}
# Run onboarding flow, pass through extra args
onboard *args:
cargo run -- onboard {{args}}
# Clean build artifacts
clean:
cargo clean