create-ailk 0.11.5 → 0.12.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 (76) hide show
  1. package/component-catalog.json +35 -2
  2. package/component-catalog.md +9 -6
  3. package/dist/add-module.js +13 -0
  4. package/dist/module-architecture.d.ts +8 -0
  5. package/dist/module-architecture.js +33 -0
  6. package/dist/paid-sections.d.ts +23 -0
  7. package/dist/paid-sections.js +119 -0
  8. package/dist/programmatic.js +8 -0
  9. package/package.json +3 -3
  10. package/templates/.env.example +69 -3
  11. package/templates/apps/api/.env.example +22 -0
  12. package/templates/apps/api/CLAUDE.md +19 -7
  13. package/templates/apps/api/package.json +1 -0
  14. package/templates/apps/api/src/bin/spokes.ts +137 -0
  15. package/templates/apps/api/src/config/__tests__/hub-require-spoke-key.test.ts +96 -0
  16. package/templates/apps/api/src/config/index.ts +97 -0
  17. package/templates/apps/api/src/lib/__mocks__/prisma.ts +35 -0
  18. package/templates/apps/api/src/lib/__tests__/spoke-store.test.ts +152 -0
  19. package/templates/apps/api/src/lib/spoke-store.ts +131 -0
  20. package/templates/apps/api/src/routes/leads/__tests__/spoke.test.ts +331 -0
  21. package/templates/apps/api/src/routes/leads/index.ts +33 -3
  22. package/templates/apps/api/src/routes/project-listings/__tests__/directory.test.ts +528 -0
  23. package/templates/apps/api/src/routes/project-listings/__tests__/site-answers.test.ts +204 -0
  24. package/templates/apps/api/src/routes/project-listings/index.ts +14 -2
  25. package/templates/apps/api/src/routes/project-listings/public.ts +42 -1
  26. package/templates/apps/api/src/routes/project-listings/submit.ts +3 -0
  27. package/templates/apps/api/src/routes/webhooks/index.ts +29 -0
  28. package/templates/apps/api/src/server.ts +48 -0
  29. package/templates/apps/api/src/services/__tests__/default-tenant.test.ts +147 -0
  30. package/templates/apps/api/src/services/__tests__/slack-notify.test.ts +70 -0
  31. package/templates/apps/api/src/services/__tests__/spoke-resolution.test.ts +374 -0
  32. package/templates/apps/api/src/services/default-tenant.ts +51 -28
  33. package/templates/apps/api/src/services/deliverable-fulfillment.ts +89 -3
  34. package/templates/apps/api/src/services/lead-routing.ts +13 -1
  35. package/templates/apps/api/src/services/project-listings.ts +209 -18
  36. package/templates/apps/api/src/services/public-site-resolver.ts +149 -28
  37. package/templates/apps/api/src/services/slack-notify.ts +54 -3
  38. package/templates/apps/web/.env.example +14 -0
  39. package/templates/apps/web/app/[locale]/[slug]/[detail]/__tests__/page.test.tsx +137 -0
  40. package/templates/apps/web/app/[locale]/[slug]/[detail]/page.tsx +60 -20
  41. package/templates/apps/web/app/[locale]/careers/[slug]/page.tsx +5 -16
  42. package/templates/apps/web/app/[locale]/careers/__tests__/page-renderer-migration.test.tsx +8 -0
  43. package/templates/apps/web/app/[locale]/case-studies/[slug]/page.tsx +5 -16
  44. package/templates/apps/web/app/[locale]/case-studies/__tests__/page-renderer-migration.test.tsx +8 -0
  45. package/templates/apps/web/app/[locale]/events/[slug]/page.tsx +5 -19
  46. package/templates/apps/web/app/[locale]/events/__tests__/page-renderer-migration.test.tsx +8 -0
  47. package/templates/apps/web/app/[locale]/integrations/[slug]/page.tsx +5 -14
  48. package/templates/apps/web/app/[locale]/integrations/__tests__/page-renderer-migration.test.tsx +8 -0
  49. package/templates/apps/web/app/[locale]/layout.tsx +4 -0
  50. package/templates/apps/web/app/[locale]/partners/[slug]/page.tsx +5 -16
  51. package/templates/apps/web/app/[locale]/partners/__tests__/page-renderer-migration.test.tsx +8 -0
  52. package/templates/apps/web/app/[locale]/portfolio/[slug]/page.tsx +4 -7
  53. package/templates/apps/web/app/[locale]/products/[slug]/page.tsx +5 -14
  54. package/templates/apps/web/app/[locale]/products/__tests__/page-renderer-migration.test.tsx +8 -0
  55. package/templates/apps/web/app/[locale]/purchase/__tests__/module-scope.test.ts +2 -2
  56. package/templates/apps/web/app/[locale]/resources/[slug]/page.tsx +5 -22
  57. package/templates/apps/web/app/[locale]/resources/__tests__/page-renderer-migration.test.tsx +8 -0
  58. package/templates/apps/web/app/[locale]/services/[slug]/page.tsx +5 -14
  59. package/templates/apps/web/app/[locale]/services/__tests__/page-renderer-migration.test.tsx +8 -0
  60. package/templates/apps/web/jest.config.cjs +1 -1
  61. package/templates/apps/web/lib/__tests__/listings.test.tsx +352 -0
  62. package/templates/apps/web/lib/listings.tsx +472 -0
  63. package/templates/apps/web/lib/paid-section-contracts.ts +22 -0
  64. package/templates/apps/web/lib/paid-sections.generated.ts +16 -0
  65. package/templates/apps/web/messages/en.json +10 -0
  66. package/templates/apps/web/src/lib/__tests__/commerce-sections.test.ts +57 -0
  67. package/templates/apps/web/src/lib/commerce-sections.ts +33 -71
  68. package/templates/database/CHANGELOG.md +24 -0
  69. package/templates/database/__tests__/spoke-registry.db.test.ts +191 -0
  70. package/templates/database/auth/schema.prisma +31 -0
  71. package/templates/database/config/schema.prisma +26 -0
  72. package/templates/database/inbox/schema.prisma +21 -0
  73. package/templates/database/migrations/20261003120000_spoke_registry/migration.sql +80 -0
  74. package/templates/database/migrations/20261003130000_scheduling_connection/migration.sql +49 -0
  75. package/templates/database/package.json +1 -1
  76. package/versions.json +34 -34
