create-ailk 0.46.0 → 0.46.1

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.
@@ -17,7 +17,7 @@
17
17
  "importPath": "@working-theory/ui/blocks",
18
18
  "rootBarrel": "@working-theory/ui",
19
19
  "sourceRoot": "packages/ui/src/blocks",
20
- "count": 110
20
+ "count": 111
21
21
  },
22
22
  {
23
23
  "name": "chrome",
@@ -1552,6 +1552,17 @@
1552
1552
  "descriptionGrade": "strong",
1553
1553
  "sectionType": null
1554
1554
  },
1555
+ {
1556
+ "name": "PlanBar",
1557
+ "tier": "blocks",
1558
+ "sourcePath": "packages/ui/src/blocks/PlanBar.tsx",
1559
+ "importPath": "@working-theory/ui/blocks",
1560
+ "exported": false,
1561
+ "description": "The plan bar of a long pricing page (spec).",
1562
+ "descriptionSource": "doc-comment",
1563
+ "descriptionGrade": "weak",
1564
+ "sectionType": null
1565
+ },
1555
1566
  {
1556
1567
  "name": "PostArchiveRow",
1557
1568
  "tier": "blocks",
@@ -7328,6 +7339,12 @@
7328
7339
  "danger",
7329
7340
  "warning"
7330
7341
  ]
7342
+ },
7343
+ "annualPriceNote": {
7344
+ "type": "string"
7345
+ },
7346
+ "priceFootnoteAnnualOnly": {
7347
+ "type": "boolean"
7331
7348
  }
7332
7349
  },
7333
7350
  "required": [
@@ -7347,6 +7364,13 @@
7347
7364
  "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
7348
7365
  }
7349
7366
  },
7367
+ "source": {
7368
+ "type": "string",
7369
+ "enum": [
7370
+ "offerings",
7371
+ "written"
7372
+ ]
7373
+ },
7350
7374
  "billingToggle": {
7351
7375
  "type": "boolean"
7352
7376
  },
@@ -7572,6 +7596,12 @@
7572
7596
  "danger",
7573
7597
  "warning"
7574
7598
  ]
7599
+ },
7600
+ "annualPriceNote": {
7601
+ "type": "string"
7602
+ },
7603
+ "priceFootnoteAnnualOnly": {
7604
+ "type": "boolean"
7575
7605
  }
7576
7606
  },
7577
7607
  "required": [
@@ -7597,8 +7627,7 @@
7597
7627
  }
7598
7628
  },
7599
7629
  "required": [
7600
- "title",
7601
- "description"
7630
+ "title"
7602
7631
  ]
7603
7632
  }
7604
7633
  },
@@ -7813,6 +7842,103 @@
7813
7842
  },
7814
7843
  "collapseFeaturesOnMobile": {
7815
7844
  "type": "boolean"
7845
+ },
7846
+ "planBar": {
7847
+ "type": "object",
7848
+ "properties": {
7849
+ "price": {
7850
+ "type": "boolean"
7851
+ },
7852
+ "button": {
7853
+ "type": "boolean"
7854
+ },
7855
+ "billingSwitch": {
7856
+ "type": "boolean"
7857
+ },
7858
+ "recommended": {
7859
+ "type": "string",
7860
+ "enum": [
7861
+ "none",
7862
+ "label"
7863
+ ]
7864
+ },
7865
+ "recommendedLabel": {
7866
+ "type": "string",
7867
+ "minLength": 1,
7868
+ "maxLength": 24
7869
+ }
7870
+ },
7871
+ "additionalProperties": false
7872
+ },
7873
+ "comparisonPlanBar": {
7874
+ "type": "object",
7875
+ "properties": {
7876
+ "pickerLabel": {
7877
+ "type": "string",
7878
+ "minLength": 1,
7879
+ "maxLength": 40
7880
+ },
7881
+ "recommended": {
7882
+ "type": "string",
7883
+ "enum": [
7884
+ "none",
7885
+ "label",
7886
+ "column-tint"
7887
+ ]
7888
+ },
7889
+ "recommendedLabel": {
7890
+ "type": "string",
7891
+ "minLength": 1,
7892
+ "maxLength": 24
7893
+ },
7894
+ "labelCell": {
7895
+ "type": "object",
7896
+ "properties": {
7897
+ "title": {
7898
+ "type": "string",
7899
+ "minLength": 1,
7900
+ "maxLength": 60
7901
+ },
7902
+ "subtitle": {
7903
+ "type": "string",
7904
+ "minLength": 1,
7905
+ "maxLength": 60
7906
+ }
7907
+ },
7908
+ "required": [
7909
+ "title"
7910
+ ],
7911
+ "additionalProperties": false
7912
+ },
7913
+ "pinnedGroups": {
7914
+ "type": "boolean"
7915
+ },
7916
+ "groupRows": {
7917
+ "type": "string",
7918
+ "enum": [
7919
+ "plain",
7920
+ "tinted"
7921
+ ]
7922
+ },
7923
+ "groupsOpen": {
7924
+ "type": "string",
7925
+ "enum": [
7926
+ "first",
7927
+ "all",
7928
+ "none"
7929
+ ]
7930
+ },
7931
+ "price": {
7932
+ "type": "boolean"
7933
+ },
7934
+ "button": {
7935
+ "type": "boolean"
7936
+ }
7937
+ },
7938
+ "required": [
7939
+ "pickerLabel"
7940
+ ],
7941
+ "additionalProperties": false
7816
7942
  }
