create-ailk 0.35.1 → 0.37.0

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 (169) hide show
  1. package/README.md +1 -1
  2. package/component-catalog.json +51 -1
  3. package/component-catalog.md +8 -5
  4. package/dist/lib/env-catalog.js +8 -0
  5. package/dist/surfaces.js +66 -22
  6. package/dist/topology.d.ts +4 -4
  7. package/dist/topology.js +104 -60
  8. package/dist/update.d.ts +19 -1
  9. package/dist/update.js +293 -35
  10. package/package.json +3 -3
  11. package/templates/.env.example +38 -0
  12. package/templates/apps/api/.env.example +45 -0
  13. package/templates/apps/api/CLAUDE.md +12 -4
  14. package/templates/apps/api/src/lib/__mocks__/prisma.ts +7 -0
  15. package/templates/apps/mcp/CLAUDE.md +4 -2
  16. package/templates/apps/web/.env.example +16 -0
  17. package/templates/apps/web/CLAUDE.md +73 -5
  18. package/templates/apps/web/app/[locale]/(auth)/__tests__/password-reset.test.tsx +2 -0
  19. package/templates/apps/web/app/[locale]/(auth)/reset-password/__tests__/return.test.tsx +179 -0
  20. package/templates/apps/web/app/[locale]/(auth)/reset-password/page.tsx +22 -2
  21. package/templates/apps/web/app/[locale]/(auth)/reset-password/reset-password-card.tsx +9 -2
  22. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/page.test.tsx +52 -1
  23. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/remembered-method.test.ts +43 -0
  24. package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/sign-in-card.test.tsx +108 -1
  25. package/templates/apps/web/app/[locale]/(auth)/sign-in/page.tsx +36 -3
  26. package/templates/apps/web/app/[locale]/(auth)/sign-in/remembered-method.ts +37 -0
  27. package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-card.tsx +90 -33
  28. package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-text.ts +9 -4
  29. package/templates/apps/web/app/[locale]/(authed)/__tests__/gate.test.tsx +79 -348
  30. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/billing.test.tsx +241 -66
  31. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/general.test.tsx +242 -28
  32. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/hub-mode.test.tsx +377 -151
  33. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/item.test.tsx +26 -1
  34. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout-sign-out.test.tsx +10 -5
  35. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout.test.tsx +17 -6
  36. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-menu.test.tsx +51 -12
  37. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-popups.test.tsx +17 -2
  38. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/notifications.test.tsx +153 -2
  39. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/page.test.tsx +206 -23
  40. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/popups.test.tsx +150 -188
  41. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/privacy.test.tsx +235 -177
  42. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/rich-translator.ts +63 -0
  43. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/security.test.tsx +0 -3
  44. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/thread.test.tsx +340 -0
  45. package/templates/apps/web/app/[locale]/(authed)/account/account-data.ts +7 -5
  46. package/templates/apps/web/app/[locale]/(authed)/account/account-frame.tsx +20 -4
  47. package/templates/apps/web/app/[locale]/(authed)/account/actions.ts +8 -4
  48. package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +161 -0
  49. package/templates/apps/web/app/[locale]/(authed)/account/appointments/__tests__/page.test.tsx +426 -0
  50. package/templates/apps/web/app/[locale]/(authed)/account/appointments/appointments-data.ts +76 -0
  51. package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +139 -0
  52. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +92 -24
  53. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +32 -1
  54. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/file-route.test.ts +76 -3
  55. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/page.test.tsx +290 -41
  56. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-data.ts +109 -11
  57. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +43 -44
  58. package/templates/apps/web/app/[locale]/(authed)/account/billing/__tests__/offerings.test.ts +99 -0
  59. package/templates/apps/web/app/[locale]/(authed)/account/billing/offerings.ts +123 -0
  60. package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +323 -73
  61. package/templates/apps/web/app/[locale]/(authed)/account/billing-source.ts +199 -43
  62. package/templates/apps/web/app/[locale]/(authed)/account/components/request-quote.tsx +52 -7
  63. package/templates/apps/web/app/[locale]/(authed)/account/connect/__tests__/page.test.tsx +8 -1
  64. package/templates/apps/web/app/[locale]/(authed)/account/connect/page.tsx +7 -3
  65. package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/phone-verification.test.tsx +215 -0
  66. package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/seam-imports.test.ts +65 -0
  67. package/templates/apps/web/app/[locale]/(authed)/account/general/account-name.ts +36 -0
  68. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-actions.ts +70 -2
  69. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-details.tsx +42 -0
  70. package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +97 -53
  71. package/templates/apps/web/app/[locale]/(authed)/account/general/phone-actions.ts +122 -0
  72. package/templates/apps/web/app/[locale]/(authed)/account/general/phone-verification.tsx +215 -0
  73. package/templates/apps/web/app/[locale]/(authed)/account/general/photo-actions.ts +73 -0
  74. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-form.tsx +12 -9
  75. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-source.ts +18 -4
  76. package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +20 -2
  77. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/member-thread-composer.tsx +43 -0
  78. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +125 -0
  79. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-data.ts +88 -0
  80. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-write.ts +31 -0
  81. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/invitation-id.test.ts +35 -0
  82. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/page.test.tsx +266 -0
  83. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/actions.ts +116 -0
  84. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/invitation-id.ts +12 -0
  85. package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/page.tsx +154 -0
  86. package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +9 -6
  87. package/templates/apps/web/app/[locale]/(authed)/account/new-menu.tsx +33 -8
  88. package/templates/apps/web/app/[locale]/(authed)/account/new-popups.tsx +31 -52
  89. package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +44 -4
  90. package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +69 -49
  91. package/templates/apps/web/app/[locale]/(authed)/account/privacy/__tests__/export-route.test.ts +173 -0
  92. package/templates/apps/web/app/[locale]/(authed)/account/privacy/actions.ts +42 -4
  93. package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +102 -0
  94. package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +147 -137
  95. package/templates/apps/web/app/[locale]/(authed)/account/security/__tests__/hub-variant.test.tsx +258 -0
  96. package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +21 -22
  97. package/templates/apps/web/app/[locale]/(authed)/account/security/security-panel.tsx +34 -6
  98. package/templates/apps/web/app/[locale]/(authed)/account/security/security-source.ts +37 -7
  99. package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -2
  100. package/templates/apps/web/app/[locale]/(authed)/account/settings-frame.tsx +8 -5
  101. package/templates/apps/web/app/[locale]/(authed)/layout.tsx +15 -13
  102. package/templates/apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx +20 -52
  103. package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsClient.tsx +3 -2
  104. package/templates/apps/web/app/[locale]/layout.tsx +24 -75
  105. package/templates/apps/web/app/[locale]/purchase/__tests__/success.test.tsx +50 -0
  106. package/templates/apps/web/app/[locale]/purchase/success/page.tsx +48 -7
  107. package/templates/apps/web/app/api/auth/hub/__tests__/entry-routes.test.ts +749 -0
  108. package/templates/apps/web/app/api/auth/hub/authorize/__tests__/route.test.ts +166 -7
  109. package/templates/apps/web/app/api/auth/hub/authorize/route.ts +96 -30
  110. package/templates/apps/web/app/api/auth/hub/continuation.ts +51 -2
  111. package/templates/apps/web/app/api/auth/hub/email/route.ts +111 -0
  112. package/templates/apps/web/app/api/auth/hub/entry-shared.ts +163 -0
  113. package/templates/apps/web/app/api/auth/hub/password/__tests__/return.test.ts +86 -0
  114. package/templates/apps/web/app/api/auth/hub/password/__tests__/route.test.ts +368 -0
  115. package/templates/apps/web/app/api/auth/hub/password/return.ts +86 -0
  116. package/templates/apps/web/app/api/auth/hub/password/route.ts +171 -0
  117. package/templates/apps/web/app/api/auth/hub/purchase/route.ts +230 -0
  118. package/templates/apps/web/app/api/auth/hub/purchase-link/route.ts +174 -0
  119. package/templates/apps/web/app/api/auth/hub/sign-up/route.ts +60 -0
  120. package/templates/apps/web/app/api/auth/hub/sign-up-evidence.ts +97 -0
  121. package/templates/apps/web/app/api/hub-session/__tests__/routes.test.ts +738 -7
  122. package/templates/apps/web/app/api/hub-session/callback/route.ts +13 -47
  123. package/templates/apps/web/app/api/hub-session/email/route.ts +125 -0
  124. package/templates/apps/web/app/api/hub-session/one-tap/nonce/route.ts +49 -0
  125. package/templates/apps/web/app/api/hub-session/one-tap/route.ts +106 -0
  126. package/templates/apps/web/app/api/hub-session/open/route.ts +111 -0
  127. package/templates/apps/web/app/api/hub-session/password/return/route.ts +69 -0
  128. package/templates/apps/web/app/api/hub-session/password/route.ts +106 -0
  129. package/templates/apps/web/app/api/hub-session/sign-in/route.ts +23 -40
  130. package/templates/apps/web/app/api/hub-session/sign-out/route.ts +1 -10
  131. package/templates/apps/web/auth.ts +133 -6
  132. package/templates/apps/web/components/sign-out-trigger.tsx +1 -1
  133. package/templates/apps/web/lib/__tests__/account-config.test.ts +129 -1
  134. package/templates/apps/web/lib/__tests__/auth-email.test.ts +141 -0
  135. package/templates/apps/web/lib/__tests__/auth-phone.test.ts +445 -0
  136. package/templates/apps/web/lib/__tests__/auth-sms.test.ts +140 -0
  137. package/templates/apps/web/lib/__tests__/fixtures/tsconfig.flow.json +18 -0
  138. package/templates/apps/web/lib/__tests__/offerings-pricing.test.ts +33 -0
  139. package/templates/apps/web/lib/__tests__/site-header.test.ts +13 -0
  140. package/templates/apps/web/lib/__tests__/telemetry-scrub.test.ts +19 -1
  141. package/templates/apps/web/lib/account-config.ts +132 -8
  142. package/templates/apps/web/lib/auth-email.ts +62 -6
  143. package/templates/apps/web/lib/auth-env.ts +13 -0
  144. package/templates/apps/web/lib/auth-routes.ts +11 -6
  145. package/templates/apps/web/lib/auth-sms.ts +180 -0
  146. package/templates/apps/web/lib/hub-session/__tests__/hub-session.test.ts +28 -0
  147. package/templates/apps/web/lib/hub-session/__tests__/spoke-sign-in.test.tsx +332 -0
  148. package/templates/apps/web/lib/hub-session/config.ts +7 -1
  149. package/templates/apps/web/lib/hub-session/entry.ts +238 -0
  150. package/templates/apps/web/lib/hub-session/index.ts +1 -4
  151. package/templates/apps/web/lib/hub-session/one-tap.tsx +148 -0
  152. package/templates/apps/web/lib/hub-session/session.ts +120 -2
  153. package/templates/apps/web/lib/hub-session/spoke-sign-in.tsx +277 -0
  154. package/templates/apps/web/lib/offerings-pricing.ts +4 -1
  155. package/templates/apps/web/lib/site-header.ts +14 -1
  156. package/templates/apps/web/lib/telemetry-scrub.ts +11 -0
  157. package/templates/apps/web/lib/topology.generated.ts +39 -0
  158. package/templates/apps/web/messages/en.json +264 -96
  159. package/templates/apps/web/middleware.ts +34 -2
  160. package/templates/apps/web/security-headers.config.ts +21 -0
  161. package/versions.json +48 -48
  162. package/templates/apps/web/app/[locale]/(authed)/account/components/schedule-service.tsx +0 -276
  163. package/templates/apps/web/app/[locale]/(authed)/account/components/send-message.tsx +0 -128
  164. package/templates/apps/web/app/[locale]/(authed)/account/settings/__tests__/theme-modes.test.ts +0 -42
  165. package/templates/apps/web/app/[locale]/(authed)/account/settings/theme-modes.ts +0 -40
  166. package/templates/apps/web/app/[locale]/(authed)/sign-in-gate.tsx +0 -162
  167. package/templates/apps/web/components/signed-in-nav.tsx +0 -79
  168. package/templates/apps/web/lib/hub-session/__tests__/sign-in-gate.test.tsx +0 -180
  169. package/templates/apps/web/lib/hub-session/sign-in-gate.tsx +0 -162
