create-ailk 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/component-catalog.json +40 -1
  2. package/component-catalog.md +7 -5
  3. package/dist/surfaces.js +60 -19
  4. package/dist/update.d.ts +19 -1
  5. package/dist/update.js +293 -35
  6. package/package.json +3 -3
  7. package/templates/.env.example +17 -0
  8. package/templates/apps/api/.env.example +38 -0
  9. package/templates/apps/api/CLAUDE.md +3 -0
  10. package/templates/apps/api/src/lib/__mocks__/prisma.ts +7 -0
  11. package/templates/apps/mcp/CLAUDE.md +1 -1
  12. package/templates/apps/web/CLAUDE.md +28 -1
  13. package/templates/apps/web/app/[locale]/(auth)/reset-password/__tests__/return.test.tsx +179 -0
  14. package/templates/apps/web/app/[locale]/(auth)/reset-password/page.tsx +22 -2
  15. package/templates/apps/web/app/[locale]/(auth)/reset-password/reset-password-card.tsx +9 -2
  16. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/billing.test.tsx +240 -76
  17. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/general.test.tsx +242 -28
  18. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/hub-mode.test.tsx +369 -196
  19. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/item.test.tsx +26 -1
  20. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/layout.test.tsx +17 -6
  21. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-menu.test.tsx +51 -12
  22. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/new-popups.test.tsx +17 -2
  23. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/notifications.test.tsx +153 -2
  24. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/page.test.tsx +206 -23
  25. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/popups.test.tsx +150 -188
  26. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/privacy.test.tsx +235 -177
  27. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/rich-translator.ts +63 -0
  28. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/security.test.tsx +0 -3
  29. package/templates/apps/web/app/[locale]/(authed)/account/__tests__/thread.test.tsx +340 -0
  30. package/templates/apps/web/app/[locale]/(authed)/account/account-data.ts +7 -5
  31. package/templates/apps/web/app/[locale]/(authed)/account/account-frame.tsx +19 -3
  32. package/templates/apps/web/app/[locale]/(authed)/account/actions.ts +8 -4
  33. package/templates/apps/web/app/[locale]/(authed)/account/appointments/[slug]/page.tsx +161 -0
  34. package/templates/apps/web/app/[locale]/(authed)/account/appointments/__tests__/page.test.tsx +426 -0
  35. package/templates/apps/web/app/[locale]/(authed)/account/appointments/appointments-data.ts +76 -0
  36. package/templates/apps/web/app/[locale]/(authed)/account/appointments/page.tsx +139 -0
  37. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/page.tsx +92 -24
  38. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/[pieceId]/versions/[version]/file/route.ts +32 -1
  39. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/file-route.test.ts +76 -3
  40. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/__tests__/page.test.tsx +290 -41
  41. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/artifact-data.ts +109 -11
  42. package/templates/apps/web/app/[locale]/(authed)/account/artifacts/page.tsx +43 -44
  43. package/templates/apps/web/app/[locale]/(authed)/account/billing/__tests__/offerings.test.ts +99 -0
  44. package/templates/apps/web/app/[locale]/(authed)/account/billing/offerings.ts +123 -0
  45. package/templates/apps/web/app/[locale]/(authed)/account/billing/page.tsx +309 -113
  46. package/templates/apps/web/app/[locale]/(authed)/account/billing-source.ts +192 -65
  47. package/templates/apps/web/app/[locale]/(authed)/account/components/request-quote.tsx +52 -7
  48. package/templates/apps/web/app/[locale]/(authed)/account/general/account-name.ts +36 -0
  49. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-actions.ts +70 -2
  50. package/templates/apps/web/app/[locale]/(authed)/account/general/contact-details.tsx +42 -0
  51. package/templates/apps/web/app/[locale]/(authed)/account/general/page.tsx +55 -58
  52. package/templates/apps/web/app/[locale]/(authed)/account/general/phone-verification.tsx +2 -1
  53. package/templates/apps/web/app/[locale]/(authed)/account/general/photo-actions.ts +73 -0
  54. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-form.tsx +12 -9
  55. package/templates/apps/web/app/[locale]/(authed)/account/general/profile-source.ts +18 -4
  56. package/templates/apps/web/app/[locale]/(authed)/account/inbox/[kind]/[id]/page.tsx +20 -2
  57. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/member-thread-composer.tsx +43 -0
  58. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/page.tsx +125 -0
  59. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-data.ts +88 -0
  60. package/templates/apps/web/app/[locale]/(authed)/account/inbox/thread/thread-write.ts +31 -0
  61. package/templates/apps/web/app/[locale]/(authed)/account/layout.tsx +3 -2
  62. package/templates/apps/web/app/[locale]/(authed)/account/new-menu.tsx +33 -8
  63. package/templates/apps/web/app/[locale]/(authed)/account/new-popups.tsx +31 -52
  64. package/templates/apps/web/app/[locale]/(authed)/account/notifications/page.tsx +44 -4
  65. package/templates/apps/web/app/[locale]/(authed)/account/page.tsx +69 -49
  66. package/templates/apps/web/app/[locale]/(authed)/account/privacy/__tests__/export-route.test.ts +173 -0
  67. package/templates/apps/web/app/[locale]/(authed)/account/privacy/actions.ts +42 -4
  68. package/templates/apps/web/app/[locale]/(authed)/account/privacy/export/route.ts +102 -0
  69. package/templates/apps/web/app/[locale]/(authed)/account/privacy/page.tsx +147 -137
  70. package/templates/apps/web/app/[locale]/(authed)/account/security/__tests__/hub-variant.test.tsx +258 -0
  71. package/templates/apps/web/app/[locale]/(authed)/account/security/page.tsx +18 -21
  72. package/templates/apps/web/app/[locale]/(authed)/account/security/security-panel.tsx +34 -6
  73. package/templates/apps/web/app/[locale]/(authed)/account/security/security-source.ts +37 -7
  74. package/templates/apps/web/app/[locale]/(authed)/account/settings/page.tsx +0 -2
  75. package/templates/apps/web/app/[locale]/(authed)/account/settings-frame.tsx +8 -5
  76. package/templates/apps/web/app/[locale]/flows/[slug]/results/[payload]/ResultsClient.tsx +3 -2
  77. package/templates/apps/web/app/api/auth/hub/password/__tests__/return.test.ts +86 -0
  78. package/templates/apps/web/app/api/auth/hub/password/__tests__/route.test.ts +368 -0
  79. package/templates/apps/web/app/api/auth/hub/password/return.ts +86 -0
  80. package/templates/apps/web/app/api/auth/hub/password/route.ts +171 -0
  81. package/templates/apps/web/app/api/hub-session/__tests__/routes.test.ts +263 -0
  82. package/templates/apps/web/app/api/hub-session/password/return/route.ts +69 -0
  83. package/templates/apps/web/app/api/hub-session/password/route.ts +106 -0
  84. package/templates/apps/web/lib/__tests__/account-config.test.ts +129 -1
  85. package/templates/apps/web/lib/__tests__/offerings-pricing.test.ts +33 -0
  86. package/templates/apps/web/lib/account-config.ts +132 -8
  87. package/templates/apps/web/lib/auth-routes.ts +11 -6
  88. package/templates/apps/web/lib/offerings-pricing.ts +4 -1
  89. package/templates/apps/web/messages/en.json +156 -80
  90. package/versions.json +48 -48
  91. package/templates/apps/web/app/[locale]/(authed)/account/components/schedule-service.tsx +0 -276
  92. package/templates/apps/web/app/[locale]/(authed)/account/components/send-message.tsx +0 -128
  93. package/templates/apps/web/app/[locale]/(authed)/account/settings/__tests__/theme-modes.test.ts +0 -42
  94. package/templates/apps/web/app/[locale]/(authed)/account/settings/theme-modes.ts +0 -40
