/** * Shared tool descriptors — SoT JSON: packages/sdk/tools.json * SDK / OpenAPI / MCP / skills must stay aligned with that file. */ import toolsJson from "../tools.json"; export const PUBLIC_API_PREFIX = "/api/public/v1" as const; export const PUBLIC_API_VERSION = "1.0.0" as const; export type NomadroToolName = | "health" | "getMeta" | "getConfig" | "listMapCities" | "searchCities" | "listMeetups" | "openMeetup" | "listGigs" | "applyGig" | "joinSocial" | "checkVip" | "listNavLinks" | "listSocialRoutes"; export type NomadroToolDef = { name: NomadroToolName; description: string; method: "GET" | "POST"; path: string; inputSchema: Record; }; export const NOMADRO_TOOLS = toolsJson as NomadroToolDef[]; export function toolByName(name: string): NomadroToolDef | undefined { return NOMADRO_TOOLS.find((t) => t.name === name); }