-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (62 loc) · 1.91 KB
/
Copy pathjustfile
File metadata and controls
79 lines (62 loc) · 1.91 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
# hum — justfile. Cross-cutting orchestration over a Rust core + per-
# subproject TS manifests. `just <recipe>` runs a recipe. `just` alone
# lists them. No root package.json, no pnpm workspace.
# default: list recipes
default:
@just --list
# Rust binaries (release humd)
build:
cargo build --release -p humd
# Build every TS bee standalone (no workspace coordination).
bees:
#!/usr/bin/env bash
set -euo pipefail
for n in openai-server anthropic-server ollama-server vercel-ai; do
if [ -f "bees/$n/package.json" ]; then
echo "→ bees/$n"
(cd "bees/$n" && pnpm install --silent >/dev/null 2>&1 && pnpm run build --silent)
fi
done
# Everything (Rust + TS bees)
build-all: build bees
# Rust tests across all crates
test:
cargo test --workspace
# Recipe tests (vitest) — opencode integration
test-recipes:
#!/usr/bin/env bash
if [ -f recipes/opencode/tests/package.json ]; then
cd recipes/opencode/tests && pnpm install --silent >/dev/null 2>&1 && pnpm test
else
echo "no recipes/opencode/tests/package.json"
fi
# Fast Rust subset: sim narratives only
sim:
cargo test -p sim
# Workspace type check (no test compile)
check:
cargo check --workspace
fmt:
cargo fmt --all
lint:
cargo clippy --workspace -- -D warnings
# Docs site (Astro + Starlight)
site:
cd site && pnpm install --no-audit --no-fund && pnpm run build
site-dev:
cd site && pnpm install --no-audit --no-fund && pnpm run dev
# Paradigm 2: full installer — humd binary, systemd unit, hum.json
install:
./install
# Local-dev redeploy (env-specific glue, gitignored)
dev:
./dev/deploy
# Recipe: bring up hum + opencode end-to-end
recipe-opencode:
./recipes/opencode/install
clean:
cargo clean
rm -rf site/dist site/.astro site/src/content/docs
@for n in bees/*/dist; do rm -rf "$n" 2>/dev/null || true; done
purge: clean
./install purge