Features (see spec.md v2): - Wire receipt classification into the upload flow; cheap model (Haiku 4.5) is now the default, shown as a footnote with per-scan cost in cents. - Skip-AI toggle to enter fields by hand. - Duplicate-transaction warning: live check on date+amount, gated submit. - Tally tab: person x year totals with margins and grand total. - Recent uploads / recent receipts tabs with paging and file serving. - People reconcile on startup: merge stray partial names (e.g. "Jude" -> "Jude Tremblay"), reassigning receipts; idempotent seeding. - scripts/build.sh builds the binary; scripts/run.sh builds and runs with .env. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
18 lines
384 B
Bash
Executable file
18 lines
384 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Build and run the app locally, loading config from .env.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
source scripts/go-env.sh
|
|
|
|
if [[ ! -f .env ]]; then
|
|
echo "No .env found. Copy .env.example to .env and fill it in." >&2
|
|
exit 1
|
|
fi
|
|
|
|
# Load .env into the environment (export every assignment).
|
|
set -a
|
|
source .env
|
|
set +a
|
|
|
|
go build -o hsa ./cmd/hsa
|
|
exec ./hsa "$@"
|