FreakingGenius - v0.1.0
    Preparing search index...

    Creates and persists session checkpoints.

    const checkpoints = new Checkpoints(sessionId, { backend: 'local_storage', maxCheckpoints: 20 });
    await checkpoints.save('Completed exercise 3', { exerciseId: 'ex-3', score: 0.9 });
    const all = checkpoints.getAll();
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Deletes all persisted checkpoints for this session from the backend.

      Returns Promise<void>

      Resolves once the storage backend has cleared the data.

    • Creates and persists a new checkpoint for the current moment.

      Parameters

      • label: string

        Human-readable label, e.g. "Completed exercise 3".

      • Optionalmetadata: Record<string, unknown>

        Arbitrary key-value data to record with the checkpoint.

      Returns Promise<Checkpoint>

      The newly created and persisted Checkpoint.