(toolName: string, argsJson: string)
| 24 | |
| 25 | // Is this tool call an "execution"/environment action (start a server, install deps)? |
| 26 | export 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 | } |
no outgoing calls
no test coverage detected