MCPcopy Index your code
hub / github.com/anus-dev/ANUS / normalize

Function normalize

packages/core/src/utils/shell-utils.ts:324–324  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

322
323 const SHELL_TOOL_NAMES = ['run_shell_command', 'ShellTool'];
324 const normalize = (cmd: string): string => cmd.trim().replace(/\s+/g, ' ');
325
326 const isPrefixedBy = (cmd: string, prefix: string): boolean => {
327 if (!cmd.startsWith(prefix)) {

Callers 2

extractCommandsFunction · 0.85
checkCommandPermissionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected