feat(permissions): effective inspector polish and cross-links (v0.8.746)

Phase 779 adds copy effective-permissions deep links with optional memberId,
live breakdown refresh while the inspector is open, and a cross-link to
channel permissions for the focused role. Closes deferred P778-42.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-03 16:03:15 -04:00
co-authored by Cursor
parent 3d3d9b3de8
commit 86f01b74c0
+12
View File
@@ -5335,6 +5335,18 @@ class HeadlessSession {
if (nav.effectivePermFocusRoleId !== role.id) {
throw new Error('nav effectivePermFocusRoleId mismatch')
}
const ownerId = this.platform.identity.user?.id
if (ownerId) {
const urlMem = `${url}&memberId=${encodeURIComponent(ownerId)}`
const parsedMem = parsePearcordDeepLink(urlMem)
if (parsedMem?.editEffectivePermissions?.memberId !== ownerId) {
throw new Error('deep link parse missing memberId')
}
const navMem = await this.platform.navigateDeepLink(urlMem)
if (navMem.effectivePermFocusMemberId !== ownerId) {
throw new Error('nav effectivePermFocusMemberId mismatch')
}
}
return { guildId, channelId: text.id, roleId: role.id }
}