Documentation
¶
Overview ¶
Package modelreport reads the model a native agent session is running from that session's transcript file, for `hadron team session sync-model` (hadron-cli#995, #2252 slice B1).
The reader is deliberately narrow. It never chooses a transcript: the only file it will read is the one the bound Hadron session already RECORDED as its transcriptPath, and the hook's path, native session id and cwd are claims it verifies against that file, not an association source. Anything it cannot prove returns ErrUnavailable, carrying a fixed reason and no path or transcript content, so a caller reports nothing rather than guess.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrUnavailable is the one failure: no model could be proven. Reasons are fixed strings.
Functions ¶
func DefaultRoots ¶
func DefaultRoots() []string
DefaultRoots are the transcript roots the supported tools write under.
func ValidModel ¶
ValidModel bounds a model string before it goes on the wire.