Move 136 prototype mixins under mixins/domain, json-export, and runtime/* so the package root stays navigable. Manifest assign order is unchanged; apply-platform-mixins and runtime registry paths updated. Co-authored-by: Cursor <[email protected]>
22 lines
722 B
JavaScript
22 lines
722 B
JavaScript
'use strict'
|
|
|
|
const { createJsonExportMeshMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const meshJsonMixin = createJsonExportMeshMixin({
|
|
keysField: '_meshRegistryJsonGossipKeys',
|
|
watermarkField: '_meshJsonHealWatermark',
|
|
initMethod: '_initMeshJsonMixinState',
|
|
shouldGossipMethod: '_shouldGossipMeshReplicationRegistryJson',
|
|
healMethod: '_healMeshReplicationDiagnosticsCursorOnPartition',
|
|
spanKind: 'mesh.json',
|
|
healContext: 'heal.mesh-replication',
|
|
countField: 'guildMeshJsonCount',
|
|
bridgeKind: 'mesh.json',
|
|
listExportsMethod: 'listMeshReplicationDiagnosticsJsonExports',
|
|
extraSpanEnd: (rows) => ({
|
|
replicationCount: rows[0]?.replicationCount || 0
|
|
})
|
|
})
|
|
|
|
module.exports = { meshJsonMixin }
|