/** * Validation for a resource name that is about to become a file under * `resources///.json`. Shared by every path that mints a * local resource (`solution resources add --source local`, `agent memory * add` inside a solution), so a name is checked the same way before any * write regardless of which tool asked. */ /** Orchestrator's most permissive resource-name limit is 256 chars (Asset). */ export declare const MAX_RESOURCE_NAME_LENGTH = 256; export type ResourceNameValidation = { ok: true; } | { ok: false; message: string; instructions: string; }; /** * Check a resource name for length and unsafe characters. `optionName` is * the CLI flag the name came from, so the message points at the right one * (`--name` for `resources add`, `--memory-space` for `agent memory add`). */ export declare function validateResourceName(name: string, options?: { optionName?: string; }): ResourceNameValidation; /** Throwing form for callers that already run inside a `catchError` block. */ export declare function assertValidResourceName(name: string, options?: { optionName?: string; }): void;