Fix all import paths in scripts/eval/*.ts files. These files were moved from scripts/ to…
- User
Fix all import paths in scripts/eval/*.ts files. These files were moved from scripts/ to scripts/eval/, so relative imports changed.
Context
- Previously at: scripts/chatbot-smoke.ts, scripts/chatbot-eval-multi-model.ts, scripts/iterate_loop.ts, scripts/iteration-1-focused.ts, scripts/quick-test.ts
- Now at: scripts/eval/chatbot-smoke.ts, scripts/eval/chatbot-eval-multi-model.ts, scripts/eval/iterate_loop.ts, scripts/eval/iteration-1-focused.ts, scripts/eval/quick-test.ts
- The repo root is C:\Users\nicolas\Documents\GitHub\bballgenius
- When scripts were at scripts/,
../src/pointed to repo-rootsrc/ - Now at scripts/eval/, we need
../../src/to point to repo-rootsrc/
Files and Required Changes
1. scripts/eval/chatbot-eval-multi-model.ts
Change these imports from
'../src/tabs/chatbot/...'to'../../src/tabs/chatbot/...':import { getChatbotGraph, resetGraph } from '../src/tabs/chatbot/agent/graph.js';import { closeDb, initDb } from '../src/tabs/chatbot/db.js';import { type EvalQuestion, QUESTION_MATRIX } from '../src/tabs/chatbot/eval/question-matrix.js';import { setModel } from '../src/tabs/chatbot/openrouter.js';import { buildSystemPrompt } from '../src/tabs/chatbot/systemPrompt.js';
2. scripts/eval/quick-test.ts
Change same pattern:
'../src/tabs/chatbot/...'to'../../src/tabs/chatbot/...'for all 4 imports.3. scripts/eval/iteration-1-focused.ts
Change same pattern:
'../src/tabs/chatbot/...'to'../../src/tabs/chatbot/...'for all 4 imports. Also fix the node:fs dynamic import on line 135-136.4. scripts/eval/chatbot-smoke.ts
This file has WRONG paths (missing
/tabs/). Fix ALL 5 imports:import { getChatbotGraph } from '../src/chatbot/agent/graph.js';→import { getChatbotGraph } from '../../src/tabs/chatbot/agent/graph.js';import { closeDb, initDb } from '../src/chatbot/db.js';→import { closeDb, initDb } from '../../src/tabs/chatbot/db.js';import { NBA_100_QUERIES } from '../src/chatbot/eval/nba-100-queries.js';→import { NBA_100_QUERIES } from '../../src/tabs/chatbot/eval/nba-100-queries.js';import { setModel } from '../src/chatbot/openrouter.js';→
Assistant
All files read. Now I'll apply the fixes across all 5 files.
Assistant
All 5 files fixed. Here's what changed:
File Change scripts/eval/chatbot-eval-multi-model.ts'../src/tabs/chatbot/...'→'../../src/tabs/chatbot/...'(5 imports)scripts/eval/quick-test.ts'../src/tabs/chatbot/...'→'../../src/tabs/chatbot/...'(4 imports)scripts/eval/iteration-1-focused.ts'../src/tabs/chatbot/...'→'../../src/tabs/chatbot/...'(4 imports)scripts/eval/chatbot-smoke.ts'../src/chatbot/...'→'../../src/tabs/chatbot/...'(5 imports, added missing/tabs/)scripts/eval/iterate_loop.ts'../agent/...'/ / / → (5 imports, completely broken → correct)