Gate Packs
Path:
loom-builder/src/gate-packs.tsRelative: src/gate-packs.tsSubproject: loom-builderCategory: dispatch-systemLines: 126Bytes: 4,537Imports: 3Exports: 5
Content Preview
- import { existsSync, readFileSync, statSync } from "node:fs";
- import { join, resolve } from "node:path";
- import type { ValidationCmd } from "./types.js";
- export interface GatePack {
- scope: string;
- description: string;
- extends?: string;
- preflight?: { maxEstTokens: number };
- budget?: { maxSessionTokens: number };
- validation: GatePackValidationCmd[];
- }
- export interface GatePackValidationCmd {
- label: string;
- cmd: string[];
- cwd?: string; // "." resolves to targetCwd at runtime; de