@@ -33,7 +33,7 @@
33
33
  "importPath": "@working-theory/ui/primitives",
34
34
  "rootBarrel": "@working-theory/ui",
35
35
  "sourceRoot": "packages/ui/src/primitives",
36
- "count": 80
36
+ "count": 82
37
37
  },
38
38
  {
39
39
  "name": "panels",
@@ -2454,6 +2454,17 @@
2454
2454
  "descriptionGrade": "weak",
2455
2455
  "sectionType": null
2456
2456
  },
2457
+ {
2458
+ "name": "DateInput",
2459
+ "tier": "primitives",
2460
+ "sourcePath": "packages/ui/src/primitives/DateInput.tsx",
2461
+ "importPath": "@working-theory/ui/primitives",
2462
+ "exported": true,
2463
+ "description": "Calendar-date control that posts one ISO `YYYY-MM-DD` value: a native date input beside a button that opens the package Calendar in a Popover.",
2464
+ "descriptionSource": "doc-comment",
2465
+ "descriptionGrade": "strong",
2466
+ "sectionType": null
2467
+ },
2457
2468
  {
2458
2469
  "name": "Delta",
2459
2470
  "tier": "primitives",
@@ -2630,6 +2641,17 @@
2630
2641
  "descriptionGrade": "strong",
2631
2642
  "sectionType": null
2632
2643
  },
