nomadro/packages/sdk/src/tools.ts
Eric ffa456afdf Ship social join profile + SeaweedFS avatars, notify/coffee, and .com audience stack.
Pay-then-profile join desk with live card, S3 upload fallback, hydration-safe drafts; document on test9 README.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-04 02:25:05 +08:00

38 lines
897 B
TypeScript

/**
* 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<string, unknown>;
};
export const NOMADRO_TOOLS = toolsJson as NomadroToolDef[];
export function toolByName(name: string): NomadroToolDef | undefined {
return NOMADRO_TOOLS.find((t) => t.name === name);
}