The repository contract for sessions.
Ported from pi's SessionRepo (specialized to JSONL metadata/options).
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
JsonlSessionCreateOptions options) → Future< Session> - Creates a new session.
-
delete(
SessionMetadata metadata, {String actor = 'unknown'}) → Future< void> - Deletes a session file.
-
fork(
SessionMetadata source, {required String cwd, String? entryId, ForkPosition position, String? id, String? parentSessionPath, Map< String, dynamic> ? metadata}) → Future<Session> -
Forks
sourceinto a new session containing a prefix of its tree. -
list(
{String? cwd}) → Future< List< SessionMetadata> > -
Lists stored sessions, newest first;
cwdfilters to one directory. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
SessionMetadata metadata, {bool windowed = false, bool wholeFileOnly = false}) → Future< Session> -
Opens an existing session from its metadata. With
windowedonly the header plus the newest chunk are materialized; withwholeFileOnlythe full open takes the classic whole-file read even on a ranged filesystem (error-recovery fallbacks: a retry after a ranged-read failure must not depend on that capability again). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited