create-ailk 0.46.2 → 0.46.3

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.
@@ -9,7 +9,7 @@
9
9
  "importPath": "@working-theory/ui/sections",
10
10
  "rootBarrel": "@working-theory/ui",
11
11
  "sourceRoot": "packages/ui/src/sections",
12
- "count": 60
12
+ "count": 61
13
13
  },
14
14
  {
15
15
  "name": "blocks",
@@ -551,6 +551,17 @@
551
551
  "descriptionGrade": "strong",
552
552
  "sectionType": null
553
553
  },
554
+ {
555
+ "name": "MagnetSection",
556
+ "tier": "sections",
557
+ "sourcePath": "packages/ui/src/sections/MagnetSection.tsx",
558
+ "importPath": "@working-theory/ui/sections",
559
+ "exported": false,
560
+ "description": "A stored magnet inside an ordinary page — the magnet's own title card (its landing title, description, Start button and time line), whose Start opens the magnet's walk over the page with its own steps, scoring and ending, recording the same lead as the magnet's own page. Use it to build a landing page (headline, proof, FAQ) around a multi-step magnet.",
561
+ "descriptionSource": "registry",
562
+ "descriptionGrade": "strong",
563
+ "sectionType": "magnet"
564
+ },
554
565
  {
555
566
  "name": "MediaBand",
556
567
  "tier": "sections",
@@ -3405,7 +3416,7 @@
3405
3416
  "tier": "scheduling-sections",
3406
3417
  "sourcePath": "packages-paid/ui-scheduling/src/sections/BookerIsland.tsx",
3407
3418
  "importPath": "@working-theory/ui-scheduling",
3408
- "exported": false,
3419
+ "exported": true,
3409
3420
  "description": "The island owns exactly two things: the state machine, and the two calls across the scheduling seam. It talks to `/v1/schedule/availability` and `/v1/schedule/book` — never to a provider — so the day this deploy flips to the self-hosted engine, nothing in this file changes.",
3410
3421
  "descriptionSource": "doc-comment",
3411
3422
  "descriptionGrade": "strong",
@@ -7359,7 +7370,7 @@
7359
7370
  },
7360
7371
  "levels": {
7361
7372
  "minItems": 1,
7362
- "maxItems": 4,
7373
+ "maxItems": 20,
7363
7374
  "type": "array",
7364
7375
  "items": {
7365
7376
  "type": "object",
@@ -7372,6 +7383,9 @@
7372
7383
  "key": {
7373
7384
  "type": "string"
7374
7385
  },
7386
+ "description": {
7387
+ "type": "string"
7388
+ },
7375
7389
  "price": {
7376
7390
  "type": "object",
7377
7391
  "properties": {
@@ -7438,6 +7452,16 @@
7438
7452
  },
7439
7453
  "annualCtaHref": {
7440
7454
  "type": "string"
7455
+ },
7456
+ "helper": {
7457
+ "type": "string",
7458
+ "minLength": 1,
7459
+ "maxLength": 40
7460
+ },
7461
+ "detail": {
7462
+ "type": "string",
7463
+ "minLength": 1,
7464
+ "maxLength": 24
7441
7465
  }
7442
7466
  },
7443
7467
  "required": [
@@ -7447,6 +7471,18 @@
7447
7471
  "cta"
7448
7472
  ]
7449
7473
  }
7474
+ },
7475
+ "levelSwitchControl": {
7476
+ "type": "string",
7477
+ "enum": [
7478
+ "segments",
7479
+ "select"
7480
+ ]
7481
+ },
7482
+ "levelHelper": {
7483
+ "type": "string",
7484
+ "minLength": 1,
7485
+ "maxLength": 40
7450
7486
  }
7451
7487
  },
7452
7488
  "required": [
@@ -7476,6 +7512,14 @@
7476
7512
  "billingToggle": {
7477
7513
  "type": "boolean"
7478
7514
  },
7515
+ "hideBillingToggle": {
7516
+ "type": "boolean"
7517
+ },
7518
+ "offeringCollection": {
7519
+ "type": "string",
7520
+ "minLength": 1,
7521
+ "maxLength": 40
7522
+ },
7479
7523
  "eyebrow": {
7480
7524
  "type": "string"
7481
7525
  },
@@ -8046,9 +8090,30 @@
8046
8090
  "type": "string",
8047
8091
  "enum": [
8048
8092
  "own-row",
8049
- "title-row"
8093
+ "title-row",
8094
+ "beside-price",
8095
+ "above-button"
8050
8096
  ]
8051
8097
  },
8098
+ "levelSwitchControl": {
8099
+ "type": "string",
8100
+ "enum": [
8101
+ "segments",
8102
+ "select"
8103
+ ]
8104
+ },
8105
+ "levelSwitchDetail": {
8106
+ "type": "string",
8107
+ "enum": [
8108
+ "price"
8109
+ ]
8110
+ },
8111
+ "showLevelHeading": {
8112
+ "type": "boolean"
8113
+ },
8114
+ "separateTiers": {
8115
+ "type": "boolean"
8116
+ },
8052
8117
  "offeringGroups": {
8053
8118
  "minItems": 1,
8054
8119
  "maxItems": 4,
@@ -8070,7 +8135,7 @@
8070
8135
  },
