You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# PR_26140_036 Remove Import Alias Confusion Report
2
+
3
+
## Scope
4
+
- Removed unnecessary cosmetic `as` aliases from active repo-owned import statements.
5
+
- Kept behavior unchanged by switching call sites to the canonical exported names.
6
+
- Left export aliases alone where they are public compatibility bridges.
7
+
- Did not touch vendor, generated, archive, `tests/results`, or report snapshot files.
8
+
9
+
## Implementation Summary
10
+
- Replaced `deepClone as clone` imports with canonical `deepClone` in Object Vector runtime/collision code, network/session/transport helpers, Asset Manager V2, Text to Speech V2, Workspace Manager V2, and Object Vector Studio V2 schema service code.
11
+
- Replaced numeric/text/object helper aliases with canonical imports, including `asFinite`, `asNumber`, `asArray`, `asObject`, `normalizeText`, `isPlainObject`, and `getPromotionState`.
12
+
- Removed wrapper-only import aliasing in `src/shared/utils/objectUtils.js` and `src/engine/debug/inspectors/shared/inspectorUtils.js` while preserving their existing exports.
13
+
- Replaced Pacman AI's local `reverseDirection` import alias with direct `oppositeCardinalDirection` usage.
-`games/Asteroids/utils/math.js:7` keeps `import { wrap as sharedWrap } ...` because this file exports the public Asteroids helper `wrap(value, max)` as a compatibility adapter over shared `wrap(value, min, max)`. Removing this import alias would require renaming the local public export or introducing another indirection, which is outside the PR's behavior-preserving scope.
23
+
24
+
Intentional export aliases left in place:
25
+
26
+
-`games/Pacman/game/PacmanFullAINavigator.js` keeps `export { oppositeCardinalDirection as opposite }` as a public compatibility bridge; the PR scope allows export aliases where intentional.
27
+
28
+
## Validation
29
+
- INFO: `npm run build` is not defined in this repo (`Missing script: "build"`).
Playwright impacted: Yes. Active runtime/tool JavaScript import names changed across Workspace Manager V2, Object Vector Studio V2, Collision Inspector V2, Asteroids runtime paths, and games index rendering. Expected pass behavior is unchanged launch/load/render/collision/navigation behavior. Expected fail behavior would be module import errors, page errors, failed tool launch, or broken manifest-driven render/collision paths; none appeared in validation.
49
+
50
+
## Coverage
51
+
- Advisory Playwright V8 coverage artifacts were refreshed at `docs/dev/reports/playwright_v8_coverage_report.txt` and `docs/dev/reports/coverage_changed_js_guardrail.txt`.
52
+
- Missing changed runtime JS coverage is reported as WARN per project rules, not FAIL.
53
+
54
+
## Full Samples Smoke
55
+
Skipped. This PR is a scoped import-name cleanup with targeted Workspace Manager, Asteroids, Object Vector Studio V2, Collision Inspector V2, and games-index validation; it does not broadly change the sample loader/framework.
56
+
57
+
## Manual Validation Notes
58
+
1. Open Workspace Manager V2, select the repo, and confirm games and tools populate.
59
+
2. Launch Object Vector Studio V2 and Collision Inspector V2 from Workspace Manager V2.
60
+
3. Launch Asteroids and confirm normal gameplay smoke behavior.
61
+
4. Open `games/index.html` and confirm game cards/previews still render.
0 commit comments