create-ailk 0.46.2 → 0.46.4

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.
@@ -3,7 +3,7 @@
3
3
  * title — what the bare header's back arrow walks up through
4
4
  * (operator handoff 2026-11-09, `lib/profile-back-link.ts`).
5
5
  *
6
- * Two sources, each one this app already serves from:
6
+ * Three sources, each one this app already serves from:
7
7
  * 1. Every content page the sitemap lists, at the path it lists it at
8
8
  * (`app/sitemap.xml/route.ts`: `listPages` per type, `listedPath` over
9
9
  * the site's listing, docs rows and `ThankYouPage` left out). Title =
@@ -17,6 +17,9 @@
17
17
  * optional catch-all serves its own index only; a required catch-all,
18
18
  * and a route of dynamic segments alone (the content catch-all), serve
19
19
  * nothing.
20
+ * 3. Every magnet address the site serves in the locale (#12204 D8,
21
+ * `lib/magnet-addresses.ts`'s `servedAddresses`), at its address. Title =
22
+ * the magnet's title ("" for one the hub does not list).
20
23
  * A route with seed content (a `ROUTES` row with a `contentPath`) counts only
21
24
  * through source 1, so a scaffold that dropped that surface's content never
22
25
  * gets a link to a missing page. The layout adds the nav and footer paths
@@ -105,6 +108,29 @@ function readSafely(read: () => string[]): string[] {
105
108
  }
106
109
  }
107
110
 
111
+ /**
112
+ * The static first segment of every page route the app builds, from the same
113
+ * two sources (#12204 D5 a): what a magnet address may not shadow. No
114
+ * content-shape filter — a seed-content route holds its segment whether or
115
+ * not its content is there. Dynamic and `_private` first segments are left
116
+ * out.
117
+ */
118
+ export function staticFirstSegments(): string[] {
119
+ const root = process.cwd();
120
+ const routes = new Set([
121
+ ...readSafely(() => pageFileRoutes(join(root, "app"))),
122
+ ...readSafely(() => manifestRoutes(root)),
123
+ ]);
124
+ const firsts = new Set<string>();
125
+ for (const route of routes) {
126
+ const segments = route.split("/").filter(Boolean);
127
+ if (segments[0] === LOCALE_SEGMENT) segments.shift();
128
+ const first = segments[0];
129
+ if (first !== undefined && !isDynamic(first) && !first.startsWith("_")) firsts.add(first);
130
+ }
131
+ return [...firsts];
132
+ }
133
+
108
134
  /**
109
135
  * The page routes the app builds, as locale-less segments: an optional
110
136
  * catch-all's index kept, a required catch-all, a route of dynamic segments
@@ -171,6 +197,17 @@ async function readServedSet(locale: string): Promise<ServedSet> {
171
197
  // No adapter: the built page routes alone.
172
198
  }
173
199
 
200
+ try {
201
+ // Loaded on first call: `magnet-addresses` reads this module's
202
+ // `staticFirstSegments`, so a static import would be a cycle.
203
+ const { servedAddresses } = await import("./magnet-addresses");
204
+ for (const item of await servedAddresses(locale)) {
205
+ if (!pages.has(item.path)) pages.set(item.path, item.title);
206
+ }
207
+ } catch {
208
+ // No address table: the other two sources alone.
209
+ }
210
+
174
211
  return { pages, dynamic };
175
212
  }
176
213
 
@@ -142,7 +142,13 @@
142
142
  "oneTime": "{amount} one-time",
143
143
  "billedYearly": "billed {amount} yearly",
144
144
  "withRequired": "{plan} + {required}",
145
- "depositNote": "{deposit} deposit due today; the balance is invoiced."
145
+ "depositNote": "{deposit} deposit due today; the balance is invoiced.",
146
+ "custom": "Custom",
147
+ "perMonth": "/mo",
148
+ "perYear": "/yr",
149
+ "unitWithLabel": "{period}/{label}",
150
+ "savings": "Save {percent}% billed annually",
151
+ "regularPrice": "Regular price {regular}, now {current}"
146
152
  },
147
153
  "purchasePolicy": {
148
154
  "heading": "Purchase Policy",
@@ -26,6 +26,8 @@ import {
26
26
  pagePlans,
27
27
  PRICING_HUB_SLUG,
28
28
  pricingPageCard,
29
+ pricingPagesHeading,
30
+ pricingPagesSectionEnabled,
29
31
  pricingSections,
30
32
  pricingSectionSlots,
31
33
  } from "./lib/pricing-page";
@@ -59,6 +61,11 @@ export const site = {
59
61
  entryAt: async (...args) => (await import("./lib/listings")).listingExtension.entryAt(...args),
60
62
  entryMetadataAt: async (...args) => (await import("./lib/listings")).listingExtension.entryMetadataAt(...args),
61
63
  },
64
+ // #12204 D6 — loaded on first call, as the listing extension is.
65
+ magnetAddress: {
66
+ pageAt: async (...args) => (await import("./lib/magnet-addresses")).magnetPageAt(...args),
67
+ metadataAt: async (...args) => (await import("./lib/magnet-addresses")).magnetMetadataAt(...args),
68
+ },
62
69
  MARKETING_PAGES,
63
70
  isShownLookupKey,
64
71
  offeringsCheckoutHref,
@@ -66,6 +73,8 @@ export const site = {
66
73
  offeringPricingPages,
67
74
  pagePlans,
68
75
  pricingPageCard,
76
+ pricingPagesHeading,
77
+ pricingPagesSectionEnabled,
69
78
  pricingSections,
70
79
  pricingSectionSlots,
71
80
  PRICING_HUB_SLUG,
package/versions.json CHANGED
@@ -1,69 +1,69 @@
1
1
  {
2
- "@working-theory/account": "0.76.0",
3
- "@working-theory/admin-ui": "0.76.0",
4
- "@working-theory/aeo": "0.76.0",
5
- "@working-theory/agent-context": "0.76.0",
2
+ "@working-theory/account": "0.78.0",
3
+ "@working-theory/admin-ui": "0.78.0",
4
+ "@working-theory/aeo": "0.78.0",
5
+ "@working-theory/agent-context": "0.78.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.76.0",
10
- "@working-theory/api": "0.76.0",
11
- "@working-theory/api-client": "0.76.0",
12
- "@working-theory/auth": "0.76.0",
9
+ "@working-theory/analytics": "0.78.0",
10
+ "@working-theory/api": "0.78.0",
11
+ "@working-theory/api-client": "0.78.0",
12
+ "@working-theory/auth": "0.78.0",
13
13
  "@working-theory/cda-filesystem": "0.0.0",
14
- "@working-theory/cli": "0.76.0",
15
- "@working-theory/common": "0.76.0",
14
+ "@working-theory/cli": "0.78.0",
15
+ "@working-theory/common": "0.78.0",
16
16
  "@working-theory/consent": "0.1.0",
17
- "@working-theory/content-adapters": "0.76.0",
18
- "@working-theory/content-projection": "0.76.0",
19
- "@working-theory/email": "0.76.0",
17
+ "@working-theory/content-adapters": "0.78.0",
18
+ "@working-theory/content-projection": "0.78.0",
19
+ "@working-theory/email": "0.78.0",
20
20
  "@working-theory/env": "0.0.0",
21
- "@working-theory/eslint-config": "0.76.0",
22
- "@working-theory/fumadocs-schema": "0.76.0",
21
+ "@working-theory/eslint-config": "0.78.0",
22
+ "@working-theory/fumadocs-schema": "0.78.0",
23
23
  "@working-theory/ids": "0.23.0",
24
- "@working-theory/jsonld": "0.76.0",
25
- "@working-theory/license": "0.76.0",
26
- "@working-theory/mcp-server": "0.76.0",
27
- "@working-theory/metadata": "0.76.0",
28
- "@working-theory/observability": "0.76.0",
29
- "@working-theory/page-renderer": "0.76.0",
24
+ "@working-theory/jsonld": "0.78.0",
25
+ "@working-theory/license": "0.78.0",
26
+ "@working-theory/mcp-server": "0.78.0",
27
+ "@working-theory/metadata": "0.78.0",
28
+ "@working-theory/observability": "0.78.0",
29
+ "@working-theory/page-renderer": "0.78.0",
30
30
  "@working-theory/plugin-mcp": "0.1.3",
31
- "@working-theory/schema": "0.76.0",
32
- "@working-theory/schema-pack-registry": "0.76.0",
33
- "@working-theory/schema-validator": "0.76.0",
34
- "@working-theory/sections-registry": "0.76.0",
35
- "@working-theory/site-config": "0.76.0",
36
- "@working-theory/site-pages": "0.76.0",
37
- "@working-theory/spoke-checkout": "0.7.32",
38
- "@working-theory/stripe-client": "0.76.0",
39
- "@working-theory/templates": "0.76.0",
40
- "@working-theory/theme": "0.76.0",
41
- "@working-theory/ui": "0.76.0",
42
- "@working-theory/validation": "0.76.0",
43
- "@working-theory/web-i18n": "0.76.0",
44
- "@working-theory/admin": "0.26.0",
45
- "@working-theory/api-commerce": "0.2.10",
46
- "@working-theory/api-content-write": "0.16.2",
47
- "@working-theory/api-hub": "0.9.0",
48
- "@working-theory/api-multi-tenant": "0.5.2",
49
- "@working-theory/api-scheduling": "0.6.15",
50
- "@working-theory/api-signal-collectors": "0.7.5",
51
- "@working-theory/api-workspace": "0.18.2",
31
+ "@working-theory/schema": "0.78.0",
32
+ "@working-theory/schema-pack-registry": "0.78.0",
33
+ "@working-theory/schema-validator": "0.78.0",
34
+ "@working-theory/sections-registry": "0.78.0",
35
+ "@working-theory/site-config": "0.78.0",
36
+ "@working-theory/site-pages": "0.78.0",
37
+ "@working-theory/spoke-checkout": "0.7.35",
38
+ "@working-theory/stripe-client": "0.78.0",
39
+ "@working-theory/templates": "0.78.0",
40
+ "@working-theory/theme": "0.78.0",
41
+ "@working-theory/ui": "0.78.0",
42
+ "@working-theory/validation": "0.78.0",
43
+ "@working-theory/web-i18n": "0.78.0",
44
+ "@working-theory/admin": "0.26.3",
45
+ "@working-theory/api-commerce": "0.2.13",
46
+ "@working-theory/api-content-write": "0.18.0",
47
+ "@working-theory/api-hub": "0.9.3",
48
+ "@working-theory/api-multi-tenant": "0.5.5",
49
+ "@working-theory/api-scheduling": "0.6.18",
50
+ "@working-theory/api-signal-collectors": "0.8.2",
51
+ "@working-theory/api-workspace": "0.18.5",
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.17",
57
- "@working-theory/mcp-signal-collectors": "0.2.30",
58
- "@working-theory/mcp-workspace": "0.16.2",
56
+ "@working-theory/mcp-scheduling": "0.4.20",
57
+ "@working-theory/mcp-signal-collectors": "0.2.33",
58
+ "@working-theory/mcp-workspace": "0.16.5",
59
59
  "@working-theory/partner-session": "0.0.0",
60
60
  "@working-theory/preview-protocol": "0.0.0",
61
- "@working-theory/ui-commerce": "0.76.0",
62
- "@working-theory/ui-docs-blog": "0.76.0",
63
- "@working-theory/ui-scheduling": "0.76.0",
64
- "@working-theory/ui-signal-collectors": "0.76.0",
61
+ "@working-theory/ui-commerce": "0.78.0",
62
+ "@working-theory/ui-docs-blog": "0.78.0",
63
+ "@working-theory/ui-scheduling": "0.78.0",
64
+ "@working-theory/ui-signal-collectors": "0.78.0",
65
65
  "@working-theory/web": "0.0.0",
66
66
  "@working-theory/app-api": "1.0.0",
67
67
  "@working-theory/mcp": "0.0.0",
68
- "@working-theory/database": "0.76.0"
68
+ "@working-theory/database": "0.78.0"
69
69
  }