# ia_dev shared lib ## project_config.sh Sourced by deploy scripts and gitea-issues to resolve the current project **id** and the path to its JSON config. **Before sourcing:** set `PROJECT_ROOT` (git repo root, where `ai_project_id` or `.ia_project` lives) and `IA_DEV_ROOT` (path to the `ia_dev` directory). **After sourcing:** `PROJECT_SLUG` and `PROJECT_CONFIG_PATH` are set (and exported). Config path is `projects//conf.json`. **Project id resolution order:** `IA_PROJECT` env → `.ia_project` at PROJECT_ROOT → `ai_project_id` at PROJECT_ROOT. See `projects/README.md` for the config schema.