feat(agentctl): archive fetch and digest schedule headless APIs (v0.8.537)
Add fetchGuildAuditExportArchive and setGuildDigestExportSchedule with refreshView for Phase 574 compliance automation smokes. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -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.537 (Phase 574):** Headless `fetchGuildAuditExportArchive`/`setGuildDigestExportSchedule` + `refreshView`. Bundle: `npm run test:agentctl-phase574-compliance` (chains `test:agentctl-phase573-audit`).
|
||||
|
||||
**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`).
|
||||
|
||||
+18
@@ -649,6 +649,24 @@ class HeadlessSession {
|
||||
return out
|
||||
}
|
||||
|
||||
async fetchGuildAuditExportArchive (archiveId, opts = {}) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
const out = opts.fetchMesh
|
||||
? await this.platform.fetchAuditExportArchiveFromMesh(archiveId, opts)
|
||||
: await this.platform.exportAuditExportArchive(archiveId, {
|
||||
format: opts.format
|
||||
})
|
||||
await this.refreshView()
|
||||
return out
|
||||
}
|
||||
|
||||
async setGuildDigestExportSchedule (partial = {}) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
const out = await this.platform.setDigestExportSchedule(partial)
|
||||
await this.refreshView()
|
||||
return out
|
||||
}
|
||||
|
||||
async createGuildChannelWebhook (channelId, name, opts = {}) {
|
||||
if (!this.platform) throw new Error('headless not started')
|
||||
const out = await this.platform.createChannelWebhook({
|
||||
|
||||
Reference in New Issue
Block a user