@aglyn/plugins-ai 1.0.0-beta.253 → 1.0.0-beta.255

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 (87) hide show
  1. package/package.json +17 -17
  2. package/src/lib/components/ai-site-start-card.component.js +16 -8
  3. package/src/lib/components/ai-site-start-card.component.js.map +1 -1
  4. package/src/lib/components/assist-signals-page.component.js +5 -6
  5. package/src/lib/components/assist-signals-page.component.js.map +1 -1
  6. package/src/lib/components/staff-org-ai-card.component.d.ts +0 -10
  7. package/src/lib/components/staff-org-ai-card.component.js +10 -79
  8. package/src/lib/components/staff-org-ai-card.component.js.map +1 -1
  9. package/src/lib/components/staff-org-ai-conversations.component.js +8 -41
  10. package/src/lib/components/staff-org-ai-conversations.component.js.map +1 -1
  11. package/src/lib/components/staff-user-ai-usage-card.component.js +2 -1
  12. package/src/lib/components/staff-user-ai-usage-card.component.js.map +1 -1
  13. package/src/lib/jobs/ai-job-page-language.d.ts +14 -1
  14. package/src/lib/jobs/ai-job-page-language.js +18 -3
  15. package/src/lib/jobs/ai-job-page-language.js.map +1 -1
  16. package/src/lib/jobs/ai-job-page-step.js +17 -3
  17. package/src/lib/jobs/ai-job-page-step.js.map +1 -1
  18. package/src/lib/jobs/ai-job-plan-step.js +17 -7
  19. package/src/lib/jobs/ai-job-plan-step.js.map +1 -1
  20. package/src/lib/jobs/ai-job-site-content.d.ts +32 -16
  21. package/src/lib/jobs/ai-job-site-content.js +43 -20
  22. package/src/lib/jobs/ai-job-site-content.js.map +1 -1
  23. package/src/lib/jobs/ai-job-site-step.d.ts +3 -0
  24. package/src/lib/jobs/ai-job-site-step.js +23 -11
  25. package/src/lib/jobs/ai-job-site-step.js.map +1 -1
  26. package/src/lib/jobs/ai-layout-stock-photos.d.ts +30 -0
  27. package/src/lib/jobs/ai-layout-stock-photos.js +76 -8
  28. package/src/lib/jobs/ai-layout-stock-photos.js.map +1 -1
  29. package/src/lib/jobs/fixtures/ai-dental-site-plan-recording.d.ts +95 -0
  30. package/src/lib/jobs/fixtures/ai-dental-site-plan-recording.js +137 -0
  31. package/src/lib/jobs/fixtures/ai-dental-site-plan-recording.js.map +1 -0
  32. package/src/lib/layout-language/ai-layout-labels.d.ts +2 -0
  33. package/src/lib/layout-language/ai-layout-labels.js +12 -6
  34. package/src/lib/layout-language/ai-layout-labels.js.map +1 -1
  35. package/src/lib/layout-language/ai-layout-pictures.d.ts +12 -3
  36. package/src/lib/layout-language/ai-layout-pictures.js +6 -3
  37. package/src/lib/layout-language/ai-layout-pictures.js.map +1 -1
  38. package/src/lib/model/ai-plan-capabilities.d.ts +5 -0
  39. package/src/lib/model/ai-plan-capabilities.js.map +1 -1
  40. package/src/lib/model/ai-products-bulk.d.ts +48 -0
  41. package/src/lib/model/ai-products-bulk.js +56 -0
  42. package/src/lib/model/ai-products-bulk.js.map +1 -0
  43. package/src/lib/model/ai-products.d.ts +2 -4
  44. package/src/lib/model/ai-products.js +4 -9
  45. package/src/lib/model/ai-products.js.map +1 -1
  46. package/src/lib/model/ai-site-job.d.ts +32 -12
  47. package/src/lib/model/ai-site-job.js +35 -20
  48. package/src/lib/model/ai-site-job.js.map +1 -1
  49. package/src/lib/model/ai-site-kinds.d.ts +5 -5
  50. package/src/lib/model/ai-site-kinds.js +5 -5
  51. package/src/lib/model/ai-site-kinds.js.map +1 -1
  52. package/src/lib/providers/anthropic.js +26 -5
  53. package/src/lib/providers/anthropic.js.map +1 -1
  54. package/src/lib/providers/contract.d.ts +10 -0
  55. package/src/lib/providers/contract.js.map +1 -1
  56. package/src/lib/runtime/ai-doctrine-validators.d.ts +20 -0
  57. package/src/lib/runtime/ai-doctrine-validators.js +53 -1
  58. package/src/lib/runtime/ai-doctrine-validators.js.map +1 -1
  59. package/src/lib/runtime/ai-doctrine.d.ts +11 -0
  60. package/src/lib/runtime/ai-doctrine.js +9 -4
  61. package/src/lib/runtime/ai-doctrine.js.map +1 -1
  62. package/src/lib/runtime/ai-runtime.d.ts +6 -0
  63. package/src/lib/runtime/ai-runtime.js +10 -0
  64. package/src/lib/runtime/ai-runtime.js.map +1 -1
  65. package/src/lib/server/ai-admin-conversations.d.ts +2 -0
  66. package/src/lib/server/ai-admin-conversations.js +40 -7
  67. package/src/lib/server/ai-admin-conversations.js.map +1 -1
  68. package/src/lib/server/ai-admin-org.js +28 -2
  69. package/src/lib/server/ai-admin-org.js.map +1 -1
  70. package/src/lib/server/ai-admin-orgs-spend.js +19 -1
  71. package/src/lib/server/ai-admin-orgs-spend.js.map +1 -1
  72. package/src/lib/server/ai-admin-signals.js +11 -3
  73. package/src/lib/server/ai-admin-signals.js.map +1 -1
  74. package/src/lib/server/ai-admin-user.js +11 -1
  75. package/src/lib/server/ai-admin-user.js.map +1 -1
  76. package/src/lib/usage/ai-usage-wire.d.ts +5 -2
  77. package/src/lib/usage/ai-usage-wire.js +5 -2
  78. package/src/lib/usage/ai-usage-wire.js.map +1 -1
  79. package/src/lib/usage/assist-signals-view.d.ts +123 -0
  80. package/src/lib/usage/assist-signals-view.js +151 -0
  81. package/src/lib/usage/assist-signals-view.js.map +1 -0
  82. package/src/lib/usage/staff-org-ai-conversations-view.d.ts +51 -0
  83. package/src/lib/usage/staff-org-ai-conversations-view.js +127 -0
  84. package/src/lib/usage/staff-org-ai-conversations-view.js.map +1 -0
  85. package/src/lib/usage/staff-org-ai-view.d.ts +181 -0
  86. package/src/lib/usage/staff-org-ai-view.js +263 -0
  87. package/src/lib/usage/staff-org-ai-view.js.map +1 -0
