Skip to content

v0.7.0 — Local component registries

Choose a tag to compare

@DavidHoenisch DavidHoenisch released this 28 Oct 15:14

Pluto CLI now supports application-defined local component registries.

[frontend.registries.company]
path = ".pluto/components"
pluto frontend components list
pluto frontend add component purchase-review --from company/approval-panel --dry-run
pluto frontend add component purchase-review --from company/approval-panel

Includes declarative multi-file templates, local component dependency graphs, exact npm pins, optional curated shadcn primitives, SHA-256 provenance and conflict-safe generation. Authored files are preserved. Unknown hooks, incompatible profiles, dependency drift, cycles, traversal and symlinks are rejected. No new runtime or generator dependencies were added.

The repository includes a HeroUI approval-panel registry and an interaction test. Fresh native, HeroUI, shadcn and auth-free consumers passed checks/builds; the HeroUI consumer installs and tests the custom registry. CLI formatting/lint/vet/build/tests/race and 15 seeded mutation checks passed.

This first pass supports local registries for existing UI profiles. Remote packs, custom UI-library profiles, free-form template input schemas and shadcn registry imports remain future work. Existing backend schema 7 remains unchanged; the prototype schema-1 example app is not automatically migrated.

See docs/COMPONENT-REGISTRIES.md for authoring, template inputs, provenance, dependency handling and ownership.

Install: go install github.com/plutoframework/cli/cmd/pluto@v0.7.0