create-ailk 0.38.0 → 0.40.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.
- package/dist/add-route.js +16 -1
- package/dist/body-heading.d.ts +2 -1
- package/dist/body-heading.js +31 -3
- package/dist/derive-architecture.js +3 -1
- package/dist/module-architecture.js +0 -3
- package/dist/remove-module.js +27 -14
- package/dist/routes.d.ts +36 -2
- package/dist/routes.js +269 -23
- package/dist/site-manifest.js +6 -4
- package/dist/site-roster.d.ts +11 -3
- package/dist/site-roster.js +48 -22
- package/dist/surfaces.d.ts +13 -3
- package/dist/surfaces.js +128 -194
- package/dist/sync-routes.js +22 -5
- package/dist/template-record.js +3 -1
- package/dist/topology.d.ts +11 -0
- package/dist/topology.js +253 -3
- package/package.json +3 -3
- package/templates/apps/web/CLAUDE.md +32 -4
- package/templates/apps/web/__tests__/__mocks__/next-intl-server.ts +6 -1
- package/templates/apps/web/__tests__/__mocks__/next-intl.ts +6 -1
- package/templates/apps/web/__tests__/auth/seam.test.ts +34 -0
- package/templates/apps/web/account.config.tsx +2 -3
- package/templates/apps/web/app/[locale]/(authed)/account/connect/__tests__/page.test.tsx +1 -1
- package/templates/apps/web/app/[locale]/(authed)/account/connect/page.tsx +1 -1
- package/templates/apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx +1 -1
- package/templates/apps/web/app/[locale]/layout.tsx +2 -2
- package/templates/apps/web/auth.config.tsx +107 -0
- package/templates/apps/web/auth.ts +2 -1
- package/templates/apps/web/i18n/request.ts +13 -2
- package/templates/apps/web/jest.config.cjs +10 -0
- package/templates/apps/web/lib/__tests__/deck-page.test.ts +9 -0
- package/templates/apps/web/lib/__tests__/fixtures/site-topology.ts +3 -0
- package/templates/apps/web/lib/__tests__/in-page-magnet-self-request.test.ts +1 -1
- package/templates/apps/web/lib/__tests__/in-page-magnet.test.ts +2 -2
- package/templates/apps/web/lib/__tests__/pricing-page.test.ts +1 -1
- package/templates/apps/web/lib/__tests__/server-api.test.ts +1 -1
- package/templates/apps/web/lib/__tests__/structured-data.test.tsx +17 -4
- package/templates/apps/web/lib/in-page-magnet.ts +2 -2
- package/templates/apps/web/lib/pricing-page.ts +3 -3
- package/templates/apps/web/lib/server-api.ts +1 -1
- package/templates/apps/web/{app/[locale]/contact → lib}/site-contact-email.ts +1 -1
- package/templates/apps/web/{app/[locale]/contact → lib}/site-contact-lines.ts +1 -1
- package/templates/apps/web/lib/site-header.ts +1 -1
- package/templates/apps/web/lib/topology.generated.ts +5 -0
- package/templates/apps/web/messages/en.json +0 -271
- package/templates/apps/web/middleware.ts +12 -25
- package/templates/apps/web/next.config.mjs +15 -0
- package/templates/apps/web/package.json +2 -0
- package/templates/apps/web/site-pages.config.tsx +85 -0
- package/templates/apps/web/types/messages.d.ts +6 -1
- package/templates/tools/body-heading.ts +30 -3
- package/versions.json +50 -48
- package/templates/apps/web/app/[locale]/(auth)/__tests__/auth-pages.test.tsx +0 -322
- package/templates/apps/web/app/[locale]/(auth)/__tests__/password-reset.test.tsx +0 -554
- package/templates/apps/web/app/[locale]/(auth)/consent/__tests__/consent-actions.test.ts +0 -56
- package/templates/apps/web/app/[locale]/(auth)/consent/__tests__/page.test.tsx +0 -164
- package/templates/apps/web/app/[locale]/(auth)/consent/consent-form.tsx +0 -132
- package/templates/apps/web/app/[locale]/(auth)/consent/consent.actions.ts +0 -51
- package/templates/apps/web/app/[locale]/(auth)/consent/page.tsx +0 -144
- package/templates/apps/web/app/[locale]/(auth)/forgot-password/forgot-password-card.tsx +0 -101
- package/templates/apps/web/app/[locale]/(auth)/forgot-password/page.tsx +0 -111
- package/templates/apps/web/app/[locale]/(auth)/layout.tsx +0 -81
- package/templates/apps/web/app/[locale]/(auth)/legal-footnote.tsx +0 -35
- package/templates/apps/web/app/[locale]/(auth)/reset-password/__tests__/return.test.tsx +0 -179
- package/templates/apps/web/app/[locale]/(auth)/reset-password/page.tsx +0 -157
- package/templates/apps/web/app/[locale]/(auth)/reset-password/reset-password-card.tsx +0 -126
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/next-path.test.ts +0 -54
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/page.test.tsx +0 -628
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/remembered-method.test.ts +0 -43
- package/templates/apps/web/app/[locale]/(auth)/sign-in/__tests__/sign-in-card.test.tsx +0 -266
- package/templates/apps/web/app/[locale]/(auth)/sign-in/next-path.ts +0 -20
- package/templates/apps/web/app/[locale]/(auth)/sign-in/page.tsx +0 -234
- package/templates/apps/web/app/[locale]/(auth)/sign-in/remembered-method.ts +0 -37
- package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-card.tsx +0 -323
- package/templates/apps/web/app/[locale]/(auth)/sign-in/sign-in-text.ts +0 -93
- package/templates/apps/web/app/[locale]/(auth)/sign-up/__tests__/page.test.tsx +0 -301
- package/templates/apps/web/app/[locale]/(auth)/sign-up/__tests__/sign-up-card.test.tsx +0 -309
- package/templates/apps/web/app/[locale]/(auth)/sign-up/page.tsx +0 -201
- package/templates/apps/web/app/[locale]/(auth)/sign-up/sign-up-card.tsx +0 -366
- package/templates/apps/web/app/[locale]/(auth)/use-auth-card-flow.ts +0 -116
- package/templates/apps/web/app/[locale]/(auth)/verify-email/__tests__/actions.test.ts +0 -94
- package/templates/apps/web/app/[locale]/(auth)/verify-email/actions.ts +0 -77
- package/templates/apps/web/app/[locale]/(auth)/verify-email/page.tsx +0 -154
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +0 -2
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/message/[id]/file/route.ts +0 -2
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +0 -10
- package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/onboarding/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +0 -2
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -2
- package/templates/apps/web/app/[locale]/(authed)/account/support/page.tsx +0 -3
- package/templates/apps/web/app/[locale]/(authed)/leads/__tests__/page.test.tsx +0 -205
- package/templates/apps/web/app/[locale]/(authed)/leads/components/LeadsTable.tsx +0 -137
- package/templates/apps/web/app/[locale]/(authed)/leads/page.tsx +0 -122
- package/templates/apps/web/app/[locale]/(authed)/waitlist/components/ForbiddenState.tsx +0 -24
- package/templates/apps/web/app/[locale]/(authed)/waitlist/format.ts +0 -111
- package/templates/apps/web/app/[locale]/[slug]/[detail]/__tests__/page.test.tsx +0 -402
- package/templates/apps/web/app/[locale]/[slug]/[detail]/page.tsx +0 -143
- package/templates/apps/web/app/[locale]/[slug]/__tests__/page.test.tsx +0 -148
- package/templates/apps/web/app/[locale]/[slug]/page.tsx +0 -109
- package/templates/apps/web/app/[locale]/about/[slug]/page.tsx +0 -46
- package/templates/apps/web/app/[locale]/about/__tests__/about-routes.test.tsx +0 -353
- package/templates/apps/web/app/[locale]/about/page.tsx +0 -122
- package/templates/apps/web/app/[locale]/alternatives/__tests__/page.test.tsx +0 -161
- package/templates/apps/web/app/[locale]/alternatives/page.tsx +0 -112
- package/templates/apps/web/app/[locale]/careers/[slug]/[action]/page.tsx +0 -244
- package/templates/apps/web/app/[locale]/careers/[slug]/apply.actions.ts +0 -325
- package/templates/apps/web/app/[locale]/careers/[slug]/job-application-form.ts +0 -120
- package/templates/apps/web/app/[locale]/careers/[slug]/page.tsx +0 -73
- package/templates/apps/web/app/[locale]/careers/__tests__/apply.actions.test.ts +0 -497
- package/templates/apps/web/app/[locale]/careers/__tests__/careers-hub.test.tsx +0 -172
- package/templates/apps/web/app/[locale]/careers/__tests__/careers-set.test.tsx +0 -153
- package/templates/apps/web/app/[locale]/careers/__tests__/job-application-form.test.ts +0 -141
- package/templates/apps/web/app/[locale]/careers/__tests__/job-apply-page.test.tsx +0 -546
- package/templates/apps/web/app/[locale]/careers/__tests__/page-renderer-migration.test.tsx +0 -189
- package/templates/apps/web/app/[locale]/careers/page.tsx +0 -165
- package/templates/apps/web/app/[locale]/case-studies/[slug]/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/case-studies/__tests__/hub-children.test.tsx +0 -65
- package/templates/apps/web/app/[locale]/case-studies/__tests__/page-renderer-migration.test.tsx +0 -125
- package/templates/apps/web/app/[locale]/case-studies/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/clients/__tests__/page-renderer-migration.test.tsx +0 -85
- package/templates/apps/web/app/[locale]/clients/page.tsx +0 -47
- package/templates/apps/web/app/[locale]/contact/ConversationalIntakeWrapper.tsx +0 -249
- package/templates/apps/web/app/[locale]/contact/__tests__/ConversationalIntakeWrapper.test.tsx +0 -400
- package/templates/apps/web/app/[locale]/contact/__tests__/contact-form-magnet.test.ts +0 -138
- package/templates/apps/web/app/[locale]/contact/__tests__/contact-form-text.test.ts +0 -49
- package/templates/apps/web/app/[locale]/contact/__tests__/contact-magnet-page.test.tsx +0 -494
- package/templates/apps/web/app/[locale]/contact/__tests__/contact.actions.test.ts +0 -1122
- package/templates/apps/web/app/[locale]/contact/__tests__/intake-analytics.test.ts +0 -51
- package/templates/apps/web/app/[locale]/contact/__tests__/page-renderer-migration.test.tsx +0 -319
- package/templates/apps/web/app/[locale]/contact/contact-form-magnet.ts +0 -77
- package/templates/apps/web/app/[locale]/contact/contact-form-text.ts +0 -52
- package/templates/apps/web/app/[locale]/contact/contact.actions.ts +0 -403
- package/templates/apps/web/app/[locale]/contact/intake-analytics.ts +0 -49
- package/templates/apps/web/app/[locale]/contact/intake-script.ts +0 -92
- package/templates/apps/web/app/[locale]/contact/page.tsx +0 -267
- package/templates/apps/web/app/[locale]/courses/[slug]/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/courses/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/courses/__tests__/page-renderer-migration.test.tsx +0 -123
- package/templates/apps/web/app/[locale]/courses/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/events/[slug]/page.tsx +0 -57
- package/templates/apps/web/app/[locale]/events/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/events/__tests__/page-renderer-migration.test.tsx +0 -164
- package/templates/apps/web/app/[locale]/events/__tests__/program-event.test.tsx +0 -120
- package/templates/apps/web/app/[locale]/events/page.tsx +0 -60
- package/templates/apps/web/app/[locale]/faq/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/features/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/features/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/features/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/for/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/for/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/for/__tests__/page-renderer-migration.test.tsx +0 -90
- package/templates/apps/web/app/[locale]/for/page.tsx +0 -51
- package/templates/apps/web/app/[locale]/glossary/page.tsx +0 -53
- package/templates/apps/web/app/[locale]/how-to/[slug]/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/how-to/__tests__/page-renderer-migration.test.tsx +0 -78
- package/templates/apps/web/app/[locale]/how-to/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/integrations/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/integrations/__tests__/hub-children.test.tsx +0 -38
- package/templates/apps/web/app/[locale]/integrations/__tests__/page-renderer-migration.test.tsx +0 -141
- package/templates/apps/web/app/[locale]/integrations/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/launch-service/page.tsx +0 -44
- package/templates/apps/web/app/[locale]/newsletter/__tests__/page.test.tsx +0 -236
- package/templates/apps/web/app/[locale]/newsletter/page.tsx +0 -179
- package/templates/apps/web/app/[locale]/page.tsx +0 -147
- package/templates/apps/web/app/[locale]/partners/[slug]/page.tsx +0 -45
- package/templates/apps/web/app/[locale]/partners/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/partners/__tests__/page-renderer-migration.test.tsx +0 -125
- package/templates/apps/web/app/[locale]/partners/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/portfolio/[slug]/page.tsx +0 -46
- package/templates/apps/web/app/[locale]/portfolio/__tests__/hub-children.test.tsx +0 -38
- package/templates/apps/web/app/[locale]/portfolio/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/pricing/[slug]/__tests__/page.test.tsx +0 -324
- package/templates/apps/web/app/[locale]/pricing/[slug]/page.tsx +0 -87
- package/templates/apps/web/app/[locale]/pricing/__tests__/__snapshots__/unconnected.test.tsx.snap +0 -7
- package/templates/apps/web/app/[locale]/pricing/__tests__/offerings.test.tsx +0 -605
- package/templates/apps/web/app/[locale]/pricing/__tests__/page.test.tsx +0 -219
- package/templates/apps/web/app/[locale]/pricing/__tests__/pricing-pages.test.tsx +0 -215
- package/templates/apps/web/app/[locale]/pricing/__tests__/unconnected.test.tsx +0 -282
- package/templates/apps/web/app/[locale]/pricing/page.tsx +0 -120
- package/templates/apps/web/app/[locale]/privacy/page.tsx +0 -40
- package/templates/apps/web/app/[locale]/products/[slug]/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/products/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/products/__tests__/page-renderer-migration.test.tsx +0 -141
- package/templates/apps/web/app/[locale]/products/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/projects/[slug]/page.tsx +0 -37
- package/templates/apps/web/app/[locale]/projects/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/projects/__tests__/page-renderer-migration.test.tsx +0 -157
- package/templates/apps/web/app/[locale]/projects/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/purchase-policy/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/resources/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/resources/__tests__/hub-children.test.tsx +0 -38
- package/templates/apps/web/app/[locale]/resources/__tests__/page-renderer-migration.test.tsx +0 -151
- package/templates/apps/web/app/[locale]/resources/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/services/[slug]/[child]/page.tsx +0 -68
- package/templates/apps/web/app/[locale]/services/[slug]/page.tsx +0 -88
- package/templates/apps/web/app/[locale]/services/__tests__/hub-children.test.tsx +0 -158
- package/templates/apps/web/app/[locale]/services/__tests__/page-renderer-migration.test.tsx +0 -187
- package/templates/apps/web/app/[locale]/services/__tests__/service-detail-sections.test.tsx +0 -224
- package/templates/apps/web/app/[locale]/services/__tests__/service-families.test.tsx +0 -368
- package/templates/apps/web/app/[locale]/services/page.tsx +0 -71
- package/templates/apps/web/app/[locale]/software/[slug]/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/software/__tests__/page-renderer-migration.test.tsx +0 -81
- package/templates/apps/web/app/[locale]/software/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/team/[slug]/page.tsx +0 -45
- package/templates/apps/web/app/[locale]/team/__tests__/hub-children.test.tsx +0 -32
- package/templates/apps/web/app/[locale]/team/__tests__/team-routes.test.tsx +0 -161
- package/templates/apps/web/app/[locale]/team/page.tsx +0 -50
- package/templates/apps/web/app/[locale]/tech-articles/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/tech-articles/__tests__/page-renderer-migration.test.tsx +0 -82
- package/templates/apps/web/app/[locale]/tech-articles/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/templates/[slug]/__tests__/page.test.tsx +0 -203
- package/templates/apps/web/app/[locale]/templates/[slug]/page.tsx +0 -81
- package/templates/apps/web/app/[locale]/templates/__tests__/page.test.tsx +0 -237
- package/templates/apps/web/app/[locale]/templates/page.tsx +0 -114
- package/templates/apps/web/app/[locale]/terms/page.tsx +0 -40
- package/templates/apps/web/app/[locale]/testimonials/__tests__/page-renderer-migration.test.tsx +0 -85
- package/templates/apps/web/app/[locale]/testimonials/page.tsx +0 -51
- package/templates/apps/web/app/[locale]/thanks/[slug]/__tests__/page.test.tsx +0 -136
- package/templates/apps/web/app/[locale]/thanks/[slug]/page.tsx +0 -39
- package/templates/apps/web/app/[locale]/unsubscribe/__tests__/unsubscribe-rsc-boundary.test.tsx +0 -226
- package/templates/apps/web/app/[locale]/unsubscribe/__tests__/unsubscribe.test.tsx +0 -217
- package/templates/apps/web/app/[locale]/unsubscribe/page.tsx +0 -106
- package/templates/apps/web/app/[locale]/unsubscribe/unsubscribe-button.tsx +0 -94
- package/templates/apps/web/app/[locale]/unsubscribe/unsubscribe.actions.ts +0 -55
- package/templates/apps/web/app/[locale]/vs/[slug]/__tests__/page.test.tsx +0 -100
- package/templates/apps/web/app/[locale]/vs/[slug]/page.tsx +0 -60
- package/templates/apps/web/app/[locale]/whitepapers/[slug]/page.tsx +0 -54
- package/templates/apps/web/app/[locale]/whitepapers/__tests__/page-renderer-migration.test.tsx +0 -82
- package/templates/apps/web/app/[locale]/whitepapers/page.tsx +0 -49
- package/templates/apps/web/app/[locale]/working-agreement/__tests__/page.test.tsx +0 -63
- package/templates/apps/web/app/[locale]/working-agreement/page.tsx +0 -41
- package/templates/apps/web/app/api/auth/[...all]/route.ts +0 -16
- package/templates/apps/web/app/api/auth/hub/__tests__/continuation.test.ts +0 -143
- package/templates/apps/web/app/api/auth/hub/__tests__/entry-routes.test.ts +0 -749
- package/templates/apps/web/app/api/auth/hub/authorize/__tests__/route.test.ts +0 -964
- package/templates/apps/web/app/api/auth/hub/authorize/route.ts +0 -390
- package/templates/apps/web/app/api/auth/hub/continuation.ts +0 -127
- package/templates/apps/web/app/api/auth/hub/continue/[ref]/__tests__/route.test.ts +0 -188
- package/templates/apps/web/app/api/auth/hub/continue/[ref]/route.ts +0 -53
- package/templates/apps/web/app/api/auth/hub/email/route.ts +0 -111
- package/templates/apps/web/app/api/auth/hub/entry-shared.ts +0 -163
- package/templates/apps/web/app/api/auth/hub/password/__tests__/return.test.ts +0 -86
- package/templates/apps/web/app/api/auth/hub/password/__tests__/route.test.ts +0 -368
- package/templates/apps/web/app/api/auth/hub/password/return.ts +0 -86
- package/templates/apps/web/app/api/auth/hub/password/route.ts +0 -171
- package/templates/apps/web/app/api/auth/hub/purchase/route.ts +0 -230
- package/templates/apps/web/app/api/auth/hub/purchase-link/route.ts +0 -174
- package/templates/apps/web/app/api/auth/hub/sign-up/route.ts +0 -60
- package/templates/apps/web/app/api/auth/hub/sign-up-evidence.ts +0 -97
- package/templates/apps/web/app/api/auth/mcp/__tests__/continuation.test.ts +0 -92
- package/templates/apps/web/app/api/auth/mcp/continuation.ts +0 -89
- package/templates/apps/web/app/api/auth/mcp/continue/[ref]/__tests__/route.test.ts +0 -59
- package/templates/apps/web/app/api/auth/mcp/continue/[ref]/route.ts +0 -41
- package/templates/apps/web/app/api/hub-session/__tests__/routes.test.ts +0 -1166
- package/templates/apps/web/app/api/hub-session/callback/route.ts +0 -134
- package/templates/apps/web/app/api/hub-session/email/route.ts +0 -125
- package/templates/apps/web/app/api/hub-session/one-tap/nonce/route.ts +0 -49
- package/templates/apps/web/app/api/hub-session/one-tap/route.ts +0 -106
- package/templates/apps/web/app/api/hub-session/open/route.ts +0 -111
- package/templates/apps/web/app/api/hub-session/password/return/route.ts +0 -69
- package/templates/apps/web/app/api/hub-session/password/route.ts +0 -106
- package/templates/apps/web/app/api/hub-session/sign-in/route.ts +0 -91
- package/templates/apps/web/app/api/hub-session/sign-out/route.ts +0 -54
- package/templates/apps/web/components/sign-out-trigger.tsx +0 -62
- package/templates/apps/web/lib/__tests__/auth-routes.test.ts +0 -140
- package/templates/apps/web/lib/__tests__/hub-children.fixtures.ts +0 -279
- package/templates/apps/web/lib/__tests__/route-family.test.ts +0 -57
- package/templates/apps/web/lib/__tests__/service-listing.test.ts +0 -111
- package/templates/apps/web/lib/__tests__/template-listing.test.ts +0 -158
- package/templates/apps/web/lib/auth-routes.ts +0 -125
- package/templates/apps/web/lib/hub-children.tsx +0 -351
- package/templates/apps/web/lib/hub-session/__tests__/hub-session.test.ts +0 -433
- package/templates/apps/web/lib/hub-session/__tests__/spoke-sign-in.test.tsx +0 -332
- package/templates/apps/web/lib/hub-session/config.ts +0 -110
- package/templates/apps/web/lib/hub-session/entry.ts +0 -238
- package/templates/apps/web/lib/hub-session/index.ts +0 -21
- package/templates/apps/web/lib/hub-session/one-tap.tsx +0 -148
- package/templates/apps/web/lib/hub-session/reseal.ts +0 -90
- package/templates/apps/web/lib/hub-session/seal.ts +0 -86
- package/templates/apps/web/lib/hub-session/session.ts +0 -298
- package/templates/apps/web/lib/hub-session/spoke-sign-in.tsx +0 -277
- package/templates/apps/web/lib/meet-placeholder.ts +0 -5
- package/templates/apps/web/lib/next-path.ts +0 -35
- package/templates/apps/web/lib/posting-title.ts +0 -39
- package/templates/apps/web/lib/route-family.ts +0 -69
- package/templates/apps/web/lib/service-listing.ts +0 -89
- package/templates/apps/web/lib/template-listing.ts +0 -169
- package/templates/apps/web/src/lib/__tests__/lead-write.test.ts +0 -187
- package/templates/apps/web/src/lib/lead-write.ts +0 -90
- /package/templates/apps/web/{app/[locale]/contact → lib}/__tests__/site-contact-lines.test.ts +0 -0
package/dist/surfaces.d.ts
CHANGED
|
@@ -36,14 +36,22 @@ export declare function isRemovedPublicRoutePath(destRel: string): boolean;
|
|
|
36
36
|
* generator writes, checks and records those files, never the route copier.
|
|
37
37
|
* A `siteOwned` route under the prefix stays the site's own page (one the
|
|
38
38
|
* package leaves to a later slice) and `sync-routes` keeps it in scope. One
|
|
39
|
-
* entry per page package, mirroring its `routes.json` (`prefix`,
|
|
40
|
-
* `siteOwned` routing file's directory
|
|
41
|
-
*
|
|
39
|
+
* entry per prefix of a page package, mirroring its `routes.json` (`prefix`,
|
|
40
|
+
* each `siteOwned` routing file's directory, and in `pages` each locale-mount
|
|
41
|
+
* page entry's directory under the prefix); `sync-routes.test.ts` pins every
|
|
42
|
+
* row to its package's manifest.
|
|
43
|
+
*
|
|
44
|
+
* `pages` is what a scaffold serves before the package is installed (#11259
|
|
45
|
+
* D6): the snapshot carries none of a page package's generated route files, so
|
|
46
|
+
* the site roster (`servedRoutes`) reads a carried package's pages here.
|
|
42
47
|
*/
|
|
43
48
|
export declare const PAGE_PACKAGE_ROUTES: readonly {
|
|
44
49
|
package: string;
|
|
45
50
|
prefix: string;
|
|
46
51
|
siteOwned: readonly string[];
|
|
52
|
+
pages: readonly string[];
|
|
53
|
+
/** The manifest's `"siteGated": true` (#11259 D5): its pages are served only where the site selected them. */
|
|
54
|
+
siteGated?: true;
|
|
47
55
|
}[];
|
|
48
56
|
/** The page package that ships `route` (a ROUTE_ROOT-relative dir), or `undefined` when no page package does. */
|
|
49
57
|
export declare function pagePackageOfRoute(route: string): string | undefined;
|
|
@@ -103,6 +111,8 @@ export declare const SURFACE_ALIASES: Readonly<Record<string, string>>;
|
|
|
103
111
|
* is copied regardless.
|
|
104
112
|
*/
|
|
105
113
|
export declare const CORE_PROMOTED_SURFACES: ReadonlySet<string>;
|
|
114
|
+
/** Canonical id for a `--surfaces` value, resolving a retired alias. */
|
|
115
|
+
export declare function canonicalizeSurface(s: string): string;
|
|
106
116
|
/**
|
|
107
117
|
* Surfaces each recognized module contributes.
|
|
108
118
|
*
|
package/dist/surfaces.js
CHANGED
|
@@ -88,6 +88,36 @@ export function isRemovedPublicRoutePath(destRel) {
|
|
|
88
88
|
return false;
|
|
89
89
|
return !HUB_KEPT_ROUTE_DIRS.includes(rest[0]);
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* #11259 — `@working-theory/site-pages`'s prefixes and the directories of its
|
|
93
|
+
* pages under them (its `routes.json`; the locale-root home page has no
|
|
94
|
+
* route directory). `PAGE_PACKAGE_ROUTES` holds one row per prefix.
|
|
95
|
+
*/
|
|
96
|
+
const SITE_PAGES_PREFIXES = [
|
|
97
|
+
"(authed)/leads", "[slug]", "about", "alternatives", "careers", "case-studies", "clients",
|
|
98
|
+
"contact", "courses", "events", "faq", "features", "for", "glossary", "how-to", "integrations",
|
|
99
|
+
"launch-service", "newsletter", "partners", "portfolio", "pricing", "privacy", "products",
|
|
100
|
+
"projects", "purchase-policy", "resources", "services", "software", "team", "tech-articles",
|
|
101
|
+
"templates", "terms", "testimonials", "thanks", "unsubscribe", "vs", "whitepapers",
|
|
102
|
+
"working-agreement",
|
|
103
|
+
];
|
|
104
|
+
const SITE_PAGES_PAGES = [
|
|
105
|
+
"(authed)/leads", "[slug]", "[slug]/[detail]", "about", "about/[slug]", "alternatives",
|
|
106
|
+
"careers", "careers/[slug]", "careers/[slug]/[action]", "case-studies", "case-studies/[slug]",
|
|
107
|
+
"clients", "contact", "courses", "courses/[slug]", "events", "events/[slug]", "faq", "features",
|
|
108
|
+
"features/[slug]", "for", "for/[slug]", "glossary", "how-to", "how-to/[slug]", "integrations",
|
|
109
|
+
"integrations/[slug]", "launch-service", "newsletter", "partners", "partners/[slug]",
|
|
110
|
+
"portfolio", "portfolio/[slug]", "pricing", "pricing/[slug]", "privacy", "products",
|
|
111
|
+
"products/[slug]", "projects", "projects/[slug]", "purchase-policy", "resources",
|
|
112
|
+
"resources/[slug]", "services", "services/[slug]", "services/[slug]/[child]", "software",
|
|
113
|
+
"software/[slug]", "team", "team/[slug]", "tech-articles", "tech-articles/[slug]", "templates",
|
|
114
|
+
"templates/[slug]", "terms", "testimonials", "thanks/[slug]", "unsubscribe", "vs/[slug]",
|
|
115
|
+
"whitepapers", "whitepapers/[slug]", "working-agreement",
|
|
116
|
+
];
|
|
117
|
+
// The manifest's two `siteOwned` routing files' directories, and
|
|
118
|
+
// `projects/apply` — a module directory under the `projects` prefix with no
|
|
119
|
+
// routing file (the signal-collectors client wrapper), which the site keeps.
|
|
120
|
+
const SITE_PAGES_SITE_OWNED = ["careers/apply", "careers/[slug]/apply", "projects/apply"];
|
|
91
121
|
/**
|
|
92
122
|
* The route trees a page package ships (ADR 0040): the package's pages
|
|
93
123
|
* mount through the route files `create-ailk routes` generates from its
|
|
@@ -95,27 +125,91 @@ export function isRemovedPublicRoutePath(destRel) {
|
|
|
95
125
|
* generator writes, checks and records those files, never the route copier.
|
|
96
126
|
* A `siteOwned` route under the prefix stays the site's own page (one the
|
|
97
127
|
* package leaves to a later slice) and `sync-routes` keeps it in scope. One
|
|
98
|
-
* entry per page package, mirroring its `routes.json` (`prefix`,
|
|
99
|
-
* `siteOwned` routing file's directory
|
|
100
|
-
*
|
|
128
|
+
* entry per prefix of a page package, mirroring its `routes.json` (`prefix`,
|
|
129
|
+
* each `siteOwned` routing file's directory, and in `pages` each locale-mount
|
|
130
|
+
* page entry's directory under the prefix); `sync-routes.test.ts` pins every
|
|
131
|
+
* row to its package's manifest.
|
|
132
|
+
*
|
|
133
|
+
* `pages` is what a scaffold serves before the package is installed (#11259
|
|
134
|
+
* D6): the snapshot carries none of a page package's generated route files, so
|
|
135
|
+
* the site roster (`servedRoutes`) reads a carried package's pages here.
|
|
101
136
|
*/
|
|
102
137
|
export const PAGE_PACKAGE_ROUTES = [
|
|
103
|
-
{
|
|
138
|
+
{
|
|
139
|
+
package: "@working-theory/account",
|
|
140
|
+
prefix: "(authed)/account",
|
|
141
|
+
siteOwned: ["(authed)/account/connect"],
|
|
142
|
+
pages: [
|
|
143
|
+
"(authed)/account/appointments/[slug]",
|
|
144
|
+
"(authed)/account/appointments",
|
|
145
|
+
"(authed)/account/artifacts/[pieceId]",
|
|
146
|
+
"(authed)/account/artifacts",
|
|
147
|
+
"(authed)/account/billing",
|
|
148
|
+
"(authed)/account/general",
|
|
149
|
+
"(authed)/account/inbox/[kind]/[id]",
|
|
150
|
+
"(authed)/account/inbox/thread",
|
|
151
|
+
"(authed)/account/invitations/[invitationId]",
|
|
152
|
+
"(authed)/account/notifications",
|
|
153
|
+
"(authed)/account/onboarding",
|
|
154
|
+
"(authed)/account",
|
|
155
|
+
"(authed)/account/privacy",
|
|
156
|
+
"(authed)/account/security",
|
|
157
|
+
"(authed)/account/settings",
|
|
158
|
+
"(authed)/account/support",
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
// #11257 — the sign-in pages; the snapshot carries none of them (#11259 D6).
|
|
162
|
+
{
|
|
163
|
+
package: "@working-theory/auth",
|
|
164
|
+
prefix: "(auth)",
|
|
165
|
+
siteOwned: [],
|
|
166
|
+
pages: [
|
|
167
|
+
"(auth)/consent",
|
|
168
|
+
"(auth)/forgot-password",
|
|
169
|
+
"(auth)/reset-password",
|
|
170
|
+
"(auth)/sign-in",
|
|
171
|
+
"(auth)/sign-up",
|
|
172
|
+
"(auth)/verify-email",
|
|
173
|
+
],
|
|
174
|
+
},
|
|
104
175
|
// #11251 — the flows pages; the snapshot carries none of the tree, so a
|
|
105
176
|
// scaffold has its route files only once the package is installed.
|
|
106
|
-
{
|
|
177
|
+
{
|
|
178
|
+
package: "@working-theory/ui-signal-collectors",
|
|
179
|
+
prefix: "flows",
|
|
180
|
+
siteOwned: [],
|
|
181
|
+
pages: ["flows/[slug]", "flows/[slug]/start", "flows/[slug]/verify", "flows/[slug]/results/[payload]"],
|
|
182
|
+
},
|
|
107
183
|
// #11252 — the booking pages; likewise absent from the snapshot. One entry
|
|
108
184
|
// per prefix of the package's two-prefix manifest.
|
|
109
|
-
{ package: "@working-theory/ui-scheduling", prefix: "meet", siteOwned: [] },
|
|
110
|
-
{ package: "@working-theory/ui-scheduling", prefix: "private", siteOwned: [] },
|
|
185
|
+
{ package: "@working-theory/ui-scheduling", prefix: "meet", siteOwned: [], pages: ["meet", "meet/[slug]", "meet/confirmed"] },
|
|
186
|
+
{ package: "@working-theory/ui-scheduling", prefix: "private", siteOwned: [], pages: ["private"] },
|
|
111
187
|
// #11253 — the checkout and purchase return pages; likewise absent from the
|
|
112
188
|
// snapshot, one entry per prefix of the package's two-prefix manifest.
|
|
113
|
-
{
|
|
114
|
-
|
|
189
|
+
{
|
|
190
|
+
package: "@working-theory/ui-commerce",
|
|
191
|
+
prefix: "checkout",
|
|
192
|
+
siteOwned: [],
|
|
193
|
+
pages: ["checkout/thank-you", "checkout/unavailable"],
|
|
194
|
+
},
|
|
195
|
+
{ package: "@working-theory/ui-commerce", prefix: "purchase", siteOwned: [], pages: ["purchase/success", "purchase/cancel"] },
|
|
115
196
|
// #11254 — the docs and blog catch-alls; likewise absent from the snapshot,
|
|
116
197
|
// one entry per prefix of the package's two-prefix manifest.
|
|
117
|
-
{ package: "@working-theory/ui-docs-blog", prefix: "docs", siteOwned: [] },
|
|
118
|
-
{ package: "@working-theory/ui-docs-blog", prefix: "blog", siteOwned: [] },
|
|
198
|
+
{ package: "@working-theory/ui-docs-blog", prefix: "docs", siteOwned: [], pages: ["docs/[[...slug]]"] },
|
|
199
|
+
{ package: "@working-theory/ui-docs-blog", prefix: "blog", siteOwned: [], pages: ["blog/[[...slug]]"] },
|
|
200
|
+
// #11259 — the base website pages; likewise absent from the snapshot, one
|
|
201
|
+
// entry per prefix of the package's 38-prefix manifest. Gated on the
|
|
202
|
+
// site's surfaces and public tree, as the generator gates them.
|
|
203
|
+
...SITE_PAGES_PREFIXES.map((prefix) => {
|
|
204
|
+
const under = (path) => path === prefix || path.startsWith(`${prefix}/`);
|
|
205
|
+
return {
|
|
206
|
+
package: "@working-theory/site-pages",
|
|
207
|
+
prefix,
|
|
208
|
+
siteOwned: SITE_PAGES_SITE_OWNED.filter(under),
|
|
209
|
+
pages: SITE_PAGES_PAGES.filter(under),
|
|
210
|
+
siteGated: true,
|
|
211
|
+
};
|
|
212
|
+
}),
|
|
119
213
|
];
|
|
120
214
|
/** The page package that ships `route` (a ROUTE_ROOT-relative dir), or `undefined` when no page package does. */
|
|
121
215
|
export function pagePackageOfRoute(route) {
|
|
@@ -430,7 +524,7 @@ export const SURFACE_ALIASES = {
|
|
|
430
524
|
// accept-and-drop read sites stay in place for the next promotion.
|
|
431
525
|
export const CORE_PROMOTED_SURFACES = new Set([]);
|
|
432
526
|
/** Canonical id for a `--surfaces` value, resolving a retired alias. */
|
|
433
|
-
function canonicalizeSurface(s) {
|
|
527
|
+
export function canonicalizeSurface(s) {
|
|
434
528
|
return SURFACE_ALIASES[s] ?? s;
|
|
435
529
|
}
|
|
436
530
|
/**
|
|
@@ -668,108 +762,36 @@ export function isUnservedSurfaceRoute(path, enabled) {
|
|
|
668
762
|
* (#4891, 0.14.0) are attributable.
|
|
669
763
|
*/
|
|
670
764
|
export const ROUTE_SINCE = {
|
|
671
|
-
|
|
672
|
-
|
|
765
|
+
// #11251 — no `flows/…` key: the flows route files are generated from
|
|
766
|
+
// `@working-theory/ui-signal-collectors`'s manifest (`create-ailk routes`),
|
|
767
|
+
// never synced from the snapshot.
|
|
768
|
+
// #11252 — no `meet…` or `private` key: the booking pages' route files are
|
|
769
|
+
// generated from `@working-theory/ui-scheduling`'s manifest (`create-ailk
|
|
770
|
+
// routes`), never synced from the snapshot.
|
|
771
|
+
// #11253 — no `purchase/…` key: the checkout return pair's route files are
|
|
772
|
+
// generated from `@working-theory/ui-commerce`'s manifest (`create-ailk
|
|
773
|
+
// routes`), never synced from the snapshot.
|
|
774
|
+
// #11259 D6 — no key under `@working-theory/site-pages`'s 38 prefixes but
|
|
775
|
+
// the three module routes that stay the site's (`careers/apply`,
|
|
776
|
+
// `careers/[slug]/apply`, `projects/apply`): the base pages' route files are
|
|
777
|
+
// generated from its manifest, never synced from the snapshot.
|
|
673
778
|
"blog/[[...slug]]": "0.0.0",
|
|
674
|
-
careers: "0.0.0",
|
|
675
|
-
"careers/[slug]": "0.0.0",
|
|
676
779
|
// #8840 D11 — the Job application magnet's two walks, signal-collectors
|
|
677
780
|
// slice files. Genuinely new, so they attach at the fixed group's next
|
|
678
781
|
// release line, the same rule #8661 D10 applied.
|
|
679
782
|
"careers/apply": "0.44.0",
|
|
680
783
|
"careers/[slug]/apply": "0.44.0",
|
|
681
|
-
// #8849 D7 — the Free apply page, a core file of the careers surface.
|
|
682
|
-
"careers/[slug]/[action]": "0.44.0",
|
|
683
|
-
"case-studies": "0.0.0",
|
|
684
|
-
"case-studies/[slug]": "0.0.0",
|
|
685
|
-
clients: "0.0.0",
|
|
686
|
-
contact: "0.0.0",
|
|
687
|
-
courses: "0.0.0",
|
|
688
|
-
"courses/[slug]": "0.0.0",
|
|
689
784
|
"dev/purchase": "0.0.0",
|
|
690
785
|
"docs/[[...slug]]": "0.0.0",
|
|
691
786
|
downloads: "0.0.0",
|
|
692
787
|
// #8848 D12 — the per-slug redirect into `/reports/<slug>`, a
|
|
693
788
|
// signal-collectors slice file at the fixed group's next release line.
|
|
694
789
|
"downloads/[slug]": "0.44.0",
|
|
695
|
-
events: "0.0.0",
|
|
696
|
-
"events/[slug]": "0.0.0",
|
|
697
|
-
// #6721 — the feature pages, a new route pair at today's line.
|
|
698
|
-
features: "0.27.0",
|
|
699
|
-
"features/[slug]": "0.27.0",
|
|
700
|
-
faq: "0.0.0",
|
|
701
|
-
// #11251 — no `flows/…` key: the flows route files are generated from
|
|
702
|
-
// `@working-theory/ui-signal-collectors`'s manifest (`create-ailk routes`),
|
|
703
|
-
// never synced from the snapshot.
|
|
704
|
-
// #6658 — genuinely new route directories (D4, D5), attaching at today's
|
|
705
|
-
// fixed-group version, the same "attach at today's version" rule #6084,
|
|
706
|
-
// #5977, #5678, #5479, #5371 and #5048 applied. `book-a-call` was a third
|
|
707
|
-
// such entry, retired by #6897 D10.
|
|
708
|
-
glossary: "0.26.0",
|
|
709
|
-
"how-to": "0.0.0",
|
|
710
|
-
"how-to/[slug]": "0.0.0",
|
|
711
|
-
integrations: "0.0.0",
|
|
712
|
-
"integrations/[slug]": "0.0.0",
|
|
713
|
-
"launch-service": "0.0.0",
|
|
714
|
-
// #11252 — no `meet…` or `private` key: the booking pages' route files are
|
|
715
|
-
// generated from `@working-theory/ui-scheduling`'s manifest (`create-ailk
|
|
716
|
-
// routes`), never synced from the snapshot.
|
|
717
|
-
newsletter: "0.26.0",
|
|
718
|
-
partners: "0.0.0",
|
|
719
|
-
"partners/[slug]": "0.0.0",
|
|
720
|
-
// #5479 — three genuinely new route directories, so they attach at today's
|
|
721
|
-
// fixed-group version rather than the "predates the manifest" 0.0.0 above,
|
|
722
|
-
// the same rule #5048 ("projects/apply") and #5014 ("(authed)") applied.
|
|
723
|
-
// #6687 — the before/after portfolio, a new route pair at today's line.
|
|
724
|
-
portfolio: "0.27.0",
|
|
725
|
-
"portfolio/[slug]": "0.27.0",
|
|
726
|
-
pricing: "0.22.0",
|
|
727
|
-
// #10044 D9 — a pricing page per offering. Genuinely new, so it attaches at
|
|
728
|
-
// the fixed group's next release line (the line `templates` attached at).
|
|
729
|
-
"pricing/[slug]": "0.50.0",
|
|
730
|
-
privacy: "0.22.0",
|
|
731
|
-
products: "0.0.0",
|
|
732
|
-
"products/[slug]": "0.0.0",
|
|
733
|
-
projects: "0.0.0",
|
|
734
|
-
"projects/[slug]": "0.0.0",
|
|
735
790
|
// #5048 — the founder-application reference mount. It carries the client
|
|
736
791
|
// wrapper only and no `page.tsx`: a route needs a question set, and a
|
|
737
792
|
// question set is the SITE's content. A scaffolded site adds its own route
|
|
738
793
|
// beside this file and passes its own config.
|
|
739
794
|
"projects/apply": "0.18.0",
|
|
740
|
-
// #11253 — no `purchase/…` key: the checkout return pair's route files are
|
|
741
|
-
// generated from `@working-theory/ui-commerce`'s manifest (`create-ailk
|
|
742
|
-
// routes`), never synced from the snapshot.
|
|
743
|
-
resources: "0.0.0",
|
|
744
|
-
"resources/[slug]": "0.0.0",
|
|
745
|
-
services: "0.0.0",
|
|
746
|
-
"services/[slug]": "0.0.0",
|
|
747
|
-
// #10043 D11 — a Service under its category. Genuinely new, so it attaches
|
|
748
|
-
// at the fixed group's next release line (the line `templates` attached at).
|
|
749
|
-
"services/[slug]/[child]": "0.50.0",
|
|
750
|
-
software: "0.0.0",
|
|
751
|
-
"software/[slug]": "0.0.0",
|
|
752
|
-
// #7744 — the team profile pages, a new route pair at today's line.
|
|
753
|
-
team: "0.35.0",
|
|
754
|
-
"team/[slug]": "0.35.0",
|
|
755
|
-
"tech-articles": "0.0.0",
|
|
756
|
-
"tech-articles/[slug]": "0.0.0",
|
|
757
|
-
terms: "0.22.0",
|
|
758
|
-
testimonials: "0.0.0",
|
|
759
|
-
"thanks/[slug]": "0.14.0",
|
|
760
|
-
// #6878 — the persona family, renamed from `use-cases`/`use-cases/[slug]`.
|
|
761
|
-
// Attaches at today's fixed-group version, the same "attach at today's
|
|
762
|
-
// version" rule #6084, #5977, #5678, #5479, #5371 and #5048 applied.
|
|
763
|
-
for: "0.28.0",
|
|
764
|
-
"for/[slug]": "0.28.0",
|
|
765
|
-
// #6878 D9 — the comparison hub/spoke pair.
|
|
766
|
-
alternatives: "0.28.0",
|
|
767
|
-
"vs/[slug]": "0.28.0",
|
|
768
|
-
whitepapers: "0.0.0",
|
|
769
|
-
"whitepapers/[slug]": "0.0.0",
|
|
770
|
-
// #8661 D10 — the working-agreement page. Genuinely new, so it attaches at
|
|
771
|
-
// the fixed group's next release line, the same rule #7430 applied.
|
|
772
|
-
"working-agreement": "0.42.0",
|
|
773
795
|
// #5014 — the (authed) route GROUP: layout.tsx sits directly under
|
|
774
796
|
// "(authed)" (a Next.js route group — its parens are not a URL segment);
|
|
775
797
|
// account/ and waitlist/ are its two syncable sub-trees.
|
|
@@ -807,7 +829,6 @@ export const ROUTE_SINCE = {
|
|
|
807
829
|
// unsubscribe landing every signed link calls. Genuinely new, so they
|
|
808
830
|
// attach at today's fixed-group version, the same rule #8339 applied.
|
|
809
831
|
"(authed)/account/privacy": "0.40.0",
|
|
810
|
-
unsubscribe: "0.40.0",
|
|
811
832
|
// #8234 — the member Artifacts pages and a version's file route. Genuinely
|
|
812
833
|
// new, so they attach at today's fixed-group version, the same rule #7430
|
|
813
834
|
// applied.
|
|
@@ -835,18 +856,6 @@ export const ROUTE_SINCE = {
|
|
|
835
856
|
// opens. Genuinely new, so it attaches at the fixed group's next release
|
|
836
857
|
// line.
|
|
837
858
|
"(authed)/account/inbox/thread": "0.60.0",
|
|
838
|
-
// #10051 D9 — the templates route family. Genuinely new, so it attaches at
|
|
839
|
-
// the fixed group's next release line.
|
|
840
|
-
templates: "0.50.0",
|
|
841
|
-
"templates/[slug]": "0.50.0",
|
|
842
|
-
// The leads inbox (#5678). The ROUTE ships in every scaffold, Free
|
|
843
|
-
// included — lead capture is a never-gate surface, so reading a lead back
|
|
844
|
-
// is one too. Whether it shows a ROW is a separate question with two
|
|
845
|
-
// deployment preconditions (a resolvable workspace, and a `siteId` that
|
|
846
|
-
// equals a workspace id); both fail empty, never wide. See
|
|
847
|
-
// `packages/api/src/services/leads-inbox.ts` § "What it takes for this to
|
|
848
|
-
// return anything".
|
|
849
|
-
"(authed)/leads": "0.24.0",
|
|
850
859
|
// #5371 — the workspace module's three settings routes. Genuinely new route
|
|
851
860
|
// directories, so they attach at today's fixed-group version rather than the
|
|
852
861
|
// "predates the manifest" 0.0.0 above, the same rule #5479 and #5048 applied.
|
|
@@ -896,14 +905,6 @@ export const ROUTE_SINCE = {
|
|
|
896
905
|
"(auth)/verify-email": "0.24.0",
|
|
897
906
|
// #10357 D13 — the MCP consent step.
|
|
898
907
|
"(auth)/consent": "0.53.0",
|
|
899
|
-
// #5469 D2 — the generic `[slug]` content route. A genuinely new route
|
|
900
|
-
// directory, so it attaches at today's fixed-group version, the same rule
|
|
901
|
-
// #5479, #5371 and #5048 applied.
|
|
902
|
-
"[slug]": "0.23.0",
|
|
903
|
-
// #6897 D2 — the Free /meet/<slug> placeholder detail route. A genuinely
|
|
904
|
-
// new route directory, so it attaches at today's fixed-group version, the
|
|
905
|
-
// same rule applied above.
|
|
906
|
-
"[slug]/[detail]": "0.28.0",
|
|
907
908
|
};
|
|
908
909
|
/**
|
|
909
910
|
* Surface id of the registry that owns `routeDir` (ROUTE_ROOT-relative): the
|
|
@@ -926,7 +927,6 @@ export function surfaceForRouteDir(routeDir) {
|
|
|
926
927
|
/** #9746 D10 — what each Magnets and Meetings tab page imports beside itself. */
|
|
927
928
|
const ADMIN_PANEL_ROUTE_DEPENDENCIES = [
|
|
928
929
|
"apps/web/lib/server-api.ts",
|
|
929
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
930
930
|
`${ROUTE_ROOT}/(authed)/admin/admin-nav.ts`,
|
|
931
931
|
`${ROUTE_ROOT}/(authed)/admin/admin-panels.tsx`,
|
|
932
932
|
];
|
|
@@ -948,21 +948,13 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
948
948
|
// `siteLogo()` — which lives in `site-logo.tsx` since #6820 and reads the
|
|
949
949
|
// raw mark + name from `site-brand.tsx`, so BOTH files travel with the
|
|
950
950
|
// group — and the LOCALE layout above it branches on `isAuthPath()` to drop
|
|
951
|
-
// the marketing chrome for these five paths
|
|
952
|
-
//
|
|
953
|
-
// sign-in page no longer imports `site-brand`
|
|
954
|
-
// since #5963 — so its own list is just the env
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
"apps/web/lib/site-logo.tsx",
|
|
958
|
-
"apps/web/lib/auth-routes.ts",
|
|
959
|
-
],
|
|
951
|
+
// the marketing chrome for these five paths. Since #11257 the predicate is
|
|
952
|
+
// `@working-theory/auth/edge`'s and the group's files are generated, so no
|
|
953
|
+
// site lib travels for it. The sign-in page no longer imports `site-brand`
|
|
954
|
+
// — the mark is the shell's since #5963 — so its own list is just the env
|
|
955
|
+
// reader.
|
|
956
|
+
"(auth)": ["apps/web/lib/site-brand.tsx", "apps/web/lib/site-logo.tsx"],
|
|
960
957
|
"(auth)/sign-in": ["apps/web/lib/auth-env.ts"],
|
|
961
|
-
// #10051 D9 — the /templates hub imports the route-family helper and the
|
|
962
|
-
// template-listing mapping, its detail route the mapping; each lists both
|
|
963
|
-
// so the pair travels together to a site scaffolded before them.
|
|
964
|
-
templates: ["apps/web/lib/route-family.ts", "apps/web/lib/template-listing.ts"],
|
|
965
|
-
"templates/[slug]": ["apps/web/lib/route-family.ts", "apps/web/lib/template-listing.ts"],
|
|
966
958
|
// #8765 D8/D9 — the sign-up page links its agreements through the one
|
|
967
959
|
// localized policy map; the carried-cookie mint (`sign-up.actions.ts`) is
|
|
968
960
|
// deleted, since the server now refuses and records the agreements.
|
|
@@ -978,38 +970,32 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
978
970
|
"(authed)": [
|
|
979
971
|
"apps/web/auth.ts",
|
|
980
972
|
"apps/web/lib/auth-env.ts",
|
|
981
|
-
"apps/web/lib/auth-routes.ts",
|
|
982
973
|
"apps/web/lib/sign-up-agreements.ts",
|
|
983
974
|
],
|
|
984
975
|
"(authed)/admin": [
|
|
985
976
|
"apps/web/lib/server-api.ts",
|
|
986
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
987
977
|
// #9746 D8 — the shared nav every /admin tab imports.
|
|
988
978
|
`${ROUTE_ROOT}/(authed)/admin/admin-nav.ts`,
|
|
989
979
|
],
|
|
990
|
-
"(authed)/leads": ["apps/web/lib/server-api.ts"],
|
|
991
980
|
// #5977 — the editor routes' own imports, read from their sources: both
|
|
992
981
|
// pages call `forwardedCookieInit`/`unwrapApiResult` from `lib/server-api`
|
|
993
|
-
// and render the shared `ForbiddenState` on the tenant guard's 403
|
|
994
|
-
//
|
|
982
|
+
// and render the shared `ForbiddenState` on the tenant guard's 403 (from
|
|
983
|
+
// `@working-theory/site-pages/lib/forbidden-state` since #11259, which every
|
|
984
|
+
// site installs, so it is no file dependency). Declared for registry
|
|
995
985
|
// completeness; inert in practice while the routes are excluded from the
|
|
996
986
|
// snapshot (see ROUTE_SINCE above).
|
|
997
987
|
"(authed)/edit": [
|
|
998
988
|
"apps/web/lib/server-api.ts",
|
|
999
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
1000
989
|
],
|
|
1001
990
|
"(authed)/edit/[type]/[slug]": [
|
|
1002
991
|
"apps/web/lib/server-api.ts",
|
|
1003
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
1004
992
|
],
|
|
1005
993
|
"(authed)/admin/site": [
|
|
1006
994
|
"apps/web/lib/server-api.ts",
|
|
1007
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
1008
995
|
`${ROUTE_ROOT}/(authed)/admin/admin-nav.ts`,
|
|
1009
996
|
],
|
|
1010
997
|
"(authed)/admin/team": [
|
|
1011
998
|
"apps/web/lib/server-api.ts",
|
|
1012
|
-
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
1013
999
|
`${ROUTE_ROOT}/(authed)/admin/admin-nav.ts`,
|
|
1014
1000
|
],
|
|
1015
1001
|
// #9746 D10 — the Magnets and Meetings tabs: the nav plus the client
|
|
@@ -1021,44 +1007,6 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
1021
1007
|
// #9851 D7 — the Integrations tab: the nav plus the Slack bindings.
|
|
1022
1008
|
"(authed)/admin/integrations": ADMIN_PANEL_ROUTE_DEPENDENCIES,
|
|
1023
1009
|
"(authed)/waitlist": ["apps/web/lib/server-api.ts"],
|
|
1024
|
-
// #8927 D8 — /pricing maps the Offerings shown set through the mapper.
|
|
1025
|
-
// #9480 — and reads its browser-facing API origin through the topology seam
|
|
1026
|
-
// (#7874 D12), so a spoke with /pricing reads no refused name. Every
|
|
1027
|
-
// scaffold since #7874 already carries its own render of the seam, and a
|
|
1028
|
-
// dependency copy never overwrites, so this entry admits the import; it
|
|
1029
|
-
// never replaces a spoke's render with the template's hub one.
|
|
1030
|
-
pricing: [
|
|
1031
|
-
"apps/web/lib/offerings-pricing.ts",
|
|
1032
|
-
"apps/web/lib/api-origin.generated.ts",
|
|
1033
|
-
// #10044 D9 — the shared Pricing render and the offering pages' list.
|
|
1034
|
-
"apps/web/lib/pricing-page.ts",
|
|
1035
|
-
"apps/web/lib/route-family.ts",
|
|
1036
|
-
],
|
|
1037
|
-
// #10044 D9 — one offering's pricing page renders through the same lib,
|
|
1038
|
-
// which imports the route-family helper's `DetailPage` type.
|
|
1039
|
-
"pricing/[slug]": [
|
|
1040
|
-
"apps/web/lib/offerings-pricing.ts",
|
|
1041
|
-
"apps/web/lib/api-origin.generated.ts",
|
|
1042
|
-
"apps/web/lib/pricing-page.ts",
|
|
1043
|
-
"apps/web/lib/route-family.ts",
|
|
1044
|
-
],
|
|
1045
|
-
// #10043 D11 — the services hub maps its links through the services
|
|
1046
|
-
// listing; a service page lists its category's children through it and the
|
|
1047
|
-
// route-family helper, and the nested route redirects with it. The
|
|
1048
|
-
// listing reads the base from `services-path.ts`, which the middleware
|
|
1049
|
-
// already carries; it is listed so a site whose middleware predates it
|
|
1050
|
-
// still compiles (a dependency copy never overwrites).
|
|
1051
|
-
services: ["apps/web/lib/service-listing.ts", "apps/web/lib/services-path.ts"],
|
|
1052
|
-
"services/[slug]": [
|
|
1053
|
-
"apps/web/lib/route-family.ts",
|
|
1054
|
-
"apps/web/lib/service-listing.ts",
|
|
1055
|
-
"apps/web/lib/services-path.ts",
|
|
1056
|
-
],
|
|
1057
|
-
"services/[slug]/[child]": [
|
|
1058
|
-
"apps/web/lib/route-family.ts",
|
|
1059
|
-
"apps/web/lib/service-listing.ts",
|
|
1060
|
-
"apps/web/lib/services-path.ts",
|
|
1061
|
-
],
|
|
1062
1010
|
};
|
|
1063
1011
|
/**
|
|
1064
1012
|
* i18n message namespaces (dot-path into `apps/web/messages/<locale>.json`) a
|
|
@@ -1082,7 +1030,6 @@ export const ROUTE_MESSAGE_NAMESPACES = {
|
|
|
1082
1030
|
// #9966 D2 — the hub's consent page reads its own namespace.
|
|
1083
1031
|
"(authed)/account/connect": ["hubConnect"],
|
|
1084
1032
|
"(authed)/admin": ["admin"],
|
|
1085
|
-
"(authed)/leads": ["leadsInbox"],
|
|
1086
1033
|
// #5977 — every string on both editor routes comes from the `edit`
|
|
1087
1034
|
// namespace (spec 5872 D10).
|
|
1088
1035
|
"(authed)/edit": ["edit"],
|
|
@@ -1095,19 +1042,6 @@ export const ROUTE_MESSAGE_NAMESPACES = {
|
|
|
1095
1042
|
"(authed)/admin/meetings/[slug]": ["admin"],
|
|
1096
1043
|
"(authed)/admin/integrations": ["admin"],
|
|
1097
1044
|
"(authed)/waitlist": ["waitlistDashboard.gate"],
|
|
1098
|
-
// #7744 — the /team hub's empty state reads the `team` namespace.
|
|
1099
|
-
team: ["team"],
|
|
1100
|
-
// #8438 D21 — the unsubscribe landing's own namespace.
|
|
1101
|
-
unsubscribe: ["unsubscribe"],
|
|
1102
|
-
// #8927 D6 — the Offerings cards' CTA, recommendation and period phrases.
|
|
1103
|
-
// #10044 D8 — the offering pricing pages list's heading and link label.
|
|
1104
|
-
pricing: ["pricing", "pricingOfferings", "pricingPages"],
|
|
1105
|
-
"pricing/[slug]": ["pricing", "pricingOfferings"],
|
|
1106
|
-
// #10051 D8 — the /templates cards, actions and empty state.
|
|
1107
|
-
templates: ["templates"],
|
|
1108
|
-
"templates/[slug]": ["templates"],
|
|
1109
|
-
// #10043 D11 — a category's list of its services (heading, link label).
|
|
1110
|
-
"services/[slug]": ["services"],
|
|
1111
1045
|
};
|
|
1112
1046
|
/** Template-relative path of the generated site-nav registry. */
|
|
1113
1047
|
export const NAV_CONFIG_PATH = "apps/web/lib/nav-config.ts";
|
package/dist/sync-routes.js
CHANGED
|
@@ -56,6 +56,7 @@ import { SPOKE_BILLING_ACTION_PATH } from "./derive-architecture.js";
|
|
|
56
56
|
import { appendEnvRows } from "./lib/declared-env.js";
|
|
57
57
|
import { ENV_CATALOG } from "./lib/env-catalog.js";
|
|
58
58
|
import { publicTreeRemoved } from "./lib/site-modules.js";
|
|
59
|
+
import { readRouteManifests } from "./routes.js";
|
|
59
60
|
import { BILLING_ACTION, BILLING_ACTION_MARKER, RETIRED_CHECKOUT_E2E_MARKER, RETIRED_CHECKOUT_E2E_WORKFLOW_PATH, RETIRED_SPOKE_CHECKOUT_PATHS, } from "./spoke-checkout.js";
|
|
60
61
|
import { GATEABLE_SURFACES, HUB_KEPT_ROUTE_DIRS, NON_ROUTE_DIRS, pagePackageOfRoute, ROUTE_DEPENDENCIES, ROUTE_MESSAGE_NAMESPACES, ROUTE_SINCE, surfaceForRouteDir, } from "./surfaces.js";
|
|
61
62
|
import { TEMPLATE_RECORD_PATH, parseTemplateRecord, recordCopiedFiles, serializeTemplateRecord, sha256Hex, } from "./template-record.js";
|
|
@@ -932,13 +933,29 @@ export function syncRoutes(opts) {
|
|
|
932
933
|
};
|
|
933
934
|
}
|
|
934
935
|
/**
|
|
935
|
-
* Whether `
|
|
936
|
-
* `
|
|
937
|
-
*
|
|
938
|
-
*
|
|
936
|
+
* Whether `targetAbs` already declares `namespace` (a dot-path, e.g.
|
|
937
|
+
* `"waitlistDashboard.gate"`): in `apps/web/messages/en.json`, or — since a
|
|
938
|
+
* page package ships its own strings (ADR 0040 rule 5; #11257 D12) — in the
|
|
939
|
+
* `en` catalog of an installed page package (`readRouteManifests`). Missing
|
|
940
|
+
* or unparseable catalogs, and an unreadable manifest, read as "namespace
|
|
941
|
+
* absent" rather than throwing — a sync check should report a gap, not crash
|
|
942
|
+
* on one.
|
|
939
943
|
*/
|
|
940
944
|
function hasMessageNamespace(targetAbs, namespace) {
|
|
941
|
-
const
|
|
945
|
+
const catalogs = [join(targetAbs, "apps/web/messages/en.json")];
|
|
946
|
+
try {
|
|
947
|
+
for (const manifest of readRouteManifests(targetAbs)) {
|
|
948
|
+
if (manifest.messages !== undefined && manifest.root !== undefined) {
|
|
949
|
+
catalogs.push(join(manifest.root, manifest.messages.catalog, "en.json"));
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
catch {
|
|
954
|
+
// An unreadable manifest is `routes --check`'s to report.
|
|
955
|
+
}
|
|
956
|
+
return catalogs.some((path) => catalogHasNamespace(path, namespace));
|
|
957
|
+
}
|
|
958
|
+
function catalogHasNamespace(messagesPath, namespace) {
|
|
942
959
|
if (!existsSync(messagesPath))
|
|
943
960
|
return false;
|
|
944
961
|
try {
|
package/dist/template-record.js
CHANGED
|
@@ -25,7 +25,7 @@ import { SITE_FONTS_PATH } from "./site-fonts.js";
|
|
|
25
25
|
import { SITE_LISTING_PATH } from "./site-listing-path.js";
|
|
26
26
|
import { SPOKE_CHECKOUT_CONFIG_PATH } from "./spoke-checkout.js";
|
|
27
27
|
import { NAV_CONFIG_PATH } from "./surfaces.js";
|
|
28
|
-
import { SPOKE_SEAM_FILES } from "./topology.js";
|
|
28
|
+
import { AUTH_CONFIG_PATH, SPOKE_SEAM_FILES } from "./topology.js";
|
|
29
29
|
/** Where the per-file record lives, beside `.ailk-site-manifest.json`. */
|
|
30
30
|
export const TEMPLATE_RECORD_PATH = ".ailk-template-files.json";
|
|
31
31
|
/**
|
|
@@ -45,6 +45,8 @@ export const REGENERATED_APP_PATHS = [
|
|
|
45
45
|
MODULE_FLAGS_PATH,
|
|
46
46
|
PAID_MCP_TOOLS_PATH,
|
|
47
47
|
...SPOKE_SEAM_FILES,
|
|
48
|
+
// #11257 D4 — rewritten in its spoke shape on a spoke, as the seams are.
|
|
49
|
+
AUTH_CONFIG_PATH,
|
|
48
50
|
SPOKE_CHECKOUT_CONFIG_PATH,
|
|
49
51
|
SITE_LISTING_PATH,
|
|
50
52
|
];
|
package/dist/topology.d.ts
CHANGED
|
@@ -219,6 +219,17 @@ export declare function transformAppPackageJson(text: string, label: string, req
|
|
|
219
219
|
* @throws TopologyError naming the file whose anchor is missing.
|
|
220
220
|
*/
|
|
221
221
|
export declare function applySpokeTransforms(targetDir: string, opts: SpokeShapeOptions): void;
|
|
222
|
+
/** The page-package config the sign-in package reads its services from (#11257 D4). */
|
|
223
|
+
export declare const AUTH_CONFIG_PATH = "apps/web/auth.config.tsx";
|
|
224
|
+
/**
|
|
225
|
+
* `apps/web/auth.config.tsx` for `topology` (#11257 D4): the hub render is
|
|
226
|
+
* this monorepo's file, byte for byte (`spoke-topology.test.ts` pins the
|
|
227
|
+
* two); the spoke render passes `hub: null` and imports none of the hub-only
|
|
228
|
+
* libs (`lib/auth-email.ts`, `lib/auth-secret.ts`, `lib/consent-policies.ts`).
|
|
229
|
+
* Neither imports `auth.ts`: Better Auth arrives through the topology seam's
|
|
230
|
+
* `loadAuth()`, so a spoke keeps the file and no closure removes it.
|
|
231
|
+
*/
|
|
232
|
+
export declare function renderAuthConfig(topology: Topology): string;
|
|
222
233
|
/** The env var a spoke reaches its hub through. */
|
|
223
234
|
export declare const HUB_ORIGIN_ENV_VAR = "AILK_API_URL";
|
|
224
235
|
/**
|