@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
14 lines • 538 B
JavaScript
import { appConfig } from '../config/index.js';
/**
* Check if a nanocoder tool is configured to always be allowed
* @param toolName - The name of the tool to check
* @returns true if the tool is in the alwaysAllow list, false otherwise
*/
export function isNanocoderToolAlwaysAllowed(toolName) {
const alwaysAllowList = appConfig.nanocoderTools?.alwaysAllow;
if (!Array.isArray(alwaysAllowList)) {
return false;
}
return alwaysAllowList.includes(toolName);
}
//# sourceMappingURL=nanocoder-tools-config.js.map