create-ailk 0.47.0 → 0.48.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 (137) hide show
  1. package/README.md +180 -43
  2. package/component-catalog.json +223 -285
  3. package/component-catalog.md +1 -1
  4. package/dist/apply-design.d.ts +26 -68
  5. package/dist/apply-design.js +150 -322
  6. package/dist/cli.js +152 -17
  7. package/dist/compare-chrome.d.ts +108 -0
  8. package/dist/compare-chrome.js +481 -0
  9. package/dist/compare-look.d.ts +94 -0
  10. package/dist/compare-look.js +378 -0
  11. package/dist/copy.js +1 -1
  12. package/dist/design-compile.d.ts +17 -21
  13. package/dist/design-compile.js +32 -56
  14. package/dist/design-files.d.ts +93 -0
  15. package/dist/design-files.js +312 -0
  16. package/dist/design-home.d.ts +4 -2
  17. package/dist/design-home.js +88 -6
  18. package/dist/design-names.d.ts +13 -0
  19. package/dist/design-names.js +76 -0
  20. package/dist/design-package.d.ts +46 -56
  21. package/dist/design-package.js +285 -288
  22. package/dist/design-presets.d.ts +41 -0
  23. package/dist/design-presets.js +83 -4
  24. package/dist/design-scaffold.d.ts +12 -2
  25. package/dist/design-scaffold.js +72 -34
  26. package/dist/generated/design-settings.d.ts +56 -0
  27. package/dist/generated/design-settings.js +237 -0
  28. package/dist/index.d.ts +1 -1
  29. package/dist/index.js +2 -2
  30. package/dist/inventory.d.ts +3 -2
  31. package/dist/inventory.js +10 -4
  32. package/dist/lib/design-checks.d.ts +46 -0
  33. package/dist/lib/design-checks.js +79 -1
  34. package/dist/lib/env-catalog.js +1 -1
  35. package/dist/lib/module-license-gate.d.ts +1 -1
  36. package/dist/lib/module-license-gate.js +1 -1
  37. package/dist/lib/render-verdict.d.ts +13 -1
  38. package/dist/lib/render-verdict.js +41 -1
  39. package/dist/look-hub.d.ts +44 -0
  40. package/dist/look-hub.js +130 -0
  41. package/dist/look-record.d.ts +35 -0
  42. package/dist/look-record.js +85 -0
  43. package/dist/look-samples.d.ts +66 -0
  44. package/dist/look-samples.js +456 -0
  45. package/dist/look-settings.d.ts +53 -0
  46. package/dist/look-settings.js +363 -0
  47. package/dist/module-architecture.js +12 -0
  48. package/dist/parse-args.d.ts +10 -6
  49. package/dist/parse-args.js +26 -13
  50. package/dist/programmatic.d.ts +1 -19
  51. package/dist/programmatic.js +65 -103
  52. package/dist/retired-design-bodies.d.ts +29 -0
  53. package/dist/retired-design-bodies.js +51 -0
  54. package/dist/seed-flows.d.ts +1 -1
  55. package/dist/seed-flows.js +12 -14
  56. package/dist/seed-workspace.d.ts +4 -1
  57. package/dist/seed-workspace.js +139 -17
  58. package/dist/site-chrome.d.ts +41 -41
  59. package/dist/site-chrome.js +50 -70
  60. package/dist/site-fonts.d.ts +10 -14
  61. package/dist/site-fonts.js +5 -1
  62. package/dist/starter-grid.d.ts +2 -2
  63. package/dist/strip-look-copies.d.ts +67 -0
  64. package/dist/strip-look-copies.js +591 -0
  65. package/dist/template-manifest.d.ts +6 -14
  66. package/dist/template-manifest.js +0 -9
  67. package/dist/template-record.d.ts +3 -1
  68. package/dist/template-record.js +3 -1
  69. package/dist/topology.d.ts +15 -0
  70. package/dist/topology.js +60 -0
  71. package/dist/update.d.ts +57 -1
  72. package/dist/update.js +742 -13
  73. package/package.json +3 -4
  74. package/site-templates/aliases/hub.TEMPLATE-MANIFEST.json +2 -31
  75. package/site-templates/designs/minimalism/DESIGN.md +163 -297
  76. package/site-templates/designs/minimalism/LOOK.md +42 -0
  77. package/site-templates/designs/minimalism/design.yaml +167 -0
  78. package/site-templates/designs/standard/DESIGN.md +145 -149
  79. package/site-templates/designs/standard/LOOK.md +42 -0
  80. package/site-templates/designs/standard/design.yaml +72 -0
  81. package/site-templates/marketing-site/TEMPLATE-MANIFEST.json +2 -31
  82. package/site-templates/marketing-site/TEMPLATE-MANIFEST.md +1 -25
  83. package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.json +2 -31
  84. package/site-templates/marketing-site-free/TEMPLATE-MANIFEST.md +1 -25
  85. package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.json +2 -31
  86. package/site-templates/shapes/local-business-service/TEMPLATE-MANIFEST.md +1 -25
  87. package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.json +2 -31
  88. package/site-templates/shapes/organization-service/TEMPLATE-MANIFEST.md +1 -25
  89. package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.json +2 -31
  90. package/site-templates/shapes/person-service/TEMPLATE-MANIFEST.md +1 -25
  91. package/site-templates/shapes/person-service/content/_site.mdx +0 -26
  92. package/templates/.claude/rules/extending.md +3 -2
  93. package/templates/.env.example +11 -4
  94. package/templates/CLAUDE.md +1 -1
  95. package/templates/DESIGN.md +145 -149
  96. package/templates/README.md +15 -16
  97. package/templates/apps/api/.env.example +11 -4
  98. package/templates/apps/api/CLAUDE.md +6 -4
  99. package/templates/apps/api/src/lib/__mocks__/prisma.ts +15 -5
  100. package/templates/apps/mcp/CLAUDE.md +4 -2
  101. package/templates/apps/web/.env.example +10 -3
  102. package/templates/apps/web/CLAUDE.md +14 -3
  103. package/templates/apps/web/app/[locale]/layout.tsx +53 -50
  104. package/templates/apps/web/app/not-found.tsx +11 -11
  105. package/templates/apps/web/auth.ts +48 -35
  106. package/templates/apps/web/jest.config.cjs +5 -0
  107. package/templates/apps/web/lib/__tests__/hub-site-config.test.ts +179 -31
  108. package/templates/apps/web/lib/__tests__/library-fonts.test.ts +35 -0
  109. package/templates/apps/web/lib/__tests__/page-chrome-navigation.test.ts +71 -32
  110. package/templates/apps/web/lib/__tests__/page-chrome.test.ts +123 -26
  111. package/templates/apps/web/lib/__tests__/section-look.test.ts +150 -0
  112. package/templates/apps/web/lib/__tests__/site-theme.test.ts +81 -289
  113. package/templates/apps/web/lib/deck-page.ts +3 -10
  114. package/templates/apps/web/lib/deploy-fonts.ts +12 -0
  115. package/templates/apps/web/lib/hub-site-config.ts +97 -14
  116. package/templates/apps/web/lib/library-fonts.ts +41 -0
  117. package/templates/apps/web/lib/mcp-oauth.ts +11 -4
  118. package/templates/apps/web/lib/page-chrome.ts +52 -34
  119. package/templates/apps/web/lib/section-look.ts +28 -0
  120. package/templates/apps/web/lib/site-design.ts +205 -0
  121. package/templates/apps/web/lib/site-theme-head.ts +98 -13
  122. package/templates/apps/web/lib/site-theme.ts +40 -62
  123. package/templates/apps/web/messages/en.json +0 -6
  124. package/templates/apps/web/next.config.mjs +195 -6
  125. package/templates/apps/web/package.json +2 -0
  126. package/templates/apps/web/site-pages.config.tsx +4 -2
  127. package/templates/content/_site.mdx +0 -26
  128. package/templates/design.yaml +75 -0
  129. package/templates/project.yaml +14 -0
  130. package/versions.json +52 -51
  131. package/site-templates/marketing-site/DESIGN.md +0 -259
  132. package/site-templates/marketing-site-free/DESIGN.md +0 -259
  133. package/site-templates/saas-product/DESIGN.md +0 -259
  134. package/templates/apps/web/lib/__tests__/deck-page.test.ts +0 -288
  135. package/templates/apps/web/lib/__tests__/site-theme-head.test.ts +0 -70
  136. package/templates/apps/web/lib/site-chrome.ts +0 -46
  137. package/templates/apps/web/lib/site-fonts.ts +0 -15
