mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -07:00
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:
@@ -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],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user