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:
@@ -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).
|
`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.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`).
|
**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`).
|
||||||
|
|||||||
@@ -838,6 +838,13 @@ class HeadlessSession {
|
|||||||
return row
|
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 = {}) {
|
async createGuildCustomRole (name, opts = {}) {
|
||||||
if (!this.platform) throw new Error('headless not started')
|
if (!this.platform) throw new Error('headless not started')
|
||||||
const row = await this.platform.createGuildCustomRole({
|
const row = await this.platform.createGuildCustomRole({
|
||||||
|
|||||||
Reference in New Issue
Block a user