npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm.

> michael-wave-ori-break-the-matrix@0.6.0-rc.1 test
> node --test tests/*.test.mjs

✔ sector 1: spawn, enemies, pickups, key, relays and exit occupy reachable space (5.96937ms)
✔ sector 1: mandatory objectives are reachable without a secret wall (9.660633ms)
✔ sector 2: spawn, enemies, pickups, key, relays and exit occupy reachable space (1.951678ms)
✔ sector 2: mandatory objectives are reachable without a secret wall (1.605777ms)
✔ sector 3: spawn, enemies, pickups, key, relays and exit occupy reachable space (2.524097ms)
✔ sector 3: mandatory objectives are reachable without a secret wall (2.770654ms)
✔ raycasting is finite on cardinal axes and respects closed walls (0.845876ms)
✔ collision substeps prevent tunnelling through walls and preserve sliding (9.230739ms)
✔ doors block sight and collision until fully opening (0.715251ms)
✔ E opens faced ordinary door and golden doors require a key (2.735276ms)
✔ opening a secret counts once and does not consume key (1.141092ms)
✔ movement speed is normalized diagonally and frame deltas are bounded (8.69733ms)
✔ shots hit a visible host; liberated hosts count exactly once (11.172668ms)
✔ walls block player weapons and enemy line of sight (1.073239ms)
✔ slap is free and only works in melee range (0.839102ms)
✔ blaster respects cooldown and capacitor costs (0.802204ms)
✔ bass cone hits multiple hosts, stuns and knocks back without wall tunnelling (8.967722ms)
✔ pulse rifle emits a travelling projectile that damages a target (3.613384ms)
✔ disruptor destabilizes multiple targets and unplugger pierces (2.069886ms)
✔ charged alternate fire has a larger cost and damage (1.312241ms)
✔ all six weapons have unique names, fire rates, and energy costs (0.526166ms)
✔ captive rescue requires proximity, restores autonomy, cannot double-count (1.116519ms)
✔ enemies telegraph and damage the player (6.661108ms)
✔ ranged enemies launch readable projectiles (2.169876ms)
✔ Ori follows, auto attacks, and Q stuns with an energy cost (4.024148ms)
✔ Ori Q tags objectives without a nearby hostile (2.308758ms)
✔ resonance vision drains and then recharges (2.554317ms)
✔ R vent restores energy after a delay and respects cooldown (2.43378ms)
✔ bass drop charges from liberation, affects nearby enemies, then empties (1.104992ms)
✔ dodge has a cooldown and brief damage immunity (1.33041ms)
✔ death stops the simulation; retry restores a playable checkpoint (5.490856ms)
✔ checkpoints round trip mutations, doors, player and liberation (12.874045ms)
✔ unsupported or malformed checkpoints are rejected (1.259065ms)
✔ progression requires both relays and a key and unlocks later weapons (1.676363ms)
✔ Warden has three phases and blocks the final ending until defeated (1.818256ms)
✔ key and health pickups update the HUD model and persist progress (3.353852ms)
✔ upgrades from two Φ artifacts increase weapon damage (1.774308ms)
✔ deterministic initial simulation has matching states for matching inputs (33.605647ms)
✔ crawler phases through a thin wall into a valid landing cell (1.804943ms)
✔ browser smoke scenario passes in the same production simulation (139.206304ms)
✔ a dead player cannot replace a valid retry checkpoint (1.938885ms)
✔ Equipment settings sanitize old storage and invalid values (6.167358ms)
✔ Optional preferences survive a JSON settings round trip (0.634301ms)
✔ Cybernetic hands are cached, finite, mirrored and human-scale (171.742921ms)
✔ Three finishes differ while sharing one atlas layout (17.38274ms)
✔ Six weapon silhouettes are distinct and bounded (18.310979ms)
✔ Model append transforms cached vertices and reports overflow explicitly (4.323877ms)
✔ Raised wrist requires dwell then opens at compact meter dimensions (2.792962ms)
✔ Combat hand height leaves only the compact hardware status (1.090903ms)
✔ Dismissal hysteresis prevents flicker and closes after sustained lowering (1.569085ms)
✔ Near-face distance and tracking loss remove interactive panels (0.910604ms)
✔ Manual pin is intentional and visibility preference overrides it (1.655981ms)
✔ Opening capture guard has a bounded transition interval (0.547561ms)
✔ Panel basis remains orthonormal for seated and standing heights (1.313759ms)
✔ Reduced motion suppresses ornamental interpolation (1.39301ms)
✔ Weapon follows grip translation while retaining independent ray orientation (1.342114ms)
✔ Calibrated model muzzle equals the collision-safe combat origin (8.453223ms)
✔ Grip calibration never bypasses the safe head reach limit (2.457601ms)
✔ Every weapon and preset fits the batch and preserves game snapshots (182.177855ms)
✔ Equipment capture retains suppression of fire, charge, sticks and abilities (8.683122ms)
✔ Comfort captions clear sights and an active wrist footprint (0.544747ms)
✔ Equipment tracking and preferences never enter v1 checkpoints (4.528403ms)
✔ Dead zone prevents resting-stick drift (14.704922ms)
✔ Radial stick preserves diagonals and caps full speed (0.222336ms)
✔ Controller settings sanitize old and invalid saves (0.269678ms)
✔ Analog movement keeps partial speed and legacy keyboard speed (0.159772ms)
✔ Diagonal analog movement cannot exceed full-stick speed (0.322341ms)
✔ Left and right sticks reach real movement and horizontal aiming (0.209108ms)
✔ Small movements still collide with map walls (0.135247ms)
✔ Keyboard and gamepad input coexist without extra speed (0.095109ms)
✔ RT fires a real weapon and holding continues automatic fire (0.168538ms)
✔ RT buffers a press near cooldown expiry (0.350908ms)
✔ LT charges and releases exactly one alternate shot (0.221998ms)
✔ A opens a real door and interacts only once per press (0.107981ms)
✔ A extracts through the real completion event before the next simulation tick (0.111602ms)
✔ All Xbox actions use the documented standard button layout (0.11628ms)
✔ Y, X, B, vision, weapon cycling and map reach real game actions (0.071858ms)
✔ Holding L3 sprints and D-pad down spends a full bass charge (0.223338ms)
✔ D-pad menu movement repeats; A confirm never repeats while held (4.987268ms)
✔ Pause or focus loss cancels held fire and charge until controls release (0.625782ms)
✔ Disconnect clears all held input; reconnect waits for neutral (0.119996ms)
✔ Multiple and sparse gamepads retain the active standard device (0.052493ms)
✔ Unmapped and blocked controllers fail safely without guessing buttons (0.11026ms)
✔ Optional rumble is limited, can be disabled, and resets on pause (4.744869ms)
✔ hosted CODE BROWN is the exact original authored collision grid and mission (9.69876ms)
✔ hosted mission is validated and packed as a normal ΦWAD, with author rights (38.738178ms)
✔ one-click flow loads existing BTM game and leaves campaign untouched (33.561353ms)
✔ loads only allowlisted same-origin hosted JSON and rejects corrupt data (35.719755ms)
✔ All twelve sectors clear through tracked poses, secrets and shared boss simulation (13809.973855ms)
✔ Tracked enemy death retries a checkpoint and completes sector one (458.964667ms)
✔ Rigid world and inverse compose through nonzero yaw and translation (2.246521ms)
✔ Left/right eye separation survives the world transform (0.60397ms)
✔ Frustum culling rejects behind-camera chunks but retains crossing chunks (0.196158ms)
✔ All twelve maps generate finite batched floors, ceilings, walls and export IR (0.1233ms)
✔ Door meshes use the shared open animation and passage threshold (0.166552ms)
✔ Atlas materials have unique bounded UV slots with insets (0.128852ms)
✔ Physical wall leaning cannot enter solid geometry or move the eye through it (0.174588ms)
✔ Physical motion cannot cross a locked door but can cross an opened door (0.128662ms)
✔ Head turn and crouch change view without changing body angle or hand aim (0.165505ms)
✔ Menus freeze movement/fire and discard physical head travel on resume (0.241021ms)
✔ Tracking discontinuity rebases safely and cancels simulation input (0.255558ms)
✔ Snap turn triggers once until neutral and smooth turn stays optional (0.158875ms)
✔ Head-relative and controller-relative movement use different references (0.162573ms)
✔ Unsafe muzzle extension is clamped at walls and at maximum reach (0.063808ms)
✔ Floor and ceiling intersections stop vertical tracked shots (0.48819ms)
✔ Walls occlude tracked targets independently of the gameplay body bearing (0.159839ms)
✔ All six weapons retain costs/cooldowns and use independent tracked aim (0.089509ms)
✔ Tracked pulse projectiles hit bodies at height and terminate at the floor (0.075248ms)
✔ Charged tracked fire uses the existing damage/energy multipliers (0.048314ms)
✔ The immersive adapter updates once with post-movement muzzle coordinates (0.040772ms)
✔ Wrist pointer actions suppress primary and alternate fire together (0.039123ms)
✔ Tracked dodge follows aim without snapping the gameplay body (0.046793ms)
✔ Old XR callbacks cannot advance a new distinct session after reentry (0.04375ms)
✔ Version-one saves resume in Classic without persisting XR pose state (0.041466ms)
✔ Comfort settings sanitize invalid values and preserve snap defaults (0.050532ms)
✔ Dynamic geometry and effects have bounded buffers and explicit overflow behavior (0.043014ms)
✔ Immersive session selects the world presenter and advances one shared frame (0.122201ms)
✔ Missing tracked right hand pauses immersive play without firing (0.25842ms)
✔ Controller removal and context loss pause or exit without stale input (0.179646ms)
✔ Failed GL compatibility disposes the partial session and allows retry (0.052272ms)
✔ Unavailable immersive entry keeps Classic usable and Arcade retry possible (0.111987ms)
✔ Deferred tracked shooting still drives Michael firing portrait feedback (0.056332ms)
✔ the campaign adds exactly six authored nightmare maps (14.650644ms)
✔ nightmare pressure, health, fire speed and damage scale rise every level (0.776877ms)
✔ new artifacts require a secret door while required rescues remain reachable (76.403705ms)
✔ Acts II and III can continue and the fourth ending is final (9.187052ms)
✔ nightmare shortcut unlocks weapons without claiming unearned artifacts (1.793025ms)
✔ new-sector saves round trip and mismatched map identifiers are rejected (9.314042ms)
✔ nightmare volleys lead actual movement while original volleys retain direct aim (6.687731ms)
✔ new enemies reposition and resist repeated weapon stuns without reducing Ori stun (3.727027ms)
✔ all twelve sectors clear using ordinary movement, weapons, abilities, doors and pickups (7262.275604ms)
✔ PixelForge ΦWAD mission roundtrip and compatibility (27.630571ms)
✔ temporary mission uses original Game and immersive geometry and restores all 12 campaign sectors (101.549387ms)
✔ custom victory uses original objectives but cannot progress to sector 14 (14.38787ms)
✔ invalid or repeated pack never destroys campaign (27.078338ms)
✔ Twelve sector palettes are distinct, bounded and deterministic for custom fallback (3.724789ms)
✔ Decorative fixtures attach only to open cells and avoid doors and archive signs (39.101832ms)
✔ Distance culling retains crossing chunks and rejects distant geometry (1.151317ms)
✔ All sector/preset batches are finite, bounded and preserve game snapshots (355.814921ms)
✔ Sustained event bursts remain bounded even during late-sector telegraphs (230.31896ms)
✔ Projectile trail budgets cap dense volleys without mutating simulation velocities (10.453999ms)
✔ Wrist capture blocks sticks, turning, fire, charge and every gameplay action (9.72433ms)
✔ Leaving a panel while holding controls cannot leak a shot or snap turn (20.189465ms)
✔ Captured wrist controls still permit collision-safe physical head movement (20.191746ms)
✔ Pointer testing receives current pose transforms before stick locomotion (1.667305ms)
✔ Right glove follows grip independently of the tracked aiming ray (1.415212ms)
✔ Each weapon effect stays at the same safe muzzle as the actual tracked shot (28.753159ms)
✔ Interaction focus honors relay reach, ray direction, occlusion and secret visibility (2.473512ms)
✔ New comfort sliders sanitize values and smooth-turn speed does not affect snap angle (4.440257ms)
✔ Reduced motion steadies decorations without mutating ability timers (31.895516ms)
✔ CODE BROWN geometry and all preset effects preserve custom objectives and campaign isolation (78.951712ms)
✔ HUD semantic text colors meet 4.5:1 contrast on the instrument panel (2.815798ms)
✔ All six weapon UI colors are independent of gameplay weapon definitions (0.392953ms)
✔ All production interaction IDs remain unique and reachable in markup (29.553084ms)
✔ Every custom SVG icon reference resolves to an authored symbol (0.832215ms)
✔ Bundled fonts have valid TTF headers and their actual redistribution licenses (30.216231ms)
✔ Interface has no remote font, image, stylesheet or script requirement (7.262415ms)
✔ The redesigned minimap does not reveal unseen geometry or objectives (9.514424ms)
✔ Minimap rendering is presentation-only and preserves game snapshots (16.603599ms)
✔ v0.1.0 tests remain byte-for-byte unchanged (92.383848ms)
✔ v0.2 sector 1: content reachable and key obtainable before locked doors (18.125043ms)
✔ v0.2 sector 2: content reachable and key obtainable before locked doors (21.97983ms)
✔ v0.2 sector 3: content reachable and key obtainable before locked doors (9.184423ms)
✔ v0.2 sector 4: content reachable and key obtainable before locked doors (4.515516ms)
✔ v0.2 sector 5: content reachable and key obtainable before locked doors (19.255624ms)
✔ v0.2 sector 6: content reachable and key obtainable before locked doors (2.152638ms)
✔ v0.2 sector 7: content reachable and key obtainable before locked doors (1.852959ms)
✔ v0.2 sector 8: content reachable and key obtainable before locked doors (23.916565ms)
✔ v0.2 sector 9: content reachable and key obtainable before locked doors (2.273957ms)
✔ v0.2 sector 10: content reachable and key obtainable before locked doors (9.167865ms)
✔ v0.2 sector 11: content reachable and key obtainable before locked doors (5.77447ms)
✔ v0.2 sector 12: content reachable and key obtainable before locked doors (14.876844ms)
✔ Act II increases encounter count and individual enemy strength (2.009111ms)
✔ original Warden ending offers Act II while final ending cannot advance (4.415258ms)
✔ an actual v0.1.0 checkpoint migrates and retains state (12.594473ms)
✔ a click just before cooldown expiry buffers exactly one shot (3.002932ms)
✔ expired click buffers never fire later (5.546281ms)
✔ wall impacts and hit reactions are emitted without gore (1.405161ms)
✔ Ori assistance has its own visible effect and source attribution (1.842603ms)
✔ danger warnings interrupt banter and remain rate limited (12.912087ms)
✔ Michael and Ori exchange lines in deterministic order (32.319255ms)
✔ movement against a wall produces no footsteps or walking bob (11.603942ms)
✔ navigation route respects golden access gates until a key is held (11.677831ms)
✔ archive signs can be read by facing and interacting (1.905645ms)
✔ fallback keyboard codes work when browser code is absent (0.811022ms)
✔ pointer capture rejects overlapping attempts (1.573916ms)
✔ denied capture switches to fallback without pausing play (0.503617ms)
✔ a capture timeout enables an explicit retry (0.196083ms)
✔ Escape from a real lock pauses; intentional release does not (0.303798ms)
✔ all six sectors clear through traversal, combat and interactions (1665.880192ms)
✔ live enemy attacks cause death, and retry permits a complete traversal (299.477419ms)
✔ render-only door rays can see behind an opening panel without changing collision (1.216693ms)
✔ Warden health phases update even while Ori holds a stun (1.077414ms)
✔ default pointer timer adapters clean up a denied request (0.712173ms)
✔ Ori stun prevents crawler phasing until the stun expires (1.335035ms)
✔ Matrix composition preserves an identity transform (2.853512ms)
✔ A screen is placed in front of the initial head pose (0.260069ms)
✔ Recenter ignores pitch and keeps the arcade screen upright (0.146985ms)
✔ Controller rays hit the panel in texture coordinates (0.122286ms)
✔ Rays behind, parallel to, or pointing away from a panel do not select (0.166441ms)
✔ Quest Touch thumbsticks map separately from Xbox navigator pads (0.160129ms)
✔ Quest triggers fire and charge; grip controls interact and Ori (0.29991ms)
✔ Quest face buttons and stick clicks expose the documented actions (0.115711ms)
✔ Generic xr-standard input keeps trigger/grip controls without guessing faces (0.178112ms)
✔ Losing a Touch controller cancels held fire until neutral (0.446058ms)
✔ Unavailable WebXR reports a fallback without requesting a session (0.292629ms)
✔ Session initialization makes GL compatible before allocating GPU objects (0.123609ms)
✔ Local-floor rejection falls back to local reference space (0.068395ms)
✔ Permission denial leaves VR inactive and permits another attempt (0.056191ms)
✔ Overlapping VR entry attempts request only one session (0.145095ms)
✔ Each XR frame advances once and renders both eye views (0.519604ms)
✔ Tracking loss and hidden headset visibility pause without simulation (0.083782ms)
✔ Recenter changes the anchored screen only on explicit request (0.076934ms)
✔ Pointed UI actions suppress a simultaneous game shot (0.288874ms)
✔ Exit and stale XR callbacks cannot restart or advance the game (0.285387ms)
ℹ tests 215
ℹ suites 0
ℹ pass 215
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 14789.384402