@@ -1,9 +1,18 @@
1
- import { existsSync, readdirSync, readFileSync } from "node:fs";
1
+ import { existsSync, readdirSync, readFileSync, writeFileSync } from "node:fs";
2
+ import { createRequire } from "node:module";
2
3
  import { join } from "node:path";
3
4
  import { parse as parseYaml } from "yaml";
4
5
  import bundleAnalyzer from "@next/bundle-analyzer";
5
6
  import { withSentryConfig } from "@sentry/nextjs";
6
7
  import createNextIntlPlugin from "next-intl/plugin";
8
+ import { PHASE_PRODUCTION_BUILD } from "next/constants.js";
9
+ import {
10
+ apiBaseConfigured,
11
+ getApiBase,
12
+ isSafeTransport,
13
+ sendsSpokeKey,
14
+ siteConfig,
15
+ } from "@working-theory/api-client";
7
16
  import { DocsPathSchema, ServicesPathSchema, SiteConfigSchema } from "@working-theory/site-config/schema";
8
17
  import {
9
18
  legacyRedirects,
@@ -11,7 +20,14 @@ import {
11
20
  ROUTES,
12
21
  SERVICES_ROUTE,
13
22
  } from "@working-theory/templates/routes";
14
- import { assetImageConfigWarning, assetRemotePattern } from "@working-theory/validation";
23
+ import { compileDesignFonts, fontTakesEffect } from "@working-theory/theme";
24
+ import {
25
+ assetImageConfigWarning,
26
+ assetRemotePattern,
27
+ designSettingsSchema,
28
+ siteDesignSchema,
29
+ unquoteFamily,
30
+ } from "@working-theory/validation";
15
31
  import { parseStealth } from "@working-theory/web-i18n/stealth";
16
32
  import { withBotId } from "botid/next/config";
17
33
 
@@ -597,6 +613,173 @@ const sentryBuildOptions = {
597
613
  : {}),
598
614
  };
