createNamedProfile
createNamedProfile(
nameRaw,seed):CreateProfileResult
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/profiles.ts:110
Scaffold a new named profile at resolveProfileConfigPath. Validates the name (no
traversal), builds the scaffold (buildProfileScaffold), validates it against the GS2-1
schema BEFORE writing (never writes an invalid profile), and refuses to clobber an existing
profile unless force. Creates the .gsloth/.gsloth-settings/<name>/ tree as needed so the
loader’s profile-discovery convention resolves it afterwards.
Parameters
Section titled “Parameters”nameRaw
Section titled “nameRaw”string
ProfileScaffoldSeed & object
Returns
Section titled “Returns”Throws
Section titled “Throws”Error on an invalid name, an invalid scaffold, or an existing file without force.