package/README.md CHANGED
@@ -298,7 +298,7 @@ outside `apps/web/app/[locale]/` except the local modules those routes import
298
298
 
299
299
  **Scope.** Every core route (`about`, `contact`, `faq`, `thanks/[slug]`,
300
300
  `sign-in`) is always checked, and so is the `(authed)` route GROUP —
301
- `layout.tsx` + `sign-in-gate.tsx`, `account/`, and `waitlist/` — even though
301
+ `layout.tsx`, `account/`, and `waitlist/` — even though
302
302
  it is not itself a `--modules`-gated surface (#5014): a fresh scaffold ships
303
303
  it unconditionally, the same as core, so `sync-routes` checks it
304
304
  unconditionally too. It is reported under its own `authed` identity rather
@@ -33,7 +33,7 @@
33
33
  "importPath": "@working-theory/ui/primitives",
34
34
  "rootBarrel": "@working-theory/ui",
35
35
  "sourceRoot": "packages/ui/src/primitives",
36
- "count": 79
36
+ "count": 82
37
37
  },
38
38
  {
39
39
  "name": "panels",
@@ -2388,6 +2388,17 @@
2388
2388
  "descriptionGrade": "strong",
2389
2389
  "sectionType": null
2390
2390
  },
2391
+ {
2392
+ "name": "ColorSwitch",
2393
+ "tier": "primitives",
2394
+ "sourcePath": "packages/ui/src/primitives/ColorSwitch.tsx",
2395
+ "importPath": "@working-theory/ui/primitives",
2396
+ "exported": true,
2397
+ "description": "A single-axis switch that cycles through N named states (Public · Private · Authenticated), the track colour carrying the state instead of a thumb position; a read-only mode renders it as an inert chip.",
2398
+ "descriptionSource": "doc-comment",
2399
+ "descriptionGrade": "strong",
2400
+ "sectionType": null
2401
+ },
2391
2402
  {
2392
2403
  "name": "Command",
2393
2404
  "tier": "primitives",
@@ -2443,6 +2454,17 @@
2443
2454
  "descriptionGrade": "weak",
2444
2455
  "sectionType": null
2445
2456
  },
