anhedral 0.13.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 (360) hide show
  1. package/README.md +23 -229
  2. package/assets/patches/audit-deps.mjs +12 -2
  3. package/assets/stack/ai-schema.ts.txt +5 -0
  4. package/assets/stack/ai.ts.txt +30 -0
  5. package/assets/stack/api-index.ts.txt +15 -0
  6. package/assets/stack/auth-features.ts.txt +4 -0
  7. package/assets/stack/auth-journal.json.txt +13 -0
  8. package/assets/stack/auth-migration.sql.txt +53 -0
  9. package/assets/stack/auth-routes.ts.txt +11 -0
  10. package/assets/stack/auth-schema.ts.txt +64 -0
  11. package/assets/stack/auth-snapshot.json.txt +346 -0
  12. package/assets/stack/auth.ts.txt +32 -0
  13. package/assets/stack/billing-mode.ts.txt +8 -0
  14. package/assets/stack/billing-schema.ts.txt +11 -0
  15. package/assets/stack/desktop.rs.txt +21 -0
  16. package/assets/stack/entitlement-guard.ts.txt +32 -0
  17. package/assets/stack/entitlements.ts.txt +8 -0
  18. package/assets/stack/events-schema.ts.txt +12 -0
  19. package/assets/stack/events.ts.txt +59 -0
  20. package/assets/stack/mobile-auth.ts.txt +25 -0
  21. package/assets/stack/mobile-billing.tsx.txt +63 -0
  22. package/assets/stack/mobile-session.tsx.txt +83 -0
  23. package/assets/stack/native-button.tsx.txt +108 -0
  24. package/assets/stack/native-global.css.txt +4 -0
  25. package/assets/stack/native-lib-utils.ts.txt +5 -0
  26. package/assets/stack/native-metro.config.js.txt +6 -0
  27. package/assets/stack/native-nativewind-env.d.ts.txt +1 -0
  28. package/assets/stack/native-tailwind.config.js.txt +73 -0
  29. package/assets/stack/native-text.tsx.txt +89 -0
  30. package/assets/stack/purchases.ts.txt +65 -0
  31. package/assets/stack/revenuecat.ts.txt +88 -0
  32. package/assets/stack/rtc-schema.ts.txt +10 -0
  33. package/assets/stack/rtc.ts.txt +122 -0
  34. package/assets/stack/security.ts.txt +31 -0
  35. package/assets/stack/storage.ts.txt +36 -0
  36. package/assets/stack/stripe.ts.txt +126 -0
  37. package/assets/stack/web-sign-in.tsx.txt +51 -0
  38. package/assets/ui/LICENSE.react-native-reusables +21 -0
  39. package/assets/ui/LICENSE.shadcn +21 -0
  40. package/assets/ui/UPSTREAM.json +39 -0
  41. package/assets/ui/catalog.json +891 -0
  42. package/assets/ui/extensions/registry.json +6 -0
  43. package/assets/ui/native/_controls.tsx +521 -0
  44. package/assets/ui/native/_core.tsx +118 -0
  45. package/assets/ui/native/_data.tsx +200 -0
  46. package/assets/ui/native/_display.tsx +453 -0
  47. package/assets/ui/native/_feedback.tsx +242 -0
  48. package/assets/ui/native/_legacy-dialog.tsx +38 -0
  49. package/assets/ui/native/_motion.tsx +520 -0
  50. package/assets/ui/native/_overlay.tsx +402 -0
  51. package/assets/ui/native/_selection.tsx +366 -0
  52. package/assets/ui/native/accordion.tsx +1 -0
  53. package/assets/ui/native/alert-dialog.tsx +11 -0
  54. package/assets/ui/native/alert.tsx +1 -0
  55. package/assets/ui/native/aspect-ratio.tsx +1 -0
  56. package/assets/ui/native/attachment.tsx +8 -0
  57. package/assets/ui/native/avatar.tsx +8 -0
  58. package/assets/ui/native/badge.tsx +1 -0
  59. package/assets/ui/native/breadcrumb.tsx +9 -0
  60. package/assets/ui/native/bubble.tsx +1 -0
  61. package/assets/ui/native/button-group.tsx +1 -0
  62. package/assets/ui/native/button.tsx +86 -0
  63. package/assets/ui/native/calendar.tsx +170 -0
  64. package/assets/ui/native/card.tsx +44 -0
  65. package/assets/ui/native/carousel.tsx +1 -0
  66. package/assets/ui/native/chart.tsx +193 -0
  67. package/assets/ui/native/checkbox.tsx +1 -0
  68. package/assets/ui/native/code-block.tsx +137 -0
  69. package/assets/ui/native/collapsible.tsx +1 -0
  70. package/assets/ui/native/combobox.tsx +1 -0
  71. package/assets/ui/native/command.tsx +11 -0
  72. package/assets/ui/native/context-menu.tsx +16 -0
  73. package/assets/ui/native/data-table.tsx +1 -0
  74. package/assets/ui/native/date-picker.tsx +43 -0
  75. package/assets/ui/native/dialog.tsx +15 -0
  76. package/assets/ui/native/direction.tsx +1 -0
  77. package/assets/ui/native/drawer.tsx +10 -0
  78. package/assets/ui/native/dropdown-menu.tsx +16 -0
  79. package/assets/ui/native/empty.tsx +8 -0
  80. package/assets/ui/native/field.tsx +13 -0
  81. package/assets/ui/native/hover-card.tsx +1 -0
  82. package/assets/ui/native/input-group.tsx +8 -0
  83. package/assets/ui/native/input-otp.tsx +1 -0
  84. package/assets/ui/native/input.tsx +28 -0
  85. package/assets/ui/native/item.tsx +12 -0
  86. package/assets/ui/native/kbd.tsx +1 -0
  87. package/assets/ui/native/label.tsx +4 -0
  88. package/assets/ui/native/layout.tsx +26 -0
  89. package/assets/ui/native/marker.tsx +1 -0
  90. package/assets/ui/native/menubar.tsx +17 -0
  91. package/assets/ui/native/message-scroller.tsx +6 -0
  92. package/assets/ui/native/message.tsx +10 -0
  93. package/assets/ui/native/native-select.tsx +1 -0
  94. package/assets/ui/native/navigation-menu.tsx +10 -0
  95. package/assets/ui/native/pagination.tsx +9 -0
  96. package/assets/ui/native/popover.tsx +1 -0
  97. package/assets/ui/native/progress.tsx +1 -0
  98. package/assets/ui/native/questionnaire.tsx +130 -0
  99. package/assets/ui/native/radio-group.tsx +1 -0
  100. package/assets/ui/native/registry.json +1103 -0
  101. package/assets/ui/native/resizable.tsx +1 -0
  102. package/assets/ui/native/scroll-area.tsx +1 -0
  103. package/assets/ui/native/select.tsx +11 -0
  104. package/assets/ui/native/separator.tsx +1 -0
  105. package/assets/ui/native/sheet.tsx +10 -0
  106. package/assets/ui/native/sidebar.tsx +22 -0
  107. package/assets/ui/native/skeleton.tsx +1 -0
  108. package/assets/ui/native/slider.tsx +1 -0
  109. package/assets/ui/native/spinner.tsx +1 -0
  110. package/assets/ui/native/switch.tsx +1 -0
  111. package/assets/ui/native/table.tsx +10 -0
  112. package/assets/ui/native/tabs.tsx +1 -0
  113. package/assets/ui/native/text.tsx +20 -0
  114. package/assets/ui/native/textarea.tsx +1 -0
  115. package/assets/ui/native/theme-switcher.tsx +22 -0
  116. package/assets/ui/native/toast.tsx +11 -0
  117. package/assets/ui/native/toggle-group.tsx +1 -0
  118. package/assets/ui/native/toggle.tsx +1 -0
  119. package/assets/ui/native/tooltip.tsx +1 -0
  120. package/assets/ui/native/trace.tsx +20 -0
  121. package/assets/ui/native/typography.tsx +15 -0
  122. package/assets/ui/theme-storage.ts +25 -0
  123. package/assets/ui/theme.tsx +66 -0
  124. package/assets/ui/web/button.tsx +59 -0
  125. package/assets/ui/web/input.tsx +21 -0
  126. package/assets/ui/web/label.tsx +19 -0
  127. package/dist/bin.js +7 -12
  128. package/dist/capabilities.d.ts +4 -33
  129. package/dist/capabilities.js +2 -84
  130. package/dist/capability-catalog.d.ts +83 -0
  131. package/dist/capability-catalog.js +121 -0
  132. package/dist/capability-command.d.ts +3 -0
  133. package/dist/capability-command.js +188 -0
  134. package/dist/capability-editor.d.ts +17 -0
  135. package/dist/capability-editor.js +97 -0
  136. package/dist/capability-recipes.d.ts +4 -0
  137. package/dist/capability-recipes.js +520 -0
  138. package/dist/capability-references.d.ts +4 -0
  139. package/dist/capability-references.js +7 -0
  140. package/dist/cli-commands.d.ts +1 -2
  141. package/dist/cli-commands.js +10 -104
  142. package/dist/cli-output.d.ts +1 -2
  143. package/dist/cli-output.js +6 -251
  144. package/dist/command-schema.js +40 -374
  145. package/dist/dependencies.d.ts +34 -62
  146. package/dist/dependencies.js +112 -199
  147. package/dist/index.d.ts +1 -45
  148. package/dist/index.js +1 -30
  149. package/dist/platforms/mobile.js +29 -139
  150. package/dist/platforms/web.d.ts +3 -0
  151. package/dist/platforms/web.js +251 -0
  152. package/dist/project-config.d.ts +2 -13
  153. package/dist/project-config.js +10 -83
  154. package/dist/registry/context.js +0 -1
  155. package/dist/registry/options.js +6 -40
  156. package/dist/registry/resolve.d.ts +3 -4
  157. package/dist/registry/resolve.js +18 -108
  158. package/dist/registry/types.d.ts +1 -7
  159. package/dist/registry/usage.js +3 -9
  160. package/dist/runtime-policy.d.ts +0 -2
  161. package/dist/runtime-policy.js +0 -16
  162. package/dist/scaffold/backend.d.ts +0 -4
  163. package/dist/scaffold/backend.js +1 -189
  164. package/dist/scaffold/bootstrap.d.ts +2 -3
  165. package/dist/scaffold/bootstrap.js +37 -43
  166. package/dist/scaffold/compose.js +2 -14
  167. package/dist/scaffold/database.d.ts +1 -1
  168. package/dist/scaffold/database.js +19 -126
  169. package/dist/scaffold/documentation.d.ts +0 -1
  170. package/dist/scaffold/documentation.js +82 -84
  171. package/dist/scaffold/expo-runtime.d.ts +2 -2
  172. package/dist/scaffold/expo-runtime.js +9 -101
  173. package/dist/scaffold/native-ui.d.ts +2 -0
  174. package/dist/scaffold/native-ui.js +74 -0
  175. package/dist/scaffold/stack-documentation.d.ts +0 -1
  176. package/dist/scaffold/stack-documentation.js +3 -49
  177. package/dist/scaffold/storage.d.ts +2 -0
  178. package/dist/scaffold/storage.js +21 -0
  179. package/dist/scaffold/styling.d.ts +1 -1
  180. package/dist/scaffold/styling.js +20 -28
  181. package/dist/scaffold/workspace.js +63 -199
  182. package/dist/stack-registry.d.ts +2 -58
  183. package/dist/stack-registry.js +22 -446
  184. package/dist/standard.js +7 -24
  185. package/dist/ui-catalog.d.ts +26 -0
  186. package/dist/ui-catalog.js +31 -0
  187. package/dist/ui-command.d.ts +3 -0
  188. package/dist/ui-command.js +219 -0
  189. package/dist/ui-project.d.ts +22 -0
  190. package/dist/ui-project.js +110 -0
  191. package/dist/version.d.ts +1 -1
  192. package/dist/version.js +1 -1
  193. package/docs/anhedral-stack.md +4 -119
  194. package/docs/capabilities.md +110 -0
  195. package/docs/native-ui.md +102 -0
  196. package/docs/software-factory.md +16 -577
  197. package/docs/stack-standard.md +11 -307
  198. package/docs/ui.md +33 -0
  199. package/docs/verification.md +511 -0
  200. package/package.json +26 -27
  201. package/dist/access.d.ts +0 -10
  202. package/dist/access.js +0 -93
  203. package/dist/auth-schema-snapshot.d.ts +0 -346
  204. package/dist/auth-schema-snapshot.js +0 -347
  205. package/dist/auth-schema.d.ts +0 -1
  206. package/dist/auth-schema.js +0 -57
  207. package/dist/capability-contract.d.ts +0 -47
  208. package/dist/capability-contract.js +0 -168
  209. package/dist/catalog-model.d.ts +0 -24
  210. package/dist/catalog-model.js +0 -1
  211. package/dist/catalog-registration.d.ts +0 -16
  212. package/dist/catalog-registration.js +0 -22
  213. package/dist/catalog-snapshot.d.ts +0 -5
  214. package/dist/catalog-snapshot.js +0 -97
  215. package/dist/cli-delivery.d.ts +0 -3
  216. package/dist/cli-delivery.js +0 -172
  217. package/dist/cloudflare.d.ts +0 -25
  218. package/dist/cloudflare.js +0 -226
  219. package/dist/delivery-evidence.d.ts +0 -62
  220. package/dist/delivery-evidence.js +0 -186
  221. package/dist/delivery.d.ts +0 -88
  222. package/dist/delivery.js +0 -570
  223. package/dist/inspector-model.d.ts +0 -123
  224. package/dist/inspector-model.js +0 -1
  225. package/dist/integration-service-readers.d.ts +0 -13
  226. package/dist/integration-service-readers.js +0 -173
  227. package/dist/lifecycle-model.d.ts +0 -15
  228. package/dist/lifecycle-model.js +0 -20
  229. package/dist/lifecycle.d.ts +0 -11
  230. package/dist/lifecycle.js +0 -91
  231. package/dist/management.d.ts +0 -3
  232. package/dist/management.js +0 -47
  233. package/dist/mobile-delivery.d.ts +0 -77
  234. package/dist/mobile-delivery.js +0 -366
  235. package/dist/neon-service-data.d.ts +0 -8
  236. package/dist/neon-service-data.js +0 -117
  237. package/dist/platforms/desktop.d.ts +0 -2
  238. package/dist/platforms/desktop.js +0 -415
  239. package/dist/platforms/extension.d.ts +0 -2
  240. package/dist/platforms/extension.js +0 -328
  241. package/dist/project-catalog.d.ts +0 -41
  242. package/dist/project-catalog.js +0 -288
  243. package/dist/project-inspector.d.ts +0 -4
  244. package/dist/project-inspector.js +0 -702
  245. package/dist/project-lifecycle.d.ts +0 -25
  246. package/dist/project-lifecycle.js +0 -57
  247. package/dist/project-state.d.ts +0 -49
  248. package/dist/project-state.js +0 -563
  249. package/dist/provider-auth.d.ts +0 -41
  250. package/dist/provider-auth.js +0 -215
  251. package/dist/provider-readiness.d.ts +0 -30
  252. package/dist/provider-readiness.js +0 -104
  253. package/dist/providers/adapters.d.ts +0 -17
  254. package/dist/providers/adapters.js +0 -278
  255. package/dist/providers/api.d.ts +0 -29
  256. package/dist/providers/api.js +0 -253
  257. package/dist/providers/config.d.ts +0 -15
  258. package/dist/providers/config.js +0 -182
  259. package/dist/providers/definitions.d.ts +0 -318
  260. package/dist/providers/definitions.js +0 -127
  261. package/dist/providers/provision.d.ts +0 -24
  262. package/dist/providers/provision.js +0 -76
  263. package/dist/providers/receipts.d.ts +0 -20
  264. package/dist/providers/receipts.js +0 -66
  265. package/dist/providers/recovery-verification.d.ts +0 -7
  266. package/dist/providers/recovery-verification.js +0 -112
  267. package/dist/providers/recovery.d.ts +0 -30
  268. package/dist/providers/recovery.js +0 -34
  269. package/dist/providers/runtime.d.ts +0 -10
  270. package/dist/providers/runtime.js +0 -265
  271. package/dist/providers/schema.d.ts +0 -28
  272. package/dist/providers/schema.js +0 -49
  273. package/dist/providers/state.d.ts +0 -55
  274. package/dist/providers/state.js +0 -289
  275. package/dist/provision.d.ts +0 -55
  276. package/dist/provision.js +0 -284
  277. package/dist/r2-service-data.d.ts +0 -2
  278. package/dist/r2-service-data.js +0 -136
  279. package/dist/readiness.d.ts +0 -23
  280. package/dist/readiness.js +0 -122
  281. package/dist/registry/add.d.ts +0 -24
  282. package/dist/registry/add.js +0 -270
  283. package/dist/registry/bootstrap.d.ts +0 -2
  284. package/dist/registry/bootstrap.js +0 -14
  285. package/dist/registry/commands.d.ts +0 -3
  286. package/dist/registry/commands.js +0 -85
  287. package/dist/registry/presets.d.ts +0 -4
  288. package/dist/registry/presets.js +0 -41
  289. package/dist/registry/preview.d.ts +0 -11
  290. package/dist/registry/preview.js +0 -91
  291. package/dist/registry/receipt.d.ts +0 -3
  292. package/dist/registry/receipt.js +0 -68
  293. package/dist/repository.d.ts +0 -24
  294. package/dist/repository.js +0 -96
  295. package/dist/scaffold/auth.d.ts +0 -3
  296. package/dist/scaffold/auth.js +0 -151
  297. package/dist/scaffold/billing-config.d.ts +0 -1
  298. package/dist/scaffold/billing-config.js +0 -73
  299. package/dist/scaffold/billing-contracts.d.ts +0 -2
  300. package/dist/scaffold/billing-contracts.js +0 -48
  301. package/dist/scaffold/billing-providers.d.ts +0 -1
  302. package/dist/scaffold/billing-providers.js +0 -249
  303. package/dist/scaffold/billing-schema.d.ts +0 -1
  304. package/dist/scaffold/billing-schema.js +0 -34
  305. package/dist/scaffold/billing-security.d.ts +0 -1
  306. package/dist/scaffold/billing-security.js +0 -46
  307. package/dist/scaffold/billing-server.d.ts +0 -1
  308. package/dist/scaffold/billing-server.js +0 -139
  309. package/dist/scaffold/billing-store.d.ts +0 -1
  310. package/dist/scaffold/billing-store.js +0 -72
  311. package/dist/scaffold/billing.d.ts +0 -2
  312. package/dist/scaffold/billing.js +0 -216
  313. package/dist/scaffold/cloudflare-services.d.ts +0 -8
  314. package/dist/scaffold/cloudflare-services.js +0 -198
  315. package/dist/scaffold/expo-auth.d.ts +0 -3
  316. package/dist/scaffold/expo-auth.js +0 -192
  317. package/dist/scaffold/expo-billing.d.ts +0 -3
  318. package/dist/scaffold/expo-billing.js +0 -292
  319. package/dist/scaffold/integrations.d.ts +0 -4
  320. package/dist/scaffold/integrations.js +0 -12
  321. package/dist/scaffold/lint.d.ts +0 -4
  322. package/dist/scaffold/lint.js +0 -56
  323. package/dist/scaffold/neon-realtime.d.ts +0 -2
  324. package/dist/scaffold/neon-realtime.js +0 -97
  325. package/dist/scaffold/services.d.ts +0 -5
  326. package/dist/scaffold/services.js +0 -108
  327. package/dist/scaffold/stream.d.ts +0 -2
  328. package/dist/scaffold/stream.js +0 -114
  329. package/dist/scaffold/void.d.ts +0 -4
  330. package/dist/scaffold/void.js +0 -264
  331. package/dist/scaffold/web.d.ts +0 -2
  332. package/dist/scaffold/web.js +0 -130
  333. package/dist/service-deletion.d.ts +0 -29
  334. package/dist/service-deletion.js +0 -195
  335. package/dist/service-descriptor.d.ts +0 -10
  336. package/dist/service-descriptor.js +0 -78
  337. package/dist/service-model.d.ts +0 -49
  338. package/dist/service-model.js +0 -8
  339. package/dist/service-operations.d.ts +0 -29
  340. package/dist/service-operations.js +0 -78
  341. package/dist/service-readers.d.ts +0 -8
  342. package/dist/service-readers.js +0 -247
  343. package/dist/services-command.d.ts +0 -39
  344. package/dist/services-command.js +0 -102
  345. package/dist/ship.d.ts +0 -348
  346. package/dist/ship.js +0 -239
  347. package/dist/vercel-project.d.ts +0 -101
  348. package/dist/vercel-project.js +0 -305
  349. package/dist/vercel.d.ts +0 -67
  350. package/dist/vercel.js +0 -581
  351. package/dist/vinext.d.ts +0 -2
  352. package/dist/vinext.js +0 -86
  353. package/dist/void-execution.d.ts +0 -10
  354. package/dist/void-execution.js +0 -94
  355. package/dist/void-migrations.d.ts +0 -6
  356. package/dist/void-migrations.js +0 -110
  357. package/dist/void-state.d.ts +0 -16
  358. package/dist/void-state.js +0 -65
  359. package/dist/void.d.ts +0 -3
  360. package/dist/void.js +0 -5
