@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
25 lines • 2.12 kB
TypeScript
import { WandbAccessor } from '../../accessor/wandb.ts';
import { WandbConfig } from '../../core/wandb/config.ts';
import { type ByteSource } from '../../io/types.ts';
import type { FileStat, PathSpec } from '../../types.ts';
import { type DirListing } from '../../types.ts';
import { BaseVFS } from '../base.ts';
import type { RedactedSchema } from '../secrets.ts';
import type { ConfigState, Handed } from '../types.ts';
export declare const VFS_MD = "```text\n{prefix}\n <entity>/\n <project>/\n <run-id>/\n run.json\n config.json\n summary.json\n history.jsonl\n files/\n```\n\n- Read only. Only configured entities are visible. Run IDs are stable;\n display names may repeat.\n- `run.json` holds identity, creator, sweep/group/job, tags, timestamps,\n notes, system metrics, history keys and count, and file count. Its\n `user` contains the creator's id, name, username and email, when\n available; its `read_only` is W&B's permission, not the mount mode.\n Missing run metadata is `null`.\n- `history.jsonl` scans unsampled history in original order, preserving\n missing metrics and `_step`. Logged training-step keys are independent\n of `_step`. History reads may be large; use `head` to stream a prefix.\n- `summary.json` metrics are stored values, not history maxima.\n- `files/` keeps run-relative paths; `files/wandb-metadata.json`, when\n present, describes the machine and runtime environment.\n- Listings and reads are lazy.";
export declare class WandbVFS extends BaseVFS {
readonly handed: {
readonly readdir: readonly ["index"];
readonly stat: readonly ["entry"];
};
readonly name: string;
vfsMd: string;
readonly config: WandbConfig;
readonly accessor: WandbAccessor;
constructor(config: WandbConfig);
readdir(path: PathSpec, handed?: Handed): Promise<FileStat[] | DirListing>;
read(path: PathSpec): Promise<ByteSource>;
stat(path: PathSpec, handed?: Handed): Promise<FileStat>;
getState(): Promise<ConfigState<RedactedSchema<typeof WandbConfig>>>;
}
//# sourceMappingURL=wandb.d.ts.map