Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"prepublishOnly": "npm run build && rm -rf ./data && cp -r ../../data ./data"
"prepack": "npm run build && rm -rf ./data && cp -r ../../data ./data",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.0",
Expand Down
8 changes: 6 additions & 2 deletions apps/cli/src/benchmark/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ function findSuitePath(): string {
if (process.env.RIGHTSTACK_BENCHMARK_SUITE) return process.env.RIGHTSTACK_BENCHMARK_SUITE;
let dir = __dirname;
for (let i = 0; i < 8; i++) {
const candidate = path.join(dir, 'research', 'benchmarks', 'benchmark-suite-v1.json');
if (fs.existsSync(candidate)) return candidate;
const candidates = [
path.join(dir, 'data', 'benchmarks', 'benchmark-suite-v1.json'),
path.join(dir, 'research', 'benchmarks', 'benchmark-suite-v1.json'),
];
const match = candidates.find(candidate => fs.existsSync(candidate));
if (match) return match;
dir = path.dirname(dir);
}
throw new Error('Cannot locate benchmark-suite-v1.json. Set RIGHTSTACK_BENCHMARK_SUITE env var.');
Expand Down
Loading