set shell := ["bash", "-euo", "pipefail", "-c"]

default:
  @just --list

run:
  cargo run

watch:
  cargo watch -x run

check:
  cargo check

test:
  cargo test

nextest:
  cargo nextest run

lint:
  cargo fmt --all
  cargo clippy --workspace --all-targets --all-features -- -D warnings

release:
  cargo run --release --no-default-features

context:
  ./ai/scripts/build-context.sh

ai-chat:
  ./ai/scripts/llama-chat.sh

ai-plan TASK:
  ./ai/scripts/llama-task.sh plan "{{TASK}}"

ai-fix TASK:
  ./ai/scripts/llama-task.sh fix "{{TASK}}"

ai-review TASK:
  ./ai/scripts/llama-task.sh review "{{TASK}}"

tree:
  tree -a -I target -I .git
