Skip to content

peekProjectDir

peekProjectDir(): string | undefined

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/utils/systemUtils.ts:249

CFG-26 — the RAW project dir, WITHOUT getProjectDir’s cwd fallback, so a caller that must temporarily run a subsidiary initConfig (which re-runs discovery and calls setProjectDir as a side effect) can snapshot and restore the exact prior state — including the “unset, fall back to cwd dynamically” state, which getProjectDir() would otherwise collapse into an explicit cwd. See resolveRaterModel.

string | undefined