Function: resolveConfigDir()¶
Defined in: rine-core/dist/src/config-dir.d.ts:28
The runtime config dir: its verified path, how it is shown and the rung that chose it, first match of:
1. RINE_CONFIG_DIR;
2. the nearest .rine holding profiles.json, walking up from
CLAUDE_PROJECT_DIR (when absolute) or the cwd, stopping before $HOME;
3. ~/.config/rine, which is also where a fresh onboarding writes.
A project .rine that checkProjectDir refuses (owned by another
user, writable by others, without a sound identity.json, a real folder, a
link outside the identity store, or not listed in this user's bound-dirs.json) is skipped
with a notice naming who it would make this agent and rine identity adopt
(the walk continues, so the global dir answers when nothing else does). One the
registry binds that fails the check (a gone store entry included), or that this
user cannot read, is never walked past: it throws ProjectDirRefusedError. So does
any .rine entry on the walk when bound-dirs.json cannot be read or parsed (code
registry_unreadable): without the registry nothing can be told as bound. RINE_CONFIG_DIR
and a tree with no .rine never read it. A
candidate holding only the retired sign-in file stops discovery with the upgrade text;
it is never silently skipped. The Python twin is rine._config_dir.resolve_config_dir.