create-ailk 0.39.0 → 0.40.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.
Files changed (203) hide show
  1. package/component-catalog.json +1 -1
  2. package/component-catalog.md +1 -1
  3. package/dist/add-route.js +15 -0
  4. package/dist/body-heading.d.ts +2 -1
  5. package/dist/body-heading.js +31 -3
  6. package/dist/module-architecture.js +0 -3
  7. package/dist/remove-module.js +13 -4
  8. package/dist/routes.d.ts +7 -0
  9. package/dist/routes.js +1 -1
  10. package/dist/site-roster.js +7 -1
  11. package/dist/surfaces.d.ts +2 -0
  12. package/dist/surfaces.js +59 -172
  13. package/package.json +3 -3
  14. package/templates/apps/web/CLAUDE.md +19 -2
  15. package/templates/apps/web/__tests__/__mocks__/next-intl-server.ts +3 -2
  16. package/templates/apps/web/__tests__/__mocks__/next-intl.ts +3 -2
  17. package/templates/apps/web/app/[locale]/layout.tsx +42 -25
  18. package/templates/apps/web/app/api/revalidate/__tests__/route.test.ts +56 -1
  19. package/templates/apps/web/app/api/revalidate/route.ts +45 -4
  20. package/templates/apps/web/app/llms.txt/__tests__/site-listing.test.ts +53 -0
  21. package/templates/apps/web/app/llms.txt/route.ts +5 -2
  22. package/templates/apps/web/i18n/request.ts +5 -1
  23. package/templates/apps/web/jest.config.cjs +6 -0
  24. package/templates/apps/web/lib/__tests__/deck-page.test.ts +9 -0
  25. package/templates/apps/web/lib/__tests__/hub-site-config.test.ts +239 -0
  26. package/templates/apps/web/lib/__tests__/in-page-magnet-self-request.test.ts +1 -1
  27. package/templates/apps/web/lib/__tests__/in-page-magnet.test.ts +2 -2
  28. package/templates/apps/web/lib/__tests__/pricing-page.test.ts +1 -1
  29. package/templates/apps/web/lib/__tests__/profile-back-link.test.ts +58 -0
  30. package/templates/apps/web/lib/__tests__/served-pages.test.ts +163 -20
  31. package/templates/apps/web/lib/__tests__/site-brand.test.ts +77 -0
  32. package/templates/apps/web/{app/[locale]/contact → lib}/__tests__/site-contact-lines.test.ts +64 -0
  33. package/templates/apps/web/lib/__tests__/site-identity-feature-list.test.ts +115 -3
  34. package/templates/apps/web/lib/__tests__/structured-data.test.tsx +17 -4
  35. package/templates/apps/web/lib/hub-site-config.ts +151 -0
  36. package/templates/apps/web/lib/in-page-magnet.ts +2 -2
  37. package/templates/apps/web/lib/pricing-page.ts +3 -3
  38. package/templates/apps/web/lib/profile-back-link.ts +49 -12
  39. package/templates/apps/web/lib/served-pages.ts +144 -39
  40. package/templates/apps/web/lib/site-brand.tsx +66 -0
  41. package/templates/apps/web/{app/[locale]/contact → lib}/site-contact-email.ts +25 -5
  42. package/templates/apps/web/{app/[locale]/contact → lib}/site-contact-lines.ts +21 -5
  43. package/templates/apps/web/lib/site-header.ts +1 -1
  44. package/templates/apps/web/lib/site-identity.ts +38 -2
  45. package/templates/apps/web/messages/en.json +3 -119
  46. package/templates/apps/web/next.config.mjs +7 -0
  47. package/templates/apps/web/package.json +1 -0
  48. package/templates/apps/web/site-pages.config.tsx +85 -0
  49. package/templates/tools/body-heading.ts +30 -3
  50. package/versions.json +50 -49
  51. package/templates/apps/web/app/[locale]/(authed)/leads/__tests__/page.test.tsx +0 -205
  52. package/templates/apps/web/app/[locale]/(authed)/leads/components/LeadsTable.tsx +0 -137
  53. package/templates/apps/web/app/[locale]/(authed)/leads/page.tsx +0 -122
  54. package/templates/apps/web/app/[locale]/(authed)/waitlist/components/ForbiddenState.tsx +0 -24
  55. package/templates/apps/web/app/[locale]/(authed)/waitlist/format.ts +0 -111
  56. package/templates/apps/web/app/[locale]/[slug]/[detail]/__tests__/page.test.tsx +0 -402
  57. package/templates/apps/web/app/[locale]/[slug]/[detail]/page.tsx +0 -143
  58. package/templates/apps/web/app/[locale]/[slug]/__tests__/page.test.tsx +0 -148
  59. package/templates/apps/web/app/[locale]/[slug]/page.tsx +0 -109
  60. package/templates/apps/web/app/[locale]/about/[slug]/page.tsx +0 -46
  61. package/templates/apps/web/app/[locale]/about/__tests__/about-routes.test.tsx +0 -353
  62. package/templates/apps/web/app/[locale]/about/page.tsx +0 -122
  63. package/templates/apps/web/app/[locale]/alternatives/__tests__/page.test.tsx +0 -161
  64. package/templates/apps/web/app/[locale]/alternatives/page.tsx +0 -112
  65. package/templates/apps/web/app/[locale]/careers/[slug]/[action]/page.tsx +0 -244
  66. package/templates/apps/web/app/[locale]/careers/[slug]/apply.actions.ts +0 -325
  67. package/templates/apps/web/app/[locale]/careers/[slug]/job-application-form.ts +0 -120
  68. package/templates/apps/web/app/[locale]/careers/[slug]/page.tsx +0 -73
  69. package/templates/apps/web/app/[locale]/careers/__tests__/apply.actions.test.ts +0 -497
  70. package/templates/apps/web/app/[locale]/careers/__tests__/careers-hub.test.tsx +0 -172
  71. package/templates/apps/web/app/[locale]/careers/__tests__/careers-set.test.tsx +0 -153
  72. package/templates/apps/web/app/[locale]/careers/__tests__/job-application-form.test.ts +0 -141
  73. package/templates/apps/web/app/[locale]/careers/__tests__/job-apply-page.test.tsx +0 -546
  74. package/templates/apps/web/app/[locale]/careers/__tests__/page-renderer-migration.test.tsx +0 -189
  75. package/templates/apps/web/app/[locale]/careers/page.tsx +0 -165
  76. package/templates/apps/web/app/[locale]/case-studies/[slug]/page.tsx +0 -49
  77. package/templates/apps/web/app/[locale]/case-studies/__tests__/hub-children.test.tsx +0 -65
  78. package/templates/apps/web/app/[locale]/case-studies/__tests__/page-renderer-migration.test.tsx +0 -125
  79. package/templates/apps/web/app/[locale]/case-studies/page.tsx +0 -49
  80. package/templates/apps/web/app/[locale]/clients/__tests__/page-renderer-migration.test.tsx +0 -85
  81. package/templates/apps/web/app/[locale]/clients/page.tsx +0 -47
  82. package/templates/apps/web/app/[locale]/contact/ConversationalIntakeWrapper.tsx +0 -249
  83. package/templates/apps/web/app/[locale]/contact/__tests__/ConversationalIntakeWrapper.test.tsx +0 -400
  84. package/templates/apps/web/app/[locale]/contact/__tests__/contact-form-magnet.test.ts +0 -138
  85. package/templates/apps/web/app/[locale]/contact/__tests__/contact-form-text.test.ts +0 -49
  86. package/templates/apps/web/app/[locale]/contact/__tests__/contact-magnet-page.test.tsx +0 -494
  87. package/templates/apps/web/app/[locale]/contact/__tests__/contact.actions.test.ts +0 -1122
  88. package/templates/apps/web/app/[locale]/contact/__tests__/intake-analytics.test.ts +0 -51
  89. package/templates/apps/web/app/[locale]/contact/__tests__/page-renderer-migration.test.tsx +0 -319
  90. package/templates/apps/web/app/[locale]/contact/contact-form-magnet.ts +0 -77
  91. package/templates/apps/web/app/[locale]/contact/contact-form-text.ts +0 -52
  92. package/templates/apps/web/app/[locale]/contact/contact.actions.ts +0 -403
  93. package/templates/apps/web/app/[locale]/contact/intake-analytics.ts +0 -49
  94. package/templates/apps/web/app/[locale]/contact/intake-script.ts +0 -92
  95. package/templates/apps/web/app/[locale]/contact/page.tsx +0 -267
  96. package/templates/apps/web/app/[locale]/courses/[slug]/page.tsx +0 -50
  97. package/templates/apps/web/app/[locale]/courses/__tests__/hub-children.test.tsx +0 -32
  98. package/templates/apps/web/app/[locale]/courses/__tests__/page-renderer-migration.test.tsx +0 -123
  99. package/templates/apps/web/app/[locale]/courses/page.tsx +0 -49
  100. package/templates/apps/web/app/[locale]/events/[slug]/page.tsx +0 -57
  101. package/templates/apps/web/app/[locale]/events/__tests__/hub-children.test.tsx +0 -32
  102. package/templates/apps/web/app/[locale]/events/__tests__/page-renderer-migration.test.tsx +0 -164
  103. package/templates/apps/web/app/[locale]/events/__tests__/program-event.test.tsx +0 -120
  104. package/templates/apps/web/app/[locale]/events/page.tsx +0 -60
  105. package/templates/apps/web/app/[locale]/faq/page.tsx +0 -54
  106. package/templates/apps/web/app/[locale]/features/[slug]/page.tsx +0 -54
  107. package/templates/apps/web/app/[locale]/features/__tests__/hub-children.test.tsx +0 -32
  108. package/templates/apps/web/app/[locale]/features/page.tsx +0 -50
  109. package/templates/apps/web/app/[locale]/for/[slug]/page.tsx +0 -54
  110. package/templates/apps/web/app/[locale]/for/__tests__/hub-children.test.tsx +0 -32
  111. package/templates/apps/web/app/[locale]/for/__tests__/page-renderer-migration.test.tsx +0 -90
  112. package/templates/apps/web/app/[locale]/for/page.tsx +0 -51
  113. package/templates/apps/web/app/[locale]/glossary/page.tsx +0 -53
  114. package/templates/apps/web/app/[locale]/how-to/[slug]/page.tsx +0 -50
  115. package/templates/apps/web/app/[locale]/how-to/__tests__/page-renderer-migration.test.tsx +0 -78
  116. package/templates/apps/web/app/[locale]/how-to/page.tsx +0 -50
  117. package/templates/apps/web/app/[locale]/integrations/[slug]/page.tsx +0 -54
  118. package/templates/apps/web/app/[locale]/integrations/__tests__/hub-children.test.tsx +0 -38
  119. package/templates/apps/web/app/[locale]/integrations/__tests__/page-renderer-migration.test.tsx +0 -141
  120. package/templates/apps/web/app/[locale]/integrations/page.tsx +0 -49
  121. package/templates/apps/web/app/[locale]/launch-service/page.tsx +0 -44
  122. package/templates/apps/web/app/[locale]/newsletter/__tests__/page.test.tsx +0 -236
  123. package/templates/apps/web/app/[locale]/newsletter/page.tsx +0 -179
  124. package/templates/apps/web/app/[locale]/page.tsx +0 -147
  125. package/templates/apps/web/app/[locale]/partners/[slug]/page.tsx +0 -45
  126. package/templates/apps/web/app/[locale]/partners/__tests__/hub-children.test.tsx +0 -32
  127. package/templates/apps/web/app/[locale]/partners/__tests__/page-renderer-migration.test.tsx +0 -125
  128. package/templates/apps/web/app/[locale]/partners/page.tsx +0 -49
  129. package/templates/apps/web/app/[locale]/portfolio/[slug]/page.tsx +0 -46
  130. package/templates/apps/web/app/[locale]/portfolio/__tests__/hub-children.test.tsx +0 -38
  131. package/templates/apps/web/app/[locale]/portfolio/page.tsx +0 -50
  132. package/templates/apps/web/app/[locale]/pricing/[slug]/__tests__/page.test.tsx +0 -324
  133. package/templates/apps/web/app/[locale]/pricing/[slug]/page.tsx +0 -87
  134. package/templates/apps/web/app/[locale]/pricing/__tests__/__snapshots__/unconnected.test.tsx.snap +0 -7
  135. package/templates/apps/web/app/[locale]/pricing/__tests__/offerings.test.tsx +0 -605
  136. package/templates/apps/web/app/[locale]/pricing/__tests__/page.test.tsx +0 -219
  137. package/templates/apps/web/app/[locale]/pricing/__tests__/pricing-pages.test.tsx +0 -215
  138. package/templates/apps/web/app/[locale]/pricing/__tests__/unconnected.test.tsx +0 -282
  139. package/templates/apps/web/app/[locale]/pricing/page.tsx +0 -120
  140. package/templates/apps/web/app/[locale]/privacy/page.tsx +0 -40
  141. package/templates/apps/web/app/[locale]/products/[slug]/page.tsx +0 -50
  142. package/templates/apps/web/app/[locale]/products/__tests__/hub-children.test.tsx +0 -32
  143. package/templates/apps/web/app/[locale]/products/__tests__/page-renderer-migration.test.tsx +0 -141
  144. package/templates/apps/web/app/[locale]/products/page.tsx +0 -49
  145. package/templates/apps/web/app/[locale]/projects/[slug]/page.tsx +0 -37
  146. package/templates/apps/web/app/[locale]/projects/__tests__/hub-children.test.tsx +0 -32
  147. package/templates/apps/web/app/[locale]/projects/__tests__/page-renderer-migration.test.tsx +0 -157
  148. package/templates/apps/web/app/[locale]/projects/page.tsx +0 -49
  149. package/templates/apps/web/app/[locale]/purchase-policy/page.tsx +0 -49
  150. package/templates/apps/web/app/[locale]/resources/[slug]/page.tsx +0 -54
  151. package/templates/apps/web/app/[locale]/resources/__tests__/hub-children.test.tsx +0 -38
  152. package/templates/apps/web/app/[locale]/resources/__tests__/page-renderer-migration.test.tsx +0 -151
  153. package/templates/apps/web/app/[locale]/resources/page.tsx +0 -49
  154. package/templates/apps/web/app/[locale]/services/[slug]/[child]/page.tsx +0 -68
  155. package/templates/apps/web/app/[locale]/services/[slug]/page.tsx +0 -88
  156. package/templates/apps/web/app/[locale]/services/__tests__/hub-children.test.tsx +0 -158
  157. package/templates/apps/web/app/[locale]/services/__tests__/page-renderer-migration.test.tsx +0 -187
  158. package/templates/apps/web/app/[locale]/services/__tests__/service-detail-sections.test.tsx +0 -224
  159. package/templates/apps/web/app/[locale]/services/__tests__/service-families.test.tsx +0 -368
  160. package/templates/apps/web/app/[locale]/services/page.tsx +0 -71
  161. package/templates/apps/web/app/[locale]/software/[slug]/page.tsx +0 -49
  162. package/templates/apps/web/app/[locale]/software/__tests__/page-renderer-migration.test.tsx +0 -81
  163. package/templates/apps/web/app/[locale]/software/page.tsx +0 -49
  164. package/templates/apps/web/app/[locale]/team/[slug]/page.tsx +0 -45
  165. package/templates/apps/web/app/[locale]/team/__tests__/hub-children.test.tsx +0 -32
  166. package/templates/apps/web/app/[locale]/team/__tests__/team-routes.test.tsx +0 -161
  167. package/templates/apps/web/app/[locale]/team/page.tsx +0 -50
  168. package/templates/apps/web/app/[locale]/tech-articles/[slug]/page.tsx +0 -54
  169. package/templates/apps/web/app/[locale]/tech-articles/__tests__/page-renderer-migration.test.tsx +0 -82
  170. package/templates/apps/web/app/[locale]/tech-articles/page.tsx +0 -49
  171. package/templates/apps/web/app/[locale]/templates/[slug]/__tests__/page.test.tsx +0 -203
  172. package/templates/apps/web/app/[locale]/templates/[slug]/page.tsx +0 -81
  173. package/templates/apps/web/app/[locale]/templates/__tests__/page.test.tsx +0 -237
  174. package/templates/apps/web/app/[locale]/templates/page.tsx +0 -114
  175. package/templates/apps/web/app/[locale]/terms/page.tsx +0 -40
  176. package/templates/apps/web/app/[locale]/testimonials/__tests__/page-renderer-migration.test.tsx +0 -85
  177. package/templates/apps/web/app/[locale]/testimonials/page.tsx +0 -51
  178. package/templates/apps/web/app/[locale]/thanks/[slug]/__tests__/page.test.tsx +0 -136
  179. package/templates/apps/web/app/[locale]/thanks/[slug]/page.tsx +0 -39
  180. package/templates/apps/web/app/[locale]/unsubscribe/__tests__/unsubscribe-rsc-boundary.test.tsx +0 -226
  181. package/templates/apps/web/app/[locale]/unsubscribe/__tests__/unsubscribe.test.tsx +0 -217
  182. package/templates/apps/web/app/[locale]/unsubscribe/page.tsx +0 -106
  183. package/templates/apps/web/app/[locale]/unsubscribe/unsubscribe-button.tsx +0 -94
  184. package/templates/apps/web/app/[locale]/unsubscribe/unsubscribe.actions.ts +0 -55
  185. package/templates/apps/web/app/[locale]/vs/[slug]/__tests__/page.test.tsx +0 -100
  186. package/templates/apps/web/app/[locale]/vs/[slug]/page.tsx +0 -60
  187. package/templates/apps/web/app/[locale]/whitepapers/[slug]/page.tsx +0 -54
  188. package/templates/apps/web/app/[locale]/whitepapers/__tests__/page-renderer-migration.test.tsx +0 -82
  189. package/templates/apps/web/app/[locale]/whitepapers/page.tsx +0 -49
  190. package/templates/apps/web/app/[locale]/working-agreement/__tests__/page.test.tsx +0 -63
  191. package/templates/apps/web/app/[locale]/working-agreement/page.tsx +0 -41
  192. package/templates/apps/web/lib/__tests__/hub-children.fixtures.ts +0 -279
  193. package/templates/apps/web/lib/__tests__/route-family.test.ts +0 -57
  194. package/templates/apps/web/lib/__tests__/service-listing.test.ts +0 -111
  195. package/templates/apps/web/lib/__tests__/template-listing.test.ts +0 -158
  196. package/templates/apps/web/lib/hub-children.tsx +0 -351
  197. package/templates/apps/web/lib/meet-placeholder.ts +0 -5
  198. package/templates/apps/web/lib/posting-title.ts +0 -39
  199. package/templates/apps/web/lib/route-family.ts +0 -69
  200. package/templates/apps/web/lib/service-listing.ts +0 -89
  201. package/templates/apps/web/lib/template-listing.ts +0 -169
  202. package/templates/apps/web/src/lib/__tests__/lead-write.test.ts +0 -187
  203. package/templates/apps/web/src/lib/lead-write.ts +0 -90
