@doubledigit/cli 0.1.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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/dist/codegen.d.ts +12 -0
  3. package/dist/codegen.d.ts.map +1 -0
  4. package/dist/codegen.js +107 -0
  5. package/dist/commands/add.d.ts +26 -0
  6. package/dist/commands/add.d.ts.map +1 -0
  7. package/dist/commands/add.js +548 -0
  8. package/dist/commands/browse.d.ts +8 -0
  9. package/dist/commands/browse.d.ts.map +1 -0
  10. package/dist/commands/browse.js +116 -0
  11. package/dist/commands/create.d.ts +12 -0
  12. package/dist/commands/create.d.ts.map +1 -0
  13. package/dist/commands/create.js +218 -0
  14. package/dist/commands/db.d.ts +2 -0
  15. package/dist/commands/db.d.ts.map +1 -0
  16. package/dist/commands/db.js +64 -0
  17. package/dist/commands/disable.d.ts +5 -0
  18. package/dist/commands/disable.d.ts.map +1 -0
  19. package/dist/commands/disable.js +29 -0
  20. package/dist/commands/doctor.d.ts +2 -0
  21. package/dist/commands/doctor.d.ts.map +1 -0
  22. package/dist/commands/doctor.js +88 -0
  23. package/dist/commands/enable.d.ts +5 -0
  24. package/dist/commands/enable.d.ts.map +1 -0
  25. package/dist/commands/enable.js +29 -0
  26. package/dist/commands/info.d.ts +8 -0
  27. package/dist/commands/info.d.ts.map +1 -0
  28. package/dist/commands/info.js +84 -0
  29. package/dist/commands/list.d.ts +5 -0
  30. package/dist/commands/list.d.ts.map +1 -0
  31. package/dist/commands/list.js +44 -0
  32. package/dist/commands/marketplace.d.ts +11 -0
  33. package/dist/commands/marketplace.d.ts.map +1 -0
  34. package/dist/commands/marketplace.js +205 -0
  35. package/dist/commands/onboard.d.ts +2 -0
  36. package/dist/commands/onboard.d.ts.map +1 -0
  37. package/dist/commands/onboard.js +58 -0
  38. package/dist/commands/outdated.d.ts +8 -0
  39. package/dist/commands/outdated.d.ts.map +1 -0
  40. package/dist/commands/outdated.js +107 -0
  41. package/dist/commands/reconcile.d.ts +12 -0
  42. package/dist/commands/reconcile.d.ts.map +1 -0
  43. package/dist/commands/reconcile.js +175 -0
  44. package/dist/commands/run.d.ts +2 -0
  45. package/dist/commands/run.d.ts.map +1 -0
  46. package/dist/commands/run.js +37 -0
  47. package/dist/commands/sync.d.ts +5 -0
  48. package/dist/commands/sync.d.ts.map +1 -0
  49. package/dist/commands/sync.js +34 -0
  50. package/dist/commands/uninstall.d.ts +14 -0
  51. package/dist/commands/uninstall.d.ts.map +1 -0
  52. package/dist/commands/uninstall.js +190 -0
  53. package/dist/config.d.ts +19 -0
  54. package/dist/config.d.ts.map +1 -0
  55. package/dist/config.js +37 -0
  56. package/dist/index.d.ts +13 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +181 -0
  59. package/dist/lib/github-auth.d.ts +8 -0
  60. package/dist/lib/github-auth.d.ts.map +1 -0
  61. package/dist/lib/github-auth.js +30 -0
  62. package/dist/lib/lock-file.d.ts +67 -0
  63. package/dist/lib/lock-file.d.ts.map +1 -0
  64. package/dist/lib/lock-file.js +117 -0
  65. package/dist/lib/marketplace-schema.d.ts +607 -0
  66. package/dist/lib/marketplace-schema.d.ts.map +1 -0
  67. package/dist/lib/marketplace-schema.js +111 -0
  68. package/dist/lib/marketplace.d.ts +57 -0
  69. package/dist/lib/marketplace.d.ts.map +1 -0
  70. package/dist/lib/marketplace.js +270 -0
  71. package/dist/lib/onboarding.d.ts +84 -0
  72. package/dist/lib/onboarding.d.ts.map +1 -0
  73. package/dist/lib/onboarding.js +1004 -0
  74. package/dist/lib/rewrite-extension-tsconfig.d.ts +22 -0
  75. package/dist/lib/rewrite-extension-tsconfig.d.ts.map +1 -0
  76. package/dist/lib/rewrite-extension-tsconfig.js +80 -0
  77. package/dist/lib/source-parser.d.ts +35 -0
  78. package/dist/lib/source-parser.d.ts.map +1 -0
  79. package/dist/lib/source-parser.js +121 -0
  80. package/dist/lib/validators.d.ts +73 -0
  81. package/dist/lib/validators.d.ts.map +1 -0
  82. package/dist/lib/validators.js +435 -0
  83. package/dist/paths.d.ts +46 -0
  84. package/dist/paths.d.ts.map +1 -0
  85. package/dist/paths.js +85 -0
  86. package/dist/scanner.d.ts +41 -0
  87. package/dist/scanner.d.ts.map +1 -0
  88. package/dist/scanner.js +100 -0
  89. package/package.json +49 -0
