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:
Raven Scott
2026-06-03 10:10:58 -04:00
co-authored by Cursor
parent 59314420af
commit 584d1a1565
8 changed files with 313 additions and 24 deletions
+12 -1
View File
@@ -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
}