@@ -72,35 +72,6 @@
72
72
  "heading": "My Site",
73
73
  "emptyState": "Home page content coming soon."
74
74
  },
75
- "about": {
76
- "heading": "About",
77
- "emptyState": "About page content coming soon.",
78
- "viewProfile": "View profile"
79
- },
80
- "careers": {
81
- "heading": "Careers",
82
- "emptyState": "Career listings coming soon.",
83
- "applicationSuccess": "Thank you for applying! We have your application and will be in touch.",
84
- "apply": "Apply for this role",
85
- "openPositions": "Open positions",
86
- "viewRole": "View role",
87
- "employmentTypeFullTime": "Full-time",
88
- "employmentTypePartTime": "Part-time",
89
- "employmentTypeContractor": "Contract",
90
- "employmentTypeTemporary": "Temporary",
91
- "employmentTypeIntern": "Internship",
92
- "employmentTypeVolunteer": "Volunteer",
93
- "employmentTypePerDiem": "Per diem",
94
- "employmentTypeOther": "Other",
95
- "filterSearch": "Search roles",
96
- "filterType": "Type",
97
- "filterAllTypes": "All types",
98
- "filterLocation": "Location",
99
- "filterAllLocations": "All locations",
100
- "filterEmpty": "No open positions match your search.",
101
- "filterCountOne": "1 open position",
102
- "filterCountOther": "{count} open positions"
103
- },
104
75
  "case-studies": {
105
76
  "heading": "Case Studies",
106
77
  "emptyState": "Case studies listing coming soon."
@@ -121,43 +92,6 @@
121
92
  "heading": "Clients",
122
93
  "emptyState": "Clients listing coming soon."
123
94
  },
