refactor: aiFacet server-side