sonamu-frontend
Installation
SKILL.md
Sonamu Frontend
services.generated.ts is the frontend boundary of each decorated Model or Frame method. Its
request functions, query helpers, mutation hooks, parameter types, and return types are generated
from the endpoint decorator; inspect that generated namespace instead of assuming every Service has
the scaffolded CRUD names.
Do not edit services.generated.ts. After changing an API-side *.model.ts, *.frame.ts,
*.types.ts, or *.functions.ts, run pnpm sonamu sync from the API package root. Sync regenerates
the client surface for Model and Frame changes and copies types and shared functions to each target.
Standard generated surface
The scaffolded CRUD Model generates a namespace shaped like this when its decorators include the matching clients:
await ProjectService.getProject("A", projectId);
await ProjectService.getProjects("P", { page: 1, num: 20 });