Gate Packs

loom-builder-solsourcetypescript
Path: loom-builder-sol/src/gate-packs.tsRelative: src/gate-packs.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 126Bytes: 4,537Imports: 3Exports: 5

Content Preview

  1. import { existsSync, readFileSync, statSync } from "node:fs";
  2. import { join, resolve } from "node:path";
  3. import type { ValidationCmd } from "./types.js";
  4. export interface GatePack {
  5. scope: string;
  6. description: string;
  7. extends?: string;
  8. preflight?: { maxEstTokens: number };
  9. budget?: { maxSessionTokens: number };
  10. validation: GatePackValidationCmd[];
  11. }
  12. export interface GatePackValidationCmd {
  13. label: string;
  14. cmd: string[];
  15. cwd?: string; // "." resolves to targetCwd at runtime; de