2644
+ {
2645
+ "name": "LocalTime",
2646
+ "tier": "primitives",
2647
+ "sourcePath": "packages/ui/src/primitives/LocalTime.tsx",
2648
+ "importPath": "@working-theory/ui/primitives",
2649
+ "exported": true,
2650
+ "description": "An ISO instant as the viewer reads it: a date or time that renders in UTC on the server, then in the viewer's own time zone once the page hydrates, with the zone's short name on hover.",
2651
+ "descriptionSource": "doc-comment",
2652
+ "descriptionGrade": "strong",
2653
+ "sectionType": null
2654
+ },
2633
2655
  {
2634
2656
  "name": "MenuItem",
2635
2657
  "tier": "primitives",
@@ -11302,6 +11324,23 @@
11302
11324
  "type": "string",
11303
11325
  "minLength": 1
11304
11326
  },
11327
+ "prefill": {
11328
+ "type": "object",
11329
+ "properties": {
11330
+ "email": {
11331
+ "type": "string",
11332
+ "format": "email",
11333
+ "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
11334
+ },
11335
+ "name": {
11336
+ "type": "string",
11337
+ "minLength": 1
11338
+ }
11339
+ },
11340
+ "required": [
11341
+ "email"
11342
+ ]
11343
+ },
11305
11344
  "layout": {
11306
11345
  "type": "string",
11307
11346
  "enum": [
@@ -15,13 +15,13 @@ The component inventory of `@working-theory/ui` and the shells of `@working-theo
15
15
  3. Check the Primitives, Panels and Shells tables too — a low-level control, a collapsible layout container, or a route-level frame lives there, not under Sections or Blocks.
16
16
  4. Only then build. If you do build, you are declaring the capability is genuinely absent.
17
17
 
18
- Inventory: **328 component files** across 16 tiers — 60 sections, 110 blocks, 19 chrome, 80 primitives, 6 panels, 8 shells, 5 docs-blog-blocks, 1 docs-blog-chrome, 2 docs-blog-shells, 2 scheduling-sections, 6 scheduling-blocks, 5 signal-collectors-sections, 9 signal-collectors-blocks, 2 commerce-sections, 12 commerce-blocks, 1 commerce-panels. 325 distinct names: `SchedulerEmbed`, `Separator`, `Tabs` exist in more than one tier as genuinely different components, listed once per tier with its own source path.
18
+ Inventory: **330 component files** across 16 tiers — 60 sections, 110 blocks, 19 chrome, 82 primitives, 6 panels, 8 shells, 5 docs-blog-blocks, 1 docs-blog-chrome, 2 docs-blog-shells, 2 scheduling-sections, 6 scheduling-blocks, 5 signal-collectors-sections, 9 signal-collectors-blocks, 2 commerce-sections, 12 commerce-blocks, 1 commerce-panels. 327 distinct names: `SchedulerEmbed`, `Separator`, `Tabs` exist in more than one tier as genuinely different components, listed once per tier with its own source path.
19
19
 
20
- Description coverage: **324/328** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 244 from the component's own doc-comment header, 35 from its tier barrel's roster line. **4** have none; they are listed under [Undescribed components](#undescribed-components) rather than given a sentence invented from their name.
20
+ Description coverage: **326/330** components carry a capability description derived from source — 45 from the section registry's hand-authored when-to-use text, 246 from the component's own doc-comment header, 35 from its tier barrel's roster line. **4** have none; they are listed under [Undescribed components](#undescribed-components) rather than given a sentence invented from their name.
21
21
 
22
- Of those, **291** are *strong* — a capability sentence you could match a requirement against — and **33** are *weak*: either one short clause, or a long one that spends itself on wiring (client boundaries, class names, which primitives it composes) instead of on what the thing is for. Weak rows are marked `(weak)` and listed in full under [Weak descriptions](#weak-descriptions). Coverage is 99%, but **findable-without-luck coverage is 89%**.
22
+ Of those, **293** are *strong* — a capability sentence you could match a requirement against — and **33** are *weak*: either one short clause, or a long one that spends itself on wiring (client boundaries, class names, which primitives it composes) instead of on what the thing is for. Weak rows are marked `(weak)` and listed in full under [Weak descriptions](#weak-descriptions). Coverage is 99%, but **findable-without-luck coverage is 89%**.
23
23
 
24
- Per tier, strong out of total: **Sections** 59/60 · **Blocks** 102/110 · **Chrome** 10/19 · **Primitives** 65/80 (4 undescribed) · **Panels** 6/6 · **Shells** 7/8 · **Docs + Blog Blocks** 5/5 · **Docs + Blog Chrome** 1/1 · **Docs + Blog Shells** 0/2 · **Scheduling Sections** 2/2 · **Scheduling Blocks** 6/6 · **Signal-Collectors Sections** 5/5 · **Signal-Collectors Blocks** 8/9 · **Commerce Sections** 2/2 · **Commerce Blocks** 12/12 · **Commerce Panels** 1/1. A tier low on this line is a tier where a capability search is most likely to come up empty on something that exists.
24
+ Per tier, strong out of total: **Sections** 59/60 · **Blocks** 102/110 · **Chrome** 10/19 · **Primitives** 67/82 (4 undescribed) · **Panels** 6/6 · **Shells** 7/8 · **Docs + Blog Blocks** 5/5 · **Docs + Blog Chrome** 1/1 · **Docs + Blog Shells** 0/2 · **Scheduling Sections** 2/2 · **Scheduling Blocks** 6/6 · **Signal-Collectors Sections** 5/5 · **Signal-Collectors Blocks** 8/9 · **Commerce Sections** 2/2 · **Commerce Blocks** 12/12 · **Commerce Panels** 1/1. A tier low on this line is a tier where a capability search is most likely to come up empty on something that exists.
25
25
 
26
26
  That grade is **mechanical**. It counts what it can measure — how much a description adds beyond the component's own name, how much of it is spent on wiring, whether the extraction came out damaged — and it cannot tell a fluent paragraph about the wrong subject from a useful one. A person reading these tables will find more rows unusable than the weak count admits. Treat it as a floor on the problem, not a measurement of it, and read the source before concluding a capability is absent.
27
27
 
@@ -275,7 +275,7 @@ Import: `import { X } from "@working-theory/ui/chrome";` (or from the `@working-
275
275
 
276
276
  ---
277
277
 
278
- ## Primitives (80)
278
+ ## Primitives (82)
279
279
 
280
280
  The base control and text vocabulary — Button, Heading, Text, Link, Icon, Input, Dialog, Command, Tooltip, ThemeToggle and the rest. This is the only tier allowed to render raw HTML elements; every tier above it composes these instead. Search here before building any low-level control.
281
281
 
@@ -305,6 +305,7 @@ Import: `import { X } from "@working-theory/ui/primitives";` (or from the `@work
305
305
  | `Container` | _no description in source — read `packages/ui/src/primitives/Container.tsx`_ | `import { Container } from "@working-theory/ui/primitives"` |
306
306
  | `ContextMenu` | Right-click / long-press contextual action menu. Thin wrapper over @radix-ui/react-context-menu with AILK semantic token styling. Provides the full Radix sub-component set: Root, Trigger, Portal, Content, Group, Label, Item, CheckboxItem, RadioGroup, RadioItem, ItemIndicator, Separator, Sub, SubTrigger, SubContent, Shortcut. | `import { ContextMenu } from "@working-theory/ui/primitives"` |
307
307
  | `CopyButton` | CopyButton Primitive. *(weak)* | `import { CopyButton } from "@working-theory/ui/primitives"` |
308
+ | `DateInput` | Calendar-date control that posts one ISO `YYYY-MM-DD` value: a native date input beside a button that opens the package Calendar in a Popover. | `import { DateInput } from "@working-theory/ui/primitives"` |
308
309
  | `Delta` | Sign-driven semantic indicator for numeric change. *(weak)* | `import { Delta } from "@working-theory/ui/primitives"` |
309
310
  | `Dialog` | Modal overlay composed from @radix-ui/react-dialog. *(weak)* | `import { Dialog } from "@working-theory/ui/primitives"` |
310
311
  | `DropdownMenu` | Contextual action menu anchored to a trigger. Thin wrapper over @radix-ui/react-dropdown-menu with AILK semantic token styling. Provides the full Radix sub-component set: Root, Trigger, Portal, Content, Group, Label, Item, CheckboxItem, RadioGroup, RadioItem, ItemIndicator, Separator, Sub, SubTrigger, SubContent, Shortcut. | `import { DropdownMenu } from "@working-theory/ui/primitives"` |
@@ -321,6 +322,7 @@ Import: `import { X } from "@working-theory/ui/primitives";` (or from the `@work
321
322
  | `Label` | Form field label with peer-disabled state styling. Wraps @radix-ui/react-label for correct association with form controls via `htmlFor`. Automatically dims and shows a not-allowed cursor when the associated control carries the `disabled` attribute (peer-disabled). | `import { Label } from "@working-theory/ui/primitives"` |
322
323
  | `Link` | _no description in source — read `packages/ui/src/primitives/Link.tsx`_ | `import { Link } from "@working-theory/ui/primitives"` |
323
324
  | `LoaderRing` | Compact loading-animation indicator. Renders the three loading animations (spinner, dots, check-transition) and, for terminal status, composes the shared StatusBadge primitive (success/error/warning). Sizes track the AILK icon-size token scale; all colors are AILK Brand 1.3 semantic tokens. | `import { LoaderRing } from "@working-theory/ui/primitives"` |
325
+ | `LocalTime` | An ISO instant as the viewer reads it: a date or time that renders in UTC on the server, then in the viewer's own time zone once the page hydrates, with the zone's short name on hover. | `import { LocalTime } from "@working-theory/ui/primitives"` |
324
326
  | `Menubar` | Horizontal application menu bar with keyboard navigation. | `import { Menubar } from "@working-theory/ui/primitives"` |
325
327
  | `MenuItem` | Interactive menu item for dropdowns, context menus, etc. Full-width, left-aligned button with support for left/right icons, secondary text, selection state, and destructive variant. | `import { MenuItem } from "@working-theory/ui/primitives"` |
326
328
  | `MoneyAmount` | Locale-aware currency display. *(weak)* | `import { MoneyAmount } from "@working-theory/ui/primitives"` |
package/dist/surfaces.js CHANGED
@@ -805,6 +805,18 @@ export const ROUTE_SINCE = {
805
805
  // #11106 D5 — the invitation accept page. Genuinely new, so it attaches at
806
806
  // the fixed group's next release line.
807
807
  "(authed)/account/invitations/[invitationId]": "0.60.0",
808
+ // #11164 AC-3 — the Privacy tab's data export, re-served by the site's own
809
+ // route handler. Genuinely new, so it attaches at the fixed group's next
810
+ // release line.
811
+ "(authed)/account/privacy/export": "0.60.0",
812
+ // #11154 — the member Appointments list and a type's booking page.
813
+ // Genuinely new, so they attach at the fixed group's next release line.
814
+ "(authed)/account/appointments": "0.60.0",
815
+ "(authed)/account/appointments/[slug]": "0.60.0",
816
+ // #11152 — the member thread page, which the New menu's Send message
817
+ // opens. Genuinely new, so it attaches at the fixed group's next release
818
+ // line.
819
+ "(authed)/account/inbox/thread": "0.60.0",
808
820
  // #10051 D9 — the templates route family. Genuinely new, so it attaches at
809
821
  // the fixed group's next release line.
810
822
  templates: "0.50.0",
@@ -988,19 +1000,19 @@ export const ROUTE_DEPENDENCIES = {
988
1000
  // binds the config's actions to the popups, which import the menu and its
989
1001
  // server actions. (account-config.ts itself imports none of them — a
990
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.
991
1004
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
992
1005
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
993
1006
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
994
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
995
1007
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
996
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
997
1008
  ],
998
1009
  // #7920 — the member file read re-serves the hub's bytes with the
999
1010
  // credential `forwardedCookieInit` returns.
1000
1011
  "(authed)/account/inbox/message/[id]/file": ["apps/web/lib/server-api.ts"],
1001
- // #8232 D13 — the settings route is a redirect now; what it still imports
1002
- // from outside itself is `theme-modes.ts`'s theme reader and the brand file
1003
- // that reader imports.
1012
+ // #8232 D13 — the settings route is a redirect now. #11167 dropped its
1013
+ // `theme-modes.ts` (Color mode renders on every site), so it imports
1014
+ // nothing outside itself; the brand and theme files it once carried stay
1015
+ // listed so an older scaffold's copies still compile.
1004
1016
  "(authed)/account/settings": [
1005
1017
  "apps/web/lib/site-brand.tsx",
1006
1018
  "apps/web/lib/site-theme.ts",
@@ -1029,17 +1041,15 @@ export const ROUTE_DEPENDENCIES = {
1029
1041
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1030
1042
  `${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
1031
1043
  `${ROUTE_ROOT}/(authed)/account/profile-actions.ts`,
1032
- `${ROUTE_ROOT}/(authed)/account/settings/theme-modes.ts`,
1033
1044
  // #8233 C9 — the New menu's files beside account-config.ts: new-popups.tsx
1034
1045
  // binds the config's actions to the popups, which import the menu and its
1035
1046
  // server actions. (account-config.ts itself imports none of them — a
1036
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.
1037
1049
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1038
1050
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1039
1051
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1040
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1041
1052
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1042
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1043
1053
  ],
1044
1054
  // #8339 D11 — Security holds the former Sign-in section, moved verbatim
1045
1055
  // from General: `sign-in-method.ts` and what it imports. #8431 D8 — the
@@ -1068,11 +1078,12 @@ export const ROUTE_DEPENDENCIES = {
1068
1078
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1069
1079
  `${ROUTE_ROOT}/(authed)/account/privacy/actions.ts`,
1070
1080
  ],
1071
- // #8438 D14 — Privacy's five sections: the summary, the cookie-choice
1072
- // read from the browser cookie, data-use consents and read-only
1073
- // agreements (both through `member.consents`), and Request account
1074
- // deletion, moved here unchanged from General (D16) — so Privacy needs
1075
- // General's own deletion files too, the same cross-directory rule #8339
1081
+ // #8438 D14 — Privacy reads the registry through `member.consents`;
1082
+ // #11164 reshapes it (the lead, the data-use row, the training switch and
1083
+ // the Your data table) and drops the deletion request, so General's
1084
+ // deletion files are no longer its dependencies — only `profile-source.ts`
1085
+ // (which decides whether Support may take an account-deletion request) and
1086
+ // the `sign-in-method.ts` it imports, the same cross-directory rule #8339
1076
1087
  // D11 applied to Notifications' cookie-settings link.
1077
1088
  "(authed)/account/privacy": [
1078
1089
  "apps/web/lib/account-config.ts",
@@ -1081,10 +1092,11 @@ export const ROUTE_DEPENDENCIES = {
1081
1092
  `${ROUTE_ROOT}/(authed)/account/account-data.ts`,
1082
1093
  `${ROUTE_ROOT}/(authed)/account/settings-frame.tsx`,
1083
1094
  `${ROUTE_ROOT}/(authed)/account/sign-in-method.ts`,
1084
- `${ROUTE_ROOT}/(authed)/account/profile-actions.ts`,
1085
- `${ROUTE_ROOT}/(authed)/account/general/deletion-request.tsx`,
1086
1095
  `${ROUTE_ROOT}/(authed)/account/general/profile-source.ts`,
1087
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"],
1088
1100
  "(authed)/account/billing": [
1089
1101
  "apps/web/lib/account-config.ts",
1090
1102
  // #9401 D7 — the site's own Billing sections, the frozen stub the page imports.
@@ -1100,12 +1112,11 @@ export const ROUTE_DEPENDENCIES = {
1100
1112
  // binds the config's actions to the popups, which import the menu and its
1101
1113
  // server actions. (account-config.ts itself imports none of them — a
1102
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.
1103
1116
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1104
1117
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1105
1118
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1106
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1107
1119
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1108
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1109
1120
  ],
1110
1121
  // #8234 — the Artifacts pages import files in their parent's directory, as
1111
1122
  // #7430's children do; the artifact page also imports its own parent's
@@ -1129,6 +1140,34 @@ export const ROUTE_DEPENDENCIES = {
1129
1140
  `${ROUTE_ROOT}/(authed)/account/artifacts/artifact-actions.ts`,
1130
1141
  ],
1131
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
+ ],
1132
1171
  // #8515 D12 — the onboarding page imports its parent's account-data.ts
1133
1172
  // and error-row.tsx (which renders retry-button.tsx); its actions forward
1134
1173
  // the credential `forwardedCookieInit` returns. account-data.ts reads the
@@ -1149,12 +1188,11 @@ export const ROUTE_DEPENDENCIES = {
1149
1188
  // binds the config's actions to the popups, which import the menu and its
1150
1189
  // server actions. (account-config.ts itself imports none of them — a
1151
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.
1152
1192
  `${ROUTE_ROOT}/(authed)/account/new-menu.tsx`,
1153
1193
  `${ROUTE_ROOT}/(authed)/account/new-actions.ts`,
1154
1194
  `${ROUTE_ROOT}/(authed)/account/new-popups.tsx`,
1155
- `${ROUTE_ROOT}/(authed)/account/components/schedule-service.tsx`,
1156
1195
  `${ROUTE_ROOT}/(authed)/account/components/request-quote.tsx`,
1157
- `${ROUTE_ROOT}/(authed)/account/components/send-message.tsx`,
1158
1196
  ],
1159
1197
  "(authed)/admin": [
1160
1198
  "apps/web/lib/server-api.ts",
@@ -1271,6 +1309,9 @@ export const ROUTE_MESSAGE_NAMESPACES = {
1271
1309
  // #8234 — the two Artifacts pages; the file route renders no string.
1272
1310
  "(authed)/account/artifacts": ["account"],
1273
1311
  "(authed)/account/artifacts/[pieceId]": ["account"],
1312
+ // #11154 — the two Appointments pages.
1313
+ "(authed)/account/appointments": ["account"],
1314
+ "(authed)/account/appointments/[slug]": ["account"],
1274
1315
  // #8515 — the onboarding page.
1275
1316
  "(authed)/account/onboarding": ["account"],
1276
1317
  // #9966 D2 — the hub's consent page reads its own namespace.
package/dist/update.d.ts CHANGED
@@ -60,6 +60,24 @@ export interface UpdateResult {
60
60
  importers?: string[];
61
61
  missing?: true;
62
62
  }>;
63
+ /**
64
+ * Per file left alone that a moved file imports (#11147): the importers
65
+ * that moved anyway, because their own bytes were the record's, and what
66
+ * holds the file — `the site edit is <hunk summary>` where the record's
67
+ * copy could be read, else the reason the file was left alone.
68
+ */
69
+ heldImports?: Array<{
70
+ file: string;
71
+ importers: string[];
72
+ edit: string;
73
+ }>;
74
+ /** The recorded files whose bytes were another published template version's copy, moved as untouched (#11147). */
75
+ staleCopies?: Array<{
76
+ path: string;
77
+ version: string;
78
+ }>;
79
+ /** The recorded files whose site edit was comment lines only (#11147): merged, or on a conflict the template's copy. */
80
+ commentOnlyEdits?: string[];
63
81
  /** The `project.yaml` `env_contract` rows added for env vars the written files read (#10172). */
64
82
  envRowsAdded?: string[];
65
83
  /** Record rows dropped because the path is no longer recordable (#10173). */
@@ -109,6 +127,6 @@ export interface UpdateArgs {
109
127
  target: string | undefined;
110
128
  help: boolean;
111
129
  }
112
- export declare const UPDATE_HELP = "create-ailk update \u2014 bring template fixes into a site's copied app code.\n\nUsage:\n create-ailk update [<target-dir>]\n\nArguments:\n <target-dir> The existing site. Defaults to the current dir.\n\nOptions:\n --help, -h Print this message.\n\nReads .ailk-template-files.json (written beside .ailk-site-manifest.json by\nevery template scaffold) to tell an untouched copy from an edit. An\nuntouched apps/web, apps/api or apps/mcp file, or a root tools/jest file the\napp jest configs require, whose template copy changed is overwritten. An\nedited file whose template copy also changed is three-way merged with\n`git` (git must be on PATH); a conflict leaves the file alone and is\nlisted under \"Needs review\"; an apps/web/messages catalog instead gains the\ntemplate's new keys and keeps every value it has, and is reviewed only when a\nkey is an object on one side and a value on the other. Every template file,\ntest or not, that imports a file left under \"Needs review\" or \"Skipped\" (by a\nrelative or @/ import, transitively) is held at the site's version with it,\nits record entry is not advanced, and it is listed under \"Held back with\n<file>\" \u2014 reconcile the file, then run update again to bring it forward. A\nwritten file whose import names a file the site will not have is held the\nsame way, under \"Held back with <file> (not in this site)\". Every other file\nin the run still updates. When project.yaml has an env_contract block, each\nenv var the written files read that has no row gains one; no row is edited.\nA record row at a path create-ailk no longer records is dropped and listed.\nA surface the site's .ailk-site-manifest.json names a page on but\narchitecture.yaml does not declare (one no module owns, such as projects)\ngets its route files added and is declared, listed under \"Surfaces declared\nfrom the roster\". A code-route row of that roster no page file serves is\ndropped, listed under \"Roster rows dropped, no route serves them\".\nA site with no record gets one on its first run, from the version its\n.ailk-site-manifest.json already records. A site scaffolded before\n@working-theory/mcp-server has its copied apps/mcp moved to the boot set:\nthe server and each module's paid MCP pack join apps/mcp/package.json, the\ncopied server files go, and apps/mcp/src/lib/paid-tools.generated.ts is\nrewritten on every run. A site scaffolded before @working-theory/api has its\ncopied apps/api moved to the boot file: the app becomes @working-theory/app-api,\nthe package and the six @working-theory/api-<module> packages join\napps/api/package.json, its bins and build:vercel delegate to the package, and\nthe copied server files go. Run `pnpm install` after either move, since the\napp's package.json gained dependencies. Each mdx-body page in content/ with no\n'# ' heading gets its title and description written into its body as its\nheading and intro, listed under \"Page heading added\"; a page with one heading\nis left as it is, and one with several, or one whose frontmatter it cannot\nread, is listed under \"Needs review\". Each bare { on an mdx-body page is\nescaped as \\{ when the site's own MDX parser then reads the page clean, listed\nunder \"Placeholder brace escaped\"; a page it cannot escape safely, or any page\nwith one while the site's dependencies are not installed, is listed under\n\"Needs review\". Commit before running, and review the diff after.\n";
130
+ export declare const UPDATE_HELP = "create-ailk update \u2014 bring template fixes into a site's copied app code.\n\nUsage:\n create-ailk update [<target-dir>]\n\nArguments:\n <target-dir> The existing site. Defaults to the current dir.\n\nOptions:\n --help, -h Print this message.\n\nReads .ailk-template-files.json (written beside .ailk-site-manifest.json by\nevery template scaffold) to tell an untouched copy from an edit. An\nuntouched apps/web, apps/api or apps/mcp file, or a root tools/jest file the\napp jest configs require, whose template copy changed is overwritten. An\nedited file whose template copy also changed is three-way merged with\n`git` (git must be on PATH); a conflict leaves the file alone and is\nlisted under \"Needs review\"; an apps/web/messages catalog instead gains the\ntemplate's new keys and keeps every value it has, and is reviewed only when a\nkey is an object on one side and a value on the other. An edited file whose\nbytes are another published create-ailk version's copy is a stale copy, not\nan edit: it is overwritten or removed as an untouched file is, listed with\nthe version it matched. An edit that touches only comment lines is listed as\n\"comment-only edit\"; on a conflict the template's copy lands. Every template\ntest, and every site-edited template file, that imports a file left under\n\"Needs review\" or \"Skipped\" (by a relative or @/ import, transitively) is held\nat the site's version with it, its record entry is not advanced, and it is\nlisted under \"Held back with <file>\" \u2014 reconcile the file, then run update\nagain to bring it forward. A file whose own bytes are the record's is not\nheld by what it imports: it moves, unless it names an export the held copy\nlacks, and the held file is listed as \"Held back: <file> \u2014 imported by N\nmoved files; the site edit is <hunk summary>\". A written file whose import\nnames a file the site will not have is held the same way, under \"Held back\nwith <file> (not in this site)\", and a file the template removed is kept\nwhile any file still in the site imports it. Every other file in the run\nstill updates. When project.yaml has an env_contract block, each\nenv var the written files read that has no row gains one; no row is edited.\nA record row at a path create-ailk no longer records is dropped and listed.\nA surface the site's .ailk-site-manifest.json names a page on but\narchitecture.yaml does not declare (one no module owns, such as projects)\ngets its route files added and is declared, listed under \"Surfaces declared\nfrom the roster\". A code-route row of that roster no page file serves is\ndropped, listed under \"Roster rows dropped, no route serves them\".\nA site with no record gets one on its first run, from the version its\n.ailk-site-manifest.json already records. A site scaffolded before\n@working-theory/mcp-server has its copied apps/mcp moved to the boot set:\nthe server and each module's paid MCP pack join apps/mcp/package.json, the\ncopied server files go, and apps/mcp/src/lib/paid-tools.generated.ts is\nrewritten on every run. A site scaffolded before @working-theory/api has its\ncopied apps/api moved to the boot file: the app becomes @working-theory/app-api,\nthe package and the six @working-theory/api-<module> packages join\napps/api/package.json, its bins and build:vercel delegate to the package, and\nthe copied server files go. Run `pnpm install` after either move, since the\napp's package.json gained dependencies. Each mdx-body page in content/ with no\n'# ' heading gets its title and description written into its body as its\nheading and intro, listed under \"Page heading added\"; a page with one heading\nis left as it is, and one with several, or one whose frontmatter it cannot\nread, is listed under \"Needs review\". Each bare { on an mdx-body page is\nescaped as \\{ when the site's own MDX parser then reads the page clean, listed\nunder \"Placeholder brace escaped\"; a page it cannot escape safely, or any page\nwith one while the site's dependencies are not installed, is listed under\n\"Needs review\". Commit before running, and review the diff after.\n";
113
131
  /** Parse the argv AFTER the `update` word. Strict `node:util` parseArgs, like `parseAdoptArgs`. */
114
132
  export declare function parseUpdateArgs(argv: string[]): UpdateArgs;