UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

14 lines (13 loc) • 990 B
import type { ShellReadSegment } from "./shell-read-plan.js"; /** * The starting points of the `find` planned at `segments[at]`, where its output reaches a removal in the next statement * ({@link feedsRemover}, any planned segment of it). `raws`: the starting points' raw words; `implicit`: the walk may start where * the program does (`producer.programStart`). Undefined where the next statement removes nothing it reads, and where the producer * does not run `find`, sends its standard output elsewhere (a redirection on descriptor 1: the one written, or the default of an * output operator — an input operator's is 0), or reads its starting points from a file. The starting points are the ones * `find`'s reading names ({@link findActionsOf}); where it names none, where the program starts. */ export declare function pipedRemovalStarts(segments: readonly ShellReadSegment[], at: number): { readonly raws: ReadonlySet<string>; readonly implicit: boolean; } | undefined;