UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

20 lines • 1.83 kB
import type { RunSingle, DispatchFn } from '../../commands/builtin/generic/crossmount/types.ts'; import type { FindExpr } from '../../rs/find.ts'; import type { FlagValue } from '../../commands/spec/types.ts'; import { type ByteSource, IOResult } from '../../io/types.ts'; import type { FollowOperands, SessionView } from '../../view/types.ts'; import type { PathSpec } from '../../types.ts'; import type { MountEntry } from '../mount/mount.ts'; import { type MountRegistry } from '../mount/registry.ts'; import { ExecutionNode } from '../types.ts'; import { type Files } from '../files.ts'; export declare function shouldFanOut(cmdName: string, paths: readonly PathSpec[], words: readonly (string | PathSpec)[], cwd: string, registry: MountRegistry): boolean; /** * Compose a traversal over the mounts inside its operands. Each mount's own * command answers for its part: find and du from every mount's structured * rows and measurements, a search from its owned scopes. No output is * inspected to recover paths or repair depth and totals. */ export declare function fanOutTraversal(cmdName: string, paths: readonly PathSpec[], texts: readonly string[], flagKwargs: Record<string, FlagValue>, registry: MountRegistry, primaryMount: MountEntry, cwd: string, cmdStr: string, stdin: ByteSource | null, vfs?: Files, sessionView?: SessionView, signal?: AbortSignal, dispatch?: DispatchFn, native?: RunSingle, follow?: FollowOperands, find?: FindExpr): Promise<[ByteSource | null, IOResult, ExecutionNode]>; export declare function runWithFanout(runSingle: RunSingle, registry: MountRegistry, cwd: string, vfs: Files | undefined, sessionView?: SessionView, signal?: AbortSignal, dispatch?: DispatchFn, follow?: FollowOperands, find?: FindExpr, words?: readonly (string | PathSpec)[]): RunSingle; //# sourceMappingURL=fanout.d.ts.map