Documentation
¶
Index ¶
- func Bump(s *chatstore.Session) int
- func FormatCheckpointContinuationPlain(cpSeq int, branch string) string
- func FormatCheckpointPrefix(cpSeq int, branch string) string
- 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 FormatCheckpointContinuationPlain ¶ added in v2026.613.0
FormatCheckpointContinuationPlain returns continuation dots whose count matches FormatCheckpointTag width (including brackets), plus a trailing space.
func FormatCheckpointPrefix ¶
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 == ""). Tags printed on tool invocations (separate Bump per tool) are stored on ToolCalls; those match here via the parent assistant message index.
func SplitAtInclusiveDisplay ¶
Types ¶
type FullCheckpointID ¶
func ParseFullCheckpointID ¶
func ParseFullCheckpointID(raw string) (*FullCheckpointID, error)
Click to show internal directories.
Click to hide internal directories.