easter-egg-quest 1.0.20 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,10 +19,11 @@ export declare class PageBreather {
19
19
  private _isUserMoving;
20
20
  private _inSync;
21
21
  private _accuracy;
22
- /** Full breath cycle duration in ms (move half + pause half). */
23
- private readonly CYCLE_MS;
22
+ private _targetPhase;
23
+ private _phaseMatch;
24
+ private _signal;
24
25
  start(): void;
25
- update(accuracy: number, isMoving: boolean): void;
26
+ update(accuracy: number, isMoving: boolean, targetPhase: 'move' | 'still', phaseMatch: boolean, signal: number): void;
26
27
  /** Whether the user is currently in sync with the breathing rhythm. */
27
28
  isInSync(): boolean;
28
29
  stop(): void;
@@ -27,6 +27,7 @@ export declare class RhythmStage implements StageHandler {
27
27
  private _lastPhaseCount;
28
28
  private _bestAccuracy;
29
29
  private _lastGuideTime;
30
+ private _lastGoodCycleAt;
30
31
  /** Broad move duration range (ms), tuned for natural mouse/touch rhythm. */
31
32
  private readonly IDEAL_MOVE_MIN;
32
33
  private readonly IDEAL_MOVE_MAX;
@@ -39,6 +40,9 @@ export declare class RhythmStage implements StageHandler {
39
40
  cleanup(): void;
40
41
  getResult(): StageResult;
41
42
  private _evaluateCycle;
43
+ private _getLiveConfidence;
44
+ private _getTargetPhase;
45
+ private _scoreDuration;
42
46
  private _showReaction;
43
47
  private _wait;
44
48
  private _showAndConfirm;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easter-egg-quest",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "A hidden Easter-themed narrative mini-game overlay for any website",
5
5
  "main": "dist/easter-egg-quest.umd.js",
6
6
  "module": "dist/easter-egg-quest.es.js",