8071
8136
  "levels": {
8072
8137
  "minItems": 2,
8073
- "maxItems": 4,
8138
+ "maxItems": 20,
8074
8139
  "type": "array",
8075
8140
  "items": {
8076
8141
  "type": "object",
@@ -8090,6 +8155,13 @@
8090
8155
  "plan"
8091
8156
  ]
8092
8157
  }
8158
+ },
8159
+ "levelSwitchControl": {
8160
+ "type": "string",
8161
+ "enum": [
8162
+ "segments",
8163
+ "select"
8164
+ ]
8093
8165
  }
8094
8166
  },
8095
8167
  "required": [
@@ -8245,7 +8317,11 @@
8245
8317
  "surface",
8246
8318
  "bandSurface",
8247
8319
  "collapseFeaturesOnMobile",
8248
- "levelSwitchPlacement"
8320
+ "levelSwitchPlacement",
8321
+ "hideBillingToggle",
8322
+ "levelSwitchControl",
8323
+ "levelSwitchDetail",
8324
+ "showLevelHeading"
8249
8325
  ]
8250
8326
  },
8251
8327
  {
@@ -13019,6 +13095,28 @@
13019
13095
  "surface"
13020
13096
  ]
13021
13097
  },
13098
+ {
13099
+ "type": "magnet",
13100
+ "component": "MagnetSection",
13101
+ "whenToUse": "A stored magnet inside an ordinary page — the magnet's own title card (its landing title, description, Start button and time line), whose Start opens the magnet's walk over the page with its own steps, scoring and ending, recording the same lead as the magnet's own page. Use it to build a landing page (headline, proof, FAQ) around a multi-step magnet. Author only `slug`, which must name one of the workspace's magnets: the hub refuses a save naming a slug it does not have. A draft, missing or deliverable magnet renders nothing until it can be shown. Not for a flow typed into the page — that is `step-flow`.",
13102
+ "schema": {
13103
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
13104
+ "type": "object",
13105
+ "properties": {
13106
+ "slug": {
13107
+ "type": "string",
13108
+ "minLength": 1,
13109
+ "maxLength": 59,
13110
+ "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$"
13111
+ }
13112
+ },
13113
+ "required": [
13114
+ "slug"
13115
+ ]
13116
+ },
13117
+ "schemaError": null,
13118
+ "look": []
13119
+ },
13022
13120
  {
13023
13121
  "type": "booker",
13024
13122
  "component": "Booker",
@@ -15,13 +15,13 @@ The component inventory of `@working-theory/ui` and the shells of `@working-theo
15
15
  3. Check the Primitives, Panels and Shells tables too — a low-level control, a collapsible layout container, or a route-level frame lives there, not under Sections or Blocks.
16
16
  4. Only then build. If you do build, you are declaring the capability is genuinely absent.
17
17
 
18
- Inventory: **334 component files** across 16 tiers — 60 sections, 112 blocks, 20 chrome, 82 primitives, 6 panels, 8 shells, 5 docs-blog-blocks, 1 docs-blog-chrome, 2 docs-blog-shells, 2 scheduling-sections, 6 scheduling-blocks, 5 signal-collectors-sections, 9 signal-collectors-blocks, 2 commerce-sections, 13 commerce-blocks, 1 commerce-panels. 331 distinct names: `SchedulerEmbed`, `Separator`, `Tabs` exist in more than one tier as genuinely different components, listed once per tier with its own source path.
18
+ Inventory: **335 component files** across 16 tiers — 61 sections, 112 blocks, 20 chrome, 82 primitives, 6 panels, 8 shells, 5 docs-blog-blocks, 1 docs-blog-chrome, 2 docs-blog-shells, 2 scheduling-sections, 6 scheduling-blocks, 5 signal-collectors-sections, 9 signal-collectors-blocks, 2 commerce-sections, 13 commerce-blocks, 1 commerce-panels. 332 distinct names: `SchedulerEmbed`, `Separator`, `Tabs` exist in more than one tier as genuinely different components, listed once per tier with its own source path.
19
19
 
20
- Description coverage: **330/334** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 250 from the component's own doc-comment header, 35 from its tier barrel's roster line. **4** have none; they are listed under [Undescribed components](#undescribed-components) rather than given a sentence invented from their name.
20
+ Description coverage: **331/335** components carry a capability description derived from source — 46 from the section registry's hand-authored when-to-use text, 250 from the component's own doc-comment header, 35 from its tier barrel's roster line. **4** have none; they are listed under [Undescribed components](#undescribed-components) rather than given a sentence invented from their name.
21
21
 
22
- Of those, **296** are *strong* — a capability sentence you could match a requirement against — and **34** are *weak*: either one short clause, or a long one that spends itself on wiring (client boundaries, class names, which primitives it composes) instead of on what the thing is for. Weak rows are marked `(weak)` and listed in full under [Weak descriptions](#weak-descriptions). Coverage is 99%, but **findable-without-luck coverage is 89%**.
22
+ Of those, **297** are *strong* — a capability sentence you could match a requirement against — and **34** are *weak*: either one short clause, or a long one that spends itself on wiring (client boundaries, class names, which primitives it composes) instead of on what the thing is for. Weak rows are marked `(weak)` and listed in full under [Weak descriptions](#weak-descriptions). Coverage is 99%, but **findable-without-luck coverage is 89%**.
23
23
 
24
- Per tier, strong out of total: **Sections** 59/60 · **Blocks** 103/112 · **Chrome** 11/20 · **Primitives** 67/82 (4 undescribed) · **Panels** 6/6 · **Shells** 7/8 · **Docs + Blog Blocks** 5/5 · **Docs + Blog Chrome** 1/1 · **Docs + Blog Shells** 0/2 · **Scheduling Sections** 2/2 · **Scheduling Blocks** 6/6 · **Signal-Collectors Sections** 5/5 · **Signal-Collectors Blocks** 8/9 · **Commerce Sections** 2/2 · **Commerce Blocks** 13/13 · **Commerce Panels** 1/1. A tier low on this line is a tier where a capability search is most likely to come up empty on something that exists.
24
+ Per tier, strong out of total: **Sections** 60/61 · **Blocks** 103/112 · **Chrome** 11/20 · **Primitives** 67/82 (4 undescribed) · **Panels** 6/6 · **Shells** 7/8 · **Docs + Blog Blocks** 5/5 · **Docs + Blog Chrome** 1/1 · **Docs + Blog Shells** 0/2 · **Scheduling Sections** 2/2 · **Scheduling Blocks** 6/6 · **Signal-Collectors Sections** 5/5 · **Signal-Collectors Blocks** 8/9 · **Commerce Sections** 2/2 · **Commerce Blocks** 13/13 · **Commerce Panels** 1/1. A tier low on this line is a tier where a capability search is most likely to come up empty on something that exists.
25
25
 
26
26
  That grade is **mechanical**. It counts what it can measure — how much a description adds beyond the component's own name, how much of it is spent on wiring, whether the extraction came out damaged — and it cannot tell a fluent paragraph about the wrong subject from a useful one. A person reading these tables will find more rows unusable than the weak count admits. Treat it as a floor on the problem, not a measurement of it, and read the source before concluding a capability is absent.
27
27
 
@@ -53,7 +53,7 @@ The left column is search vocabulary — how a person phrases the need. It is ha
53
53
 
54
54
  ---
55
55
 
56
- ## Sections (60)
56
+ ## Sections (61)
57
57
 
58
58
  Page-level content bands. Most are MDX-driven (authored by `type` in page frontmatter and dispatched by `SectionRenderer`); a few are composed directly in a route.
59
59
 
@@ -98,6 +98,7 @@ Import: `import { X } from "@working-theory/ui/sections";` (or from the `@workin
98
98
  | `ItemsFilterIsland` | A search box and facet selects over an items section's cards. Items (a Server Component) renders every card on the server and wraps each in an `ItemsFilterSlot`; the island only decides which slots show. So every card is in the server HTML, and before hydration (or with no JavaScript) every slot is visible. | internal — compose from `packages/ui/src/sections/ItemsFilterIsland.tsx` |
99
99
  | `ItemsTileLinkIsland` | Makes a whole linked tile card its link's click target. | internal — compose from `packages/ui/src/sections/ItemsTileLinkIsland.tsx` |
100
100
  | `LogoCloud` | A customer/partner logo wall — use for trust-by-association social proof. | MDX `type: logoCloud` · `import { LogoCloud } from "@working-theory/ui/sections"` |
101
+ | `MagnetSection` | A stored magnet inside an ordinary page — the magnet's own title card (its landing title, description, Start button and time line), whose Start opens the magnet's walk over the page with its own steps, scoring and ending, recording the same lead as the magnet's own page. Use it to build a landing page (headline, proof, FAQ) around a multi-step magnet. | MDX `type: magnet` |
101
102
  | `MDXContent` | The keystone the docs route and blog both render their compiled MDX through. | `import { MDXContent } from "@working-theory/ui/sections"` |
102
103
  | `MediaBand` | A single full-width image band — use for the 1-up visual moment Gallery's 2-column minimum can't express (e.g. between pricing plan columns); renders a labeled placeholder until a real image is supplied. | MDX `type: media-band` · `import { MediaBand } from "@working-theory/ui/sections"` |
103
104
  | `ModuleAbsent` | What a slice section renders when its module is not here. The oss dispatch table must name a component for every `SectionName`, and `booker`'s real component strips with the scheduling slice. This is the entry it names instead; a slice that IS installed registers over it through `registerSliceRenderer`. | internal — compose from `packages/ui/src/sections/ModuleAbsent.tsx` |
@@ -457,7 +458,7 @@ Import: `import { X } from "@working-theory/ui-scheduling";` (or from the `@work
457
458
  | Component | What it does | How to use it |
458
459
  | --- | --- | --- |
459
460
  | `Booker` | The custom booker — use on a scheduling page where the whole see-days/pick-slot/confirm transaction should land in the page itself rather than a provider iframe (the `scheduler-embed` alternative). Authors supply only `calLink` plus optional eyebrow/headline framing; duration, meeting type, and timezone are DERIVED from the calendar via /v1/schedule/availability and can never be typed into content. | MDX `type: booker` · `import { Booker } from "@working-theory/ui-scheduling"` |
460
- | `BookerIsland` | The island owns exactly two things: the state machine, and the two calls across the scheduling seam. It talks to `/v1/schedule/availability` and `/v1/schedule/book` — never to a provider — so the day this deploy flips to the self-hosted engine, nothing in this file changes. | internal — compose from `packages-paid/ui-scheduling/src/sections/BookerIsland.tsx` |
461
+ | `BookerIsland` | The island owns exactly two things: the state machine, and the two calls across the scheduling seam. It talks to `/v1/schedule/availability` and `/v1/schedule/book` — never to a provider — so the day this deploy flips to the self-hosted engine, nothing in this file changes. | `import { BookerIsland } from "@working-theory/ui-scheduling"` |
461
462
 
462
463
  ---
463
464
 
package/dist/surfaces.js CHANGED
@@ -102,7 +102,7 @@ const SITE_PAGES_PREFIXES = [
102
102
  "working-agreement",
103
103
  ];
104
104
  const SITE_PAGES_PAGES = [
105
- "(authed)/leads", "[slug]", "[slug]/[detail]", "about", "about/[slug]", "alternatives",
105
+ "(authed)/leads", "[slug]", "[slug]/[detail]", "[slug]/[detail]/[...rest]", "about", "about/[slug]", "alternatives",
106
106
  "careers", "careers/[slug]", "careers/[slug]/[action]", "case-studies", "case-studies/[slug]",
107
107
  "clients", "contact", "courses", "courses/[slug]", "events", "events/[slug]", "faq", "features",
108
108
  "features/[slug]", "for", "for/[slug]", "glossary", "how-to", "how-to/[slug]", "integrations",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ailk",
3
- "version": "0.46.2",
3
+ "version": "0.46.3",
4
4
  "description": "Scaffolder for AI Launch Kit — `pnpm create ailk@latest <dir>` produces a starter repo consuming @working-theory/* from npm (per ADR 0007).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "tar": "^7.5.21"
29
29
  },
30
30
  "devDependencies": {
31
- "@working-theory/schema": "0.76.0",
32
- "@working-theory/templates": "0.76.0"
31
+ "@working-theory/schema": "0.77.0",
32
+ "@working-theory/templates": "0.77.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -68,7 +68,7 @@ Don't ship a page after one render. The expected per-page loop:
68
68
 
69
69
  ## Where the base pages live
70
70
 
71
- **The base website's pages ship in `@working-theory/site-pages` (#11259, ADR 0040 phase 4).** The home page and the 62 pages under the 38 base directories (`[slug]`, `about`, … `working-agreement`, `(authed)/leads`) — with the actions, loaders and libs only they read (`hub-children`, `route-family`, `service-listing`, `template-listing`, `meet-placeholder`, `posting-title`, `lead-write`) and their tests — live in `packages/site-pages/src/{pages,lib}/`, at the paths they had here. This app's `app/[locale]/` holds only the 63 route files `create-ailk routes --write` generates from the package's `routes.json` — never hand-edited, pinned by `routes --check` — plus the module routes under those directories (`careers/apply` and `careers/[slug]/apply`, generated from `@working-theory/ui-signal-collectors` since #11657; `projects/apply`) and `contact/error.tsx`. The package reads the site through one typed file, `site-pages.config.tsx`, whose `site` export answers the `@working-theory/site-pages/site` seam (`next.config.mjs` and `jest.config.cjs` alias it); no page takes a customization option. The ten namespaces those pages read ship in the package (`sitePagesMessages`), merged under this app's catalog by `i18n/request.ts`; a key in `messages/en.json` is an override. `lib/site-contact-email.ts` and `lib/site-contact-lines.ts` (the `_site.mdx` readers the layout and the module pages share) stay the site's. The sections below name the pages by their old `app/[locale]/` place.
71
+ **The base website's pages ship in `@working-theory/site-pages` (#11259, ADR 0040 phase 4).** The home page and the 64 pages under the 39 base directories (`[slug]`, `about`, … `working-agreement`, `(authed)/leads`) — with the actions, loaders and libs only they read (`hub-children`, `route-family`, `service-listing`, `template-listing`, `meet-placeholder`, `posting-title`, `lead-write`) and their tests — live in `packages/site-pages/src/{pages,lib}/`, at the paths they had here. This app's `app/[locale]/` holds only the 65 route files `create-ailk routes --write` generates from the package's `routes.json` — never hand-edited, pinned by `routes --check` — plus the module routes under those directories (`careers/apply` and `careers/[slug]/apply`, generated from `@working-theory/ui-signal-collectors` since #11657; `projects/apply`) and `contact/error.tsx`. The package reads the site through one typed file, `site-pages.config.tsx`, whose `site` export answers the `@working-theory/site-pages/site` seam (`next.config.mjs` and `jest.config.cjs` alias it); no page takes a customization option. The ten namespaces those pages read ship in the package (`sitePagesMessages`), merged under this app's catalog by `i18n/request.ts`; a key in `messages/en.json` is an override. `lib/site-contact-email.ts` and `lib/site-contact-lines.ts` (the `_site.mdx` readers the layout and the module pages share) stay the site's. The sections below name the pages by their old `app/[locale]/` place.
72
72
 
73
73
  ## The `(auth)` route group — which predicate an affordance keys on
74
74
 
@@ -556,6 +556,49 @@ Every multi-step magnet is a page pair (#8840), rendered by one module,
556
556
  (#8840)` marker, which `lib/__tests__/structured-data.test.tsx` exempts
557
557
  from its `renderPage` check. A site adds a magnet by binding a pair to a
558
558
  slug, never by copying stepper code.
559
+ - **An owner-chosen address (#12204).** A magnet whose `landingPage` is an
560
+ address — `magnetAddressOf` (`@working-theory/validation`): one or two
561
+ lower-case kebab segments, no reserved first segment, not a listicle's list
562
+ page and not a built-in page that mounts it (`/contact`, `/newsletter`,
563
+ `/trial`, `/careers`) — is served there: its cover at `/<address>`, its walk
564
+ at `/<address>/start` (chrome-free by `isMagnetWalkPath`'s `start` rule), its
565
+ verify page and its `results/<payload>`. `lib/magnet-addresses.ts` is the one
566
+ reader of the hub's table, `GET /v1/flow-addresses` (`flows.addresses()`):
567
+ shared per instance for 15 seconds, a failed read held for that window and
568
+ answered with the last good table, an older hub's 404 read as none, and no
569
+ read at all on a site without `@working-theory/ui-signal-collectors`. It
570
+ serves an address only when nothing on the site claims it first — a static
571
+ route, a reserved segment, an enabled locale, the docs or services base, a
572
+ renamed family, a `LandingPage` or `BlogList` at its first segment, or,
573
+ under the database adapter, a recorded page redirect. The `[slug]`,
574
+ `[slug]/[detail]` and `[slug]/[detail]/[...rest]` pages ask
575
+ `site.magnetAddress` (`site-pages.config.tsx`) only after their own reads
576
+ miss, so a content page always wins. `/flows/<slug>` and its children
577
+ forward to the same child under the address, query kept
578
+ (`site.servedMagnetAddress`, `signal-collectors.config.tsx`); the cover's
579
+ canonical is the address; `/sitemap.xml` and both `/llms.txt` copies list
580
+ it, the hub-listed (visitor) magnets only, and never `/flows/<slug>`
581
+ (`getMagnetAddresses`, default `servedAddresses`). A changed address 404s at
582
+ its old path once the window passes; `/flows/<slug>` always leads to the
583
+ current one.
584
+ - **A magnet inside a page (#12205).** A page section `{ type: "magnet",
585
+ data: { slug } }`, on any page type that takes sections, shows that magnet's
586
+ title card (its landing title, description, Start and time line) between
587
+ the page's own sections; Start opens the magnet's walk — `FlowStepperClient`,
588
+ as `/flows/<slug>/start` mounts it, booking calendar included — in the
589
+ takeover window over the page, at the page's URL, with every other child of
590
+ `<body>` inert, and Esc or the exit closes it in place. Its ending,
591
+ thank-you page and lead are the magnet's own. `renderPage` asks the renderer
592
+ `lib/in-page-magnet.ts` registers (`setMagnetSectionRenderer`) once per slug
593
+ and puts its node into the section through `sectionSlots`; that renderer
594
+ reads the magnet through `readServedMagnet` (15 s share, 2,000 ms deadline;
595
+ page-renderer's backstop is 3,000 ms) and loads `MagnetSectionClient` and
596
+ `bookingStepElement` through `loadUiSignalCollectors()`. A missing, draft or
597
+ deliverable magnet, a body that is not a served flow, a site without the
598
+ package, or any failure removes the section — never a broken form — and a
599
+ page with no `magnet` section reads nothing. The hub refuses a save naming
600
+ a slug the workspace has no magnet at (a slug the draft already holds is
601
+ not re-checked).
559
602
  - **The recommender's landing (#9071).** A recommending flow with an offer
560
603
  carrying `lookupKey` (an Offerings recommender, such as the standard
561
604
  `recommender` magnet the Admin's Offerings page opens) never renders its
@@ -693,6 +736,85 @@ key), so the page names none. It renders one of three pages:
693
736
  only). An unconnected page renders the authored `plans` and reads neither
694
737
  field. The schema refuses both fields on a section that is not
695
738
  `source: offerings`.
739
+ - **Cards built from Stripe (#12193).** A bound section that names no plans
740
+ — no `offeringPlans`, no `offeringGroups` — builds its cards from Stripe
741
+ metadata alone: plain plans sharing an `ailk_tier` become one level card
742
+ titled with the tier, each level labelled by its `ailk_level`, ordered by
743
+ `ailk_order` and described by its own Stripe description (a level with none
744
+ shows none); a plan with no tier is titled `ailk_name ?? name`, on every
745
+ plan card and add-on tile, while checkout and the Admin keep the Stripe
746
+ name. `offeringCollection` (a plans or `addons` section) shows every shown
747
+ product whose `ailk_collection` matches it, lowercased, and those plans
748
+ leave the unbound slot. A **contact** — a plan or add-on product with no
749
+ Price, an `https:` Stripe URL and an `ailk_plan` slug, switched on in Stripe
750
+ products and shown from its Offerings row — renders in a collection
751
+ section as a contact card or tile: `ailk_price_text` or the translated
752
+ `pricingOfferings.custom` in the price slot, `ailk_cta` on its button, and
753
+ its URL as the link (internal for a same-origin single-slash path, no card
754
+ for a same-origin `/api/` path or one that will not decode, else a new
755
+ tab); it publishes no `Offer`. A lone plan card or add-on tile spans the
756
+ section as the split card; every pricing surface takes its corners from
757
+ `--radius-card`. The toggle opens on Annually, a per-month price from a
758
+ yearly one is whole dollars, and `hideBillingToggle` turns the toggle off
759
+ (a stored `billingToggle: false` on a bound section still hides nothing).
760
+ `?plan=<slug>` opens that level and `?billing=monthly|annual` that period
761
+ in the server HTML, through the render-time `selectedPlan` and
762
+ `billingPeriod`; the JSON-LD lists one `Offer` per level and period from
763
+ the render-time `offerPrices`, each with its billing duration and a
764
+ `?plan=` / `&billing=` URL. No authored copy of a render-time field reaches
765
+ a section. A site and its MCP server take this release with or before
766
+ their hub; a priceless product shows only once it carries `ailk_plan`.
767
+ - **The level card's settings (#12209).** A level card's switch is
768
+ segments (the default) or the Select primitive: `levelSwitchControl` on
769
+ the section, on a written card, or on an `offeringGroups` entry, the card's
770
+ winning; a card with more than four levels takes the select whatever it
771
+ says, and the schema refuses five or more levels on a card whose control
772
+ resolves to segments. A card takes up to 20 levels, and a selecting bound
773
+ section whose `levelSwitchControl` is `select` keeps up to 20 of a tier's
774
+ plans (four otherwise). `levelSwitchPlacement` adds `beside-price` (the end
775
+ of the price line) and `above-button`; a card too narrow for its
776
+ `beside-price` control (under 28rem) or its `title-row` select (under 24rem)
777
+ shows it in its own row through CSS container queries, never a script.
778
+ `levelSwitchDetail: "price"` puts each select item's price for the shown
779
+ period on its row, and a written level's `detail` is its own secondary
780
+ label. Helper text under the switch is page text on a written card
781
+ (`plans[].levelHelper`, a level's `helper` over it) and the plan product's
782
+ Stripe `ailk_helper` (40 characters, read on a plan only) on a card built
783
+ from Stripe; one helper for every level of a Stripe tier card means the same
784
+ `ailk_helper` on each of its products. It is never the unit label.
785
+ `showLevelHeading` shows the chosen level's label and description under the
786
+ line that follows the price in place of row 2, and that line — "billed …
787
+ yearly" — now shows only under an annual price. `separateTiers: true` on a
788
+ selecting bound section shows every plan as its own card, whatever its
789
+ `ailk_tier`. The section keeps `levelSwitchControl`, `levelSwitchDetail` and
790
+ `showLevelHeading`; `separateTiers` is read before mapping and never placed.
791
+ A seller sets `ailk_helper` only after every site and MCP server reading
792
+ that workspace has taken this release with or before its hub: an older
793
+ site's strict shown-set readers refuse a product carrying `switchHelper`
794
+ and show the contact email in place of its Stripe cards. Rolling the hub
795
+ back past this release after a snapshot with the key was written reads
796
+ that snapshot as empty until the bounded refresh rewrites it.
797
+ - **Several prices on one Stripe product (#12210).** A `plan` product may
798
+ carry several prices for one billing period, each a price point with its
799
+ own `{plan}` slug (its lookup key's `{plan}`, so the grammar is unchanged);
800
+ the normalizer keeps up to 20, ordered by period then amount, and reads
801
+ each price's `nickname` (24 characters, on such a product only) as the
802
+ point's label. `lib/offerings-pricing.ts` turns each point into a level of
803
+ the existing level card: its amount, label (the nickname, else its price
804
+ phrase) and checkout link come from the price, its title, description and
805
+ features from the product, and the price phrase is the select item's
806
+ `detail`. A product with points is one card, a tier may mix products and
807
+ points, a card holds at most 20 levels and one with points and more than
808
+ four takes the select. A product is matched by any of its slugs, so
809
+ `plans`, `offeringPlans`, `offeringGroups` and `?plan=` may name any point;
810
+ a bundle requiring a point's slug gives no card. The JSON-LD lists one
811
+ `Offer` per point and period. A shown period shows every point of that
812
+ period, so a price added in Stripe shows and sells with no page edit, Admin
813
+ action or deploy. A product with one price per period renders exactly as
814
+ before. A seller adds a second slug only after every site and MCP server
815
+ reading that workspace has taken this release with or before its hub: an
816
+ older site's strict shown-set readers refuse such a product and show the
817
+ contact email in place of its Stripe cards.
696
818
  - **Rollout of the two keys (#12103 D8).** A site's strict shown-set readers
697
819
  refuse a product carrying `ctaLabel` or `eyebrow` until they take this
698
820
  release, and such a site then shows the contact email in place of its
@@ -898,7 +1020,17 @@ A list page whose frontmatter sets `navOnly: true` (valid on a registry list typ
898
1020
  - Don't reach into `apps/api` or `apps/mcp` from `apps/web`. They're peer apps — talk via HTTP/MCP.
899
1021
  - Don't commit images to `screenshots/` — only the `.gitkeep` is tracked.
900
1022
 
901
- Last updated: 2026-11-22 — § Pricing page: a bound section's `offeringGroups` level cards, its `writtenPlans` and `levelSwitchPlacement` (#12174) — verified against `lib/pricing-page.ts` and `lib/offerings-pricing.ts`.
1023
+ Last updated: 2026-11-22 — § Pricing page: several prices on one Stripe product — price points, their levels, labels and `detail`, slug matching, one `Offer` per point and the shown-period rule (#12210) — verified against `lib/offerings-pricing.ts`, `packages/api/src/services/offerings/{catalog,index}.ts` and `packages/validation/src/schemas/offerings.ts`.
1024
+
1025
+ Prior: 2026-11-22 — § Pricing page: the level card's settings — the select control, the four placements and their container-query fallback, helper text and `ailk_helper`, the level heading, the annual-only yearly line, 20 levels and `separateTiers` (#12209) — verified against `lib/pricing-page.ts`, `lib/offerings-pricing.ts`, `packages/validation/src/schemas/page-sections.ts` and `packages/ui/src/blocks/PricingTierCard.tsx`.
1026
+
1027
+ Prior: 2026-11-22 — § Magnet pages: a magnet inside a page — the `magnet` section, its renderer seam, the walk over the host page and its fallbacks (#12205) — verified against `lib/in-page-magnet.ts`, `packages/page-renderer/src/magnet-sections.ts` and `packages-paid/ui-signal-collectors/src/pages/flows/[slug]/MagnetSectionClient.tsx`.
1028
+
1029
+ Prior: 2026-11-22 — § Pricing page: cards built from Stripe — tier cards, `ailk_name` titles, `offeringCollection`, contact cards and tiles, the lone wide card, annual first, `hideBillingToggle`, `?billing=` and one `Offer` per level and period (#12193) — verified against `lib/pricing-page.ts`, `lib/offerings-pricing.ts` and `packages/sections-registry/src/contributions.ts`.
1030
+
1031
+ Prior: 2026-11-22 — § Magnet pages: an owner-chosen address — the hub's address table, the shadow rule, the catch-all serving, the `/flows/<slug>` forward and the discovery entries; § Where the base pages live: 65 generated route files (#12204) — verified against `lib/magnet-addresses.ts`, `lib/served-pages.ts`, `site-pages.config.tsx`, `signal-collectors.config.tsx`, `app/{sitemap.xml,llms.txt}/route.ts`, `lib/slices/docs-blog/llms-route.ts` and `packages/site-pages/routes.json`.
1032
+
1033
+ Prior: 2026-11-22 — § Pricing page: a bound section's `offeringGroups` level cards, its `writtenPlans` and `levelSwitchPlacement` (#12174) — verified against `lib/pricing-page.ts` and `lib/offerings-pricing.ts`.
902
1034
 
903
1035
  Prior: 2026-11-21 — § Pricing page: a section's `source` — bound sections in the layout their `variant` names, the `features-and-plans` two-block split, the kept comparison grid, written sections, and the 0.74.0 page with no `source` (#12140) — verified against `lib/pricing-page.ts` and `lib/offerings-pricing.ts`.
904
1036
 
@@ -24,12 +24,24 @@
24
24
  * the packages arrive from the registry. The node_modules path resolves in both
25
25
  * trees — a workspace symlink here, a real install there — so one directive
26
26
  * serves both (#4090 item 1).
27
+ *
28
+ * The four paid UI packages (the `paidSectionsPackage` of each module slice in
29
+ * packages/create-ailk/src/module-architecture.ts) render through
30
+ * node_modules too, so each needs its own line, or the classes only it uses
31
+ * are purged: the booker's meta row, card inset and confirm gap in
32
+ * ui-scheduling (#12202). A site without a module has no such directory, and
33
+ * Tailwind v4 skips an @source path that does not exist, so one static list
34
+ * serves every module set.
27
35
  */
28
36
 
29
37
  @import "tailwindcss";
30
38
 
31
39
  @source "../node_modules/@working-theory/ui/dist";
32
40
  @source "../node_modules/@working-theory/templates/dist";
41
+ @source "../node_modules/@working-theory/ui-docs-blog/dist";
42
+ @source "../node_modules/@working-theory/ui-scheduling/dist";
43
+ @source "../node_modules/@working-theory/ui-signal-collectors/dist";
44
+ @source "../node_modules/@working-theory/ui-commerce/dist";
33
45
 
34
46
  @import "@working-theory/theme/tokens.css";
35
47
  @import "@working-theory/theme/tailwind-preset/index.css";
@@ -44,6 +44,10 @@ jest.mock("next/cache", () => ({
44
44
  unstable_cache: (fn: () => Promise<unknown>) => fn,
45
45
  }));
46
46
 
47
+ // #12204 D8 — no magnet address, so no hub read and the bodies are unchanged.
48
+ // eslint-disable-next-line no-restricted-syntax -- #507: the address table's one reader; mocked so no case reads a hub or loads the paid package (#12204)
49
+ jest.mock("../../../lib/magnet-addresses", () => ({ servedAddresses: async () => [] }));
50
+
47
51
  type Route = typeof import("../route");
48
52
 
49
53
  const BASE = "https://example.com";
@@ -32,6 +32,10 @@
32
32
  * Agent contact (#11423): on a site that serves `/contact` (`MARKETING_PAGES`),
33
33
  * the body ends with `agentContactLines` — the operator's decision of
34
34
  * 2026-11-11 on #11423.
35
+ *
36
+ * Magnet addresses (#12204 D8): after the content pages, one entry per
37
+ * default-locale address the site serves and the hub lists, never
38
+ * `/flows/<slug>` (`getMagnetAddresses`, default `servedAddresses`).
35
39
  */
36
40
 
37
41
  import {
@@ -44,6 +48,7 @@ import {
44
48
  listedPath,
45
49
  type SiteListing,
46
50
  } from "@working-theory/page-renderer";
51
+ import { magnetAddressLine, type FlowAddressItem } from "@working-theory/validation";
47
52
 
48
53
  import {
49
54
  adapterDocsUrl,
@@ -51,6 +56,7 @@ import {
51
56
  listDocsPages,
52
57
  type DocsIndexPage,
53
58
  } from "../../lib/docs-index";
59
+ import { servedAddresses } from "../../lib/magnet-addresses";
54
60
  import { MARKETING_PAGES, PUBLIC_PAGES } from "../../lib/modules.generated";
55
61
  import { resolveSiteBrand } from "../../lib/site-brand";
56
62
  import { SITE_LISTING } from "../../lib/site-listing";
@@ -83,6 +89,8 @@ export interface LlmsHandlerDeps {
83
89
  getSiteListing?: () => SiteListing;
84
90
  /** Whether this site serves /contact (#11423). Defaults to `MARKETING_PAGES`. */
85
91
  hasContactPage?: () => boolean;
92
+ /** The magnet addresses served in a locale (#12204 D8). Defaults to `servedAddresses`. */
93
+ getMagnetAddresses?: (locale: string) => Promise<readonly FlowAddressItem[]>;
86
94
  }
87
95
 
88
96
  /**
@@ -96,6 +104,7 @@ export function createLlmsHandler(deps: LlmsHandlerDeps = {}) {
96
104
  const isDiscoverable = deps.discoverable ?? siteLive;
97
105
  const resolveSiteListing = deps.getSiteListing ?? (() => SITE_LISTING);
98
106
  const resolveHasContactPage = deps.hasContactPage ?? (() => MARKETING_PAGES);
107
+ const resolveMagnetAddresses = deps.getMagnetAddresses ?? servedAddresses;
99
108
 
100
109
  return async function llmsGET(): Promise<Response> {
101
110
  // #10040 decision 7 — no public page, no content index: 404 before the adapter.
@@ -142,6 +151,19 @@ export function createLlmsHandler(deps: LlmsHandlerDeps = {}) {
142
151
  }
143
152
  }
144
153
 
154
+ // #12204 D8 — the magnet addresses the site serves and the hub lists, at
155
+ // their one URL; title and purpose collapsed to one line again here
156
+ // (SEC-12204-1), whatever the hub sent.
157
+ const addresses = await resolveMagnetAddresses(defaultLocale).catch(() => []);
158
+ for (const item of addresses) {
159
+ if (!item.listed) continue;
160
+ lines.push(`- Title: ${magnetAddressLine(item.title)}`);
161
+ lines.push(` URL: ${baseUrl}${item.path}`);
162
+ const purpose = magnetAddressLine(item.purpose);
163
+ if (purpose) lines.push(` Description: ${purpose}`);
164
+ lines.push("");
165
+ }
166
+
145
167
  // Fumadocs blog corpus — blog index entry first, then per-post entries.
146
168
  // blogSource.getPages() returns pages ordered by Fumadocs; the index page
147
169
  // (/blog) sorts first naturally because its slug array is empty.
@@ -24,6 +24,10 @@ jest.mock("../../../lib/modules.generated", () => ({
24
24
  // eslint-disable-next-line no-restricted-syntax -- #507: a per-site generated or site-owned file; this suite pins the value it tests (#11246)
25
25
  jest.mock("../../../lib/site-listing", () => ({ __esModule: true, SITE_LISTING: {} }));
26
26
 
27
+ // #12204 D8 — no magnet address, so no hub read and the bodies are unchanged.
28
+ // eslint-disable-next-line no-restricted-syntax -- #507: the address table's one reader; mocked so no case reads a hub or loads the paid package (#12204)
29
+ jest.mock("../../../lib/magnet-addresses", () => ({ servedAddresses: async () => [] }));
30
+
27
31
  import { createSitemapHandler } from "../route";
28
32
 
29
33
  const BASE = "https://example.com";