UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

22 lines • 1.14 kB
import type { Mem0Accessor } from '../../accessor/mem0.ts'; import { FileStat, type PathSpec } from '../../types.ts'; /** * A memory's file as its listing names it, carrying the memory. * * The listing carries every payload, so the row holds the memory a read * renders and the read costs no call of its own. Mirrors `memory_row` in * `mirage/core/mem0/readdir.py`. */ export declare function memoryRow(memory: Record<string, unknown>): FileStat; export declare const readdir: import("../hierarchy/probe.ts").ReaddirFn<Mem0Accessor>; /** * The memory a path names, as the scoped listing holds it. * * Which memories exist is a function of the configured entity filter, and the * listing is the one place that filter is applied: fetching by the id in the * file name served a memory of any user, agent or run the API key reaches, * while `ls` hid it. The mount hands the row the listing holds, which carries * the memory. Mirrors `listed_memory` in `mirage/core/mem0/readdir.py`. */ export declare function listedMemory(path: PathSpec, entry: FileStat | null): Record<string, unknown>; //# sourceMappingURL=readdir.d.ts.map