Foundry can be used programmatically by importing from the main entry point:
import { controlLoop, loadState, enqueueTask, createQueue, type Task, } from './index';
# Check provider status and circuit breakers npx ts-node scripts/investigations/provider-health.ts # Inspect task queue and blocked tasks npx ts-node scripts/investigations/task-queue-inspect.ts # Analyze execution logs and error patterns npx ts-node scripts/investigations/log-analyzer.ts --summary