UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

15 lines • 839 B
import type { SessionAccess } from '../../../view/types.ts'; import { PathSpec } from '../../../types.ts'; import type { MountRegistry } from '../../mount/registry.ts'; /** * Build the PathSpec for a word typed relative to cwd. * * The typed word and the cwd it was typed under are two halves of one * path: `virtual` resolves the pair to an absolute path, `rawPath` * keeps the typed spelling for display, and `dotted` the spelling a walk * proves when the word steps through a name with `.` or `..`. Glob chars * in the word make a pattern spec (unresolved), its matches respelled from * the walk; words whose resolved path has no mount stay plain text. */ export declare function relativeSpec(word: string, registry: MountRegistry, cwd: string, access?: SessionAccess): string | PathSpec; //# sourceMappingURL=relative.d.ts.map