feat(agentctl): add setAutomodConfig with refreshView for Phase 601

Headless setAutomodConfig wraps platform.setAutomodConfig and refreshes
view for moderation hub agentctl smoke verification.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 17:38:14 -04:00
co-authored by Cursor
parent 5e1d01e9e9
commit bc2b687fe2
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -17,6 +17,8 @@ Both modes use **`pearcord-ui-flow` `dispatchUiMessage`** — the same handler a
`AgentClient` resolves RPC replies before treating `{ event: "state" | "sidecar" }` push lines as events (fixes `wait-event` responses that include an `event` field).
**v0.8.564 (Phase 601):** Headless `banGuildMember`/`kickGuildMember`/`timeoutGuildMember`/`setAutomodConfig` `refreshView` re-verified for moderation hub bundle. Bundle: `npm run test:agentctl-phase601-moderation` (chains `test:agentctl-phase572-moderation`).
**v0.8.563 (Phase 600):** Headless `createGuildCustomRole`/`updateGuildCustomRole`/`reorderGuildCustomRoles`/`setMemberCustomRoles` `refreshView` re-verified for roles hub bundle. Bundle: `npm run test:agentctl-phase600-roles` (chains `test:agentctl-phase571-roles`).
**v0.8.562 (Phase 599):** Headless `createGuildCustomRole`/`updateGuildCustomRole`/`deleteGuildCustomRole`/`upsertChannelPermissionOverwrite` `refreshView` re-verified for permissions hub bundle. Bundle: `npm run test:agentctl-phase599-permissions` (chains `test:agentctl-phase570-permissions`).
+7
View File
@@ -838,6 +838,13 @@ class HeadlessSession {
return row
}
async setAutomodConfig (partial = {}) {
if (!this.platform) throw new Error('headless not started')
const config = await this.platform.setAutomodConfig(partial)
await this.refreshView()
return config
}
async createGuildCustomRole (name, opts = {}) {
if (!this.platform) throw new Error('headless not started')
const row = await this.platform.createGuildCustomRole({