Expand description
On-disk log-file discovery and tailing shared by the agent and MCP logs
commands.
Log files follow the <prefix>-<name>.log convention; lookup also accepts
bare <name>.log paths and substring matches over the discovered set.
Functionsยง
- display_
names - Strips
prefixand the.logsuffix from each file name, yielding the bare service/agent names offered in interactive selection. - find_
log_ file - Resolves a log file for
name: exact<name>.log, then<prefix><name>.log, then the first prefixed file containingname. - list_
log_ files - Lists
.logfiles inlogs_dirwhose names start withprefix, sorted. - read_
log_ lines - Reads the last
lineslines oflog_filethat satisfyfilter.