MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / isExecutionAction

Function isExecutionAction

src/agent/scope-guard.ts:26–34  ·  view source on GitHub ↗
(toolName: string, argsJson: string)

Source from the content-addressed store, hash-verified

24
25// Is this tool call an "execution"/environment action (start a server, install deps)?
26export function isExecutionAction(toolName: string, argsJson: string): boolean {
27 if (/dev_server|run_dev|preview|^serve$/i.test(toolName)) return true;
28 if (toolName === 'shell' || toolName === 'bash' || toolName === 'run_command') {
29 return /\b(pnpm|npm|yarn|bun)\s+(install|add|i|ci|run\s+dev|run\s+start|run\s+serve)\b|\bnpx\b|(^|\s|\/)vite(\s|$)/i.test(
30 argsJson || '',
31 );
32 }
33 return false;
34}

Callers 2

runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected