@happyvertical/smrt-users 0.40.59 → 0.40.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/AGENTS.md CHANGED
@@ -132,7 +132,12 @@ Setup: README → *Manifest-derived permission catalog* and *Postgres RLS enforc
132
132
  intentionally exclude users/RBAC authority and security resources (`users`,
133
133
  `tenants`, `roles`, `permissions`, memberships, groups, sessions, magic-link
134
134
  tokens, and related join/override tables). Re-seeding is additive and
135
- idempotent; pruning stale mappings requires `{ prune: true }`.
135
+ idempotent; pruning stale mappings requires `{ prune: true }`. When a
136
+ contributing package registers a new built-in self-personalization
137
+ permission after system roles already exist, call the explicit,
138
+ idempotent `RolePermissionCollection.seedDefaultRolePersonalizationPermissions()`
139
+ upgrade helper; it targets owner/admin/member/viewer only and never grants
140
+ custom roles.
136
141
 
137
142
  **Critical**: `getGroupIdsForTenant(userId, tenantId)` (joins with groups table to scope by tenant). Never use `getGroupIds()` — it's cross-tenant.
138
143