create-next-hydra 0.3.0 → 0.4.2

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 (207) hide show
  1. package/README.md +126 -27
  2. package/dist/add-command.d.ts +11 -0
  3. package/dist/add-command.d.ts.map +1 -0
  4. package/dist/add-command.js +75 -0
  5. package/dist/addition.d.ts +67 -0
  6. package/dist/addition.d.ts.map +1 -0
  7. package/dist/addition.js +422 -0
  8. package/dist/application-git.d.ts +20 -0
  9. package/dist/application-git.d.ts.map +1 -0
  10. package/dist/application-git.js +57 -0
  11. package/dist/baseline.d.ts +22 -0
  12. package/dist/baseline.d.ts.map +1 -0
  13. package/dist/baseline.js +90 -0
  14. package/dist/cli.js +5 -18
  15. package/dist/commands.d.ts +22 -0
  16. package/dist/commands.d.ts.map +1 -0
  17. package/dist/commands.js +197 -0
  18. package/dist/composition-lint.d.ts +20 -0
  19. package/dist/composition-lint.d.ts.map +1 -0
  20. package/dist/composition-lint.js +288 -0
  21. package/dist/composition.d.ts +24 -0
  22. package/dist/composition.d.ts.map +1 -0
  23. package/dist/composition.js +420 -0
  24. package/dist/create-command.d.ts +21 -0
  25. package/dist/create-command.d.ts.map +1 -0
  26. package/dist/create-command.js +128 -0
  27. package/dist/demo-instrumentation.d.ts +5 -0
  28. package/dist/demo-instrumentation.d.ts.map +1 -0
  29. package/dist/demo-instrumentation.js +300 -0
  30. package/dist/environment.d.ts +7 -0
  31. package/dist/environment.d.ts.map +1 -0
  32. package/dist/environment.js +81 -0
  33. package/dist/errors.d.ts +156 -0
  34. package/dist/errors.d.ts.map +1 -0
  35. package/dist/errors.js +140 -0
  36. package/dist/file-policy.d.ts +6 -0
  37. package/dist/file-policy.d.ts.map +1 -0
  38. package/dist/file-policy.js +38 -0
  39. package/dist/files.d.ts +7 -0
  40. package/dist/files.d.ts.map +1 -0
  41. package/dist/files.js +66 -0
  42. package/dist/hosting.d.ts +5 -0
  43. package/dist/hosting.d.ts.map +1 -0
  44. package/dist/hosting.js +107 -0
  45. package/dist/index.d.ts +4 -6
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +17 -89
  48. package/dist/initialization.d.ts +14 -0
  49. package/dist/initialization.d.ts.map +1 -0
  50. package/dist/initialization.js +266 -0
  51. package/dist/lint-workspaces.d.ts +2 -0
  52. package/dist/lint-workspaces.d.ts.map +1 -0
  53. package/dist/lint-workspaces.js +62 -0
  54. package/dist/model.d.ts +143 -0
  55. package/dist/model.d.ts.map +1 -0
  56. package/dist/model.js +61 -0
  57. package/dist/package-catalog.d.ts +8 -0
  58. package/dist/package-catalog.d.ts.map +1 -0
  59. package/dist/package-catalog.js +61 -0
  60. package/dist/packages.d.ts +57 -0
  61. package/dist/packages.d.ts.map +1 -0
  62. package/dist/packages.js +237 -0
  63. package/dist/process-group.d.ts +5 -0
  64. package/dist/process-group.d.ts.map +1 -0
  65. package/dist/process-group.js +23 -0
  66. package/dist/reference-workspace-bindings.d.ts +38 -0
  67. package/dist/reference-workspace-bindings.d.ts.map +1 -0
  68. package/dist/reference-workspace-bindings.js +41 -0
  69. package/dist/reference-workspace.d.ts +6 -0
  70. package/dist/reference-workspace.d.ts.map +1 -0
  71. package/dist/reference-workspace.js +62 -0
  72. package/dist/registry.d.ts +187 -0
  73. package/dist/registry.d.ts.map +1 -0
  74. package/dist/registry.js +107 -0
  75. package/dist/runtime.d.ts +9 -0
  76. package/dist/runtime.d.ts.map +1 -0
  77. package/dist/runtime.js +22 -0
  78. package/dist/selection.d.ts +704 -0
  79. package/dist/selection.d.ts.map +1 -0
  80. package/dist/selection.js +424 -0
  81. package/dist/shadcn-protocol.d.ts +22 -0
  82. package/dist/shadcn-protocol.d.ts.map +1 -0
  83. package/dist/shadcn-protocol.js +13 -0
  84. package/dist/shadcn-worker.d.ts +2 -0
  85. package/dist/shadcn-worker.d.ts.map +1 -0
  86. package/dist/shadcn-worker.js +43 -0
  87. package/dist/shadcn.d.ts +22 -0
  88. package/dist/shadcn.d.ts.map +1 -0
  89. package/dist/shadcn.js +101 -0
  90. package/dist/source-changes.d.ts +55 -0
  91. package/dist/source-changes.d.ts.map +1 -0
  92. package/dist/source-changes.js +225 -0
  93. package/dist/source-inventory.d.ts +25 -0
  94. package/dist/source-inventory.d.ts.map +1 -0
  95. package/dist/source-inventory.js +212 -0
  96. package/dist/source-root.d.ts +4 -0
  97. package/dist/source-root.d.ts.map +1 -0
  98. package/dist/source-root.js +20 -0
  99. package/dist/staging.d.ts +19 -0
  100. package/dist/staging.d.ts.map +1 -0
  101. package/dist/staging.js +42 -0
  102. package/dist/tasks.d.ts +44 -0
  103. package/dist/tasks.d.ts.map +1 -0
  104. package/dist/tasks.js +137 -0
  105. package/dist/templates.d.ts +217 -0
  106. package/dist/templates.d.ts.map +1 -0
  107. package/dist/templates.js +161 -0
  108. package/dist/test-reference-workspace.d.ts +2 -0
  109. package/dist/test-reference-workspace.d.ts.map +1 -0
  110. package/dist/test-reference-workspace.js +6 -0
  111. package/dist/types.d.ts +2 -9
  112. package/dist/types.d.ts.map +1 -1
  113. package/dist/typescript-paths.d.ts +10 -0
  114. package/dist/typescript-paths.d.ts.map +1 -0
  115. package/dist/typescript-paths.js +52 -0
  116. package/dist/workspace-dependencies.d.ts +26 -0
  117. package/dist/workspace-dependencies.d.ts.map +1 -0
  118. package/dist/workspace-dependencies.js +478 -0
  119. package/dist/workspace-files.d.ts +24 -0
  120. package/dist/workspace-files.d.ts.map +1 -0
  121. package/dist/workspace-files.js +395 -0
  122. package/dist/workspace-lock.d.ts +12 -0
  123. package/dist/workspace-lock.d.ts.map +1 -0
  124. package/dist/workspace-lock.js +104 -0
  125. package/dist/workspace-snapshots.d.ts +24 -0
  126. package/dist/workspace-snapshots.d.ts.map +1 -0
  127. package/dist/workspace-snapshots.js +218 -0
  128. package/dist/workspace-sources.d.ts +27 -0
  129. package/dist/workspace-sources.d.ts.map +1 -0
  130. package/dist/workspace-sources.js +88 -0
  131. package/dist/workspace-state.d.ts +325 -0
  132. package/dist/workspace-state.d.ts.map +1 -0
  133. package/dist/workspace-state.js +571 -0
  134. package/dist/workspaces.d.ts +73 -0
  135. package/dist/workspaces.d.ts.map +1 -0
  136. package/dist/workspaces.js +396 -0
  137. package/package.json +27 -20
  138. package/schema/selection-definition.json +143 -4
  139. package/dist/clone.d.ts +0 -9
  140. package/dist/clone.d.ts.map +0 -1
  141. package/dist/clone.js +0 -19
  142. package/dist/composition/add.d.ts +0 -14
  143. package/dist/composition/add.d.ts.map +0 -1
  144. package/dist/composition/add.js +0 -484
  145. package/dist/composition/catalog.d.ts +0 -26
  146. package/dist/composition/catalog.d.ts.map +0 -1
  147. package/dist/composition/catalog.js +0 -317
  148. package/dist/composition/errors.d.ts +0 -5
  149. package/dist/composition/errors.d.ts.map +0 -1
  150. package/dist/composition/errors.js +0 -8
  151. package/dist/composition/format.d.ts +0 -6
  152. package/dist/composition/format.d.ts.map +0 -1
  153. package/dist/composition/format.js +0 -65
  154. package/dist/composition/install.d.ts +0 -16
  155. package/dist/composition/install.d.ts.map +0 -1
  156. package/dist/composition/install.js +0 -175
  157. package/dist/composition/packages.d.ts +0 -6
  158. package/dist/composition/packages.d.ts.map +0 -1
  159. package/dist/composition/packages.js +0 -55
  160. package/dist/composition/paths.d.ts +0 -4
  161. package/dist/composition/paths.d.ts.map +0 -1
  162. package/dist/composition/paths.js +0 -47
  163. package/dist/composition/planner.d.ts +0 -4
  164. package/dist/composition/planner.d.ts.map +0 -1
  165. package/dist/composition/planner.js +0 -366
  166. package/dist/composition/schema.d.ts +0 -294
  167. package/dist/composition/schema.d.ts.map +0 -1
  168. package/dist/composition/schema.js +0 -166
  169. package/dist/composition/types.d.ts +0 -111
  170. package/dist/composition/types.d.ts.map +0 -1
  171. package/dist/composition/types.js +0 -6
  172. package/dist/composition/typescript-paths.d.ts +0 -6
  173. package/dist/composition/typescript-paths.d.ts.map +0 -1
  174. package/dist/composition/typescript-paths.js +0 -157
  175. package/dist/composition/use.d.ts +0 -23
  176. package/dist/composition/use.d.ts.map +0 -1
  177. package/dist/composition/use.js +0 -187
  178. package/dist/composition/workspace.d.ts +0 -10
  179. package/dist/composition/workspace.d.ts.map +0 -1
  180. package/dist/composition/workspace.js +0 -210
  181. package/dist/constants.d.ts +0 -11
  182. package/dist/constants.d.ts.map +0 -1
  183. package/dist/constants.js +0 -39
  184. package/dist/fs-utils.d.ts +0 -9
  185. package/dist/fs-utils.d.ts.map +0 -1
  186. package/dist/fs-utils.js +0 -64
  187. package/dist/git.d.ts +0 -28
  188. package/dist/git.d.ts.map +0 -1
  189. package/dist/git.js +0 -107
  190. package/dist/instruction-renderer.d.ts +0 -17
  191. package/dist/instruction-renderer.d.ts.map +0 -1
  192. package/dist/instruction-renderer.js +0 -132
  193. package/dist/logger.d.ts +0 -13
  194. package/dist/logger.d.ts.map +0 -1
  195. package/dist/logger.js +0 -26
  196. package/dist/prompts.d.ts +0 -7
  197. package/dist/prompts.d.ts.map +0 -1
  198. package/dist/prompts.js +0 -54
  199. package/dist/sanitize.d.ts +0 -10
  200. package/dist/sanitize.d.ts.map +0 -1
  201. package/dist/sanitize.js +0 -110
  202. package/dist/scaffold.d.ts +0 -7
  203. package/dist/scaffold.d.ts.map +0 -1
  204. package/dist/scaffold.js +0 -330
  205. package/dist/version.d.ts +0 -2
  206. package/dist/version.d.ts.map +0 -1
  207. package/dist/version.js +0 -2
