UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

14 lines (13 loc) • 1.06 kB
import type { ExecutionEnv } from "../../internal/harness.js"; import type { ExecutionEnvExecOptions, ReadFloor } from "../../internal/harness-types.js"; import type { MountedModelShell } from "../../core/model-shell.js"; export { backgroundLifecycleOf, mountedModelShellOf, startedShellDeclaration, type MountedModelShell } from "../../core/model-shell.js"; /** The one result a background command gets where none can run here (`BASH_BACKGROUND_UNAVAILABLE`, a module constant). */ export declare function bashBackgroundUnavailable(): { content: string; isError: true; }; /** The foreground start for model text, with the call's byte floor (`readFloor`, a parameter every caller gives — `undefined` when the * call carries none — written into the start's options here, where the start is made): the reading's `exec`, called on the member it * was read from. */ export declare function modelShellExec(reading: MountedModelShell, command: string, readFloor: ReadFloor | undefined, options: ExecutionEnvExecOptions): ReturnType<ExecutionEnv["exec"]>;