Skip to content

getEffectiveDevToolsConfig

getEffectiveDevToolsConfig(config, command): GthDevToolsConfig | undefined

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/shell-policy.ts:339

Resolve the GthDevToolsConfig that applies to the active command from the unified GthConfig.builtInTools registry (CFG-18 — replaces the removed per-command devTools). Mirrors the per-command selection used by builtInToolsConfig.getDefaultTools: execcommands.exec, ask --writecommands.ask, codecommands.code; undefined elsewhere (the dev/shell tools are inert there). The effective registry for the scope is the per-command builtInTools if set, else the root builtInTools — matching getEffectiveConfig’s replace merge. Shared in core so the runner’s allow-list/judge gates stay in lockstep with where the shell tool is actually emitted.

Pick<GthConfig, "commands" | "builtInTools" | "askWriteMode"> | undefined

GthCommand | undefined

GthDevToolsConfig | undefined