Do

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/orchestrator/do.tsRelative: loom/src/orchestrator/do.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 435Bytes: 16,278Imports: 8Exports: 1

Content Preview

  1. import { drizzle } from "drizzle-orm/d1";
  2. import { goals } from "../db/schema";
  3. import { parseContract } from "../lib/validate";
  4. import { newGoalId, sha256Hex } from "../lib/ids";
  5. import { createLogger } from "../lib/logger";
  6. import { ImmutableSpecError, NotFoundError, isLoomError, errorDetail } from "../types/errors";
  7. import type { Env, GoalState, GoalTunables, StageSpec, StageId, GoalId } from "../types";
  8. import {
  9. CheckpointEngine,
  10. EscalationLedger,
  11. DriftSentinel,
  12. TokenMint,
  13. type KV