Documentation
¶
Index ¶
- func DecodeClaudeProjectPath(encoded string) string
- func EncodeClaudeProjectPath(absPath string) string
- func EscapeLike(s string) string
- func FileMtime(path string) (time.Time, error)
- func FirstUserSnippet(text string, max int) string
- func FormatRelative(t time.Time) string
- func JSONMarshal(v any) ([]byte, error)
- func JSONUnmarshal(data []byte, v any) error
- func MatchID(id, query string) bool
- func NormalizeProjectPath(path string) string
- func ParseTime(s string) time.Time
- func ReadJSONLLines(path string, maxLines int, fn func(line []byte) error) error
- func ScanJSONLEdges(path string, headLines int, tailChunk int64, match func(line []byte) bool) bool
- func TailJSONLLines(path string, maxLines int) ([][]byte, error)
- func TildePath(p string) string
- func TruncateRunes(s string, n int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeClaudeProjectPath ¶
func EncodeClaudeProjectPath ¶
func EscapeLike ¶ added in v0.1.7
EscapeLike escapes % and _ for use in SQL LIKE patterns with a fixed prefix/suffix.
func FirstUserSnippet ¶
func FormatRelative ¶ added in v0.1.4
FormatRelative returns a human-readable relative time (e.g. "3m ago", "5d ago").
func JSONMarshal ¶
func JSONUnmarshal ¶
func NormalizeProjectPath ¶ added in v0.1.4
NormalizeProjectPath cleans a project path and resolves symlinks when possible.
func ReadJSONLLines ¶
func ScanJSONLEdges ¶ added in v0.1.3
ScanJSONLEdges checks the first headLines and trailing tailChunk bytes for a matching line.
func TruncateRunes ¶ added in v0.1.7
TruncateRunes shortens s to at most n runes without splitting UTF-8 code points.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.