@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 842 B
TypeScript
import type { HistoryAccessor } from '../../accessor/history.ts';
import type { PathSpec } from '../../types.ts';
export declare const VIEW_NAME = ".bash_history";
export declare const VIEW_KEYS: string[];
/** Render the GNU histfile from the recorder's command events.
*
* A session reads its own commands only, as `history` does: another
* session's lines are its own business. With no session bound every
* session's commands are shown; `ws.vfs` reads as the default session, and
* the host reads them all through `ws.history()`. A session's own view
* names the reader; without one, on the fallback storage every live
* session must be the same one, so a concurrent session's commands never
* show. */
export declare function read(accessor: HistoryAccessor, path: PathSpec): Promise<Uint8Array>;
//# sourceMappingURL=read.d.ts.map