refactor(api): extract assistant vacation entitlement slice

This commit is contained in:
2026-03-30 23:09:32 +02:00
parent 45c25b17c1
commit bcfb18393e
3 changed files with 515 additions and 367 deletions
+2 -1
View File
@@ -46,12 +46,13 @@
- the import/export and staged Dispo assistant helpers now live in their own domain module, keeping file-bound export/import and batch-staging orchestration out of the monolithic assistant router without changing the assistant contract
- the remaining estimate search, planning lookup, self-service timeline read, and navigation assistant helpers now live in their own domain module, keeping another mixed read-only cluster out of the monolithic assistant router without changing the assistant contract
- the country listing and country detail assistant helpers now live in their own domain module, keeping the remaining geo/readmodel lookups out of the monolithic assistant router without changing the assistant contract
- the remaining vacation workflow and entitlement assistant helpers now live in their own domain module, leaving `packages/api/src/router/assistant-tools.ts` as an aggregator/composition layer instead of the last mixed monolithic execution block
## Next Up
Pin the next structural cleanup on the API side:
continue splitting `packages/api/src/router/assistant-tools.ts` into domain-oriented tool modules without changing the public tool contract.
The next clean slice should stay adjacent to the extracted domains and target one cohesive leftover block such as the remaining workflow helpers or other small assistant clusters still living in the monolithic router.
That extraction work is now effectively complete for the current assistant-tool scope; the next structural cleanup should target oversized source routers or shared helper boundaries rather than another inline assistant-tool cluster.
## Remaining Major Themes