refactor(platform): Phase 731 index import bundles and bootstrap
Extract platform-pearcord-shared-imports, platform-index-local-imports, platform-bootstrap, and explicit delivery-receipts named exports (173). Add ALL_GOSSIP_ALIGNMENT_ROWS and PLATFORM_MIXIN_ASSIGNMENT_COUNT guard. No behavior or mesh semantics changes. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
* Ordered PearcordPlatform prototype mixin registration (Phase 730).
|
||||
* Preserves assign order from index.js / apply-platform-mixins (Phase 727).
|
||||
*/
|
||||
const PLATFORM_MIXIN_ASSIGNMENT_COUNT = 59
|
||||
|
||||
const PLATFORM_MIXIN_ASSIGNMENTS = [
|
||||
{ module: './polls-scheduling', export: 'pollSchedulingMixin' },
|
||||
{ module: './notifications-activity', export: 'notificationsActivityMixin' },
|
||||
@@ -66,4 +68,13 @@ const PLATFORM_MIXIN_ASSIGNMENTS = [
|
||||
{ module: './integration-manifest-json-mixin', export: 'integrationManifestJsonMixin' }
|
||||
]
|
||||
|
||||
module.exports = { PLATFORM_MIXIN_ASSIGNMENTS }
|
||||
if (PLATFORM_MIXIN_ASSIGNMENTS.length !== PLATFORM_MIXIN_ASSIGNMENT_COUNT) {
|
||||
throw new Error(
|
||||
`PLATFORM_MIXIN_ASSIGNMENT_COUNT mismatch: ${PLATFORM_MIXIN_ASSIGNMENTS.length} !== ${PLATFORM_MIXIN_ASSIGNMENT_COUNT}`
|
||||
)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
PLATFORM_MIXIN_ASSIGNMENT_COUNT,
|
||||
PLATFORM_MIXIN_ASSIGNMENTS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user