|
| 1 | +# PR_26140_068 Engine Domain Index Barrel Removal Phase 2 |
| 2 | + |
| 3 | +## Summary |
| 4 | +- Removed the targeted phase 2 engine domain barrel files: |
| 5 | + - `src/engine/events/index.js` |
| 6 | + - `src/engine/fx/index.js` |
| 7 | + - `src/engine/game/index.js` |
| 8 | + - `src/engine/level/index.js` |
| 9 | + - `src/engine/localization/index.js` |
| 10 | + - `src/engine/logging/index.js` |
| 11 | + - `src/engine/memory/index.js` |
| 12 | + - `src/engine/state/index.js` |
| 13 | +- Replaced active imports and re-exports from those barrels with direct canonical file imports. |
| 14 | +- Kept edits to import/export wiring only. No runtime logic, sample JSON, game/sample entry removal, replacement barrels, or pass-through shims were added. |
| 15 | +- No edits were made under `src/engine/debug/**`, `src/engine/network/**`, or `src/engine/systems/**`. |
| 16 | +- `src/engine/core/index.js` remains in place; only its `EventBus` re-export was pointed directly at `src/engine/events/EventBus.js`. |
| 17 | + |
| 18 | +## Direct Import Mapping |
| 19 | +- `EventBus` -> `src/engine/events/EventBus.js` |
| 20 | +- `ParticleSystem` -> `src/engine/fx/ParticleSystem.js` |
| 21 | +- `GameModeState` -> `src/engine/game/GameModeState.js` |
| 22 | +- `isGameplayModeActive`, `runIfGameplayMode` -> `src/engine/game/gameplayHooks.js` |
| 23 | +- `LevelLoader` -> `src/engine/level/LevelLoader.js` |
| 24 | +- `LocalizationService` -> `src/engine/localization/LocalizationService.js` |
| 25 | +- `Logger` -> `src/engine/logging/Logger.js` |
| 26 | +- `ErrorBoundary` -> `src/engine/logging/ErrorBoundary.js` |
| 27 | +- `DisposableStore` -> `src/engine/memory/DisposableStore.js` |
| 28 | +- `ObjectPool` -> `src/engine/memory/ObjectPool.js` |
| 29 | +- `StateMachine` -> `src/engine/state/StateMachine.js` |
| 30 | + |
| 31 | +## Validation |
| 32 | +- PASS: target barrel scan reports `0` active imports/exports from the eight phase 2 barrels. |
| 33 | +- PASS: target deletion scan confirms all eight targeted `index.js` files no longer exist. |
| 34 | +- PASS: no JSON files changed. |
| 35 | +- PASS: `node --check` passed for 23 changed existing JS/MJS files. |
| 36 | +- PASS: local import target validation passed for 23 changed existing JS/MJS files. |
| 37 | +- PASS: `npm run test:workspace-v2` passed 59/59 tests. |
| 38 | +- PASS: targeted affected domain tests passed: |
| 39 | + - `tests/core/Engine2DCapabilityCombinedFoundation.test.mjs` |
| 40 | + - `tests/final/FinalSystems.test.mjs` |
| 41 | + - `tests/final/PlatformUxSystems.test.mjs` |
| 42 | + - `tests/final/ReleaseReadinessSystems.test.mjs` |
| 43 | + - `tests/fx/ParticleSystem.test.mjs` |
| 44 | + - `tests/production/ProductionReadiness.test.mjs` |
| 45 | + - `tests/runtime/Phase19RuntimeLifecycleValidation.test.mjs` |
| 46 | + - `tests/runtime/RuntimeMonitoringHooks.test.mjs` |
| 47 | +- PASS: `git diff --check` exited 0. Git emitted advisory line-ending warnings for touched `.mjs` test files only. |
| 48 | +- SKIPPED: full samples smoke test, per PR instruction. |
0 commit comments