feat(agentctl): add setAuditLogExportFilter with refreshView for Phase 573

Headless audit filter helper complements exportGuildAuditLog for audit
depth verification bundle.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 15:21:38 -04:00
co-authored by Cursor
parent 81fa9a5e5d
commit c72c80a068
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -25,6 +25,8 @@ Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler a
**v0.8.527 (Phase 564):** Headless `sendFriendRequest` and `acceptFriendRequest` `refreshView` re-verified. Bundle: `npm run test:agentctl-phase564-contacts` (chains `test:agentctl-phase546-contacts`). **v0.8.527 (Phase 564):** Headless `sendFriendRequest` and `acceptFriendRequest` `refreshView` re-verified. Bundle: `npm run test:agentctl-phase564-contacts` (chains `test:agentctl-phase546-contacts`).
**v0.8.536 (Phase 573):** Headless `exportGuildAuditLog`/`setAuditLogExportFilter` + `refreshView`. Bundle: `npm run test:agentctl-phase573-audit` (chains `test:agentctl-phase552-compliance`).
**v0.8.535 (Phase 572):** Headless `banGuildMember`/`kickGuildMember`/`timeoutGuildMember` `refreshView` re-verified. Bundle: `npm run test:agentctl-phase572-moderation` (chains `test:agentctl-phase551-moderation`). **v0.8.535 (Phase 572):** Headless `banGuildMember`/`kickGuildMember`/`timeoutGuildMember` `refreshView` re-verified. Bundle: `npm run test:agentctl-phase572-moderation` (chains `test:agentctl-phase551-moderation`).
**v0.8.534 (Phase 571):** Headless `updateGuildCustomRole`/`reorderGuildCustomRoles`/`setMemberCustomRoles` + `refreshView`. Bundle: `npm run test:agentctl-phase571-roles` (chains `test:agentctl-phase570-permissions`). **v0.8.534 (Phase 571):** Headless `updateGuildCustomRole`/`reorderGuildCustomRoles`/`setMemberCustomRoles` + `refreshView`. Bundle: `npm run test:agentctl-phase571-roles` (chains `test:agentctl-phase570-permissions`).
+7
View File
@@ -642,6 +642,13 @@ class HeadlessSession {
return out return out
} }
async setAuditLogExportFilter (filter = 'all') {
if (!this.platform) throw new Error('headless not started')
const out = await this.platform.setAuditLogExportFilter(filter)
await this.refreshView()
return out
}
async createGuildChannelWebhook (channelId, name, opts = {}) { async createGuildChannelWebhook (channelId, name, opts = {}) {
if (!this.platform) throw new Error('headless not started') if (!this.platform) throw new Error('headless not started')
const out = await this.platform.createChannelWebhook({ const out = await this.platform.createChannelWebhook({