Skip to content

feat: add app registry for framework auto-discovery#18

Open
JonasJesus42 wants to merge 2 commits intomainfrom
JonasJesus42/app-registry
Open

feat: add app registry for framework auto-discovery#18
JonasJesus42 wants to merge 2 commits intomainfrom
JonasJesus42/app-registry

Conversation

@JonasJesus42
Copy link
Copy Markdown
Contributor

@JonasJesus42 JonasJesus42 commented Apr 13, 2026

Summary

  • Adds registry.ts that maps CMS block keys to app module loaders
  • Exports it as @decocms/apps/registry so @decocms/start can import it instead of hardcoding known apps in APP_MODS
  • Includes deco-website alongside existing vtex, shopify, and resend apps

Companion change needed in @decocms/start

Replace the hardcoded APP_MODS in src/apps/autoconfig.ts with:

import { apps as APP_MODS } from "@decocms/apps/registry";

Test plan

  • Verify npm test passes (225 tests)
  • Verify biome check has no errors
  • After merging, update @decocms/start to consume the registry

🤖 Generated with Claude Code


Summary by cubic

Adds a central app registry exported as @decocms/apps/registry that maps CMS block keys to lazy-loaded modules for auto-discovery in @decocms/start. Adds deco-website and ensures the registry is included in package exports and published via files.

  • Migration

    • In @decocms/start, replace the hardcoded APP_MODS with: import { apps as APP_MODS } from '@decocms/apps/registry'.
  • Bug Fixes

    • Include registry.ts in package.json files so @decocms/apps/registry resolves after publish.

Written for commit c819451. Summary will update on new commits.

Export a registry mapping CMS block keys to app module loaders,
so @decocms/start can import it instead of hardcoding known apps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="package.json">

<violation number="1" location="package.json:7">
P1: This export points to a file that the package whitelist does not publish, so `@decocms/apps/registry` will fail to resolve for consumers.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread package.json
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant