-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathjustfile
More file actions
82 lines (66 loc) · 1.99 KB
/
Copy pathjustfile
File metadata and controls
82 lines (66 loc) · 1.99 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
# Rust project checks
set positional-arguments
set shell := ["bash", "-euo", "pipefail", "-c"]
# List available commands
default:
@just --list
# Run project checks through checkle
check:
checkle run all
# Run check and fail if there are uncommitted changes for CI
check-ci: check
#!/usr/bin/env bash
set -euo pipefail
if ! git diff --quiet || ! git diff --cached --quiet; then
echo "Error: check caused uncommitted changes"
echo "Run 'just check' locally and commit the results"
git diff --stat
exit 1
fi
# Install shims into the Git hooks directory
install-hooks:
scripts/install-git-hook-shims
# Check Rust formatting through checkle
format:
checkle run format-check
# Check clippy through checkle
clippy:
checkle run clippy
# Check the build through checkle
build:
checkle run build
# Run tests through checkle
test:
checkle run test
# Install release binary globally
install:
cargo install --offline --path . --locked
# Install debug binary globally via symlink
install-dev:
cargo build && ln -sf $(pwd)/target/debug/claude-code-proxy ~/.cargo/bin/claude-code-proxy
# Run the application
run *ARGS:
cargo run -- "$@"
# Build and open the monitor demo in a running CuaBot session
cua-monitor-demo session:
scripts/cua-monitor-demo '{{session}}'
# Run the docs development server
docs:
#!/usr/bin/env bash
set -euo pipefail
bun install --cwd docs --frozen-lockfile
preferred_port=4321
max_port=$((preferred_port + 50))
for ((port = preferred_port; port <= max_port; port++)); do
if ! nc -z 127.0.0.1 "$port" >/dev/null 2>&1; then
exec bun run --cwd docs dev --port "$port"
fi
done
echo "Error: could not find an available docs port between ${preferred_port} and ${max_port}" >&2
exit 1
# Internal release helper
_release bump *ARGS:
@cargo-release {{bump}} {{ARGS}}
# Release a new patch version
release *ARGS:
@just _release patch --skip-publish {{ARGS}}