anhedral 0.15.0 → 0.16.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 (308) hide show
  1. package/README.md +29 -38
  2. package/assets/stack/ai-schema.ts.txt +5 -0
  3. package/assets/stack/ai.ts.txt +30 -0
  4. package/assets/stack/api-index.ts.txt +15 -0
  5. package/assets/stack/auth-features.ts.txt +4 -0
  6. package/assets/stack/auth-journal.json.txt +13 -0
  7. package/assets/stack/auth-migration.sql.txt +53 -0
  8. package/assets/stack/auth-routes.ts.txt +11 -0
  9. package/assets/stack/auth-schema.ts.txt +64 -0
  10. package/assets/stack/auth-snapshot.json.txt +346 -0
  11. package/assets/stack/auth.ts.txt +32 -0
  12. package/assets/stack/billing-mode.ts.txt +8 -0
  13. package/assets/stack/billing-schema.ts.txt +11 -0
  14. package/assets/stack/desktop.rs.txt +21 -0
  15. package/assets/stack/entitlement-guard.ts.txt +32 -0
  16. package/assets/stack/entitlements.ts.txt +8 -0
  17. package/assets/stack/events-schema.ts.txt +12 -0
  18. package/assets/stack/events.ts.txt +59 -0
  19. package/assets/stack/mobile-auth.ts.txt +25 -0
  20. package/assets/stack/mobile-billing.tsx.txt +63 -0
  21. package/assets/stack/mobile-session.tsx.txt +83 -0
  22. package/assets/stack/native-button.tsx.txt +108 -0
  23. package/assets/stack/native-global.css.txt +4 -0
  24. package/assets/stack/native-lib-utils.ts.txt +5 -0
  25. package/assets/stack/native-metro.config.js.txt +6 -0
  26. package/assets/stack/native-nativewind-env.d.ts.txt +1 -0
  27. package/assets/stack/native-tailwind.config.js.txt +73 -0
  28. package/assets/stack/native-text.tsx.txt +89 -0
  29. package/assets/stack/purchases.ts.txt +65 -0
  30. package/assets/stack/revenuecat.ts.txt +88 -0
  31. package/assets/stack/rtc-schema.ts.txt +10 -0
  32. package/assets/stack/rtc.ts.txt +122 -0
  33. package/assets/stack/security.ts.txt +31 -0
  34. package/assets/stack/storage.ts.txt +36 -0
  35. package/assets/stack/stripe.ts.txt +126 -0
  36. package/assets/stack/web-sign-in.tsx.txt +51 -0
  37. package/assets/ui/LICENSE.react-native-reusables +21 -0
  38. package/assets/ui/UPSTREAM.json +7 -1
  39. package/assets/ui/catalog.json +891 -0
  40. package/assets/ui/extensions/registry.json +6 -0
  41. package/assets/ui/native/_controls.tsx +521 -0
  42. package/assets/ui/native/_core.tsx +118 -0
  43. package/assets/ui/native/_data.tsx +200 -0
  44. package/assets/ui/native/_display.tsx +453 -0
  45. package/assets/ui/native/_feedback.tsx +242 -0
  46. package/assets/ui/native/_legacy-dialog.tsx +38 -0
  47. package/assets/ui/native/_motion.tsx +520 -0
  48. package/assets/ui/native/_overlay.tsx +402 -0
  49. package/assets/ui/native/_selection.tsx +366 -0
  50. package/assets/ui/native/accordion.tsx +1 -0
  51. package/assets/ui/native/alert-dialog.tsx +11 -0
  52. package/assets/ui/native/alert.tsx +1 -0
  53. package/assets/ui/native/aspect-ratio.tsx +1 -0
  54. package/assets/ui/native/attachment.tsx +8 -0
  55. package/assets/ui/native/avatar.tsx +8 -0
  56. package/assets/ui/native/badge.tsx +1 -0
  57. package/assets/ui/native/breadcrumb.tsx +9 -0
  58. package/assets/ui/native/bubble.tsx +1 -0
  59. package/assets/ui/native/button-group.tsx +1 -0
  60. package/assets/ui/native/button.tsx +2 -1
  61. package/assets/ui/native/calendar.tsx +170 -0
  62. package/assets/ui/native/card.tsx +16 -5
  63. package/assets/ui/native/carousel.tsx +1 -0
  64. package/assets/ui/native/chart.tsx +193 -0
  65. package/assets/ui/native/checkbox.tsx +1 -0
  66. package/assets/ui/native/code-block.tsx +137 -0
  67. package/assets/ui/native/collapsible.tsx +1 -0
  68. package/assets/ui/native/combobox.tsx +1 -0
  69. package/assets/ui/native/command.tsx +11 -0
  70. package/assets/ui/native/context-menu.tsx +16 -0
  71. package/assets/ui/native/data-table.tsx +1 -0
  72. package/assets/ui/native/date-picker.tsx +43 -0
  73. package/assets/ui/native/dialog.tsx +14 -74
  74. package/assets/ui/native/direction.tsx +1 -0
  75. package/assets/ui/native/drawer.tsx +10 -0
  76. package/assets/ui/native/dropdown-menu.tsx +16 -0
  77. package/assets/ui/native/empty.tsx +8 -0
  78. package/assets/ui/native/field.tsx +13 -0
  79. package/assets/ui/native/hover-card.tsx +1 -0
  80. package/assets/ui/native/input-group.tsx +8 -0
  81. package/assets/ui/native/input-otp.tsx +1 -0
  82. package/assets/ui/native/input.tsx +2 -1
  83. package/assets/ui/native/item.tsx +12 -0
  84. package/assets/ui/native/kbd.tsx +1 -0
  85. package/assets/ui/native/marker.tsx +1 -0
  86. package/assets/ui/native/menubar.tsx +17 -0
  87. package/assets/ui/native/message-scroller.tsx +6 -0
  88. package/assets/ui/native/message.tsx +10 -0
  89. package/assets/ui/native/native-select.tsx +1 -0
  90. package/assets/ui/native/navigation-menu.tsx +10 -0
  91. package/assets/ui/native/pagination.tsx +9 -0
  92. package/assets/ui/native/popover.tsx +1 -0
  93. package/assets/ui/native/progress.tsx +1 -0
  94. package/assets/ui/native/questionnaire.tsx +130 -0
  95. package/assets/ui/native/radio-group.tsx +1 -0
  96. package/assets/ui/native/registry.json +1103 -0
  97. package/assets/ui/native/resizable.tsx +1 -0
  98. package/assets/ui/native/scroll-area.tsx +1 -0
  99. package/assets/ui/native/select.tsx +11 -0
  100. package/assets/ui/native/separator.tsx +1 -0
  101. package/assets/ui/native/sheet.tsx +10 -0
  102. package/assets/ui/native/sidebar.tsx +22 -0
  103. package/assets/ui/native/skeleton.tsx +1 -0
  104. package/assets/ui/native/slider.tsx +1 -0
  105. package/assets/ui/native/spinner.tsx +1 -0
  106. package/assets/ui/native/switch.tsx +1 -0
  107. package/assets/ui/native/table.tsx +10 -0
  108. package/assets/ui/native/tabs.tsx +1 -0
  109. package/assets/ui/native/textarea.tsx +1 -0
  110. package/assets/ui/native/toast.tsx +11 -0
  111. package/assets/ui/native/toggle-group.tsx +1 -0
  112. package/assets/ui/native/toggle.tsx +1 -0
  113. package/assets/ui/native/tooltip.tsx +1 -0
  114. package/assets/ui/native/trace.tsx +20 -0
  115. package/assets/ui/native/typography.tsx +15 -0
  116. package/dist/bin.js +7 -12
  117. package/dist/capabilities.d.ts +4 -33
  118. package/dist/capabilities.js +2 -66
  119. package/dist/capability-catalog.d.ts +83 -0
  120. package/dist/capability-catalog.js +121 -0
  121. package/dist/capability-command.d.ts +3 -0
  122. package/dist/capability-command.js +188 -0
  123. package/dist/capability-editor.d.ts +17 -0
  124. package/dist/capability-editor.js +97 -0
  125. package/dist/capability-recipes.d.ts +4 -0
  126. package/dist/capability-recipes.js +520 -0
  127. package/dist/capability-references.d.ts +4 -0
  128. package/dist/capability-references.js +7 -0
  129. package/dist/cli-commands.d.ts +1 -2
  130. package/dist/cli-commands.js +10 -104
  131. package/dist/cli-output.d.ts +1 -2
  132. package/dist/cli-output.js +6 -251
  133. package/dist/command-schema.js +39 -322
  134. package/dist/dependencies.d.ts +29 -6
  135. package/dist/dependencies.js +61 -14
  136. package/dist/index.d.ts +1 -42
  137. package/dist/index.js +1 -27
  138. package/dist/platforms/mobile.js +1 -20
  139. package/dist/platforms/web.d.ts +1 -1
  140. package/dist/platforms/web.js +27 -75
  141. package/dist/project-config.d.ts +2 -13
  142. package/dist/project-config.js +10 -82
  143. package/dist/registry/options.js +1 -5
  144. package/dist/registry/resolve.d.ts +1 -1
  145. package/dist/registry/resolve.js +2 -10
  146. package/dist/registry/usage.js +3 -9
  147. package/dist/scaffold/backend.js +0 -3
  148. package/dist/scaffold/database.js +2 -1
  149. package/dist/scaffold/documentation.js +82 -20
  150. package/dist/scaffold/expo-runtime.js +3 -4
  151. package/dist/scaffold/native-ui.js +12 -7
  152. package/dist/scaffold/stack-documentation.js +1 -1
  153. package/dist/scaffold/storage.d.ts +2 -0
  154. package/dist/scaffold/storage.js +21 -0
  155. package/dist/scaffold/workspace.js +26 -21
  156. package/dist/stack-registry.d.ts +2 -8
  157. package/dist/stack-registry.js +11 -87
  158. package/dist/standard.js +1 -11
  159. package/dist/ui-catalog.d.ts +26 -0
  160. package/dist/ui-catalog.js +31 -0
  161. package/dist/ui-command.d.ts +3 -0
  162. package/dist/ui-command.js +219 -0
  163. package/dist/ui-project.d.ts +22 -0
  164. package/dist/ui-project.js +110 -0
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/docs/anhedral-stack.md +4 -20
  168. package/docs/capabilities.md +110 -0
  169. package/docs/native-ui.md +102 -0
  170. package/docs/software-factory.md +16 -44
  171. package/docs/stack-standard.md +11 -60
  172. package/docs/ui.md +33 -0
  173. package/docs/verification.md +191 -0
  174. package/package.json +19 -18
  175. package/dist/access.d.ts +0 -10
  176. package/dist/access.js +0 -93
  177. package/dist/auth-schema-snapshot.d.ts +0 -346
  178. package/dist/auth-schema-snapshot.js +0 -347
  179. package/dist/auth-schema.d.ts +0 -1
  180. package/dist/auth-schema.js +0 -57
  181. package/dist/capability-contract.d.ts +0 -47
  182. package/dist/capability-contract.js +0 -129
  183. package/dist/catalog-model.d.ts +0 -24
  184. package/dist/catalog-model.js +0 -1
  185. package/dist/catalog-registration.d.ts +0 -16
  186. package/dist/catalog-registration.js +0 -22
  187. package/dist/catalog-snapshot.d.ts +0 -5
  188. package/dist/catalog-snapshot.js +0 -97
  189. package/dist/cli-delivery.d.ts +0 -3
  190. package/dist/cli-delivery.js +0 -112
  191. package/dist/cloudflare.d.ts +0 -25
  192. package/dist/cloudflare.js +0 -226
  193. package/dist/delivery-evidence.d.ts +0 -62
  194. package/dist/delivery-evidence.js +0 -157
  195. package/dist/delivery.d.ts +0 -82
  196. package/dist/delivery.js +0 -489
  197. package/dist/inspector-model.d.ts +0 -123
  198. package/dist/inspector-model.js +0 -1
  199. package/dist/integration-service-readers.d.ts +0 -12
  200. package/dist/integration-service-readers.js +0 -92
  201. package/dist/lifecycle-model.d.ts +0 -15
  202. package/dist/lifecycle-model.js +0 -20
  203. package/dist/lifecycle.d.ts +0 -11
  204. package/dist/lifecycle.js +0 -91
  205. package/dist/management.d.ts +0 -3
  206. package/dist/management.js +0 -47
  207. package/dist/mobile-delivery.d.ts +0 -77
  208. package/dist/mobile-delivery.js +0 -370
  209. package/dist/project-catalog.d.ts +0 -41
  210. package/dist/project-catalog.js +0 -288
  211. package/dist/project-inspector.d.ts +0 -4
  212. package/dist/project-inspector.js +0 -671
  213. package/dist/project-lifecycle.d.ts +0 -25
  214. package/dist/project-lifecycle.js +0 -57
  215. package/dist/project-state.d.ts +0 -47
  216. package/dist/project-state.js +0 -480
  217. package/dist/provider-auth.d.ts +0 -41
  218. package/dist/provider-auth.js +0 -180
  219. package/dist/provider-readiness.d.ts +0 -30
  220. package/dist/provider-readiness.js +0 -85
  221. package/dist/providers/adapters.d.ts +0 -17
  222. package/dist/providers/adapters.js +0 -103
  223. package/dist/providers/api.d.ts +0 -29
  224. package/dist/providers/api.js +0 -253
  225. package/dist/providers/config.d.ts +0 -15
  226. package/dist/providers/config.js +0 -136
  227. package/dist/providers/definitions.d.ts +0 -115
  228. package/dist/providers/definitions.js +0 -42
  229. package/dist/providers/provision.d.ts +0 -24
  230. package/dist/providers/provision.js +0 -76
  231. package/dist/providers/receipts.d.ts +0 -20
  232. package/dist/providers/receipts.js +0 -56
  233. package/dist/providers/recovery-verification.d.ts +0 -7
  234. package/dist/providers/recovery-verification.js +0 -52
  235. package/dist/providers/recovery.d.ts +0 -30
  236. package/dist/providers/recovery.js +0 -34
  237. package/dist/providers/runtime.d.ts +0 -10
  238. package/dist/providers/runtime.js +0 -234
  239. package/dist/providers/schema.d.ts +0 -28
  240. package/dist/providers/schema.js +0 -49
  241. package/dist/providers/state.d.ts +0 -55
  242. package/dist/providers/state.js +0 -283
  243. package/dist/provision.d.ts +0 -47
  244. package/dist/provision.js +0 -208
  245. package/dist/r2-service-data.d.ts +0 -2
  246. package/dist/r2-service-data.js +0 -136
  247. package/dist/readiness.d.ts +0 -23
  248. package/dist/readiness.js +0 -117
  249. package/dist/registry/add.d.ts +0 -24
  250. package/dist/registry/add.js +0 -210
  251. package/dist/registry/bootstrap.d.ts +0 -3
  252. package/dist/registry/bootstrap.js +0 -5
  253. package/dist/registry/commands.d.ts +0 -3
  254. package/dist/registry/commands.js +0 -83
  255. package/dist/registry/preview.d.ts +0 -11
  256. package/dist/registry/preview.js +0 -91
  257. package/dist/registry/receipt.d.ts +0 -3
  258. package/dist/registry/receipt.js +0 -68
  259. package/dist/repository.d.ts +0 -24
  260. package/dist/repository.js +0 -96
  261. package/dist/scaffold/auth.d.ts +0 -2
  262. package/dist/scaffold/auth.js +0 -76
  263. package/dist/scaffold/billing-config.d.ts +0 -1
  264. package/dist/scaffold/billing-config.js +0 -73
  265. package/dist/scaffold/billing-contracts.d.ts +0 -2
  266. package/dist/scaffold/billing-contracts.js +0 -48
  267. package/dist/scaffold/billing-providers.d.ts +0 -1
  268. package/dist/scaffold/billing-providers.js +0 -249
  269. package/dist/scaffold/billing-schema.d.ts +0 -1
  270. package/dist/scaffold/billing-schema.js +0 -34
  271. package/dist/scaffold/billing-security.d.ts +0 -1
  272. package/dist/scaffold/billing-security.js +0 -46
  273. package/dist/scaffold/billing-server.d.ts +0 -1
  274. package/dist/scaffold/billing-server.js +0 -139
  275. package/dist/scaffold/billing-store.d.ts +0 -1
  276. package/dist/scaffold/billing-store.js +0 -72
  277. package/dist/scaffold/billing.d.ts +0 -2
  278. package/dist/scaffold/billing.js +0 -208
  279. package/dist/scaffold/expo-auth.d.ts +0 -3
  280. package/dist/scaffold/expo-auth.js +0 -203
  281. package/dist/scaffold/expo-billing.d.ts +0 -3
  282. package/dist/scaffold/expo-billing.js +0 -257
  283. package/dist/scaffold/integrations.d.ts +0 -2
  284. package/dist/scaffold/integrations.js +0 -11
  285. package/dist/scaffold/managed-email.d.ts +0 -3
  286. package/dist/scaffold/managed-email.js +0 -47
  287. package/dist/scaffold/password-reset.d.ts +0 -1
  288. package/dist/scaffold/password-reset.js +0 -99
  289. package/dist/scaffold/private-files.d.ts +0 -2
  290. package/dist/scaffold/private-files.js +0 -78
  291. package/dist/scaffold/web-billing.d.ts +0 -2
  292. package/dist/scaffold/web-billing.js +0 -48
  293. package/dist/service-deletion.d.ts +0 -29
  294. package/dist/service-deletion.js +0 -195
  295. package/dist/service-descriptor.d.ts +0 -10
  296. package/dist/service-descriptor.js +0 -71
  297. package/dist/service-model.d.ts +0 -49
  298. package/dist/service-model.js +0 -8
  299. package/dist/service-operations.d.ts +0 -29
  300. package/dist/service-operations.js +0 -48
  301. package/dist/service-readers.d.ts +0 -8
  302. package/dist/service-readers.js +0 -216
  303. package/dist/services-command.d.ts +0 -39
  304. package/dist/services-command.js +0 -96
  305. package/dist/ship.d.ts +0 -35
  306. package/dist/ship.js +0 -107
  307. package/docs/assets/anhedral-stack-light.png +0 -0
  308. package/docs/assets/anhedral-stack.png +0 -0
