Skip to content

getGlobalGslothConfigWritePath

getGlobalGslothConfigWritePath(filename, identityProfileRaw?): string

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

Gets the write path for a global gsloth config file (e.g. .gsloth.config.json) inside the global ~/.gsloth directory (or ~/.gsloth/.gsloth-settings/<identityProfile>/), ensuring the relevant directory exists.

Intended for first-run setup flows (CFG-2) that need to persist global settings.

string

The configuration filename (e.g. .gsloth.config.json)

string

Optional identity profile subdirectory name within .gsloth-settings. A blank/whitespace-only value counts as “no profile”.

string

The resolved path where the global configuration file should be written