UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

21 lines • 1.27 kB
import type { Accessor } from '../../../../accessor/base.ts'; import { IOResult } from '../../../../io/types.ts'; import { YieldBudget } from '../../../../io/yield_budget.ts'; import { type OpenStream } from '../../../../rs/stream.ts'; import { type PathSpec } from '../../../../types.ts'; import { type CommandFnResult, type Context } from '../../../config.ts'; /** Collect diagnostics before yielding output and drain pending work. */ export declare function drained(stream: OpenStream, output: Uint8Array, io: IOResult, budget: YieldBudget, errors: Uint8Array[]): AsyncGenerator<Uint8Array>; /** * One operand bc runs ahead of standard input, or what it says when it * cannot read it. */ export declare function readFile(path: PathSpec, ctx: Context): Promise<[Uint8Array, string | null]>; /** * bc's file operands with their globs expanded, as the shell would have; a * word that matches nothing stays as typed, and bc cannot open it. */ export declare function expanded(paths: PathSpec[], ctx: Context): Promise<PathSpec[]>; export declare function bc(_accessor: Accessor, paths: PathSpec[], texts: string[], ctx: Context): Promise<CommandFnResult>; export declare const GENERAL_BC: import("../../../config.ts").Command[]; //# sourceMappingURL=command.d.ts.map