UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

17 lines • 1.06 kB
import type { PathSpec, ReadStreamFn } from '../../../types.ts'; import type { CommandFnResult, Context } from '../../config.ts'; /** Whether an operand is a `var=value` assignment, not a file: POSIX makes * it one when a name comes before its `=`. Mirrors Python's `is_assignment`. */ export declare function isAssignment(operand: string): boolean; /** The operand whose mount runs the program: its first file. Mirrors * Python's `home_operand`. */ export declare function homeOperand(scopes: readonly PathSpec[]): PathSpec | null; /** * Whether the mount awk runs on serves an operand. A line whose operands span * mounts runs awk once, on its first file's mount; an operand another mount * serves is read through the dispatcher. Outside a workspace (no name plane) * every operand is the mount's own. */ export declare function servedHere(ctx: Context, path: PathSpec): boolean; export declare function awkGeneric(paths: PathSpec[], texts: string[], ctx: Context, stream: ReadStreamFn): Promise<CommandFnResult>; //# sourceMappingURL=awk.d.ts.map