@dowel-ui/registry 0.5.0 → 0.8.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,609 @@
1
+ import type { RegistryIndex, RegistryIndexEntry } from "./schema";
2
+
3
+ export type { RegistryIndex, RegistryIndexEntry } from "./schema";
4
+
5
+ /**
6
+ * Turning a description of a screen into a plan made of components that exist.
7
+ *
8
+ * The hard part of generating UI is not writing JSX. It is not inventing: a
9
+ * model asked for a billing page will cheerfully produce `<PricingTable>` and
10
+ * `<InvoiceList>` and a `variant="subtle"` that was never implemented, and the
11
+ * result reads perfectly and compiles nowhere.
12
+ *
13
+ * So this resolves a prompt against the registry first, and everything it
14
+ * emits afterwards is drawn from what came back. It cannot name a component
15
+ * that is not installable, because it only ever repeats names the registry
16
+ * gave it.
17
+ *
18
+ * It does not guess at props. The registry publishes what a component *is* and
19
+ * what it depends on, not the shape of its arguments, so the output stops at
20
+ * the composition and points at the page where the props are documented.
21
+ * Emitting a plausible prop is worse than emitting none — one is a gap, the
22
+ * other is a bug that looks like working code.
23
+ */
24
+
25
+ /** Words that carry no signal about which component is wanted. */
26
+ const STOPWORDS = new Set([
27
+ "a",
28
+ "an",
29
+ "the",
30
+ "and",
31
+ "or",
32
+ "of",
33
+ "for",
34
+ "with",
35
+ "to",
36
+ "in",
37
+ "on",
38
+ "at",
39
+ "by",
40
+ "is",
41
+ "are",
42
+ "be",
43
+ "make",
44
+ "build",
45
+ "create",
46
+ "want",
47
+ "need",
48
+ "add",
49
+ "show",
50
+ "page",
51
+ "screen",
52
+ "app",
53
+ "application",
54
+ "ui",
55
+ "interface",
56
+ "component",
57
+ "components",
58
+ "me",
59
+ "my",
60
+ "our",
61
+ "i",
62
+ "it",
63
+ "that",
64
+ "this",
65
+ "some",
66
+ "using",
67
+ "use",
68
+ "like",
69
+ ]);
70
+
71
+ /**
72
+ * Words a reader would use that are not the words the registry uses.
73
+ *
74
+ * Hand-written, and deliberately so. "Sign in" is what someone types and
75
+ * `login` is what the item is called; no amount of string similarity bridges
76
+ * that, and pretending otherwise produces a matcher that works on the examples
77
+ * it was tuned against and nothing else.
78
+ */
79
+ const SYNONYMS: Record<string, string[]> = {
80
+ "sign in": ["login"],
81
+ signin: ["login"],
82
+ "log in": ["login"],
83
+ "sign up": ["signup"],
84
+ register: ["signup"],
85
+ registration: ["signup"],
86
+ "forgot password": ["forgot-password"],
87
+ "reset password": ["forgot-password"],
88
+ chat: ["ai-chat", "ai-conversation", "ai-prompt-input"],
89
+ conversation: ["ai-chat"],
90
+ assistant: ["ai-chat"],
91
+ copilot: ["ai-chat"],
92
+ agent: ["agent-console", "ai-agent-status", "ai-agent-plan"],
93
+ agents: ["agent-console"],
94
+ tool: ["ai-tool"],
95
+ approval: ["ai-approval-request"],
96
+ approve: ["ai-approval-request"],
97
+ undo: ["ai-action-ledger"],
98
+ audit: ["ai-action-ledger", "activity-feed"],
99
+ tokens: ["ai-token-usage"],
100
+ spend: ["ai-dashboard", "billing"],
101
+ cost: ["ai-dashboard", "billing"],
102
+ usage: ["ai-dashboard", "billing"],
103
+ subscription: ["billing", "pricing"],
104
+ invoice: ["billing"],
105
+ invoices: ["billing"],
106
+ payment: ["billing"],
107
+ plan: ["pricing", "billing"],
108
+ plans: ["pricing", "pricing-three-tier", "pricing-two-tier", "pricing-single-plan"],
109
+ metrics: ["analytics", "dashboard", "metric-delta"],
110
+ chart: ["analytics", "dither-bar", "dither-line", "dither-area", "dither-donut"],
111
+ charts: [
112
+ "analytics",
113
+ "dither-canvas",
114
+ "dither-bar",
115
+ "dither-line",
116
+ "dither-area",
117
+ "dither-donut",
118
+ "dither-heatmap",
119
+ ],
120
+ graph: ["analytics", "dither-line", "dither-area", "contribution-graph"],
121
+ stats: ["dashboard", "analytics", "stats-grid", "stats-trend-cards"],
122
+ overview: ["dashboard"],
123
+ grid: ["data-table", "table"],
124
+ spreadsheet: ["data-table"],
125
+ list: ["table", "data-table"],
126
+ search: ["command", "combobox", "expanding-search", "faq-searchable"],
127
+ palette: ["command", "palette-generator"],
128
+ shortcut: ["command", "shortcut-recorder"],
129
+ modal: ["dialog"],
130
+ popup: ["dialog", "popover"],
131
+ dropdown: ["dropdown-menu", "select"],
132
+ toast: ["toast"],
133
+ notification: ["toast", "activity-feed", "notification-badge", "notify-button"],
134
+ notifications: ["toast", "settings"],
135
+ upload: ["file-upload"],
136
+ file: ["file-upload"],
137
+ date: ["date-picker", "calendar"],
138
+ time: ["time-range-picker"],
139
+ schedule: ["cron-editor"],
140
+ cron: ["cron-editor"],
141
+ team: ["admin-users", "settings", "team-grid", "team-carousel"],
142
+ members: ["admin-users"],
143
+ users: ["admin-users"],
144
+ admin: ["admin-users"],
145
+ permissions: ["permission-matrix"],
146
+ roles: ["permission-matrix"],
147
+ profile: ["settings"],
148
+ preferences: ["settings"],
149
+ account: ["settings", "billing"],
150
+ setup: ["onboarding"],
151
+ checklist: ["onboarding", "animated-checklist", "todo-tower"],
152
+ wizard: ["onboarding", "stepper"],
153
+ logs: ["log-viewer"],
154
+ log: ["log-viewer"],
155
+ diff: ["diff-viewer", "record-diff"],
156
+ secret: ["secret-field"],
157
+ "api key": ["secret-field"],
158
+ key: ["secret-field"],
159
+ dns: ["dns-record"],
160
+ loader: [
161
+ "spinner",
162
+ "dots-loader",
163
+ "ring-loader",
164
+ "bar-loader",
165
+ "shape-loader",
166
+ "text-loader",
167
+ "grid-loader",
168
+ "ai-loader",
169
+ ],
170
+ loaders: [
171
+ "dots-loader",
172
+ "ring-loader",
173
+ "bar-loader",
174
+ "shape-loader",
175
+ "text-loader",
176
+ "grid-loader",
177
+ ],
178
+ loading: ["spinner", "dots-loader", "ring-loader", "bar-loader", "skeleton", "text-loader"],
179
+ spinner: ["spinner", "ring-loader"],
180
+ animation: ["text-effect", "text-swap", "shader-transition"],
181
+ animated: ["text-effect", "morph-button", "effect-button", "number-flow"],
182
+ "text animation": [
183
+ "text-effect",
184
+ "text-swap",
185
+ "shimmer-text",
186
+ "scramble-text",
187
+ "typewriter-text",
188
+ ],
189
+ typewriter: ["typewriter-text"],
190
+ shimmer: ["shimmer-text", "skeleton"],
191
+ counter: ["number-flow", "drag-stepper"],
192
+ price: ["number-flow", "pricing"],
193
+ carousel: [
194
+ "carousel-3d",
195
+ "swipe-carousel",
196
+ "reviews-carousel",
197
+ "invite-carousel",
198
+ "time-stack",
199
+ ],
200
+ slider: ["slider", "exposure-slider", "slosh-slider", "scrubber", "range-dial"],
201
+ slideshow: ["carousel-3d", "swipe-carousel", "photo-stack"],
202
+ marquee: ["marquee", "logo-marquee"],
203
+ ticker: ["marquee"],
204
+ cards: ["card", "card-spread", "card-stack", "glow-card", "tilt-card", "expandable-cards"],
205
+ hero: [
206
+ "hero-grid",
207
+ "hero-product",
208
+ "hero-split-image",
209
+ "hero-perspective-grid",
210
+ "hero-spotlight",
211
+ "hero-minimal",
212
+ ],
213
+ landing: ["hero-grid", "features-bento", "cta-centered", "footer-newsletter"],
214
+ cta: ["cta-centered", "cta-split-image", "cta-banner"],
215
+ "call to action": ["cta-centered", "cta-split-image", "cta-banner"],
216
+ features: ["features-icon-grid", "features-bento", "features-alternating"],
217
+ logos: ["logo-cloud-simple", "logo-marquee", "logo-links-marquee", "logo-grid-tooltips"],
218
+ testimonials: [
219
+ "testimonial-rotator",
220
+ "testimonial-spotlight",
221
+ "testimonial-star-grid",
222
+ "reviews-carousel",
223
+ ],
224
+ reviews: ["reviews-carousel", "testimonial-star-grid"],
225
+ faq: ["faq-accordion", "faq-searchable", "faq-categorized", "faq-tabbed-grid"],
226
+ footer: ["footer-simple", "footer-newsletter", "footer-mega", "footer-minimal"],
227
+ newsletter: ["footer-newsletter", "footer-mega"],
228
+ heatmap: ["dither-heatmap", "contribution-graph"],
229
+ donut: ["dither-donut"],
230
+ pie: ["dither-donut"],
231
+ gauge: ["dither-gauge", "meter"],
232
+ funnel: ["dither-funnel"],
233
+ uptime: ["uptime-matrix"],
234
+ "status page": ["uptime-matrix"],
235
+ otp: ["otp-input"],
236
+ "one-time code": ["otp-input"],
237
+ "verification code": ["otp-input"],
238
+ steps: ["stepper"],
239
+ "context menu": ["context-menu"],
240
+ "right click": ["context-menu"],
241
+ reorder: ["reorder-list", "browser-tabs"],
242
+ sortable: ["reorder-list"],
243
+ drag: ["reorder-list", "goo-ball", "swipe-carousel"],
244
+ dock: ["magnify-dock"],
245
+ toolbar: ["canvas-toolbar", "magnify-dock"],
246
+ confirm: ["slide-to-confirm", "inline-confirm", "confirm-typed"],
247
+ delete: ["inline-confirm", "confirm-typed"],
248
+ toggle: ["switch", "liquid-toggle"],
249
+ copy: ["copy-button"],
250
+ clipboard: ["copy-button"],
251
+ refresh: ["pull-to-refresh"],
252
+ music: ["now-playing"],
253
+ player: ["now-playing"],
254
+ orb: ["gradient-orb", "orb-face"],
255
+ transition: ["shader-transition", "text-swap"],
256
+ badge: ["badge", "notification-badge"],
257
+ avatar: ["avatar", "avatar-group", "pixel-avatar"],
258
+ tweet: ["tweet-card"],
259
+ dial: ["dial", "range-dial"],
260
+ knob: ["dial"],
261
+ };
262
+
263
+ export interface PlanEntry {
264
+ entry: RegistryIndexEntry;
265
+ /** Why this was chosen, in words, so a wrong pick is arguable. */
266
+ because: string;
267
+ }
268
+
269
+ export interface UiPlan {
270
+ /** The prompt, as given. */
271
+ prompt: string;
272
+ /** Whole sections, which bring their own components. */
273
+ blocks: PlanEntry[];
274
+ /** Individual components, none of which a chosen block already installs. */
275
+ components: PlanEntry[];
276
+ /** Everything to install, in one list. */
277
+ install: string[];
278
+ /** True when nothing matched, so callers can say so rather than emit nothing. */
279
+ empty: boolean;
280
+ }
281
+
282
+ function normalise(prompt: string): string {
283
+ return prompt.toLowerCase().replace(/[^a-z0-9\s-]/g, " ");
284
+ }
285
+
286
+ function words(prompt: string): string[] {
287
+ return normalise(prompt)
288
+ .split(/\s+/)
289
+ .filter((word) => word.length > 2 && !STOPWORDS.has(word));
290
+ }
291
+
292
+ interface SynonymMatch {
293
+ /** Item name to the phrase that selected it. */
294
+ hits: Map<string, string>;
295
+ /**
296
+ * Words the table has already spoken for.
297
+ *
298
+ * Excluded from generic term matching afterwards. The table exists to say
299
+ * that "plan" means pricing or billing; letting the generic matcher also
300
+ * score every item with "plan" in its name puts `ai-agent-plan` on a billing
301
+ * page and re-introduces exactly the ambiguity the table resolves.
302
+ */
303
+ consumed: Set<string>;
304
+ }
305
+
306
+ function synonymHits(prompt: string): SynonymMatch {
307
+ const text = normalise(prompt);
308
+ const hits = new Map<string, string>();
309
+ const consumed = new Set<string>();
310
+
311
+ for (const [phrase, names] of Object.entries(SYNONYMS)) {
312
+ // Word-boundary matched, so "keyboard" does not trigger "key".
313
+ const pattern = new RegExp(`(^|\\s)${phrase.replace(/\s+/g, "\\s+")}(\\s|$)`);
314
+ if (!pattern.test(text)) continue;
315
+
316
+ for (const word of phrase.split(/\s+/)) consumed.add(word);
317
+ for (const name of names) {
318
+ if (!hits.has(name)) hits.set(name, phrase);
319
+ }
320
+ }
321
+
322
+ return { hits, consumed };
323
+ }
324
+
325
+ /** Below this a match is coincidence rather than intent. */
326
+ const MINIMUM_SCORE = 20;
327
+
328
+ interface Scored {
329
+ entry: RegistryIndexEntry;
330
+ /** What the prompt actually matched. Decides whether it qualifies at all. */
331
+ score: number;
332
+ /** Score plus the block preference. Decides order only. */
333
+ rank: number;
334
+ because: string;
335
+ }
336
+
337
+ function scoreEntry(
338
+ entry: RegistryIndexEntry,
339
+ terms: string[],
340
+ synonyms: Map<string, string>,
341
+ ): Scored | undefined {
342
+ const name = entry.name.toLowerCase();
343
+ const title = entry.title.toLowerCase();
344
+ const description = entry.description.toLowerCase();
345
+
346
+ let score = 0;
347
+ const reasons: string[] = [];
348
+
349
+ const synonym = synonyms.get(entry.name);
350
+ if (synonym) {
351
+ score += 60;
352
+ reasons.push(`"${synonym}"`);
353
+ }
354
+
355
+ for (const term of terms) {
356
+ if (name === term) {
357
+ score += 50;
358
+ reasons.push(`named "${term}"`);
359
+ } else if (name.split("-").includes(term)) {
360
+ score += 30;
361
+ reasons.push(`"${term}" in its name`);
362
+ } else if (title.includes(term)) {
363
+ score += 20;
364
+ reasons.push(`"${term}" in its title`);
365
+ } else if (entry.category === term) {
366
+ score += 12;
367
+ reasons.push(`the ${term} category`);
368
+ } else if (description.includes(term)) {
369
+ score += 8;
370
+ reasons.push(`"${term}" in its description`);
371
+ }
372
+ }
373
+
374
+ if (score === 0) return undefined;
375
+
376
+ // A block covers more of an intent than a component does, and installing one
377
+ // brings the components anyway — so where both match, the block is the better
378
+ // answer rather than merely an equal one.
379
+ //
380
+ // Kept out of `score` on purpose. Added there it would lift a block over the
381
+ // qualifying floor on a description-only brush, which is how `ai-dashboard`
382
+ // ended up recommended for an agent console because its prose contains the
383
+ // word "run". A preference should order real matches, not manufacture one.
384
+ const rank = score + (entry.type === "registry:block" ? 25 : 0);
385
+
386
+ return { entry, score, rank, because: [...new Set(reasons)].slice(0, 3).join(", ") };
387
+ }
388
+
389
+ export interface PlanOptions {
390
+ /** How many components to suggest beyond the blocks. */
391
+ maxComponents?: number;
392
+ /** How many blocks to suggest. */
393
+ maxBlocks?: number;
394
+ }
395
+
396
+ export function planUi(
397
+ prompt: string,
398
+ index: RegistryIndex,
399
+ options: PlanOptions = {},
400
+ ): UiPlan {
401
+ const { maxBlocks = 3, maxComponents = 6 } = options;
402
+
403
+ const { hits: synonyms, consumed } = synonymHits(prompt);
404
+ const terms = words(prompt).filter((term) => !consumed.has(term));
405
+
406
+ const scored = index.items
407
+ .filter((entry) => entry.type === "registry:ui" || entry.type === "registry:block")
408
+ .map((entry) => scoreEntry(entry, terms, synonyms))
409
+ .filter((candidate): candidate is Scored => candidate !== undefined)
410
+ // A description-only brush (8) or a bare category hit (12) is not enough on
411
+ // its own. Suggesting six components because the prompt shares a common
412
+ // word with their prose makes the plan look like more work than it is, and
413
+ // buries the ones that actually matched.
414
+ .filter((candidate) => candidate.score >= MINIMUM_SCORE)
415
+ .sort((a, b) => b.rank - a.rank || a.entry.name.localeCompare(b.entry.name));
416
+
417
+ const blocks = scored
418
+ .filter((candidate) => candidate.entry.type === "registry:block")
419
+ .slice(0, maxBlocks);
420
+
421
+ // Anything a chosen block already installs is not a separate suggestion:
422
+ // listing Button beside a Dashboard that brings it is noise that makes the
423
+ // plan look longer than the work.
424
+ const covered = new Set(
425
+ blocks.flatMap((candidate) => [
426
+ candidate.entry.name,
427
+ ...candidate.entry.registryDependencies,
428
+ ]),
429
+ );
430
+
431
+ const components = scored
432
+ .filter(
433
+ (candidate) =>
434
+ candidate.entry.type === "registry:ui" && !covered.has(candidate.entry.name),
435
+ )
436
+ .slice(0, maxComponents);
437
+
438
+ const toEntry = (candidate: Scored): PlanEntry => ({
439
+ entry: candidate.entry,
440
+ because: candidate.because,
441
+ });
442
+
443
+ return {
444
+ prompt,
445
+ blocks: blocks.map(toEntry),
446
+ components: components.map(toEntry),
447
+ install: [...blocks, ...components].map((candidate) => candidate.entry.name),
448
+ empty: blocks.length === 0 && components.length === 0,
449
+ };
450
+ }
451
+
452
+ /** PascalCase export name for a registry name, e.g. "ai-tool" -> "AiTool". */
453
+ function tag(name: string): string {
454
+ return name
455
+ .split("-")
456
+ .map((part) => part.charAt(0).toUpperCase() + part.slice(1))
457
+ .join("");
458
+ }
459
+
460
+ /** Blocks export a `…Block` component; components export their own name. */
461
+ function componentName(entry: RegistryIndexEntry): string {
462
+ const base = tag(entry.name);
463
+ return entry.type === "registry:block" ? `${base}Block` : base;
464
+ }
465
+
466
+ export interface RenderOptions {
467
+ /** Where components are imported from in the target project. */
468
+ importFrom?: string;
469
+ /**
470
+ * Where blocks are imported from.
471
+ *
472
+ * Separate because blocks are not exported from the component package at
473
+ * all — they are only ever installed as source — so deriving their path from
474
+ * a package specifier produces an import that does not exist. Derived from
475
+ * `importFrom` when it is a project alias, and otherwise the conventional
476
+ * install location.
477
+ */
478
+ blocksImportFrom?: string;
479
+ cliPackage?: string;
480
+ docsUrl?: string;
481
+ }
482
+
483
+ /**
484
+ * Where an installed block lives.
485
+ *
486
+ * A project alias like `@/components/ui` has a sibling `@/components/blocks`. A
487
+ * bare package specifier has no block path at all, so the conventional install
488
+ * location is used instead of inventing one under the package.
489
+ */
490
+ export function blocksPathFor(importFrom: string): string {
491
+ if (importFrom.endsWith("/ui")) return `${importFrom.slice(0, -3)}/blocks`;
492
+ if (importFrom.startsWith("@/") || importFrom.startsWith("~/")) {
493
+ return `${importFrom}/blocks`;
494
+ }
495
+ return "@/components/blocks";
496
+ }
497
+
498
+ /**
499
+ * The plan as a starting file.
500
+ *
501
+ * Imports and composition only. Every element carries the page its props are
502
+ * documented on, because the registry does not publish prop shapes and a
503
+ * plausible invented prop is worse than an obvious gap — one is a TODO, the
504
+ * other is a bug wearing the costume of working code.
505
+ */
506
+ export function renderPlan(plan: UiPlan, options: RenderOptions = {}): string {
507
+ const {
508
+ importFrom = "@/components/ui",
509
+ docsUrl = "https://dowel-eight.vercel.app",
510
+ blocksImportFrom = blocksPathFor(importFrom),
511
+ } = options;
512
+
513
+ if (plan.empty) {
514
+ return `// Nothing in the registry matched "${plan.prompt}".\n`;
515
+ }
516
+
517
+ const chosen = [...plan.blocks, ...plan.components];
518
+
519
+ const imports = chosen
520
+ .map((item) => {
521
+ const from =
522
+ item.entry.type === "registry:block"
523
+ ? `${blocksImportFrom}/${item.entry.name}`
524
+ : `${importFrom}/${item.entry.name}`;
525
+ return `import { ${componentName(item.entry)} } from "${from}";`;
526
+ })
527
+ .sort();
528
+
529
+ const body = chosen
530
+ .map((item) => {
531
+ const name = componentName(item.entry);
532
+ return [
533
+ ` {/* ${item.entry.title} — props: ${docsUrl}/docs/${
534
+ item.entry.type === "registry:block" ? "blocks" : "components"
535
+ }/${item.entry.name} */}`,
536
+ ` <${name} />`,
537
+ ].join("\n");
538
+ })
539
+ .join("\n\n");
540
+
541
+ return `${imports.join("\n")}
542
+
543
+ export default function Page() {
544
+ return (
545
+ <div className="flex flex-col gap-6">
546
+ ${body}
547
+ </div>
548
+ );
549
+ }
550
+ `;
551
+ }
552
+
553
+ /**
554
+ * The plan as a brief for a coding agent.
555
+ *
556
+ * The most useful thing this can produce. The agent has the project, the
557
+ * editor and the ability to write the props; what it lacks is the knowledge
558
+ * that these components exist and that it must not invent others. That is
559
+ * exactly what a grounded plan supplies.
560
+ */
561
+ export function renderBrief(plan: UiPlan, options: RenderOptions = {}): string {
562
+ const {
563
+ cliPackage = "@dowel-ui/cli",
564
+ docsUrl = "https://dowel-eight.vercel.app",
565
+ importFrom = "@/components/ui",
566
+ } = options;
567
+
568
+ if (plan.empty) {
569
+ return `Nothing in the registry matched "${plan.prompt}". Search the catalogue at ${docsUrl}/docs/components before building anything by hand.`;
570
+ }
571
+
572
+ const lines = [
573
+ `Build: ${plan.prompt}`,
574
+ "",
575
+ "Use these, which are already in the registry. Do not write your own versions,",
576
+ "and do not use any component not listed here without checking the catalogue first.",
577
+ "",
578
+ ];
579
+
580
+ if (plan.blocks.length > 0) {
581
+ lines.push("Blocks (whole sections — each installs its own components):");
582
+ for (const item of plan.blocks) {
583
+ lines.push(`- ${item.entry.name} — ${item.entry.description}`);
584
+ }
585
+ lines.push("");
586
+ }
587
+
588
+ if (plan.components.length > 0) {
589
+ lines.push("Components:");
590
+ for (const item of plan.components) {
591
+ lines.push(`- ${item.entry.name} — ${item.entry.description}`);
592
+ }
593
+ lines.push("");
594
+ }
595
+
596
+ lines.push(
597
+ "Install first:",
598
+ "",
599
+ ` npx ${cliPackage} add ${plan.install.join(" ")}`,
600
+ "",
601
+ `Import from \`${importFrom}\`. Each component's props are on its page under`,
602
+ `${docsUrl}/docs/components — read the page rather than guessing a prop name.`,
603
+ "",
604
+ "Style with semantic tokens only (bg-background, text-muted-foreground). Never raw",
605
+ "hex, never Tailwind's own palette — those do not follow the theme.",
606
+ );
607
+
608
+ return lines.join("\n");
609
+ }
package/src/index.ts CHANGED
@@ -1,12 +1,53 @@
1
+ export {
2
+ blocksPathFor,
3
+ planUi,
4
+ renderBrief,
5
+ renderPlan,
6
+ type PlanEntry,
7
+ type PlanOptions,
8
+ type RenderOptions,
9
+ type UiPlan,
10
+ } from "./generate";
11
+
12
+ export {
13
+ assertResolvable,
14
+ buildCustomRegistry,
15
+ defineRegistryConfig,
16
+ itemGroupSchema,
17
+ itemSourceSchema,
18
+ registryConfigSchema,
19
+ type BuildResult,
20
+ type ItemGroup,
21
+ type ItemSource,
22
+ type RegistryConfig,
23
+ } from "./custom";
24
+
25
+ export {
26
+ AGENTS_MARKER_END,
27
+ AGENTS_MARKER_START,
28
+ agentsSection,
29
+ aiDoc,
30
+ componentsDoc,
31
+ conventionsDoc,
32
+ cursorRule,
33
+ llmsFullTxt,
34
+ llmsTxt,
35
+ skillDoc,
36
+ themesDoc,
37
+ upsertAgentsSection,
38
+ type AgentDocsContext,
39
+ } from "./agent-docs";
1
40
  export { hashContent } from "./hash";
2
41
  export {
3
42
  REGISTRY_VERSION,
43
+ registryAccessSchema,
4
44
  registryFileSchema,
5
45
  registryFileTypeSchema,
6
46
  registryIndexEntrySchema,
7
47
  registryIndexSchema,
8
48
  registryItemSchema,
9
49
  registryItemTypeSchema,
50
+ type RegistryAccess,
10
51
  type RegistryFile,
11
52
  type RegistryFileType,
12
53
  type RegistryIndex,