599
615
 
616
+ // ── #12473 D7 — a face outside the design library, built in at the next deploy ──
617
+ //
618
+ // On a hub-connected production build, the hub's design record is read once
619
+ // (5 s bound) and `lib/deploy-fonts.ts` is rewritten with one
620
+ // `next/font/google` call per family the record's worked-out look or its
621
+ // brand fonts source that `LIBRARY_FONTS` does not hold. Every other build,
622
+ // a failed or refused read, and a record naming no such family leave the
623
+ // committed file as it is; a build never fails because the hub is down. A
624
+ // site whose `lib/deploy-fonts.ts` predates this release gets nothing.
625
+
626
+ const DEPLOY_FONTS_FILE = "lib/deploy-fonts.ts";
627
+ const DEPLOY_FONTS_READ_MS = 5_000;
628
+ const DEPLOY_IDENTIFIER = /^[A-Z][A-Za-z0-9_]*$/;
629
+ const DEPLOY_SLUG = /^[a-z0-9-]+$/;
630
+ /** The design record's top-level members the site reads; any other is removed before the strict parse, as the render's read does. */
631
+ const DEPLOY_DESIGN_MEMBERS = ["version", "from", "changes", "settings", "chrome", "brand"];
632
+
633
+ /**
634
+ * next/font's own Google data: family → { weights, subsets }. A path inside
635
+ * `next`, so a release that moves it leaves every deploy face unbuilt (the
636
+ * read is inside the writer's `try`), never a failed build.
637
+ */
638
+ function googleFontData() {
639
+ return createRequire(import.meta.url)("next/dist/compiled/@next/font/dist/google/font-data.json");
640
+ }
641
+
642
+ /** Whether this build reads its hub, by the render's rule (`hubConnected()`). */
643
+ function hubConnectedBuild() {
644
+ return sendsSpokeKey() || (apiBaseConfigured() && isSafeTransport(getApiBase()));
645
+ }
646
+
647
+ /** The body's `design` parsed with #12470's schemas, as the render's read parses it, else `null`. */
648
+ function parsedDesign(design) {
649
+ if (typeof design !== "object" || design === null || Array.isArray(design)) return null;
650
+ const raw = design.record;
651
+ const record =
652
+ typeof raw === "object" && raw !== null && !Array.isArray(raw)
653
+ ? Object.fromEntries(DEPLOY_DESIGN_MEMBERS.filter((key) => Object.hasOwn(raw, key)).map((key) => [key, raw[key]]))
654
+ : raw;
655
+ const parsedRecord = siteDesignSchema.safeParse(record);
656
+ const parsedSettings = designSettingsSchema.nullable().safeParse(design.settings ?? null);
657
+ return parsedRecord.success && parsedSettings.success
658
+ ? { record: parsedRecord.data, settings: parsedSettings.data }
659
+ : null;
660
+ }
661
+
662
+ /**
663
+ * The faces outside the library a parsed design names, each as next/font's
664
+ * own data key, sorted and deduplicated. A family next/font cannot build
665
+ * without a `weight` (no variable weight) or with no `latin` subset is
666
+ * skipped with one warning naming its role, never the family (S9, S12).
667
+ */
668
+ function deployFamilies({ record, settings }, data, warn) {
669
+ const faces = settings ? compileDesignFonts(settings) : undefined;
670
+ const candidates = [
671
+ ...["display", "body"].flatMap((role) => (faces?.[role] ? [{ role, stack: faces[role].family }] : [])),
672
+ ...(record.brand?.fonts?.primary ? [{ role: "display", stack: record.brand.fonts.primary }] : []),
673
+ ...(record.brand?.fonts?.secondary ? [{ role: "body", stack: record.brand.fonts.secondary }] : []),
674
+ ];
675
+ const keys = new Map(Object.keys(data).map((key) => [key, key]));
676
+ const families = new Set();
677
+ for (const { role, stack } of candidates) {
678
+ if (fontTakesEffect(stack) !== "next-deploy") continue;
679
+ const family = unquoteFamily(stack.split(",")[0]);
680
+ const key = Object.hasOwn(data, family) ? keys.get(family) : undefined;
681
+ const entry = key === undefined ? undefined : data[key];
682
+ const buildable =
683
+ entry?.weights?.includes("variable") &&
684
+ entry?.subsets?.includes("latin") &&
685
+ DEPLOY_IDENTIFIER.test(key.replace(/ /g, "_")) &&
686
+ DEPLOY_SLUG.test(key.toLowerCase().replace(/ /g, "-"));
687
+ if (!buildable) {
688
+ warn(`[deploy-fonts] the ${role} font is not one next/font can build; it renders its fallback stack`);
689
+ continue;
690
+ }
691
+ families.add(key);
692
+ }
693
+ return [...families].sort();
694
+ }
695
+
696
+ /** `lib/deploy-fonts.ts` with one `next/font/google` call per family; each name already passed its check. */
697
+ function renderDeployFonts(families) {
698
+ const faces = families.map((family, index) => ({
699
+ family,
700
+ identifier: family.replace(/ /g, "_"),
701
+ variable: `--font-deploy-${family.toLowerCase().replace(/ /g, "-")}`,
702
+ local: `face${index}`,
703
+ // A fixed alias, so a Google family named like a global (`Map`) never shadows it.
704
+ alias: `deployFace${index}`,
705
+ }));
706
+ const calls = faces.map(
707
+ (face) =>
708
+ `const ${face.local} = ${face.alias}({ subsets: ${JSON.stringify(["latin"])}, variable: ${JSON.stringify(face.variable)}, display: "swap" });`,
709
+ );
710
+ const entries = faces.map(
711
+ (face) => ` [${JSON.stringify(face.family)}, { variable: ${JSON.stringify(face.variable)}, className: ${face.local}.variable }],`,
712
+ );
713
+ // Its own value, so no line of this config starts with `import` after the
714
+ // real imports: create-ailk adds the docs module's import after the last one.
715
+ const importLine = `import { ${faces.map((face) => `${face.identifier} as ${face.alias}`).join(", ")} } from "next/font/google";`;
716
+ return `// deploy-fonts.ts — the faces outside the design library a hub design record
717
+ // names, built in at the site's next production build (#12473 D7).
718
+ //
719
+ // WRITTEN AT BUILD by \`next.config.mjs\` from the hub's design record. Never
720
+ // hand-edit; the committed default is the empty map.
721
+
722
+ ${importLine}
723
+
724
+ ${calls.join("\n")}
725
+
726
+ /** A built face: the CSS variable its family is read through, and the class that declares it. */
727
+ export const DEPLOY_FACES: ReadonlyMap<string, { variable: string; className: string }> = new Map([
728
+ ${entries.join("\n")}
729
+ ]);
730
+ `;
731
+ }
732
+
733
+ /**
734
+ * Rewrite `lib/deploy-fonts.ts` for the faces outside the library the hub's
735
+ * design record names (#12473 D7). Only at `PHASE_PRODUCTION_BUILD` on a
736
+ * hub-connected site whose file exists; never throws. `deps` replaces the
737
+ * file, the read, next/font's data and the log, for its test.
738
+ */
739
+ export async function writeDeployFonts(phase, deps = {}) {
740
+ const {
741
+ file = join(process.cwd(), DEPLOY_FONTS_FILE),
742
+ connected = hubConnectedBuild,
743
+ read = () => siteConfig.get(),
744
+ fontData = googleFontData,
745
+ warn = (message) => console.warn(message),
746
+ timeoutMs = DEPLOY_FONTS_READ_MS,
747
+ } = deps;
748
+ if (phase !== PHASE_PRODUCTION_BUILD || !connected() || !existsSync(file)) return;
749
+ let timer;
750
+ try {
751
+ // S10, S14 — the writer stops waiting at the bound; the request itself
752
+ // cannot be aborted (api-client's `get` takes no signal).
753
+ const timeout = new Promise((_resolve, reject) => {
754
+ timer = setTimeout(() => reject(new Error("timed out")), timeoutMs);
755
+ timer.unref?.();
756
+ });
757
+ const res = await Promise.race([Promise.resolve().then(read), timeout]);
758
+ if (!res?.ok) throw new Error("refused");
759
+ const design = res.body?.design;
760
+ if (design === undefined || design === null) return;
761
+ const parsed = parsedDesign(design);
762
+ if (parsed === null) {
763
+ warn("[deploy-fonts] the hub's design record is unreadable; building no face outside the library");
764
+ return;
765
+ }
766
+ const families = deployFamilies(parsed, fontData(), warn);
767
+ if (families.length === 0) return;
768
+ // The file was checked before the read; check it again at the write, with
769
+ // no await between, so a file removed meanwhile is never created.
770
+ if (!existsSync(file)) return;
771
+ try {
772
+ writeFileSync(file, renderDeployFonts(families));
773
+ } catch {
774
+ warn("[deploy-fonts] lib/deploy-fonts.ts could not be written; building no face outside the library");
775
+ }
776
+ } catch {
777
+ warn("[deploy-fonts] the hub's design record could not be read; building no face outside the library");
778
+ } finally {
779
+ clearTimeout(timer);
780
+ }
781
+ }
782
+
600
783
  // #9889 D6 — `withBotId` adds BotID's two rewrites (the challenge script and
