create-ailk 0.37.1 → 0.39.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/README.md +129 -0
- package/component-catalog.json +44 -6
- package/component-catalog.md +6 -5
- package/dist/add-module.js +16 -1
- package/dist/add-route.d.ts +2 -2
- package/dist/add-route.js +19 -12
- package/dist/cli.js +52 -0
- package/dist/declined-routes.d.ts +13 -0
- package/dist/declined-routes.js +74 -0
- package/dist/derive-architecture.d.ts +0 -6
- package/dist/derive-architecture.js +12 -16
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/language-import.d.ts +93 -0
- package/dist/language-import.js +270 -43
- package/dist/lib/import-mdx.js +1 -1
- package/dist/lib/scaffold-render-sweep.d.ts +6 -3
- package/dist/lib/scaffold-render-sweep.js +8 -4
- package/dist/migrate-content.d.ts +6 -2
- package/dist/migrate-content.js +62 -5
- package/dist/module-architecture.js +139 -103
- package/dist/paid-sections.d.ts +13 -0
- package/dist/paid-sections.js +35 -5
- package/dist/programmatic.js +6 -16
- package/dist/remove-module.js +73 -2
- package/dist/routes.d.ts +130 -0
- package/dist/routes.js +954 -0
- package/dist/site-manifest.js +6 -4
- package/dist/site-roster.d.ts +11 -2
- package/dist/site-roster.js +63 -21
- package/dist/spoke-checkout.d.ts +28 -27
- package/dist/spoke-checkout.js +71 -102
- package/dist/surfaces.d.ts +26 -0
- package/dist/surfaces.js +105 -293
- package/dist/sync-routes.d.ts +14 -1
- package/dist/sync-routes.js +108 -10
- package/dist/template-record.js +3 -1
- package/dist/topology.d.ts +26 -1
- package/dist/topology.js +273 -7
- package/dist/update.d.ts +17 -2
- package/dist/update.js +480 -77
- package/package.json +3 -3
- package/templates/README.md +1 -1
- package/templates/apps/mcp/CLAUDE.md +5 -3
- package/templates/apps/web/CLAUDE.md +87 -23
- package/templates/apps/web/__tests__/__mocks__/next-intl-server.ts +5 -1
- package/templates/apps/web/__tests__/__mocks__/next-intl.ts +5 -1
- package/templates/apps/web/__tests__/auth/seam.test.ts +34 -0
- package/templates/apps/web/account.config.tsx +100 -0
- 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 +2 -2
- package/templates/apps/web/app/[locale]/(authed)/signed-out-gate.generated.tsx +1 -1
- package/templates/apps/web/app/[locale]/layout.tsx +46 -29
- package/templates/apps/web/app/apple-icon.tsx +72 -0
- package/templates/apps/web/app/llms.txt/__tests__/site-listing.test.ts +22 -12
- package/templates/apps/web/app/og/__tests__/__snapshots__/card.test.tsx.snap +3 -0
- package/templates/apps/web/app/og/__tests__/card.test.tsx +129 -0
- package/templates/apps/web/app/og/__tests__/route.test.ts +3 -4
- package/templates/apps/web/app/og/route.tsx +155 -72
- package/templates/apps/web/app/sitemap.xml/__tests__/site-listing.test.ts +12 -0
- package/templates/apps/web/auth.config.tsx +107 -0
- package/templates/apps/web/auth.ts +2 -1
- package/templates/apps/web/i18n/request.ts +51 -1
- package/templates/apps/web/jest.config.cjs +17 -1
- package/templates/apps/web/lib/__tests__/auth-phone.test.ts +11 -0
- package/templates/apps/web/lib/__tests__/fixtures/site-topology.ts +73 -0
- package/templates/apps/web/lib/__tests__/nav-label-keys.test.ts +14 -0
- package/templates/apps/web/lib/__tests__/profile-back-link.test.ts +148 -61
- package/templates/apps/web/lib/__tests__/served-pages.test.ts +77 -0
- package/templates/apps/web/lib/__tests__/server-api.test.ts +37 -5
- package/templates/apps/web/lib/__tests__/structured-data.test.tsx +26 -13
- package/templates/apps/web/lib/listings.tsx +2 -2
- package/templates/apps/web/lib/nav-label-keys.ts +16 -2
- package/templates/apps/web/lib/paid-section-contracts.ts +35 -6
- package/templates/apps/web/lib/paid-sections.generated.ts +8 -0
- package/templates/apps/web/lib/profile-back-link.ts +105 -32
- package/templates/apps/web/lib/served-pages.ts +95 -0
- package/templates/apps/web/lib/server-api.ts +1 -1
- package/templates/apps/web/lib/site-brand.tsx +3 -5
- package/templates/apps/web/lib/topology.generated.ts +5 -0
- package/templates/apps/web/messages/en.json +8 -836
- package/templates/apps/web/middleware.ts +15 -26
- package/templates/apps/web/next.config.mjs +35 -0
- package/templates/apps/web/package.json +2 -0
- package/templates/apps/web/types/messages.d.ts +6 -1
- package/templates/customizations.yaml +9 -0
- package/templates/package.json +3 -1
- package/templates/tools/lint-architecture.ts +164 -11
- package/versions.json +49 -47
- 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/__tests__/account-frame-sign-out.test.tsx +0 -175
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/agreements-prompt.test.tsx +0 -301
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/billing.test.tsx +0 -515
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/general.test.tsx +0 -883
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/hub-mode.test.tsx +0 -758
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/item.test.tsx +0 -264
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout-sign-out.test.tsx +0 -167
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout.test.tsx +0 -730
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-menu.test.tsx +0 -355
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-popups.test.tsx +0 -97
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/notifications.test.tsx +0 -375
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/onboarding.test.tsx +0 -323
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/page.test.tsx +0 -1208
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/popups.test.tsx +0 -418
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/privacy.test.tsx +0 -462
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/rich-translator.ts +0 -63
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/security.test.tsx +0 -406
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/settings.test.tsx +0 -93
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/support.test.tsx +0 -208
- package/templates/apps/web/app/[locale]/(authed)/account/__tests__/thread.test.tsx +0 -340
- package/templates/apps/web/app/[locale]/(authed)/account/account-data.ts +0 -182
- package/templates/apps/web/app/[locale]/(authed)/account/account-frame.tsx +0 -353
- package/templates/apps/web/app/[locale]/(authed)/account/actions.ts +0 -57
- package/templates/apps/web/app/[locale]/(authed)/account/agreements-actions.ts +0 -58
- package/templates/apps/web/app/[locale]/(authed)/account/agreements-gate.ts +0 -61
- package/templates/apps/web/app/[locale]/(authed)/account/agreements-prompt.tsx +0 -184
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +0 -161
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/__tests__/page.test.tsx +0 -426
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/appointments-data.ts +0 -76
- package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +0 -139
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +0 -406
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/pay-form.tsx +0 -65
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/review-form.tsx +0 -172
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +0 -190
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/file-route.test.ts +0 -333
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/page.test.tsx +0 -936
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/pay.test.tsx +0 -193
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/review.test.tsx +0 -476
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-actions.ts +0 -184
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-data.ts +0 -197
- package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +0 -182
- package/templates/apps/web/app/[locale]/(authed)/account/billing/__tests__/offerings.test.ts +0 -99
- package/templates/apps/web/app/[locale]/(authed)/account/billing/offerings.ts +0 -123
- package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +0 -424
- package/templates/apps/web/app/[locale]/(authed)/account/billing-source.ts +0 -303
- package/templates/apps/web/app/[locale]/(authed)/account/components/request-quote.tsx +0 -274
- package/templates/apps/web/app/[locale]/(authed)/account/error-row.tsx +0 -35
- package/templates/apps/web/app/[locale]/(authed)/account/for-you-labels.ts +0 -36
- package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/phone-verification.test.tsx +0 -215
- package/templates/apps/web/app/[locale]/(authed)/account/general/__tests__/seam-imports.test.ts +0 -65
- package/templates/apps/web/app/[locale]/(authed)/account/general/account-name.ts +0 -36
- package/templates/apps/web/app/[locale]/(authed)/account/general/billing-anchor.tsx +0 -27
- package/templates/apps/web/app/[locale]/(authed)/account/general/contact-actions.ts +0 -149
- package/templates/apps/web/app/[locale]/(authed)/account/general/contact-details.tsx +0 -42
- package/templates/apps/web/app/[locale]/(authed)/account/general/deletion-request.tsx +0 -132
- package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +0 -218
- package/templates/apps/web/app/[locale]/(authed)/account/general/phone-actions.ts +0 -122
- package/templates/apps/web/app/[locale]/(authed)/account/general/phone-verification.tsx +0 -215
- package/templates/apps/web/app/[locale]/(authed)/account/general/photo-actions.ts +0 -73
- package/templates/apps/web/app/[locale]/(authed)/account/general/profile-form.tsx +0 -107
- package/templates/apps/web/app/[locale]/(authed)/account/general/profile-source.ts +0 -87
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +0 -119
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/message/[id]/file/__tests__/route.test.ts +0 -215
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/message/[id]/file/route.ts +0 -80
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/member-thread-composer.tsx +0 -43
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +0 -125
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-data.ts +0 -88
- package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-write.ts +0 -31
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/invitation-id.test.ts +0 -35
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/__tests__/page.test.tsx +0 -266
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/actions.ts +0 -116
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/invitation-id.ts +0 -12
- package/templates/apps/web/app/[locale]/(authed)/account/invitations/[invitationId]/page.tsx +0 -154
- package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +0 -152
- package/templates/apps/web/app/[locale]/(authed)/account/new-actions.ts +0 -219
- package/templates/apps/web/app/[locale]/(authed)/account/new-menu.tsx +0 -365
- package/templates/apps/web/app/[locale]/(authed)/account/new-popups.tsx +0 -86
- package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +0 -143
- package/templates/apps/web/app/[locale]/(authed)/account/onboarding/actions.ts +0 -120
- package/templates/apps/web/app/[locale]/(authed)/account/onboarding/onboarding-form.tsx +0 -322
- package/templates/apps/web/app/[locale]/(authed)/account/onboarding/page.tsx +0 -126
- package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +0 -306
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/__tests__/export-route.test.ts +0 -173
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/actions.ts +0 -103
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +0 -102
- package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +0 -240
- package/templates/apps/web/app/[locale]/(authed)/account/profile-actions.ts +0 -116
- package/templates/apps/web/app/[locale]/(authed)/account/retry-button.tsx +0 -27
- package/templates/apps/web/app/[locale]/(authed)/account/security/__tests__/hub-variant.test.tsx +0 -258
- package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +0 -131
- package/templates/apps/web/app/[locale]/(authed)/account/security/security-panel.tsx +0 -130
- package/templates/apps/web/app/[locale]/(authed)/account/security/security-source.ts +0 -92
- package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -24
- package/templates/apps/web/app/[locale]/(authed)/account/settings-frame.tsx +0 -121
- package/templates/apps/web/app/[locale]/(authed)/account/sign-in-method.ts +0 -37
- package/templates/apps/web/app/[locale]/(authed)/account/support/page.tsx +0 -60
- package/templates/apps/web/app/[locale]/(authed)/account/support/support-form.tsx +0 -98
- package/templates/apps/web/app/[locale]/(authed)/account/support-actions.ts +0 -100
- package/templates/apps/web/app/[locale]/checkout/__tests__/pages.test.tsx +0 -139
- package/templates/apps/web/app/[locale]/checkout/__tests__/thank-you-account.test.tsx +0 -146
- package/templates/apps/web/app/[locale]/checkout/thank-you/page.tsx +0 -114
- package/templates/apps/web/app/[locale]/checkout/unavailable/page.tsx +0 -51
- package/templates/apps/web/app/[locale]/flows/[slug]/FlowStepperClient.tsx +0 -614
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.count.test.tsx +0 -43
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.deliverable.test.tsx +0 -214
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.ending.test.tsx +0 -197
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.invite.test.tsx +0 -286
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.permalink.test.tsx +0 -520
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.test.tsx +0 -376
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/FlowStepperClient.thanks-by-tier.test.tsx +0 -306
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/account-invite.actions.test.ts +0 -69
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/flow.actions.test.ts +0 -398
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/magnet-page.test.tsx +0 -704
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/save.actions.test.ts +0 -173
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/two-route-tool.test.tsx +0 -141
- package/templates/apps/web/app/[locale]/flows/[slug]/__tests__/verify.test.tsx +0 -249
- package/templates/apps/web/app/[locale]/flows/[slug]/account-invite.actions.ts +0 -35
- package/templates/apps/web/app/[locale]/flows/[slug]/email-moment.ts +0 -92
- package/templates/apps/web/app/[locale]/flows/[slug]/flow.actions.ts +0 -177
- package/templates/apps/web/app/[locale]/flows/[slug]/magnet-page.tsx +0 -472
- package/templates/apps/web/app/[locale]/flows/[slug]/page.tsx +0 -48
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/LevelChart.tsx +0 -100
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsCard.tsx +0 -99
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsClient.tsx +0 -820
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsEmailStep.tsx +0 -203
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/ResultsClient.no-commerce.test.tsx +0 -194
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/ResultsClient.report.test.tsx +0 -284
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/by-result.test.tsx +0 -302
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/cards.test.tsx +0 -402
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/landing.test.tsx +0 -293
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/page.test.tsx +0 -485
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/__tests__/score.test.tsx +0 -231
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/checkout-seam.ts +0 -74
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/meeting-seam.ts +0 -36
- package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/page.tsx +0 -420
- package/templates/apps/web/app/[locale]/flows/[slug]/save.actions.ts +0 -85
- package/templates/apps/web/app/[locale]/flows/[slug]/served-flow.ts +0 -91
- package/templates/apps/web/app/[locale]/flows/[slug]/start/page.tsx +0 -32
- package/templates/apps/web/app/[locale]/flows/[slug]/verify/page.tsx +0 -153
- package/templates/apps/web/app/[locale]/flows/[slug]/verify.actions.ts +0 -151
- package/templates/apps/web/app/[locale]/meet/confirmed/BookingHandOff.tsx +0 -128
- package/templates/apps/web/app/[locale]/meet/confirmed/__tests__/BookingHandOff.test.tsx +0 -126
- package/templates/apps/web/app/[locale]/purchase/__tests__/cancel.test.tsx +0 -162
- package/templates/apps/web/app/[locale]/purchase/__tests__/module-scope.test.ts +0 -68
- package/templates/apps/web/app/[locale]/purchase/__tests__/success.test.tsx +0 -411
- package/templates/apps/web/app/[locale]/purchase/cancel/page.tsx +0 -115
- package/templates/apps/web/app/[locale]/purchase/success/page.tsx +0 -348
- 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__/account-config.test.ts +0 -704
- package/templates/apps/web/lib/__tests__/auth-routes.test.ts +0 -140
- package/templates/apps/web/lib/account-config.ts +0 -678
- package/templates/apps/web/lib/auth-routes.ts +0 -125
- package/templates/apps/web/lib/checkout-config.ts +0 -16
- 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/next-path.ts +0 -35
- package/templates/apps/web/src/lib/__tests__/commerce-sections.test.ts +0 -57
- package/templates/apps/web/src/lib/commerce-sections.ts +0 -55
package/dist/surfaces.js
CHANGED
|
@@ -88,6 +88,91 @@ export function isRemovedPublicRoutePath(destRel) {
|
|
|
88
88
|
return false;
|
|
89
89
|
return !HUB_KEPT_ROUTE_DIRS.includes(rest[0]);
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* The route trees a page package ships (ADR 0040): the package's pages
|
|
93
|
+
* mount through the route files `create-ailk routes` generates from its
|
|
94
|
+
* manifest, so `sync-routes` has nothing to sync under the prefix — the
|
|
95
|
+
* generator writes, checks and records those files, never the route copier.
|
|
96
|
+
* A `siteOwned` route under the prefix stays the site's own page (one the
|
|
97
|
+
* package leaves to a later slice) and `sync-routes` keeps it in scope. One
|
|
98
|
+
* entry per prefix of a page package, mirroring its `routes.json` (`prefix`,
|
|
99
|
+
* each `siteOwned` routing file's directory, and in `pages` each locale-mount
|
|
100
|
+
* page entry's directory under the prefix); `sync-routes.test.ts` pins every
|
|
101
|
+
* row to its package's manifest.
|
|
102
|
+
*
|
|
103
|
+
* `pages` is what a scaffold serves before the package is installed (#11259
|
|
104
|
+
* D6): the snapshot carries none of a page package's generated route files, so
|
|
105
|
+
* the site roster (`servedRoutes`) reads a carried package's pages here.
|
|
106
|
+
*/
|
|
107
|
+
export const PAGE_PACKAGE_ROUTES = [
|
|
108
|
+
{
|
|
109
|
+
package: "@working-theory/account",
|
|
110
|
+
prefix: "(authed)/account",
|
|
111
|
+
siteOwned: ["(authed)/account/connect"],
|
|
112
|
+
pages: [
|
|
113
|
+
"(authed)/account/appointments/[slug]",
|
|
114
|
+
"(authed)/account/appointments",
|
|
115
|
+
"(authed)/account/artifacts/[pieceId]",
|
|
116
|
+
"(authed)/account/artifacts",
|
|
117
|
+
"(authed)/account/billing",
|
|
118
|
+
"(authed)/account/general",
|
|
119
|
+
"(authed)/account/inbox/[kind]/[id]",
|
|
120
|
+
"(authed)/account/inbox/thread",
|
|
121
|
+
"(authed)/account/invitations/[invitationId]",
|
|
122
|
+
"(authed)/account/notifications",
|
|
123
|
+
"(authed)/account/onboarding",
|
|
124
|
+
"(authed)/account",
|
|
125
|
+
"(authed)/account/privacy",
|
|
126
|
+
"(authed)/account/security",
|
|
127
|
+
"(authed)/account/settings",
|
|
128
|
+
"(authed)/account/support",
|
|
129
|
+
],
|
|
130
|
+
},
|
|
131
|
+
// #11257 — the sign-in pages; the snapshot carries none of them (#11259 D6).
|
|
132
|
+
{
|
|
133
|
+
package: "@working-theory/auth",
|
|
134
|
+
prefix: "(auth)",
|
|
135
|
+
siteOwned: [],
|
|
136
|
+
pages: [
|
|
137
|
+
"(auth)/consent",
|
|
138
|
+
"(auth)/forgot-password",
|
|
139
|
+
"(auth)/reset-password",
|
|
140
|
+
"(auth)/sign-in",
|
|
141
|
+
"(auth)/sign-up",
|
|
142
|
+
"(auth)/verify-email",
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
// #11251 — the flows pages; the snapshot carries none of the tree, so a
|
|
146
|
+
// scaffold has its route files only once the package is installed.
|
|
147
|
+
{
|
|
148
|
+
package: "@working-theory/ui-signal-collectors",
|
|
149
|
+
prefix: "flows",
|
|
150
|
+
siteOwned: [],
|
|
151
|
+
pages: ["flows/[slug]", "flows/[slug]/start", "flows/[slug]/verify", "flows/[slug]/results/[payload]"],
|
|
152
|
+
},
|
|
153
|
+
// #11252 — the booking pages; likewise absent from the snapshot. One entry
|
|
154
|
+
// per prefix of the package's two-prefix manifest.
|
|
155
|
+
{ package: "@working-theory/ui-scheduling", prefix: "meet", siteOwned: [], pages: ["meet", "meet/[slug]", "meet/confirmed"] },
|
|
156
|
+
{ package: "@working-theory/ui-scheduling", prefix: "private", siteOwned: [], pages: ["private"] },
|
|
157
|
+
// #11253 — the checkout and purchase return pages; likewise absent from the
|
|
158
|
+
// snapshot, one entry per prefix of the package's two-prefix manifest.
|
|
159
|
+
{
|
|
160
|
+
package: "@working-theory/ui-commerce",
|
|
161
|
+
prefix: "checkout",
|
|
162
|
+
siteOwned: [],
|
|
163
|
+
pages: ["checkout/thank-you", "checkout/unavailable"],
|
|
164
|
+
},
|
|
165
|
+
{ package: "@working-theory/ui-commerce", prefix: "purchase", siteOwned: [], pages: ["purchase/success", "purchase/cancel"] },
|
|
166
|
+
// #11254 — the docs and blog catch-alls; likewise absent from the snapshot,
|
|
167
|
+
// one entry per prefix of the package's two-prefix manifest.
|
|
168
|
+
{ package: "@working-theory/ui-docs-blog", prefix: "docs", siteOwned: [], pages: ["docs/[[...slug]]"] },
|
|
169
|
+
{ package: "@working-theory/ui-docs-blog", prefix: "blog", siteOwned: [], pages: ["blog/[[...slug]]"] },
|
|
170
|
+
];
|
|
171
|
+
/** The page package that ships `route` (a ROUTE_ROOT-relative dir), or `undefined` when no page package does. */
|
|
172
|
+
export function pagePackageOfRoute(route) {
|
|
173
|
+
const under = (dir) => route === dir || route.startsWith(`${dir}/`);
|
|
174
|
+
return PAGE_PACKAGE_ROUTES.find((entry) => under(entry.prefix) && !entry.siteOwned.some(under))?.package;
|
|
175
|
+
}
|
|
91
176
|
/** Template-relative route directories that are always copied. */
|
|
92
177
|
export const CORE_ROUTE_DIRS = [
|
|
93
178
|
`${ROUTE_ROOT}/about`,
|
|
@@ -113,19 +198,6 @@ export const CORE_ROUTE_DIRS = [
|
|
|
113
198
|
// scaffold carrying it and no content is byte-for-byte a scaffold with one
|
|
114
199
|
// more 404, nothing else.
|
|
115
200
|
`${ROUTE_ROOT}/[slug]`,
|
|
116
|
-
// #6084 D12 (the operator's shape-2 disposition) — the checkout return
|
|
117
|
-
// pair. The launchers pointing at them (`apps/mcp/src/tools/purchase.ts`,
|
|
118
|
-
// `apps/web/.../dev/purchase/purchase.actions.ts`) are ALREADY
|
|
119
|
-
// unconditional base-tree code under D-64, so gating the return pages
|
|
120
|
-
// behind a scaffold-time surface would leave a licence-added commerce
|
|
121
|
-
// site with a working checkout and a 404 return page — the exact defect
|
|
122
|
-
// this issue exists to close. `CORE_ROUTE_DIRS` is the right home for the
|
|
123
|
-
// same reason `[slug]` immediately above is: inert (a request-time
|
|
124
|
-
// `notFound()`, `src/lib/commerce-claim.ts`) for every scaffold that never
|
|
125
|
-
// buys the `commerce` claim, so carrying it costs nothing beyond two more
|
|
126
|
-
// 404s. Neither `GATEABLE_SURFACES` nor `MODULE_SURFACES.commerce` gains
|
|
127
|
-
// an entry — the claim decides whether the pages serve, not the scaffold.
|
|
128
|
-
`${ROUTE_ROOT}/purchase`,
|
|
129
201
|
// #8438 D17/D21 — the one unsubscribe landing every signed link calls.
|
|
130
202
|
// Consent logging is part of the never-gated privacy floor (CLAUDE.md §
|
|
131
203
|
// License & tier hygiene's never-gate list), so this ships unconditionally
|
|
@@ -267,7 +339,10 @@ export const GATEABLE_SURFACES = [
|
|
|
267
339
|
// schedule/ directory by #5563), and the private index `/private`
|
|
268
340
|
// (#8843 D10), a second directory gated with it. API-backed like
|
|
269
341
|
// `flows`: every meeting fact comes from apps/api's
|
|
270
|
-
// `GET /v1/schedule/meetings`, so there is no MDX of its own.
|
|
342
|
+
// `GET /v1/schedule/meetings`, so there is no MDX of its own. Since
|
|
343
|
+
// #11252 the pages ship in `@working-theory/ui-scheduling` and the
|
|
344
|
+
// snapshot carries neither directory; the surface still gates the nav
|
|
345
|
+
// label and the Free placeholders.
|
|
271
346
|
id: "meet",
|
|
272
347
|
routes: [`${ROUTE_ROOT}/meet`, `${ROUTE_ROOT}/private`],
|
|
273
348
|
content: [],
|
|
@@ -406,7 +481,7 @@ export const SURFACE_ALIASES = {
|
|
|
406
481
|
// accept-and-drop read sites stay in place for the next promotion.
|
|
407
482
|
export const CORE_PROMOTED_SURFACES = new Set([]);
|
|
408
483
|
/** Canonical id for a `--surfaces` value, resolving a retired alias. */
|
|
409
|
-
function canonicalizeSurface(s) {
|
|
484
|
+
export function canonicalizeSurface(s) {
|
|
410
485
|
return SURFACE_ALIASES[s] ?? s;
|
|
411
486
|
}
|
|
412
487
|
/**
|
|
@@ -674,10 +749,9 @@ export const ROUTE_SINCE = {
|
|
|
674
749
|
features: "0.27.0",
|
|
675
750
|
"features/[slug]": "0.27.0",
|
|
676
751
|
faq: "0.0.0",
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
"flows/[slug]/verify": "0.56.0",
|
|
752
|
+
// #11251 — no `flows/…` key: the flows route files are generated from
|
|
753
|
+
// `@working-theory/ui-signal-collectors`'s manifest (`create-ailk routes`),
|
|
754
|
+
// never synced from the snapshot.
|
|
681
755
|
// #6658 — genuinely new route directories (D4, D5), attaching at today's
|
|
682
756
|
// fixed-group version, the same "attach at today's version" rule #6084,
|
|
683
757
|
// #5977, #5678, #5479, #5371 and #5048 applied. `book-a-call` was a third
|
|
@@ -688,12 +762,9 @@ export const ROUTE_SINCE = {
|
|
|
688
762
|
integrations: "0.0.0",
|
|
689
763
|
"integrations/[slug]": "0.0.0",
|
|
690
764
|
"launch-service": "0.0.0",
|
|
691
|
-
meet:
|
|
692
|
-
//
|
|
693
|
-
//
|
|
694
|
-
// in rather than the "predates the manifest" 0.0.0 above.
|
|
695
|
-
"meet/[slug]": "0.5.0",
|
|
696
|
-
"meet/confirmed": "0.0.0",
|
|
765
|
+
// #11252 — no `meet…` or `private` key: the booking pages' route files are
|
|
766
|
+
// generated from `@working-theory/ui-scheduling`'s manifest (`create-ailk
|
|
767
|
+
// routes`), never synced from the snapshot.
|
|
697
768
|
newsletter: "0.26.0",
|
|
698
769
|
partners: "0.0.0",
|
|
699
770
|
"partners/[slug]": "0.0.0",
|
|
@@ -717,11 +788,9 @@ export const ROUTE_SINCE = {
|
|
|
717
788
|
// question set is the SITE's content. A scaffolded site adds its own route
|
|
718
789
|
// beside this file and passes its own config.
|
|
719
790
|
"projects/apply": "0.18.0",
|
|
720
|
-
// #
|
|
721
|
-
//
|
|
722
|
-
//
|
|
723
|
-
"purchase/success": "0.24.0",
|
|
724
|
-
"purchase/cancel": "0.24.0",
|
|
791
|
+
// #11253 — no `purchase/…` key: the checkout return pair's route files are
|
|
792
|
+
// generated from `@working-theory/ui-commerce`'s manifest (`create-ailk
|
|
793
|
+
// routes`), never synced from the snapshot.
|
|
725
794
|
resources: "0.0.0",
|
|
726
795
|
"resources/[slug]": "0.0.0",
|
|
727
796
|
services: "0.0.0",
|
|
@@ -886,9 +955,6 @@ export const ROUTE_SINCE = {
|
|
|
886
955
|
// new route directory, so it attaches at today's fixed-group version, the
|
|
887
956
|
// same rule applied above.
|
|
888
957
|
"[slug]/[detail]": "0.28.0",
|
|
889
|
-
// #8843 D8 — the private meeting index, a new route directory gated with
|
|
890
|
-
// `meet`, attached at today's fixed-group version by the same rule.
|
|
891
|
-
private: "0.43.0",
|
|
892
958
|
};
|
|
893
959
|
/**
|
|
894
960
|
* Surface id of the registry that owns `routeDir` (ROUTE_ROOT-relative): the
|
|
@@ -933,15 +999,12 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
933
999
|
// `siteLogo()` — which lives in `site-logo.tsx` since #6820 and reads the
|
|
934
1000
|
// raw mark + name from `site-brand.tsx`, so BOTH files travel with the
|
|
935
1001
|
// group — and the LOCALE layout above it branches on `isAuthPath()` to drop
|
|
936
|
-
// the marketing chrome for these five paths
|
|
937
|
-
//
|
|
938
|
-
// sign-in page no longer imports `site-brand`
|
|
939
|
-
// since #5963 — so its own list is just the env
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
"apps/web/lib/site-logo.tsx",
|
|
943
|
-
"apps/web/lib/auth-routes.ts",
|
|
944
|
-
],
|
|
1002
|
+
// the marketing chrome for these five paths. Since #11257 the predicate is
|
|
1003
|
+
// `@working-theory/auth/edge`'s and the group's files are generated, so no
|
|
1004
|
+
// site lib travels for it. The sign-in page no longer imports `site-brand`
|
|
1005
|
+
// — the mark is the shell's since #5963 — so its own list is just the env
|
|
1006
|
+
// reader.
|
|
1007
|
+
"(auth)": ["apps/web/lib/site-brand.tsx", "apps/web/lib/site-logo.tsx"],
|
|
945
1008
|
"(auth)/sign-in": ["apps/web/lib/auth-env.ts"],
|
|
946
1009
|
// #10051 D9 — the /templates hub imports the route-family helper and the
|
|
947
1010
|
// template-listing mapping, its detail route the mapping; each lists both
|
|
@@ -963,237 +1026,8 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
963
1026
|
"(authed)": [
|
|
964
1027
|
"apps/web/auth.ts",
|
|
965
1028
|
"apps/web/lib/auth-env.ts",
|
|
966
|
-
"apps/web/lib/auth-routes.ts",
|
|
967
1029
|
"apps/web/lib/sign-up-agreements.ts",
|
|
968
1030
|
],
|
|
969
|
-
"(authed)/account": [
|
|
970
|
-
"apps/web/lib/account-config.ts",
|
|
971
|
-
"apps/web/lib/consent-policies.ts",
|
|
972
|
-
"apps/web/lib/server-api.ts",
|
|
973
|
-
"apps/web/lib/site-brand.tsx",
|
|
974
|
-
"apps/web/lib/site-logo.tsx",
|
|
975
|
-
// #8438 D13/D21, #8765 D7 — the agreements interstitial the layout shows
|
|
976
|
-
// a member with no current grant (`agreements-prompt.tsx`), its accept
|
|
977
|
-
// action (`agreements-actions.ts`) and the read the layout and the Inbox
|
|
978
|
-
// share (`agreements-gate.ts`). Listed because a scaffold
|
|
979
|
-
// whose `(authed)/account` predates #8438 needs them added, which the
|
|
980
|
-
// directory-level sync alone would not do (sync never overwrites or adds
|
|
981
|
-
// to a directory it already has). Both live in this directory, never in
|
|
982
|
-
// `(auth)/**` — a sign-in seed a sign-in-less spoke drops, so a
|
|
983
|
-
// cross-directory reach from here into it would dangle.
|
|
984
|
-
`${ROUTE_ROOT}/(authed)/account/agreements-prompt.tsx`,
|
|
985
|
-
`${ROUTE_ROOT}/(authed)/account/agreements-actions.ts`,
|
|
986
|
-
`${ROUTE_ROOT}/(authed)/account/agreements-gate.ts`,
|
|
987
|
-
],
|
|
988
|
-
// #7430 — the three child routes also import files in their PARENT's
|
|
989
|
-
// directory. A scaffold whose `(authed)/account` predates #7430 keeps its
|
|
990
|
-
// own copy of that route (sync-routes never overwrites), so the files the
|
|
991
|
-
// children need travel with them: each is new in #7430, never a changed
|
|
992
|
-
// file sync-routes could not update.
|
|
993
|
-
"(authed)/account/inbox/[kind]/[id]": [
|
|
994
|
-
"apps/web/lib/account-config.ts",
|
|
995
|
-
"apps/web/lib/server-api.ts",
|
|
996
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
997
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
998
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
999
|
-
// #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
|
|
1000
|
-
// binds the config's actions to the popups, which import the menu and its
|
|
1001
|
-
// server actions. (account-config.ts itself imports none of them — a
|
|
1002
|
-
// spoke without sign-in drops the `(authed)` group and keeps the config.)
|
|
1003
|
-
// #11152 — Send message is a link to the thread page; its popup is gone.
|
|
1004
|
-
`${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
|
|
1005
|
-
`${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
|
|
1006
|
-
`${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
|
|
1007
|
-
`${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
|
|
1008
|
-
],
|
|
1009
|
-
// #7920 — the member file read re-serves the hub's bytes with the
|
|
1010
|
-
// credential `forwardedCookieInit` returns.
|
|
1011
|
-
"(authed)/account/inbox/message/[id]/file": ["apps/web/lib/server-api.ts"],
|
|
1012
|
-
// #8232 D13 — the settings route is a redirect now. #11167 dropped its
|
|
1013
|
-
// `theme-modes.ts` (Color mode renders on every site), so it imports
|
|
1014
|
-
// nothing outside itself; the brand and theme files it once carried stay
|
|
1015
|
-
// listed so an older scaffold's copies still compile.
|
|
1016
|
-
"(authed)/account/settings": [
|
|
1017
|
-
"apps/web/lib/site-brand.tsx",
|
|
1018
|
-
"apps/web/lib/site-theme.ts",
|
|
1019
|
-
],
|
|
1020
|
-
// #8232 D13 — General and Billing import files in their parent's directory
|
|
1021
|
-
// too. Each listed parent file is new in #8232 or unchanged by it, so a
|
|
1022
|
-
// scaffold that already has one keeps a copy that still compiles; the
|
|
1023
|
-
// settings components General changed moved into `general/` instead (C3).
|
|
1024
|
-
// `profile-actions.ts` imports `lib/hub-session/reseal.ts` by its own path,
|
|
1025
|
-
// since a scaffold's existing `lib/hub-session/index.ts` is never updated.
|
|
1026
|
-
//
|
|
1027
|
-
// #8339 D11 — `settings/color-mode.tsx` drops: General's own color-mode
|
|
1028
|
-
// control is now the shared `AccountSettings` composition's
|
|
1029
|
-
// (@working-theory/templates/account). `sign-in-method.ts` stays: General no
|
|
1030
|
-
// longer renders the Sign-in section itself (moved to Security), but it
|
|
1031
|
-
// still imports `sign-in-method.ts` transitively through
|
|
1032
|
-
// `profile-source.ts`'s `via` derivation.
|
|
1033
|
-
"(authed)/account/general": [
|
|
1034
|
-
"apps/web/lib/account-config.ts",
|
|
1035
|
-
"apps/web/lib/auth-env.ts",
|
|
1036
|
-
"apps/web/lib/server-api.ts",
|
|
1037
|
-
"apps/web/lib/site-brand.tsx",
|
|
1038
|
-
"apps/web/lib/site-theme.ts",
|
|
1039
|
-
"apps/web/lib/hub-session/reseal.ts",
|
|
1040
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1041
|
-
`${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
|
|
1042
|
-
`${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
|
|
1043
|
-
`${ROUTE_ROOT}/(authed)/account/profile-actions.ts`,
|
|
1044
|
-
// #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
|
|
1045
|
-
// binds the config's actions to the popups, which import the menu and its
|
|
1046
|
-
// server actions. (account-config.ts itself imports none of them — a
|
|
1047
|
-
// spoke without sign-in drops the `(authed)` group and keeps the config.)
|
|
1048
|
-
// #11152 — Send message is a link to the thread page; its popup is gone.
|
|
1049
|
-
`${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
|
|
1050
|
-
`${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
|
|
1051
|
-
`${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
|
|
1052
|
-
`${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
|
|
1053
|
-
],
|
|
1054
|
-
// #8339 D11 — Security holds the former Sign-in section, moved verbatim
|
|
1055
|
-
// from General: `sign-in-method.ts` and what it imports. #8431 D8 — the
|
|
1056
|
-
// tab's failed-read row (`error-row.tsx` and its `retry-button.tsx`); its
|
|
1057
|
-
// own `security-source.ts` and `security-panel.tsx` live in the route dir
|
|
1058
|
-
// and copy with it.
|
|
1059
|
-
"(authed)/account/security": [
|
|
1060
|
-
"apps/web/lib/account-config.ts",
|
|
1061
|
-
"apps/web/lib/auth-env.ts",
|
|
1062
|
-
"apps/web/lib/server-api.ts",
|
|
1063
|
-
"apps/web/lib/hub-session/config.ts",
|
|
1064
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1065
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1066
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1067
|
-
`${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
|
|
1068
|
-
`${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
|
|
1069
|
-
],
|
|
1070
|
-
// #8339 D11 — Notifications holds the former Privacy section's
|
|
1071
|
-
// cookie-settings link, moved verbatim from General. #8438 D15 — that
|
|
1072
|
-
// link moved on again, to Privacy; Notifications now reads the registry
|
|
1073
|
-
// through `member.consents` instead, so it keeps the same dependency set.
|
|
1074
|
-
"(authed)/account/notifications": [
|
|
1075
|
-
"apps/web/lib/account-config.ts",
|
|
1076
|
-
"apps/web/lib/server-api.ts",
|
|
1077
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1078
|
-
`${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
|
|
1079
|
-
`${ROUTE_ROOT}/(authed)/account/privacy/actions.ts`,
|
|
1080
|
-
],
|
|
1081
|
-
// #8438 D14 — Privacy reads the registry through `member.consents`;
|
|
1082
|
-
// #11164 reshapes it (the lead, the data-use row, the training switch and
|
|
1083
|
-
// the Your data table) and drops the deletion request, so General's
|
|
1084
|
-
// deletion files are no longer its dependencies — only `profile-source.ts`
|
|
1085
|
-
// (which decides whether Support may take an account-deletion request) and
|
|
1086
|
-
// the `sign-in-method.ts` it imports, the same cross-directory rule #8339
|
|
1087
|
-
// D11 applied to Notifications' cookie-settings link.
|
|
1088
|
-
"(authed)/account/privacy": [
|
|
1089
|
-
"apps/web/lib/account-config.ts",
|
|
1090
|
-
"apps/web/lib/consent-policies.ts",
|
|
1091
|
-
"apps/web/lib/server-api.ts",
|
|
1092
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1093
|
-
`${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
|
|
1094
|
-
`${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
|
|
1095
|
-
`${ROUTE_ROOT}/(authed)/account/general/profile-source.ts`,
|
|
1096
|
-
],
|
|
1097
|
-
// #11164 AC-3 — the export route re-serves the member API's attachment
|
|
1098
|
-
// with the caller's own credential, the message file route's shape.
|
|
1099
|
-
"(authed)/account/privacy/export": ["apps/web/lib/server-api.ts"],
|
|
1100
|
-
"(authed)/account/billing": [
|
|
1101
|
-
"apps/web/lib/account-config.ts",
|
|
1102
|
-
// #9401 D7 — the site's own Billing sections, the frozen stub the page imports.
|
|
1103
|
-
"apps/web/lib/site-contributions.ts",
|
|
1104
|
-
"apps/web/lib/server-api.ts",
|
|
1105
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1106
|
-
`${ROUTE_ROOT}/(authed)/account/actions.ts`,
|
|
1107
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1108
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1109
|
-
`${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
|
|
1110
|
-
`${ROUTE_ROOT}/(authed)/account/billing-source.ts`,
|
|
1111
|
-
// #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
|
|
1112
|
-
// binds the config's actions to the popups, which import the menu and its
|
|
1113
|
-
// server actions. (account-config.ts itself imports none of them — a
|
|
1114
|
-
// spoke without sign-in drops the `(authed)` group and keeps the config.)
|
|
1115
|
-
// #11152 — Send message is a link to the thread page; its popup is gone.
|
|
1116
|
-
`${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
|
|
1117
|
-
`${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
|
|
1118
|
-
`${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
|
|
1119
|
-
`${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
|
|
1120
|
-
],
|
|
1121
|
-
// #8234 — the Artifacts pages import files in their parent's directory, as
|
|
1122
|
-
// #7430's children do; the artifact page also imports its own parent's
|
|
1123
|
-
// `artifact-data.ts` and `artifact-actions.ts`, which an older synced
|
|
1124
|
-
// `artifacts/` might lack. The file route re-serves the hub's bytes with
|
|
1125
|
-
// the credential `forwardedCookieInit` returns.
|
|
1126
|
-
"(authed)/account/artifacts": [
|
|
1127
|
-
"apps/web/lib/account-config.ts",
|
|
1128
|
-
"apps/web/lib/server-api.ts",
|
|
1129
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1130
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1131
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1132
|
-
],
|
|
1133
|
-
"(authed)/account/artifacts/[pieceId]": [
|
|
1134
|
-
"apps/web/lib/account-config.ts",
|
|
1135
|
-
"apps/web/lib/server-api.ts",
|
|
1136
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1137
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1138
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1139
|
-
`${ROUTE_ROOT}/(authed)/account/artifacts/artifact-data.ts`,
|
|
1140
|
-
`${ROUTE_ROOT}/(authed)/account/artifacts/artifact-actions.ts`,
|
|
1141
|
-
],
|
|
1142
|
-
"(authed)/account/artifacts/[pieceId]/versions/[version]/file": ["apps/web/lib/server-api.ts"],
|
|
1143
|
-
// #11154 — the Appointments pages import files in their parent's directory,
|
|
1144
|
-
// as the Artifacts pages do; the booking page also imports its own parent's
|
|
1145
|
-
// `appointments-data.ts`, which an older synced `appointments/` might lack.
|
|
1146
|
-
"(authed)/account/appointments": [
|
|
1147
|
-
"apps/web/lib/server-api.ts",
|
|
1148
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1149
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1150
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1151
|
-
],
|
|
1152
|
-
"(authed)/account/appointments/[slug]": [
|
|
1153
|
-
"apps/web/lib/server-api.ts",
|
|
1154
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1155
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1156
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1157
|
-
`${ROUTE_ROOT}/(authed)/account/appointments/appointments-data.ts`,
|
|
1158
|
-
],
|
|
1159
|
-
// #11152 — the member thread page imports its parent's reads, error row
|
|
1160
|
-
// and the New menu's server actions (its composer posts through
|
|
1161
|
-
// `sendMessage`), plus the account config the reads come from.
|
|
1162
|
-
"(authed)/account/inbox/thread": [
|
|
1163
|
-
"apps/web/lib/account-config.ts",
|
|
1164
|
-
"apps/web/lib/server-api.ts",
|
|
1165
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1166
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1167
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1168
|
-
`${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
|
|
1169
|
-
`${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
|
|
1170
|
-
],
|
|
1171
|
-
// #8515 D12 — the onboarding page imports its parent's account-data.ts
|
|
1172
|
-
// and error-row.tsx (which renders retry-button.tsx); its actions forward
|
|
1173
|
-
// the credential `forwardedCookieInit` returns. account-data.ts reads the
|
|
1174
|
-
// account config, as the Artifacts pages' does.
|
|
1175
|
-
"(authed)/account/onboarding": [
|
|
1176
|
-
"apps/web/lib/account-config.ts",
|
|
1177
|
-
"apps/web/lib/server-api.ts",
|
|
1178
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1179
|
-
`${ROUTE_ROOT}/(authed)/account/error-row.tsx`,
|
|
1180
|
-
`${ROUTE_ROOT}/(authed)/account/retry-button.tsx`,
|
|
1181
|
-
],
|
|
1182
|
-
"(authed)/account/support": [
|
|
1183
|
-
"apps/web/lib/account-config.ts",
|
|
1184
|
-
"apps/web/lib/server-api.ts",
|
|
1185
|
-
`${ROUTE_ROOT}/(authed)/account/account-data.ts`,
|
|
1186
|
-
`${ROUTE_ROOT}/(authed)/account/support-actions.ts`,
|
|
1187
|
-
// #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
|
|
1188
|
-
// binds the config's actions to the popups, which import the menu and its
|
|
1189
|
-
// server actions. (account-config.ts itself imports none of them — a
|
|
1190
|
-
// spoke without sign-in drops the `(authed)` group and keeps the config.)
|
|
1191
|
-
// #11152 — Send message is a link to the thread page; its popup is gone.
|
|
1192
|
-
`${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
|
|
1193
|
-
`${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
|
|
1194
|
-
`${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
|
|
1195
|
-
`${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
|
|
1196
|
-
],
|
|
1197
1031
|
"(authed)/admin": [
|
|
1198
1032
|
"apps/web/lib/server-api.ts",
|
|
1199
1033
|
`${ROUTE_ROOT}/(authed)/waitlist/components/ForbiddenState.tsx`,
|
|
@@ -1234,11 +1068,6 @@ export const ROUTE_DEPENDENCIES = {
|
|
|
1234
1068
|
// #9851 D7 — the Integrations tab: the nav plus the Slack bindings.
|
|
1235
1069
|
"(authed)/admin/integrations": ADMIN_PANEL_ROUTE_DEPENDENCIES,
|
|
1236
1070
|
"(authed)/waitlist": ["apps/web/lib/server-api.ts"],
|
|
1237
|
-
// #8843 D6 — the booking pages share one builder over the meetings read;
|
|
1238
|
-
// `/private` returns the index frame that lives under `meet/`.
|
|
1239
|
-
meet: ["apps/web/lib/meetings.tsx"],
|
|
1240
|
-
"meet/[slug]": ["apps/web/lib/meetings.tsx"],
|
|
1241
|
-
private: ["apps/web/lib/meetings.tsx", `${ROUTE_ROOT}/meet/meeting-index.tsx`],
|
|
1242
1071
|
// #8927 D8 — /pricing maps the Offerings shown set through the mapper.
|
|
1243
1072
|
// #9480 — and reads its browser-facing API origin through the topology seam
|
|
1244
1073
|
// (#7874 D12), so a spoke with /pricing reads no refused name. Every
|
|
@@ -1297,23 +1126,6 @@ export const ROUTE_MESSAGE_NAMESPACES = {
|
|
|
1297
1126
|
"(auth)/reset-password": ["auth"],
|
|
1298
1127
|
"(auth)/verify-email": ["auth"],
|
|
1299
1128
|
"(auth)/consent": ["mcpConsent"],
|
|
1300
|
-
"(authed)/account": ["account"],
|
|
1301
|
-
"(authed)/account/inbox/[kind]/[id]": ["account"],
|
|
1302
|
-
"(authed)/account/settings": ["account"],
|
|
1303
|
-
"(authed)/account/support": ["account"],
|
|
1304
|
-
"(authed)/account/general": ["account"],
|
|
1305
|
-
"(authed)/account/security": ["account"],
|
|
1306
|
-
"(authed)/account/notifications": ["account"],
|
|
1307
|
-
"(authed)/account/privacy": ["account"],
|
|
1308
|
-
"(authed)/account/billing": ["account"],
|
|
1309
|
-
// #8234 — the two Artifacts pages; the file route renders no string.
|
|
1310
|
-
"(authed)/account/artifacts": ["account"],
|
|
1311
|
-
"(authed)/account/artifacts/[pieceId]": ["account"],
|
|
1312
|
-
// #11154 — the two Appointments pages.
|
|
1313
|
-
"(authed)/account/appointments": ["account"],
|
|
1314
|
-
"(authed)/account/appointments/[slug]": ["account"],
|
|
1315
|
-
// #8515 — the onboarding page.
|
|
1316
|
-
"(authed)/account/onboarding": ["account"],
|
|
1317
1129
|
// #9966 D2 — the hub's consent page reads its own namespace.
|
|
1318
1130
|
"(authed)/account/connect": ["hubConnect"],
|
|
1319
1131
|
"(authed)/admin": ["admin"],
|
package/dist/sync-routes.d.ts
CHANGED
|
@@ -92,6 +92,12 @@ export interface SyncRoutesResult {
|
|
|
92
92
|
missingMessageNamespaces: string[];
|
|
93
93
|
/** Gateable surface ids the target does not carry, sorted. */
|
|
94
94
|
skippedSurfaces: string[];
|
|
95
|
+
/**
|
|
96
|
+
* In-scope template route dirs the site declined in `customizations.yaml`
|
|
97
|
+
* `declined_routes` (#11260), sorted by route: never missing, never
|
|
98
|
+
* modified, never copied.
|
|
99
|
+
*/
|
|
100
|
+
declined: RouteReport[];
|
|
95
101
|
/**
|
|
96
102
|
* The template route dirs left out of scope because the site has dropped the
|
|
97
103
|
* `marketing` module (#10040 D10): its manifest lists no `marketing`,
|
|
@@ -99,6 +105,13 @@ export interface SyncRoutesResult {
|
|
|
99
105
|
* drift — not reported missing, not copied, `forceSurfaces` included.
|
|
100
106
|
*/
|
|
101
107
|
publicTreeRemoved: string[];
|
|
108
|
+
/**
|
|
109
|
+
* The template route dirs a page package ships (ADR 0040,
|
|
110
|
+
* `PAGE_PACKAGE_ROUTES`), sorted: `create-ailk routes` writes their
|
|
111
|
+
* generated files, so they are out of this command's scope — never
|
|
112
|
+
* missing, never modified, never copied.
|
|
113
|
+
*/
|
|
114
|
+
pagePackageRoutes: string[];
|
|
102
115
|
/**
|
|
103
116
|
* When `apply` added a route the template exempts in its structured-data
|
|
104
117
|
* test and the site's copy of that test is site-edited (its bytes differ
|
|
@@ -204,7 +217,7 @@ export interface SyncRoutesArgs {
|
|
|
204
217
|
apply: boolean;
|
|
205
218
|
help: boolean;
|
|
206
219
|
}
|
|
207
|
-
export declare const SYNC_ROUTES_HELP = "create-ailk sync-routes \u2014 copy template routes an existing site is missing.\n\nUsage:\n create-ailk sync-routes [<target-dir>] [--apply]\n\nArguments:\n <target-dir> An already-scaffolded repo (contains\n architecture.yaml). Defaults to the current dir.\n\nOptions:\n --apply Copy the missing route directories into the target.\n Without it the command only reports: exit 1 when a\n route is missing, 0 when in sync.\n --help, -h Print this message.\n\nChecks every core route plus the routes of each surface the site carries; a\nsurface gated off at scaffold time is skipped, not drift. A route the site
|
|
220
|
+
export declare const SYNC_ROUTES_HELP = "create-ailk sync-routes \u2014 copy template routes an existing site is missing.\n\nUsage:\n create-ailk sync-routes [<target-dir>] [--apply]\n\nArguments:\n <target-dir> An already-scaffolded repo (contains\n architecture.yaml). Defaults to the current dir.\n\nOptions:\n --apply Copy the missing route directories into the target.\n Without it the command only reports: exit 1 when a\n route is missing, 0 when in sync.\n --help, -h Print this message.\n\nChecks every core route plus the routes of each surface the site carries; a\nsurface gated off at scaffold time is skipped, not drift. A route the site lists\nin customizations.yaml declined_routes is reported as declined and never copied\n(#11260). A route the site has changed locally is reported and never\noverwritten. Nothing is deleted except,\non a spoke, the retired legacy checkout's files that still match create-ailk's\ncopy: --apply removes them and rewrites the generated billing action (#9142).\nEvery file --apply copies is recorded in .ailk-template-files.json, when the\nsite has one, so `create-ailk update` carries it forward (#11213).\n";
|
|
208
221
|
/**
|
|
209
222
|
* Parse the argv AFTER the `sync-routes` word. Strict `node:util` parseArgs,
|
|
210
223
|
* like `parseCliArgs`; at most one positional.
|