@mercurjs/cli 2.0.0-canary.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.
@@ -0,0 +1,318 @@
1
+ #!/usr/bin/env node
2
+ import { z } from 'zod';
3
+
4
+ type RegistryItemCategory = "workflows" | "api" | "links" | "modules" | "vendor" | "admin" | "lib";
5
+ declare const registryItemTypeSchema: z.ZodEnum<["registry:workflow", "registry:api", "registry:link", "registry:module", "registry:vendor", "registry:admin", "registry:lib"]>;
6
+ declare const registryItemFileSchema: z.ZodObject<{
7
+ path: z.ZodString;
8
+ content: z.ZodOptional<z.ZodString>;
9
+ type: z.ZodEnum<["registry:workflow", "registry:api", "registry:link", "registry:module", "registry:vendor", "registry:admin", "registry:lib"]>;
10
+ target: z.ZodOptional<z.ZodString>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ path: string;
13
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
14
+ content?: string | undefined;
15
+ target?: string | undefined;
16
+ }, {
17
+ path: string;
18
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
19
+ content?: string | undefined;
20
+ target?: string | undefined;
21
+ }>;
22
+ declare const registryItemSchema: z.ZodObject<{
23
+ $schema: z.ZodOptional<z.ZodString>;
24
+ name: z.ZodString;
25
+ title: z.ZodOptional<z.ZodString>;
26
+ author: z.ZodOptional<z.ZodString>;
27
+ description: z.ZodOptional<z.ZodString>;
28
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
29
+ devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
30
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
32
+ docs: z.ZodOptional<z.ZodString>;
33
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
+ } & {
35
+ files: z.ZodArray<z.ZodObject<{
36
+ path: z.ZodString;
37
+ content: z.ZodOptional<z.ZodString>;
38
+ type: z.ZodEnum<["registry:workflow", "registry:api", "registry:link", "registry:module", "registry:vendor", "registry:admin", "registry:lib"]>;
39
+ target: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ path: string;
42
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
43
+ content?: string | undefined;
44
+ target?: string | undefined;
45
+ }, {
46
+ path: string;
47
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
48
+ content?: string | undefined;
49
+ target?: string | undefined;
50
+ }>, "many">;
51
+ }, "strip", z.ZodTypeAny, {
52
+ name: string;
53
+ files: {
54
+ path: string;
55
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
56
+ content?: string | undefined;
57
+ target?: string | undefined;
58
+ }[];
59
+ $schema?: string | undefined;
60
+ title?: string | undefined;
61
+ author?: string | undefined;
62
+ description?: string | undefined;
63
+ dependencies?: string[] | undefined;
64
+ devDependencies?: string[] | undefined;
65
+ registryDependencies?: string[] | undefined;
66
+ meta?: Record<string, any> | undefined;
67
+ docs?: string | undefined;
68
+ categories?: string[] | undefined;
69
+ }, {
70
+ name: string;
71
+ files: {
72
+ path: string;
73
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
74
+ content?: string | undefined;
75
+ target?: string | undefined;
76
+ }[];
77
+ $schema?: string | undefined;
78
+ title?: string | undefined;
79
+ author?: string | undefined;
80
+ description?: string | undefined;
81
+ dependencies?: string[] | undefined;
82
+ devDependencies?: string[] | undefined;
83
+ registryDependencies?: string[] | undefined;
84
+ meta?: Record<string, any> | undefined;
85
+ docs?: string | undefined;
86
+ categories?: string[] | undefined;
87
+ }>;
88
+ type RegistryItem = z.infer<typeof registryItemSchema>;
89
+ declare const registrySchema: z.ZodObject<{
90
+ name: z.ZodString;
91
+ homepage: z.ZodString;
92
+ items: z.ZodArray<z.ZodObject<{
93
+ $schema: z.ZodOptional<z.ZodString>;
94
+ name: z.ZodString;
95
+ title: z.ZodOptional<z.ZodString>;
96
+ author: z.ZodOptional<z.ZodString>;
97
+ description: z.ZodOptional<z.ZodString>;
98
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
+ devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
102
+ docs: z.ZodOptional<z.ZodString>;
103
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
+ } & {
105
+ files: z.ZodArray<z.ZodObject<{
106
+ path: z.ZodString;
107
+ content: z.ZodOptional<z.ZodString>;
108
+ type: z.ZodEnum<["registry:workflow", "registry:api", "registry:link", "registry:module", "registry:vendor", "registry:admin", "registry:lib"]>;
109
+ target: z.ZodOptional<z.ZodString>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ path: string;
112
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
113
+ content?: string | undefined;
114
+ target?: string | undefined;
115
+ }, {
116
+ path: string;
117
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
118
+ content?: string | undefined;
119
+ target?: string | undefined;
120
+ }>, "many">;
121
+ }, "strip", z.ZodTypeAny, {
122
+ name: string;
123
+ files: {
124
+ path: string;
125
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
126
+ content?: string | undefined;
127
+ target?: string | undefined;
128
+ }[];
129
+ $schema?: string | undefined;
130
+ title?: string | undefined;
131
+ author?: string | undefined;
132
+ description?: string | undefined;
133
+ dependencies?: string[] | undefined;
134
+ devDependencies?: string[] | undefined;
135
+ registryDependencies?: string[] | undefined;
136
+ meta?: Record<string, any> | undefined;
137
+ docs?: string | undefined;
138
+ categories?: string[] | undefined;
139
+ }, {
140
+ name: string;
141
+ files: {
142
+ path: string;
143
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
144
+ content?: string | undefined;
145
+ target?: string | undefined;
146
+ }[];
147
+ $schema?: string | undefined;
148
+ title?: string | undefined;
149
+ author?: string | undefined;
150
+ description?: string | undefined;
151
+ dependencies?: string[] | undefined;
152
+ devDependencies?: string[] | undefined;
153
+ registryDependencies?: string[] | undefined;
154
+ meta?: Record<string, any> | undefined;
155
+ docs?: string | undefined;
156
+ categories?: string[] | undefined;
157
+ }>, "many">;
158
+ }, "strip", z.ZodTypeAny, {
159
+ name: string;
160
+ homepage: string;
161
+ items: {
162
+ name: string;
163
+ files: {
164
+ path: string;
165
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
166
+ content?: string | undefined;
167
+ target?: string | undefined;
168
+ }[];
169
+ $schema?: string | undefined;
170
+ title?: string | undefined;
171
+ author?: string | undefined;
172
+ description?: string | undefined;
173
+ dependencies?: string[] | undefined;
174
+ devDependencies?: string[] | undefined;
175
+ registryDependencies?: string[] | undefined;
176
+ meta?: Record<string, any> | undefined;
177
+ docs?: string | undefined;
178
+ categories?: string[] | undefined;
179
+ }[];
180
+ }, {
181
+ name: string;
182
+ homepage: string;
183
+ items: {
184
+ name: string;
185
+ files: {
186
+ path: string;
187
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
188
+ content?: string | undefined;
189
+ target?: string | undefined;
190
+ }[];
191
+ $schema?: string | undefined;
192
+ title?: string | undefined;
193
+ author?: string | undefined;
194
+ description?: string | undefined;
195
+ dependencies?: string[] | undefined;
196
+ devDependencies?: string[] | undefined;
197
+ registryDependencies?: string[] | undefined;
198
+ meta?: Record<string, any> | undefined;
199
+ docs?: string | undefined;
200
+ categories?: string[] | undefined;
201
+ }[];
202
+ }>;
203
+ type Registry = z.infer<typeof registrySchema>;
204
+ declare const registryIndexSchema: z.ZodArray<z.ZodObject<{
205
+ $schema: z.ZodOptional<z.ZodString>;
206
+ name: z.ZodString;
207
+ title: z.ZodOptional<z.ZodString>;
208
+ author: z.ZodOptional<z.ZodString>;
209
+ description: z.ZodOptional<z.ZodString>;
210
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
+ devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
213
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
214
+ docs: z.ZodOptional<z.ZodString>;
215
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ }, "strip", z.ZodTypeAny, {
217
+ name: string;
218
+ $schema?: string | undefined;
219
+ title?: string | undefined;
220
+ author?: string | undefined;
221
+ description?: string | undefined;
222
+ dependencies?: string[] | undefined;
223
+ devDependencies?: string[] | undefined;
224
+ registryDependencies?: string[] | undefined;
225
+ meta?: Record<string, any> | undefined;
226
+ docs?: string | undefined;
227
+ categories?: string[] | undefined;
228
+ }, {
229
+ name: string;
230
+ $schema?: string | undefined;
231
+ title?: string | undefined;
232
+ author?: string | undefined;
233
+ description?: string | undefined;
234
+ dependencies?: string[] | undefined;
235
+ devDependencies?: string[] | undefined;
236
+ registryDependencies?: string[] | undefined;
237
+ meta?: Record<string, any> | undefined;
238
+ docs?: string | undefined;
239
+ categories?: string[] | undefined;
240
+ }>, "many">;
241
+ declare const registryResolvedItemsTreeSchema: z.ZodObject<Pick<{
242
+ $schema: z.ZodOptional<z.ZodString>;
243
+ name: z.ZodString;
244
+ title: z.ZodOptional<z.ZodString>;
245
+ author: z.ZodOptional<z.ZodString>;
246
+ description: z.ZodOptional<z.ZodString>;
247
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
248
+ devDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
249
+ registryDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
251
+ docs: z.ZodOptional<z.ZodString>;
252
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
253
+ } & {
254
+ files: z.ZodArray<z.ZodObject<{
255
+ path: z.ZodString;
256
+ content: z.ZodOptional<z.ZodString>;
257
+ type: z.ZodEnum<["registry:workflow", "registry:api", "registry:link", "registry:module", "registry:vendor", "registry:admin", "registry:lib"]>;
258
+ target: z.ZodOptional<z.ZodString>;
259
+ }, "strip", z.ZodTypeAny, {
260
+ path: string;
261
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
262
+ content?: string | undefined;
263
+ target?: string | undefined;
264
+ }, {
265
+ path: string;
266
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
267
+ content?: string | undefined;
268
+ target?: string | undefined;
269
+ }>, "many">;
270
+ }, "dependencies" | "devDependencies" | "docs" | "files">, "strip", z.ZodTypeAny, {
271
+ files: {
272
+ path: string;
273
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
274
+ content?: string | undefined;
275
+ target?: string | undefined;
276
+ }[];
277
+ dependencies?: string[] | undefined;
278
+ devDependencies?: string[] | undefined;
279
+ docs?: string | undefined;
280
+ }, {
281
+ files: {
282
+ path: string;
283
+ type: "registry:workflow" | "registry:api" | "registry:link" | "registry:module" | "registry:vendor" | "registry:admin" | "registry:lib";
284
+ content?: string | undefined;
285
+ target?: string | undefined;
286
+ }[];
287
+ dependencies?: string[] | undefined;
288
+ devDependencies?: string[] | undefined;
289
+ docs?: string | undefined;
290
+ }>;
291
+ declare const registryConfigItemSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
292
+ url: z.ZodString;
293
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
294
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ url: string;
297
+ params?: Record<string, string> | undefined;
298
+ headers?: Record<string, string> | undefined;
299
+ }, {
300
+ url: string;
301
+ params?: Record<string, string> | undefined;
302
+ headers?: Record<string, string> | undefined;
303
+ }>]>;
304
+ declare const registryConfigSchema: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodUnion<[z.ZodString, z.ZodObject<{
305
+ url: z.ZodString;
306
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
307
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
+ }, "strip", z.ZodTypeAny, {
309
+ url: string;
310
+ params?: Record<string, string> | undefined;
311
+ headers?: Record<string, string> | undefined;
312
+ }, {
313
+ url: string;
314
+ params?: Record<string, string> | undefined;
315
+ headers?: Record<string, string> | undefined;
316
+ }>]>>;
317
+
318
+ export { type Registry, type RegistryItem, type RegistryItemCategory, registryConfigItemSchema, registryConfigSchema, registryIndexSchema, registryItemFileSchema, registryItemSchema, registryItemTypeSchema, registryResolvedItemsTreeSchema, registrySchema };