@@ -0,0 +1,607 @@
1
+ /**
2
+ * Zod schemas for marketplace manifests and known-marketplaces config.
3
+ *
4
+ * Two files:
5
+ * 1. marketplace.json — lives inside a marketplace repo at .doubledigit/marketplace.json
6
+ * 2. marketplaces.json — lives in the consuming project at .doubledigit/marketplaces.json
7
+ */
8
+ import { z } from 'zod';
9
+ export declare const MarketplaceNameSchema: z.ZodString;
10
+ export declare const ExtensionSourceSchema: z.ZodObject<{
11
+ /** Source type — currently only git-subdir is supported */
12
+ type: z.ZodDefault<z.ZodEnum<["git-subdir", "git-repo"]>>;
13
+ /** GitHub owner/repo (e.g. "digitaldouble/micro-apps") */
14
+ url: z.ZodString;
15
+ /** Path within the repo (e.g. "packages/habit-tracker") */
16
+ path: z.ZodOptional<z.ZodString>;
17
+ /** Git ref (branch, tag, SHA) */
18
+ ref: z.ZodOptional<z.ZodString>;
19
+ /** Pinned commit SHA for reproducibility */
20
+ sha: z.ZodOptional<z.ZodString>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ type: "git-subdir" | "git-repo";
23
+ url: string;
24
+ path?: string | undefined;
25
+ ref?: string | undefined;
26
+ sha?: string | undefined;
27
+ }, {
28
+ url: string;
29
+ type?: "git-subdir" | "git-repo" | undefined;
30
+ path?: string | undefined;
31
+ ref?: string | undefined;
32
+ sha?: string | undefined;
33
+ }>;
34
+ export type ExtensionSource = z.infer<typeof ExtensionSourceSchema>;
35
+ export declare const ExtensionKindSchema: z.ZodEnum<["micro-app", "payload-plugin"]>;
36
+ export type ExtensionKind = z.infer<typeof ExtensionKindSchema>;
37
+ export declare const MarketplaceExtensionSchema: z.ZodObject<{
38
+ /** Unique name within the marketplace */
39
+ name: z.ZodString;
40
+ /** Extension kind */
41
+ kind: z.ZodEnum<["micro-app", "payload-plugin"]>;
42
+ /** Human-readable description */
43
+ description: z.ZodOptional<z.ZodString>;
44
+ /** Semver version string */
45
+ version: z.ZodOptional<z.ZodString>;
46
+ /** Where the code lives */
47
+ source: z.ZodObject<{
48
+ /** Source type — currently only git-subdir is supported */
49
+ type: z.ZodDefault<z.ZodEnum<["git-subdir", "git-repo"]>>;
50
+ /** GitHub owner/repo (e.g. "digitaldouble/micro-apps") */
51
+ url: z.ZodString;
52
+ /** Path within the repo (e.g. "packages/habit-tracker") */
53
+ path: z.ZodOptional<z.ZodString>;
54
+ /** Git ref (branch, tag, SHA) */
55
+ ref: z.ZodOptional<z.ZodString>;
56
+ /** Pinned commit SHA for reproducibility */
57
+ sha: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ type: "git-subdir" | "git-repo";
60
+ url: string;
61
+ path?: string | undefined;
62
+ ref?: string | undefined;
63
+ sha?: string | undefined;
64
+ }, {
65
+ url: string;
66
+ type?: "git-subdir" | "git-repo" | undefined;
67
+ path?: string | undefined;
68
+ ref?: string | undefined;
69
+ sha?: string | undefined;
70
+ }>;
71
+ /** Whether marketplace or source is authoritative */
72
+ sourceAuthority: z.ZodDefault<z.ZodEnum<["source", "marketplace"]>>;
73
+ /** Verified by the marketplace maintainer */
74
+ verified: z.ZodDefault<z.ZodBoolean>;
75
+ /** Discovery tags */
76
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
77
+ /** Author name or GitHub handle */
78
+ author: z.ZodOptional<z.ZodString>;
79
+ /** Minimum platform version required */
80
+ minPlatformVersion: z.ZodOptional<z.ZodString>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ name: string;
83
+ kind: "micro-app" | "payload-plugin";
84
+ source: {
85
+ type: "git-subdir" | "git-repo";
86
+ url: string;
87
+ path?: string | undefined;
88
+ ref?: string | undefined;
89
+ sha?: string | undefined;
90
+ };
91
+ sourceAuthority: "source" | "marketplace";
92
+ verified: boolean;
93
+ tags: string[];
94
+ description?: string | undefined;
95
+ version?: string | undefined;
96
+ author?: string | undefined;
97
+ minPlatformVersion?: string | undefined;
98
+ }, {
99
+ name: string;
100
+ kind: "micro-app" | "payload-plugin";
101
+ source: {
102
+ url: string;
103
+ type?: "git-subdir" | "git-repo" | undefined;
104
+ path?: string | undefined;
105
+ ref?: string | undefined;
106
+ sha?: string | undefined;
107
+ };
108
+ description?: string | undefined;
109
+ version?: string | undefined;
110
+ sourceAuthority?: "source" | "marketplace" | undefined;
111
+ verified?: boolean | undefined;
112
+ tags?: string[] | undefined;
113
+ author?: string | undefined;
114
+ minPlatformVersion?: string | undefined;
115
+ }>;
116
+ export type MarketplaceExtension = z.infer<typeof MarketplaceExtensionSchema>;
117
+ export declare const MarketplaceManifestSchema: z.ZodObject<{
118
+ /** Marketplace display name (safe slug for filesystem use) */
119
+ name: z.ZodString;
120
+ /** Marketplace owner info */
121
+ owner: z.ZodOptional<z.ZodObject<{
122
+ name: z.ZodString;
123
+ email: z.ZodOptional<z.ZodString>;
124
+ url: z.ZodOptional<z.ZodString>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ name: string;
127
+ url?: string | undefined;
128
+ email?: string | undefined;
129
+ }, {
130
+ name: string;
131
+ url?: string | undefined;
132
+ email?: string | undefined;
133
+ }>>;
134
+ /** Marketplace metadata */
135
+ metadata: z.ZodOptional<z.ZodObject<{
136
+ description: z.ZodOptional<z.ZodString>;
137
+ version: z.ZodOptional<z.ZodString>;
138
+ /** Root directory within the marketplace repo for extension dirs */
139
+ extensionRoot: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ description?: string | undefined;
142
+ version?: string | undefined;
143
+ extensionRoot?: string | undefined;
144
+ }, {
145
+ description?: string | undefined;
146
+ version?: string | undefined;
147
+ extensionRoot?: string | undefined;
148
+ }>>;
149
+ /** List of extensions in this marketplace */
150
+ extensions: z.ZodArray<z.ZodObject<{
151
+ /** Unique name within the marketplace */
152
+ name: z.ZodString;
153
+ /** Extension kind */
154
+ kind: z.ZodEnum<["micro-app", "payload-plugin"]>;
155
+ /** Human-readable description */
156
+ description: z.ZodOptional<z.ZodString>;
157
+ /** Semver version string */
158
+ version: z.ZodOptional<z.ZodString>;
159
+ /** Where the code lives */
160
+ source: z.ZodObject<{
161
+ /** Source type — currently only git-subdir is supported */
162
+ type: z.ZodDefault<z.ZodEnum<["git-subdir", "git-repo"]>>;
163
+ /** GitHub owner/repo (e.g. "digitaldouble/micro-apps") */
164
+ url: z.ZodString;
165
+ /** Path within the repo (e.g. "packages/habit-tracker") */
166
+ path: z.ZodOptional<z.ZodString>;
167
+ /** Git ref (branch, tag, SHA) */
168
+ ref: z.ZodOptional<z.ZodString>;
169
+ /** Pinned commit SHA for reproducibility */
170
+ sha: z.ZodOptional<z.ZodString>;
171
+ }, "strip", z.ZodTypeAny, {
172
+ type: "git-subdir" | "git-repo";
173
+ url: string;
174
+ path?: string | undefined;
175
+ ref?: string | undefined;
176
+ sha?: string | undefined;
177
+ }, {
178
+ url: string;
179
+ type?: "git-subdir" | "git-repo" | undefined;
180
+ path?: string | undefined;
181
+ ref?: string | undefined;
182
+ sha?: string | undefined;
183
+ }>;
184
+ /** Whether marketplace or source is authoritative */
185
+ sourceAuthority: z.ZodDefault<z.ZodEnum<["source", "marketplace"]>>;
186
+ /** Verified by the marketplace maintainer */
187
+ verified: z.ZodDefault<z.ZodBoolean>;
188
+ /** Discovery tags */
189
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
190
+ /** Author name or GitHub handle */
191
+ author: z.ZodOptional<z.ZodString>;
192
+ /** Minimum platform version required */
193
+ minPlatformVersion: z.ZodOptional<z.ZodString>;
194
+ }, "strip", z.ZodTypeAny, {
195
+ name: string;
196
+ kind: "micro-app" | "payload-plugin";
197
+ source: {
198
+ type: "git-subdir" | "git-repo";
199
+ url: string;
200
+ path?: string | undefined;
201
+ ref?: string | undefined;
202
+ sha?: string | undefined;
203
+ };
204
+ sourceAuthority: "source" | "marketplace";
205
+ verified: boolean;
206
+ tags: string[];
207
+ description?: string | undefined;
208
+ version?: string | undefined;
209
+ author?: string | undefined;
210
+ minPlatformVersion?: string | undefined;
211
+ }, {
212
+ name: string;
213
+ kind: "micro-app" | "payload-plugin";
214
+ source: {
215
+ url: string;
216
+ type?: "git-subdir" | "git-repo" | undefined;
217
+ path?: string | undefined;
218
+ ref?: string | undefined;
219
+ sha?: string | undefined;
220
+ };
221
+ description?: string | undefined;
222
+ version?: string | undefined;
223
+ sourceAuthority?: "source" | "marketplace" | undefined;
224
+ verified?: boolean | undefined;
225
+ tags?: string[] | undefined;
226
+ author?: string | undefined;
227
+ minPlatformVersion?: string | undefined;
228
+ }>, "many">;
229
+ }, "strip", z.ZodTypeAny, {
230
+ extensions: {
231
+ name: string;
232
+ kind: "micro-app" | "payload-plugin";
233
+ source: {
234
+ type: "git-subdir" | "git-repo";
235
+ url: string;
236
+ path?: string | undefined;
237
+ ref?: string | undefined;
238
+ sha?: string | undefined;
239
+ };
240
+ sourceAuthority: "source" | "marketplace";
241
+ verified: boolean;
242
+ tags: string[];
243
+ description?: string | undefined;
244
+ version?: string | undefined;
245
+ author?: string | undefined;
246
+ minPlatformVersion?: string | undefined;
247
+ }[];
248
+ name: string;
249
+ owner?: {
250
+ name: string;
251
+ url?: string | undefined;
252
+ email?: string | undefined;
253
+ } | undefined;
254
+ metadata?: {
255
+ description?: string | undefined;
256
+ version?: string | undefined;
257
+ extensionRoot?: string | undefined;
258
+ } | undefined;
259
+ }, {
260
+ extensions: {
261
+ name: string;
262
+ kind: "micro-app" | "payload-plugin";
263
+ source: {
264
+ url: string;
265
+ type?: "git-subdir" | "git-repo" | undefined;
266
+ path?: string | undefined;
267
+ ref?: string | undefined;
268
+ sha?: string | undefined;
269
+ };
270
+ description?: string | undefined;
271
+ version?: string | undefined;
272
+ sourceAuthority?: "source" | "marketplace" | undefined;
273
+ verified?: boolean | undefined;
274
+ tags?: string[] | undefined;
275
+ author?: string | undefined;
276
+ minPlatformVersion?: string | undefined;
277
+ }[];
278
+ name: string;
279
+ owner?: {
280
+ name: string;
281
+ url?: string | undefined;
282
+ email?: string | undefined;
283
+ } | undefined;
284
+ metadata?: {
285
+ description?: string | undefined;
286
+ version?: string | undefined;
287
+ extensionRoot?: string | undefined;
288
+ } | undefined;
289
+ }>;
290
+ export type MarketplaceManifest = z.infer<typeof MarketplaceManifestSchema>;
291
+ export declare const KnownMarketplaceEntrySchema: z.ZodObject<{
292
+ /** GitHub source (owner/repo or full URL) */
293
+ source: z.ZodString;
294
+ /** Path within the repo to .doubledigit/marketplace.json (defaults to root) */
295
+ manifestPath: z.ZodDefault<z.ZodString>;
296
+ /** Git ref to fetch from */
297
+ ref: z.ZodOptional<z.ZodString>;
298
+ /** Last-fetched manifest cache */
299
+ cachedAt: z.ZodOptional<z.ZodString>;
300
+ /** Number of extensions in the last fetch */
301
+ extensionCount: z.ZodOptional<z.ZodNumber>;
302
+ }, "strip", z.ZodTypeAny, {
303
+ source: string;
304
+ manifestPath: string;
305
+ ref?: string | undefined;
306
+ cachedAt?: string | undefined;
307
+ extensionCount?: number | undefined;
308
+ }, {
309
+ source: string;
310
+ ref?: string | undefined;
311
+ manifestPath?: string | undefined;
312
+ cachedAt?: string | undefined;
313
+ extensionCount?: number | undefined;
314
+ }>;
315
+ export type KnownMarketplaceEntry = z.infer<typeof KnownMarketplaceEntrySchema>;
316
+ export declare const KnownMarketplacesFileSchema: z.ZodObject<{
317
+ version: z.ZodDefault<z.ZodLiteral<1>>;
318
+ marketplaces: z.ZodRecord<z.ZodString, z.ZodObject<{
319
+ /** GitHub source (owner/repo or full URL) */
320
+ source: z.ZodString;
321
+ /** Path within the repo to .doubledigit/marketplace.json (defaults to root) */
322
+ manifestPath: z.ZodDefault<z.ZodString>;
323
+ /** Git ref to fetch from */
324
+ ref: z.ZodOptional<z.ZodString>;
325
+ /** Last-fetched manifest cache */
326
+ cachedAt: z.ZodOptional<z.ZodString>;
327
+ /** Number of extensions in the last fetch */
328
+ extensionCount: z.ZodOptional<z.ZodNumber>;
329
+ }, "strip", z.ZodTypeAny, {
330
+ source: string;
331
+ manifestPath: string;
332
+ ref?: string | undefined;
333
+ cachedAt?: string | undefined;
334
+ extensionCount?: number | undefined;
335
+ }, {
336
+ source: string;
337
+ ref?: string | undefined;
338
+ manifestPath?: string | undefined;
339
+ cachedAt?: string | undefined;
340
+ extensionCount?: number | undefined;
341
+ }>>;
342
+ }, "strip", z.ZodTypeAny, {
343
+ version: 1;
344
+ marketplaces: Record<string, {
345
+ source: string;
346
+ manifestPath: string;
347
+ ref?: string | undefined;
348
+ cachedAt?: string | undefined;
349
+ extensionCount?: number | undefined;
350
+ }>;
351
+ }, {
352
+ marketplaces: Record<string, {
353
+ source: string;
354
+ ref?: string | undefined;
355
+ manifestPath?: string | undefined;
356
+ cachedAt?: string | undefined;
357
+ extensionCount?: number | undefined;
358
+ }>;
359
+ version?: 1 | undefined;
360
+ }>;
361
+ export type KnownMarketplacesFile = z.infer<typeof KnownMarketplacesFileSchema>;
362
+ export declare const CachedMarketplaceSchema: z.ZodObject<{
363
+ /** When this cache was last updated */
364
+ fetchedAt: z.ZodString;
365
+ /** The marketplace manifest */
366
+ manifest: z.ZodObject<{
367
+ /** Marketplace display name (safe slug for filesystem use) */
368
+ name: z.ZodString;
369
+ /** Marketplace owner info */
370
+ owner: z.ZodOptional<z.ZodObject<{
371
+ name: z.ZodString;
372
+ email: z.ZodOptional<z.ZodString>;
373
+ url: z.ZodOptional<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ name: string;
376
+ url?: string | undefined;
377
+ email?: string | undefined;
378
+ }, {
379
+ name: string;
380
+ url?: string | undefined;
381
+ email?: string | undefined;
382
+ }>>;
383
+ /** Marketplace metadata */
384
+ metadata: z.ZodOptional<z.ZodObject<{
385
+ description: z.ZodOptional<z.ZodString>;
386
+ version: z.ZodOptional<z.ZodString>;
387
+ /** Root directory within the marketplace repo for extension dirs */
388
+ extensionRoot: z.ZodOptional<z.ZodString>;
389
+ }, "strip", z.ZodTypeAny, {
390
+ description?: string | undefined;
391
+ version?: string | undefined;
392
+ extensionRoot?: string | undefined;
393
+ }, {
394
+ description?: string | undefined;
395
+ version?: string | undefined;
396
+ extensionRoot?: string | undefined;
397
+ }>>;
398
+ /** List of extensions in this marketplace */
399
+ extensions: z.ZodArray<z.ZodObject<{
400
+ /** Unique name within the marketplace */
401
+ name: z.ZodString;
402
+ /** Extension kind */
403
+ kind: z.ZodEnum<["micro-app", "payload-plugin"]>;
404
+ /** Human-readable description */
405
+ description: z.ZodOptional<z.ZodString>;
406
+ /** Semver version string */
407
+ version: z.ZodOptional<z.ZodString>;
408
+ /** Where the code lives */
409
+ source: z.ZodObject<{
410
+ /** Source type — currently only git-subdir is supported */
411
+ type: z.ZodDefault<z.ZodEnum<["git-subdir", "git-repo"]>>;
412
+ /** GitHub owner/repo (e.g. "digitaldouble/micro-apps") */
413
+ url: z.ZodString;
414
+ /** Path within the repo (e.g. "packages/habit-tracker") */
415
+ path: z.ZodOptional<z.ZodString>;
416
+ /** Git ref (branch, tag, SHA) */
417
+ ref: z.ZodOptional<z.ZodString>;
418
+ /** Pinned commit SHA for reproducibility */
419
+ sha: z.ZodOptional<z.ZodString>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ type: "git-subdir" | "git-repo";
422
+ url: string;
423
+ path?: string | undefined;
424
+ ref?: string | undefined;
425
+ sha?: string | undefined;
426
+ }, {
427
+ url: string;
428
+ type?: "git-subdir" | "git-repo" | undefined;
429
+ path?: string | undefined;
430
+ ref?: string | undefined;
431
+ sha?: string | undefined;
432
+ }>;
433
+ /** Whether marketplace or source is authoritative */
434
+ sourceAuthority: z.ZodDefault<z.ZodEnum<["source", "marketplace"]>>;
435
+ /** Verified by the marketplace maintainer */
436
+ verified: z.ZodDefault<z.ZodBoolean>;
437
+ /** Discovery tags */
438
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
439
+ /** Author name or GitHub handle */
440
+ author: z.ZodOptional<z.ZodString>;
441
+ /** Minimum platform version required */
442
+ minPlatformVersion: z.ZodOptional<z.ZodString>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ name: string;
445
+ kind: "micro-app" | "payload-plugin";
446
+ source: {
447
+ type: "git-subdir" | "git-repo";
448
+ url: string;
449
+ path?: string | undefined;
450
+ ref?: string | undefined;
451
+ sha?: string | undefined;
452
+ };
453
+ sourceAuthority: "source" | "marketplace";
454
+ verified: boolean;
455
+ tags: string[];
456
+ description?: string | undefined;
457
+ version?: string | undefined;
458
+ author?: string | undefined;
459
+ minPlatformVersion?: string | undefined;
460
+ }, {
461
+ name: string;
462
+ kind: "micro-app" | "payload-plugin";
463
+ source: {
464
+ url: string;
465
+ type?: "git-subdir" | "git-repo" | undefined;
466
+ path?: string | undefined;
467
+ ref?: string | undefined;
468
+ sha?: string | undefined;
469
+ };
470
+ description?: string | undefined;
471
+ version?: string | undefined;
472
+ sourceAuthority?: "source" | "marketplace" | undefined;
473
+ verified?: boolean | undefined;
474
+ tags?: string[] | undefined;
475
+ author?: string | undefined;
476
+ minPlatformVersion?: string | undefined;
477
+ }>, "many">;
478
+ }, "strip", z.ZodTypeAny, {
479
+ extensions: {
480
+ name: string;
481
+ kind: "micro-app" | "payload-plugin";
482
+ source: {
483
+ type: "git-subdir" | "git-repo";
484
+ url: string;
485
+ path?: string | undefined;
486
+ ref?: string | undefined;
487
+ sha?: string | undefined;
488
+ };
489
+ sourceAuthority: "source" | "marketplace";
490
+ verified: boolean;
491
+ tags: string[];
492
+ description?: string | undefined;
493
+ version?: string | undefined;
494
+ author?: string | undefined;
495
+ minPlatformVersion?: string | undefined;
496
+ }[];
497
+ name: string;
498
+ owner?: {
499
+ name: string;
500
+ url?: string | undefined;
501
+ email?: string | undefined;
502
+ } | undefined;
503
+ metadata?: {
504
+ description?: string | undefined;
505
+ version?: string | undefined;
506
+ extensionRoot?: string | undefined;
507
+ } | undefined;
508
+ }, {
509
+ extensions: {
510
+ name: string;
511
+ kind: "micro-app" | "payload-plugin";
512
+ source: {
513
+ url: string;
514
+ type?: "git-subdir" | "git-repo" | undefined;
515
+ path?: string | undefined;
516
+ ref?: string | undefined;
517
+ sha?: string | undefined;
518
+ };
519
+ description?: string | undefined;
520
+ version?: string | undefined;
521
+ sourceAuthority?: "source" | "marketplace" | undefined;
522
+ verified?: boolean | undefined;
523
+ tags?: string[] | undefined;
524
+ author?: string | undefined;
525
+ minPlatformVersion?: string | undefined;
526
+ }[];
527
+ name: string;
528
+ owner?: {
529
+ name: string;
530
+ url?: string | undefined;
531
+ email?: string | undefined;
532
+ } | undefined;
533
+ metadata?: {
534
+ description?: string | undefined;
535
+ version?: string | undefined;
536
+ extensionRoot?: string | undefined;
537
+ } | undefined;
538
+ }>;
539
+ }, "strip", z.ZodTypeAny, {
540
+ fetchedAt: string;
541
+ manifest: {
542
+ extensions: {
543
+ name: string;
544
+ kind: "micro-app" | "payload-plugin";
545
+ source: {
546
+ type: "git-subdir" | "git-repo";
547
+ url: string;
548
+ path?: string | undefined;
549
+ ref?: string | undefined;
550
+ sha?: string | undefined;
551
+ };
552
+ sourceAuthority: "source" | "marketplace";
553
+ verified: boolean;
554
+ tags: string[];
555
+ description?: string | undefined;
556
+ version?: string | undefined;
557
+ author?: string | undefined;
558
+ minPlatformVersion?: string | undefined;
559
+ }[];
560
+ name: string;
561
+ owner?: {
562
+ name: string;
563
+ url?: string | undefined;
564
+ email?: string | undefined;
565
+ } | undefined;
566
+ metadata?: {
567
+ description?: string | undefined;
568
+ version?: string | undefined;
569
+ extensionRoot?: string | undefined;
570
+ } | undefined;
571
+ };
572
+ }, {
573
+ fetchedAt: string;
574
+ manifest: {
575
+ extensions: {
576
+ name: string;
577
+ kind: "micro-app" | "payload-plugin";
578
+ source: {
579
+ url: string;
580
+ type?: "git-subdir" | "git-repo" | undefined;
581
+ path?: string | undefined;
582
+ ref?: string | undefined;
583
+ sha?: string | undefined;
584
+ };
585
+ description?: string | undefined;
586
+ version?: string | undefined;
587
+ sourceAuthority?: "source" | "marketplace" | undefined;
588
+ verified?: boolean | undefined;
589
+ tags?: string[] | undefined;
590
+ author?: string | undefined;
591
+ minPlatformVersion?: string | undefined;
592
+ }[];
593
+ name: string;
594
+ owner?: {
595
+ name: string;
596
+ url?: string | undefined;
597
+ email?: string | undefined;
598
+ } | undefined;
599
+ metadata?: {
600
+ description?: string | undefined;
601
+ version?: string | undefined;
602
+ extensionRoot?: string | undefined;
603
+ } | undefined;
604
+ };
605
+ }>;
606
+ export type CachedMarketplace = z.infer<typeof CachedMarketplaceSchema>;
607
+ //# sourceMappingURL=marketplace-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace-schema.d.ts","sourceRoot":"","sources":["../../src/lib/marketplace-schema.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,qBAAqB,aAM/B,CAAC;AAMJ,eAAO,MAAM,qBAAqB;IAChC,2DAA2D;;IAE3D,0DAA0D;;IAE1D,2DAA2D;;IAE3D,iCAAiC;;IAEjC,4CAA4C;;;;;;;;;;;;;;EAE5C,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,mBAAmB,4CAA0C,CAAC;AAC3E,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;IACrC,yCAAyC;;IAEzC,qBAAqB;;IAErB,iCAAiC;;IAEjC,4BAA4B;;IAE5B,2BAA2B;;QA7B3B,2DAA2D;;QAE3D,0DAA0D;;QAE1D,2DAA2D;;QAE3D,iCAAiC;;QAEjC,4CAA4C;;;;;;;;;;;;;;;IAuB5C,qDAAqD;;IAErD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