anhedral 0.15.0 → 0.17.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 (246) hide show
  1. package/README.md +82 -34
  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 +0 -11
  39. package/assets/ui/catalog.json +891 -0
  40. package/assets/ui/extensions/registry.json +6 -0
  41. package/dist/bin.js +7 -12
  42. package/dist/capabilities.d.ts +4 -33
  43. package/dist/capabilities.js +2 -66
  44. package/dist/capability-catalog.d.ts +83 -0
  45. package/dist/capability-catalog.js +121 -0
  46. package/dist/capability-command.d.ts +3 -0
  47. package/dist/capability-command.js +188 -0
  48. package/dist/capability-editor.d.ts +17 -0
  49. package/dist/capability-editor.js +97 -0
  50. package/dist/capability-recipes.d.ts +4 -0
  51. package/dist/capability-recipes.js +520 -0
  52. package/dist/capability-references.d.ts +4 -0
  53. package/dist/capability-references.js +7 -0
  54. package/dist/cli-commands.d.ts +1 -2
  55. package/dist/cli-commands.js +10 -104
  56. package/dist/cli-output.d.ts +1 -2
  57. package/dist/cli-output.js +6 -251
  58. package/dist/command-schema.js +39 -322
  59. package/dist/dependencies.d.ts +29 -9
  60. package/dist/dependencies.js +57 -64
  61. package/dist/index.d.ts +1 -42
  62. package/dist/index.js +1 -27
  63. package/dist/platforms/web.d.ts +1 -1
  64. package/dist/platforms/web.js +27 -75
  65. package/dist/project-config.d.ts +2 -13
  66. package/dist/project-config.js +10 -82
  67. package/dist/registry/options.js +1 -5
  68. package/dist/registry/resolve.d.ts +1 -1
  69. package/dist/registry/resolve.js +4 -10
  70. package/dist/registry/usage.js +3 -9
  71. package/dist/scaffold/backend.js +0 -3
  72. package/dist/scaffold/database.js +2 -1
  73. package/dist/scaffold/documentation.js +56 -25
  74. package/dist/scaffold/stack-documentation.js +1 -1
  75. package/dist/scaffold/storage.d.ts +2 -0
  76. package/dist/scaffold/storage.js +21 -0
  77. package/dist/scaffold/workspace.js +21 -22
  78. package/dist/stack-registry.d.ts +2 -10
  79. package/dist/stack-registry.js +12 -98
  80. package/dist/standard.js +1 -11
  81. package/dist/ui-catalog.d.ts +26 -0
  82. package/dist/ui-catalog.js +31 -0
  83. package/dist/ui-command.d.ts +3 -0
  84. package/dist/ui-command.js +219 -0
  85. package/dist/ui-project.d.ts +22 -0
  86. package/dist/ui-project.js +110 -0
  87. package/dist/version.d.ts +1 -1
  88. package/dist/version.js +1 -1
  89. package/docs/anhedral-stack.md +12 -23
  90. package/docs/assets/anhedral-stack-light.png +0 -0
  91. package/docs/assets/anhedral-stack.png +0 -0
  92. package/docs/capabilities.md +110 -0
  93. package/docs/native-ui.md +47 -0
  94. package/docs/software-factory.md +35 -50
  95. package/docs/stack-standard.md +19 -70
  96. package/docs/ui.md +33 -0
  97. package/docs/verification.md +6 -876
  98. package/package.json +21 -16
  99. package/assets/ui/native/button.tsx +0 -85
  100. package/assets/ui/native/card.tsx +0 -33
  101. package/assets/ui/native/dialog.tsx +0 -75
  102. package/assets/ui/native/input.tsx +0 -27
  103. package/assets/ui/native/label.tsx +0 -4
  104. package/assets/ui/native/layout.tsx +0 -26
  105. package/assets/ui/native/text.tsx +0 -20
  106. package/assets/ui/native/theme-switcher.tsx +0 -22
  107. package/assets/ui/theme-storage.ts +0 -25
  108. package/assets/ui/theme.tsx +0 -66
  109. package/dist/access.d.ts +0 -10
  110. package/dist/access.js +0 -93
  111. package/dist/auth-schema-snapshot.d.ts +0 -346
  112. package/dist/auth-schema-snapshot.js +0 -347
  113. package/dist/auth-schema.d.ts +0 -1
  114. package/dist/auth-schema.js +0 -57
  115. package/dist/capability-contract.d.ts +0 -47
  116. package/dist/capability-contract.js +0 -129
  117. package/dist/catalog-model.d.ts +0 -24
  118. package/dist/catalog-model.js +0 -1
  119. package/dist/catalog-registration.d.ts +0 -16
  120. package/dist/catalog-registration.js +0 -22
  121. package/dist/catalog-snapshot.d.ts +0 -5
  122. package/dist/catalog-snapshot.js +0 -97
  123. package/dist/cli-delivery.d.ts +0 -3
  124. package/dist/cli-delivery.js +0 -112
  125. package/dist/cloudflare.d.ts +0 -25
  126. package/dist/cloudflare.js +0 -226
  127. package/dist/delivery-evidence.d.ts +0 -62
  128. package/dist/delivery-evidence.js +0 -157
  129. package/dist/delivery.d.ts +0 -82
  130. package/dist/delivery.js +0 -489
  131. package/dist/inspector-model.d.ts +0 -123
  132. package/dist/inspector-model.js +0 -1
  133. package/dist/integration-service-readers.d.ts +0 -12
  134. package/dist/integration-service-readers.js +0 -92
  135. package/dist/lifecycle-model.d.ts +0 -15
  136. package/dist/lifecycle-model.js +0 -20
  137. package/dist/lifecycle.d.ts +0 -11
  138. package/dist/lifecycle.js +0 -91
  139. package/dist/management.d.ts +0 -3
  140. package/dist/management.js +0 -47
  141. package/dist/mobile-delivery.d.ts +0 -77
  142. package/dist/mobile-delivery.js +0 -370
  143. package/dist/platforms/mobile.d.ts +0 -2
  144. package/dist/platforms/mobile.js +0 -156
  145. package/dist/project-catalog.d.ts +0 -41
  146. package/dist/project-catalog.js +0 -288
  147. package/dist/project-inspector.d.ts +0 -4
  148. package/dist/project-inspector.js +0 -671
  149. package/dist/project-lifecycle.d.ts +0 -25
  150. package/dist/project-lifecycle.js +0 -57
  151. package/dist/project-state.d.ts +0 -47
  152. package/dist/project-state.js +0 -480
  153. package/dist/provider-auth.d.ts +0 -41
  154. package/dist/provider-auth.js +0 -180
  155. package/dist/provider-readiness.d.ts +0 -30
  156. package/dist/provider-readiness.js +0 -85
  157. package/dist/providers/adapters.d.ts +0 -17
  158. package/dist/providers/adapters.js +0 -103
  159. package/dist/providers/api.d.ts +0 -29
  160. package/dist/providers/api.js +0 -253
  161. package/dist/providers/config.d.ts +0 -15
  162. package/dist/providers/config.js +0 -136
  163. package/dist/providers/definitions.d.ts +0 -115
  164. package/dist/providers/definitions.js +0 -42
  165. package/dist/providers/provision.d.ts +0 -24
  166. package/dist/providers/provision.js +0 -76
  167. package/dist/providers/receipts.d.ts +0 -20
  168. package/dist/providers/receipts.js +0 -56
  169. package/dist/providers/recovery-verification.d.ts +0 -7
  170. package/dist/providers/recovery-verification.js +0 -52
  171. package/dist/providers/recovery.d.ts +0 -30
  172. package/dist/providers/recovery.js +0 -34
  173. package/dist/providers/runtime.d.ts +0 -10
  174. package/dist/providers/runtime.js +0 -234
  175. package/dist/providers/schema.d.ts +0 -28
  176. package/dist/providers/schema.js +0 -49
  177. package/dist/providers/state.d.ts +0 -55
  178. package/dist/providers/state.js +0 -283
  179. package/dist/provision.d.ts +0 -47
  180. package/dist/provision.js +0 -208
  181. package/dist/r2-service-data.d.ts +0 -2
  182. package/dist/r2-service-data.js +0 -136
  183. package/dist/readiness.d.ts +0 -23
  184. package/dist/readiness.js +0 -117
  185. package/dist/registry/add.d.ts +0 -24
  186. package/dist/registry/add.js +0 -210
  187. package/dist/registry/bootstrap.d.ts +0 -3
  188. package/dist/registry/bootstrap.js +0 -5
  189. package/dist/registry/commands.d.ts +0 -3
  190. package/dist/registry/commands.js +0 -83
  191. package/dist/registry/preview.d.ts +0 -11
  192. package/dist/registry/preview.js +0 -91
  193. package/dist/registry/receipt.d.ts +0 -3
  194. package/dist/registry/receipt.js +0 -68
  195. package/dist/repository.d.ts +0 -24
  196. package/dist/repository.js +0 -96
  197. package/dist/scaffold/auth.d.ts +0 -2
  198. package/dist/scaffold/auth.js +0 -76
  199. package/dist/scaffold/billing-config.d.ts +0 -1
  200. package/dist/scaffold/billing-config.js +0 -73
  201. package/dist/scaffold/billing-contracts.d.ts +0 -2
  202. package/dist/scaffold/billing-contracts.js +0 -48
  203. package/dist/scaffold/billing-providers.d.ts +0 -1
  204. package/dist/scaffold/billing-providers.js +0 -249
  205. package/dist/scaffold/billing-schema.d.ts +0 -1
  206. package/dist/scaffold/billing-schema.js +0 -34
  207. package/dist/scaffold/billing-security.d.ts +0 -1
  208. package/dist/scaffold/billing-security.js +0 -46
  209. package/dist/scaffold/billing-server.d.ts +0 -1
  210. package/dist/scaffold/billing-server.js +0 -139
  211. package/dist/scaffold/billing-store.d.ts +0 -1
  212. package/dist/scaffold/billing-store.js +0 -72
  213. package/dist/scaffold/billing.d.ts +0 -2
  214. package/dist/scaffold/billing.js +0 -208
  215. package/dist/scaffold/expo-auth.d.ts +0 -3
  216. package/dist/scaffold/expo-auth.js +0 -203
  217. package/dist/scaffold/expo-billing.d.ts +0 -3
  218. package/dist/scaffold/expo-billing.js +0 -257
  219. package/dist/scaffold/expo-runtime.d.ts +0 -3
  220. package/dist/scaffold/expo-runtime.js +0 -43
  221. package/dist/scaffold/integrations.d.ts +0 -2
  222. package/dist/scaffold/integrations.js +0 -11
  223. package/dist/scaffold/managed-email.d.ts +0 -3
  224. package/dist/scaffold/managed-email.js +0 -47
  225. package/dist/scaffold/native-ui.d.ts +0 -2
  226. package/dist/scaffold/native-ui.js +0 -69
  227. package/dist/scaffold/password-reset.d.ts +0 -1
  228. package/dist/scaffold/password-reset.js +0 -99
  229. package/dist/scaffold/private-files.d.ts +0 -2
  230. package/dist/scaffold/private-files.js +0 -78
  231. package/dist/scaffold/web-billing.d.ts +0 -2
  232. package/dist/scaffold/web-billing.js +0 -48
  233. package/dist/service-deletion.d.ts +0 -29
  234. package/dist/service-deletion.js +0 -195
  235. package/dist/service-descriptor.d.ts +0 -10
  236. package/dist/service-descriptor.js +0 -71
  237. package/dist/service-model.d.ts +0 -49
  238. package/dist/service-model.js +0 -8
  239. package/dist/service-operations.d.ts +0 -29
  240. package/dist/service-operations.js +0 -48
  241. package/dist/service-readers.d.ts +0 -8
  242. package/dist/service-readers.js +0 -216
  243. package/dist/services-command.d.ts +0 -39
  244. package/dist/services-command.js +0 -96
  245. package/dist/ship.d.ts +0 -35
  246. package/dist/ship.js +0 -107