124
- "contact": {
125
- "heading": "Contact",
126
- "emptyState": "Contact page content coming soon.",
127
- "nameLabel": "Name",
128
- "emailLabel": "Email",
129
- "messageLabel": "Message",
130
- "sending": "Sending\u2026",
131
- "sendMessage": "Send message",
132
- "successMessage": "Thank you for reaching out! We will be in touch shortly.",
133
- "trackInAccount": "Track this in your account",
134
- "consentStatement": "I accept the [Terms](terms) and [Privacy Policy](privacy).",
135
- "preferEmail": "Prefer email?",
136
- "consentRequired": "Please accept the terms to send your message.",
137
- "genericError": "Something went wrong, please try again.",
138
- "unavailableHeading": "Get in touch",
139
- "unavailableBody": "Email us at {email} and we'll reply.",
140
- "unavailableNoEmail": "Contact details for this site haven't been published yet.",
141
- "intake": {
142
- "guidedBadge": "Guided",
143
- "skip": "Skip",
144
- "send": "Send",
145
- "freeTextPlaceholder": "Type your answer…",
146
- "nameAck": "Thanks for stopping by!",
147
- "namePrompt": "What's your name?",
148
- "messageAck": "Good to meet you.",
149
- "messagePrompt": "What are you hoping to get done?",
150
- "emailAck": "Got it.",
151
- "emailPrompt": "What's the best email to reach you at?",
152
- "consentAck": "Thanks — one last thing.",
153
- "consentPrompt": "Do you accept our Terms and Privacy Policy? They're linked at the foot of every page.",
154
- "consentAccept": "Yes, I accept",
155
- "consentDecline": "Not yet",
156
- "skipMessage": "No worries — here's our form instead.",
157
- "completionMessage": "Thanks! We'll be in touch shortly.",
158
- "submitError": "We couldn't send that automatically — please review and send below."
159
- }
160
- },
161
95
  "downloads": {
162
96
  "heading": "Downloads",
163
97
  "emptyState": "Downloads listing coming soon."
@@ -190,23 +124,6 @@
190
124
  "heading": "Launch Service",
191
125
  "emptyState": "Launch Service page content coming soon."
192
126
  },
