Rule updates
When rules are added, removed, or modified at runtime (via /permissions command, API, or auto-mode approvals), the following update types are emitted:
addRules— Add one or more new rules to an allow/deny/ask collection and destination (scope).removeRules— Remove one or more rules from a collection and destination.replaceRules— Bulk replace all rules in an allow/deny/ask collection for a destination.setMode— Set thepermissions.defaultModefor a destination.addDirectories— Add directories topermissions.additionalDirectoriesat a destination.removeDirectories— Remove directories frompermissions.additionalDirectories.
These updates are applied to the runtime context immediately and optionally persisted to the settings file. See PermissionUpdate.ts for schema details.