Files
wursor/e2e/golden/src/load-prompts.ts
T
SinachPat 6e59a8a36b feat: Phase 0 workspace, spikes, and golden harness
Stand up the monorepo skeleton and land the first Phase 0 artifacts:
pairing threat model, plugin catalog, builder detect, 20-prompt golden
harness, and synthetic 2GB mirror timing.
2026-08-15 09:44:43 +01:00

12 lines
411 B
TypeScript

import { readFileSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import type { GoldenPrompt } from './types.ts';
const goldenRoot = join(dirname(fileURLToPath(import.meta.url)), '..');
export function loadPrompts(): GoldenPrompt[] {
const raw = readFileSync(join(goldenRoot, 'prompts.json'), 'utf8');
return JSON.parse(raw) as GoldenPrompt[];
}