UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

26 lines • 1.15 kB
import { HistoryAccessor } from '../../accessor/history.ts'; import type { Observer } from '../../observe/observer.ts'; import type { FileStat, PathSpec } from '../../types.ts'; import { BaseVFS } from '../base.ts'; import { type VFSStateBase } from '../types.ts'; export declare const HISTORY_PREFIX = "/.bash_history"; /** * Read-only view VFS backing the /.bash_history mount. Renders GNU * views from the workspace's hidden recorder on every read; holds no * storage of its own. */ export declare class HistoryViewVFS extends BaseVFS { readonly name: "history"; readonly cachesReads = false; readonly sizesAlwaysKnown = true; readonly accessor: HistoryAccessor; constructor(observer: Observer, session?: string | null); /** The view one session reads: its own commands, whatever else is bound. */ forSession(session: string): HistoryViewVFS; readdir(path: PathSpec): Promise<FileStat[]>; read(path: PathSpec): Promise<Uint8Array>; stat(path: PathSpec): Promise<FileStat>; /** The view owns nothing, so its type alone rebuilds it. */ getState(): VFSStateBase; } //# sourceMappingURL=history.d.ts.map