Several services
Give input a folder of documents (named after their files) or { name: fileOrUrl }. Operations and components found in one service are kept; ones found in several are merged when identical and need an owner when they differ.
- Run in a terminal once to answer the questions — the answers (
mainservice,owners) are written todecisionsFileand commit with the code. --checkand CI never ask; they fail listing what is still undecided.- Operations carry
x-service, andservices.tsexportsAPI_SERVICE_BASE_URLSfor the per-service base URL. By default each is read from the environment, in a variable named afterbaseUrlEnvand the service (VITE_API_URL_FILE_STOREforfile-store);runtime.services.baseUrlsgives literal URLs instead, andruntime.services.fnhands the lookup to a function of your own (the only way the generated code imports anything from your project, and only when you name it). Services matter only when there are several; with one, its operations are written like any others. With@mrzr/api-clientthat map is handed to itsservicesplugin and a call isapiClient.service(name); axios getsbaseURL,fetchand Angular the URL in front of the route. - The run prints what was merged, which owner was chosen, which operations use a component owned by another service, and which saved choices no longer apply.
--verboselists the identical duplicates a merge folded together.