export APP_ENV ?= local
export HTTP_ADDR ?= :8080
export DATABASE_URL ?= postgres://nomadcode:nomadcode@code-server-postgres:5432/nomadcode-core-local?sslmode=disable
export REDIS_URL ?= redis://code-server-redis:6379/3
export REDIS_KEY_PREFIX ?= nomadcode-core:local
export DEV_REDIS_URL ?= redis://code-server-redis:6379/4
export DEV_REDIS_KEY_PREFIX ?= nomadcode-core:dev
export AUTH_USERNAME ?= nomadcode
export MODEL_BASE_URL ?= http://192.168.0.91:11434
export MODEL_API_KEY ?= ollama
export MODEL_NAME ?= qwen3.6:35b-a3b-bf16
export MODEL_CONTEXT_SIZE ?= 262144
export MODEL_TIMEOUT_SEC ?= 300
export A2A_EDGE_URL ?=
export A2A_AGENT_URL ?=
export A2A_TIMEOUT_SEC ?= 300
export WORKFLOW_TASK_TIMEOUT_SEC ?= 300
export GOOSE_DRIVER ?= postgres
export GOOSE_DBSTRING ?= $(DATABASE_URL)
export OUTPUT ?= .build/nomadcode-core

.PHONY: run test build docker-up docker-down migrate-up sqlc

run:
	./bin/run

test:
	./bin/test

build:
	./bin/build

docker-up:
	./bin/docker-up

docker-down:
	./bin/docker-down

migrate-up:
	./bin/migrate-up

sqlc:
	./bin/sqlc
