feat(phase725): add runBotRegistryExportJsonJourney for agentctl
Headless journey verifies signed bot registry export JSON mesh push and view meta for Phase 725 regression alongside webhook execute journey. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+17
@@ -3608,6 +3608,23 @@ class HeadlessSession {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async runBotRegistryExportJsonJourney () {
|
||||||
|
if (!this.platform) throw new Error('headless not started')
|
||||||
|
await this.registerUser({ username: 'br725', displayName: 'Bot Reg 725' })
|
||||||
|
await this.createGuild({ name: 'Bot Reg 725', publicListing: false })
|
||||||
|
await this.wait({ mode: 'guild' }, 45000)
|
||||||
|
await this.createGuildBotInstallToken({ name: 'Phase725 Bot' })
|
||||||
|
const pushed = await this.platform.pushBotRegistryJsonToMesh()
|
||||||
|
const v = await this.refreshView()
|
||||||
|
if (!pushed?.signature && !v.botRegistryJsonMeta?.signature) {
|
||||||
|
throw new Error('expected signed bot registry export JSON after mesh push')
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
guildBotRegistryJsonCount: v.guildBotRegistryJsonCount || (v.botRegistryJsonRows || []).length,
|
||||||
|
hasMeta: v.botRegistryJsonMeta != null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async runWorkerReleaseExportJsonJourney () {
|
async runWorkerReleaseExportJsonJourney () {
|
||||||
if (!this.platform) throw new Error('headless not started')
|
if (!this.platform) throw new Error('headless not started')
|
||||||
await this.registerUser({ username: 'wr724', displayName: 'Worker Rel 724' })
|
await this.registerUser({ username: 'wr724', displayName: 'Worker Rel 724' })
|
||||||
|
|||||||
Reference in New Issue
Block a user