fix(evals): use direct path to tsx binary in dedup mocks

Avoids reliance on 'npx' which might be flaky or prompt for installation in CI environments.
This commit is contained in:
cocosheng-g
2026-02-03 21:39:16 -05:00
parent b4762750e2
commit 8c82777ea0
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -40,12 +40,14 @@ const createPrompt = (issueNumber: number) => {
).replace(/\${{ github\.event\.issue\.number }}/g, issueNumber.toString()); ).replace(/\${{ github\.event\.issue\.number }}/g, issueNumber.toString());
}; };
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
const DEDUP_SETTINGS = { const DEDUP_SETTINGS = {
...ORIGINAL_SETTINGS, ...ORIGINAL_SETTINGS,
mcpServers: { mcpServers: {
issue_deduplication: { issue_deduplication: {
command: 'npx', command: tsxPath,
args: ['tsx', mockMcpPath], args: [mockMcpPath],
}, },
}, },
}; };
+4 -2
View File
@@ -39,12 +39,14 @@ const createPrompt = () => {
); );
}; };
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
const REFRESH_SETTINGS = { const REFRESH_SETTINGS = {
...ORIGINAL_SETTINGS, ...ORIGINAL_SETTINGS,
mcpServers: { mcpServers: {
issue_deduplication: { issue_deduplication: {
command: 'npx', command: tsxPath,
args: ['tsx', mockMcpPath], args: [mockMcpPath],
}, },
}, },
}; };