@@ -0,0 +1,704 @@
1
+ import { Effect, Schema } from "effect";
2
+ import { IncompatibleSelection, InvalidComposition } from "./errors.ts";
3
+ import { Selection } from "./model.ts";
4
+ import type { PackageRequirement, PackageRequirementTarget } from "./packages.ts";
5
+ import type { RegistryCatalog } from "./shadcn.ts";
6
+ import type { TypeScriptAlias, TypeScriptAliasTarget } from "./typescript-paths.ts";
7
+ export declare const providerAliases: {
8
+ readonly auth: "@repo/auth";
9
+ readonly cms: "@repo/cms";
10
+ readonly commerce: "@repo/commerce-provider";
11
+ readonly search: "@repo/search-provider";
12
+ };
13
+ declare const Metadata: Schema.Struct<{
14
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
15
+ readonly source: Schema.NonEmptyString;
16
+ readonly target: Schema.NonEmptyString;
17
+ }>>>;
18
+ readonly binding: Schema.optionalKey<Schema.Struct<{
19
+ readonly sourcePath: Schema.optionalKey<Schema.NonEmptyString>;
20
+ readonly specifier: Schema.NonEmptyString;
21
+ }>>;
22
+ readonly compatibility: Schema.optionalKey<Schema.Struct<{
23
+ readonly conflicts: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
24
+ readonly requires: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
25
+ }>>;
26
+ readonly conditionalDependencies: Schema.optionalKey<Schema.$Array<Schema.Struct<{
27
+ readonly items: Schema.NonEmptyArray<Schema.NonEmptyString>;
28
+ readonly providers: Schema.NonEmptyArray<Schema.Literals<readonly ["auth", "cms", "commerce", "search"]>>;
29
+ }>>>;
30
+ readonly id: Schema.NonEmptyString;
31
+ readonly kind: Schema.Literals<readonly ["provider", "package", "recipe", "add-on", "preset"]>;
32
+ readonly packages: Schema.optionalKey<Schema.$Array<Schema.Struct<{
33
+ readonly cwd: Schema.NonEmptyString;
34
+ readonly name: Schema.NonEmptyString;
35
+ readonly section: Schema.Literals<readonly ["dependencies", "devDependencies", "optionalDependencies"]>;
36
+ readonly specifier: Schema.NonEmptyString;
37
+ }>>>;
38
+ readonly pnpmPatches: Schema.optionalKey<Schema.$Array<Schema.Struct<{
39
+ readonly dependency: Schema.NonEmptyString;
40
+ readonly path: Schema.NonEmptyString;
41
+ }>>>;
42
+ readonly providerDependencies: Schema.optionalKey<Schema.$Array<Schema.Struct<{
43
+ readonly cwd: Schema.NonEmptyString;
44
+ readonly section: Schema.Literals<readonly ["dependencies", "devDependencies", "optionalDependencies"]>;
45
+ readonly slot: Schema.Literals<readonly ["auth", "cms", "commerce", "search"]>;
46
+ }>>>;
47
+ readonly providerSlots: Schema.optionalKey<Schema.Struct<{
48
+ readonly auth: Schema.optionalKey<Schema.Literals<readonly ["required", "optional", "forbidden"]>>;
49
+ readonly cms: Schema.optionalKey<Schema.Literals<readonly ["required", "optional", "forbidden"]>>;
50
+ readonly commerce: Schema.optionalKey<Schema.Literals<readonly ["required", "optional", "forbidden"]>>;
51
+ readonly search: Schema.optionalKey<Schema.Literals<readonly ["required", "optional", "forbidden"]>>;
52
+ }>>;
53
+ readonly selections: Schema.optionalKey<Schema.Struct<{
54
+ readonly addOns: Schema.optionalKey<Schema.$Array<Schema.NonEmptyString>>;
55
+ readonly providers: Schema.optionalKey<Schema.withDecodingDefaultKey<Schema.Struct<{
56
+ readonly auth: Schema.optionalKey<Schema.NonEmptyString>;
57
+ readonly cms: Schema.optionalKey<Schema.NonEmptyString>;
58
+ readonly commerce: Schema.optionalKey<Schema.NonEmptyString>;
59
+ readonly search: Schema.optionalKey<Schema.NonEmptyString>;
60
+ }>, never>>;
61
+ }>>;
62
+ readonly slot: Schema.optionalKey<Schema.Literals<readonly ["auth", "cms", "commerce", "search"]>>;
63
+ readonly typeScriptAliases: Schema.optionalKey<Schema.$Array<Schema.Struct<{
64
+ readonly alias: Schema.NonEmptyString;
65
+ readonly cwd: Schema.NonEmptyString;
66
+ readonly sourcePath: Schema.NonEmptyString;
67
+ }>>>;
68
+ }>;
69
+ export declare const registryIndex: (registry: RegistryCatalog, acquiredReferences?: ReadonlyMap<string, string> | undefined) => Effect.Effect<{
70
+ items: Map<string, {
71
+ type: "registry:base";
72
+ name: string;
73
+ tailwind?: {
74
+ config?: {
75
+ theme?: Record<string, any> | undefined;
76
+ content?: string[] | undefined;
77
+ plugins?: string[] | undefined;
78
+ } | undefined;
79
+ } | undefined;
80
+ docs?: string | undefined;
81
+ $schema?: string | undefined;
82
+ config?: {
83
+ tailwind?: {
84
+ baseColor?: string | undefined;
85
+ config?: string | undefined;
86
+ css?: string | undefined;
87
+ cssVariables?: boolean | undefined;
88
+ prefix?: string | undefined;
89
+ } | undefined;
90
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
91
+ menuAccent?: "subtle" | "bold" | undefined;
92
+ iconLibrary?: string | undefined;
93
+ style?: string | undefined;
94
+ $schema?: string | undefined;
95
+ rsc?: boolean | undefined;
96
+ tsx?: boolean | undefined;
97
+ rtl?: boolean | undefined;
98
+ aliases?: {
99
+ components?: string | undefined;
100
+ ui?: string | undefined;
101
+ utils?: string | undefined;
102
+ lib?: string | undefined;
103
+ hooks?: string | undefined;
104
+ } | undefined;
105
+ registries?: Record<string, string | {
106
+ url: string;
107
+ params?: Record<string, string> | undefined;
108
+ headers?: Record<string, string> | undefined;
109
+ }> | undefined;
110
+ } | undefined;
111
+ css?: Record<string, any> | undefined;
112
+ extends?: string | undefined;
113
+ title?: string | undefined;
114
+ author?: string | undefined;
115
+ description?: string | undefined;
116
+ dependencies?: string[] | undefined;
117
+ devDependencies?: string[] | undefined;
118
+ registryDependencies?: string[] | undefined;
119
+ files?: ({
120
+ path: string;
121
+ type: "registry:page" | "registry:file";
122
+ target: string;
123
+ content?: string | undefined;
124
+ } | {
125
+ path: string;
126
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
127
+ content?: string | undefined;
128
+ target?: string | undefined;
129
+ })[] | undefined;
130
+ cssVars?: {
131
+ theme?: Record<string, string> | undefined;
132
+ light?: Record<string, string> | undefined;
133
+ dark?: Record<string, string> | undefined;
134
+ } | undefined;
135
+ envVars?: Record<string, string> | undefined;
136
+ meta?: Record<string, any> | undefined;
137
+ categories?: string[] | undefined;
138
+ } | {
139
+ font: {
140
+ family: string;
141
+ provider: "google";
142
+ import: string;
143
+ variable: string;
144
+ weight?: string[] | undefined;
145
+ subsets?: string[] | undefined;
146
+ selector?: string | undefined;
147
+ dependency?: string | undefined;
148
+ };
149
+ type: "registry:font";
150
+ name: string;
151
+ tailwind?: {
152
+ config?: {
153
+ theme?: Record<string, any> | undefined;
154
+ content?: string[] | undefined;
155
+ plugins?: string[] | undefined;
156
+ } | undefined;
157
+ } | undefined;
158
+ docs?: string | undefined;
159
+ $schema?: string | undefined;
160
+ css?: Record<string, any> | undefined;
161
+ extends?: string | undefined;
162
+ title?: string | undefined;
163
+ author?: string | undefined;
164
+ description?: string | undefined;
165
+ dependencies?: string[] | undefined;
166
+ devDependencies?: string[] | undefined;
167
+ registryDependencies?: string[] | undefined;
168
+ files?: ({
169
+ path: string;
170
+ type: "registry:page" | "registry:file";
171
+ target: string;
172
+ content?: string | undefined;
173
+ } | {
174
+ path: string;
175
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
176
+ content?: string | undefined;
177
+ target?: string | undefined;
178
+ })[] | undefined;
179
+ cssVars?: {
180
+ theme?: Record<string, string> | undefined;
181
+ light?: Record<string, string> | undefined;
182
+ dark?: Record<string, string> | undefined;
183
+ } | undefined;
184
+ envVars?: Record<string, string> | undefined;
185
+ meta?: Record<string, any> | undefined;
186
+ categories?: string[] | undefined;
187
+ } | {
188
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
189
+ name: string;
190
+ tailwind?: {
191
+ config?: {
192
+ theme?: Record<string, any> | undefined;
193
+ content?: string[] | undefined;
194
+ plugins?: string[] | undefined;
195
+ } | undefined;
196
+ } | undefined;
197
+ docs?: string | undefined;
198
+ $schema?: string | undefined;
199
+ css?: Record<string, any> | undefined;
200
+ extends?: string | undefined;
201
+ title?: string | undefined;
202
+ author?: string | undefined;
203
+ description?: string | undefined;
204
+ dependencies?: string[] | undefined;
205
+ devDependencies?: string[] | undefined;
206
+ registryDependencies?: string[] | undefined;
207
+ files?: ({
208
+ path: string;
209
+ type: "registry:page" | "registry:file";
210
+ target: string;
211
+ content?: string | undefined;
212
+ } | {
213
+ path: string;
214
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
215
+ content?: string | undefined;
216
+ target?: string | undefined;
217
+ })[] | undefined;
218
+ cssVars?: {
219
+ theme?: Record<string, string> | undefined;
220
+ light?: Record<string, string> | undefined;
221
+ dark?: Record<string, string> | undefined;
222
+ } | undefined;
223
+ envVars?: Record<string, string> | undefined;
224
+ meta?: Record<string, any> | undefined;
225
+ categories?: string[] | undefined;
226
+ }>;
227
+ metadataByName: Map<string, {
228
+ readonly kind: "preset" | "provider" | "package" | "recipe" | "add-on";
229
+ readonly id: string;
230
+ readonly slot?: "search" | "auth" | "cms" | "commerce" | undefined;
231
+ readonly assets?: readonly {
232
+ readonly source: string;
233
+ readonly target: string;
234
+ }[] | undefined;
235
+ readonly binding?: {
236
+ readonly specifier: string;
237
+ readonly sourcePath?: string | undefined;
238
+ } | undefined;
239
+ readonly compatibility?: {
240
+ readonly conflicts?: readonly string[] | undefined;
241
+ readonly requires?: readonly string[] | undefined;
242
+ } | undefined;
243
+ readonly conditionalDependencies?: readonly {
244
+ readonly items: readonly [string, ...string[]];
245
+ readonly providers: readonly ["search" | "auth" | "cms" | "commerce", ...("search" | "auth" | "cms" | "commerce")[]];
246
+ }[] | undefined;
247
+ readonly packages?: readonly {
248
+ readonly cwd: string;
249
+ readonly name: string;
250
+ readonly section: "dependencies" | "devDependencies" | "optionalDependencies";
251
+ readonly specifier: string;
252
+ }[] | undefined;
253
+ readonly pnpmPatches?: readonly {
254
+ readonly dependency: string;
255
+ readonly path: string;
256
+ }[] | undefined;
257
+ readonly providerDependencies?: readonly {
258
+ readonly cwd: string;
259
+ readonly section: "dependencies" | "devDependencies" | "optionalDependencies";
260
+ readonly slot: "search" | "auth" | "cms" | "commerce";
261
+ }[] | undefined;
262
+ readonly providerSlots?: {
263
+ readonly search?: "required" | "optional" | "forbidden" | undefined;
264
+ readonly auth?: "required" | "optional" | "forbidden" | undefined;
265
+ readonly cms?: "required" | "optional" | "forbidden" | undefined;
266
+ readonly commerce?: "required" | "optional" | "forbidden" | undefined;
267
+ } | undefined;
268
+ readonly selections?: {
269
+ readonly addOns?: readonly string[] | undefined;
270
+ readonly providers?: {
271
+ readonly search?: string | undefined;
272
+ readonly auth?: string | undefined;
273
+ readonly cms?: string | undefined;
274
+ readonly commerce?: string | undefined;
275
+ } | undefined;
276
+ } | undefined;
277
+ readonly typeScriptAliases?: readonly {
278
+ readonly alias: string;
279
+ readonly cwd: string;
280
+ readonly sourcePath: string;
281
+ }[] | undefined;
282
+ }>;
283
+ references: Map<string, string>;
284
+ }, InvalidComposition, never>;
285
+ export declare const resolveSelection: (index: {
286
+ items: Map<string, {
287
+ type: "registry:base";
288
+ name: string;
289
+ tailwind?: {
290
+ config?: {
291
+ theme?: Record<string, any> | undefined;
292
+ content?: string[] | undefined;
293
+ plugins?: string[] | undefined;
294
+ } | undefined;
295
+ } | undefined;
296
+ docs?: string | undefined;
297
+ $schema?: string | undefined;
298
+ config?: {
299
+ tailwind?: {
300
+ baseColor?: string | undefined;
301
+ config?: string | undefined;
302
+ css?: string | undefined;
303
+ cssVariables?: boolean | undefined;
304
+ prefix?: string | undefined;
305
+ } | undefined;
306
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
307
+ menuAccent?: "subtle" | "bold" | undefined;
308
+ iconLibrary?: string | undefined;
309
+ style?: string | undefined;
310
+ $schema?: string | undefined;
311
+ rsc?: boolean | undefined;
312
+ tsx?: boolean | undefined;
313
+ rtl?: boolean | undefined;
314
+ aliases?: {
315
+ components?: string | undefined;
316
+ ui?: string | undefined;
317
+ utils?: string | undefined;
318
+ lib?: string | undefined;
319
+ hooks?: string | undefined;
320
+ } | undefined;
321
+ registries?: Record<string, string | {
322
+ url: string;
323
+ params?: Record<string, string> | undefined;
324
+ headers?: Record<string, string> | undefined;
325
+ }> | undefined;
326
+ } | undefined;
327
+ css?: Record<string, any> | undefined;
328
+ extends?: string | undefined;
329
+ title?: string | undefined;
330
+ author?: string | undefined;
331
+ description?: string | undefined;
332
+ dependencies?: string[] | undefined;
333
+ devDependencies?: string[] | undefined;
334
+ registryDependencies?: string[] | undefined;
335
+ files?: ({
336
+ path: string;
337
+ type: "registry:page" | "registry:file";
338
+ target: string;
339
+ content?: string | undefined;
340
+ } | {
341
+ path: string;
342
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
343
+ content?: string | undefined;
344
+ target?: string | undefined;
345
+ })[] | undefined;
346
+ cssVars?: {
347
+ theme?: Record<string, string> | undefined;
348
+ light?: Record<string, string> | undefined;
349
+ dark?: Record<string, string> | undefined;
350
+ } | undefined;
351
+ envVars?: Record<string, string> | undefined;
352
+ meta?: Record<string, any> | undefined;
353
+ categories?: string[] | undefined;
354
+ } | {
355
+ font: {
356
+ family: string;
357
+ provider: "google";
358
+ import: string;
359
+ variable: string;
360
+ weight?: string[] | undefined;
361
+ subsets?: string[] | undefined;
362
+ selector?: string | undefined;
363
+ dependency?: string | undefined;
364
+ };
365
+ type: "registry:font";
366
+ name: string;
367
+ tailwind?: {
368
+ config?: {
369
+ theme?: Record<string, any> | undefined;
370
+ content?: string[] | undefined;
371
+ plugins?: string[] | undefined;
372
+ } | undefined;
373
+ } | undefined;
374
+ docs?: string | undefined;
375
+ $schema?: string | undefined;
376
+ css?: Record<string, any> | undefined;
377
+ extends?: string | undefined;
378
+ title?: string | undefined;
379
+ author?: string | undefined;
380
+ description?: string | undefined;
381
+ dependencies?: string[] | undefined;
382
+ devDependencies?: string[] | undefined;
383
+ registryDependencies?: string[] | undefined;
384
+ files?: ({
385
+ path: string;
386
+ type: "registry:page" | "registry:file";
387
+ target: string;
388
+ content?: string | undefined;
389
+ } | {
390
+ path: string;
391
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
392
+ content?: string | undefined;
393
+ target?: string | undefined;
394
+ })[] | undefined;
395
+ cssVars?: {
396
+ theme?: Record<string, string> | undefined;
397
+ light?: Record<string, string> | undefined;
398
+ dark?: Record<string, string> | undefined;
399
+ } | undefined;
400
+ envVars?: Record<string, string> | undefined;
401
+ meta?: Record<string, any> | undefined;
402
+ categories?: string[] | undefined;
403
+ } | {
404
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
405
+ name: string;
406
+ tailwind?: {
407
+ config?: {
408
+ theme?: Record<string, any> | undefined;
409
+ content?: string[] | undefined;
410
+ plugins?: string[] | undefined;
411
+ } | undefined;
412
+ } | undefined;
413
+ docs?: string | undefined;
414
+ $schema?: string | undefined;
415
+ css?: Record<string, any> | undefined;
416
+ extends?: string | undefined;
417
+ title?: string | undefined;
418
+ author?: string | undefined;
419
+ description?: string | undefined;
420
+ dependencies?: string[] | undefined;
421
+ devDependencies?: string[] | undefined;
422
+ registryDependencies?: string[] | undefined;
423
+ files?: ({
424
+ path: string;
425
+ type: "registry:page" | "registry:file";
426
+ target: string;
427
+ content?: string | undefined;
428
+ } | {
429
+ path: string;
430
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
431
+ content?: string | undefined;
432
+ target?: string | undefined;
433
+ })[] | undefined;
434
+ cssVars?: {
435
+ theme?: Record<string, string> | undefined;
436
+ light?: Record<string, string> | undefined;
437
+ dark?: Record<string, string> | undefined;
438
+ } | undefined;
439
+ envVars?: Record<string, string> | undefined;
440
+ meta?: Record<string, any> | undefined;
441
+ categories?: string[] | undefined;
442
+ }>;
443
+ metadataByName: Map<string, {
444
+ readonly kind: "preset" | "provider" | "package" | "recipe" | "add-on";
445
+ readonly id: string;
446
+ readonly slot?: "search" | "auth" | "cms" | "commerce" | undefined;
447
+ readonly assets?: readonly {
448
+ readonly source: string;
449
+ readonly target: string;
450
+ }[] | undefined;
451
+ readonly binding?: {
452
+ readonly specifier: string;
453
+ readonly sourcePath?: string | undefined;
454
+ } | undefined;
455
+ readonly compatibility?: {
456
+ readonly conflicts?: readonly string[] | undefined;
457
+ readonly requires?: readonly string[] | undefined;
458
+ } | undefined;
459
+ readonly conditionalDependencies?: readonly {
460
+ readonly items: readonly [string, ...string[]];
461
+ readonly providers: readonly ["search" | "auth" | "cms" | "commerce", ...("search" | "auth" | "cms" | "commerce")[]];
462
+ }[] | undefined;
463
+ readonly packages?: readonly {
464
+ readonly cwd: string;
465
+ readonly name: string;
466
+ readonly section: "dependencies" | "devDependencies" | "optionalDependencies";
467
+ readonly specifier: string;
468
+ }[] | undefined;
469
+ readonly pnpmPatches?: readonly {
470
+ readonly dependency: string;
471
+ readonly path: string;
472
+ }[] | undefined;
473
+ readonly providerDependencies?: readonly {
474
+ readonly cwd: string;
475
+ readonly section: "dependencies" | "devDependencies" | "optionalDependencies";
476
+ readonly slot: "search" | "auth" | "cms" | "commerce";
477
+ }[] | undefined;
478
+ readonly providerSlots?: {
479
+ readonly search?: "required" | "optional" | "forbidden" | undefined;
480
+ readonly auth?: "required" | "optional" | "forbidden" | undefined;
481
+ readonly cms?: "required" | "optional" | "forbidden" | undefined;
482
+ readonly commerce?: "required" | "optional" | "forbidden" | undefined;
483
+ } | undefined;
484
+ readonly selections?: {
485
+ readonly addOns?: readonly string[] | undefined;
486
+ readonly providers?: {
487
+ readonly search?: string | undefined;
488
+ readonly auth?: string | undefined;
489
+ readonly cms?: string | undefined;
490
+ readonly commerce?: string | undefined;
491
+ } | undefined;
492
+ } | undefined;
493
+ readonly typeScriptAliases?: readonly {
494
+ readonly alias: string;
495
+ readonly cwd: string;
496
+ readonly sourcePath: string;
497
+ }[] | undefined;
498
+ }>;
499
+ references: Map<string, string>;
500
+ }, request: {
501
+ readonly addOns: readonly string[];
502
+ readonly providers: {
503
+ readonly search?: string | undefined;
504
+ readonly auth?: string | undefined;
505
+ readonly cms?: string | undefined;
506
+ readonly commerce?: string | undefined;
507
+ };
508
+ } | {
509
+ readonly addOns: readonly string[];
510
+ readonly preset: string;
511
+ }) => Effect.Effect<{
512
+ readonly addOns: readonly string[];
513
+ readonly providers: {
514
+ readonly search?: string | undefined;
515
+ readonly auth?: string | undefined;
516
+ readonly cms?: string | undefined;
517
+ readonly commerce?: string | undefined;
518
+ };
519
+ }, InvalidComposition | Schema.SchemaError, never>;
520
+ export declare const selectedConditionalDependencies: (metadata: typeof Metadata.Type | undefined, selection: Selection) => string[];
521
+ export declare const selectRegistryItems: (registry: RegistryCatalog, request: {
522
+ readonly addOns: readonly string[];
523
+ readonly providers: {
524
+ readonly search?: string | undefined;
525
+ readonly auth?: string | undefined;
526
+ readonly cms?: string | undefined;
527
+ readonly commerce?: string | undefined;
528
+ };
529
+ } | {
530
+ readonly addOns: readonly string[];
531
+ readonly preset: string;
532
+ }, acquiredReferences?: ReadonlyMap<string, string> | undefined) => Effect.Effect<{
533
+ references: Map<string, string>;
534
+ selectedItems: ({
535
+ type: "registry:base";
536
+ name: string;
537
+ tailwind?: {
538
+ config?: {
539
+ theme?: Record<string, any> | undefined;
540
+ content?: string[] | undefined;
541
+ plugins?: string[] | undefined;
542
+ } | undefined;
543
+ } | undefined;
544
+ docs?: string | undefined;
545
+ $schema?: string | undefined;
546
+ config?: {
547
+ tailwind?: {
548
+ baseColor?: string | undefined;
549
+ config?: string | undefined;
550
+ css?: string | undefined;
551
+ cssVariables?: boolean | undefined;
552
+ prefix?: string | undefined;
553
+ } | undefined;
554
+ menuColor?: "default" | "inverted" | "default-translucent" | "inverted-translucent" | undefined;
555
+ menuAccent?: "subtle" | "bold" | undefined;
556
+ iconLibrary?: string | undefined;
557
+ style?: string | undefined;
558
+ $schema?: string | undefined;
559
+ rsc?: boolean | undefined;
560
+ tsx?: boolean | undefined;
561
+ rtl?: boolean | undefined;
562
+ aliases?: {
563
+ components?: string | undefined;
564
+ ui?: string | undefined;
565
+ utils?: string | undefined;
566
+ lib?: string | undefined;
567
+ hooks?: string | undefined;
568
+ } | undefined;
569
+ registries?: Record<string, string | {
570
+ url: string;
571
+ params?: Record<string, string> | undefined;
572
+ headers?: Record<string, string> | undefined;
573
+ }> | undefined;
574
+ } | undefined;
575
+ css?: Record<string, any> | undefined;
576
+ extends?: string | undefined;
577
+ title?: string | undefined;
578
+ author?: string | undefined;
579
+ description?: string | undefined;
580
+ dependencies?: string[] | undefined;
581
+ devDependencies?: string[] | undefined;
582
+ registryDependencies?: string[] | undefined;
583
+ files?: ({
584
+ path: string;
585
+ type: "registry:page" | "registry:file";
586
+ target: string;
587
+ content?: string | undefined;
588
+ } | {
589
+ path: string;
590
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
591
+ content?: string | undefined;
592
+ target?: string | undefined;
593
+ })[] | undefined;
594
+ cssVars?: {
595
+ theme?: Record<string, string> | undefined;
596
+ light?: Record<string, string> | undefined;
597
+ dark?: Record<string, string> | undefined;
598
+ } | undefined;
599
+ envVars?: Record<string, string> | undefined;
600
+ meta?: Record<string, any> | undefined;
601
+ categories?: string[] | undefined;
602
+ } | {
603
+ font: {
604
+ family: string;
605
+ provider: "google";
606
+ import: string;
607
+ variable: string;
608
+ weight?: string[] | undefined;
609
+ subsets?: string[] | undefined;
610
+ selector?: string | undefined;
611
+ dependency?: string | undefined;
612
+ };
613
+ type: "registry:font";
614
+ name: string;
615
+ tailwind?: {
616
+ config?: {
617
+ theme?: Record<string, any> | undefined;
618
+ content?: string[] | undefined;
619
+ plugins?: string[] | undefined;
620
+ } | undefined;
621
+ } | undefined;
622
+ docs?: string | undefined;
623
+ $schema?: string | undefined;
624
+ css?: Record<string, any> | undefined;
625
+ extends?: string | undefined;
626
+ title?: string | undefined;
627
+ author?: string | undefined;
628
+ description?: string | undefined;
629
+ dependencies?: string[] | undefined;
630
+ devDependencies?: string[] | undefined;
631
+ registryDependencies?: string[] | undefined;
632
+ files?: ({
633
+ path: string;
634
+ type: "registry:page" | "registry:file";
635
+ target: string;
636
+ content?: string | undefined;
637
+ } | {
638
+ path: string;
639
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
640
+ content?: string | undefined;
641
+ target?: string | undefined;
642
+ })[] | undefined;
643
+ cssVars?: {
644
+ theme?: Record<string, string> | undefined;
645
+ light?: Record<string, string> | undefined;
646
+ dark?: Record<string, string> | undefined;
647
+ } | undefined;
648
+ envVars?: Record<string, string> | undefined;
649
+ meta?: Record<string, any> | undefined;
650
+ categories?: string[] | undefined;
651
+ } | {
652
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:page" | "registry:file" | "registry:theme" | "registry:style" | "registry:item" | "registry:example" | "registry:internal";
653
+ name: string;
654
+ tailwind?: {
655
+ config?: {
656
+ theme?: Record<string, any> | undefined;
657
+ content?: string[] | undefined;
658
+ plugins?: string[] | undefined;
659
+ } | undefined;
660
+ } | undefined;
661
+ docs?: string | undefined;
662
+ $schema?: string | undefined;
663
+ css?: Record<string, any> | undefined;
664
+ extends?: string | undefined;
665
+ title?: string | undefined;
666
+ author?: string | undefined;
667
+ description?: string | undefined;
668
+ dependencies?: string[] | undefined;
669
+ devDependencies?: string[] | undefined;
670
+ registryDependencies?: string[] | undefined;
671
+ files?: ({
672
+ path: string;
673
+ type: "registry:page" | "registry:file";
674
+ target: string;
675
+ content?: string | undefined;
676
+ } | {
677
+ path: string;
678
+ type: "registry:lib" | "registry:block" | "registry:component" | "registry:ui" | "registry:hook" | "registry:theme" | "registry:style" | "registry:item" | "registry:base" | "registry:font" | "registry:example" | "registry:internal";
679
+ content?: string | undefined;
680
+ target?: string | undefined;
681
+ })[] | undefined;
682
+ cssVars?: {
683
+ theme?: Record<string, string> | undefined;
684
+ light?: Record<string, string> | undefined;
685
+ dark?: Record<string, string> | undefined;
686
+ } | undefined;
687
+ envVars?: Record<string, string> | undefined;
688
+ meta?: Record<string, any> | undefined;
689
+ categories?: string[] | undefined;
690
+ })[];
691
+ assets: {
692
+ readonly source: string;
693
+ readonly target: string;
694
+ readonly owner: string;
695
+ }[];
696
+ ownedAssetTargets: Set<string>;
697
+ patches: Map<string, string>;
698
+ aliases: TypeScriptAlias[];
699
+ ownedAliases: TypeScriptAliasTarget[];
700
+ ownedRequirements: PackageRequirementTarget[];
701
+ requirements: PackageRequirement[];
702
+ }, IncompatibleSelection | InvalidComposition | Schema.SchemaError, never>;
703
+ export {};
704
+ //# sourceMappingURL=selection.d.ts.map