Documentation
¶
Index ¶
- func Bump(s *chatstore.Session) int
- func FormatCheckpointTag(cpSeq int, branch string) string
- func FormatLinePrefix(cpSeq int, branch string) string
- func FormatReplPromptPrefix(s *chatstore.Session) string
- func NextForkSuffix(s *chatstore.Session, forkAtDisplay int) string
- func SkipStagingIfRunningExecutable(abs string) bool
- func SplitAtFullID(msgs []chatstore.Message, id *FullCheckpointID) (keep, drop []chatstore.Message, err error)
- func SplitAtInclusiveDisplay(msgs []chatstore.Message, displayN int) (keep, drop []chatstore.Message, err error)
- func StampMsg(m *chatstore.Message, s *chatstore.Session, seq int)
- type FullCheckpointID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatCheckpointTag ¶
func FormatLinePrefix ¶
func FormatReplPromptPrefix ¶
func SplitAtFullID ¶
func SplitAtFullID(msgs []chatstore.Message, id *FullCheckpointID) (keep, drop []chatstore.Message, err error)
SplitAtFullID splits messages at the first message whose CheckpointSeq and CheckpointBranchKey match the given FullCheckpointID exactly. An empty suffix matches only messages on the main branch (CheckpointBranchKey == "").
func SplitAtInclusiveDisplay ¶
Types ¶
type FullCheckpointID ¶
type FullCheckpointID struct {
Seq int
Suffix string // e.g. "a", "b", "" (main branch)
Raw string // original user input for display
}
FullCheckpointID represents a parsed checkpoint identifier like "#006a".
func ParseFullCheckpointID ¶
func ParseFullCheckpointID(raw string) (*FullCheckpointID, error)
ParseFullCheckpointID parses strings like "#006a", "006a", "#010", "010".
Click to show internal directories.
Click to hide internal directories.