Repository navigation
refactor(bindings): prune unused well-known bindings - #4997
Merged
Merged
Conversation
Follows #4468 (WI-4): REGISTRY_APP_BINDING/MCPRegistryServerSchema (well-known/registry.ts) and PROMPTS_BINDING/PROMPTS_COLLECTION_BINDING (well-known/prompt.ts) have zero consumers outside the bindings package itself - confirmed via repo-wide grep. The real registry catalog feature uses apps/mesh/src/registry-catalog/, not this binding. registry.ts is deleted outright (no external references at all, and it wasn't even exposed via a package.json subpath export). prompt.ts keeps PromptSchema and its sub-schemas, which are genuinely used by apps/mesh/src/web/components/details/prompt/index.tsx via the @decocms/bindings/prompt subpath - only the dead Binder/collection-CRUD wrapper around it is removed.
decocms Bot
pushed a commit
that referenced
this pull request
Jul 22, 2026
PR: #4997 refactor(bindings): prune unused well-known bindings Bump type: patch - @decocms/bindings (packages/bindings/package.json): 1.4.11 -> 1.4.12 Deploy-Scope: both
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follows #4468 (WI-4, called out in the issue's own scoping comment as "the safest standalone first PR"): prunes dead code from
packages/bindings/src/well-known/.Payoff: removes ~166 lines of unreferenced binding machinery so the package only exposes what MCPs actually implement, and closes the gap between the issue's own evidence and the current state of the code (it flagged
prompt.ts/registry.tsas unused, which needed re-verifying since some of that evidence had drifted).What changed and why it's behavior-preserving:
packages/bindings/src/well-known/registry.tsoutright (REGISTRY_APP_BINDING,MCPRegistryServerSchema,RegistryAppCollectionEntity) — confirmed via repo-widergthat nothing outside this file and itsindex.tsre-export references any of these symbols, and the file isn't even exposed via apackage.jsonsubpath export (no"./registry"entry), so it was unreachable from outside the package already. Removed the corresponding re-export block fromindex.ts.packages/bindings/src/well-known/prompt.ts: removedPROMPTS_BINDING/PROMPTS_COLLECTION_BINDING(zero references anywhere, and not re-exported fromindex.ts), plus the now-unusedBindertype import andcreateCollectionBindingsimport. KeptPromptSchemaand its sub-schemas (PromptArgumentSchema,PromptIconSchema,PromptMessageSchema,PromptMessageContentSchema) — these ARE used, byapps/mesh/src/web/components/details/prompt/index.tsxvia the@decocms/bindings/promptsubpath import, so deleting the whole file (as the issue's evidence table implied) would have broken that consumer.Command a reviewer runs to confirm:
should return nothing.
Verification run locally:
bun run fmt— clean, no changes needed.cd packages/bindings && bunx tsc --noEmit— passes.cd apps/mesh && bunx tsc --noEmit— passes (this is the one consumer of the touched package's public surface).Full CI (
bun run check,bun run lint,bun test) validates the rest.Summary by cubic
Pruned unused well-known bindings to reduce dead code (~166 lines) and align the package with what MCPs actually implement. Keeps
PromptSchemafor the@decocms/bindings/promptconsumer; no behavior changes. Addresses WI-4.well-known/registry.tsand removed its re-exports fromindex.ts(unused and not publicly exported).PROMPTS_BINDINGandPROMPTS_COLLECTION_BINDINGfromwell-known/prompt.ts; retainedPromptSchemaand related schemas used by@decocms/bindings/prompt.Written for commit 805081c. Summary will update on new commits.