|
| 1 | +# BUILD_PR_SHARED_EXTRACTION_06_PROMOTION_SNAPSHOT_IMPORT_NORMALIZATION |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Normalize imports for the newly introduced shared helper: |
| 5 | +createPromotionStateSnapshot |
| 6 | + |
| 7 | +## Single PR Purpose |
| 8 | +Fix import paths ONLY for: |
| 9 | +- src/advanced/promotion/createPromotionGate.js |
| 10 | +- src/advanced/state/createWorldGameStateSystem.js |
| 11 | + |
| 12 | +Ensure both use correct, stable relative paths. |
| 13 | + |
| 14 | +## Exact Files Allowed |
| 15 | +Edit ONLY: |
| 16 | + |
| 17 | +1. src/advanced/promotion/createPromotionGate.js |
| 18 | +2. src/advanced/state/createWorldGameStateSystem.js |
| 19 | + |
| 20 | +## Exact Import Targets |
| 21 | + |
| 22 | +### 1) createPromotionGate.js |
| 23 | + |
| 24 | +Ensure EXACT import: |
| 25 | + |
| 26 | +```js |
| 27 | +import { createPromotionStateSnapshot } from '../shared/state/createPromotionStateSnapshot.js'; |
| 28 | +``` |
| 29 | + |
| 30 | +If incorrect: |
| 31 | +- replace existing import |
| 32 | +- do not duplicate import |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +### 2) createWorldGameStateSystem.js |
| 37 | + |
| 38 | +Ensure EXACT import: |
| 39 | + |
| 40 | +```js |
| 41 | +import { createPromotionStateSnapshot } from '../../shared/state/createPromotionStateSnapshot.js'; |
| 42 | +``` |
| 43 | + |
| 44 | +If incorrect: |
| 45 | +- replace existing import |
| 46 | +- do not duplicate import |
| 47 | + |
| 48 | +--- |
| 49 | + |
| 50 | +## Required Actions |
| 51 | +- remove any incorrect relative path |
| 52 | +- ensure only ONE import exists per file |
| 53 | +- do not modify any other imports |
| 54 | + |
| 55 | +--- |
| 56 | + |
| 57 | +## Hard Constraints |
| 58 | +- DO NOT scan repo |
| 59 | +- DO NOT modify logic |
| 60 | +- DO NOT change function bodies |
| 61 | +- DO NOT modify other helpers |
| 62 | +- DO NOT normalize other imports |
| 63 | +- DO NOT touch getState behavior |
| 64 | +- DO NOT modify shared helper file |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +## Validation Checklist |
| 69 | + |
| 70 | +1. Only 2 files changed |
| 71 | +2. Each file has exactly ONE import for: |
| 72 | + createPromotionStateSnapshot |
| 73 | +3. Import paths match EXACTLY: |
| 74 | + - '../shared/state/...' |
| 75 | + - '../../shared/state/...' |
| 76 | +4. No duplicate imports exist |
| 77 | +5. No logic changes made |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +## Non-Goals |
| 82 | +- no global import normalization |
| 83 | +- no absolute path migration |
| 84 | +- no helper changes |
0 commit comments