( packageManager: AgentRepoContext['packageManager'], script: string, )
| 14548 | } |
| 14549 | |
| 14550 | function formatRepoScriptCommand( |
| 14551 | packageManager: AgentRepoContext['packageManager'], |
| 14552 | script: string, |
| 14553 | ): string { |
| 14554 | switch (packageManager) { |
| 14555 | case 'pnpm': |
| 14556 | return `pnpm ${script}`; |
| 14557 | case 'yarn': |
| 14558 | return `yarn ${script}`; |
| 14559 | case 'bun': |
| 14560 | return `bun run ${script}`; |
| 14561 | case 'npm': |
| 14562 | default: |
| 14563 | return `npm run ${script}`; |
| 14564 | } |
| 14565 | } |
| 14566 | |
| 14567 | function filterExistingRepoPaths(repoRoot: string | null, relativePaths: string[]): string[] { |
| 14568 | if (!repoRoot) { |
no outgoing calls
no test coverage detected