@@ -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
  };
@@ -2,25 +2,16 @@ export interface DependencyGroup {
2
2
  dependencies?: Record<string, string>;
3
3
  devDependencies?: Record<string, string>;
4
4
  }
5
- export declare const NATIVE_ESLINT_VERSION = "10.0.3";
6
- export declare const MOBILE_APP_DEPENDENCIES: DependencyGroup;
7
5
  export declare const WEB_DEPENDENCIES: DependencyGroup;
8
- export declare const NATIVE_UI_DEPENDENCIES: DependencyGroup;
9
6
  export declare const OPENNEXT_GLOB_VERSION = "10.5.0";
10
7
  export declare const WORKSPACE_NODE_ENGINE = "^22.13.0 || >=24.0.0";
11
8
  export declare const PACKAGE_MANAGER = "pnpm@10.34.5";
12
- export declare const EAS_CLI_VERSION = "21.0.1";
13
9
  export declare const STACK_DEPENDENCIES: {
14
10
  readonly zod: "4.6.6";
15
11
  readonly '@typescript-eslint/parser': "8.71.2";
16
12
  readonly '@typescript-eslint/eslint-plugin': "8.71.2";
17
13
  readonly turbo: "2.11.7";
18
14
  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
15
  readonly 'drizzle-orm': "0.45.4";
25
16
  readonly wrangler: "4.151.0";
26
17
  readonly typescript: "5.9.3";
@@ -41,3 +32,32 @@ export declare const WORKER_DEV_PORTS: {
41
32
  readonly inspector: 9231;
42
33
  };
43
34
  };