@@ -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 /**\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: 'A storefront, like a designer shop theme: a hero that sells, its picture the product itself and its first button Shop all; the bestsellers, which the platform lists with their photos, prices and add to cart; the range by collection as picture tiles; the brand story beside a photo; why buy here as three or four short items each with an icon (shipping, small batch, returns, only as the brief gives them); the store\\'s customer reviews, which the platform shows once shoppers leave them; and a newsletter sign-up to close. Keep copy short and let images lead; never draw the products themselves as cards of your own, and never a band of text alone.',\n pages: 'Home as a storefront: a hero, then sections named \"Bestsellers\", \"Shop by collection\" (3 or 4 items), the story, why buy here (3 or 4 items), \"Customer reviews\" and \"Newsletter sign-up\" last. Shop at /shop: a short title section, then \"Product grid\" second (the platform lists the real products there, with sort, filters, photos, prices and the cart). About, and Contact. Plan no checkout or cart 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', 'folk band', 'rock band', 'punk band', 'metal band', 'country band', 'bluegrass band', 'cover band', 'wedding band', 'party band', 'duo', 'trio', 'hip hop', 'hip hop artist', 'rap', 'mixtape', 'ep', 'gig', 'discography', 'setlist', 'bandcamp'],\n hints: ['folk', 'indie', 'bluegrass', 'punk', 'metal', 'record', 'concert', '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, a listen section where the platform places a music player for the artist’s own tracks, 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. Never name or link songs by other artists.',\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|booking|touring|playing|performing)\\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). Tricky ones, decided: a band that sells merch is music (the band is\n * the head and the merch only a mention); booking a DJ is music; a music\n * teacher or music lessons are education; a guitar shop or band merch store\n * is a store. 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;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;QA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S;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. The site job also writes\n * a blog's first posts into a content collection (one on the Free taste,\n * AGL-3798) and, on a paid plan, a store's first products as unpriced drafts\n * (AGL-3676, `jobs/ai-job-site-content.ts`), and the pages are told their\n * titles. 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: 'A storefront, like a designer shop theme: a hero that sells, its picture the product itself and its first button Shop all; the bestsellers, which the platform lists with their photos, prices and add to cart; the range by collection as picture tiles; the brand story beside a photo; why buy here as three or four short items each with an icon (shipping, small batch, returns, only as the brief gives them); the store\\'s customer reviews, which the platform shows once shoppers leave them; and a newsletter sign-up to close. Keep copy short and let images lead; never draw the products themselves as cards of your own, and never a band of text alone.',\n pages: 'Home as a storefront: a hero, then sections named \"Bestsellers\", \"Shop by collection\" (3 or 4 items), the story, why buy here (3 or 4 items), \"Customer reviews\" and \"Newsletter sign-up\" last. Shop at /shop: a short title section, then \"Product grid\" second (the platform lists the real products there, with sort, filters, photos, prices and the cart). About, and Contact. Plan no checkout or cart 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', 'folk band', 'rock band', 'punk band', 'metal band', 'country band', 'bluegrass band', 'cover band', 'wedding band', 'party band', 'duo', 'trio', 'hip hop', 'hip hop artist', 'rap', 'mixtape', 'ep', 'gig', 'discography', 'setlist', 'bandcamp'],\n hints: ['folk', 'indie', 'bluegrass', 'punk', 'metal', 'record', 'concert', '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, a listen section where the platform places a music player for the artist’s own tracks, 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. Never name or link songs by other artists.',\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|booking|touring|playing|performing)\\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). Tricky ones, decided: a band that sells merch is music (the band is\n * the head and the merch only a mention); booking a DJ is music; a music\n * teacher or music lessons are education; a guitar shop or band merch store\n * is a store. 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;YAAcI,SAAS;gBAAC;gBAAK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BAAgB2H,QAAQ,CAACF,KAAK,CAAC,SAAS,IAAoB;QAAEG,QAAQH,KAAK,CAAC,SAAS;IAAiB,IAAI,CAAC;AAEnH;AAEA,4GAA4G,GAC5G,OAAO,SAASI,sBAAsBd,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"}
@@ -135,9 +135,10 @@ const ANTHROPIC_VERSION = '2023-06-01';
135
135
  */ export function buildAnthropicRequestBody(input) {
136
136
  var _input_effort, _ANTHROPIC_THINKING_OFF_input_model;
137
137
  var _input_tools, _aiCatalogEntry;
138
- const breakpoints = input.system.filter((block)=>block.cacheBreakpoint);
139
- if (breakpoints.length > ANTHROPIC_MAX_CACHE_BREAKPOINTS) {
140
- throw new Error(`${breakpoints.length} cache breakpoints; the Messages API allows ${ANTHROPIC_MAX_CACHE_BREAKPOINTS}`);
138
+ const conversation = Boolean(input.cacheConversation) && input.messages.length > 0;
139
+ const breakpoints = input.system.filter((block)=>block.cacheBreakpoint).length + (conversation ? 1 : 0);
140
+ if (breakpoints > ANTHROPIC_MAX_CACHE_BREAKPOINTS) {
141
+ throw new Error(`${breakpoints} cache breakpoints; the Messages API allows ${ANTHROPIC_MAX_CACHE_BREAKPOINTS}`);
141
142
  }
142
143
  // One lifetime for every breakpoint: the API refuses a longer-lived entry
143
144
  // after a shorter one, and a request asks for one or the other.
@@ -188,9 +189,9 @@ const ANTHROPIC_VERSION = '2023-06-01';
188
189
  } : {}, system.length ? {
189
190
  system
190
191
  } : {}, {
191
- messages: input.messages.map((message)=>({
192
+ messages: input.messages.map((message, index)=>({
192
193
  role: message.role,
193
- content: anthropicContentOf(message)
194
+ content: conversation ? anthropicBlocksOf(message, index === input.messages.length - 1 ? cacheControl : null) : anthropicContentOf(message)
194
195
  }))
195
196
  }, (tools == null ? void 0 : tools.length) ? {
196
197
  tools,
@@ -217,6 +218,26 @@ const ANTHROPIC_VERSION = '2023-06-01';
217
218
  text: part.text
218
219
  });
219
220
  }
221
+ /**
222
+ * A turn as content blocks whatever its shape, the last block carrying the
223
+ * conversation's breakpoint when it is the request's last turn (AGL-3809).
224
+ * Every turn of a request that caches its conversation is sent as blocks, so
225
+ * a turn reads the same on the call that marked it and on every call after,
226
+ * where it is no longer last.
227
+ */ function anthropicBlocksOf(message, cacheControl) {
228
+ const content = anthropicContentOf(message);
229
+ const blocks = typeof content === 'string' ? [
230
+ {
231
+ type: 'text',
232
+ text: content
233
+ }
234
+ ] : content;
235
+ if (!cacheControl || !blocks.length) return blocks;
236
+ const last = blocks.length - 1;
237
+ return blocks.map((block, index)=>index === last ? _extends({}, block, {
238
+ cache_control: cacheControl
239
+ }) : block);
240
+ }
220
241
  /** The provider's request id, when it sent one — the log's join key. */ function requestIdOf(response) {
221
242
  var _ref;
222
243
  var _response_headers_get, _response_headers;