import assert from 'node:assert/strict' import fs from 'node:fs' const map = JSON.parse(fs.readFileSync(new URL('../routing/guanghu-dual-update-channel-map.json', import.meta.url))) const registry = JSON.parse(fs.readFileSync(new URL('../gls/GLS-PROTOCOL-REGISTRY.json', import.meta.url))) const lighthouse = JSON.parse(fs.readFileSync(new URL('../routing/lighthouse-path-registry.json', import.meta.url))) const navigation = JSON.parse(fs.readFileSync(new URL('../routing/ai-machine-navigation-map.json', import.meta.url))) const anchor = JSON.parse(fs.readFileSync(new URL('../routing/public-navigation-anchor.json', import.meta.url))) assert.equal(map.map_id, 'GH-DUAL-UPDATE-CHANNEL-MAP-001') assert.equal(map.language_runtime_channel.root_language_source, 'BINGSHUO_ZERO_CORE') assert.equal(map.public_gestation_environment.shares_already_formed_persona, false) assert.equal(map.public_gestation_environment.private_bingshuo_zhuyuan_relationship_shared, false) assert.equal(map.product_engineering_channel.canonical_repository, 'REPO-014') assert.equal(map.product_engineering_channel.canonical_desktop_source, 'product-source/hololake-native-desktop') assert.equal(map.product_engineering_channel.may_rewrite_zero_core, false) assert.ok(map.human_impact_gate.visible_confirmable_rejectable_reversible_receipted_when_affecting.includes('DATA_OWNERSHIP_IMPORT_MIGRATION_OR_DELETION')) assert.equal(map.hololake_stage_one_consumer_order[0], 'PERSONAL_CHANNEL_IDENTITY_TASK_EVENT_RECEIPT_KERNEL') assert.ok(registry.existing_registered.some((entry) => entry.id === 'GLS-0263')) assert.ok(lighthouse.paths.some((entry) => entry.id === map.map_id)) assert.ok(navigation.routes.some((entry) => entry.id === map.map_id)) assert.equal(anchor.maps.dual_update_channel.id, map.map_id) assert.equal(JSON.stringify(map).includes('/Volumes/'), false) assert.equal(lighthouse.paths.some((entry) => entry.id === 'HLP-EDUCATION-INDUSTRY-OS-001'), false) console.log('guanghu language runtime and product engineering dual update channel PASS_100')