/** * Read-only workspace file plane — the surface a user points at. * * Two GETs and nothing else: `tree` lists a directory under the project's * registered workspace roots, `file` returns one file's text plus the head * revision it was read at, so the browser can build the `file` variant of * the ask reference schema (path + line range + headRev) and hand it to a * turn. There is deliberately NO write route here: an edit is something the * agent does in the workspace, never something this plane does on its behalf. * * Every path the caller supplies goes through `resolveInsideWorkspace` — the * one containment guard — which resolves symlinks BEFORE deciding whether the * result is inside a root. Both routes are cheap to abuse otherwise, so both * are also capped: bytes on the file route, depth and entry count on the tree. */ import { Hono } from "hono"; export declare const workspaceRoute: Hono; /** Ceiling on the bytes one file response may carry. Past it the response is * the first slice plus `truncated: true` — never the whole file, and never a * stream this plane would have to keep open. */ export declare const WORKSPACE_FILE_MAX_BYTES: number; /** Ceiling on entries in one tree response, across every level walked. */ export declare const WORKSPACE_TREE_MAX_ENTRIES = 500; /** Ceiling on how many levels below the requested directory a walk descends. * A larger `?depth=` is clamped to this, never honoured. */ export declare const WORKSPACE_TREE_MAX_DEPTH = 4; //# sourceMappingURL=workspace.d.ts.map