@aglyn/plugins-ai 1.0.0-beta.234 → 1.0.0-beta.236

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 (137) hide show
  1. package/package.json +17 -17
  2. package/src/lib/activity/ai-activity-actions.d.ts +25 -0
  3. package/src/lib/activity/ai-activity-actions.js +85 -4
  4. package/src/lib/activity/ai-activity-actions.js.map +1 -1
  5. package/src/lib/components/ai-brief-dialog.component.js +46 -2
  6. package/src/lib/components/ai-brief-dialog.component.js.map +1 -1
  7. package/src/lib/components/ai-campaign-create.component.js +1 -1
  8. package/src/lib/components/ai-campaign-create.component.js.map +1 -1
  9. package/src/lib/components/ai-credits-card.component.js +3 -3
  10. package/src/lib/components/ai-credits-card.component.js.map +1 -1
  11. package/src/lib/components/ai-crm-email-draft.component.js +1 -1
  12. package/src/lib/components/ai-crm-email-draft.component.js.map +1 -1
  13. package/src/lib/components/ai-crm-import-mapping.component.js +1 -1
  14. package/src/lib/components/ai-crm-import-mapping.component.js.map +1 -1
  15. package/src/lib/components/ai-crm-record-card.component.js +1 -1
  16. package/src/lib/components/ai-crm-record-card.component.js.map +1 -1
  17. package/src/lib/components/ai-describe-automation.component.js +4 -2
  18. package/src/lib/components/ai-describe-automation.component.js.map +1 -1
  19. package/src/lib/components/ai-describe-org-automation.component.js +1 -1
  20. package/src/lib/components/ai-describe-org-automation.component.js.map +1 -1
  21. package/src/lib/components/ai-experiment-cards.component.js +2 -2
  22. package/src/lib/components/ai-experiment-cards.component.js.map +1 -1
  23. package/src/lib/components/ai-explain-automation.component.js +1 -1
  24. package/src/lib/components/ai-explain-automation.component.js.map +1 -1
  25. package/src/lib/components/ai-insight-card.component.js +3 -1
  26. package/src/lib/components/ai-insight-card.component.js.map +1 -1
  27. package/src/lib/components/ai-jobs-list-page.component.d.ts +6 -1
  28. package/src/lib/components/ai-jobs-list-page.component.js +15 -2
  29. package/src/lib/components/ai-jobs-list-page.component.js.map +1 -1
  30. package/src/lib/components/ai-logic.component.js +5 -3
  31. package/src/lib/components/ai-logic.component.js.map +1 -1
  32. package/src/lib/components/ai-media-create.component.js +88 -16
  33. package/src/lib/components/ai-media-create.component.js.map +1 -1
  34. package/src/lib/components/ai-model-selector.component.js +8 -0
  35. package/src/lib/components/ai-model-selector.component.js.map +1 -1
  36. package/src/lib/components/ai-overlay-cards.component.js +2 -2
  37. package/src/lib/components/ai-overlay-cards.component.js.map +1 -1
  38. package/src/lib/components/ai-product-copy-card.component.js +2 -1
  39. package/src/lib/components/ai-product-copy-card.component.js.map +1 -1
  40. package/src/lib/components/ai-products-hub-card.component.js +2 -1
  41. package/src/lib/components/ai-products-hub-card.component.js.map +1 -1
  42. package/src/lib/components/ai-revise-automation.component.js +1 -1
  43. package/src/lib/components/ai-revise-automation.component.js.map +1 -1
  44. package/src/lib/components/ai-seo-fields-card.component.js +7 -3
  45. package/src/lib/components/ai-seo-fields-card.component.js.map +1 -1
  46. package/src/lib/components/ai-site-batch-card.component.js +7 -4
  47. package/src/lib/components/ai-site-batch-card.component.js.map +1 -1
  48. package/src/lib/components/ai-site-build-page.component.js +7 -3
  49. package/src/lib/components/ai-site-build-page.component.js.map +1 -1
  50. package/src/lib/components/ai-site-seo-start-card.component.js +7 -4
  51. package/src/lib/components/ai-site-seo-start-card.component.js.map +1 -1
  52. package/src/lib/components/ai-site-start-card.component.js +62 -29
  53. package/src/lib/components/ai-site-start-card.component.js.map +1 -1
  54. package/src/lib/components/ai-theme-proposal-card.component.js +1 -0
  55. package/src/lib/components/ai-theme-proposal-card.component.js.map +1 -1
  56. package/src/lib/components/ai-upsell-dialog.component.js +17 -3
  57. package/src/lib/components/ai-upsell-dialog.component.js.map +1 -1
  58. package/src/lib/components/ai-usage-strip.component.js +13 -2
  59. package/src/lib/components/ai-usage-strip.component.js.map +1 -1
  60. package/src/lib/components/assist-build-card.component.js +20 -3
  61. package/src/lib/components/assist-build-card.component.js.map +1 -1
  62. package/src/lib/components/assist-jobs-drawer.component.js +7 -1
  63. package/src/lib/components/assist-jobs-drawer.component.js.map +1 -1
  64. package/src/lib/components/billing-ai-allotments.component.js +2 -2
  65. package/src/lib/components/billing-ai-allotments.component.js.map +1 -1
  66. package/src/lib/components/billing-ai-top-users.component.js +1 -0
  67. package/src/lib/components/billing-ai-top-users.component.js.map +1 -1
  68. package/src/lib/components/billing-assist-overage-card.component.js +2 -2
  69. package/src/lib/components/billing-assist-overage-card.component.js.map +1 -1
  70. package/src/lib/components/host-ai-allotments.component.js +2 -2
  71. package/src/lib/components/host-ai-allotments.component.js.map +1 -1
  72. package/src/lib/components/member-ai-allotment-card.component.js +2 -2
  73. package/src/lib/components/member-ai-allotment-card.component.js.map +1 -1
  74. package/src/lib/components/staff-org-ai-card.component.js +1 -0
  75. package/src/lib/components/staff-org-ai-card.component.js.map +1 -1
  76. package/src/lib/components/staff-org-ai-conversations.component.d.ts +9 -3
  77. package/src/lib/components/staff-org-ai-conversations.component.js +174 -83
  78. package/src/lib/components/staff-org-ai-conversations.component.js.map +1 -1
  79. package/src/lib/components/staff-user-ai-usage-card.component.js +2 -1
  80. package/src/lib/components/staff-user-ai-usage-card.component.js.map +1 -1
  81. package/src/lib/jobs/ai-job-layout-language.js +4 -1
  82. package/src/lib/jobs/ai-job-layout-language.js.map +1 -1
  83. package/src/lib/jobs/ai-job-layout-site-pages.d.ts +12 -0
  84. package/src/lib/jobs/ai-job-layout-site-pages.js +20 -0
  85. package/src/lib/jobs/ai-job-layout-site-pages.js.map +1 -1
  86. package/src/lib/jobs/ai-job-page-language.d.ts +10 -1
  87. package/src/lib/jobs/ai-job-page-language.js +41 -8
  88. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  89. package/src/lib/jobs/ai-job-page-step.js +14 -3
  90. package/src/lib/jobs/ai-job-page-step.js.map +1 -1
  91. package/src/lib/jobs/ai-job-site-content.d.ts +75 -7
  92. package/src/lib/jobs/ai-job-site-content.js +205 -32
  93. package/src/lib/jobs/ai-job-site-content.js.map +1 -1
  94. package/src/lib/jobs/ai-job-site-step.d.ts +8 -0
  95. package/src/lib/jobs/ai-job-site-step.js +61 -12
  96. package/src/lib/jobs/ai-job-site-step.js.map +1 -1
  97. package/src/lib/layout-language/ai-layout-compiler.d.ts +8 -0
  98. package/src/lib/layout-language/ai-layout-compiler.js +308 -10
  99. package/src/lib/layout-language/ai-layout-compiler.js.map +1 -1
  100. package/src/lib/layout-language/ai-layout-design.d.ts +7 -0
  101. package/src/lib/layout-language/ai-layout-design.js +23 -11
  102. package/src/lib/layout-language/ai-layout-design.js.map +1 -1
  103. package/src/lib/layout-language/ai-layout-frame.d.ts +6 -0
  104. package/src/lib/layout-language/ai-layout-frame.js +12 -3
  105. package/src/lib/layout-language/ai-layout-frame.js.map +1 -1
  106. package/src/lib/layout-language/ai-layout-gaps.js +18 -2
  107. package/src/lib/layout-language/ai-layout-gaps.js.map +1 -1
  108. package/src/lib/layout-language/ai-layout-links.d.ts +26 -1
  109. package/src/lib/layout-language/ai-layout-links.js +24 -4
  110. package/src/lib/layout-language/ai-layout-links.js.map +1 -1
  111. package/src/lib/layout-language/ai-layout-listings.d.ts +125 -0
  112. package/src/lib/layout-language/ai-layout-listings.js +187 -0
  113. package/src/lib/layout-language/ai-layout-listings.js.map +1 -0
  114. package/src/lib/model/ai-site-build-progress.js +27 -12
  115. package/src/lib/model/ai-site-build-progress.js.map +1 -1
  116. package/src/lib/model/ai-site-job.d.ts +33 -8
  117. package/src/lib/model/ai-site-job.js +38 -18
  118. package/src/lib/model/ai-site-job.js.map +1 -1
  119. package/src/lib/model/ai-site-kinds.d.ts +30 -8
  120. package/src/lib/model/ai-site-kinds.js +731 -117
  121. package/src/lib/model/ai-site-kinds.js.map +1 -1
  122. package/src/lib/model/ai-site-start-seo.d.ts +30 -0
  123. package/src/lib/model/ai-site-start-seo.js +132 -11
  124. package/src/lib/model/ai-site-start-seo.js.map +1 -1
  125. package/src/lib/model/ai-site-start.d.ts +2 -2
  126. package/src/lib/model/ai-site-start.js +3 -3
  127. package/src/lib/model/ai-site-start.js.map +1 -1
  128. package/src/lib/plugin.js +15 -3
  129. package/src/lib/plugin.js.map +1 -1
  130. package/src/lib/runtime/ai-palette.generated.js +13 -3
  131. package/src/lib/runtime/ai-palette.generated.js.map +1 -1
  132. package/src/lib/server/ai-admin-conversations.d.ts +9 -0
  133. package/src/lib/server/ai-admin-conversations.js +151 -9
  134. package/src/lib/server/ai-admin-conversations.js.map +1 -1
  135. package/src/lib/usage/staff-org-ai-conversations.d.ts +23 -0
  136. package/src/lib/usage/staff-org-ai-conversations.js +45 -0
  137. package/src/lib/usage/staff-org-ai-conversations.js.map +1 -1
