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 (7.048899ms)
✔ sector 1: mandatory objectives are reachable without a secret wall (2.812016ms)
✔ sector 2: spawn, enemies, pickups, key, relays and exit occupy reachable space (4.245802ms)
✔ sector 2: mandatory objectives are reachable without a secret wall (1.714993ms)
✔ sector 3: spawn, enemies, pickups, key, relays and exit occupy reachable space (1.701867ms)
✔ sector 3: mandatory objectives are reachable without a secret wall (1.568697ms)
✔ raycasting is finite on cardinal axes and respects closed walls (0.846923ms)
✔ collision substeps prevent tunnelling through walls and preserve sliding (7.400827ms)
✔ doors block sight and collision until fully opening (0.611069ms)
✔ E opens faced ordinary door and golden doors require a key (2.68542ms)
✔ opening a secret counts once and does not consume key (1.253104ms)
✔ movement speed is normalized diagonally and frame deltas are bounded (16.514899ms)
✔ shots hit a visible host; liberated hosts count exactly once (2.503818ms)
✔ walls block player weapons and enemy line of sight (1.202903ms)
✔ slap is free and only works in melee range (0.59965ms)
✔ blaster respects cooldown and capacitor costs (0.703042ms)
✔ bass cone hits multiple hosts, stuns and knocks back without wall tunnelling (1.126069ms)
✔ pulse rifle emits a travelling projectile that damages a target (10.194681ms)
✔ disruptor destabilizes multiple targets and unplugger pierces (2.001884ms)
✔ charged alternate fire has a larger cost and damage (1.449244ms)
✔ all six weapons have unique names, fire rates, and energy costs (0.25042ms)
✔ captive rescue requires proximity, restores autonomy, cannot double-count (0.985148ms)
✔ enemies telegraph and damage the player (3.332265ms)
✔ ranged enemies launch readable projectiles (2.43972ms)
✔ Ori follows, auto attacks, and Q stuns with an energy cost (4.050747ms)
✔ Ori Q tags objectives without a nearby hostile (0.914951ms)
✔ resonance vision drains and then recharges (6.240551ms)
✔ R vent restores energy after a delay and respects cooldown (5.238113ms)
✔ bass drop charges from liberation, affects nearby enemies, then empties (1.344476ms)
✔ dodge has a cooldown and brief damage immunity (0.854188ms)
✔ death stops the simulation; retry restores a playable checkpoint (2.417712ms)
✔ checkpoints round trip mutations, doors, player and liberation (2.682592ms)
✔ unsupported or malformed checkpoints are rejected (6.095271ms)
✔ progression requires both relays and a key and unlocks later weapons (2.68192ms)
✔ Warden has three phases and blocks the final ending until defeated (12.303762ms)
✔ key and health pickups update the HUD model and persist progress (3.664329ms)
✔ upgrades from two Φ artifacts increase weapon damage (6.776667ms)
✔ deterministic initial simulation has matching states for matching inputs (43.520343ms)
✔ crawler phases through a thin wall into a valid landing cell (0.784903ms)
✔ browser smoke scenario passes in the same production simulation (108.39637ms)
✔ a dead player cannot replace a valid retry checkpoint (1.765383ms)
✔ Equipment settings sanitize old storage and invalid values (6.175766ms)
✔ Optional preferences survive a JSON settings round trip (0.44196ms)
✔ Cybernetic hands are cached, finite, mirrored and human-scale (82.949799ms)
✔ Index and little fingers mirror correctly around each opposing thumb (5.015142ms)
✔ Three finishes differ while sharing one atlas layout (15.594168ms)
✔ Six weapon silhouettes are distinct and bounded (17.922504ms)
✔ Model append transforms cached vertices and reports overflow explicitly (1.750234ms)
✔ Flat-color mesh UVs sample the atlas interior to avoid precision holes (1.96075ms)
✔ Raised wrist requires dwell then opens at compact meter dimensions (3.62655ms)
✔ Combat hand height leaves only the compact hardware status (0.926773ms)
✔ Brief wrist-attention loss retains hysteresis while sustained lowering closes (1.308572ms)
✔ Near-face distance and tracking loss remove interactive panels (6.308492ms)
✔ Manual pin is intentional and visibility preference overrides it (1.518447ms)
✔ Opening capture guard has a bounded transition interval (0.95914ms)
✔ Panel basis remains orthonormal for seated and standing heights (1.860908ms)
✔ Default wrist corners fit both synthetic eye frusta and retain face clearance (1.377428ms)
✔ Reduced motion suppresses ornamental interpolation (0.745205ms)
✔ Weapon follows grip translation while retaining independent ray orientation (0.381095ms)
✔ Calibrated model muzzle equals the collision-safe combat origin (7.804848ms)
✔ Grip calibration never bypasses the safe head reach limit (3.964433ms)
✔ Every weapon and preset fits the batch and preserves game snapshots (117.739659ms)
✔ Equipment capture retains suppression of fire, charge, sticks and abilities (6.00486ms)
✔ Comfort captions clear sights and an active wrist footprint (0.492376ms)
✔ Comfort placement clears the actual held-weapon muzzle cone (0.126771ms)
✔ Equipment tracking and preferences never enter v1 checkpoints (1.612897ms)
✔ Dead zone prevents resting-stick drift (2.692705ms)
✔ Radial stick preserves diagonals and caps full speed (0.583468ms)
✔ Controller settings sanitize old and invalid saves (0.171019ms)
✔ Analog movement keeps partial speed and legacy keyboard speed (0.131371ms)
✔ Diagonal analog movement cannot exceed full-stick speed (1.307872ms)
✔ Left and right sticks reach real movement and horizontal aiming (0.176999ms)
✔ Small movements still collide with map walls (0.262888ms)
✔ Keyboard and gamepad input coexist without extra speed (0.124833ms)
✔ RT fires a real weapon and holding continues automatic fire (0.28305ms)
✔ RT buffers a press near cooldown expiry (0.360986ms)
✔ LT charges and releases exactly one alternate shot (0.427638ms)
✔ A opens a real door and interacts only once per press (0.105755ms)
✔ A extracts through the real completion event before the next simulation tick (0.064687ms)
✔ All Xbox actions use the documented standard button layout (0.114661ms)
✔ Y, X, B, vision, weapon cycling and map reach real game actions (0.059211ms)
✔ Holding L3 sprints and D-pad down spends a full bass charge (0.162484ms)
✔ D-pad menu movement repeats; A confirm never repeats while held (0.067036ms)
✔ Pause or focus loss cancels held fire and charge until controls release (0.131657ms)
✔ Disconnect clears all held input; reconnect waits for neutral (0.096614ms)
✔ Multiple and sparse gamepads retain the active standard device (0.054866ms)
✔ Unmapped and blocked controllers fail safely without guessing buttons (0.057201ms)
✔ Optional rumble is limited, can be disabled, and resets on pause (0.823906ms)
✔ hosted CODE BROWN is the exact original authored collision grid and mission (4.494234ms)
✔ hosted mission is validated and packed as a normal ΦWAD, with author rights (34.283215ms)
✔ one-click flow loads existing BTM game and leaves campaign untouched (27.218345ms)
✔ loads only allowlisted same-origin hosted JSON and rejects corrupt data (33.739138ms)
✔ All twelve sectors clear through tracked poses, secrets and shared boss simulation (11485.743763ms)
✔ Tracked enemy death retries a checkpoint and completes sector one (401.141784ms)
✔ Rigid world and inverse compose through nonzero yaw and translation (2.369129ms)
✔ Left/right eye separation survives the world transform (0.258849ms)
✔ Frustum culling rejects behind-camera chunks but retains crossing chunks (0.739535ms)
✔ All twelve maps generate finite batched floors, ceilings, walls and export IR (0.156806ms)
✔ Door meshes use the shared open animation and passage threshold (0.204118ms)
✔ Atlas materials have unique bounded UV slots with insets (0.136239ms)
✔ Physical wall leaning cannot enter solid geometry or move the eye through it (0.161967ms)
✔ Physical motion cannot cross a locked door but can cross an opened door (0.243409ms)
✔ Head turn and crouch change view without changing body angle or hand aim (1.878854ms)
✔ Menus freeze movement/fire and discard physical head travel on resume (0.608072ms)
✔ Tracking discontinuity rebases safely and cancels simulation input (1.142968ms)
✔ Snap turn triggers once until neutral and smooth turn stays optional (0.111601ms)
✔ Head-relative and controller-relative movement use different references (0.110609ms)
✔ Unsafe muzzle extension is clamped at walls and at maximum reach (0.056959ms)
✔ Floor and ceiling intersections stop vertical tracked shots (0.047151ms)
✔ Walls occlude tracked targets independently of the gameplay body bearing (0.065707ms)
✔ All six weapons retain costs/cooldowns and use independent tracked aim (0.054916ms)
✔ Tracked pulse projectiles hit bodies at height and terminate at the floor (0.12049ms)
✔ Charged tracked fire uses the existing damage/energy multipliers (0.054738ms)
✔ The immersive adapter updates once with post-movement muzzle coordinates (0.044981ms)
✔ Wrist pointer actions suppress primary and alternate fire together (0.044791ms)
✔ Tracked dodge follows aim without snapping the gameplay body (0.050307ms)
✔ Old XR callbacks cannot advance a new distinct session after reentry (0.04803ms)
✔ Version-one saves resume in Classic without persisting XR pose state (0.069966ms)
✔ Comfort settings sanitize invalid values and preserve snap defaults (0.046937ms)
✔ Dynamic geometry and effects have bounded buffers and explicit overflow behavior (0.056513ms)
✔ Immersive session selects the world presenter and advances one shared frame (0.04613ms)
✔ Missing tracked right hand pauses immersive play without firing (0.04681ms)
✔ Controller removal and context loss pause or exit without stale input (0.045474ms)
✔ Failed GL compatibility disposes the partial session and allows retry (0.043667ms)
✔ Unavailable immersive entry keeps Classic usable and Arcade retry possible (0.25153ms)
✔ Deferred tracked shooting still drives Michael firing portrait feedback (0.05543ms)
✔ the campaign adds exactly six authored nightmare maps (18.596285ms)
✔ nightmare pressure, health, fire speed and damage scale rise every level (0.535867ms)
✔ new artifacts require a secret door while required rescues remain reachable (49.673204ms)
✔ Acts II and III can continue and the fourth ending is final (6.677805ms)
✔ nightmare shortcut unlocks weapons without claiming unearned artifacts (2.945843ms)
✔ new-sector saves round trip and mismatched map identifiers are rejected (8.781878ms)
✔ nightmare volleys lead actual movement while original volleys retain direct aim (6.382692ms)
✔ new enemies reposition and resist repeated weapon stuns without reducing Ori stun (5.638585ms)
✔ all twelve sectors clear using ordinary movement, weapons, abilities, doors and pickups (6854.502668ms)
✔ PixelForge ΦWAD mission roundtrip and compatibility (6.736521ms)
✔ temporary mission uses original Game and immersive geometry and restores all 12 campaign sectors (22.865229ms)
✔ custom victory uses original objectives but cannot progress to sector 14 (4.737978ms)
✔ invalid or repeated pack never destroys campaign (7.310038ms)
✔ Twelve sector palettes are distinct, bounded and deterministic for custom fallback (2.029368ms)
✔ Decorative fixtures attach only to open cells and avoid doors and archive signs (21.632391ms)
✔ Distance culling retains crossing chunks and rejects distant geometry (4.360564ms)
✔ All sector/preset batches are finite, bounded and preserve game snapshots (231.552426ms)
✔ Sustained event bursts remain bounded even during late-sector telegraphs (156.880517ms)
✔ Projectile trail budgets cap dense volleys without mutating simulation velocities (4.2259ms)
✔ Wrist capture blocks sticks, turning, fire, charge and every gameplay action (4.104008ms)
✔ Leaving a panel while holding controls cannot leak a shot or snap turn (7.975362ms)
✔ Captured wrist controls still permit collision-safe physical head movement (1.582588ms)
✔ Pointer testing receives current pose transforms before stick locomotion (8.206967ms)
✔ Right glove follows grip independently of the tracked aiming ray (1.951516ms)
✔ Each weapon effect stays at the same safe muzzle as the actual tracked shot (45.393445ms)
✔ Interaction focus honors relay reach, ray direction, occlusion and secret visibility (1.569582ms)
✔ New comfort sliders sanitize values and smooth-turn speed does not affect snap angle (1.188924ms)
✔ Reduced motion steadies decorations without mutating ability timers (36.6541ms)
✔ CODE BROWN geometry and all preset effects preserve custom objectives and campaign isolation (42.290174ms)
✔ HUD semantic text colors meet 4.5:1 contrast on the instrument panel (1.744131ms)
✔ All six weapon UI colors are independent of gameplay weapon definitions (0.262772ms)
✔ All production interaction IDs remain unique and reachable in markup (23.154528ms)
✔ Every custom SVG icon reference resolves to an authored symbol (0.785758ms)
✔ Bundled fonts have valid TTF headers and their actual redistribution licenses (18.088527ms)
✔ Interface has no remote font, image, stylesheet or script requirement (8.560622ms)
✔ The redesigned minimap does not reveal unseen geometry or objectives (11.814865ms)
✔ Minimap rendering is presentation-only and preserves game snapshots (5.947474ms)
✔ v0.1.0 tests remain byte-for-byte unchanged (21.554421ms)
✔ v0.2 sector 1: content reachable and key obtainable before locked doors (10.149887ms)
✔ v0.2 sector 2: content reachable and key obtainable before locked doors (5.669437ms)
✔ v0.2 sector 3: content reachable and key obtainable before locked doors (4.46127ms)
✔ v0.2 sector 4: content reachable and key obtainable before locked doors (3.441638ms)
✔ v0.2 sector 5: content reachable and key obtainable before locked doors (6.678209ms)
✔ v0.2 sector 6: content reachable and key obtainable before locked doors (2.666466ms)
✔ v0.2 sector 7: content reachable and key obtainable before locked doors (3.458072ms)
✔ v0.2 sector 8: content reachable and key obtainable before locked doors (3.543844ms)
✔ v0.2 sector 9: content reachable and key obtainable before locked doors (2.712202ms)
✔ v0.2 sector 10: content reachable and key obtainable before locked doors (3.725029ms)
✔ v0.2 sector 11: content reachable and key obtainable before locked doors (3.152776ms)
✔ v0.2 sector 12: content reachable and key obtainable before locked doors (5.952219ms)
✔ Act II increases encounter count and individual enemy strength (1.124479ms)
✔ original Warden ending offers Act II while final ending cannot advance (3.658015ms)
✔ an actual v0.1.0 checkpoint migrates and retains state (8.396438ms)
✔ a click just before cooldown expiry buffers exactly one shot (5.871869ms)
✔ expired click buffers never fire later (6.317232ms)
✔ wall impacts and hit reactions are emitted without gore (7.562058ms)
✔ Ori assistance has its own visible effect and source attribution (3.357185ms)
✔ danger warnings interrupt banter and remain rate limited (16.058851ms)
✔ Michael and Ori exchange lines in deterministic order (27.123032ms)
✔ movement against a wall produces no footsteps or walking bob (5.424981ms)
✔ navigation route respects golden access gates until a key is held (2.664062ms)
✔ archive signs can be read by facing and interacting (5.258461ms)
✔ fallback keyboard codes work when browser code is absent (0.364431ms)
✔ pointer capture rejects overlapping attempts (0.479726ms)
✔ denied capture switches to fallback without pausing play (0.25666ms)
✔ a capture timeout enables an explicit retry (0.158859ms)
✔ Escape from a real lock pauses; intentional release does not (0.473499ms)
✔ all six sectors clear through traversal, combat and interactions (1644.799174ms)
✔ live enemy attacks cause death, and retry permits a complete traversal (305.431087ms)
✔ render-only door rays can see behind an opening panel without changing collision (0.509024ms)
✔ Warden health phases update even while Ori holds a stun (1.148395ms)
✔ default pointer timer adapters clean up a denied request (0.449413ms)
✔ Ori stun prevents crawler phasing until the stun expires (1.034892ms)
✔ Matrix composition preserves an identity transform (1.746131ms)
✔ A screen is placed in front of the initial head pose (0.14638ms)
✔ Recenter ignores pitch and keeps the arcade screen upright (0.49079ms)
✔ Controller rays hit the panel in texture coordinates (0.215029ms)
✔ Rays behind, parallel to, or pointing away from a panel do not select (0.139713ms)
✔ Quest Touch thumbsticks map separately from Xbox navigator pads (0.441802ms)
✔ Quest triggers fire and charge; grip controls interact and Ori (0.242966ms)
✔ Quest face buttons and stick clicks expose the documented actions (0.917394ms)
✔ Generic xr-standard input keeps trigger/grip controls without guessing faces (0.20099ms)
✔ Losing a Touch controller cancels held fire until neutral (0.372054ms)
✔ Unavailable WebXR reports a fallback without requesting a session (0.393744ms)
✔ Session initialization makes GL compatible before allocating GPU objects (0.119273ms)
✔ Local-floor rejection falls back to local reference space (0.078427ms)
✔ Permission denial leaves VR inactive and permits another attempt (0.075042ms)
✔ Overlapping VR entry attempts request only one session (1.732473ms)
✔ Each XR frame advances once and renders both eye views (0.140068ms)
✔ Tracking loss and hidden headset visibility pause without simulation (0.065648ms)
✔ Recenter changes the anchored screen only on explicit request (0.079992ms)
✔ Pointed UI actions suppress a simultaneous game shot (0.054493ms)
✔ Exit and stale XR callbacks cannot restart or advance the game (0.080503ms)
ℹ tests 219
ℹ suites 0
ℹ pass 219
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 12232.643761