7817
7943
  },
7818
7944
  "required": [
@@ -11172,6 +11298,70 @@
11172
11298
  "filled",
11173
11299
  "inverted"
11174
11300
  ]
11301
+ },
11302
+ "planBar": {
11303
+ "type": "object",
11304
+ "properties": {
11305
+ "pickerLabel": {
11306
+ "type": "string",
11307
+ "minLength": 1,
11308
+ "maxLength": 40
11309
+ },
11310
+ "recommended": {
11311
+ "type": "string",
11312
+ "enum": [
11313
+ "none",
11314
+ "label",
11315
+ "column-tint"
11316
+ ]
11317
+ },
11318
+ "recommendedLabel": {
11319
+ "type": "string",
11320
+ "minLength": 1,
11321
+ "maxLength": 24
11322
+ },
11323
+ "labelCell": {
11324
+ "type": "object",
11325
+ "properties": {
11326
+ "title": {
11327
+ "type": "string",
11328
+ "minLength": 1,
11329
+ "maxLength": 60
11330
+ },
11331
+ "subtitle": {
11332
+ "type": "string",
11333
+ "minLength": 1,
11334
+ "maxLength": 60
11335
+ }
11336
+ },
11337
+ "required": [
11338
+ "title"
11339
+ ],
11340
+ "additionalProperties": false
11341
+ },
11342
+ "pinnedGroups": {
11343
+ "type": "boolean"
11344
+ },
11345
+ "groupRows": {
11346
+ "type": "string",
11347
+ "enum": [
11348
+ "plain",
11349
+ "tinted"
11350
+ ]
11351
+ },
11352
+ "groupsOpen": {
11353
+ "type": "string",
11354
+ "enum": [
11355
+ "first",
11356
+ "all",
11357
+ "none"
11358
+ ]
11359
+ }
11360
+ },
11361
+ "required": [
11362
+ "pickerLabel"
11363
+ ],
11364
+ "additionalProperties": false
11175
11365
  }
11176
11366
  },
