UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

12 lines (11 loc) • 834 B
import { type GatePass } from "./runner/gate-exit.js"; import type { ToolGateResult } from "./hooks.js"; /** * Run the lanes over the pass: the org layer over the fold's verdict, then — for a surviving ask — the rewrite * merge, the rule lane, the stamp, the classifier, the sandbox leg, the parks, the content lane, the resolution * and the edit chain. Returns the gate result when a park SUSPENDED the call (the three park sites' early * exits), otherwise undefined with the pass holding a standing deny or allow for the exit. Reads every fold * cell; writes `decision`, `deniedBy`, `currentInput`, `req.args`, `parkFailed`, `preToolContext`, and the * ledger through its own methods. The station ORDER is this function's statement order. */ export declare function runGateLanes(pass: GatePass): Promise<ToolGateResult>;