35
+ export declare const CAPABILITY_DEPENDENCIES: {
36
+ readonly 'better-auth': "1.7.7";
37
+ readonly '@better-auth/drizzle-adapter': "1.7.7";
38
+ readonly '@better-auth/expo': "1.7.7";
39
+ readonly stripe: "23.0.0";
40
+ readonly 'react-native-purchases': "10.14.0";
41
+ readonly wxt: "0.21.5";
42
+ readonly '@wxt-dev/module-react': "1.2.2";
43
+ readonly expo: "56.0.12";
44
+ readonly react: "19.2.3";
45
+ readonly 'react-native': "0.85.3";
46
+ readonly 'expo-secure-store': "56.0.4";
47
+ readonly 'expo-linking': "56.0.14";
48
+ readonly '@types/react': "19.2.14";
49
+ readonly 'babel-preset-expo': "56.0.8";
50
+ readonly nativewind: "4.2.7";
51
+ readonly 'react-native-css-interop': "0.2.7";
52
+ readonly 'react-native-reanimated': "4.3.1";
53
+ readonly 'react-native-worklets': "0.8.3";
54
+ readonly 'react-native-safe-area-context': "5.7.0";
55
+ readonly 'class-variance-authority': "0.7.1";
56
+ readonly clsx: "2.1.1";
57
+ readonly 'tailwind-merge': "3.5.0";
58
+ readonly 'tailwindcss-animate': "1.0.7";
59
+ readonly '@rn-primitives/portal': "1.5.2";
60
+ readonly '@rn-primitives/slot': "1.5.2";
61
+ readonly tailwindcss: "3.4.19";
62
+ readonly '@types/react-dom': "19.2.3";
63
+ };
@@ -1,45 +1,3 @@
1
- // renovate: datasource=npm depName=eslint
2
- export const NATIVE_ESLINT_VERSION = '10.0.3';
3
- export const MOBILE_APP_DEPENDENCIES = {
4
- dependencies: {
5
- // renovate: datasource=npm depName=expo
6
- expo: '57.0.8',
7
- // renovate: datasource=npm depName=expo-dev-client
8
- 'expo-dev-client': '57.0.20',
9
- // renovate: datasource=npm depName=expo-linking
10
- 'expo-linking': '57.0.4',
11
- // renovate: datasource=npm depName=expo-router
12
- 'expo-router': '57.0.8',
13
- // renovate: datasource=npm depName=expo-status-bar
14
- 'expo-status-bar': '57.0.1',
15
- // renovate: datasource=npm depName=react
16
- react: '19.2.3',
17
- // renovate: datasource=npm depName=react-native
18
- 'react-native': '0.86.0',
19
- // renovate: datasource=npm depName=react-native-reanimated
20
- 'react-native-reanimated': '4.5.0',
21
- // renovate: datasource=npm depName=react-native-safe-area-context
22
- 'react-native-safe-area-context': '5.7.0',
23
- // renovate: datasource=npm depName=react-native-screens
24
- 'react-native-screens': '4.26.2',
25
- // renovate: datasource=npm depName=react-native-worklets
26
- 'react-native-worklets': '0.10.0',
27
- },
28
- devDependencies: {
29
- // renovate: datasource=npm depName=@babel/core
30
- '@babel/core': '7.29.7',
31
- // renovate: datasource=npm depName=babel-preset-expo
32
- 'babel-preset-expo': '57.0.14',
33
- // renovate: datasource=npm depName=@testing-library/dom
34
- '@testing-library/dom': '10.4.1',
35
- // renovate: datasource=npm depName=@react-native/metro-config
36
- '@react-native/metro-config': '0.86.0',
37
- // renovate: datasource=npm depName=@types/react
38
- '@types/react': '19.2.10',
39
- // renovate: datasource=npm depName=typescript
40
- typescript: '6.0.3',
41
- },
42
- };
43
1
  export const WEB_DEPENDENCIES = {
44
2
  dependencies: {
45
3
  // renovate: datasource=npm depName=next
@@ -48,8 +6,6 @@ export const WEB_DEPENDENCIES = {
48
6
  react: '19.2.3',
49
7
  // renovate: datasource=npm depName=react-dom
50
8
  'react-dom': '19.2.3',
51
- // renovate: datasource=npm depName=better-auth
52
- 'better-auth': '1.7.7',
53
9
  // renovate: datasource=npm depName=server-only
54
10
  'server-only': '0.0.1',
55
11
  // renovate: datasource=npm depName=@base-ui/react
@@ -84,20 +40,10 @@ export const WEB_DEPENDENCIES = {
84
40
  wrangler: '4.151.0',
85
41
  },
86
42
  };
87
- export const NATIVE_UI_DEPENDENCIES = {
88
- dependencies: {
89
- // renovate: datasource=npm depName=@react-native-async-storage/async-storage
90
- '@react-native-async-storage/async-storage': '2.2.0',
91
- // renovate: datasource=npm depName=expo-system-ui
92
- 'expo-system-ui': '57.0.3',
93
- },
94
- };
95
43
  // renovate: datasource=npm depName=glob
96
44
  export const OPENNEXT_GLOB_VERSION = '10.5.0';
97
45
  export const WORKSPACE_NODE_ENGINE = '^22.13.0 || >=24.0.0';
98
46
  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
47
  export const STACK_DEPENDENCIES = {
102
48
  // renovate: datasource=npm depName=zod
103
49
  zod: '4.6.6',
@@ -109,16 +55,6 @@ export const STACK_DEPENDENCIES = {
109
55
  turbo: '2.11.7',
110
56
  // renovate: datasource=npm depName=tsx
111
57
  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
58
  // renovate: datasource=npm depName=drizzle-orm
123
59
  'drizzle-orm': '0.45.4',
124
60
  // renovate: datasource=npm depName=wrangler
@@ -148,3 +84,60 @@ export const STACK_DEPENDENCIES = {
148
84
  export const WORKER_DEV_PORTS = {
149
85
  api: { http: 8787, inspector: 9231 },
150
86
  };
87
+ // Independently selected progressive client and service recipes.
88
+ export const CAPABILITY_DEPENDENCIES = {
89
+ // renovate: datasource=npm depName=better-auth
90
+ 'better-auth': '1.7.7',
91
+ // renovate: datasource=npm depName=@better-auth/drizzle-adapter
92
+ '@better-auth/drizzle-adapter': '1.7.7',
93
+ // renovate: datasource=npm depName=@better-auth/expo
94
+ '@better-auth/expo': '1.7.7',
95
+ // renovate: datasource=npm depName=stripe
96
+ stripe: '23.0.0',
97
+ // renovate: datasource=npm depName=react-native-purchases
98
+ 'react-native-purchases': '10.14.0',
99
+ // renovate: datasource=npm depName=wxt
100
+ wxt: '0.21.5',
101
+ // renovate: datasource=npm depName=@wxt-dev/module-react
102
+ '@wxt-dev/module-react': '1.2.2',
103
+ // renovate: datasource=npm depName=expo
104
+ expo: '56.0.12',
105
+ // renovate: datasource=npm depName=react
106
+ react: '19.2.3',
107
+ // renovate: datasource=npm depName=react-native
108
+ 'react-native': '0.85.3',
109
+ // renovate: datasource=npm depName=expo-secure-store
110
+ 'expo-secure-store': '56.0.4',
111
+ // renovate: datasource=npm depName=expo-linking
112
+ 'expo-linking': '56.0.14',
113
+ // renovate: datasource=npm depName=@types/react
114
+ '@types/react': '19.2.14',
115
+ // renovate: datasource=npm depName=babel-preset-expo
116
+ 'babel-preset-expo': '56.0.8',
117
+ // renovate: datasource=npm depName=nativewind
118
+ nativewind: '4.2.7',
119
+ // renovate: datasource=npm depName=react-native-css-interop
120
+ 'react-native-css-interop': '0.2.7',
121
+ // renovate: datasource=npm depName=react-native-reanimated
122
+ 'react-native-reanimated': '4.3.1',
123
+ // renovate: datasource=npm depName=react-native-worklets
124
+ 'react-native-worklets': '0.8.3',
125
+ // renovate: datasource=npm depName=react-native-safe-area-context
126
+ 'react-native-safe-area-context': '5.7.0',
127
+ // renovate: datasource=npm depName=class-variance-authority
128
+ 'class-variance-authority': '0.7.1',
129
+ // renovate: datasource=npm depName=clsx
130
+ clsx: '2.1.1',
131
+ // renovate: datasource=npm depName=tailwind-merge
132
+ 'tailwind-merge': '3.5.0',
133
+ // renovate: datasource=npm depName=tailwindcss-animate
134
+ 'tailwindcss-animate': '1.0.7',
135
+ // renovate: datasource=npm depName=@rn-primitives/portal
136
+ '@rn-primitives/portal': '1.5.2',
137
+ // renovate: datasource=npm depName=@rn-primitives/slot
138
+ '@rn-primitives/slot': '1.5.2',
139
+ // renovate: datasource=npm depName=tailwindcss
140
+ tailwindcss: '3.4.19',
141
+ // renovate: datasource=npm depName=@types/react-dom
142
+ '@types/react-dom': '19.2.3',
143
+ };
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';