@@ -1,4 +1,3 @@
1
- import { STANDARD_PRODUCTS } from './stack-registry.js';
2
1
  export const GLOBAL_OPTIONS = [
3
2
  {
4
3
  flag: '--cwd',
@@ -29,396 +28,63 @@ export function commandDefinition(command) {
29
28
  return COMMANDS[command ?? ''];
30
29
  }
31
30
  export const COMMANDS = {
32
- services: {
33
- description: 'Inspect live Cloudflare services, analytics, data, or a confirmed resource deletion.',
34
- usage: 'services list | status | metrics | tables | data | delete-plan | delete [service-key] [options]',
35
- options: [
36
- {
37
- flag: '--hours',
38
- value: '1|24|168',
39
- arity: 'required',
40
- description: 'Analytics window; D1 uses complete UTC days.',
41
- },
42
- {
43
- flag: '--table',
44
- value: 'table',
45
- arity: 'required',
46
- description: 'Existing database table or keys for KV metadata.',
47
- },
48
- {
49
- flag: '--offset',
50
- value: 'number',
51
- arity: 'required',
52
- description: 'Bounded database page offset.',
53
- },
54
- {
55
- flag: '--cursor',
56
- value: 'cursor',
57
- arity: 'required',
58
- description: 'Provider cursor for object metadata pages.',
59
- },
60
- {
61
- flag: '--token',
62
- value: 'token',
63
- arity: 'required',
64
- description: 'Single-use deletion-plan token.',
65
- },
66
- {
67
- flag: '--confirm-name',
68
- value: 'name',
69
- arity: 'required',
70
- description: 'Exact resource name from the deletion plan.',
71
- },
72
- ],
73
- examples: ['services list --json', 'services status binding:apps/api:D1:DB --json'],
74
- note: 'Provider calls occur only when requested. Data output can contain private values. Deletion is limited to verified project-created D1/KV resources and requires a fresh plan and typed resource name.',
75
- },
76
- inspect: {
77
- description: 'Inspect local stack, setup requirements and recorded delivery evidence.',
78
- usage: 'inspect [directory] [options]',
79
- options: [],
80
- examples: ['inspect', 'inspect --json'],
81
- note: 'Read-only and offline. Recorded results do not establish live provider status or permissions.',
82
- },
83
- integrations: {
84
- description: 'Inspect private integration receipts or reconcile a verified pending resource.',
85
- usage: 'integrations status | recover [directory] [options]',
86
- options: [
87
- {
88
- flag: '--provider',
89
- value: 'name',
90
- arity: 'required',
91
- description: 'Select a bundled integration provider for recovery.',
92
- },
93
- {
94
- flag: '--operation',
95
- value: 'hash',
96
- arity: 'required',
97
- description: 'Select the exact pending operation from status.',
98
- },
99
- {
100
- flag: '--resource',
101
- value: 'id',
102
- arity: 'required',
103
- description: 'Verify and adopt this existing resource; never recreate it.',
104
- },
105
- ],
106
- examples: [
107
- 'integrations status --json',
108
- 'integrations recover --provider neon --operation recorded-hash --resource existing-id',
109
- ],
110
- 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.',
111
- },
112
- init: {
113
- description: 'Scaffold a project from the bundled stack registry.',
114
- usage: 'init [directory] [products...] [options]',
115
- options: [
116
- ...STANDARD_PRODUCTS.map((name) => ({
117
- flag: `--${name}`,
118
- description: `Include ${name}.`,
119
- hidden: true,
120
- })),
121
- {
122
- flag: '--preset',
123
- description: 'Start minimal or select the complete compatible product stack.',
124
- value: 'minimal|full-product',
125
- arity: 'required',
126
- },
127
- {
128
- flag: '--hosting',
129
- description: 'Select web hosting.',
130
- value: 'cloudflare|vercel',
131
- arity: 'required',
132
- },
133
- {
134
- flag: '--skip-install',
135
- description: 'Skip the final install (bootstrap still needs network).',
136
- },
137
- { flag: '--git', description: 'Initialize a project repository or skip it.' },
138
- { flag: '--no-git', description: 'Initialize a project repository or skip it.' },
139
- { flag: '--dry-run', description: 'Preview the selected stack without writes or network.' },
140
- ],
141
- examples: [
142
- 'init client-app',
143
- 'init product --preset full-product --dry-run',
144
- 'init product --next --hono --neon --clerk --dry-run',
145
- ],
146
- note: `Default: minimal Expo web/iOS/Android app on Cloudflare; no API, auth, database or paid integrations. Add capabilities with resolved dependencies, or use --preset full-product.\nProducts: ${STANDARD_PRODUCTS.join(', ')}\nOnly bundled options are supported. --all is intentionally unsupported.`,
147
- },
148
- auth: {
149
- description: 'Check or guide authentication for the selected providers.',
150
- usage: 'auth [directory] [options]',
151
- options: [
152
- {
153
- flag: '--provider',
154
- description: 'Check one provider required by this project.',
155
- value: 'name',
156
- arity: 'required',
157
- },
158
- { flag: '--status', description: 'Check existing access without opening login.' },
159
- { flag: '--non-interactive', description: 'Never open an interactive login.' },
160
- ],
161
- examples: ['auth', 'auth --status --json', 'auth --provider neon'],
162
- 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.',
163
- },
164
- ship: {
165
- description: 'Provision, configure and deploy the supported selected stack.',
166
- usage: 'ship [directory] [options]',
167
- options: [
168
- { flag: '--dry-run', description: 'Preview provisioning and deployment without mutations.' },
169
- {
170
- flag: '--provider',
171
- description: 'Select hosting in a mixed project.',
172
- value: 'cloudflare|vercel',
173
- arity: 'required',
174
- },
175
- {
176
- flag: '--platform',
177
- description: 'Build a selected mobile platform.',
178
- value: 'ios|android',
179
- arity: 'required',
180
- },
181
- {
182
- flag: '--profile',
183
- description: 'Select the configured EAS build profile.',
184
- value: 'name',
185
- arity: 'required',
186
- },
187
- ],
188
- examples: ['ship --dry-run', 'ship --json', 'ship --platform android --profile preview'],
189
- 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.',
190
- },
191
31
  add: {
192
- description: 'Add bundled stack parts while preserving edited source.',
193
- usage: 'add <items...> [options]',
32
+ description: 'Add selected stack capabilities to an existing Anhedral project.',
33
+ usage: 'add <capabilities...> [options]',
194
34
  options: [
195
- { flag: '--dry-run', description: 'Preview changed paths without installing them.' },
196
- {
197
- flag: '--diff',
198
- description: 'Preview source changes; implies --dry-run.',
199
- value: 'path',
200
- arity: 'optional',
201
- },
35
+ { flag: '--with-dependencies', description: 'Explicitly include missing prerequisites.' },
36
+ { flag: '--skip-install', description: 'Write source without installing dependencies.' },
202
37
  {
203
- flag: '--view',
204
- description: 'Preview generated source; implies --dry-run.',
205
- value: 'path',
206
- arity: 'optional',
38
+ flag: '--dry-run',
39
+ description: 'Preview every file and prerequisite without writes or network.',
207
40
  },
208
- { flag: '--skip-install', description: 'Skip the final dependency install.' },
209
41
  ],
210
42
  examples: [
211
- 'add resend',
212
- '--cwd client-app add resend --dry-run',
213
- 'add resend --diff --cwd client-app',
43
+ 'add hono',
44
+ 'add database-auth',
45
+ 'add expo native-ui stripe revenuecat --with-dependencies --dry-run --json',
214
46
  ],
215
- note: 'Source previews are local and bounded. A new web bootstrap cannot be previewed offline; the plan reports that limitation. Edited-source conflicts require review; there is no force overwrite.',
47
+ note: 'Adds source and local configuration only. Existing edits are preserved. No provisioning, credential installation, migration or deployment.',
216
48
  },
217
- registry: {
218
- description: 'Inspect the bundled stack catalog and setup requirements.',
219
- usage: 'registry list | view <item> | capabilities [options]',
49
+ stack: {
50
+ description: 'List capabilities and inspect declared source state.',
51
+ usage: 'stack <list|status|doctor>',
220
52
  options: [],
221
- examples: [
222
- 'registry list',
223
- 'registry view neon',
224
- 'registry capabilities',
225
- 'registry capabilities --json',
226
- ],
227
- },
228
- doctor: {
229
- description: 'Check project provenance and local readiness without writes.',
230
- usage: 'doctor [directory] [options]',
231
- options: [
232
- { flag: '--providers', description: 'Also check tools and existing provider context.' },
233
- ],
234
- examples: ['doctor', 'doctor client-app --providers --json'],
53
+ examples: ['stack list', 'stack status --json', 'stack doctor'],
54
+ note: 'Installed source is not proof of live provider activation.',
235
55
  },
236
- connect: {
237
- description: 'Select the intended hosting account, project and audience.',
238
- usage: 'connect [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]',
239
59
  options: [
240
- {
241
- flag: '--provider',
242
- description: 'Select the hosting provider.',
243
- value: 'cloudflare|vercel',
244
- arity: 'required',
245
- },
246
- {
247
- flag: '--account',
248
- description: 'Select the Cloudflare account.',
249
- value: 'id',
250
- arity: 'required',
251
- },
252
- {
253
- flag: '--audience',
254
- description: 'Set the explicit hosting audience.',
255
- value: 'public|private',
256
- arity: 'required',
257
- },
258
- {
259
- flag: '--allow-email',
260
- description: 'Allow a private Cloudflare member (repeatable).',
261
- value: 'email',
262
- arity: 'required',
263
- repeatable: true,
264
- },
265
- { flag: '--scope', description: 'Select the Vercel team.', value: 'team', arity: 'required' },
266
- {
267
- flag: '--use',
268
- description: 'Declare Vercel usage.',
269
- value: 'personal|commercial',
270
- arity: 'required',
271
- },
272
- { flag: '--create', description: 'Create the selected Vercel project.' },
273
- { flag: '--git', description: 'Connect the verified GitHub repository.' },
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.' },
274
64
  ],
275
65
  examples: [
276
- 'connect --provider cloudflare --audience public',
277
- 'connect --scope customer --audience private --use commercial --create',
278
- ],
279
- note: 'Vercel Hobby is personal/non-commercial. Commercial applications need an eligible existing plan; no paid plan is activated automatically.',
280
- },
281
- repository: {
282
- description: 'Connect or create the application owner’s GitHub repository.',
283
- usage: 'repository [directory] [--owner <account>] [options]',
284
- options: [
285
- {
286
- flag: '--owner',
287
- description: 'Select the GitHub owner.',
288
- value: 'account',
289
- arity: 'required',
290
- },
291
- { flag: '--name', description: 'Set the repository name.', value: 'name', arity: 'required' },
292
- {
293
- flag: '--visibility',
294
- description: 'Set visibility (default: private).',
295
- value: 'private|public',
296
- arity: 'required',
297
- },
298
- { flag: '--create', description: 'Create the repository when needed.' },
66
+ 'ui list',
67
+ 'ui add button --web',
68
+ 'ui add button --native',
69
+ 'ui diff button',
70
+ 'ui doctor',
299
71
  ],
300
- examples: ['repository --owner customer --create'],
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.',
301
73
  },
302
- register: {
303
- description: 'Record application identity and delivery targets.',
304
- usage: 'register [directory] [--provider cloudflare|vercel]',
305
- options: [
306
- {
307
- flag: '--provider',
308
- description: 'Select the provider.',
309
- value: 'cloudflare|vercel',
310
- arity: 'required',
311
- },
312
- ],
313
- examples: ['register'],
314
- },
315
- provision: {
316
- description: 'Reconcile Cloudflare resources without deploying code.',
317
- usage: 'provision [directory] [options]',
318
- options: [
319
- {
320
- flag: '--provider',
321
- description: 'Select Cloudflare in a mixed project.',
322
- value: 'cloudflare',
323
- arity: 'required',
324
- },
325
- { flag: '--dry-run', description: 'Preview resources without mutations.' },
326
- ],
327
- examples: ['provision --dry-run'],
328
- note: 'Use ship for the full selected-integration and hosting flow.',
329
- },
330
- status: {
331
- description: 'Inspect recorded release and provider evidence.',
332
- usage: 'status [directory] [options]',
333
- options: [
334
- {
335
- flag: '--provider',
336
- description: 'Select hosting.',
337
- value: 'cloudflare|vercel',
338
- arity: 'required',
339
- },
340
- { flag: '--refresh', description: 'Refresh provider evidence.' },
341
- ],
342
- examples: ['status --refresh'],
343
- },
344
- manage: {
345
- description: 'Write a local overview of recorded delivery evidence.',
346
- usage: 'manage [directory] [options]',
347
- options: [
348
- {
349
- flag: '--provider',
350
- description: 'Select hosting.',
351
- value: 'cloudflare|vercel',
352
- arity: 'required',
353
- },
354
- { flag: '--local', description: 'Use local evidence without provider refresh.' },
355
- { flag: '--refresh', description: 'Refresh provider evidence.' },
356
- ],
357
- examples: ['manage --local'],
358
- },
359
- verify: {
360
- description: 'Exercise the application’s configured live acceptance checks.',
361
- usage: 'verify [directory] [options]',
362
- options: [
363
- {
364
- flag: '--provider',
365
- description: 'Select hosting.',
366
- value: 'cloudflare|vercel',
367
- arity: 'required',
368
- },
369
- { flag: '--refresh', description: 'Refresh provider evidence.' },
370
- ],
371
- examples: ['verify'],
372
- },
373
- adopt: {
374
- description: 'Record a verified existing Vercel Git deployment.',
375
- usage: 'adopt [directory] [--provider vercel]',
376
- options: [
377
- { flag: '--provider', description: 'Select Vercel.', value: 'vercel', arity: 'required' },
378
- { flag: '--refresh', description: 'Refresh provider evidence.' },
379
- ],
380
- examples: ['adopt --provider vercel'],
381
- note: 'Does not push or deploy.',
382
- },
383
- recover: {
384
- description: 'Recover verified hosting state or a proven interrupted local lock.',
385
- usage: 'recover [directory] [options]',
74
+ init: {
75
+ description: 'Scaffold Next.js/OpenNext with source-owned Anhedral UI; add capabilities only when needed.',
76
+ usage: 'init [directory] [options]',
386
77
  options: [
387
- {
388
- flag: '--lock',
389
- description: 'Release only a proven dead local delivery lock; never replay provider operations.',
390
- },
391
- {
392
- flag: '--provider',
393
- description: 'Select hosting.',
394
- value: 'cloudflare|vercel',
395
- arity: 'required',
396
- },
397
- { flag: '--refresh', description: 'Refresh provider evidence.' },
78
+ { flag: '--skip-install', description: 'Write source without installing dependencies.' },
79
+ { flag: '--git', description: 'Initialize a local Git repository.' },
80
+ { flag: '--no-git', description: 'Skip Git initialization.' },
81
+ { flag: '--dry-run', description: 'Preview the foundation without writes or network.' },
398
82
  ],
399
- examples: ['recover'],
400
- note: 'Does not recreate missing integration credentials or historical product checks.',
401
- },
402
- rollback: {
403
- description: 'Restore a recorded code release after compatibility review.',
404
- usage: 'rollback [directory] --release <id> --data-compatible [options]',
405
- options: [
406
- {
407
- flag: '--provider',
408
- description: 'Select hosting.',
409
- value: 'cloudflare|vercel',
410
- arity: 'required',
411
- },
412
- {
413
- flag: '--release',
414
- description: 'Select a recorded release.',
415
- value: 'id',
416
- arity: 'required',
417
- },
418
- { flag: '--data-compatible', description: 'Confirm data/schema compatibility.' },
419
- { flag: '--refresh', description: 'Refresh provider evidence.' },
83
+ examples: [
84
+ 'init my-app',
85
+ 'init my-app --dry-run --json',
86
+ 'init my-app --skip-install --no-git',
420
87
  ],
421
- examples: ['rollback --release recorded-id --data-compatible'],
422
- 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.',
423
89
  },
424
90
  };
@@ -3,92 +3,64 @@ export interface DependencyGroup {
3
3
  devDependencies?: Record<string, string>;
4
4
  }
5
5
  export declare const NATIVE_ESLINT_VERSION = "10.0.3";
6
- export declare const DESKTOP_DEPENDENCIES: DependencyGroup;
7
- export declare const EXTENSION_DEPENDENCIES: DependencyGroup;
8
6
  export declare const MOBILE_APP_DEPENDENCIES: DependencyGroup;
9
- export declare const MOBILE_NATIVEWIND_DEPENDENCIES: DependencyGroup;
7
+ export declare const WEB_DEPENDENCIES: DependencyGroup;
8
+ export declare const NATIVE_UI_DEPENDENCIES: DependencyGroup;
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
- export declare const VERCEL_CLI_VERSION = "62.7.0";
14
- export declare const SHADCN_VERSION = "4.21.4";
15
- export declare const NEXT_VERCEL_VERSION = "16.4.0";
16
- export declare const NEXT_OPENNEXT_VERSION = "16.3.8";
17
12
  export declare const STACK_DEPENDENCIES: {
18
13
  readonly zod: "4.6.6";
19
14
  readonly '@typescript-eslint/parser': "8.71.2";
20
15
  readonly '@typescript-eslint/eslint-plugin': "8.71.2";
21
- readonly '@next/eslint-plugin-next': "16.4.2";
22
16
  readonly turbo: "2.11.7";
23
17
  readonly tsx: "4.23.15";
24
- readonly 'better-auth': "1.7.7";
25
- readonly '@better-auth/expo': "1.7.7";
26
- readonly 'expo-secure-store': "57.0.4";
27
- readonly 'expo-network': "57.0.2";
28
- readonly '@better-auth/drizzle-adapter': "1.7.7";
29
- readonly '@neondatabase/serverless': "1.2.0";
30
- readonly '@neon/realtime': "0.1.0";
31
- readonly '@neon/realtime-drizzle': "0.1.0";
32
18
  readonly 'drizzle-orm': "0.45.4";
33
- readonly '@clerk/nextjs': "7.9.14";
34
- readonly '@clerk/backend': "3.23.2";
35
- readonly wrangler: "4.149.0";
19
+ readonly wrangler: "4.151.0";
36
20
  readonly typescript: "5.9.3";
37
21
  readonly '@types/node': "22.20.5";
38
22
  readonly eslint: "9.39.5";
39
- readonly 'postcss-load-config': "6.0.1";
40
- readonly '@opennextjs/cloudflare': "1.20.10";
41
23
  readonly 'drizzle-kit': "0.31.11";
42
24
  readonly hono: "4.13.13";
43
25
  readonly '@hono/zod-openapi': "1.6.3";
44
- readonly fallow: "3.33.1";
45
- readonly openai: "6.49.0";
46
- readonly ai: "6.0.303";
47
- readonly '@ai-sdk/openai': "3.0.125";
48
- readonly resend: "6.32.1";
26
+ readonly fallow: "3.34.0";
27
+ readonly undici: "7.30.1";
49
28
  readonly 'react-native-purchases': "10.14.0";
50
29
  readonly stripe: "23.0.0";
51
- readonly 'posthog-node': "5.55.2";
52
30
  };
53
- /** Vinext's RSC/React versions form a separately verified compatibility group. */
54
- export declare const VINEXT_DEPENDENCIES: DependencyGroup;
55
31
  /** Separate HTTP and inspector ports let all selected Workers run together. */
56
32
  export declare const WORKER_DEV_PORTS: {
57
33
  readonly api: {
58
34
  readonly http: 8787;
59
35
  readonly inspector: 9231;
60
36
  };
61
- readonly realtime: {
62
- readonly http: 8788;
63
- readonly inspector: 9232;
64
- };
65
- readonly jobs: {
66
- readonly http: 8789;
67
- readonly inspector: 9233;
68
- };
69
- readonly scheduled: {
70
- readonly http: 8790;
71
- readonly inspector: 9234;
72
- };
73
- readonly workflows: {
74
- readonly http: 8791;
75
- readonly inspector: 9235;
76
- };
77
37
  };
78
- /** Compatible security overrides are catalog pins and must be audited too. */
79
- export declare const SECURITY_OVERRIDE_DEPENDENCIES: {
80
- readonly '@vitejs/plugin-react': "5.2.0";
81
- readonly sharp: "0.35.5";
82
- readonly 'source-map-js': "1.2.2";
83
- readonly 'shell-quote': "1.12.0";
84
- readonly tmp: "0.2.7";
85
- readonly 'adm-zip': "0.6.1";
86
- readonly 'baseline-browser-mapping': "2.11.27";
87
- readonly browserslist: "4.29.3";
88
- readonly esbuild: "0.25.12";
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";
89
66
  };
90
- export declare const GLOB_10_OVERRIDE_VERSION = "10.5.0";
91
- export declare const GLOB_11_OVERRIDE_VERSION = "11.1.0";
92
- export declare const BRACE_EXPANSION_1_OVERRIDE_VERSION = "1.1.21";
93
- export declare const BRACE_EXPANSION_2_OVERRIDE_VERSION = "2.1.7";
94
- export declare const BRACE_EXPANSION_5_OVERRIDE_VERSION = "5.0.12";