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

View File

@@ -40,12 +40,14 @@ const createPrompt = (issueNumber: number) => {
).replace(/\${{ github\.event\.issue\.number }}/g, issueNumber.toString());
};
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
const DEDUP_SETTINGS = {
...ORIGINAL_SETTINGS,
mcpServers: {
issue_deduplication: {
command: 'npx',
args: ['tsx', mockMcpPath],
command: tsxPath,
args: [mockMcpPath],
},
},
};

View File

@@ -39,12 +39,14 @@ const createPrompt = () => {
);
};
const tsxPath = path.join(process.cwd(), 'node_modules', '.bin', 'tsx');
const REFRESH_SETTINGS = {
...ORIGINAL_SETTINGS,
mcpServers: {
issue_deduplication: {
command: 'npx',
args: ['tsx', mockMcpPath],
command: tsxPath,
args: [mockMcpPath],
},
},
};