Incremental summary folding for SessionStore adapters.
Summary
Functions
Converts a local Claude transcript path into a SessionStore key.
Folds appended transcript entries into an opaque summary sidecar.
Derives the store project_key for a directory using the same path
sanitization as local Claude transcript directories.
Converts a folded summary into ClaudeAgentSDK.Session.SessionInfo.
Functions
@spec file_path_to_session_key(String.t(), String.t()) :: ClaudeAgentSDK.SessionStore.Key.t() | nil
Converts a local Claude transcript path into a SessionStore key.
@spec fold_session_summary(map() | nil, ClaudeAgentSDK.SessionStore.Key.input(), [ map() ]) :: map()
Folds appended transcript entries into an opaque summary sidecar.
Derives the store project_key for a directory using the same path
sanitization as local Claude transcript directories.
@spec summary_entry_to_session_info(map(), String.t() | nil) :: ClaudeAgentSDK.Session.SessionInfo.t() | nil
Converts a folded summary into ClaudeAgentSDK.Session.SessionInfo.