package/versions.json CHANGED
@@ -1,52 +1,52 @@
1
1
  {
2
- "@working-theory/admin-ui": "0.33.0",
3
- "@working-theory/aeo": "0.33.0",
4
- "@working-theory/agent-context": "0.33.0",
2
+ "@working-theory/admin-ui": "0.34.0",
3
+ "@working-theory/aeo": "0.34.0",
4
+ "@working-theory/agent-context": "0.34.0",
5
5
  "@working-theory/agent-contract": "0.1.0",
6
6
  "@working-theory/agent-memory": "0.0.0",
7
7
  "@working-theory/ai": "0.1.0",
8
- "@working-theory/analytics": "0.33.0",
9
- "@working-theory/api-client": "0.33.0",
8
+ "@working-theory/analytics": "0.34.0",
9
+ "@working-theory/api-client": "0.34.0",
10
10
  "@working-theory/cda-filesystem": "0.0.0",
11
- "@working-theory/cli": "0.33.0",
12
- "@working-theory/common": "0.33.0",
11
+ "@working-theory/cli": "0.34.0",
12
+ "@working-theory/common": "0.34.0",
13
13
  "@working-theory/consent": "0.1.0",
14
- "@working-theory/content-adapters": "0.33.0",
15
- "@working-theory/content-projection": "0.33.0",
16
- "@working-theory/email": "0.33.0",
14
+ "@working-theory/content-adapters": "0.34.0",
15
+ "@working-theory/content-projection": "0.34.0",
16
+ "@working-theory/email": "0.34.0",
17
17
  "@working-theory/env": "0.0.0",
18
- "@working-theory/eslint-config": "0.33.0",
19
- "@working-theory/fumadocs-schema": "0.33.0",
20
- "@working-theory/ids": "0.8.0",
21
- "@working-theory/jsonld": "0.33.0",
22
- "@working-theory/license": "0.33.0",
23
- "@working-theory/metadata": "0.33.0",
24
- "@working-theory/observability": "0.33.0",
25
- "@working-theory/page-renderer": "0.33.0",
18
+ "@working-theory/eslint-config": "0.34.0",
19
+ "@working-theory/fumadocs-schema": "0.34.0",
20
+ "@working-theory/ids": "0.9.0",
21
+ "@working-theory/jsonld": "0.34.0",
22
+ "@working-theory/license": "0.34.0",
23
+ "@working-theory/metadata": "0.34.0",
24
+ "@working-theory/observability": "0.34.0",
25
+ "@working-theory/page-renderer": "0.34.0",
26
26
  "@working-theory/plugin-mcp": "0.1.1",
27
- "@working-theory/schema": "0.33.0",
28
- "@working-theory/schema-pack-registry": "0.33.0",
29
- "@working-theory/schema-validator": "0.33.0",
30
- "@working-theory/sections-registry": "0.33.0",
31
- "@working-theory/site-config": "0.33.0",
32
- "@working-theory/stripe-client": "0.33.0",
33
- "@working-theory/templates": "0.33.0",
34
- "@working-theory/theme": "0.33.0",
35
- "@working-theory/ui": "0.33.0",
36
- "@working-theory/validation": "0.33.0",
37
- "@working-theory/web-i18n": "0.33.0",
27
+ "@working-theory/schema": "0.34.0",
28
+ "@working-theory/schema-pack-registry": "0.34.0",
29
+ "@working-theory/schema-validator": "0.34.0",
30
+ "@working-theory/sections-registry": "0.34.0",
31
+ "@working-theory/site-config": "0.34.0",
32
+ "@working-theory/stripe-client": "0.34.0",
33
+ "@working-theory/templates": "0.34.0",
34
+ "@working-theory/theme": "0.34.0",
35
+ "@working-theory/ui": "0.34.0",
36
+ "@working-theory/validation": "0.34.0",
37
+ "@working-theory/web-i18n": "0.34.0",
38
38
  "@working-theory/billing-client": "0.0.0",
39
39
  "@working-theory/branding": "0.0.0",
40
40
  "@working-theory/license-client": "0.0.0",
41
41
  "@working-theory/license-manifest": "0.0.0",
42
42
  "@working-theory/partner-session": "0.0.0",
43
43
  "@working-theory/preview-protocol": "0.0.0",
44
- "@working-theory/ui-commerce": "0.23.10",
45
- "@working-theory/ui-docs-blog": "0.23.10",
46
- "@working-theory/ui-scheduling": "0.23.10",
47
- "@working-theory/ui-signal-collectors": "0.24.8",
44
+ "@working-theory/ui-commerce": "0.23.11",
45
+ "@working-theory/ui-docs-blog": "0.23.11",
46
+ "@working-theory/ui-scheduling": "0.23.11",
47
+ "@working-theory/ui-signal-collectors": "0.25.0",
48
48
  "@working-theory/web": "0.0.0",
49
49
  "@working-theory/api": "1.0.0",
50
50
  "@working-theory/mcp": "0.0.0",
51
- "@working-theory/database": "0.33.0"
51
+ "@working-theory/database": "0.34.0"
52
52
  }