11177
11367
  "required": [
@@ -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: **332 component files** across 16 tiers — 60 sections, 110 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. 329 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: **333 component files** across 16 tiers — 60 sections, 111 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. 330 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: **328/332** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 248 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: **329/333** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 249 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, **295** are *strong* — a capability sentence you could match a requirement against — and **33** 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, **295** 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** 102/110 · **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** 59/60 · **Blocks** 102/111 · **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
 
@@ -124,7 +124,7 @@ Import: `import { X } from "@working-theory/ui/sections";` (or from the `@workin
124
124
 
125
125
  ---
126
126
 
127
- ## Blocks (110)
127
+ ## Blocks (111)
128
128
 
129
129
  Intermediate composition tiles — the pieces sections are built from. Compose primitives and panels; never import a section.
130
130
 
@@ -202,6 +202,7 @@ Import: `import { X } from "@working-theory/ui/blocks";` (or from the `@working-
202
202
  | `PageHeaderSwitcher` | Header-owned context-switcher island (DropdownMenu-backed). Header-owned segment switcher rendered inside PageHeader's `switcher` slot. Composes DropdownMenu (Radix-backed — positioning, click-outside, Escape, focus management, and roving keyboard nav all come for free). | `import { PageHeaderSwitcher } from "@working-theory/ui/blocks"` |
203
203
  | `PairingCard` | Quiet card naming a matched WaitlistRecommendation pairing: both resolved offer names + the resolved reason, joined against a caller-supplied offers[] by key. | `import { PairingCard } from "@working-theory/ui/blocks"` |
204
204
  | `PhoneNumberField` | Single-box combo phone input for the "tel" field kind (supersedes the two-segment country-Select + number-Input layout). | `import { PhoneNumberField } from "@working-theory/ui/blocks"` |
205
+ | `PlanBar` | The plan bar of a long pricing page (spec). *(weak)* | internal — compose from `packages/ui/src/blocks/PlanBar.tsx` |
205
206
  | `PostArchiveRow` | One "Previous posts" row: title link + meta, host-placed `Separator` between rows. Draws no divider of its own (border convention — the host places `Separator` between rows, as BlogList already does for PostRow). | `import { PostArchiveRow } from "@working-theory/ui/blocks"` |
206
207
  | `PostCard` | Same props as PostRow, a vertical arrangement. A single linked blog-index card (cover · date · reading time · title · excerpt · "Read more"). Tier 3 block; composes MediaFigure + primitives. RSC default. *(weak)* | `import { PostCard } from "@working-theory/ui/blocks"` |
207
208
  | `PostMetaLine` | `<tag> · <date>` meta line, either half optional (C4). Shows the tag alone, the date alone, or both joined by a middot; renders nothing with neither. | `import { PostMetaLine } from "@working-theory/ui/blocks"` |
@@ -563,13 +564,14 @@ Import: `import { X } from "@working-theory/ui-commerce";` (or from the `@workin
563
564
 
564
565
  ## Weak descriptions
565
566
 
566
- These 33 components have a description that is accurate but does not do the job well: too short to match against, or long but spent on implementation. A capability search reaches them only if the searcher's word happens to be in it, so they are the most likely place for this catalog to repeat the failure it was built to fix. Read the source before concluding the capability is absent — and if you own one of these components, its header is the fix.
567
+ These 34 components have a description that is accurate but does not do the job well: too short to match against, or long but spent on implementation. A capability search reaches them only if the searcher's word happens to be in it, so they are the most likely place for this catalog to repeat the failure it was built to fix. Read the source before concluding the capability is absent — and if you own one of these components, its header is the fix.
567
568
 
568
569
  | Component | Tier | What the source gives us |
569
570
  | --- | --- | --- |
570
571
  | `DocumentViewerClient` | sections | The interactive shell for DocumentViewer. Split out of DocumentViewer.tsx (which stays RSC) for the same reason AlertSection composes AlertSectionDismissIsland: interactivity is contained to one client island. |
571
572
  | `AgentContextCard` | blocks | Capability-bearing block that renders agent provenance. RSC note: no hooks or browser APIs — server-renderable by default. |
572
573
  | `PageHeader` | blocks | RSC. Page-level header composing the Breadcrumb primitive for the left-side wayfinding trail, a generic right-side `actions` slot, and an optional `switcher` slot for header-owned segment switching. Fills AppShell's `header` slot (AdminShell and similar). No accent bar. No tab API. No named action props — the caller assembles whatever button/menu nodes it needs and passes them as `actions`. |
574
+ | `PlanBar` | blocks | The plan bar of a long pricing page (spec). |
573
575
  | `PostCard` | blocks | Same props as PostRow, a vertical arrangement. A single linked blog-index card (cover · date · reading time · title · excerpt · "Read more"). Tier 3 block; composes MediaFigure + primitives. RSC default. |
574
576
  | `PostTeaser` | blocks | The featured post (`size="lg"`) and "Latest posts" grid card (`size="md"`); no cover renders no placeholder. Composes MediaFigure + PostMetaLine + primitives. No author byline (C7). RSC: no hooks or browser APIs. |
575
577
  | `PricingTierCardSeatControl` | blocks | Seat-count range picker for the Team tier card. Renders a Select primitive that lets the user choose an "Up to N seats" option from a caller-supplied list of numbers. The parent PricingTierCard stays a pure RSC; only this tiny island is hydrated. Pattern mirrors PageHeaderSwitcher.tsx: small "use client" island imported by an otherwise-server-rendered parent, keeping the client bundle minimal. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ailk",
3
- "version": "0.46.0",
3
+ "version": "0.46.1",
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/templates": "0.74.0",
32
- "@working-theory/schema": "0.74.0"
31
+ "@working-theory/schema": "0.75.0",
32
+ "@working-theory/templates": "0.75.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",
@@ -642,6 +642,37 @@ key), so the page names none. It renders one of three pages:
642
642
  eyebrow (the recommended add-on keeps the Recommended label); an add-on's
643
643
  `ailk_note` is its tile's note line, as a plan's is its `priceSubhead`. Copy
644
644
  comes from the `pricingOfferings` namespace.
645
+ - **A section says where its plans come from (#12140).** A `pricing`
646
+ section may set `source: offerings | written`; with no `source` anywhere
647
+ on the page, everything above holds exactly as before. `offerings` binds
648
+ the section to the shown set: it is mapped alone, for its own
649
+ `offeringPlans` else the page's `plans`, in the layout its own `variant`
650
+ names (`offeringsPricing`'s `layout`, one mapping per layout). The toggle
651
+ layout is the default; `with-comparison-table`, `two-tiers-with-extra-tier`
652
+ and `band-hero` get centred cards and no toggle (they show monthly prices
653
+ only); `single-price-with-details` gets the first card alone; an `addons`
654
+ section gets the add-on tiles. In `features-and-plans`, one product with a
655
+ monthly and a yearly Price (and no `requires`) becomes two blocks — the
656
+ monthly one keyed by the plan slug, the yearly one by its lookup key and
657
+ carrying the terms note — each linking its own Price's checkout, and a
658
+ lone product's marketing features fill the left column as title-only rows
659
+ unless the section writes its own `features`. A bound section keeps its
660
+ copy, `source`, band parts and `comparisonGroups` — values matched to the
661
+ cards by plan slug, each cell's `link` dropped — and never an authored
662
+ plan, `extraTier` or cell link; the plans it lists are left out of the
663
+ unbound plans slot. `written` keeps the section's own plans where it
664
+ sits, minus every card, extra tier, add-on tile and comparison-cell link
665
+ that links `/api/offerings/checkout`
666
+ in any URL form (percent-encoded included), and on a connected page takes
667
+ `?plan=` only for a `{plan}`-grammar value (the "as written" states keep
668
+ #8842's rule). The
669
+ plans and add-ons slots are chosen among sections with no `source`, and a
670
+ page that declares one gets no inserted section. A page whose every
671
+ pricing section is written reads no Offerings; on a shown set a page whose
672
+ only pricing left is written takes the contact email, and on the contact
673
+ path written sections give way with the rest. A site whose
674
+ `@working-theory/validation` predates the field strips it and renders the
675
+ section as before, so a seller sets `source` after the site updates.
645
676
  - **Rollout of the two keys (#12103 D8).** A site's strict shown-set readers
646
677
  refuse a product carrying `ctaLabel` or `eyebrow` until they take this
647
678
  release, and such a site then shows the contact email in place of its
@@ -847,7 +878,9 @@ A list page whose frontmatter sets `navOnly: true` (valid on a registry list typ
847
878
  - Don't reach into `apps/api` or `apps/mcp` from `apps/web`. They're peer apps — talk via HTTP/MCP.
848
879
  - Don't commit images to `screenshots/` — only the `.gitkeep` is tracked.
849
880
 
850
- Last updated: 2026-11-21 — § Pricing page: a section's `offeringPlans` plan groups, the kept `cardLayout`, the Admin-set Recommended, the `ailk_cta` button label and the add-on's `ailk_eyebrow` and note, and the two keys' rollout order (#12103) — verified against `lib/pricing-page.ts`, `lib/offerings-pricing.ts`, `packages/api/src/services/offerings/catalog.ts` and `packages-paid/api-multi-tenant/src/routes/workspaces/offerings.ts`.
881
+ Last updated: 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`.
882
+
883
+ Prior: 2026-11-21 — § Pricing page: a section's `offeringPlans` plan groups, the kept `cardLayout`, the Admin-set Recommended, the `ailk_cta` button label and the add-on's `ailk_eyebrow` and note, and the two keys' rollout order (#12103) — verified against `lib/pricing-page.ts`, `lib/offerings-pricing.ts`, `packages/api/src/services/offerings/catalog.ts` and `packages-paid/api-multi-tenant/src/routes/workspaces/offerings.ts`.
851
884
 
852
885
  Prior: 2026-11-19 — § Site visibility: one rule for Hidden (`lib/site-visibility.ts`) stamps noindex on every middleware response and page, every discovery file hides under STEALTH, `GET /api/site-status` reports the state, and ai-plugin.json is dropped; § A hub-connected site's identity loses the indexing switch (#11978) — verified against `lib/site-visibility.ts`, `middleware.ts`, `app/[locale]/layout.tsx`, `app/api/site-status/route.ts`, `app/{.well-known/mcp.json,openapi.json}/route.ts` and `lib/{mcp-served-tools,site-brand}.ts`.
853
886