PluginContext in its lifecycle hooks, commands, and entry component. The context exposes only the services below.
4.3.1 Members
4.3.2 Events
subscribe returns an unsubscribe function. The default bus accepts any event name with an unknown payload.
4.3.3 Notifications
Each call returns a
Notification with id, level, title, optional message, and createdAt. dismiss(id) returns true when it removed one.
4.3.4 Authentication
AuthenticatedUser has id, username, displayName, and permissions. Use hasPermission(permissionId) before running a privileged action.
4.3.5 Configuration
get returns a copy of the stored value, or undefined when none is stored. get and set accept only keys the plugin declared in settings. set validates the value type.