beadboard/test-watcher.ts
zenchantlive 5ff4469dd5 chore: misc updates and fixes
- lib/utils.ts: Add getArchetypeDisplayChar helper (duplicate of src/lib)
- globals.css: Style updates
- swarm-command-feed.tsx: Component updates
- telemetry-grid.tsx: Use getArchetypeDisplayChar
- test-watcher.ts: Test utility updates
2026-02-26 10:25:31 -08:00

25 lines
1 KiB
TypeScript

import { readIssuesFromDisk } from './src/lib/read-issues';
import { runBdCommand } from './src/lib/bridge';
const projectRoot = 'C:\\Users\\Zenchant\\codex\\beadboard';
async function run() {
console.log('1. Reading current state...');
const state1 = await readIssuesFromDisk({ projectRoot, preferBd: true, skipAgentFilter: true });
console.log(`State 1 has ${state1.length} issues.`);
console.log('2. Creating a test issue via bd...');
await runBdCommand({ projectRoot, args: ['create', 'Diff test issue', '-p', '0'] });
console.log('3. Reading new state...');
const state2 = await readIssuesFromDisk({ projectRoot, preferBd: true, skipAgentFilter: true });
console.log(`State 2 has ${state2.length} issues.`);
if (state1.length === state2.length) {
console.error('ERROR: State length did not change! readIssuesFromDisk is caching or returning stale data.');
} else {
console.log('SUCCESS: State length changed. The issue is in watcher.ts snapshot management.');
}
}
run().catch(console.error);