2457
+ {
2458
+ "name": "DateInput",
2459
+ "tier": "primitives",
2460
+ "sourcePath": "packages/ui/src/primitives/DateInput.tsx",
2461
+ "importPath": "@working-theory/ui/primitives",
2462
+ "exported": true,
2463
+ "description": "Calendar-date control that posts one ISO `YYYY-MM-DD` value: a native date input beside a button that opens the package Calendar in a Popover.",
2464
+ "descriptionSource": "doc-comment",
2465
+ "descriptionGrade": "strong",
2466
+ "sectionType": null
2467
+ },
2446
2468
  {
2447
2469
  "name": "Delta",
2448
2470
  "tier": "primitives",
@@ -2619,6 +2641,17 @@
2619
2641
  "descriptionGrade": "strong",
2620
2642
  "sectionType": null
2621
2643
  },
2644
+ {
2645
+ "name": "LocalTime",
2646
+ "tier": "primitives",
2647
+ "sourcePath": "packages/ui/src/primitives/LocalTime.tsx",
2648
+ "importPath": "@working-theory/ui/primitives",
2649
+ "exported": true,
2650
+ "description": "An ISO instant as the viewer reads it: a date or time that renders in UTC on the server, then in the viewer's own time zone once the page hydrates, with the zone's short name on hover.",
2651
+ "descriptionSource": "doc-comment",
2652
+ "descriptionGrade": "strong",
2653
+ "sectionType": null
2654
+ },
2622
2655
  {
2623
2656
  "name": "MenuItem",
2624
2657
  "tier": "primitives",
@@ -11291,6 +11324,23 @@
11291
11324
  "type": "string",
11292
11325
  "minLength": 1
11293
11326
  },
