(name: string)
| 14523 | function resolveGenericValidationCommands(goal: string, repoContext: AgentRepoContext): string[] { |
| 14524 | const commands: string[] = []; |
| 14525 | const addScript = (name: string) => { |
| 14526 | if (!repoContext.packageScripts.includes(name)) { |
| 14527 | return; |
| 14528 | } |
| 14529 | const command = formatRepoScriptCommand(repoContext.packageManager, name); |
| 14530 | if (!commands.includes(command)) { |
| 14531 | commands.push(command); |
| 14532 | } |
| 14533 | }; |
| 14534 | const normalizedGoal = goal.toLowerCase(); |
| 14535 | if (/test|测试/u.test(normalizedGoal)) { |
| 14536 | addScript('test'); |
no test coverage detected