sails-idl-client
Installation
SKILL.md
Sails IDL Client
Goal
Keep Sails builders on the typed pipeline for IDL generation, Rust client generation, and integration wiring.
If a released contract evolves or a new deployed contract version is introduced, keep the generated-client path compatible with the approved cutover plan instead of assuming one regenerated client can replace all consumers immediately.
Default JS Or TS Path
- Treat the program
.idlas the source of truth for the interface. - Generate the normal client with
sails-jsorsails-js-cliso the workspace getslib.tsand typed program or service classes instead of hand-written payload code. - Pair the generated client with
GearApifrom@gear-js/apifor node connectivity. - Use
parseIdlfrom thesails-jsandsails-js-parserpath only when you explicitly need dynamic runtime control rather than pre-generated files.