@aglyn/plugins-ai 1.0.0-beta.231 → 1.0.0-beta.232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/package.json +17 -17
  2. package/src/lib/activity/ai-activity-actions.js +8 -4
  3. package/src/lib/activity/ai-activity-actions.js.map +1 -1
  4. package/src/lib/components/ai-job-follow.component.js +1 -0
  5. package/src/lib/components/ai-job-follow.component.js.map +1 -1
  6. package/src/lib/components/ai-job-links.js +13 -0
  7. package/src/lib/components/ai-job-links.js.map +1 -1
  8. package/src/lib/components/ai-jobs-list-page.component.js +1 -0
  9. package/src/lib/components/ai-jobs-list-page.component.js.map +1 -1
  10. package/src/lib/components/ai-media-create.component.d.ts +20 -7
  11. package/src/lib/components/ai-media-create.component.js +107 -55
  12. package/src/lib/components/ai-media-create.component.js.map +1 -1
  13. package/src/lib/components/ai-seo-fields-card.component.js +1 -0
  14. package/src/lib/components/ai-seo-fields-card.component.js.map +1 -1
  15. package/src/lib/components/ai-site-memory-card.component.d.ts +32 -0
  16. package/src/lib/components/ai-site-memory-card.component.js +187 -0
  17. package/src/lib/components/ai-site-memory-card.component.js.map +1 -0
  18. package/src/lib/components/ai-site-start-card.component.js +80 -77
  19. package/src/lib/components/ai-site-start-card.component.js.map +1 -1
  20. package/src/lib/components/ai-theme-proposal-card.component.js +4 -0
  21. package/src/lib/components/ai-theme-proposal-card.component.js.map +1 -1
  22. package/src/lib/components/ai-usage-strip.component.js +1 -0
  23. package/src/lib/components/ai-usage-strip.component.js.map +1 -1
  24. package/src/lib/components/assist-panel.component.d.ts +10 -0
  25. package/src/lib/components/assist-panel.component.js +119 -9
  26. package/src/lib/components/assist-panel.component.js.map +1 -1
  27. package/src/lib/components/assist-signals-page.component.js +2 -0
  28. package/src/lib/components/assist-signals-page.component.js.map +1 -1
  29. package/src/lib/components/billing-ai-allotments.component.js +3 -0
  30. package/src/lib/components/billing-ai-allotments.component.js.map +1 -1
  31. package/src/lib/components/billing-ai-top-users.component.js +1 -0
  32. package/src/lib/components/billing-ai-top-users.component.js.map +1 -1
  33. package/src/lib/components/billing-assist-overage-card.component.js +2 -0
  34. package/src/lib/components/billing-assist-overage-card.component.js.map +1 -1
  35. package/src/lib/components/member-ai-usage-card.component.js +10 -0
  36. package/src/lib/components/member-ai-usage-card.component.js.map +1 -1
  37. package/src/lib/components/staff-org-ai-card.component.js +1 -0
  38. package/src/lib/components/staff-org-ai-card.component.js.map +1 -1
  39. package/src/lib/components/staff-org-ai-conversations.component.d.ts +23 -0
  40. package/src/lib/components/staff-org-ai-conversations.component.js +346 -0
  41. package/src/lib/components/staff-org-ai-conversations.component.js.map +1 -0
  42. package/src/lib/jobs/ai-build-capabilities.d.ts +13 -1
  43. package/src/lib/jobs/ai-build-capabilities.js +101 -7
  44. package/src/lib/jobs/ai-build-capabilities.js.map +1 -1
  45. package/src/lib/jobs/ai-business-profile-prefill.d.ts +29 -0
  46. package/src/lib/jobs/ai-business-profile-prefill.js +85 -0
  47. package/src/lib/jobs/ai-business-profile-prefill.js.map +1 -0
  48. package/src/lib/jobs/ai-job-build-step.js +3 -1
  49. package/src/lib/jobs/ai-job-build-step.js.map +1 -1
  50. package/src/lib/jobs/ai-job-edit-step.d.ts +225 -0
  51. package/src/lib/jobs/ai-job-edit-step.js +631 -0
  52. package/src/lib/jobs/ai-job-edit-step.js.map +1 -0
  53. package/src/lib/jobs/ai-job-insight-step.js +21 -4
  54. package/src/lib/jobs/ai-job-insight-step.js.map +1 -1
  55. package/src/lib/jobs/ai-job-layout-language.d.ts +8 -3
  56. package/src/lib/jobs/ai-job-layout-language.js +8 -2
  57. package/src/lib/jobs/ai-job-layout-language.js.map +1 -1
  58. package/src/lib/jobs/ai-job-layout-step.js +7 -6
  59. package/src/lib/jobs/ai-job-layout-step.js.map +1 -1
  60. package/src/lib/jobs/ai-job-logic-step.d.ts +20 -0
  61. package/src/lib/jobs/ai-job-logic-step.js +87 -6
  62. package/src/lib/jobs/ai-job-logic-step.js.map +1 -1
  63. package/src/lib/jobs/ai-job-page-language.d.ts +52 -7
  64. package/src/lib/jobs/ai-job-page-language.js +72 -9
  65. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  66. package/src/lib/jobs/ai-job-page-step.js +12 -2
  67. package/src/lib/jobs/ai-job-page-step.js.map +1 -1
  68. package/src/lib/jobs/ai-job-plan-step.d.ts +19 -5
  69. package/src/lib/jobs/ai-job-plan-step.js +54 -20
  70. package/src/lib/jobs/ai-job-plan-step.js.map +1 -1
  71. package/src/lib/jobs/ai-job-site-content.d.ts +163 -0
  72. package/src/lib/jobs/ai-job-site-content.js +443 -0
  73. package/src/lib/jobs/ai-job-site-content.js.map +1 -0
  74. package/src/lib/jobs/ai-job-site-look.d.ts +112 -0
  75. package/src/lib/jobs/ai-job-site-look.js +322 -0
  76. package/src/lib/jobs/ai-job-site-look.js.map +1 -0
  77. package/src/lib/jobs/ai-job-site-step.d.ts +26 -5
  78. package/src/lib/jobs/ai-job-site-step.js +163 -24
  79. package/src/lib/jobs/ai-job-site-step.js.map +1 -1
  80. package/src/lib/jobs/ai-jobs-notify.d.ts +6 -1
  81. package/src/lib/jobs/ai-jobs-notify.js +15 -3
  82. package/src/lib/jobs/ai-jobs-notify.js.map +1 -1
  83. package/src/lib/layout-language/ai-layout-compiler.d.ts +9 -0
  84. package/src/lib/layout-language/ai-layout-compiler.js +120 -33
  85. package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
  86. package/src/lib/layout-language/ai-layout-frame.js +5 -4
  87. package/src/lib/layout-language/ai-layout-frame.js.map +1 -1
  88. package/src/lib/layout-language/ai-layout-language.d.ts +12 -5
  89. package/src/lib/layout-language/ai-layout-language.js +92 -9
  90. package/src/lib/layout-language/ai-layout-language.js.map +1 -1
  91. package/src/lib/layout-language/ai-layout-pictures.d.ts +144 -0
  92. package/src/lib/layout-language/ai-layout-pictures.js +214 -0
  93. package/src/lib/layout-language/ai-layout-pictures.js.map +1 -0
  94. package/src/lib/layout-language/ai-layout-store.d.ts +2 -0
  95. package/src/lib/layout-language/ai-layout-store.js +7 -1
  96. package/src/lib/layout-language/ai-layout-store.js.map +1 -1
  97. package/src/lib/model/ai-build-progress.js +4 -1
  98. package/src/lib/model/ai-build-progress.js.map +1 -1
  99. package/src/lib/model/ai-edit-job.d.ts +109 -0
  100. package/src/lib/model/ai-edit-job.js +157 -0
  101. package/src/lib/model/ai-edit-job.js.map +1 -0
  102. package/src/lib/model/ai-job-activity.js +1 -0
  103. package/src/lib/model/ai-job-activity.js.map +1 -1
  104. package/src/lib/model/ai-jobs.types.d.ts +3 -1
  105. package/src/lib/model/ai-jobs.types.js.map +1 -1
  106. package/src/lib/model/ai-logic-job.d.ts +18 -1
  107. package/src/lib/model/ai-logic-job.js +24 -3
  108. package/src/lib/model/ai-logic-job.js.map +1 -1
  109. package/src/lib/model/ai-media-credits.d.ts +8 -4
  110. package/src/lib/model/ai-media-credits.js +11 -4
  111. package/src/lib/model/ai-media-credits.js.map +1 -1
  112. package/src/lib/model/ai-media-kinds.d.ts +68 -0
  113. package/src/lib/model/ai-media-kinds.js +98 -0
  114. package/src/lib/model/ai-media-kinds.js.map +1 -0
  115. package/src/lib/model/ai-site-build-progress.d.ts +4 -0
  116. package/src/lib/model/ai-site-build-progress.js +28 -11
  117. package/src/lib/model/ai-site-build-progress.js.map +1 -1
  118. package/src/lib/model/ai-site-context.d.ts +111 -0
  119. package/src/lib/model/ai-site-context.js +222 -0
  120. package/src/lib/model/ai-site-context.js.map +1 -0
  121. package/src/lib/model/ai-site-job.d.ts +10 -2
  122. package/src/lib/model/ai-site-job.js +12 -5
  123. package/src/lib/model/ai-site-job.js.map +1 -1
  124. package/src/lib/model/ai-site-kinds.d.ts +164 -0
  125. package/src/lib/model/ai-site-kinds.js +1942 -0
  126. package/src/lib/model/ai-site-kinds.js.map +1 -0
  127. package/src/lib/model/ai-site-look.d.ts +150 -0
  128. package/src/lib/model/ai-site-look.js +1236 -0
  129. package/src/lib/model/ai-site-look.js.map +1 -0
  130. package/src/lib/model/ai-site-memory.d.ts +80 -0
  131. package/src/lib/model/ai-site-memory.js +171 -0
  132. package/src/lib/model/ai-site-memory.js.map +1 -0
  133. package/src/lib/model/ai-site-start.d.ts +10 -1
  134. package/src/lib/model/ai-site-start.js +16 -2
  135. package/src/lib/model/ai-site-start.js.map +1 -1
  136. package/src/lib/model/assist-follow-up.d.ts +92 -0
  137. package/src/lib/model/assist-follow-up.js +128 -0
  138. package/src/lib/model/assist-follow-up.js.map +1 -0
  139. package/src/lib/plugin-config.js +2 -0
  140. package/src/lib/plugin-config.js.map +1 -1
  141. package/src/lib/plugin.js +20 -1
  142. package/src/lib/plugin.js.map +1 -1
  143. package/src/lib/providers/anthropic.d.ts +9 -1
  144. package/src/lib/providers/anthropic.js +143 -9
  145. package/src/lib/providers/anthropic.js.map +1 -1
  146. package/src/lib/providers/catalog.d.ts +37 -7
  147. package/src/lib/providers/catalog.js +103 -11
  148. package/src/lib/providers/catalog.js.map +1 -1
  149. package/src/lib/providers/contract.d.ts +29 -0
  150. package/src/lib/providers/contract.js.map +1 -1
  151. package/src/lib/providers/image-contract.d.ts +22 -1
  152. package/src/lib/providers/image-contract.js +40 -1
  153. package/src/lib/providers/image-contract.js.map +1 -1
  154. package/src/lib/providers/image-endpoints.d.ts +24 -0
  155. package/src/lib/providers/image-endpoints.js +28 -0
  156. package/src/lib/providers/image-endpoints.js.map +1 -0
  157. package/src/lib/providers/model-choice.js +23 -2
  158. package/src/lib/providers/model-choice.js.map +1 -1
  159. package/src/lib/providers/routing.js +18 -0
  160. package/src/lib/providers/routing.js.map +1 -1
  161. package/src/lib/providers/vertex-image-endpoint.d.ts +48 -0
  162. package/src/lib/providers/vertex-image-endpoint.js +80 -0
  163. package/src/lib/providers/vertex-image-endpoint.js.map +1 -0
  164. package/src/lib/providers/vertex-image.d.ts +13 -27
  165. package/src/lib/providers/vertex-image.js +15 -42
  166. package/src/lib/providers/vertex-image.js.map +1 -1
  167. package/src/lib/runtime/ai-blog-post-generation.d.ts +62 -0
  168. package/src/lib/runtime/ai-blog-post-generation.js +89 -0
  169. package/src/lib/runtime/ai-blog-post-generation.js.map +1 -0
  170. package/src/lib/runtime/ai-dev-env.d.ts +53 -0
  171. package/src/lib/runtime/ai-dev-env.js +72 -0
  172. package/src/lib/runtime/ai-dev-env.js.map +1 -0
  173. package/src/lib/runtime/ai-dev-replay.d.ts +116 -0
  174. package/src/lib/runtime/ai-dev-replay.js +313 -0
  175. package/src/lib/runtime/ai-dev-replay.js.map +1 -0
  176. package/src/lib/runtime/ai-doctrine.js +5 -1
  177. package/src/lib/runtime/ai-doctrine.js.map +1 -1
  178. package/src/lib/runtime/ai-eval-live.js +4 -0
  179. package/src/lib/runtime/ai-eval-live.js.map +1 -1
  180. package/src/lib/runtime/ai-eval.d.ts +13 -1
  181. package/src/lib/runtime/ai-eval.js +84 -1
  182. package/src/lib/runtime/ai-eval.js.map +1 -1
  183. package/src/lib/runtime/ai-live-batch.d.ts +45 -0
  184. package/src/lib/runtime/ai-live-batch.js +89 -0
  185. package/src/lib/runtime/ai-live-batch.js.map +1 -0
  186. package/src/lib/runtime/ai-runtime.js +46 -2
  187. package/src/lib/runtime/ai-runtime.js.map +1 -1
  188. package/src/lib/runtime/site-context.d.ts +58 -0
  189. package/src/lib/runtime/site-context.js +127 -0
  190. package/src/lib/runtime/site-context.js.map +1 -0
  191. package/src/lib/server/ai-admin-conversations.d.ts +22 -0
  192. package/src/lib/server/ai-admin-conversations.js +197 -0
  193. package/src/lib/server/ai-admin-conversations.js.map +1 -0
  194. package/src/lib/server/ai-media-image.d.ts +5 -5
  195. package/src/lib/server/ai-media-image.js +25 -11
  196. package/src/lib/server/ai-media-image.js.map +1 -1
  197. package/src/lib/server/ai-media-raster-prompt.d.ts +34 -0
  198. package/src/lib/server/ai-media-raster-prompt.js +53 -0
  199. package/src/lib/server/ai-media-raster-prompt.js.map +1 -0
  200. package/src/lib/server/assist-chat.d.ts +11 -0
  201. package/src/lib/server/assist-chat.js +57 -18
  202. package/src/lib/server/assist-chat.js.map +1 -1
  203. package/src/lib/server/assist-edit-applied.js +16 -3
  204. package/src/lib/server/assist-edit-applied.js.map +1 -1
  205. package/src/lib/server/assist-view-context.d.ts +19 -1
  206. package/src/lib/server/assist-view-context.js +38 -1
  207. package/src/lib/server/assist-view-context.js.map +1 -1
  208. package/src/lib/server.js +10 -0
  209. package/src/lib/server.js.map +1 -1
  210. package/src/lib/subprocessors.js +17 -1
  211. package/src/lib/subprocessors.js.map +1 -1
  212. package/src/lib/tools/ai-blog-post-tool.d.ts +60 -0
  213. package/src/lib/tools/ai-blog-post-tool.js +175 -0
  214. package/src/lib/tools/ai-blog-post-tool.js.map +1 -0
  215. package/src/lib/usage/assist-usage.d.ts +3 -0
  216. package/src/lib/usage/assist-usage.js +4 -2
  217. package/src/lib/usage/assist-usage.js.map +1 -1
  218. package/src/lib/usage/staff-org-ai-conversations.d.ts +103 -0
  219. package/src/lib/usage/staff-org-ai-conversations.js +152 -0
  220. package/src/lib/usage/staff-org-ai-conversations.js.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../../libs/plugins/ai/src/lib/model/ai-site-kinds.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * The kinds of website a guided start offers (AGL-3660), and the style\n * direction each one sets.\n *\n * A kind is NOT a template. It is a direction in two halves:\n *\n * - a LOOK FAMILY the code applies — how saturated the palette is, the hues\n * that suit the kind, the page grounds, the font pairings, the corners,\n * the button style, the heading scale and the density — inside which the\n * model picks this business's own look and a per-job seed varies it\n * (`ai-site-look.ts`), so two sites of one kind never share a theme;\n * - GUIDANCE the model reads: how the kind's pages are usually arranged\n * (band rhythm, image share, density) and which pages it usually has.\n *\n * Every page a kind suggests is one the site job builds itself out of the\n * layout language: sections, cards, images, a form. On a paid plan the site\n * job also writes a blog's first posts into a content collection and a\n * store's first products as unpriced drafts (AGL-3676,\n * `jobs/ai-job-site-content.ts`), and the pages are told their titles; on\n * the Free taste it writes neither. No event records are created, and no\n * guidance here promises posts, products or events, since the plan reads it\n * on every plan (the owner adds more from the Content, Commerce and Events\n * sections afterward).\n *\n * Pure data and two small readers, safe for the console to import: no\n * theme compiler, no network.\n */\n\n/** A font pairing the look may choose: a heading family over a body family. */\nexport interface AiSiteFontPairing {\n id: string\n /** What the pairing reads like, as the model is told. */\n feel: string\n heading: { family: string; category: 'sans-serif' | 'serif'; weight: number; sub: number }\n body: { family: string; category: 'sans-serif' | 'serif'; weights: number[] }\n /** Letter spacing the headings carry, in em. */\n tracking?: number\n /** Headings set in capitals: a condensed display face. */\n caps?: boolean\n}\n\n/**\n * The pairings, every family from the Google Fonts catalog the fonts plugin\n * serves (`google-fonts.catalog.json`) and every weight one that family\n * has — `ai-site-look.spec.ts` holds both. The tenant loads them the way it\n * loads the starter theme's family, so nothing here adds a font host.\n */\nexport const AI_SITE_FONT_PAIRINGS: readonly AiSiteFontPairing[] = [\n { id: 'jakarta', feel: 'modern, friendly sans', heading: { family: 'Plus Jakarta Sans', category: 'sans-serif', weight: 800, sub: 700 }, body: { family: 'Plus Jakarta Sans', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.02 },\n { id: 'inter', feel: 'neutral, precise sans', heading: { family: 'Inter', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.025 },\n { id: 'grotesk', feel: 'designer grotesk', heading: { family: 'Space Grotesk', category: 'sans-serif', weight: 600, sub: 600 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.03 },\n { id: 'syne', feel: 'expressive, art-school display', heading: { family: 'Syne', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.02 },\n { id: 'bricolage', feel: 'contemporary, characterful sans', heading: { family: 'Bricolage Grotesque', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'DM Sans', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.025 },\n { id: 'editorial', feel: 'editorial serif over clean sans', heading: { family: 'Playfair Display', category: 'serif', weight: 700, sub: 600 }, body: { family: 'Source Sans 3', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.01 },\n { id: 'fraunces', feel: 'warm, soft serif', heading: { family: 'Fraunces', category: 'serif', weight: 600, sub: 600 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.015 },\n { id: 'instrument', feel: 'elegant, light serif headlines', heading: { family: 'Instrument Serif', category: 'serif', weight: 400, sub: 400 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.01 },\n { id: 'reading', feel: 'reading-first serif, serif body', heading: { family: 'Newsreader', category: 'serif', weight: 600, sub: 600 }, body: { family: 'Source Serif 4', category: 'serif', weights: [400, 600, 700] }, tracking: -0.01 },\n { id: 'garamond', feel: 'refined, classic serif', heading: { family: 'Cormorant Garamond', category: 'serif', weight: 600, sub: 600 }, body: { family: 'Montserrat', category: 'sans-serif', weights: [400, 500, 600, 700] } },\n { id: 'baskerville', feel: 'established, trustworthy serif', heading: { family: 'Libre Baskerville', category: 'serif', weight: 700, sub: 700 }, body: { family: 'Source Sans 3', category: 'sans-serif', weights: [400, 500, 600, 700] } },\n { id: 'merriweather', feel: 'sturdy, readable serif', heading: { family: 'Merriweather', category: 'serif', weight: 700, sub: 700 }, body: { family: 'Lato', category: 'sans-serif', weights: [400, 700] } },\n { id: 'lora', feel: 'gentle, calm serif', heading: { family: 'Lora', category: 'serif', weight: 600, sub: 600 }, body: { family: 'Open Sans', category: 'sans-serif', weights: [400, 500, 600, 700] } },\n { id: 'dmserif', feel: 'polished display serif', heading: { family: 'DM Serif Display', category: 'serif', weight: 400, sub: 400 }, body: { family: 'DM Sans', category: 'sans-serif', weights: [400, 500, 600, 700] } },\n { id: 'oswald', feel: 'bold, condensed, workmanlike', heading: { family: 'Oswald', category: 'sans-serif', weight: 600, sub: 500 }, body: { family: 'Roboto', category: 'sans-serif', weights: [400, 500, 700] }, caps: true, tracking: 0.01 },\n { id: 'archivo', feel: 'heavy, high-impact sans', heading: { family: 'Archivo Black', category: 'sans-serif', weight: 400, sub: 400 }, body: { family: 'Archivo', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.01 },\n { id: 'barlow', feel: 'athletic, condensed sans', heading: { family: 'Barlow Condensed', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'Barlow', category: 'sans-serif', weights: [400, 500, 600, 700] }, caps: true, tracking: 0.01 },\n { id: 'anton', feel: 'loud poster display', heading: { family: 'Anton', category: 'sans-serif', weight: 400, sub: 400 }, body: { family: 'Inter', category: 'sans-serif', weights: [400, 500, 600, 700] }, caps: true, tracking: 0.01 },\n { id: 'nunito', feel: 'rounded, approachable sans', heading: { family: 'Nunito', category: 'sans-serif', weight: 800, sub: 700 }, body: { family: 'Nunito Sans', category: 'sans-serif', weights: [400, 600, 700] } },\n { id: 'quicksand', feel: 'soft, airy rounded sans', heading: { family: 'Quicksand', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'Nunito Sans', category: 'sans-serif', weights: [400, 600, 700] } },\n { id: 'manrope', feel: 'crisp, confident sans', heading: { family: 'Manrope', category: 'sans-serif', weight: 800, sub: 700 }, body: { family: 'Manrope', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.02 },\n { id: 'outfit', feel: 'geometric, upbeat sans', heading: { family: 'Outfit', category: 'sans-serif', weight: 700, sub: 600 }, body: { family: 'Outfit', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.02 },\n { id: 'plex', feel: 'technical, engineered sans', heading: { family: 'IBM Plex Sans', category: 'sans-serif', weight: 600, sub: 600 }, body: { family: 'IBM Plex Sans', category: 'sans-serif', weights: [400, 500, 600, 700] }, tracking: -0.01 },\n]\n\nexport type AiSiteFontPairingId = string\n\n/**\n * The platform's built-in themes a site's look is layered on, by the short\n * name of the themes plugin's preset id (\\`theme-presets.<name>\\`), and\n * \\`starter\\`: the theme a new site is born with (AGL-3497).\n */\nexport const AI_SITE_BASES = [\n 'starter',\n 'material-ui',\n 'bootstrap',\n 'minimal',\n 'material3',\n 'ant-design',\n 'fluent',\n 'carbon',\n 'cupertino',\n] as const\nexport type AiSiteBase = (typeof AI_SITE_BASES)[number]\n\n/** How saturated a kind's palette runs. `neutral` is an ink-and-paper ground with one accent. */\nexport type AiSiteChroma = 'neutral' | 'muted' | 'balanced' | 'vivid'\n/** The page ground the light scheme sits on. */\nexport type AiSiteGround = 'white' | 'warm' | 'cool' | 'tinted'\nexport const AI_SITE_GROUNDS: readonly AiSiteGround[] = ['white', 'warm', 'cool', 'tinted']\n/** Corner rounding, cards and fields. */\nexport type AiSiteCorners = 'sharp' | 'soft' | 'round' | 'pill'\nexport const AI_SITE_CORNERS: readonly AiSiteCorners[] = ['sharp', 'soft', 'round', 'pill']\n/** How buttons are drawn: on the corner radius, as pills, square, in capitals, or with quiet buttons as underlined links. */\nexport type AiSiteButtons = 'rounded' | 'pill' | 'square' | 'caps' | 'link'\n/**\n * How a site's pages alternate their bands: calm (mostly plain, one soft),\n * alternating (plain and soft by turns), or bold (brand and dark bands for\n * its key moments).\n */\nexport type AiSiteRhythm = 'calm' | 'alternating' | 'bold'\nexport const AI_SITE_RHYTHMS: readonly AiSiteRhythm[] = ['calm', 'alternating', 'bold']\n\n/** Spacing: tighter, regular or airier than the platform's unit. */\nexport type AiSiteDensity = 'compact' | 'regular' | 'airy'\n\n/** What the code applies for a kind: the bounds a look is chosen and varied in. */\nexport interface AiSiteLookFamily {\n /** The platform's base themes that suit the kind, best first (`AI_SITE_BASES`). */\n bases: readonly AiSiteBase[]\n chroma: AiSiteChroma\n /** How the header is arranged: the brand at the start with the links after it, or both centered. */\n headerAligns?: readonly ('start' | 'center')[]\n /** The band rhythm its pages lean to (`AI_SITE_RHYTHMS`). */\n rhythms?: readonly AiSiteRhythm[]\n /** Hue ranges in degrees that suit the kind, `[from, to]`, wrapping past 360. */\n hues: ReadonlyArray<readonly [number, number]>\n grounds: readonly AiSiteGround[]\n fonts: readonly AiSiteFontPairingId[]\n corners: readonly AiSiteCorners[]\n buttons: AiSiteButtons\n /** Display and heading sizes against the platform's, 1 = as shipped. */\n headingScale: number\n density: AiSiteDensity\n}\n\nexport interface AiSiteKind {\n /** A persisted identifier: the guided start's answer and the job's `siteKind` input. */\n id: string\n /** The card's title, in customer copy. */\n label: string\n /** One line under it. */\n blurb: string\n /** A word from the icon set the card shows. */\n icon: string\n /** Words in \"what kind of site\" that suggest this kind, matched whole. */\n keywords: readonly string[]\n /** The starter whose shape this kind follows, where one fits (`STARTER_TEMPLATES`). */\n starter: string\n look: AiSiteLookFamily\n /** How its pages are arranged, as every page and the header and footer are told. */\n design: string\n /** The pages it usually has, as the plan is told. */\n pages: string\n}\n\nconst ALL_HUES: ReadonlyArray<readonly [number, number]> = [[0, 360]]\n\n/**\n * The kinds, in the order the guided start shows them. Drawn from the template\n * categories the large site builders offer, merged where two would build the\n * same site: designer and agency are one studio, law and accounting one\n * practice, health and therapy one wellness kind.\n */\nexport const AI_SITE_KINDS: readonly AiSiteKind[] = [\n {\n id: 'business',\n label: 'Business & services',\n blurb: 'Say what you do, why choose you, and how to reach you',\n icon: 'briefcase',\n keywords: ['cleaning', 'cleaner', 'janitorial', 'pet', 'groomer', 'grooming', 'dog', 'staffing', 'printing', 'courier'],\n starter: 'business',\n look: { bases: ['starter', 'material3', 'fluent', 'minimal', 'ant-design'], chroma: 'balanced', hues: ALL_HUES, grounds: ['white', 'cool', 'warm', 'tinted'], fonts: ['jakarta', 'manrope', 'outfit', 'inter', 'bricolage', 'fraunces'], corners: ['soft', 'round'], buttons: 'rounded', headingScale: 1, density: 'regular' },\n design: 'Lead with what the business does and for whom, then services as cards, the reasons to choose it, how it works as steps, and a clear call to get in touch. Mix plain and soft bands with one brand band.',\n pages: 'Home, Services, About and Contact are typical; a pricing or booking page where the brief asks for one.',\n },\n {\n id: 'trades',\n label: 'Home services & trades',\n blurb: 'Roofers, plumbers, towing, landscaping: bold, direct, built on trust',\n icon: 'wrench',\n keywords: ['roofer', 'roofing', 'plumber', 'plumbing', 'electrician', 'hvac', 'towing', 'tow', 'landscaping', 'landscaper', 'contractor', 'construction', 'handyman', 'painter', 'painting', 'mover', 'moving', 'pest', 'remodeling', 'repair', 'mechanic', 'auto', 'trades', 'trade', 'garage', 'locksmith', 'flooring', 'fencing', 'pool'],\n starter: 'business',\n look: { bases: ['bootstrap', 'carbon', 'material-ui', 'fluent', 'starter'], chroma: 'vivid', hues: [[4, 18], [20, 38], [42, 56], [128, 158], [195, 212], [214, 240]], grounds: ['white', 'cool'], fonts: ['oswald', 'archivo', 'barlow', 'manrope'], corners: ['sharp', 'soft'], buttons: 'square', headingScale: 1.05, density: 'compact' },\n design: 'Direct and high-contrast: a big promise and a call-to-action button in the first section, the services as a tight grid of cards, why customers can trust the business (licensed, insured, years, guarantees, but only what the brief gives), the area served, and a call or quote request repeated near the end. Use a dark band and a brand band.',\n pages: 'Home, Services, About or Why us, and a Quote or Contact page with the form.',\n },\n {\n id: 'professional',\n label: 'Law, finance & consulting',\n blurb: 'Law firms, accountants, advisers: calm, established, credible',\n icon: 'scale',\n keywords: ['law', 'lawyer', 'attorney', 'legal', 'firm', 'accountant', 'accounting', 'cpa', 'tax', 'bookkeeping', 'financial', 'advisor', 'adviser', 'consulting', 'insurance', 'notary', 'mediator'],\n starter: 'business',\n look: { bases: ['carbon', 'fluent', 'minimal', 'starter'], chroma: 'muted', hues: [[210, 250], [340, 360], [0, 15], [150, 175]], grounds: ['white', 'warm', 'cool'], fonts: ['baskerville', 'merriweather', 'editorial', 'plex', 'lora'], corners: ['sharp', 'soft'], buttons: 'rounded', headingScale: 0.95, density: 'airy' },\n design: 'Measured and credible: generous space, a calm opening statement, practice areas as cards with short plain explanations, the approach as steps, and an unhurried invitation to a consultation. Prefer plain and soft bands, at most one dark band.',\n pages: 'Home, Practice areas or Services, About or Our team, and Contact with a consultation form.',\n },\n {\n id: 'wellness',\n label: 'Health & wellness',\n blurb: 'Therapists, clinics, dentists, coaches: warm, reassuring, clear',\n icon: 'heart',\n keywords: ['therapist', 'therapy', 'counselor', 'counseling', 'counselling', 'psychologist', 'dentist', 'dental', 'clinic', 'doctor', 'chiropractor', 'massage', 'wellness', 'health', 'nutrition', 'nutritionist', 'acupuncture', 'physio', 'physiotherapy', 'coach', 'coaching', 'healing', 'mental', 'medical', 'vet', 'veterinary'],\n starter: 'business',\n look: { bases: ['material3', 'cupertino', 'starter', 'fluent'], chroma: 'muted', hues: [[150, 200], [250, 290], [20, 40], [90, 130]], grounds: ['warm', 'tinted', 'white'], fonts: ['lora', 'fraunces', 'quicksand', 'dmserif', 'nunito'], corners: ['round', 'pill'], buttons: 'pill', headingScale: 1, density: 'airy' },\n design: 'Reassuring and gentle: a warm opening that names who it helps, what a first visit or session is like as steps, services as soft cards, answers to common worries as an FAQ, and a low-pressure way to book or ask. Prefer soft bands, avoid dark ones.',\n pages: 'Home, Services or Approach, About, and Book or Contact with the form.',\n },\n {\n id: 'restaurant',\n label: 'Restaurant & café',\n blurb: 'Warm, photo-led pages for food, drink and a place to visit',\n icon: 'utensils',\n keywords: ['restaurant', 'cafe', 'café', 'coffee', 'bakery', 'bar', 'pub', 'bistro', 'diner', 'pizzeria', 'pizza', 'food', 'catering', 'brewery', 'winery', 'kitchen', 'truck', 'tea', 'deli'],\n starter: 'business',\n look: { bases: ['material3', 'starter', 'cupertino'], chroma: 'balanced', hues: [[0, 45], [80, 150], [330, 360]], grounds: ['warm', 'tinted'], fonts: ['fraunces', 'editorial', 'dmserif', 'garamond', 'bricolage'], corners: ['soft', 'round'], buttons: 'rounded', headingScale: 1.1, density: 'regular' },\n design: 'Photo-led and inviting: a large image beside the opening line, the menu highlights as cards with pictures, the story of the place, and a clear visit or reserve section. Use images generously and a warm brand band.',\n pages: 'Home, Menu, About or Our story, and Visit or Reserve with the form.',\n },\n {\n id: 'store',\n label: 'Online store',\n blurb: 'Product-first pages for things you sell',\n icon: 'bag',\n keywords: ['store', 'shop', 'boutique', 'ecommerce', 'e-commerce', 'products', 'sell', 'selling', 'merch', 'jewelry', 'clothing', 'apparel', 'candles', 'soap', 'brand'],\n starter: 'physical-shop',\n look: { bases: ['minimal', 'cupertino', 'material3'], chroma: 'balanced', hues: ALL_HUES, grounds: ['white', 'warm'], fonts: ['inter', 'outfit', 'manrope', 'dmserif', 'syne'], corners: ['soft', 'sharp', 'round'], buttons: 'pill', headingScale: 1, density: 'regular' },\n design: 'Product-grid first: a short opening with one strong image, then the product range as a grid of image cards, what makes the products different, and care, shipping or returns answers only as the brief gives them. Keep copy short and let images lead.',\n pages: 'Home, Shop presenting the range as image cards, About, and Contact. Products, a cart and checkout are added in Commerce, so plan no checkout page.',\n },\n {\n id: 'portfolio',\n label: 'Portfolio',\n blurb: 'Minimal, image-led pages that put the work first',\n icon: 'grid',\n keywords: ['portfolio', 'illustrator', 'artist', 'art', 'architect', 'architecture', 'developer', 'engineer', 'writer', 'copywriter', 'animator', 'freelance', 'freelancer', 'maker', 'ceramics', 'sculptor'],\n starter: 'portfolio',\n look: { bases: ['minimal', 'cupertino', 'carbon'], chroma: 'neutral', hues: ALL_HUES, grounds: ['white', 'warm'], fonts: ['inter', 'grotesk', 'syne', 'instrument'], corners: ['sharp', 'soft'], buttons: 'square', headingScale: 1.3, density: 'airy' },\n design: 'Minimal and image-led: a large, short statement as the title, then the work as a grid of image cards with one-line captions, a brief about, and a quiet way to get in touch. Mostly plain bands, lots of space, big type, one accent color.',\n pages: 'Home with selected work, Work or Projects, About, and Contact.',\n },\n {\n id: 'studio',\n label: 'Design studio & agency',\n blurb: 'Bold type and case studies for creative teams',\n icon: 'sparkle',\n keywords: ['design', 'designer', 'agency', 'creative', 'branding', 'marketing', 'advertising', 'web', 'digital', 'production', 'video', 'animation'],\n starter: 'portfolio',\n look: { bases: ['minimal', 'carbon', 'cupertino'], chroma: 'neutral', hues: ALL_HUES, grounds: ['white', 'cool'], fonts: ['syne', 'grotesk', 'bricolage', 'inter'], corners: ['sharp', 'soft'], buttons: 'pill', headingScale: 1.3, density: 'airy' },\n design: 'Confident and editorial: an oversized statement, selected case studies as large image cards with the outcome in a line, services as a short list, how the studio works as steps, and a bold dark band to start a project.',\n pages: 'Home, Work or Case studies, Services, About, and Contact or Start a project.',\n },\n {\n id: 'photography',\n label: 'Photography',\n blurb: 'Galleries first, words second',\n icon: 'camera',\n keywords: ['photographer', 'photography', 'photo', 'photos', 'videographer', 'wedding photographer', 'portraits'],\n starter: 'portfolio',\n look: { bases: ['minimal', 'cupertino', 'carbon'], chroma: 'neutral', hues: ALL_HUES, grounds: ['white', 'warm'], fonts: ['instrument', 'garamond', 'inter', 'grotesk'], corners: ['sharp'], buttons: 'square', headingScale: 1.2, density: 'airy' },\n design: 'Gallery-first: one full image to open, then galleries as image cards by subject, a short personal about, packages only as the brief gives them, and a booking inquiry. Few words, many images, mostly plain bands and one dark band.',\n pages: 'Home, Galleries or Portfolio, About, and Book or Contact with the form.',\n },\n {\n id: 'blog',\n label: 'Blog & writing',\n blurb: 'Reading-first pages with a calm serif voice',\n icon: 'book',\n keywords: ['blog', 'blogger', 'writing', 'journal', 'magazine', 'newsletter', 'podcast', 'stories', 'essays', 'author', 'publication'],\n starter: 'business',\n look: { bases: ['minimal', 'starter', 'cupertino'], chroma: 'muted', hues: ALL_HUES, grounds: ['white', 'warm'], fonts: ['reading', 'editorial', 'instrument', 'lora'], corners: ['sharp', 'soft'], buttons: 'rounded', headingScale: 1.05, density: 'airy' },\n design: 'Reading-first: a short introduction to the writer and the subject, featured writing as cards with a title and a one-line summary, the topics covered as a list, and a sign-up or contact section. Narrow, calm, mostly plain bands.',\n pages: 'Home, Articles presenting the writing as cards, About, and Subscribe or Contact. Posts themselves are added in Data as a collection, so plan the articles page as an introduction and a few featured cards.',\n },\n {\n id: 'events',\n label: 'Events & weddings',\n blurb: 'Dates, places and the details guests need',\n icon: 'calendar',\n keywords: ['event', 'events', 'wedding', 'conference', 'festival', 'party', 'gala', 'meetup', 'summit', 'concert', 'retreat', 'workshop', 'venue', 'planner'],\n starter: 'landing',\n look: { bases: ['material3', 'cupertino', 'starter'], chroma: 'balanced', hues: [[320, 360], [0, 30], [250, 290], [140, 170], [40, 55]], grounds: ['warm', 'tinted', 'white'], fonts: ['garamond', 'editorial', 'dmserif', 'anton', 'syne'], corners: ['soft', 'round'], buttons: 'pill', headingScale: 1.2, density: 'regular' },\n design: 'Celebratory and clear: the name and what it is in a big opening, when and where only as the brief gives them, the schedule as steps, details guests ask about as an FAQ, and an RSVP or registration section. One brand band.',\n pages: 'Home, Schedule or Details, Travel or Venue where the brief names one, and RSVP or Register with the form.',\n },\n {\n id: 'fitness',\n label: 'Fitness & sports',\n blurb: 'Gyms, trainers and studios with energy',\n icon: 'bolt',\n keywords: ['gym', 'fitness', 'trainer', 'training', 'personal trainer', 'crossfit', 'boxing', 'martial', 'karate', 'pilates', 'sports', 'running', 'climbing', 'dance', 'swim', 'team', 'club'],\n starter: 'business',\n look: { bases: ['bootstrap', 'material-ui', 'carbon', 'material3'], chroma: 'vivid', hues: [[0, 30], [90, 140], [180, 210], [270, 300]], grounds: ['white', 'cool'], fonts: ['barlow', 'anton', 'archivo', 'outfit'], corners: ['sharp', 'soft'], buttons: 'caps', headingScale: 1.15, density: 'compact' },\n design: 'High-energy: a punchy opening with a strong call to action, classes or programs as cards, how to start as steps, and a repeated join or book section. Use a dark band and a brand band.',\n pages: 'Home, Classes or Programs, About or Coaches, and Join or Contact with the form.',\n },\n {\n id: 'yoga',\n label: 'Yoga & mindfulness',\n blurb: 'Calm, spacious pages for classes and retreats',\n icon: 'leaf',\n keywords: ['yoga', 'meditation', 'mindfulness', 'breathwork', 'reiki', 'spa', 'retreat', 'sound'],\n starter: 'business',\n look: { bases: ['material3', 'cupertino', 'starter', 'fluent'], chroma: 'muted', hues: [[20, 50], [80, 150], [260, 300], [170, 200]], grounds: ['warm', 'tinted'], fonts: ['garamond', 'lora', 'quicksand', 'instrument', 'fraunces'], corners: ['round', 'pill'], buttons: 'pill', headingScale: 1.05, density: 'airy' },\n design: 'Calm and spacious: a quiet opening, classes as soft cards, what a first class is like as steps, a gentle about, and an easy way to book. Soft bands, no dark band, lots of space.',\n pages: 'Home, Classes or Schedule, About, and Book or Contact with the form.',\n },\n {\n id: 'beauty',\n label: 'Beauty & salon',\n blurb: 'Salons, barbers, spas and studios with style',\n icon: 'scissors',\n keywords: ['salon', 'hair', 'hairdresser', 'barber', 'barbershop', 'nails', 'nail', 'beauty', 'makeup', 'lashes', 'brows', 'esthetician', 'skincare', 'tattoo', 'stylist'],\n starter: 'business',\n look: { bases: ['material3', 'cupertino', 'minimal'], chroma: 'balanced', hues: [[320, 360], [0, 25], [270, 300], [20, 45]], grounds: ['warm', 'tinted', 'white'], fonts: ['garamond', 'dmserif', 'instrument', 'outfit', 'syne'], corners: ['round', 'pill', 'sharp'], buttons: 'pill', headingScale: 1.1, density: 'regular' },\n design: 'Stylish and image-led: a striking opening image, services as cards, the look and feel of the place in images, and booking made obvious. One brand band.',\n pages: 'Home, Services, About or The team, and Book or Contact with the form.',\n },\n {\n id: 'realestate',\n label: 'Real estate',\n blurb: 'Agents, brokers and property: polished and local',\n icon: 'home',\n keywords: ['real estate', 'realtor', 'realty', 'broker', 'property', 'properties', 'homes', 'rentals', 'rental', 'apartment', 'apartments', 'mortgage', 'airbnb', 'vacation'],\n starter: 'business',\n look: { bases: ['fluent', 'minimal', 'carbon'], chroma: 'muted', hues: [[200, 240], [150, 180], [20, 45], [0, 360]], grounds: ['white', 'warm', 'cool'], fonts: ['dmserif', 'manrope', 'editorial', 'outfit'], corners: ['soft', 'sharp'], buttons: 'rounded', headingScale: 1.05, density: 'regular' },\n design: 'Polished and local: an image-led opening, the areas served, how buying or selling works as steps, featured listings only as image cards the owner fills in, and a valuation or contact request. One dark band.',\n pages: 'Home, Buy or Listings, Sell, About, and Contact with the form.',\n },\n {\n id: 'education',\n label: 'Courses & education',\n blurb: 'Tutors, schools and courses, clear and encouraging',\n icon: 'school',\n keywords: ['course', 'courses', 'school', 'tutoring', 'tutor', 'teacher', 'lessons', 'academy', 'education', 'learning', 'training', 'daycare', 'preschool', 'music lessons', 'driving'],\n starter: 'business',\n look: { bases: ['material3', 'ant-design', 'material-ui'], chroma: 'balanced', hues: [[200, 240], [140, 170], [30, 50], [260, 290]], grounds: ['white', 'tinted', 'cool'], fonts: ['nunito', 'outfit', 'jakarta', 'lora', 'manrope'], corners: ['round', 'soft'], buttons: 'rounded', headingScale: 1, density: 'regular' },\n design: 'Clear and encouraging: who it is for and the result they get, courses or subjects as cards, how it works as steps, common questions as an FAQ, and a sign-up or inquiry section.',\n pages: 'Home, Courses or Lessons, About or Teachers, and Enroll or Contact with the form.',\n },\n {\n id: 'nonprofit',\n label: 'Nonprofit & community',\n blurb: 'A cause, its impact and how to help',\n icon: 'hands',\n keywords: ['nonprofit', 'non-profit', 'charity', 'foundation', 'church', 'community', 'volunteer', 'volunteers', 'association', 'ngo', 'mission', 'ministry', 'rescue', 'shelter', 'cause'],\n starter: 'business',\n look: { bases: ['material3', 'fluent', 'starter'], chroma: 'balanced', hues: [[130, 200], [20, 45], [200, 230], [340, 360]], grounds: ['white', 'warm'], fonts: ['merriweather', 'lora', 'jakarta', 'fraunces', 'nunito'], corners: ['soft', 'round'], buttons: 'rounded', headingScale: 1.05, density: 'regular' },\n design: 'Mission-led: the cause in one line, what the organization does as cards, how to help as steps (volunteer, give, spread the word), and a clear way to get involved. A brand band for the call to help.',\n pages: 'Home, Our work or Programs, About, and Get involved or Contact with the form.',\n },\n {\n id: 'music',\n label: 'Music & bands',\n blurb: 'Artists, bands and DJs, loud and visual',\n icon: 'music',\n keywords: ['band', 'musician', 'music', 'dj', 'singer', 'rapper', 'producer', 'orchestra', 'choir', 'composer', 'artist music'],\n starter: 'landing',\n look: { bases: ['carbon', 'minimal', 'material-ui'], chroma: 'vivid', hues: ALL_HUES, grounds: ['white', 'cool', 'tinted'], fonts: ['anton', 'syne', 'grotesk', 'archivo'], corners: ['sharp'], buttons: 'caps', headingScale: 1.3, density: 'regular' },\n design: 'Loud and visual: the name huge in the opening, an image band, releases or shows as image cards only as the brief gives them, a short bio, and a booking or contact section. Dark bands are welcome.',\n pages: 'Home, Music or Shows, About, and Booking or Contact with the form.',\n },\n {\n id: 'personal',\n label: 'Personal & resume',\n blurb: 'A simple page about you and your work',\n icon: 'person',\n keywords: ['personal', 'resume', 'cv', 'me', 'myself', 'profile', 'job', 'candidate', 'speaker'],\n starter: 'portfolio',\n look: { bases: ['minimal', 'cupertino', 'starter', 'fluent'], chroma: 'muted', hues: ALL_HUES, grounds: ['white', 'warm', 'cool'], fonts: ['inter', 'instrument', 'manrope', 'lora', 'grotesk'], corners: ['soft', 'round'], buttons: 'rounded', headingScale: 1.1, density: 'airy' },\n design: 'Simple and personal: who the person is in one line, what they do, experience or highlights as a list or steps, selected work as cards where the brief names some, and a way to get in touch. Mostly plain bands.',\n pages: 'Home, About or Experience, Work where the brief names some, and Contact.',\n },\n {\n id: 'landing',\n label: 'Landing page',\n blurb: 'One page that leads to one action',\n icon: 'rocket',\n keywords: ['landing', 'launch', 'app', 'startup', 'saas', 'software', 'product', 'waitlist', 'campaign', 'offer', 'ebook', 'webinar'],\n starter: 'landing',\n look: { bases: ['material3', 'minimal', 'ant-design'], chroma: 'vivid', hues: ALL_HUES, grounds: ['white', 'cool', 'tinted'], fonts: ['outfit', 'jakarta', 'manrope', 'bricolage', 'inter'], corners: ['round', 'soft'], buttons: 'pill', headingScale: 1.15, density: 'regular' },\n design: 'One action: a strong promise and the call to action first, the benefits as cards, how it works as steps, answers to objections as an FAQ, and the call to action again. A brand band to close.',\n pages: 'One long home page carries the story; a second page only for the form or details the brief asks for.',\n },\n {\n id: 'coming-soon',\n label: 'Coming soon',\n blurb: 'A placeholder that collects interest',\n icon: 'clock',\n keywords: ['coming soon', 'soon', 'prelaunch', 'pre-launch', 'under construction', 'placeholder'],\n starter: 'landing',\n look: { bases: ['minimal', 'material3', 'cupertino'], chroma: 'vivid', hues: ALL_HUES, grounds: ['white', 'tinted', 'cool'], fonts: ['syne', 'anton', 'outfit', 'instrument'], corners: ['round', 'pill'], buttons: 'pill', headingScale: 1.3, density: 'airy' },\n design: 'Short and striking: what is coming in one big line, two or three reasons to care, and a way to hear first through the form. Few sections, big type.',\n pages: 'A home page that says what is coming and invites people to sign up; nothing else unless the brief asks.',\n },\n]\n\n/** A kind by id, or `null`. */\nexport function aiSiteKind(id: unknown): AiSiteKind | null {\n if (typeof id !== 'string' || !id) return null\n return AI_SITE_KINDS.find((kind) => kind.id === id) ?? null\n}\n\n/** A pairing by id, or `null`. */\nexport function aiSiteFontPairing(id: unknown): AiSiteFontPairing | null {\n if (typeof id !== 'string' || !id) return null\n return AI_SITE_FONT_PAIRINGS.find((pairing) => pairing.id === id) ?? null\n}\n\nconst words = (text: string) => ` ${text.toLowerCase().replace(/[^a-z0-9é&'-]+/g, ' ')} `\n\n/**\n * The kind a \"what kind of site\" answer suggests, or `business` when nothing\n * in it matches: the card the guided start selects until the person picks\n * another. A longer keyword wins over a shorter one (\"wedding photographer\"\n * is photography, not events), and of two as long the later one wins, since\n * English puts the noun last (\"a food blog\" is a blog).\n */\nexport function aiSiteKindFor(siteType: string): AiSiteKind {\n const text = words(siteType)\n let best: { kind: AiSiteKind; length: number; at: number } | null = null\n for (const kind of AI_SITE_KINDS) {\n for (const keyword of kind.keywords) {\n const at = text.lastIndexOf(words(keyword))\n if (at === -1) continue\n if (!best || keyword.length > best.length || (keyword.length === best.length && at > best.at)) {\n best = { kind, length: keyword.length, at }\n }\n }\n }\n return best?.kind ?? (AI_SITE_KINDS[0] as AiSiteKind)\n}\n\n/** The kind a job's inputs name, else the one its business type suggests; `null` for a job that names neither. */\nexport function aiSiteKindOfInputs(inputs: Readonly<Record<string, unknown>> | null | undefined): AiSiteKind | null {\n const named = aiSiteKind(inputs?.['siteKind'])\n if (named) return named\n const type = inputs?.['businessType']\n return typeof type === 'string' && type.trim() ? aiSiteKindFor(type) : null\n}\n\n/** What each band rhythm asks of a page's sections. */\nconst RHYTHM_WORDS: Record<AiSiteRhythm, string> = {\n calm: 'mostly plain bands with one soft band, and a brand or dark band only for the closing call to action',\n alternating: 'plain and soft bands by turns, with one brand band',\n bold: 'a dark or brand band to open or close, and strong contrast between neighboring sections',\n}\n\n/** The site's own look tokens a unit is handed (AGL-3660), read defensively. */\nexport function aiSiteStyleTokens(\n inputs: Readonly<Record<string, unknown>> | null | undefined,\n): { headerAlign?: 'start' | 'center'; rhythm?: AiSiteRhythm } {\n const raw = inputs?.['siteStyle']\n if (!raw || typeof raw !== 'object') return {}\n const style = raw as Record<string, unknown>\n return {\n ...(style['headerAlign'] === 'start' || style['headerAlign'] === 'center' ? { headerAlign: style['headerAlign'] } : {}),\n ...(AI_SITE_RHYTHMS.includes(style['rhythm'] as AiSiteRhythm) ? { rhythm: style['rhythm'] as AiSiteRhythm } : {}),\n }\n}\n\n/** The style lines a page, the header and the footer are told for the job's kind and look; empty for none. */\nexport function aiSiteKindDesignLines(inputs: Readonly<Record<string, unknown>> | null | undefined): string[] {\n const kind = aiSiteKindOfInputs(inputs)\n const { rhythm } = aiSiteStyleTokens(inputs)\n return [\n ...(kind ? [`Style: a ${kind.label.toLowerCase()} site. ${kind.design}`] : []),\n ...(rhythm ? [`Band rhythm for this site: ${RHYTHM_WORDS[rhythm]}.`] : []),\n ]\n}\n"],"names":["AI_SITE_FONT_PAIRINGS","id","feel","heading","family","category","weight","sub","body","weights","tracking","caps","AI_SITE_BASES","AI_SITE_GROUNDS","AI_SITE_CORNERS","AI_SITE_RHYTHMS","ALL_HUES","AI_SITE_KINDS","label","blurb","icon","keywords","starter","look","bases","chroma","hues","grounds","fonts","corners","buttons","headingScale","density","design","pages","aiSiteKind","find","kind","aiSiteFontPairing","pairing","words","text","toLowerCase","replace","aiSiteKindFor","siteType","best","keyword","at","lastIndexOf","length","aiSiteKindOfInputs","inputs","named","type","trim","RHYTHM_WORDS","calm","alternating","bold","aiSiteStyleTokens","raw","style","headerAlign","includes","rhythm","aiSiteKindDesignLines"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BC,GAED,6EAA6E;AAa7E;;;;;CAKC,GACD,OAAO,MAAMA,wBAAsD;IACjE;QAAEC,IAAI;QAAWC,MAAM;QAAyBC,SAAS;YAAEC,QAAQ;YAAqBC,UAAU;YAAcC,QAAQ;YAAKC,KAAK;QAAI;QAAGC,MAAM;YAAEJ,QAAQ;YAAqBC,UAAU;YAAcI,SAAS;gBAAC;gBAAK;gBAAK;gBAAK;aAAI;QAAC;QAAGC,UAAU,CAAC;IAAK;IACvP;QAAET,IAAI;QAASC,MAAM;QAAyBC,SAAS;YAAEC,QAAQ;YAASC,UAAU;YAAcC,QAAQ;YAAKC,KAAK;QAAI;QAAGC,MAAM;YAAEJ,QAAQ;YAASC,UAAU;YAAcI,SAAS;gBAAC;gBAAK;gBAAK;gBAAK;aAAI;QAAC;QAAGC,UAAU,CAAC;IAAM;IAC9N;QAAET,IAAI;QAAWC,MAAM;QAAoBC,SAAS;YAAEC,QAAQ;YAAiBC,UAAU;YAAcC,QAAQ;YAAKC,KAAK;QAAI;QAAGC,MAAM;YAAEJ,QAAQ;YAASC,UAAU;YAAcI,SAAS;gBAAC;gBAAK;gBAAK;gBAAK;aAAI;QAAC;QAAGC,UAAU,CAAC;IAAK;IAClO;QAAET,IAAI;QA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QAAQ;AACzE;AAEA,qDAAqD,GACrD,MAAME,eAA6C;IACjDC,MAAM;IACNC,aAAa;IACbC,MAAM;AACR;AAEA,8EAA8E,GAC9E,OAAO,SAASC,kBACdR,MAA4D;IAE5D,MAAMS,MAAMT,0BAAAA,MAAQ,CAAC,YAAY;IACjC,IAAI,CAACS,OAAO,OAAOA,QAAQ,UAAU,OAAO,CAAC;IAC7C,MAAMC,QAAQD;IACd,OAAO,aACDC,KAAK,CAAC,cAAc,KAAK,WAAWA,KAAK,CAAC,cAAc,KAAK,WAAW;QAAEC,aAAaD,KAAK,CAAC,cAAc;IAAC,IAAI,CAAC,GACjH/C,gBAAgBiD,QAAQ,CAACF,KAAK,CAAC,SAAS,IAAoB;QAAEG,QAAQH,KAAK,CAAC,SAAS;IAAiB,IAAI,CAAC;AAEnH;AAEA,4GAA4G,GAC5G,OAAO,SAASI,sBAAsBd,MAA4D;IAChG,MAAMf,OAAOc,mBAAmBC;IAChC,MAAM,EAAEa,MAAM,EAAE,GAAGL,kBAAkBR;IACrC,OAAO;WACDf,OAAO;YAAC,CAAC,SAAS,EAAEA,KAAKnB,KAAK,CAACwB,WAAW,GAAG,OAAO,EAAEL,KAAKJ,MAAM,EAAE;SAAC,GAAG,EAAE;WACzEgC,SAAS;YAAC,CAAC,2BAA2B,EAAET,YAAY,CAACS,OAAO,CAAC,CAAC,CAAC;SAAC,GAAG,EAAE;KAC1E;AACH"}
@@ -0,0 +1,150 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import type { HostTheme, HostThemeSchemeColors } from '@aglyn/shared-data-types';
18
+ import type { AiTool } from '../runtime/ai-runtime';
19
+ import { type AiSiteBase, type AiSiteButtons, type AiSiteChroma, type AiSiteCorners, type AiSiteDensity, type AiSiteGround, type AiSiteKind, type AiSiteRhythm } from './ai-site-kinds';
20
+ /**
21
+ * A site's look (AGL-3660): one of the platform's base themes, and this
22
+ * site's own customizations layered over it as the site theme's override —
23
+ * the same base-and-edits shape a person's pick on Setup → Theme is stored
24
+ * as, so the Theme page names the base it came from and every edit there
25
+ * starts from what the AI chose.
26
+ *
27
+ * Everything the look decides lives in the THEME, never on a node: palette,
28
+ * fonts, type scale, corners, spacing, and the component defaults and styles
29
+ * of buttons, cards, fields, eyebrows, the header bar and the FAQ. So a Card
30
+ * or a Button a person drags in later looks like the rest of the site, and
31
+ * the layout compiler emits plain components.
32
+ *
33
+ * Three inputs decide it:
34
+ * - the KIND (`ai-site-kinds.ts`): the family of looks that suit the site;
35
+ * - the MODEL's choices for this business (`submit_site_look`), any of
36
+ * which may be missing;
37
+ * - the per-job SEED, which fills what the model left out from the kind's
38
+ * options and nudges every hue, chroma and size, so two jobs with the same
39
+ * brief and the same answers still produce two different themes.
40
+ *
41
+ * Colors are built in OKLCH and held to WCAG: body text 4.5:1 on its ground
42
+ * and on paper, every button label 4.5:1 on its fill, the brand color 3:1 on
43
+ * the page — then the whole theme passes `validateThemeForPublish`, or its
44
+ * colors fall back to the starter theme's.
45
+ */
46
+ /** How cards are drawn. */
47
+ export declare const AI_SITE_CARDS: readonly ["flat", "outlined", "elevated", "tinted", "rule"];
48
+ export type AiSiteCards = (typeof AI_SITE_CARDS)[number];
49
+ /** The form field style. */
50
+ export declare const AI_SITE_FIELDS: readonly ["outlined", "filled", "standard"];
51
+ export type AiSiteFields = (typeof AI_SITE_FIELDS)[number];
52
+ /** How an eyebrow above a heading is set. */
53
+ export declare const AI_SITE_EYEBROWS: readonly ["caps", "small", "rule"];
54
+ export type AiSiteEyebrow = (typeof AI_SITE_EYEBROWS)[number];
55
+ /** What sets a plain header bar off the page. */
56
+ export declare const AI_SITE_HEADERS: readonly ["line", "shadow", "flat"];
57
+ export type AiSiteHeader = (typeof AI_SITE_HEADERS)[number];
58
+ /** Button shapes and casing; `link` draws quiet buttons as underlined links. */
59
+ export declare const AI_SITE_BUTTONS: readonly AiSiteButtons[];
60
+ /**
61
+ * A site's style tokens: everything its theme was built from. Stored with the
62
+ * site (`hosts/{id}.siteStyle`) so a later AI edit keeps the look.
63
+ */
64
+ export interface AiSiteStyle {
65
+ v: 1;
66
+ kind: string;
67
+ base: AiSiteBase;
68
+ seed: number;
69
+ hue: number;
70
+ accent: number;
71
+ chroma: AiSiteChroma;
72
+ ground: AiSiteGround;
73
+ fonts: string;
74
+ corners: AiSiteCorners;
75
+ buttons: AiSiteButtons;
76
+ cards: AiSiteCards;
77
+ fields: AiSiteFields;
78
+ eyebrow: AiSiteEyebrow;
79
+ header: AiSiteHeader;
80
+ /** The header's arrangement: brand at the start and links after it, or both centered. */
81
+ headerAlign: 'start' | 'center';
82
+ /** How the pages alternate their bands. */
83
+ rhythm: AiSiteRhythm;
84
+ headingScale: number;
85
+ density: AiSiteDensity;
86
+ /** A brand color the brief gave, used as the primary color. */
87
+ brand: string | null;
88
+ }
89
+ /** What the model may choose, every field optional. */
90
+ export type AiSiteLookAnswer = Partial<Pick<AiSiteStyle, 'base' | 'hue' | 'accent' | 'ground' | 'fonts' | 'corners' | 'buttons' | 'cards' | 'fields' | 'eyebrow' | 'header' | 'brand'>>;
91
+ /** A job's seed: FNV-1a over its id. */
92
+ export declare function aiSiteSeed(jobId: string): number;
93
+ export declare const AI_SITE_LOOK_TOOL_NAME = "submit_site_look";
94
+ /** The strict tool the look is answered with; every field is required and the reader is lenient. */
95
+ export declare const AI_SITE_LOOK_TOOL: AiTool;
96
+ /** A brand color as a six-digit hex, or `null`. */
97
+ export declare function aiSiteBrandHex(value: unknown): string | null;
98
+ /** The model's answer, read leniently: a value outside its vocabulary is left for the seed. */
99
+ export declare function aiReadSiteLook(answer: unknown): AiSiteLookAnswer;
100
+ /** The hue family a hue is in: twelve families of thirty degrees, 0 the reds. */
101
+ export declare function aiSiteHueFamily(hue: number): number;
102
+ /** The look dimensions two sites are compared by (`ai-site-look.spec.ts`). */
103
+ export declare const AI_SITE_LOOK_DIMENSIONS: readonly ["base", "hueFamily", "fonts", "buttons", "cards", "corners", "ground", "eyebrow", "header", "fields", "headerAlign", "rhythm"];
104
+ /** A style's value on each tracked dimension. */
105
+ export declare function aiSiteLookSignature(style: AiSiteStyle): Record<(typeof AI_SITE_LOOK_DIMENSIONS)[number], string>;
106
+ /**
107
+ * The style tokens for a site of this kind (AGL-3660). Every dimension is
108
+ * the SEED's choice among what suits the kind, with the model's choice for
109
+ * this business as a favored candidate — kept at a given chance, not always
110
+ * — so the brief steers the look and two jobs with the same brief and the
111
+ * same answer still come out as two sites: another base, another hue family,
112
+ * another pairing, other buttons. A brand color the brief gives is always
113
+ * kept.
114
+ */
115
+ export declare function aiSiteStyleFor(input: {
116
+ kind: AiSiteKind;
117
+ answer: AiSiteLookAnswer;
118
+ seed: number;
119
+ brand?: string | null;
120
+ /**
121
+ * The looks of the workspace's other sites (AGL-3660): a look that shares
122
+ * one's base, hue family, heading font and buttons, or differs from one in
123
+ * fewer than three tracked dimensions, is drawn again from the next seed.
124
+ */
125
+ avoid?: readonly AiSiteStyle[];
126
+ }): AiSiteStyle;
127
+ /** How many seeds a look draws before it settles for the most different. */
128
+ export declare const AI_SITE_LOOK_DRAWS = 32;
129
+ /** The fewest tracked dimensions in which two of a workspace's sites differ. */
130
+ export declare const AI_SITE_LOOK_LEAST_DIFFERENCES = 3;
131
+ /** An OKLCH color as hex, its chroma reduced until it fits sRGB. */
132
+ export declare function aiOklchHex(L: number, C: number, h: number): string;
133
+ /** A hex color in OKLCH. */
134
+ export declare function aiHexOklch(hex: string): {
135
+ L: number;
136
+ C: number;
137
+ h: number;
138
+ };
139
+ /** Both schemes' colors for a style. */
140
+ export declare function aiSiteColors(style: AiSiteStyle): {
141
+ light: HostThemeSchemeColors;
142
+ dark: HostThemeSchemeColors;
143
+ };
144
+ /**
145
+ * The site's theme: the base theme with this style layered over it. Colors,
146
+ * type, corners, spacing and the building blocks' component styles are the
147
+ * site's own; whatever the base sets beyond them — its focus rings, its menu
148
+ * and dialog styles, its control heights — stays the base's.
149
+ */
150
+ export declare function aiSiteTheme(style: AiSiteStyle, base: HostTheme): HostTheme;