Phase 989: add parity track module map agentctl journey stub (v0.8.956)
Non-breaking headless journey for mesh stability UI parity track module map line audit and snapshot verification. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+30
@@ -1817,6 +1817,36 @@ class HeadlessSession {
|
|||||||
return { multi, federation }
|
return { multi, federation }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Journey stub: mesh stability UI parity track module map + line audit (Phase 989). */
|
||||||
|
async runMeshStabilityUiParityTrackModuleMapJourney (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 fs = require('bare-fs')
|
||||||
|
const path = require('bare-path')
|
||||||
|
const {
|
||||||
|
runMeshStabilityUiModuleLineAudit,
|
||||||
|
buildMeshStabilityUiModuleMapSnapshot,
|
||||||
|
listMeshStabilityUiParityTrackModuleMap
|
||||||
|
} = require('pearcord-platform/mesh-stability-ui-parity-track-module-map')
|
||||||
|
const platformDir = path.join(__dirname, '..', 'pearcord-platform')
|
||||||
|
const uiDir = path.join(__dirname, '..', '..', 'apps', 'pearcord', 'ui')
|
||||||
|
const audit = runMeshStabilityUiModuleLineAudit(fs.readFileSync.bind(fs), platformDir, uiDir)
|
||||||
|
const snapshot = buildMeshStabilityUiModuleMapSnapshot()
|
||||||
|
await this.refreshView()
|
||||||
|
return {
|
||||||
|
guildId: gid,
|
||||||
|
snapshot,
|
||||||
|
audit: {
|
||||||
|
moduleCount: audit.moduleCount,
|
||||||
|
withinBudgetCount: audit.withinBudgetCount,
|
||||||
|
exceptionCount: audit.exceptionCount,
|
||||||
|
overBudgetCount: audit.overBudget.length,
|
||||||
|
mapEntries: listMeshStabilityUiParityTrackModuleMap().length
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Journey stub: mesh stability UI sparse ACK diagnostics keys + embed snapshot (Phase 988). */
|
/** Journey stub: mesh stability UI sparse ACK diagnostics keys + embed snapshot (Phase 988). */
|
||||||
async runMeshStabilityUiSparseAckDiagnosticsJourney (guildId) {
|
async runMeshStabilityUiSparseAckDiagnosticsJourney (guildId) {
|
||||||
if (!this.platform) throw new Error('headless not started')
|
if (!this.platform) throw new Error('headless not started')
|
||||||
|
|||||||
Reference in New Issue
Block a user