Phase 1003: add mesh stability UI diagnostics actions journey stub (v0.8.970)

Headless journey validates diagnostics actions keys snapshot and
four-button chain embed HTML without changing observable UI behavior.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-05 05:54:28 -04:00
co-authored by Cursor
parent 983ddcde24
commit 3e6b9f61ea
+24
View File
@@ -1868,6 +1868,30 @@ class HeadlessSession {
return { guildId: gid, fields, snapshot, embedHtml, view } return { guildId: gid, fields, snapshot, embedHtml, view }
} }
/** Journey stub: mesh stability UI diagnostics actions chain keys + embed snapshot (Phase 1003). */
async runMeshStabilityUiDiagnosticsActionsJourney (guildId) {
if (!this.platform) throw new Error('headless not started')
const gid = guildId || this.platform.guild?.guild?.id
if (!gid) throw new Error('no guild')
const path = require('bare-path')
const {
listMeshStabilityUiDiagnosticsActionsFieldKeys,
buildMeshStabilityDiagnosticsActionsSnapshot
} = require('pearcord-platform/mesh-stability-ui-diagnostics-actions-keys')
const uiPath = path.join(__dirname, '..', '..', 'apps', 'pearcord', 'ui', 'mesh-stability-ui-diagnostics-actions.js')
const { buildMeshStabilityDiagnosticsActionsEmbedHtml } = await import(uiPath)
const view = await this.refreshView()
const fields = listMeshStabilityUiDiagnosticsActionsFieldKeys()
const snapshot = buildMeshStabilityDiagnosticsActionsSnapshot({
...view,
guildSyncHealth: view.guildSyncHealth || { peers: 1 }
})
const embedHtml = buildMeshStabilityDiagnosticsActionsEmbedHtml({
guildSyncHealth: { peers: 1 }
})
return { guildId: gid, fields, snapshot, embedHtml, view }
}
/** Journey stub: mesh stability UI mesh stats tail keys + embed snapshot (Phase 1002). */ /** Journey stub: mesh stability UI mesh stats tail keys + embed snapshot (Phase 1002). */
async runMeshStabilityUiMeshStatsTailJourney (guildId) { async runMeshStabilityUiMeshStatsTailJourney (guildId) {
if (!this.platform) throw new Error('headless not started') if (!this.platform) throw new Error('headless not started')