UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

23 lines • 1.25 kB
import { CommandSpec } from '../../commands/spec/types.ts'; import type { UsageStyle } from '../../commands/spec/types.ts'; import type { MountRegistry } from '../mount/registry.ts'; import type { SessionState } from '../session/session.ts'; /** * Describe the current namespace without enumerating backend data: each * path, its layout, and the Unix commands it supports. */ export declare function vfsMd(registry: MountRegistry, session: SessionState): string; /** * The help pages of one CLI node and its descendants the profile allows. A * node gets a page when the profile allows it or leads to a descendant it * allows, so a group's own options stay documented; a page lists only the * children leading to an allowed one. A leaf counts a longer form its allow * list names (`gws gmail read --id`). */ export declare function cliPages(head: string, node: CommandSpec, style: UsageStyle, session: SessionState, registry: MountRegistry, path?: readonly string[]): string[]; /** * Render the skill: the registered CLIs the session's profile lets it run, * from their specs. Mirrors Python's `skill_md`. */ export declare function skillMd(registry: MountRegistry, session: SessionState): string; //# sourceMappingURL=render.d.ts.map