-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
28 lines (21 loc) · 943 Bytes
/
Copy pathjustfile
File metadata and controls
28 lines (21 loc) · 943 Bytes
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
set shell := ["bash", "-euo", "pipefail", "-c"]
root := justfile_directory()
dev_binary := root / "target" / "debug" / "opencode-memory"
# List development recipes.
default:
@just --list
# Build the debug native daemon and stage its runtime library.
build-dev:
bun run build:native
# Build and smoke-test the debug daemon in an isolated runtime directory.
test-daemon: build-dev
OPENCODE_NATIVE_MEMORY_BIN="{{ dev_binary }}" bun run test:protocol
# Build and gracefully replace an idle shared daemon.
daemon-swap: build-dev
bun scripts/dev-daemon.ts swap --binary "{{ dev_binary }}"
# Build and replace the shared daemon even when development clients keep it busy.
daemon-swap-force: build-dev
bun scripts/dev-daemon.ts swap --binary "{{ dev_binary }}" --force
# Build, smoke-test, and force-swap the shared development daemon.
dev: test-daemon
bun scripts/dev-daemon.ts swap --binary "{{ dev_binary }}" --force