@@ -28,346 +28,63 @@ export function commandDefinition(command) {
28
28
  return COMMANDS[command ?? ''];
29
29
  }
30
30
  export const COMMANDS = {
31
- services: {
32
- description: 'Inspect live Cloudflare services, analytics, data, or a confirmed resource deletion.',
33
- usage: 'services list | status | metrics | tables | data | delete-plan | delete [service-key] [options]',
31
+ add: {
32
+ description: 'Add selected stack capabilities to an existing Anhedral project.',
33
+ usage: 'add <capabilities...> [options]',
34
34
  options: [
35
+ { flag: '--with-dependencies', description: 'Explicitly include missing prerequisites.' },
36
+ { flag: '--skip-install', description: 'Write source without installing dependencies.' },
35
37
  {
36
- flag: '--hours',
37
- value: '1|24|168',
38
- arity: 'required',
39
- description: 'Analytics window; D1 uses complete UTC days.',
40
- },
41
- {
42
- flag: '--table',
43
- value: 'table',
44
- arity: 'required',
45
- description: 'Existing D1 database table.',
46
- },
47
- {
48
- flag: '--offset',
49
- value: 'number',
50
- arity: 'required',
51
- description: 'Bounded database page offset.',
52
- },
53
- {
54
- flag: '--cursor',
55
- value: 'cursor',
56
- arity: 'required',
57
- description: 'Provider cursor for object metadata pages.',
58
- },
59
- {
60
- flag: '--token',
61
- value: 'token',
62
- arity: 'required',
63
- description: 'Single-use deletion-plan token.',
64
- },
65
- {
66
- flag: '--confirm-name',
67
- value: 'name',
68
- arity: 'required',
69
- description: 'Exact resource name from the deletion plan.',
38
+ flag: '--dry-run',
39
+ description: 'Preview every file and prerequisite without writes or network.',
70
40
  },
71
41
  ],
72
- examples: ['services list --json', 'services status binding:apps/api:D1:DB --json'],
73
- note: 'Provider calls occur only when requested. Data output can contain private values. Deletion is limited to verified project-created D1 databases and requires a fresh plan and typed resource name.',
42
+ examples: [
43
+ 'add hono',
44
+ 'add database-auth',
45
+ 'add expo native-ui stripe revenuecat --with-dependencies --dry-run --json',
46
+ ],
47
+ note: 'Adds source and local configuration only. Existing edits are preserved. No provisioning, credential installation, migration or deployment.',
74
48
  },
75
- inspect: {
76
- description: 'Inspect local stack, setup requirements and recorded delivery evidence.',
77
- usage: 'inspect [directory] [options]',
49
+ stack: {
50
+ description: 'List capabilities and inspect declared source state.',
51
+ usage: 'stack <list|status|doctor>',
78
52
  options: [],
79
- examples: ['inspect', 'inspect --json'],
80
- note: 'Read-only and offline. Recorded results do not establish live provider status or permissions.',
53
+ examples: ['stack list', 'stack status --json', 'stack doctor'],
54
+ note: 'Installed source is not proof of live provider activation.',
81
55
  },
82
- integrations: {
83
- description: 'Inspect private integration receipts or reconcile a verified pending resource.',
84
- usage: 'integrations status | recover [directory] [options]',
56
+ ui: {
57
+ description: 'Anhedral UI: one source-owned catalog for web and native.',
58
+ usage: 'ui <init|add|list|diff|doctor> [components...] [options]',
85
59
  options: [
86
- {
87
- flag: '--provider',
88
- value: 'name',
89
- arity: 'required',
90
- description: 'Select a bundled integration provider for recovery.',
91
- },
92
- {
93
- flag: '--operation',
94
- value: 'hash',
95
- arity: 'required',
96
- description: 'Select the exact pending operation from status.',
97
- },
98
- {
99
- flag: '--resource',
100
- value: 'id',
101
- arity: 'required',
102
- description: 'Verify and adopt this existing resource; never recreate it.',
103
- },
60
+ { flag: '--web', description: 'Select the Next.js application.' },
61
+ { flag: '--native', description: 'Select the Expo/NativeWind 4 application.' },
62
+ { flag: '--all', description: 'Explicitly select every web/native application.' },
63
+ { flag: '--dry-run', description: 'Show the installer plan without writes or network.' },
104
64
  ],
105
65
  examples: [
106
- 'integrations status --json',
107
- 'integrations recover --provider revenuecat --operation recorded-hash --resource existing-id',
66
+ 'ui list',
67
+ 'ui add button --web',
68
+ 'ui add button --native',
69
+ 'ui diff button',
70
+ 'ui doctor',
108
71
  ],
109
- note: 'Status is read-only. Recovery verifies provider identity before updating a local receipt. Unsupported receipt schemas are rejected. Recovery cannot reconstruct missing one-time credentials.',
72
+ note: 'Component installation uses the pinned official shadcn CLI. Native falls back to React Native Reusables. No automatic overwrite, provider operations or full-parity promise.',
110
73
  },
111
74
  init: {
112
- description: 'Create Next.js web + native Expo + Hono + Drizzle/D1 + private R2.',
75
+ description: 'Scaffold Next.js/OpenNext with source-owned Anhedral UI; add capabilities only when needed.',
113
76
  usage: 'init [directory] [options]',
114
77
  options: [
115
- { flag: '--stripe', description: 'Add Stripe web billing.' },
116
- { flag: '--revenuecat', description: 'Add RevenueCat native purchases.' },
117
- { flag: '--skip-install', description: 'Skip dependency installation.' },
118
- { flag: '--git', description: 'Initialize a project repository.' },
78
+ { flag: '--skip-install', description: 'Write source without installing dependencies.' },
79
+ { flag: '--git', description: 'Initialize a local Git repository.' },
119
80
  { flag: '--no-git', description: 'Skip Git initialization.' },
120
- { flag: '--dry-run', description: 'Preview without writes or network.' },
121
- ],
122
- examples: ['init client-app', 'init client-app --stripe --revenuecat --dry-run'],
123
- note: 'The complete core foundation is always included. Stripe and RevenueCat are the only optional additions. Generation does not provision cloud resources.',
124
- },
125
- auth: {
126
- description: 'Check or guide authentication for the selected providers.',
127
- usage: 'auth [directory] [options]',
128
- options: [
129
- {
130
- flag: '--provider',
131
- description: 'Check one provider required by this project.',
132
- value: 'name',
133
- arity: 'required',
134
- },
135
- { flag: '--status', description: 'Check existing access without opening login.' },
136
- { flag: '--non-interactive', description: 'Never open an interactive login.' },
137
- ],
138
- examples: ['auth', 'auth --status --json', 'auth --provider revenuecat'],
139
- note: 'Management keys come from the environment. Login does not establish all write permissions or complete provider setup. Complete provider settings in anhedral.json (providers) before shipping.',
140
- },
141
- ship: {
142
- description: 'Provision, configure and deploy the supported selected stack.',
143
- usage: 'ship [directory] [options]',
144
- options: [
145
- { flag: '--dry-run', description: 'Preview provisioning and deployment without mutations.' },
146
- {
147
- flag: '--provider',
148
- description: 'Select Cloudflare hosting.',
149
- value: 'cloudflare',
150
- arity: 'required',
151
- },
152
- {
153
- flag: '--platform',
154
- description: 'Build a selected mobile platform.',
155
- value: 'ios|android',
156
- arity: 'required',
157
- },
158
- {
159
- flag: '--profile',
160
- description: 'Select the configured EAS build profile.',
161
- value: 'name',
162
- arity: 'required',
163
- },
164
- ],
165
- examples: ['ship --dry-run', 'ship --json', 'ship --platform android --profile preview'],
166
- note: 'Connect the intended hosting account and audience first. Commit source before shipping; resolved tracked bindings require review and another commit. Mobile builds return links and never submit to stores.',
167
- },
168
- add: {
169
- description: 'Add Stripe or RevenueCat while preserving edited source.',
170
- usage: 'add <stripe|revenuecat> [...] [options]',
171
- options: [
172
- { flag: '--dry-run', description: 'Preview changed paths without installing them.' },
173
- {
174
- flag: '--diff',
175
- description: 'Preview source changes; implies --dry-run.',
176
- value: 'path',
177
- arity: 'optional',
178
- },
179
- {
180
- flag: '--view',
181
- description: 'Preview generated source; implies --dry-run.',
182
- value: 'path',
183
- arity: 'optional',
184
- },
185
- { flag: '--skip-install', description: 'Skip the final dependency install.' },
81
+ { flag: '--dry-run', description: 'Preview the foundation without writes or network.' },
186
82
  ],
187
83
  examples: [
188
- 'add stripe',
189
- '--cwd client-app add stripe --dry-run',
190
- 'add stripe --diff --cwd client-app',
191
- ],
192
- note: 'Source previews are local and bounded. Edited-source conflicts require review; there is no force overwrite.',
193
- },
194
- registry: {
195
- description: 'Inspect the core stack and payment additions.',
196
- usage: 'registry list | view <item> | capabilities',
197
- options: [],
198
- examples: ['registry list', 'registry view stripe', 'registry capabilities --json'],
199
- },
200
- doctor: {
201
- description: 'Check project provenance and local readiness without writes.',
202
- usage: 'doctor [directory] [options]',
203
- options: [
204
- { flag: '--providers', description: 'Also check tools and existing provider context.' },
205
- ],
206
- examples: ['doctor', 'doctor client-app --providers --json'],
207
- },
208
- connect: {
209
- description: 'Select the intended hosting account, project and audience.',
210
- usage: 'connect [directory] [options]',
211
- options: [
212
- {
213
- flag: '--provider',
214
- description: 'Select the hosting provider.',
215
- value: 'cloudflare',
216
- arity: 'required',
217
- },
218
- {
219
- flag: '--account',
220
- description: 'Select the Cloudflare account.',
221
- value: 'id',
222
- arity: 'required',
223
- },
224
- {
225
- flag: '--audience',
226
- description: 'Set the explicit hosting audience.',
227
- value: 'public|private',
228
- arity: 'required',
229
- },
230
- {
231
- flag: '--allow-email',
232
- description: 'Allow a private Cloudflare member (repeatable).',
233
- value: 'email',
234
- arity: 'required',
235
- repeatable: true,
236
- },
237
- ],
238
- examples: ['connect --provider cloudflare --audience public'],
239
- },
240
- repository: {
241
- description: 'Connect or create the application owner’s GitHub repository.',
242
- usage: 'repository [directory] [--owner <account>] [options]',
243
- options: [
244
- {
245
- flag: '--owner',
246
- description: 'Select the GitHub owner.',
247
- value: 'account',
248
- arity: 'required',
249
- },
250
- { flag: '--name', description: 'Set the repository name.', value: 'name', arity: 'required' },
251
- {
252
- flag: '--visibility',
253
- description: 'Set visibility (default: private).',
254
- value: 'private|public',
255
- arity: 'required',
256
- },
257
- { flag: '--create', description: 'Create the repository when needed.' },
258
- ],
259
- examples: ['repository --owner customer --create'],
260
- },
261
- register: {
262
- description: 'Record application identity and delivery targets.',
263
- usage: 'register [directory] [--provider cloudflare]',
264
- options: [
265
- {
266
- flag: '--provider',
267
- description: 'Select the provider.',
268
- value: 'cloudflare',
269
- arity: 'required',
270
- },
271
- ],
272
- examples: ['register'],
273
- },
274
- provision: {
275
- description: 'Reconcile Cloudflare resources without deploying code.',
276
- usage: 'provision [directory] [options]',
277
- options: [
278
- {
279
- flag: '--provider',
280
- description: 'Select Cloudflare hosting.',
281
- value: 'cloudflare',
282
- arity: 'required',
283
- },
284
- { flag: '--dry-run', description: 'Preview resources without mutations.' },
285
- ],
286
- examples: ['provision --dry-run'],
287
- note: 'Use ship for the full selected-integration and hosting flow.',
288
- },
289
- status: {
290
- description: 'Inspect recorded release and provider evidence.',
291
- usage: 'status [directory] [options]',
292
- options: [
293
- {
294
- flag: '--provider',
295
- description: 'Select hosting.',
296
- value: 'cloudflare',
297
- arity: 'required',
298
- },
299
- { flag: '--refresh', description: 'Refresh provider evidence.' },
300
- ],
301
- examples: ['status --refresh'],
302
- },
303
- manage: {
304
- description: 'Write a local overview of recorded delivery evidence.',
305
- usage: 'manage [directory] [options]',
306
- options: [
307
- {
308
- flag: '--provider',
309
- description: 'Select hosting.',
310
- value: 'cloudflare',
311
- arity: 'required',
312
- },
313
- { flag: '--local', description: 'Use local evidence without provider refresh.' },
314
- { flag: '--refresh', description: 'Refresh provider evidence.' },
315
- ],
316
- examples: ['manage --local'],
317
- },
318
- verify: {
319
- description: 'Exercise the application’s configured live acceptance checks.',
320
- usage: 'verify [directory] [options]',
321
- options: [
322
- {
323
- flag: '--provider',
324
- description: 'Select hosting.',
325
- value: 'cloudflare',
326
- arity: 'required',
327
- },
328
- { flag: '--refresh', description: 'Refresh provider evidence.' },
329
- ],
330
- examples: ['verify'],
331
- },
332
- recover: {
333
- description: 'Recover verified hosting state or a proven interrupted local lock.',
334
- usage: 'recover [directory] [options]',
335
- options: [
336
- {
337
- flag: '--lock',
338
- description: 'Release only a proven dead local delivery lock; never replay provider operations.',
339
- },
340
- {
341
- flag: '--provider',
342
- description: 'Select hosting.',
343
- value: 'cloudflare',
344
- arity: 'required',
345
- },
346
- { flag: '--refresh', description: 'Refresh provider evidence.' },
347
- ],
348
- examples: ['recover'],
349
- note: 'Does not recreate missing integration credentials or historical product checks.',
350
- },
351
- rollback: {
352
- description: 'Restore a recorded code release after compatibility review.',
353
- usage: 'rollback [directory] --release <id> --data-compatible [options]',
354
- options: [
355
- {
356
- flag: '--provider',
357
- description: 'Select hosting.',
358
- value: 'cloudflare',
359
- arity: 'required',
360
- },
361
- {
362
- flag: '--release',
363
- description: 'Select a recorded release.',
364
- value: 'id',
365
- arity: 'required',
366
- },
367
- { flag: '--data-compatible', description: 'Confirm data/schema compatibility.' },
368
- { flag: '--refresh', description: 'Refresh provider evidence.' },
84
+ 'init my-app',
85
+ 'init my-app --dry-run --json',
86
+ 'init my-app --skip-install --no-git',
369
87
  ],
370
- examples: ['rollback --release recorded-id --data-compatible'],
371
- note: 'Code rollback does not restore data.',
88
+ note: 'Generated source belongs to you. Application features, authentication, payments and hosting are your responsibility. Init never provisions or deploys resources.',
372
89
  },
373
90
  };
@@ -9,18 +9,12 @@ export declare const NATIVE_UI_DEPENDENCIES: DependencyGroup;
9
9
  export declare const OPENNEXT_GLOB_VERSION = "10.5.0";
10
10
  export declare const WORKSPACE_NODE_ENGINE = "^22.13.0 || >=24.0.0";
11
11
  export declare const PACKAGE_MANAGER = "pnpm@10.34.5";
12
- export declare const EAS_CLI_VERSION = "21.0.1";
13
12
  export declare const STACK_DEPENDENCIES: {
14
13
  readonly zod: "4.6.6";
15
14
  readonly '@typescript-eslint/parser': "8.71.2";
16
15
  readonly '@typescript-eslint/eslint-plugin': "8.71.2";
17
16
  readonly turbo: "2.11.7";
18
17
  readonly tsx: "4.23.15";
19
- readonly 'better-auth': "1.7.7";
20
- readonly '@better-auth/expo': "1.7.7";
21
- readonly 'expo-secure-store': "57.0.4";
22
- readonly 'expo-network': "57.0.2";
23
- readonly '@better-auth/drizzle-adapter': "1.7.7";
24
18
  readonly 'drizzle-orm': "0.45.4";
25
19
  readonly wrangler: "4.151.0";
26
20
  readonly typescript: "5.9.3";
@@ -41,3 +35,32 @@ export declare const WORKER_DEV_PORTS: {
41
35
  readonly inspector: 9231;
42
36
  };
43
37
  };
38
+ export declare const CAPABILITY_DEPENDENCIES: {
39
+ readonly 'better-auth': "1.7.7";
40
+ readonly '@better-auth/drizzle-adapter': "1.7.7";
41
+ readonly '@better-auth/expo': "1.7.7";
42
+ readonly stripe: "23.0.0";
43
+ readonly 'react-native-purchases': "10.14.0";
44
+ readonly wxt: "0.21.5";
45
+ readonly '@wxt-dev/module-react': "1.2.2";
46
+ readonly expo: "56.0.12";
47
+ readonly react: "19.2.3";
48
+ readonly 'react-native': "0.85.3";
49
+ readonly 'expo-secure-store': "56.0.4";
50
+ readonly 'expo-linking': "56.0.14";
51
+ readonly '@types/react': "19.2.14";
52
+ readonly 'babel-preset-expo': "56.0.8";
53
+ readonly nativewind: "4.2.7";
54
+ readonly 'react-native-css-interop': "0.2.7";
55
+ readonly 'react-native-reanimated': "4.3.1";
56
+ readonly 'react-native-worklets': "0.8.3";
57
+ readonly 'react-native-safe-area-context': "5.7.0";
58
+ readonly 'class-variance-authority': "0.7.1";
59
+ readonly clsx: "2.1.1";
60
+ readonly 'tailwind-merge': "3.5.0";
61
+ readonly 'tailwindcss-animate': "1.0.7";
62
+ readonly '@rn-primitives/portal': "1.5.2";
63
+ readonly '@rn-primitives/slot': "1.5.2";
64
+ readonly tailwindcss: "3.4.19";
65
+ readonly '@types/react-dom': "19.2.3";
66
+ };
@@ -48,8 +48,6 @@ export const WEB_DEPENDENCIES = {
48
48
  react: '19.2.3',
49
49
  // renovate: datasource=npm depName=react-dom
50
50
  'react-dom': '19.2.3',
51
- // renovate: datasource=npm depName=better-auth
52
- 'better-auth': '1.7.7',
53
51
  // renovate: datasource=npm depName=server-only
54
52
  'server-only': '0.0.1',
55
53
  // renovate: datasource=npm depName=@base-ui/react
@@ -86,6 +84,10 @@ export const WEB_DEPENDENCIES = {
86
84
  };
87
85
  export const NATIVE_UI_DEPENDENCIES = {
88
86
  dependencies: {
87
+ // renovate: datasource=npm depName=react-native-svg
88
+ 'react-native-svg': '15.15.4',
89
+ // renovate: datasource=npm depName=expo-clipboard
90
+ 'expo-clipboard': '57.0.2',
89
91
  // renovate: datasource=npm depName=@react-native-async-storage/async-storage
90
92
  '@react-native-async-storage/async-storage': '2.2.0',
91
93
  // renovate: datasource=npm depName=expo-system-ui
@@ -96,8 +98,6 @@ export const NATIVE_UI_DEPENDENCIES = {
96
98
  export const OPENNEXT_GLOB_VERSION = '10.5.0';
97
99
  export const WORKSPACE_NODE_ENGINE = '^22.13.0 || >=24.0.0';
98
100
  export const PACKAGE_MANAGER = 'pnpm@10.34.5';
99
- // renovate: datasource=npm depName=eas-cli
100
- export const EAS_CLI_VERSION = '21.0.1';
101
101
  export const STACK_DEPENDENCIES = {
102
102
  // renovate: datasource=npm depName=zod
103
103
  zod: '4.6.6',
@@ -109,16 +109,6 @@ export const STACK_DEPENDENCIES = {
109
109
  turbo: '2.11.7',
110
110
  // renovate: datasource=npm depName=tsx
111
111
  tsx: '4.23.15',
112
- // renovate: datasource=npm depName=better-auth
113
- 'better-auth': '1.7.7',
114
- // renovate: datasource=npm depName=@better-auth/expo
115
- '@better-auth/expo': '1.7.7',
116
- // renovate: datasource=npm depName=expo-secure-store
117
- 'expo-secure-store': '57.0.4',
118
- // renovate: datasource=npm depName=expo-network
119
- 'expo-network': '57.0.2',
120
- // renovate: datasource=npm depName=@better-auth/drizzle-adapter
121
- '@better-auth/drizzle-adapter': '1.7.7',
122
112
  // renovate: datasource=npm depName=drizzle-orm
123
113
  'drizzle-orm': '0.45.4',
124
114
  // renovate: datasource=npm depName=wrangler
@@ -148,3 +138,60 @@ export const STACK_DEPENDENCIES = {
148
138
  export const WORKER_DEV_PORTS = {
149
139
  api: { http: 8787, inspector: 9231 },
150
140
  };
141
+ // Independently selected progressive client and service recipes.
142
+ export const CAPABILITY_DEPENDENCIES = {
143
+ // renovate: datasource=npm depName=better-auth
144
+ 'better-auth': '1.7.7',
145
+ // renovate: datasource=npm depName=@better-auth/drizzle-adapter
146
+ '@better-auth/drizzle-adapter': '1.7.7',
147
+ // renovate: datasource=npm depName=@better-auth/expo
148
+ '@better-auth/expo': '1.7.7',
149
+ // renovate: datasource=npm depName=stripe
150
+ stripe: '23.0.0',
151
+ // renovate: datasource=npm depName=react-native-purchases
152
+ 'react-native-purchases': '10.14.0',
153
+ // renovate: datasource=npm depName=wxt
154
+ wxt: '0.21.5',
155
+ // renovate: datasource=npm depName=@wxt-dev/module-react
156
+ '@wxt-dev/module-react': '1.2.2',
157
+ // renovate: datasource=npm depName=expo
158
+ expo: '56.0.12',
159
+ // renovate: datasource=npm depName=react
160
+ react: '19.2.3',
161
+ // renovate: datasource=npm depName=react-native
162
+ 'react-native': '0.85.3',
163
+ // renovate: datasource=npm depName=expo-secure-store
164
+ 'expo-secure-store': '56.0.4',
165
+ // renovate: datasource=npm depName=expo-linking
166
+ 'expo-linking': '56.0.14',
167
+ // renovate: datasource=npm depName=@types/react
168
+ '@types/react': '19.2.14',
169
+ // renovate: datasource=npm depName=babel-preset-expo
170
+ 'babel-preset-expo': '56.0.8',
171
+ // renovate: datasource=npm depName=nativewind
172
+ nativewind: '4.2.7',
173
+ // renovate: datasource=npm depName=react-native-css-interop
174
+ 'react-native-css-interop': '0.2.7',
175
+ // renovate: datasource=npm depName=react-native-reanimated
176
+ 'react-native-reanimated': '4.3.1',
177
+ // renovate: datasource=npm depName=react-native-worklets
178
+ 'react-native-worklets': '0.8.3',
179
+ // renovate: datasource=npm depName=react-native-safe-area-context
180
+ 'react-native-safe-area-context': '5.7.0',
181
+ // renovate: datasource=npm depName=class-variance-authority
182
+ 'class-variance-authority': '0.7.1',
183
+ // renovate: datasource=npm depName=clsx
184
+ clsx: '2.1.1',
185
+ // renovate: datasource=npm depName=tailwind-merge
186
+ 'tailwind-merge': '3.5.0',
187
+ // renovate: datasource=npm depName=tailwindcss-animate
188
+ 'tailwindcss-animate': '1.0.7',
189
+ // renovate: datasource=npm depName=@rn-primitives/portal
190
+ '@rn-primitives/portal': '1.5.2',
191
+ // renovate: datasource=npm depName=@rn-primitives/slot
192
+ '@rn-primitives/slot': '1.5.2',
193
+ // renovate: datasource=npm depName=tailwindcss
194
+ tailwindcss: '3.4.19',
195
+ // renovate: datasource=npm depName=@types/react-dom
196
+ '@types/react-dom': '19.2.3',
197
+ };
package/dist/index.d.ts CHANGED
@@ -1,44 +1,3 @@
1
- export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions, scaffoldStandardProject, } from './standard.js';
1
+ export { parseStandardOptions, scaffoldStandardProject, STANDARD_PRODUCTS, STANDARD_USAGE, } from './standard.js';
2
2
  export type { StandardOptions, StandardProduct, StandardRunner } from './standard.js';
3
3
  export { GENERATOR_VERSION } from './version.js';
4
- export { CAPABILITIES, CAPABILITY_REGISTRY, createSetupPlan } from './capabilities.js';
5
- export type { Capability } from './capabilities.js';
6
- export { inspectProject, validateSetupPlan } from './readiness.js';
7
- export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
8
- export type { ApplicationProject, DeploymentTarget, DeliveryRunner } from './delivery.js';
9
- export { planProvisioning, provisionApplication } from './provision.js';
10
- export { setupRepository, githubRepository } from './repository.js';
11
- export { inspectProviderReadiness } from './provider-readiness.js';
12
- export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
13
- export type { StackItemId } from './stack-registry.js';
14
- export type { StackRegistryItem } from './registry/types.js';
15
- export { inspectWorkspaceGraph } from './workspace-graph.js';
16
- export { resolveStackRegistry } from './registry/resolve.js';
17
- export type { ResolvedStackRegistry } from './registry/resolve.js';
18
- export { addStackItems } from './registry/add.js';
19
- export type { AddRequest } from './registry/add.js';
20
- export { PROVIDER_AUTH, requiredProviders, authenticateProviders } from './provider-auth.js';
21
- export type { ProviderAuth, AuthOptions, AuthCheck } from './provider-auth.js';
22
- export { buildMobileApplication } from './mobile-delivery.js';
23
- export type { MobileBuildOptions } from './mobile-delivery.js';
24
- export { shipCloudflareApplication } from './ship.js';
25
- export { shipSelectedStack } from './ship.js';
26
- export { planProviderProvisioning, provisionSelectedProviders } from './providers/provision.js';
27
- export { providerConfigurationTemplate } from './providers/config.js';
28
- export type { ProviderConfiguration, IntegrationProvider } from './providers/config.js';
29
- export { validateProviderConfiguration } from './providers/config.js';
30
- export { PROVIDER_CONFIGURATION_SCHEMA } from './providers/schema.js';
31
- export { PROVIDER_DEFINITIONS } from './providers/definitions.js';
32
- export type { ProviderSettingsById } from './providers/definitions.js';
33
- export { applicationRuntime } from './providers/runtime.js';
34
- export { readLifecycleOperation } from './lifecycle.js';
35
- export type { LifecycleOperation, OperationState, PhaseState } from './lifecycle.js';
36
- export { integrationStatus, recoverIntegrationResource } from './providers/recovery.js';
37
- export type { IntegrationRecoveryRequest } from './providers/recovery.js';
38
- export { CAPABILITY_CONTRACT, formatCapabilityContract } from './capability-contract.js';
39
- export type { CapabilitySupport, CapabilityEvidence, CapabilityStage, ProductCapability, } from './capability-contract.js';
40
- export { recoverDeliveryLock } from './project-state.js';
41
- export { inspectApplication } from './project-inspector.js';
42
- export type { ProjectInspection } from './inspector-model.js';
43
- export { PROJECT_CONFIG_FILE, readProjectConfig, readProjectSection, writeProjectSection, hasProjectSection, } from './project-config.js';
44
- export type { ProjectConfig, ProjectSection } from './project-config.js';
package/dist/index.js CHANGED
@@ -1,28 +1,2 @@
1
- export { STANDARD_PRODUCTS, STANDARD_USAGE, parseStandardOptions, scaffoldStandardProject, } from './standard.js';
1
+ export { parseStandardOptions, scaffoldStandardProject, STANDARD_PRODUCTS, STANDARD_USAGE, } from './standard.js';
2
2
  export { GENERATOR_VERSION } from './version.js';
3
- export { CAPABILITIES, CAPABILITY_REGISTRY, createSetupPlan } from './capabilities.js';
4
- export { inspectProject, validateSetupPlan } from './readiness.js';
5
- export { registerApplication, readApplication, connectApplication, planDelivery, shipApplication, applicationStatus, verifyApplication, rollbackApplication, recoverApplication, } from './delivery.js';
6
- export { planProvisioning, provisionApplication } from './provision.js';
7
- export { setupRepository, githubRepository } from './repository.js';
8
- export { inspectProviderReadiness } from './provider-readiness.js';
9
- export { STACK_REGISTRY, STACK_ITEMS, getStackItem } from './stack-registry.js';
10
- export { inspectWorkspaceGraph } from './workspace-graph.js';
11
- export { resolveStackRegistry } from './registry/resolve.js';
12
- export { addStackItems } from './registry/add.js';
13
- export { PROVIDER_AUTH, requiredProviders, authenticateProviders } from './provider-auth.js';
14
- export { buildMobileApplication } from './mobile-delivery.js';
15
- export { shipCloudflareApplication } from './ship.js';
16
- export { shipSelectedStack } from './ship.js';
17
- export { planProviderProvisioning, provisionSelectedProviders } from './providers/provision.js';
18
- export { providerConfigurationTemplate } from './providers/config.js';
19
- export { validateProviderConfiguration } from './providers/config.js';
20
- export { PROVIDER_CONFIGURATION_SCHEMA } from './providers/schema.js';
21
- export { PROVIDER_DEFINITIONS } from './providers/definitions.js';
22
- export { applicationRuntime } from './providers/runtime.js';
23
- export { readLifecycleOperation } from './lifecycle.js';
24
- export { integrationStatus, recoverIntegrationResource } from './providers/recovery.js';
25
- export { CAPABILITY_CONTRACT, formatCapabilityContract } from './capability-contract.js';
26
- export { recoverDeliveryLock } from './project-state.js';
27
- export { inspectApplication } from './project-inspector.js';
28
- export { PROJECT_CONFIG_FILE, readProjectConfig, readProjectSection, writeProjectSection, hasProjectSection, } from './project-config.js';