Run

loom-builder-solarchivetypescript
Path: loom-builder-sol/_archive/pre-080/run.tsRelative: _archive/pre-080/run.tsSubproject: loom-builder-solCategory: archived
Lines: 536Bytes: 23,234Imports: 17Exports: 0

Content Preview

  1. /**
  2. * loom-builder — homeostatic dispatch harness.
  3. * Runs one DispatchSpec: agent loop (pi-coding-agent SDK) under hard gates,
  4. * machine validation as the only done-criterion, bounded reformulation,
  5. * JSONL trace + digest/manifest outputs.
  6. *
  7. * Usage: bun run src/run.ts <spec.json>
  8. */
  9. import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
  10. import { basename, join, resolve } from "node:path";
  11. import {
  12. AuthStorage,
  13. ModelRegistry,
  14. SessionManager,
  15. createAgentSession,
  16. create