193
- "leadsInbox": {
194
- "title": "Leads",
195
- "description": "Every lead your site has captured, newest first.",
196
- "forbiddenHeadline": "You don't have access",
197
- "forbiddenDescription": "Sign in with the account that owns this site to see the leads it captured.",
198
- "table": {
199
- "caption": "Leads captured by your site",
200
- "columnName": "Name",
201
- "columnEmail": "Email",
202
- "columnSource": "Source",
203
- "columnCreated": "Captured",
204
- "unavailable": "—",
205
- "next": "Next page",
206
- "emptyHeadline": "No leads yet",
207
- "emptyDescription": "Leads captured by your site's forms will appear here."
208
- }
209
- },
210
127
  "partners": {
211
128
  "heading": "Partners",
212
129
  "emptyState": "Partners listing coming soon."
@@ -226,10 +143,6 @@
226
143
  "withRequired": "{plan} + {required}",
227
144
  "depositNote": "{deposit} deposit due today; the balance is invoiced."
228
145
  },
229
- "pricingPages": {
230
- "heading": "Pricing by offering",
231
- "viewPricing": "See pricing"
232
- },
233
146
  "purchasePolicy": {
234
147
  "heading": "Purchase Policy",
235
148
  "emptyState": "Purchase policy content coming soon."
@@ -263,17 +176,6 @@
263
176
  "schedule": {
264
177
  "bookLength": "Book {minutes} min"
265
178
  },
266
- "services": {
267
- "heading": "Services",
268
- "emptyState": "Services listing coming soon.",
269
- "childrenHeading": "Services in this area",
270
- "viewService": "View service"
271
- },
272
- "software": {
273
- "heading": "Software",
274
- "description": "The @working-theory/* packages — typed tools for building AX-first products.",
275
- "emptyState": "Software listings coming soon."
276
- },
277
179
  "tech-articles": {
278
180
  "heading": "Technical Articles",
279
181
  "description": "Deep dives into the architecture and internals of this site.",
@@ -299,17 +201,6 @@
299
201
  "heading": "Alternatives",
300
202
  "emptyState": "Comparisons coming soon."
301
203
  },
302
- "templates": {
303
- "heading": "Templates",
304
- "emptyState": "Templates coming soon.",
305
- "getIt": "Get it",
306
- "startFree": "Start free",
307
- "viewDemo": "View demo",
308
- "viewTemplate": "View template",
309
- "included": "What's included",
310
- "demoBadge": "Live demo",
311
- "moreCategories": "+{count} more"
312
- },
313
204
  "reports": {
314
205
  "heading": "Reports",
315
206
  "emptyState": "Reports coming soon.",
@@ -431,11 +322,6 @@
431
322
  "genericTitle": "Waitlist signup"
432
323
  }
433
324
  },