11327
+ "prefill": {
11328
+ "type": "object",
11329
+ "properties": {
11330
+ "email": {
11331
+ "type": "string",
11332
+ "format": "email",
11333
+ "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
11334
+ },
11335
+ "name": {
11336
+ "type": "string",
11337
+ "minLength": 1
11338
+ }
11339
+ },
11340
+ "required": [
11341
+ "email"
11342
+ ]
11343
+ },
11294
11344
  "layout": {
11295
11345
  "type": "string",
11296
11346
  "enum": [
@@ -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: **327 component files** across 16 tiers — 60 sections, 110 blocks, 19 chrome, 79 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, 12 commerce-blocks, 1 commerce-panels. 324 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: **330 component files** across 16 tiers — 60 sections, 110 blocks, 19 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, 12 commerce-blocks, 1 commerce-panels. 327 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: **323/327** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 243 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: **326/330** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 246 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, **290** 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, **293** 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%**.
23
23
 
24
- Per tier, strong out of total: **Sections** 59/60 · **Blocks** 102/110 · **Chrome** 10/19 · **Primitives** 64/79 (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** 12/12 · **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/110 · **Chrome** 10/19 · **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** 12/12 · **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
 
@@ -275,7 +275,7 @@ Import: `import { X } from "@working-theory/ui/chrome";` (or from the `@working-
275
275
 
276
276
  ---
277
277
 
278
- ## Primitives (79)
278
+ ## Primitives (82)
279
279
 
280
280
  The base control and text vocabulary — Button, Heading, Text, Link, Icon, Input, Dialog, Command, Tooltip, ThemeToggle and the rest. This is the only tier allowed to render raw HTML elements; every tier above it composes these instead. Search here before building any low-level control.
281
281
 
@@ -299,11 +299,13 @@ Import: `import { X } from "@working-theory/ui/primitives";` (or from the `@work
299
299
  | `CitationMarker` | Inline citation/source marker for agent-generated content. Renders a compact numbered or labeled source reference inline with text. Used alongside AI-generated content to surface provenance for individual claims. | `import { CitationMarker } from "@working-theory/ui/primitives"` |
300
300
  | `Code` | Code inline primitive — renders a semantic <code> for code/variable spans inside prose. Inline sibling of Text. | `import { Code } from "@working-theory/ui/primitives"` |
301
301
  | `Collapsible` | Thin re-export of the Radix Collapsible root and content parts, plus the styled CollapsibleTrigger button. | `import { Collapsible } from "@working-theory/ui/primitives"` |
302
+ | `ColorSwitch` | A single-axis switch that cycles through N named states (Public · Private · Authenticated), the track colour carrying the state instead of a thumb position; a read-only mode renders it as an inert chip. | `import { ColorSwitch } from "@working-theory/ui/primitives"` |
302
303
  | `Command` | Keyboard-navigable command palette / search input. Thin wrapper over the `cmdk` library (Command component) with AILK semantic token styling. Provides the full sub-component set: Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut. | `import { Command } from "@working-theory/ui/primitives"` |
303
304
  | `ConfidenceIndicator` | Accessible confidence-level badge for AI-generated claims. Bound to the `@working-theory/validation` confidence shape: confidence_level = "low" \| "medium" \| "high" This matches the `overallConfidence` enum in market-landscape-summary and canonical-messaging-summary schemas, and the free-text `confidence_level` on HypothesisClaim. | `import { ConfidenceIndicator } from "@working-theory/ui/primitives"` |
304
305
  | `Container` | _no description in source — read `packages/ui/src/primitives/Container.tsx`_ | `import { Container } from "@working-theory/ui/primitives"` |
305
306
  | `ContextMenu` | Right-click / long-press contextual action menu. Thin wrapper over @radix-ui/react-context-menu with AILK semantic token styling. Provides the full Radix sub-component set: Root, Trigger, Portal, Content, Group, Label, Item, CheckboxItem, RadioGroup, RadioItem, ItemIndicator, Separator, Sub, SubTrigger, SubContent, Shortcut. | `import { ContextMenu } from "@working-theory/ui/primitives"` |
306
307
  | `CopyButton` | CopyButton Primitive. *(weak)* | `import { CopyButton } from "@working-theory/ui/primitives"` |
308
+ | `DateInput` | Calendar-date control that posts one ISO `YYYY-MM-DD` value: a native date input beside a button that opens the package Calendar in a Popover. | `import { DateInput } from "@working-theory/ui/primitives"` |
307
309
  | `Delta` | Sign-driven semantic indicator for numeric change. *(weak)* | `import { Delta } from "@working-theory/ui/primitives"` |
308
310
  | `Dialog` | Modal overlay composed from @radix-ui/react-dialog. *(weak)* | `import { Dialog } from "@working-theory/ui/primitives"` |
309
311
  | `DropdownMenu` | Contextual action menu anchored to a trigger. Thin wrapper over @radix-ui/react-dropdown-menu with AILK semantic token styling. Provides the full Radix sub-component set: Root, Trigger, Portal, Content, Group, Label, Item, CheckboxItem, RadioGroup, RadioItem, ItemIndicator, Separator, Sub, SubTrigger, SubContent, Shortcut. | `import { DropdownMenu } from "@working-theory/ui/primitives"` |
@@ -320,6 +322,7 @@ Import: `import { X } from "@working-theory/ui/primitives";` (or from the `@work
320
322
  | `Label` | Form field label with peer-disabled state styling. Wraps @radix-ui/react-label for correct association with form controls via `htmlFor`. Automatically dims and shows a not-allowed cursor when the associated control carries the `disabled` attribute (peer-disabled). | `import { Label } from "@working-theory/ui/primitives"` |
321
323
  | `Link` | _no description in source — read `packages/ui/src/primitives/Link.tsx`_ | `import { Link } from "@working-theory/ui/primitives"` |
322
324
  | `LoaderRing` | Compact loading-animation indicator. Renders the three loading animations (spinner, dots, check-transition) and, for terminal status, composes the shared StatusBadge primitive (success/error/warning). Sizes track the AILK icon-size token scale; all colors are AILK Brand 1.3 semantic tokens. | `import { LoaderRing } from "@working-theory/ui/primitives"` |
325
+ | `LocalTime` | An ISO instant as the viewer reads it: a date or time that renders in UTC on the server, then in the viewer's own time zone once the page hydrates, with the zone's short name on hover. | `import { LocalTime } from "@working-theory/ui/primitives"` |
323
326
  | `Menubar` | Horizontal application menu bar with keyboard navigation. | `import { Menubar } from "@working-theory/ui/primitives"` |
324
327
  | `MenuItem` | Interactive menu item for dropdowns, context menus, etc. Full-width, left-aligned button with support for left/right icons, secondary text, selection state, and destructive variant. | `import { MenuItem } from "@working-theory/ui/primitives"` |
325
328
  | `MoneyAmount` | Locale-aware currency display. *(weak)* | `import { MoneyAmount } from "@working-theory/ui/primitives"` |
@@ -55,6 +55,10 @@ export const ENV_CATALOG = {
55
55
  description: "Seals this spoke's own hub-session cookie (create-ailk writes one; `openssl rand -base64 32` makes another). Never the client secret; rotating it signs every visitor out.",
56
56
  secret: true,
57
57
  },
58
+ AILK_HUB_ONE_TAP: {
59
+ description: 'Set to "on" to offer Google One Tap on a hub sign-in spoke\'s signed-out account page; the hub must set AILK_GOOGLE_ONE_TAP_CLIENT_ID and list this origin with Google. Anything else leaves it off.',
60
+ secret: false,
61
+ },
58
62
  AILK_HUB_SIGN_IN_URL: {
59
63
  description: "The hub's WEB origin where its /sign-in lives (https:, or http: on localhost). Server-only; create-ailk writes it to .env.local.",
60
64
  secret: false,
@@ -79,6 +83,10 @@ export const ENV_CATALOG = {
79
83
  description: "The scope captured leads are stamped with; on a single-tenant install, the default workspace id.",
80
84
  secret: false,
81
85
  },
86
+ AILK_SMS_COUNTRY_CODES: {
87
+ description: 'Comma-separated calling codes a phone-verification code may be texted to (default "1"); the API relay checks the same list.',
88
+ secret: false,
89
+ },
82
90
  AILK_SPOKE_KEY: {
83
91
  description: "The hub-issued key this site sends as x-ailk-spoke-key; the checkout fulfilment refuses to run without it. Never committed.",
84
92
  secret: true,
package/dist/surfaces.js CHANGED
@@ -752,9 +752,9 @@ export const ROUTE_SINCE = {
752
752
  // #8661 D10 — the working-agreement page. Genuinely new, so it attaches at
753
753
  // the fixed group's next release line, the same rule #7430 applied.
754
754
  "working-agreement": "0.42.0",
755
- // #5014 — the (authed) route GROUP: layout.tsx + sign-in-gate.tsx sit
756
- // directly under "(authed)" (a Next.js route group — its parens are not a
757
- // URL segment); account/ and waitlist/ are its two syncable sub-trees.
755
+ // #5014 — the (authed) route GROUP: layout.tsx sits directly under
756
+ // "(authed)" (a Next.js route group — its parens are not a URL segment);
757
+ // account/ and waitlist/ are its two syncable sub-trees.
758
758
  // None of these are attributable to a historical release the way the
759
759
  // "0.0.0 = predates the manifest" entries above are, but they are also not
760
760
  // genuinely new at HEAD — this run resolves them to the CURRENT fixed-group
@@ -802,6 +802,21 @@ export const ROUTE_SINCE = {
802
802
  // #9966 D2 — the hub's consent page. Genuinely new, so it attaches at the
803
803
  // fixed group's next release line.
804
804
  "(authed)/account/connect": "0.50.0",
805
+ // #11106 D5 — the invitation accept page. Genuinely new, so it attaches at
806
+ // the fixed group's next release line.
807
+ "(authed)/account/invitations/[invitationId]": "0.60.0",
808
+ // #11164 AC-3 — the Privacy tab's data export, re-served by the site's own
809
+ // route handler. Genuinely new, so it attaches at the fixed group's next
810
+ // release line.
811
+ "(authed)/account/privacy/export": "0.60.0",
812
+ // #11154 — the member Appointments list and a type's booking page.
813
+ // Genuinely new, so they attach at the fixed group's next release line.
814
+ "(authed)/account/appointments": "0.60.0",
815
+ "(authed)/account/appointments/[slug]": "0.60.0",
816
+ // #11152 — the member thread page, which the New menu's Send message
817
+ // opens. Genuinely new, so it attaches at the fixed group's next release
818
+ // line.
819
+ "(authed)/account/inbox/thread": "0.60.0",
805
820
  // #10051 D9 — the templates route family. Genuinely new, so it attaches at
806
821
  // the fixed group's next release line.
807
822
  templates: "0.50.0",
@@ -985,19 +1000,19 @@ export const ROUTE_DEPENDENCIES = {
985
1000
  // binds the config's actions to the popups, which import the menu and its
986
1001
  // server actions. (account-config.ts itself imports none of them — a
987
1002
  // spoke without sign-in drops the `(authed)` group and keeps the config.)
1003
+ // #11152 — Send message is a link to the thread page; its popup is gone.
988
1004
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
989
1005
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
990
1006
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
991
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
992
1007
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
993
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
994
1008
  ],
995
1009
  // #7920 — the member file read re-serves the hub's bytes with the
996
1010
  // credential `forwardedCookieInit` returns.
997
1011
  "(authed)/account/inbox/message/[id]/file": ["apps/web/lib/server-api.ts"],
998
- // #8232 D13 — the settings route is a redirect now; what it still imports
999
- // from outside itself is `theme-modes.ts`'s theme reader and the brand file
1000
- // that reader imports.
1012
+ // #8232 D13 — the settings route is a redirect now. #11167 dropped its
1013
+ // `theme-modes.ts` (Color mode renders on every site), so it imports
1014
+ // nothing outside itself; the brand and theme files it once carried stay
1015
+ // listed so an older scaffold's copies still compile.
1001
1016
  "(authed)/account/settings": [
1002
1017
  "apps/web/lib/site-brand.tsx",
1003
1018
  "apps/web/lib/site-theme.ts",
@@ -1026,17 +1041,15 @@ export const ROUTE_DEPENDENCIES = {
1026
1041
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1027
1042
  `${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
1028
1043
  `${ROUTE_ROOT}/(authed)/account/profile-actions.ts`,
1029
- `${ROUTE_ROOT}/(authed)/account/settings/theme-modes.ts`,
1030
1044
  // #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
1031
1045
  // binds the config's actions to the popups, which import the menu and its
1032
1046
  // server actions. (account-config.ts itself imports none of them — a
1033
1047
  // spoke without sign-in drops the `(authed)` group and keeps the config.)
1048
+ // #11152 — Send message is a link to the thread page; its popup is gone.
1034
1049
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1035
1050
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1036
1051
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1037
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1038
1052
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1039
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1040
1053
  ],
1041
1054
  // #8339 D11 — Security holds the former Sign-in section, moved verbatim
1042
1055
  // from General: `sign-in-method.ts` and what it imports. #8431 D8 — the
@@ -1065,11 +1078,12 @@ export const ROUTE_DEPENDENCIES = {
1065
1078
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1066
1079
  `${ROUTE_ROOT}/(authed)/account/privacy/actions.ts`,
1067
1080
  ],
1068
- // #8438 D14 — Privacy's five sections: the summary, the cookie-choice
1069
- // read from the browser cookie, data-use consents and read-only
1070
- // agreements (both through `member.consents`), and Request account
1071
- // deletion, moved here unchanged from General (D16) — so Privacy needs
1072
- // General's own deletion files too, the same cross-directory rule #8339
1081
+ // #8438 D14 — Privacy reads the registry through `member.consents`;
1082
+ // #11164 reshapes it (the lead, the data-use row, the training switch and
1083
+ // the Your data table) and drops the deletion request, so General's
1084
+ // deletion files are no longer its dependencies — only `profile-source.ts`
1085
+ // (which decides whether Support may take an account-deletion request) and
1086
+ // the `sign-in-method.ts` it imports, the same cross-directory rule #8339
1073
1087
  // D11 applied to Notifications' cookie-settings link.
1074
1088
  "(authed)/account/privacy": [
1075
1089
  "apps/web/lib/account-config.ts",
@@ -1078,10 +1092,11 @@ export const ROUTE_DEPENDENCIES = {
1078
1092
  `${ROUTE_ROOT}/(authed)/account/account-data.ts`,
1079
1093
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1080
1094
  `${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
1081
- `${ROUTE_ROOT}/(authed)/account/profile-actions.ts`,
1082
- `${ROUTE_ROOT}/(authed)/account/general/deletion-request.tsx`,
1083
1095
  `${ROUTE_ROOT}/(authed)/account/general/profile-source.ts`,
1084
1096
  ],
1097
+ // #11164 AC-3 — the export route re-serves the member API's attachment
1098
+ // with the caller's own credential, the message file route's shape.
1099
+ "(authed)/account/privacy/export": ["apps/web/lib/server-api.ts"],
1085
1100
  "(authed)/account/billing": [
1086
1101
  "apps/web/lib/account-config.ts",
1087
1102
  // #9401 D7 — the site's own Billing sections, the frozen stub the page imports.
@@ -1097,12 +1112,11 @@ export const ROUTE_DEPENDENCIES = {
1097
1112
  // binds the config's actions to the popups, which import the menu and its
1098
1113
  // server actions. (account-config.ts itself imports none of them — a
1099
1114
  // spoke without sign-in drops the `(authed)` group and keeps the config.)
1115
+ // #11152 — Send message is a link to the thread page; its popup is gone.
1100
1116
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1101
1117
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1102
1118
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1103
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1104
1119
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1105
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1106
1120
  ],
1107
1121
  // #8234 — the Artifacts pages import files in their parent's directory, as
1108
1122
  // #7430's children do; the artifact page also imports its own parent's
@@ -1126,6 +1140,34 @@ export const ROUTE_DEPENDENCIES = {
1126
1140
  `${ROUTE_ROOT}/(authed)/account/artifacts/artifact-actions.ts`,
1127
1141
  ],
1128
1142
  "(authed)/account/artifacts/[pieceId]/versions/[version]/file": ["apps/web/lib/server-api.ts"],
1143
+ // #11154 — the Appointments pages import files in their parent's directory,
1144
+ // as the Artifacts pages do; the booking page also imports its own parent's
1145
+ // `appointments-data.ts`, which an older synced `appointments/` might lack.
1146
+ "(authed)/account/appointments": [
1147
+ "apps/web/lib/server-api.ts",
1148
+ `${ROUTE_ROOT}/(authed)/account/account-data.ts`,
1149
+ `${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
1150
+ `${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
1151
+ ],
1152
+ "(authed)/account/appointments/[slug]": [
1153
+ "apps/web/lib/server-api.ts",
1154
+ `${ROUTE_ROOT}/(authed)/account/account-data.ts`,
1155
+ `${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
1156
+ `${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
1157
+ `${ROUTE_ROOT}/(authed)/account/appointments/appointments-data.ts`,
1158
+ ],
1159
+ // #11152 — the member thread page imports its parent's reads, error row
1160
+ // and the New menu's server actions (its composer posts through
1161
+ // `sendMessage`), plus the account config the reads come from.
1162
+ "(authed)/account/inbox/thread": [
1163
+ "apps/web/lib/account-config.ts",
1164
+ "apps/web/lib/server-api.ts",
1165
+ `${ROUTE_ROOT}/(authed)/account/account-data.ts`,
1166
+ `${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
1167
+ `${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
1168
+ `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1169
+ `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1170
+ ],
1129
1171
  // #8515 D12 — the onboarding page imports its parent's account-data.ts
1130
1172
  // and error-row.tsx (which renders retry-button.tsx); its actions forward
1131
1173
  // the credential `forwardedCookieInit` returns. account-data.ts reads the
@@ -1146,12 +1188,11 @@ export const ROUTE_DEPENDENCIES = {
1146
1188
  // binds the config's actions to the popups, which import the menu and its
1147
1189
  // server actions. (account-config.ts itself imports none of them — a
1148
1190
  // spoke without sign-in drops the `(authed)` group and keeps the config.)
1191
+ // #11152 — Send message is a link to the thread page; its popup is gone.
1149
1192
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1150
1193
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1151
1194
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1152
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1153
1195
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1154
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1155
1196
  ],
1156
1197
  "(authed)/admin": [
1157
1198
  "apps/web/lib/server-api.ts",
@@ -1268,6 +1309,9 @@ export const ROUTE_MESSAGE_NAMESPACES = {
1268
1309
  // #8234 — the two Artifacts pages; the file route renders no string.
1269
1310
  "(authed)/account/artifacts": ["account"],
1270
1311
  "(authed)/account/artifacts/[pieceId]": ["account"],
1312
+ // #11154 — the two Appointments pages.
1313
+ "(authed)/account/appointments": ["account"],
1314
+ "(authed)/account/appointments/[slug]": ["account"],
1271
1315
  // #8515 — the onboarding page.
1272
1316
  "(authed)/account/onboarding": ["account"],
1273
1317
  // #9966 D2 — the hub's consent page reads its own namespace.
@@ -32,8 +32,8 @@ export declare const SPOKE_EXCLUDED_MODULE_PATHS: readonly string[];
32
32
  * The `(authed)` seeds of the sign-in-through-the-hub mode (#7894 D9): the
33
33
  * whole `(authed)` group goes in the default mode; in the hub mode its account
34
34
  * area, layout and gate seam stay, and only these go — the operator surfaces,
35
- * the Better Auth gate, the hub's own consent page (#9966 D2, a 404 on a
36
- * spoke) and the suites that mock `auth.ts` by path.
35
+ * the hub's own consent page (#9966 D2, a 404 on a spoke) and the suites that
36
+ * mock `auth.ts` by path.
37
37
  */
38
38
  export declare const HUB_MODE_AUTHED_SEEDS: readonly string[];
39
39
  /** The generated seam files (D5; #7874 D12). A seam is rewritten, never removed. */
@@ -145,8 +145,8 @@ export declare function renderWebSeam(topology: Topology, signIn?: SignInMode, o
145
145
  }): string;
146
146
  /**
147
147
  * `apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx` (#7894 D8).
148
- * The hub render is the `(authed)` layout's no-session branch, moved; the
149
- * `signIn: "hub"` render imports only the hub-session gate. A default-mode
148
+ * The hub render redirects to `/sign-in` (#11095 D3); the `signIn: "hub"`
149
+ * render is the spoke's own sign-in form, `SpokeSignIn` (#11096 D1). A default-mode
150
150
  * spoke carries no `(authed)` group, so it has no render.
151
151
  * @throws TopologyError for a spoke in the default mode.
152
152
  */