#!/usr/bin/env bash
# Privacy-hardened environment for running Claude Code against a LOCAL Ollama
# model. Source this file; all values come from tool-chest.toml (two dirs up).
#
# To change the model, Ollama URL, or other settings, edit:
#   tool-chest.toml  (at the repo root)
#
# Shell environment variables override config file values:
#   LOCAL_AGENT_MODEL=mistral:7b ./chat   # one-off override
#
# Asserted by scripts/audit_egress.sh (Layer A).

# Resolve the absolute path of this script's directory first, then walk up.
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"

eval "$(python3 "$REPO_ROOT/scripts/config_loader.py" --export)"
