claude-code: drop the machines data only the guard read

With the guard gone nothing reads the machines' names, domains and
addresses: remove Machine, the name lookup and the ten-minute timer that
resolved them again, so the tools' table is read only when a followed
state changes. Also remove the now unused cut helper.
This commit is contained in:
2026-11-20 13:15:52 +01:00
parent f57ae96e55
commit 1ae83499ba
4 changed files with 28 additions and 95 deletions
@@ -92,11 +92,3 @@ func InsteadOf(m *MeshTools) string {
" need, none is worked around: say so, and the tool is created in the module that owns it, on its seat.\n")
return b.String()
}
func cut(s string, n int) string {
s = strings.Join(strings.Fields(s), " ")
if r := []rune(s); len(r) > n {
return string(r[:n-1]) + "…"
}
return s
}