@sema-agent/core
Version:
Stateless, task-oriented AI agent core
11 lines (10 loc) • 815 B
TypeScript
/**
* The shell text a program hands back to the shell: the text a shell program runs INSTEAD of its argv (`sh -c S`,
* `eval S` — {@link reentryText}), and the code bodies a builtin keeps AMONG its operands to run later
* ({@link codeBodies}). The plan marks a segment carrying either as a shell re-entry (`shell-read-plan.ts`); this
* module is the one reader of which operand that text is.
*/
/** The code bodies a builtin keeps among its operands, one per body; empty for every other program. */
export declare function codeBodies(basename: string, args: readonly string[]): readonly string[];
/** The shell text a re-entry program runs: `sh -c S` (the `c` letter's value), `eval` (its words joined). */
export declare function reentryText(basename: string, args: readonly string[]): string | undefined;