@@ -1 +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 // \"Personal\" only as a site about the person (AGL-3660): as a bare word it\n // is the adjective in \"a personal travel blog\", which it beat on length.\n keywords: ['personal site', 'personal website', 'personal page', 'about me', '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;QAAQC,MAAM;QAAkCC,SAAS;YAAEC,QAAQ;YAAQC,UAAU;YAAcC,QAAQ;YAAKC,KAAK;QAAI;QAAGC,MAAM;YAAEJ,QAAQ;YAASC,UAAU;YAAcI,SAAS;gBAAC;gBAAK;gBAAK;gBAAK;aAAI;QAAC;QAAGC,UAA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5D,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"}
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 /**\n * Specific nouns and phrases that name this kind on their own (\"roofer\",\n * \"law firm\", \"food bank\"), matched whole and singular or plural. One is\n * enough to pick the kind ({@link aiSiteKindFor}).\n */\n keywords: readonly string[]\n /**\n * Generic words that only lean toward this kind (\"club\", \"studio\",\n * \"classes\", \"shop\"): they add a little weight, break a tie, and never pick\n * a narrow kind on their own.\n */\n hints: 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 service', 'cleaning company', 'house cleaning', 'cleaner', 'janitorial', 'maid', 'groomer', 'grooming', 'dog walker', 'dog walking', 'pet sitter', 'pet sitting', 'dog trainer', 'dog training', 'staffing', 'print shop', 'printing', 'courier', 'laundromat', 'dry cleaner', 'tailor', 'alterations', 'car wash', 'detailing', 'small business'],\n hints: ['business', 'company', 'service', 'local', 'pet', 'dog', 'cleaning', 'customers'],\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', 'electrical', 'hvac', 'heating and cooling', 'towing', 'tow truck', 'roadside assistance', 'landscaping', 'landscaper', 'lawn care', 'contractor', 'general contractor', 'construction', 'handyman', 'house painter', 'house painting', 'movers', 'moving company', 'exterminator', 'pest control', 'remodeling', 'renovation', 'mechanic', 'auto repair', 'auto body', 'locksmith', 'flooring', 'fencing', 'pool cleaning', 'pool service', 'welder', 'welding', 'carpenter', 'carpentry', 'masonry', 'concrete', 'drywall', 'gutter', 'siding', 'garage door', 'tree service', 'arborist', 'junk removal', 'septic', 'pressure washing', 'power washing', 'appliance repair'],\n hints: ['repair', 'auto', 'garage', 'painting', 'painter', 'pool', 'moving', 'trade', 'trades', 'homeowner', 'pest', 'installation', 'emergency'],\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', 'law firm', 'lawyer', 'attorney', 'legal', 'paralegal', 'accountant', 'accounting', 'cpa', 'tax', 'bookkeeping', 'bookkeeper', 'financial', 'financial advisor', 'wealth management', 'advisor', 'adviser', 'advisory', 'consulting', 'consultant', 'insurance', 'notary', 'mediator', 'mediation', 'estate planning'],\n hints: ['firm', 'practice', 'clients', 'compliance'],\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', 'psychiatrist', 'psychotherapy', 'dentist', 'dental', 'orthodontist', 'clinic', 'doctor', 'physician', 'pediatrician', 'optometrist', 'chiropractor', 'chiropractic', 'massage', 'wellness', 'nutrition', 'nutritionist', 'dietitian', 'acupuncture', 'physio', 'physiotherapy', 'physical therapy', 'mental health', 'medical', 'vet', 'veterinary', 'veterinarian', 'animal hospital', 'midwife', 'doula', 'naturopath', 'life coach', 'health coach', 'wellness coach', 'home care', 'senior care'],\n hints: ['health', 'healing', 'coach', 'coaching', 'patient', 'care', 'practice', 'mental', 'anxiety'],\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', 'coffee', 'coffee shop', 'coffee house', 'bakery', 'baker', 'pastry', 'cake', 'cupcake', 'bistro', 'diner', 'pizzeria', 'pizza', 'catering', 'caterer', 'brewery', 'winery', 'wine bar', 'distillery', 'taproom', 'food truck', 'deli', 'chef', 'personal chef', 'tavern', 'pub', 'eatery', 'tea room', 'tea house', 'ice cream', 'creamery', 'donut', 'bagel', 'taqueria', 'sushi', 'bbq', 'barbecue', 'ramen', 'cocktail', 'juice bar', 'brunch'],\n hints: ['food', 'kitchen', 'bar', 'tea', 'truck', 'breakfast', 'lunch', 'dinner', 'dining', 'menu', 'drinks', 'meal', 'wine', 'beer'],\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: ['online store', 'online shop', 'web shop', 'boutique', 'ecommerce', 'e-commerce', 'merch', 'merchandise', 'jewelry', 'jewellery', 'clothing', 'apparel', 'candle', 'soap', 'etsy', 'gift shop', 'bookstore', 'bookshop', 'florist', 'flower shop', 'plant shop', 'retail', 'wholesale', 'subscription box', 'thrift', 'sneakers'],\n hints: ['store', 'shop', 'market', 'product', 'sell', 'selling', 'buy', 'order', 'brand', 'handmade', 'goods', 'gifts', 'collection', 'shipping'],\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', 'illustration', 'artist', 'visual artist', 'architect', 'architecture', 'software engineer', 'developer', 'copywriter', 'animator', 'freelance', 'freelancer', 'ceramics', 'ceramicist', 'potter', 'pottery', 'sculptor', 'sculpture', 'woodworker', 'woodworking', 'printmaker', 'textile artist'],\n hints: ['art', 'maker', 'work', 'gallery', 'painter', 'paintings', 'commissions', 'writer', 'engineer', 'projects'],\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 studio', 'creative studio', 'creative agency', 'design agency', 'marketing agency', 'digital agency', 'ad agency', 'branding agency', 'branding', 'brand identity', 'marketing', 'digital marketing', 'advertising', 'web design', 'web designer', 'web development', 'graphic design', 'graphic designer', 'motion design', 'video production', 'production company', 'animation', 'seo'],\n hints: ['agency', 'design', 'designer', 'creative', 'studio', 'digital', 'web', 'video', 'production', 'brand', 'campaign', 'case studies'],\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', 'videographer', 'videography', 'wedding photographer', 'wedding photography', 'portrait', 'headshot', 'photo studio', 'photo booth'],\n hints: ['photo', 'gallery', 'shoot', 'sessions', 'prints', 'camera'],\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', 'food blog', 'travel blog', 'journal', 'magazine', 'newsletter', 'podcast', 'podcaster', 'essays', 'author', 'novelist', 'poet', 'poetry', 'publication', 'zine', 'columnist', 'substack'],\n hints: ['writing', 'stories', 'reading', 'readers', 'articles', 'posts', 'recipes', 'reviews', 'guides', 'tips', 'writer', 'episodes', 'listeners'],\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: ['wedding', 'conference', 'festival', 'gala', 'summit', 'event venue', 'wedding venue', 'venue', 'event planner', 'wedding planner', 'event planning', 'reunion', 'trade show', 'expo', 'hackathon', 'convention', 'birthday party', 'banquet', 'party rentals'],\n hints: ['event', 'party', 'meetup', 'retreat', 'workshop', 'planner', 'rsvp', 'tickets', 'celebration', 'guests', 'schedule', 'concert', 'fundraiser'],\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', 'personal trainer', 'personal training', 'trainer', 'crossfit', 'boxing', 'kickboxing', 'martial arts', 'martial', 'karate', 'judo', 'jiu jitsu', 'taekwondo', 'mma', 'pilates', 'bootcamp', 'boot camp', 'sports', 'sport', 'running', 'runner', 'marathon', 'triathlon', 'cycling', 'climbing', 'bouldering', 'dance', 'swim', 'swimming', 'soccer', 'football', 'basketball', 'baseball', 'softball', 'volleyball', 'tennis', 'pickleball', 'golf', 'hockey', 'rugby', 'lacrosse', 'wrestling', 'gymnastics', 'athletics', 'athlete', 'strength training', 'weightlifting', 'powerlifting', 'health club', 'league'],\n hints: ['training', 'team', 'workout', 'coach', 'coaching', 'studio', 'members', 'race', 'game', 'tournament'],\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', 'sound bath', 'sound healing', 'tai chi', 'qigong'],\n hints: ['retreat', 'spa', 'calm', 'studio', 'healing', 'stillness'],\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 salon', 'hair', 'hairdresser', 'hairstylist', 'barber', 'barbershop', 'nails', 'nail salon', 'beauty', 'makeup', 'lashes', 'brows', 'esthetician', 'aesthetician', 'skincare', 'skin care', 'facial', 'waxing', 'tattoo', 'piercing', 'stylist', 'spa', 'day spa', 'med spa', 'blowout'],\n hints: ['studio', 'glam', 'appointments', 'cosmetics'],\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', 'brokerage', 'broker', 'property', 'property management', 'rentals', 'apartment', 'mortgage', 'airbnb', 'vacation rental', 'short term rental', 'listings', 'condo', 'home builder', 'homebuilder'],\n hints: ['homes', 'house', 'buyers', 'sellers', 'vacation', 'cabin', 'neighborhoods', 'investors'],\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', 'online course', 'school', 'tutoring', 'tutor', 'teacher', 'teaching', 'lessons', 'academy', 'education', 'educational', 'learning', 'daycare', 'day care', 'preschool', 'kindergarten', 'music lessons', 'piano lessons', 'driving school', 'driving lessons', 'language school', 'coding bootcamp', 'curriculum', 'homeschool', 'montessori', 'summer camp'],\n hints: ['classes', 'students', 'learn', 'kids', 'training', 'camp', 'workshop', 'beginners'],\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', 'charitable', 'foundation', 'church', 'parish', 'congregation', 'mosque', 'synagogue', 'temple', 'ministry', 'food bank', 'food pantry', 'pantry', 'shelter', 'animal shelter', 'animal rescue', 'rescue', 'volunteer', 'association', 'homeowners association', 'neighborhood association', 'hoa', 'pta', 'pto', 'parent teacher association', 'ngo', 'donate', 'donation', 'fundraising', 'mutual aid', 'community center', 'senior center', 'makerspace', 'hackerspace', 'guild', 'rotary', 'advocacy', 'coalition', 'civic', 'veterans'],\n hints: ['community', 'club', 'group', 'troupe', 'circle', 'society', 'collective', 'members', 'neighbors', 'neighborhood', 'join', 'meetup', 'gathering', 'mission', 'cause', 'together', 'fellowship', 'faith', 'fundraiser', 'residents', 'families'],\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', 'songwriter', 'singer-songwriter', 'rapper', 'music producer', 'recording studio', 'record label', 'orchestra', 'choir', 'composer', 'jazz', 'ensemble', 'quartet', 'pianist', 'guitarist', 'drummer', 'violinist', 'tour dates', 'album', 'live music', 'music artist'],\n hints: ['concert', 'gig', 'tour', 'song', 'shows', 'tracks', 'producer', 'fans', 'listen'],\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 site', 'personal website', 'personal page', 'personal homepage', 'about me', 'resume', 'cv', 'online resume', 'job seeker', 'job search', 'candidate', 'speaker', 'public speaker', 'link in bio'],\n hints: ['me', 'myself', 'profile', 'job', 'career', 'hire', 'recruiters'],\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 page', 'landing', 'app', 'mobile app', 'startup', 'saas', 'software', 'waitlist', 'wait list', 'ebook', 'webinar', 'lead magnet', 'product launch', 'signup page', 'sign-up page'],\n hints: ['product', 'launch', 'campaign', 'offer', 'users', 'download', 'platform', 'tool', 'beta'],\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', 'prelaunch', 'pre-launch', 'under construction', 'placeholder', 'opening soon', 'launching soon'],\n hints: ['soon'],\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\n/** One word as the classifier compares it: lower case, unaccented, singular. */\nconst stem = (word: string): string => {\n if (word.length <= 3) return word\n if (word.endsWith('ies')) return `${word.slice(0, -3)}y`\n if (/(?:ss|x|ch|sh)es$/.test(word)) return word.slice(0, -2)\n if (word.endsWith('s') && !/(?:ss|us|is)$/.test(word)) return word.slice(0, -1)\n return word\n}\n\n/** A text as the classifier's words (\"Cafés & non-profits\" → cafe, &, non, profit). */\nconst tokens = (text: string): string[] =>\n text\n .normalize('NFD')\n .replace(/[̀-ͯ]/g, '')\n .toLowerCase()\n .replace(/'s\\b/g, '')\n .split(/[^a-z0-9&]+/)\n .filter(Boolean)\n .map(stem)\n\n/**\n * Where the head of an answer ends: at its first punctuation or the first\n * word that starts a modifier (\"a bookstore WITH author events\", \"a food blog\n * ABOUT cooking\", \"a pottery studio: stoneware…\"). What comes before is what\n * the site IS; what follows describes it.\n */\nconst HEAD_END = /[:;,.()—–]|\\s-\\s|\\b(?:with|for|about|that|who|which|where|in|on|at|of|offering|selling|serving|near|from|by|to)\\b/i\n\n/**\n * What a match is worth. A specific one-word keyword picks a kind alone; a\n * phrase is worth more than its words (it is the more specific reading, and\n * it claims its words so \"wedding photographer\" never also counts as a\n * wedding); a hint only leans. The last keyword in the head of the answer —\n * its noun — gets a bonus, so the thing the site is beats what it mentions.\n */\nconst KEYWORD_WEIGHT = 3\nconst PHRASE_WEIGHT_PER_WORD = 2\nconst HINT_WEIGHT = 1\nconst HEAD_NOUN_BONUS = 2\n/** A generic head noun with nothing specific said: enough to clear {@link MIN_SCORE} alone, never to beat a keyword. */\nconst HEAD_HINT_BONUS = 1\n/** \"Who it's for\" describes the people, not the site, so it counts half. */\nconst AUDIENCE_SHARE = 0.5\n/** Below this no kind is meant: one stray hint is not a reason to pick a narrow vertical. */\nconst MIN_SCORE = 1.5\n\ninterface AiSiteKindTerm {\n kind: AiSiteKind\n words: readonly string[]\n weight: number\n keyword: boolean\n}\n\n/**\n * Every keyword and hint once per kind (a plural and its singular are one\n * term), longest phrase first so a phrase claims its words before they count\n * alone.\n */\nconst TERMS: readonly AiSiteKindTerm[] = AI_SITE_KINDS.flatMap((kind) => {\n const seen = new Set<string>()\n const terms: AiSiteKindTerm[] = []\n const add = (term: string, keyword: boolean) => {\n const words = tokens(term)\n const key = words.join(' ')\n if (!words.length || seen.has(key)) return\n seen.add(key)\n const weight = !keyword ? HINT_WEIGHT : words.length > 1 ? PHRASE_WEIGHT_PER_WORD * words.length : KEYWORD_WEIGHT\n terms.push({ kind, words, weight, keyword })\n }\n for (const keyword of kind.keywords) add(keyword, true)\n for (const hint of kind.hints) add(hint, false)\n return terms\n}).sort((a, b) => b.words.length - a.words.length)\n\ninterface AiSiteKindScore {\n score: number\n /** Where the kind's last match in the answer ends, in words; -1 for none. */\n at: number\n}\n\n/** One term found in a text, by word position. */\ninterface AiSiteKindMatch {\n kind: AiSiteKind\n end: number\n keyword: boolean\n}\n\n/** Adds what one text says for each kind to `scores`; returns every term it found. */\nfunction aiSiteKindScores(text: string, share: number, scores: Map<AiSiteKind, AiSiteKindScore>): AiSiteKindMatch[] {\n const words = tokens(text)\n const matches: AiSiteKindMatch[] = []\n // Words a longer term has matched; terms of one length share their words\n // (two kinds may both have \"studio\"), and a shorter term never reuses them.\n const claimed = new Array<boolean>(words.length).fill(false)\n const pending = new Set<number>()\n const counted = new Set<AiSiteKindTerm>()\n let length = 0\n for (const term of TERMS) {\n if (term.words.length !== length) {\n length = term.words.length\n for (const index of pending) claimed[index] = true\n pending.clear()\n }\n for (let start = 0; start + term.words.length <= words.length; start++) {\n if (!term.words.every((word, offset) => words[start + offset] === word && !claimed[start + offset])) continue\n const end = start + term.words.length\n for (let index = start; index < end; index++) pending.add(index)\n const entry = scores.get(term.kind) ?? { score: 0, at: -1 }\n if (!counted.has(term)) {\n counted.add(term)\n entry.score += term.weight * share\n }\n entry.at = Math.max(entry.at, end)\n scores.set(term.kind, entry)\n matches.push({ kind: term.kind, end, keyword: term.keyword })\n }\n }\n return matches\n}\n\n/**\n * The kind the head of an answer names, if any. Its last keyword when it has\n * one. When nothing specific is said anywhere, its last generic word that\n * belongs to exactly one kind: \"a pet store\" is a store, \"a writers group\" a\n * community, \"a cooking class studio\" a class (studio says nothing, since\n * four kinds share it). A generic word outside the head never counts here.\n */\nfunction aiSiteHeadKind(head: readonly AiSiteKindMatch[], specific: boolean): AiSiteKind | null {\n const keywords = head.filter((match) => match.keyword)\n if (keywords.length) return keywords.reduce((last, match) => (match.end > last.end ? match : last)).kind\n if (specific) return null\n const ends = [...new Set(head.map((match) => match.end))].sort((a, b) => b - a)\n for (const end of ends) {\n const kinds = new Set(head.filter((match) => match.end === end).map((match) => match.kind))\n if (kinds.size === 1) return [...kinds][0] as AiSiteKind\n }\n return null\n}\n\n/**\n * The kind a \"what kind of site\" answer suggests, read with \"who it's for\"\n * when there is one: the card the guided start selects until the person\n * picks another. Deterministic and local, no model call (AGL-3660).\n *\n * Every kind scores what it finds. A specific keyword (\"roofer\", \"food bank\")\n * is enough alone; a phrase outweighs its words and claims them (\"wedding\n * photographer\" is photography, not events); a generic hint (\"club\",\n * \"studio\", \"classes\", \"shop\") only leans, so \"a neighborhood book club\" is\n * community, built from club + neighborhood + meetups + neighbors, and never\n * fitness on \"club\". The head noun — the last keyword before the answer's\n * first modifier — earns a bonus (\"a bookstore with author events\" is a\n * store); when the answer and audience name nothing specific, a generic head\n * noun that only one kind has may decide (\"a bike shop\" is a store, \"a hiking\n * group\" a community). The audience counts half. The highest score wins; of two equal,\n * the one named later, since English puts the noun last (\"a food blog\" is a\n * blog). A best score of no more than a stray hint, or a tie that order\n * cannot settle, is `business`, the most general kind.\n */\nexport function aiSiteKindFor(siteType: string, audience = ''): AiSiteKind {\n const general = AI_SITE_KINDS[0] as AiSiteKind\n const scores = new Map<AiSiteKind, AiSiteKindScore>()\n const found = aiSiteKindScores(siteType, 1, scores)\n const fromAudience = new Map<AiSiteKind, AiSiteKindScore>()\n if (audience) found.push(...aiSiteKindScores(audience, AUDIENCE_SHARE, fromAudience))\n const head = aiSiteKindScores(siteType.split(HEAD_END)[0] ?? '', 0, new Map())\n const headKind = aiSiteHeadKind(head, found.some((match) => match.keyword))\n const headEntry = headKind ? scores.get(headKind) : undefined\n if (headEntry) headEntry.score += head.some((match) => match.keyword) ? HEAD_NOUN_BONUS : HEAD_HINT_BONUS\n for (const [kind, { score }] of fromAudience) {\n const entry = scores.get(kind) ?? { score: 0, at: -1 }\n entry.score += score\n scores.set(kind, entry)\n }\n let best: { kind: AiSiteKind; score: number; at: number } | null = null\n let tied = false\n for (const [kind, { score, at }] of scores) {\n if (!best || score > best.score || (score === best.score && at > best.at)) {\n tied = false\n best = { kind, score, at }\n } else if (score === best.score && at === best.at) {\n tied = true\n }\n }\n if (!best || best.score < MIN_SCORE || tied) return general\n return best.kind\n}\n\n/** The kind a job's inputs name, else the one its business type and audience suggest; `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 const audience = inputs?.['audience']\n return typeof type === 'string' && type.trim() ? aiSiteKindFor(type, typeof audience === 'string' ? audience : '') : 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","hints","starter","look","bases","chroma","hues","grounds","fonts","corners","buttons","headingScale","density","design","pages","aiSiteKind","find","kind","aiSiteFontPairing","pairing","stem","word","length","endsWith","slice","test","tokens","text","normalize","replace","toLowerCase","split","filter","Boolean","map","HEAD_END","KEYWORD_WEIGHT","PHRASE_WEIGHT_PER_WORD","HINT_WEIGHT","HEAD_NOUN_BONUS","HEAD_HINT_BONUS","AUDIENCE_SHARE","MIN_SCORE","TERMS","flatMap","seen","Set","terms","add","term","keyword","words","key","join","has","push","hint","sort","a","b","aiSiteKindScores","share","scores","matches","claimed","Array","fill","pending","counted","index","clear","start","every","offset","end","entry","get","score","at","Math","max","set","aiSiteHeadKind","head","specific","match","reduce","last","ends","kinds","size","aiSiteKindFor","siteType","audience","general","Map","found","fromAudience","headKind","some","headEntry","undefined","best","tied","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;YAAc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AAsBd,MAA4D;IAChG,MAAMxF,OAAOuF,mBAAmBC;IAChC,MAAM,EAAEa,MAAM,EAAE,GAAGL,kBAAkBR;IACrC,OAAO;WACDxF,OAAO;YAAC,CAAC,SAAS,EAAEA,KAAKpB,KAAK,CAACiC,WAAW,GAAG,OAAO,EAAEb,KAAKJ,MAAM,EAAE;SAAC,GAAG,EAAE;WACzEyG,SAAS;YAAC,CAAC,2BAA2B,EAAET,YAAY,CAACS,OAAO,CAAC,CAAC,CAAC;SAAC,GAAG,EAAE;KAC1E;AACH"}
@@ -103,13 +103,43 @@ export declare function aiSiteSeoTitle(input: {
103
103
  * its trailing clauses; what the site is alone; then what the site is, cut
104
104
  * back the same way. Only when not even the subject fits is it clipped at a
105
105
  * word, never on a dangling one.
106
+ *
107
+ * It reads as one sentence (AGL-3660). The answers are set into it as
108
+ * phrases, not pasted as the person typed them: a real job published
109
+ * "Eastside Book Circle is A neighborhood book club: monthly meetups, the
110
+ * current read, past picks, and a way to join, for Neighbors on the east
111
+ * side." So what the site is stops at a colon (`aiSiteSeoNounPhrase`), each
112
+ * answer set inside the sentence starts in lower case where the person only
113
+ * capitalized it because it began their answer (`aiSiteSeoEmbedded`), and
114
+ * one thing takes an article ("is a neighborhood book club"). A plain noun
115
+ * phrase runs straight on into who it is for; one with clauses of its own
116
+ * keeps the comma, so "for" is not read as part of its last clause.
106
117
  */
107
118
  export declare function aiSiteSeoDescription(input: {
108
119
  name: string;
109
120
  subject: string;
110
121
  about: string;
111
122
  audience: string;
123
+ /** The city the person gave, never lowered where an answer starts with it. */
124
+ city?: string;
112
125
  }): string;
126
+ /**
127
+ * What kind of site it is, as a short noun phrase (AGL-3660): the answer up
128
+ * to a colon, since what follows one is a list of what the site will hold
129
+ * ("A neighborhood book club: monthly meetups, the current read, …"), which
130
+ * is the pages' to say, not the listing's. An answer that is nothing but its
131
+ * list is kept whole.
132
+ */
133
+ export declare function aiSiteSeoNounPhrase(about: string): string;
134
+ /**
135
+ * An answer as a phrase inside a sentence (AGL-3660): its first word in lower
136
+ * case where the person capitalized it only because it began their answer —
137
+ * "Neighbors on the east side" is "neighbors on the east side", "A
138
+ * neighborhood book club" is "a neighborhood book club". A word typed with
139
+ * capitals of its own ("McKinney", "NYC"), a city the person gave, and a
140
+ * capitalized word followed by another ("Eastside Book Club") are left alone.
141
+ */
142
+ export declare function aiSiteSeoEmbedded(phrase: string, keep?: readonly string[]): string;
113
143
  /**
114
144
  * What the listing is built from: either answer may be missing, because the
115
145
  * guided start requires only the first of them.
@@ -182,14 +182,30 @@ import { aiSiteWords } from "./ai-site-job.js";
182
182
  * its trailing clauses; what the site is alone; then what the site is, cut
183
183
  * back the same way. Only when not even the subject fits is it clipped at a
184
184
  * word, never on a dangling one.
185
+ *
186
+ * It reads as one sentence (AGL-3660). The answers are set into it as
187
+ * phrases, not pasted as the person typed them: a real job published
188
+ * "Eastside Book Circle is A neighborhood book club: monthly meetups, the
189
+ * current read, past picks, and a way to join, for Neighbors on the east
190
+ * side." So what the site is stops at a colon (`aiSiteSeoNounPhrase`), each
191
+ * answer set inside the sentence starts in lower case where the person only
192
+ * capitalized it because it began their answer (`aiSiteSeoEmbedded`), and
193
+ * one thing takes an article ("is a neighborhood book club"). A plain noun
194
+ * phrase runs straight on into who it is for; one with clauses of its own
195
+ * keeps the comma, so "for" is not read as part of its last clause.
185
196
  */ export function aiSiteSeoDescription(input) {
186
197
  const max = AI_SITE_SEO_LIMITS.description;
187
- const lead = (what)=>input.name ? `${input.name} is ${what}` : asSubject(what);
188
- const abouts = phraseForms(withoutDangling(input.about.replace(/[.!?]+$/, '')));
189
- const audiences = input.audience ? phraseForms(withoutDangling(input.audience.replace(/[.!?]+$/, ''))) : [];
198
+ const keep = input.city ? [
199
+ input.city
200
+ ] : [];
201
+ const lead = (what)=>input.name ? `${input.name} is ${withArticle(aiSiteSeoEmbedded(what, keep))}` : asSubject(what);
202
+ const abouts = phraseForms(withoutDangling(aiSiteSeoNounPhrase(input.about).replace(/[.!?]+$/, '')));
203
+ const audience = withoutDangling(input.audience.replace(/[.!?]+$/, '').replace(/^for\s+/i, ''));
204
+ const audiences = audience ? phraseForms(audience).map((form)=>aiSiteSeoEmbedded(form, keep)) : [];
190
205
  for (const about of abouts){
191
- for (const audience of audiences){
192
- const text = sentence(`${lead(about)}, for ${audience}`);
206
+ const joint = /[,;(—–]|\s-\s/.test(about) || about.search(PHRASE_BOUNDARY_ONE) > 0 ? ', for ' : ' for ';
207
+ for (const who of audiences){
208
+ const text = sentence(`${lead(about)}${joint}${who}`);
193
209
  if (text.length <= max) return text;
194
210
  }
195
211
  const text = sentence(lead(about));
@@ -197,6 +213,107 @@ import { aiSiteWords } from "./ai-site-job.js";
197
213
  }
198
214
  return clip(sentence(lead(abouts[abouts.length - 1] || input.subject)), max);
199
215
  }
216
+ /** {@link PHRASE_BOUNDARY} without the global flag, for a one-off search. */ const PHRASE_BOUNDARY_ONE = new RegExp(PHRASE_BOUNDARY.source, 'i');
217
+ /**
218
+ * What kind of site it is, as a short noun phrase (AGL-3660): the answer up
219
+ * to a colon, since what follows one is a list of what the site will hold
220
+ * ("A neighborhood book club: monthly meetups, the current read, …"), which
221
+ * is the pages' to say, not the listing's. An answer that is nothing but its
222
+ * list is kept whole.
223
+ */ export function aiSiteSeoNounPhrase(about) {
224
+ const text = about.replace(/\s+/g, ' ').trim();
225
+ const colon = text.indexOf(':');
226
+ const head = colon > 0 ? withoutDangling(text.slice(0, colon).trim()) : '';
227
+ return head || text;
228
+ }
229
+ /**
230
+ * Words an answer opens with that are lowered when it is set inside a
231
+ * sentence: articles and determiners, and the words a "who is it for" answer
232
+ * most often opens with. A word not listed is lowered too where the answer
233
+ * reads in sentence case — its next word in lower case — since that capital
234
+ * only began the person's answer.
235
+ */ const LOWERED_LEADS = new Set([
236
+ 'a',
237
+ 'an',
238
+ 'the',
239
+ 'our',
240
+ 'my',
241
+ 'your',
242
+ 'their',
243
+ 'this',
244
+ 'any',
245
+ 'all',
246
+ 'every',
247
+ 'some',
248
+ 'one',
249
+ 'anyone',
250
+ 'everyone',
251
+ 'people',
252
+ 'folks',
253
+ 'neighbors',
254
+ 'neighbours',
255
+ 'families',
256
+ 'parents',
257
+ 'kids',
258
+ 'children',
259
+ 'adults',
260
+ 'teens',
261
+ 'students',
262
+ 'seniors',
263
+ 'couples',
264
+ 'women',
265
+ 'men',
266
+ 'locals',
267
+ 'residents',
268
+ 'homeowners',
269
+ 'owners',
270
+ 'members',
271
+ 'readers',
272
+ 'customers',
273
+ 'clients',
274
+ 'businesses',
275
+ 'professionals',
276
+ 'local',
277
+ 'small',
278
+ 'busy',
279
+ 'new',
280
+ 'young',
281
+ 'independent',
282
+ 'family',
283
+ 'neighborhood',
284
+ 'neighbourhood'
285
+ ]);
286
+ /**
287
+ * An answer as a phrase inside a sentence (AGL-3660): its first word in lower
288
+ * case where the person capitalized it only because it began their answer —
289
+ * "Neighbors on the east side" is "neighbors on the east side", "A
290
+ * neighborhood book club" is "a neighborhood book club". A word typed with
291
+ * capitals of its own ("McKinney", "NYC"), a city the person gave, and a
292
+ * capitalized word followed by another ("Eastside Book Club") are left alone.
293
+ */ export function aiSiteSeoEmbedded(phrase, keep = []) {
294
+ const text = phrase.replace(/\s+/g, ' ').trim();
295
+ const [first = '', second = ''] = text.split(' ');
296
+ if (!/^[A-Z][a-z'’]*$/.test(first)) return text;
297
+ if (keep.some((word)=>word && text.toLowerCase().startsWith(word.toLowerCase()))) return text;
298
+ const listed = LOWERED_LEADS.has(first.toLowerCase());
299
+ const sentenceCase = !second || /^[a-z0-9]/.test(second);
300
+ if (!listed && !sentenceCase) return text;
301
+ return first.toLowerCase() + text.slice(first.length);
302
+ }
303
+ /** Determiners an embedded noun phrase may already open with. */ const DETERMINERS = /^(?:a|an|the|our|my|your|their|this|one|any|every|each)\b/i;
304
+ /**
305
+ * A noun phrase behind "is" (AGL-3660): "is a neighborhood book club", never
306
+ * "is neighborhood book club". A phrase that opens with its own determiner is
307
+ * kept, and one whose head is plural ("yoga classes and workshops") takes
308
+ * none.
309
+ */ function withArticle(phrase) {
310
+ var _split_filter_pop;
311
+ if (!phrase || DETERMINERS.test(phrase)) return phrase;
312
+ const boundary = phrase.search(PHRASE_BOUNDARY_ONE);
313
+ const head = (_split_filter_pop = (boundary > 0 ? phrase.slice(0, boundary) : phrase).split(/[\s,]+/).filter(Boolean).pop()) != null ? _split_filter_pop : '';
314
+ if (/[^su]s$/i.test(head) && !/ics$/i.test(head)) return phrase;
315
+ return `${/^(?:[aeio]|u(?!ni|s[eu]))/i.test(phrase) ? 'an' : 'a'} ${phrase}`;
316
+ }
200
317
  /**
201
318
  * The leading article dropped and the first letter raised: "a neighborhood
202
319
  * dog groomer" is how a person answers the question and is not how a title
@@ -219,23 +336,27 @@ import { aiSiteWords } from "./ai-site-job.js";
219
336
  * describe no site at all — a job with no `businessType` has nothing to
220
337
  * propose, and an empty proposal is worse than none.
221
338
  */ export function aiSiteSeoProposal(input) {
222
- var _input_about, _input_siteName, _input_audience, _input_about1;
223
- const subject = asSubject((_input_about = input.about) != null ? _input_about : '');
339
+ var _input_about, _input_siteName, _input_audience, _input_city;
340
+ // What the site is, up to a colon (AGL-3660): the list after one belongs to neither value.
341
+ const about = aiSiteSeoNounPhrase((_input_about = input.about) != null ? _input_about : '');
342
+ const subject = asSubject(about);
224
343
  if (!subject) return null;
225
344
  const name = ((_input_siteName = input.siteName) != null ? _input_siteName : '').replace(/\s+/g, ' ').trim();
226
345
  const audience = ((_input_audience = input.audience) != null ? _input_audience : '').replace(/\s+/g, ' ').trim();
346
+ const city = ((_input_city = input.city) != null ? _input_city : '').replace(/\s+/g, ' ').trim();
227
347
  const title = aiSiteSeoTitle({
228
348
  name,
229
349
  subject,
230
- city: input.city
350
+ city
231
351
  });
232
- const about = ((_input_about1 = input.about) != null ? _input_about1 : '').replace(/\s+/g, ' ').trim();
233
- const description = aiSiteSeoDescription({
352
+ const description = aiSiteSeoDescription(_extends({
234
353
  name,
235
354
  subject,
236
355
  about,
237
356
  audience
238
- });
357
+ }, city ? {
358
+ city
359
+ } : {}));
239
360
  return {
240
361
  kind: AI_SITE_SEO_PROPOSAL_KIND,
241
362
  values: {