import { z } from 'zod'; /** * The directory named workspaces live under, relative to the root. * * `workspaces` is a reserved agent handle for exactly this reason: projected * agent directories sit at `//`, so an agent allowed to call * itself `workspaces` would collide with this. */ export declare const WORKSPACES_DIRECTORY = "workspaces"; /** * The workspace whose home is the root itself. * * The root stays a complete Synomem home rather than becoming a container, so * an existing install keeps its database exactly where it is and needs no * migration. Named workspaces are added alongside it. */ export declare const DEFAULT_WORKSPACE = "default"; /** Same shape as an agent handle: a name somebody types, and a directory name. */ export declare const workspaceNameSchema: z.ZodString; export interface LocalWorkspace { name: string; home: string; /** False until `init` or the first write has created the store. */ initialized: boolean; } /** * Where a named local workspace lives. * * The name is validated rather than trusted: it becomes a directory, so a value * containing a separator or `..` would escape the root. */ export declare function localWorkspaceHome(name: string, explicitRoot?: string): string; /** * The local workspaces on this machine, discovered from disk. * * Read from the filesystem rather than a registry file, so a workspace cannot * be listed and then turn out not to exist — and a directory copied in by hand * is found without having to be registered. */ export declare function listLocalWorkspaces(explicitRoot?: string): LocalWorkspace[]; //# sourceMappingURL=workspaces.d.ts.map