/** * `/run `: a flow run by name, in a run directory of its own, * its answer left in the conversation; `/run resume [path]` carries one on. * * What describes the work is in the flow's file: its questions, its checks, * its copies, its commit. What belongs to whoever types the command is on the * line, and only that: the model they hold keys for (`--model`) and how long * one turn may take (`--timeout`). Every run gets `runs//`, so any * run can be resumed, and is measured there. * * Both stages of validation run before the first spawn, the run stage with * this terminal's ports: its question card when somebody is here, the * project's scripts, and git. A flow that needs a repository is refused * outside one by that stage, which names the node needing it. */ import { type FlowResult } from "../../src/index.ts"; import { type MessageDeps } from "../deps.ts"; import { type CommandCtx, type PiApi } from "../pi.ts"; /** Registers `/run`. */ export default function registerRunCommand(pi: PiApi): void; /** * `/run [--model ] [--timeout ] `, the two * flags before the flow or at the end of the line, `/run resume []`, or `/run` alone for the list of flows. * Resolves to how the run ended, or `undefined` when it was refused before it * started. */ export declare function runCommand(args: string, ctx: CommandCtx, injected: MessageDeps): Promise; //# sourceMappingURL=run.d.ts.map