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.
Add Component Context Awareness to Registry Plugins
🎯 Summary
This PR introduces a new
contextproperty for registry plugins that enables component-aware plugin execution. Whencontext: trueis set, plugins receive component information (name and version) and can make security, audit, and logic decisions based on the calling component.🔧 Key Changes
Core Functionality
context: booleanproperty to plugin configuration{ name: string, version: string }of the calling componentType System Updates
Plugininterface with union types for context-aware vs basic pluginsPluginContexttype with component name and versionPluginsinterface to include handler, description, and context flagVMinterface to use new plugin structureRegistry Implementation
CLI & Testing
🚀 Use Cases
This feature enables:
�� Breaking Changes
None. This is a backward-compatible enhancement. Existing plugins continue to work without modification.
�� Example Usage
🧪 Testing
📚 Documentation
Documentation has been updated in the registry configuration guide with:
Files Changed: 15 files, +195 insertions, -56 deletions