Reject mismatched uploads; add local mock AI runner

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-11 13:31:01 -07:00
parent 75158c4449
commit c59591ccb9
2 changed files with 13 additions and 1 deletions

8
scripts/mock-ai.ts Normal file
View file

@ -0,0 +1,8 @@
// Runs the scripted OpenAI-compatible mock used by the tests, so the AI features can be tried
// locally without a real provider:
// npx tsx scripts/mock-ai.ts
// Then add an "OpenAI-compatible" provider with URL http://localhost:4010/v1 and key "mock-key".
import { startMockAi } from '../tests/mockAi.ts';
const mock = await startMockAi(Number(process.env.MOCK_AI_PORT ?? 4010));
console.log(`Mock AI provider listening at ${mock.url} (API key: mock-key)`);