Run

loom-builder-solsourcetypescript
Path: loom-builder-sol/src/run.tsRelative: src/run.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 532Bytes: 23,100Imports: 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. ModelRuntime,
  13. SessionManager,
  14. createAgentSession,
  15. createCodingTools,
  16. } f