434
- "whitepapers": {
435
- "heading": "Whitepapers",
436
- "description": "In-depth research and strategy papers from this site's team.",
437
- "emptyState": "Whitepapers coming soon."
438
- },
439
325
  "account": {
440
326
  "yourAccount": "Your account",
441
327
  "gate": {
@@ -892,6 +778,9 @@
892
778
  "bodyCodeOnly": "This page has markup only the Code view can show, so it opens in Code.",
893
779
  "tagPlaceholder": "{kind}: {slug}",
894
780
  "pinnedFaq": "Pinned FAQ: {question}",
781
+ "pinnedProof": "Pinned proof: {name}",
782
+ "referenceNotLive": "Not live",
783
+ "referenceMissing": "Missing",
895
784
  "pulledTag": "FAQs tagged {tag}"
896
785
  },
897
786
  "body": {
@@ -925,11 +814,6 @@
925
814
  "heading": "Features",
926
815
  "emptyState": "Features coming soon."
927
816
  },
928
- "unsubscribe": {
929
- "already": "You were already unsubscribed.",
930
- "invalid": "This link isn't valid.",
931
- "unavailable": "Unsubscribing isn't available right now."
932
- },
933
817
  "hubConnect": {
934
818
  "metaTitle": "Sign in to a site",
935
819
  "title": "Sign in to {name}?",
@@ -344,6 +344,9 @@ const nextConfig = {
344
344
  "@working-theory/schema-pack-registry",
345
345
  "@working-theory/sections-registry",
346
346
  "@working-theory/site-config",
347
+ // #11259 (ADR 0040 phase 4): the base website pages ship as TypeScript
348
+ // source; the generated route files under app/[locale]/ re-export them.
349
+ "@working-theory/site-pages",
347
350
  "@working-theory/theme",
348
351
  "@working-theory/ui",
349
352
  "@working-theory/ui-commerce",
@@ -372,9 +375,13 @@ const nextConfig = {
372
375
  // handlers import `@working-theory/auth/site`, answered by auth.config.tsx
373
376
  // (`AuthSite`). `create-ailk routes --check` refuses a site whose manifests
374
377
  // include the package and whose config lacks this line (SEC-11257-1).
378
+ // #11259 — the base website pages' seam, the same way: their pages, actions
379
+ // and loaders import `@working-theory/site-pages/site`, answered by
380
+ // site-pages.config.tsx (`SitePagesSite`).
375
381
  webpack(config) {
376
382
  config.resolve.alias["@working-theory/account/site$"] = join(process.cwd(), "account.config.tsx");
377
383
  config.resolve.alias["@working-theory/auth/site$"] = join(process.cwd(), "auth.config.tsx");
384
+ config.resolve.alias["@working-theory/site-pages/site$"] = join(process.cwd(), "site-pages.config.tsx");
378
385
  config.resolve.alias["@working-theory/ui-signal-collectors/site$"] = join(
379
386
  process.cwd(),
380
387
  "signal-collectors.config.tsx",
@@ -32,6 +32,7 @@
32
32
  "@working-theory/schema-pack-registry": "workspace:*",
33
33
  "@working-theory/schema-validator": "workspace:*",
34
34
  "@working-theory/site-config": "workspace:*",
35
+ "@working-theory/site-pages": "workspace:*",
35
36
  "@working-theory/spoke-checkout": "workspace:*",
36
37
  "@working-theory/templates": "workspace:*",
37
38
  "@working-theory/theme": "workspace:*",
@@ -0,0 +1,85 @@
1
+ /**
2
+ * site-pages.config.tsx — this site's answer to the base website pages'
3
+ * runtime-services seam (ADR 0040 rule 4; #11259 D3).
4
+ *
5
+ * The pages under `app/[locale]/` that `@working-theory/site-pages` ships are
6
+ * generated re-exports (`create-ailk routes`); the package's pages, server
7
+ * actions and loaders read the site's own services through the one fixed
8
+ * specifier `@working-theory/site-pages/site`, which `next.config.mjs`
9
+ * aliases to this file (and `jest.config.cjs` maps). Its named export `site`
10
+ * carries exactly those services; its shape is `SitePagesSite`, fixed by the
11
+ * package, so a missing or misspelled member fails `tsc`.
12
+ *
13
+ * Not a customization slot: no page is site-configurable beyond these
14
+ * services (rule 8), so this file has no default export and no option.
15
+ */
16
+ import type { SitePagesSite } from "@working-theory/site-pages/site";
17
+
18
+ import { accountInviteHref } from "./lib/account-invite";
19
+ import { runBotCheck } from "./lib/bot-check";
20
+ import { consentVisitorHeader, ensureConsentVisitor, readConsentVisitor } from "./lib/consent-visitor";
21
+ import { framedSources, inPageView, newsletterSignup, readCaptureStatus, readServedMagnet } from "./lib/in-page-magnet";
22
+ import { MARKETING_PAGES } from "./lib/modules.generated";
23
+ import { isShownLookupKey, offeringsCheckoutHref } from "./lib/offerings-pricing";
24
+ import {
25
+ offeringPricingPages,
26
+ pagePlans,
27
+ PRICING_HUB_SLUG,
28
+ pricingPageCard,
29
+ pricingSections,
30
+ pricingSectionSlots,
31
+ } from "./lib/pricing-page";
32
+ import { ApiError, forwardedCookieInit, unwrapApiResult } from "./lib/server-api";
33
+ import { SERVICES_PATH, SERVICES_ROUTE, toPublicServicesHref } from "./lib/services-path";
34
+ import { siteChrome } from "./lib/site-chrome";
35
+ import { readSiteContactEmail } from "./lib/site-contact-email";
36
+ import { siteLogomarkAsset, siteWordmarkAsset } from "./lib/site-logo";
37
+ import { readSession } from "./lib/topology.generated";
38
+ import { takeVisitorLimit } from "./src/lib/rate-limit";
39
+ import { pagePathFor } from "./src/lib/routes";
40
+
41
+ // `lib/in-page-magnet` imports two package modules that import this seam (a
42
+ // cycle, as account.config.tsx has with the account actions): its members
43
+ // copied below must stay hoisted function declarations, read at call time.
44
+ export const site = {
45
+ accountInviteHref,
46
+ runBotCheck,
47
+ consentVisitorHeader,
48
+ readConsentVisitor,
49
+ ensureConsentVisitor,
50
+ framedSources,
51
+ inPageView,
52
+ readCaptureStatus,
53
+ readServedMagnet,
54
+ newsletterSignup,
55
+ // Loaded on first call, as the two modules' registrations (the listing
56
+ // extension, the deck pages) already run from the locale layout: a page's
57
+ // module graph stays what it was before the move.
58
+ listingExtension: {
59
+ entryAt: async (...args) => (await import("./lib/listings")).listingExtension.entryAt(...args),
60
+ entryMetadataAt: async (...args) => (await import("./lib/listings")).listingExtension.entryMetadataAt(...args),
61
+ },
62
+ MARKETING_PAGES,
63
+ isShownLookupKey,
64
+ offeringsCheckoutHref,
65
+ resolveHomeChrome: async (...args) => (await import("./lib/page-chrome")).resolveHomeChrome(...args),
66
+ offeringPricingPages,
67
+ pagePlans,
68
+ pricingPageCard,
69
+ pricingSections,
70
+ pricingSectionSlots,
71
+ PRICING_HUB_SLUG,
72
+ ApiError,
73
+ forwardedCookieInit,
74
+ unwrapApiResult,
75
+ SERVICES_PATH,
76
+ SERVICES_ROUTE,
77
+ toPublicServicesHref,
78
+ siteChrome,
79
+ siteLogomarkAsset,
80
+ siteWordmarkAsset,
81
+ takeVisitorLimit,
82
+ pagePathFor,
83
+ readSiteContactEmail,
84
+ getSession: readSession,
85
+ } satisfies SitePagesSite;
@@ -25,7 +25,8 @@
25
25
  * file from source.
26
26
  */
27
27
  import { existsSync, lstatSync, readFileSync, readdirSync, writeFileSync } from "node:fs";
28
- import { join } from "node:path";
28
+ import { createRequire } from "node:module";
29
+ import { join, resolve } from "node:path";
29
30
 
30
31
  /** Per content type: mdx-body always, or only while `sections[]` is empty. */
31
32
  export type MdxBodyRule = Map<string, "always" | "unless-sections">;
@@ -57,19 +58,45 @@ function pageFiles(dir: string, out: string[] = []): string[] {
57
58
  return out;
58
59
  }
59
60
 
61
+ // A route file `create-ailk routes` generated (#11259 D8): its header line
62
+ // (after an optional `// oss: false` marker) and the package page it re-exports.
63
+ const GENERATED_ROUTE_HEADER = "// Generated by create-ailk routes from ";
64
+ const OSS_FALSE_MARKER = "// oss: false";
65
+ const GENERATED_FROM_RE = /\bfrom\s+"(@working-theory\/[^"]+)"/;
66
+
67
+ /**
68
+ * A page file's own source. A generated route file is followed to the package
69
+ * page it re-exports, resolved from the site's `apps/web` as Next resolves it
70
+ * (#11259 D8: the base pages ship in `@working-theory/site-pages`); one whose
71
+ * package is not installed reads as itself.
72
+ */
73
+ function pageSource(file: string, webDir: string): string {
74
+ const text = readFileSync(file, "utf8");
75
+ const [line1 = "", line2 = ""] = text.split("\n", 2);
76
+ if (!(line1 === OSS_FALSE_MARKER ? line2 : line1).startsWith(GENERATED_ROUTE_HEADER)) return text;
77
+ const specifier = GENERATED_FROM_RE.exec(text)?.[1];
78
+ if (specifier === undefined) return text;
79
+ try {
80
+ return readFileSync(createRequire(resolve(webDir, "package.json")).resolve(specifier), "utf8");
81
+ } catch {
82
+ return text;
83
+ }
84
+ }
85
+
60
86
  /**
61
87
  * Scan `<appsRoot>/apps/web/app/**\/page.{ts,tsx}` for `renderPage({…})` calls
62
88
  * naming `bodyMode: "mdx-body"`. A call whose `bodyMode` sits in a conditional
63
89
  * spread is `"unless-sections"`, any other `"always"`; `"always"` wins when two
64
90
  * routes name one type. A content hub's `HubConfig` reads the same way, from
65
- * its `body`. A missing `apps/web/app` gives an empty map.
91
+ * its `body`. A generated route file reads as the package page it re-exports
92
+ * (`pageSource`). A missing `apps/web/app` gives an empty map.
66
93
  */
67
94
  export function mdxBodyRule(appsRoot: string): MdxBodyRule {
68
95
  const rule: MdxBodyRule = new Map();
69
96
  const appDir = join(appsRoot, "apps", "web", "app");
70
97
  if (!existsSync(appDir)) return rule;
71
98
  for (const file of pageFiles(appDir)) {
72
- const source = readFileSync(file, "utf8");
99
+ const source = pageSource(file, join(appsRoot, "apps", "web"));
73
100
  if (HUB_INPUT_RE.test(source)) {
74
101
  const types = [...source.matchAll(HUB_LIST_TYPE_RE)];
75
102
  const bodies = [...source.matchAll(HUB_BODY_RE)];
package/versions.json CHANGED
@@ -1,68 +1,69 @@
1
1
  {
2
- "@working-theory/account": "0.63.0",
3
- "@working-theory/admin-ui": "0.63.0",
4
- "@working-theory/aeo": "0.63.0",
5
- "@working-theory/agent-context": "0.63.0",
2
+ "@working-theory/account": "0.65.0",
3
+ "@working-theory/admin-ui": "0.65.0",
4
+ "@working-theory/aeo": "0.65.0",
5
+ "@working-theory/agent-context": "0.65.0",
6
6
  "@working-theory/agent-contract": "0.1.0",
7
7
  "@working-theory/agent-memory": "0.0.0",
8
8
  "@working-theory/ai": "0.1.0",
9
- "@working-theory/analytics": "0.63.0",
10
- "@working-theory/api": "0.63.0",
11
- "@working-theory/api-client": "0.63.0",
12
- "@working-theory/auth": "0.63.0",
9
+ "@working-theory/analytics": "0.65.0",
10
+ "@working-theory/api": "0.65.0",
11
+ "@working-theory/api-client": "0.65.0",
12
+ "@working-theory/auth": "0.65.0",
13
13
  "@working-theory/cda-filesystem": "0.0.0",
14
- "@working-theory/cli": "0.63.0",
15
- "@working-theory/common": "0.63.0",
14
+ "@working-theory/cli": "0.65.0",
15
+ "@working-theory/common": "0.65.0",
16
16
  "@working-theory/consent": "0.1.0",
17
- "@working-theory/content-adapters": "0.63.0",
18
- "@working-theory/content-projection": "0.63.0",
19
- "@working-theory/email": "0.63.0",
17
+ "@working-theory/content-adapters": "0.65.0",
18
+ "@working-theory/content-projection": "0.65.0",
19
+ "@working-theory/email": "0.65.0",
20
20
  "@working-theory/env": "0.0.0",
21
- "@working-theory/eslint-config": "0.63.0",
22
- "@working-theory/fumadocs-schema": "0.63.0",
21
+ "@working-theory/eslint-config": "0.65.0",
22
+ "@working-theory/fumadocs-schema": "0.65.0",
23
23
  "@working-theory/ids": "0.20.1",
24
- "@working-theory/jsonld": "0.63.0",
25
- "@working-theory/license": "0.63.0",
26
- "@working-theory/mcp-server": "0.63.0",
27
- "@working-theory/metadata": "0.63.0",
28
- "@working-theory/observability": "0.63.0",
29
- "@working-theory/page-renderer": "0.63.0",
24
+ "@working-theory/jsonld": "0.65.0",
25
+ "@working-theory/license": "0.65.0",
26
+ "@working-theory/mcp-server": "0.65.0",
27
+ "@working-theory/metadata": "0.65.0",
28
+ "@working-theory/observability": "0.65.0",
29
+ "@working-theory/page-renderer": "0.65.0",
30
30
  "@working-theory/plugin-mcp": "0.1.3",
31
- "@working-theory/schema": "0.63.0",
32
- "@working-theory/schema-pack-registry": "0.63.0",
33
- "@working-theory/schema-validator": "0.63.0",
34
- "@working-theory/sections-registry": "0.63.0",
35
- "@working-theory/site-config": "0.63.0",
36
- "@working-theory/spoke-checkout": "0.7.19",
37
- "@working-theory/stripe-client": "0.63.0",
38
- "@working-theory/templates": "0.63.0",
39
- "@working-theory/theme": "0.63.0",
40
- "@working-theory/ui": "0.63.0",
41
- "@working-theory/validation": "0.63.0",
42
- "@working-theory/web-i18n": "0.63.0",
43
- "@working-theory/admin": "0.16.1",
44
- "@working-theory/api-commerce": "0.1.17",
45
- "@working-theory/api-content-write": "0.10.1",
46
- "@working-theory/api-hub": "0.6.2",
47
- "@working-theory/api-multi-tenant": "0.3.3",
48
- "@working-theory/api-scheduling": "0.6.2",
49
- "@working-theory/api-signal-collectors": "0.6.3",
50
- "@working-theory/api-workspace": "0.10.1",
31
+ "@working-theory/schema": "0.65.0",
32
+ "@working-theory/schema-pack-registry": "0.65.0",
33
+ "@working-theory/schema-validator": "0.65.0",
34
+ "@working-theory/sections-registry": "0.65.0",
35
+ "@working-theory/site-config": "0.65.0",
36
+ "@working-theory/site-pages": "0.65.0",
37
+ "@working-theory/spoke-checkout": "0.7.21",
38
+ "@working-theory/stripe-client": "0.65.0",
39
+ "@working-theory/templates": "0.65.0",
40
+ "@working-theory/theme": "0.65.0",
41
+ "@working-theory/ui": "0.65.0",
42
+ "@working-theory/validation": "0.65.0",
43
+ "@working-theory/web-i18n": "0.65.0",
44
+ "@working-theory/admin": "0.17.0",
45
+ "@working-theory/api-commerce": "0.1.19",
46
+ "@working-theory/api-content-write": "0.10.3",
47
+ "@working-theory/api-hub": "0.6.4",
48
+ "@working-theory/api-multi-tenant": "0.3.5",
49
+ "@working-theory/api-scheduling": "0.6.4",
50
+ "@working-theory/api-signal-collectors": "0.6.5",
51
+ "@working-theory/api-workspace": "0.11.0",
51
52
  "@working-theory/billing-client": "0.0.0",
52
53
  "@working-theory/branding": "0.0.0",
53
54
  "@working-theory/license-client": "0.0.0",
54
55
  "@working-theory/license-manifest": "0.0.0",
55
- "@working-theory/mcp-scheduling": "0.4.4",
56
- "@working-theory/mcp-signal-collectors": "0.2.17",
57
- "@working-theory/mcp-workspace": "0.9.1",
56
+ "@working-theory/mcp-scheduling": "0.4.6",
57
+ "@working-theory/mcp-signal-collectors": "0.2.19",
58
+ "@working-theory/mcp-workspace": "0.9.3",
58
59
  "@working-theory/partner-session": "0.0.0",
59
60
  "@working-theory/preview-protocol": "0.0.0",
60
- "@working-theory/ui-commerce": "0.63.0",
61
- "@working-theory/ui-docs-blog": "0.63.0",
62
- "@working-theory/ui-scheduling": "0.63.0",
63
- "@working-theory/ui-signal-collectors": "0.63.0",
61
+ "@working-theory/ui-commerce": "0.65.0",
62
+ "@working-theory/ui-docs-blog": "0.65.0",
63
+ "@working-theory/ui-scheduling": "0.65.0",
64
+ "@working-theory/ui-signal-collectors": "0.65.0",
64
65
  "@working-theory/web": "0.0.0",
65
66
  "@working-theory/app-api": "1.0.0",
66
67
  "@working-theory/mcp": "0.0.0",
67
- "@working-theory/database": "0.63.0"
68
+ "@working-theory/database": "0.65.0"
68
69
  }