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.
Parameters
Section titled “Parameters”filename
Section titled “filename”string
The configuration filename (e.g. .gsloth.config.json)
identityProfileRaw?
Section titled “identityProfileRaw?”string
Optional identity profile subdirectory name within .gsloth-settings.
A blank/whitespace-only value counts as “no profile”.
Returns
Section titled “Returns”string
The resolved path where the global configuration file should be written