FreakingGenius - v0.1.0
    Preparing search index...

    Creates and manages the full lifecycle of a single tutoring session.

    const manager = new SessionManager(config);
    manager.onEvent((e) => analytics.track(e));
    await manager.start();
    // … session runs …
    await manager.end('completed');
    Index

    Constructors

    Methods

    • Gracefully terminates the session — stops audio, closes the bridge, saves a final checkpoint, and transitions the FSM to TERMINATED.

      Parameters

      • reason: "completed" | "timeout" | "error" | "aborted"

        Why the session is ending; recorded in the final checkpoint.

      Returns Promise<void>

      Resolves once all subsystems are torn down.

    • Pauses the session — suspends audio capture and freezes the session clock.

      Returns Promise<void>

      Resolves when the session is fully paused.

    • Initialises all subsystems, opens the bridge connection to the edge device, starts audio capture, and transitions the FSM to ACTIVE.

      Returns Promise<void>

      Resolves once the session is fully running.