Minor Changes
-
7fc3b53: feat(DST-1446):
marigold searchto find components by docs contentAdds
marigold search <query>, which ranks components by matching the query against their docs content (title, description, section headings, and section prose), not just the component name. This collapses the "list → guess → docs → retry" discovery loop (3 to 5 calls) that AI agents run today into a single ranked, snippet-bearing, deep-linked result.- CLI: new
loadSearchIndex()/searchComponentDocs()library functions and asearchcommand wrapping them, with--limit,--format markdown|json|plain,--freshand--offline(reusing the existing cache andsanitizeRemote— no new dependencies). Scoring weights title ×3, description ×2, each matching heading ×2, and each matching section snippet ×1. Tab completion and telemetry cover the new command. No-match exits 0 ([]for--format json). - Docs:
build-manifest.mjsnow also emitspublic/component-search.json— a content index over the component MDX (per-componentheadingsplus prose-bearing{ heading, snippet }sections, with JSX/imports/code-fences stripped). It is written aftermanifest.jsonso a content-index bug can never block the manifest thatlist/docsdepend on.
- CLI: new