Updates Command → Note Relationship in Plugins Data Module

Updated the relationship between Command and Note in the plugins data module, and added an id field to the plugin event context for better tracking.