/** * `WorkspaceFs` — minimal `readFile` / `writeFile` adapter over a * workspace directory. Mirrors the `McpWorkspace.filesystem` shape * used by `@acme/mcp` so the daemon can be plugged in as the * workspace backend for a Acme MCP server (via its * `loadGuildWorkspace` injection point) without re-shimming. * * All paths are workspace-relative. Absolute paths are rejected to * keep the surface predictable when the daemon binds to a public * port. */ interface WorkspaceFs { readFile(path: string): Promise; writeFile(path: string, content: string | Uint8Array): Promise; exists(path: string): Promise; } interface CreateWorkspaceFsOptions { /** Absolute path to the workspace root. */ workspace: string; } declare class WorkspacePathError extends Error { constructor(message: string); } declare function createWorkspaceFs(opts: CreateWorkspaceFsOptions): WorkspaceFs; export { type CreateWorkspaceFsOptions, type WorkspaceFs, WorkspacePathError, createWorkspaceFs };