~bigbes/lethe

ref: 96e95ab9e44d2234ab036319836a5087eb4c2a2f lethe/internal/collector/parser/parser.go -rw-r--r-- 438 bytes
96e95ab9 — Eugene Blikh fix: add tool column to search table; remove conversation bleed from comments 23 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package parser

import "sourcecraft.dev/bigbes/lethe/internal/shared/wire"

// SourceFile is a discovered transcript file under a tool-specific source root.
type SourceFile struct {
	Path string
	Size int64
}

// Parser maps one tool's on-disk transcript format into lethe wire events.
type Parser interface {
	Tool() string
	Discover(root string) ([]SourceFile, error)
	Parse(path string, since int64) ([]wire.TurnEvent, int64, error)
}