struct

Smith::Checkpoints::Entry

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(sequence : Int32, tool : String, path : String, blob : String | Nil, message_id : String | Nil, created_at : Time = Time.local, after_digest : String | Nil = nil, message_index : Int32 | Nil = nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

after_digest

What smith left behind. Compared against the file at rewind time to spot a change made outside smith since.

Source
after_digest=(after_digest : String | Nil)

What smith left behind. Compared against the file at rewind time to spot a change made outside smith since.

Source
blob

sha256 of the content before the call; nil means the file did not exist, so undoing the call means deleting it again.

Source
created?
Source
created_at
Source
message_id

The message the transcript ended with when this snapshot was taken.

An identity rather than a position: compaction replaces a prefix with a summary, which shifts every index behind it, and a checkpoint holding a number would then name a different turn than the one that was picked. An id either still resolves or it does not, which is the honest answer.

Source
message_index

What checkpoints recorded before ids existed. Read on the way out for those, never written for new ones.

Source
path
Source
sequence
Source
tool
Source