601
784
  // its proxy) and one header rule on its own proxy prefix, which middleware.ts
602
785
  // keeps out of its matcher. It is not gated on `AILK_BOOKING_BOT_CHECK`: this
@@ -604,7 +787,13 @@ const sentryBuildOptions = {
604
787
  // answers nothing. It sits directly inside Sentry so the substrings
605
788
  // (the MDX wrap and the next-intl wrap, quoted nowhere else) that create-ailk
606
789
  // edits stay intact.
607
- export default withSentryConfig(
608
- withBotId(withBundleAnalyzer(withNextIntl(nextConfig))),
609
- sentryBuildOptions,
610
- );
790
+ //
791
+ // #12473 D7 — a function of the phase, so a production build writes the
792
+ // deploy faces before Next reads the config's modules.
793
+ export default async function config(phase) {
794
+ await writeDeployFonts(phase);
795
+ return withSentryConfig(
796
+ withBotId(withBundleAnalyzer(withNextIntl(nextConfig))),
797
+ sentryBuildOptions,
798
+ );
799
+ }
@@ -15,6 +15,8 @@
15
15
  "test:watch": "jest --watch"
16
16
  },
17
17
  "dependencies": {
18
+ "@fontsource-variable/figtree": "5.3.0",
19
+ "@fontsource-variable/newsreader": "5.3.0",
18
20
  "@prisma/adapter-pg": "^7.8.0",
19
21
  "@sentry/nextjs": "^10.58.0",
20
22
  "@working-theory/account": "workspace:*",
@@ -33,8 +33,8 @@ import {
33
33
  } from "./lib/pricing-page";
34
34
  import { ApiError, forwardedCookieInit, unwrapApiResult } from "./lib/server-api";
35
35
  import { SERVICES_PATH, SERVICES_ROUTE, toPublicServicesHref } from "./lib/services-path";
36
- import { siteChrome } from "./lib/site-chrome";
37
36
  import { readSiteContactEmail } from "./lib/site-contact-email";
37
+ import { BASE_SITE_LAYOUT } from "./lib/site-design";
38
38
  import { siteLogomarkAsset, siteWordmarkAsset } from "./lib/site-logo";
39
39
  import { readSession } from "./lib/topology.generated";
40
40
  import { takeVisitorLimit } from "./src/lib/rate-limit";
@@ -84,7 +84,9 @@ export const site = {
84
84
  SERVICES_PATH,
85
85
  SERVICES_ROUTE,
86
86
  toPublicServicesHref,
87
- siteChrome,
87
+ // #12477 D1 — the base look's knobs: only the home's floor, beneath
88
+ // `resolveHomeChrome`'s record `knobs`.
89
+ siteChrome: BASE_SITE_LAYOUT,
88
90
  siteLogomarkAsset,
89
91
  siteWordmarkAsset,
90
92
  takeVisitorLimit,
@@ -17,32 +17,6 @@ siteIdentity:
17
17
  sameAs: []
18
18
  analytics:
19
19
  vercelAnalytics: false
20
- theme:
21
- corners: square
22
- eyebrowCase: sentence
23
- placeholders: fill
24
- checkmarks: plain
25
- colors:
26
- light:
27
- bg: "#ffffff"
28
- bgMuted: "#ffffff"
29
- surface: "#ffffff"
30
- border: "#000000"
31
- text: "#000000"
32
- textMuted: "#333333"
33
- primary: "#000000"
34
- primaryFg: "#ffffff"
35
- accent: "#000000"
36
- dark:
37
- bg: "#000000"
38
- bgMuted: "#000000"
39
- surface: "#000000"
40
- border: "#ffffff"
41
- text: "#ffffff"
42
- textMuted: "#cccccc"
43
- primary: "#ffffff"
44
- primaryFg: "#000000"
45
- accent: "#ffffff"
46
20
  ---
47
21
 
48
22
  <!--
@@ -0,0 +1,75 @@
1
+ # Source template: _base (the AI Launch Kit base scaffold)
2
+ # Design: standard
3
+ # Version: create-ailk {{CREATE_AILK_VERSION}}
4
+ name: Standard
5
+ version: 1
6
+ description: "The standard design — the black-on-white foundation any shape wears by default: full navigation, a multi-column footer, the document-scroll home."
7
+ colors:
8
+ bg: "#ffffff"
9
+ fg: "#000000"
10
+ surface: "#ffffff"
11
+ surface-secondary: "#ffffff"
12
+ border: "#000000"
13
+ text-muted: "#333333"
14
+ brand: "#000000"
15
+ fg-on-brand: "#ffffff"
16
+ accent: "#000000"
17
+ bg-dark: "#000000"
18
+ fg-dark: "#ffffff"
19
+ border-dark: "#ffffff"
20
+ brand-dark: "#ffffff"
21
+ text-muted-dark: "#cccccc"
22
+ surface-dark: "#000000"
23
+ surface-secondary-dark: "#000000"
24
+ fg-on-brand-dark: "#000000"
25
+ accent-dark: "#ffffff"
26
+ treatments:
27
+ corners: square
28
+ eyebrowCase: sentence
29
+ placeholders: fill
30
+ checkmarks: plain
31
+ layout:
32
+ nav: full
33
+ footer: columns
34
+ announcementBanner: false
35
+ home: default
36
+ copy:
37
+ density: standard
38
+ typography:
39
+ display:
40
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
41
+ fontSize: "3.5rem"
42
+ fontWeight: 700
43
+ lineHeight: 1.1
44
+ letterSpacing: "normal"
45
+ heading-section:
46
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
47
+ fontSize: "3rem"
48
+ fontWeight: 700
49
+ lineHeight: 1.1
50
+ letterSpacing: "normal"
51
+ heading-item:
52
+ fontSize: "2rem"
53
+ fontWeight: 700
54
+ lineHeight: 1.375
55
+ letterSpacing: "normal"
56
+ body:
57
+ fontFamily: "system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, sans-serif"
58
+ fontSize: "1.125rem"
59
+ fontWeight: 400
60
+ lineHeight: 1.5
61
+ eyebrow:
62
+ fontSize: "0.875rem"
63
+ fontWeight: 600
64
+ lineHeight: 1.4
65
+ letterSpacing: "0.05em"
66
+ rounded:
67
+ button: "0.5rem"
68
+ card: "0.75rem"
69
+ spacing:
70
+ section: "7rem"
71
+ section-mobile: "4rem"
72
+ card: "1.5rem"
73
+ grid: "1.5rem"
74
+ container: "1280px"
75
+ measure: "36rem"
@@ -59,6 +59,20 @@ hard_floors:
59
59
  - kind: pricing
60
60
  - kind: stripe_live_mode
61
61
 
62
+ required_secrets:
63
+ # Settings a person must set by hand. The harness's setup steps list each
64
+ # one; an entry with no deployment field is shown as a GitHub Actions
65
+ # secret, so its description names where it must really be set.
66
+ - name: AILK_ADMIN_URL
67
+ description: >-
68
+ The Admin's https address. Set it on the hub's API and web deployments
69
+ (their environment variables), not only as a GitHub Actions secret.
70
+ Required when the Admin is not at admin.<FRONTEND_URL host>, for example
71
+ a hub at account.example.com: otherwise every invitation link names an
72
+ address that does not exist, and the Admin's Workforce page refuses to
73
+ send. Use the production Admin's address, never a preview
74
+ deployment's. A spoke has no Admin and leaves it unset.
75
+
62
76
  artifacts:
63
77
  # Where planning artifacts live in this repo. Default layout matches AILK.
64
78
  decisions: docs/internal/decisions
package/versions.json CHANGED
@@ -1,69 +1,70 @@
1
1
  {
2
- "@working-theory/account": "0.81.0",
3
- "@working-theory/admin-ui": "0.81.0",
4
- "@working-theory/aeo": "0.81.0",
5
- "@working-theory/agent-context": "0.81.0",
2
+ "@working-theory/account": "0.82.0",
3
+ "@working-theory/admin-ui": "0.82.0",
4
+ "@working-theory/aeo": "0.82.0",
5
+ "@working-theory/agent-context": "0.82.0",
6
6
  "@working-theory/agent-contract": "0.1.0",
7
7
  "@working-theory/agent-memory": "0.0.0",
8
8
  "@working-theory/ai": "0.1.0",
9
- "@working-theory/analytics": "0.81.0",
10
- "@working-theory/api": "0.81.0",
11
- "@working-theory/api-client": "0.81.0",
12
- "@working-theory/auth": "0.81.0",
9
+ "@working-theory/analytics": "0.82.0",
10
+ "@working-theory/api": "0.82.0",
11
+ "@working-theory/api-client": "0.82.0",
12
+ "@working-theory/auth": "0.82.0",
13
13
  "@working-theory/cda-filesystem": "0.0.0",
14
- "@working-theory/cli": "0.81.0",
15
- "@working-theory/common": "0.81.0",
14
+ "@working-theory/cli": "0.82.0",
15
+ "@working-theory/common": "0.82.0",
16
16
  "@working-theory/consent": "0.1.0",
17
- "@working-theory/content-adapters": "0.81.0",
18
- "@working-theory/content-projection": "0.81.0",
19
- "@working-theory/email": "0.81.0",
17
+ "@working-theory/content-adapters": "0.82.0",
18
+ "@working-theory/content-projection": "0.82.0",
19
+ "@working-theory/email": "0.82.0",
20
20
  "@working-theory/env": "0.0.0",
21
- "@working-theory/eslint-config": "0.81.0",
22
- "@working-theory/fumadocs-schema": "0.81.0",
23
- "@working-theory/ids": "0.24.0",
24
- "@working-theory/jsonld": "0.81.0",
25
- "@working-theory/license": "0.81.0",
26
- "@working-theory/mcp-server": "0.81.0",
27
- "@working-theory/metadata": "0.81.0",
28
- "@working-theory/observability": "0.81.0",
29
- "@working-theory/page-renderer": "0.81.0",
21
+ "@working-theory/eslint-config": "0.82.0",
22
+ "@working-theory/fumadocs-schema": "0.82.0",
23
+ "@working-theory/ids": "0.25.0",
24
+ "@working-theory/jsonld": "0.82.0",
25
+ "@working-theory/license": "0.82.0",
26
+ "@working-theory/mcp-server": "0.82.0",
27
+ "@working-theory/metadata": "0.82.0",
28
+ "@working-theory/observability": "0.82.0",
29
+ "@working-theory/page-renderer": "0.82.0",
30
30
  "@working-theory/plugin-mcp": "0.1.3",
31
- "@working-theory/schema": "0.81.0",
32
- "@working-theory/schema-pack-registry": "0.81.0",
33
- "@working-theory/schema-validator": "0.81.0",
34
- "@working-theory/sections-registry": "0.81.0",
35
- "@working-theory/site-config": "0.81.0",
36
- "@working-theory/site-pages": "0.81.0",
37
- "@working-theory/spoke-checkout": "0.7.38",
38
- "@working-theory/stripe-client": "0.81.0",
39
- "@working-theory/templates": "0.81.0",
40
- "@working-theory/theme": "0.81.0",
41
- "@working-theory/ui": "0.81.0",
42
- "@working-theory/validation": "0.81.0",
43
- "@working-theory/web-i18n": "0.81.0",
44
- "@working-theory/admin": "0.29.0",
45
- "@working-theory/api-commerce": "0.2.16",
46
- "@working-theory/api-content-write": "0.19.0",
47
- "@working-theory/api-hub": "0.10.1",
48
- "@working-theory/api-multi-tenant": "0.6.1",
49
- "@working-theory/api-scheduling": "0.6.21",
50
- "@working-theory/api-signal-collectors": "0.10.0",
51
- "@working-theory/api-workspace": "0.21.0",
31
+ "@working-theory/schema": "0.82.0",
32
+ "@working-theory/schema-pack-registry": "0.82.0",
33
+ "@working-theory/schema-validator": "0.82.0",
34
+ "@working-theory/sections-registry": "0.82.0",
35
+ "@working-theory/site-config": "0.82.0",
36
+ "@working-theory/site-pages": "0.82.0",
37
+ "@working-theory/spoke-checkout": "0.7.39",
38
+ "@working-theory/stripe-client": "0.82.0",
39
+ "@working-theory/templates": "0.82.0",
40
+ "@working-theory/theme": "0.82.0",
41
+ "@working-theory/ui": "0.82.0",
42
+ "@working-theory/validation": "0.82.0",
43
+ "@working-theory/web-i18n": "0.82.0",
44
+ "@working-theory/admin": "0.30.0",
45
+ "@working-theory/api-commerce": "0.2.17",
46
+ "@working-theory/api-content-write": "0.20.0",
47
+ "@working-theory/api-hub": "0.10.2",
48
+ "@working-theory/api-multi-tenant": "0.7.0",
49
+ "@working-theory/api-scheduling": "0.6.22",
50
+ "@working-theory/api-signal-collectors": "0.10.1",
51
+ "@working-theory/api-workspace": "0.22.0",
52
52
  "@working-theory/billing-client": "0.0.0",
53
53
  "@working-theory/branding": "0.0.0",
54
54
  "@working-theory/license-client": "0.0.0",
55
55
  "@working-theory/license-manifest": "0.0.0",
56
- "@working-theory/mcp-scheduling": "0.4.23",
57
- "@working-theory/mcp-signal-collectors": "0.2.36",
58
- "@working-theory/mcp-workspace": "0.18.0",
56
+ "@working-theory/look-catalogue": "0.1.0",
57
+ "@working-theory/mcp-scheduling": "0.4.24",
58
+ "@working-theory/mcp-signal-collectors": "0.2.37",
59
+ "@working-theory/mcp-workspace": "0.19.0",
59
60
  "@working-theory/partner-session": "0.0.0",
60
61
  "@working-theory/preview-protocol": "0.0.0",
61
- "@working-theory/ui-commerce": "0.81.0",
62
- "@working-theory/ui-docs-blog": "0.81.0",
63
- "@working-theory/ui-scheduling": "0.81.0",
64
- "@working-theory/ui-signal-collectors": "0.81.0",
62
+ "@working-theory/ui-commerce": "0.82.0",
63
+ "@working-theory/ui-docs-blog": "0.82.0",
64
+ "@working-theory/ui-scheduling": "0.82.0",
65
+ "@working-theory/ui-signal-collectors": "0.82.0",
65
66
  "@working-theory/web": "0.0.0",
66
67
  "@working-theory/app-api": "1.0.0",
67
68
  "@working-theory/mcp": "0.0.0",
68
- "@working-theory/database": "0.81.0"
69
+ "@working-theory/database": "0.82.0"
69
70
  }