Skip to content

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.

string

ProfileScaffoldSeed & object

CreateProfileResult

Error on an invalid name, an invalid scaffold, or an existing file without force.