ownerGone
uses tcmts.cli.mcp.processAlive, which uses process
Whether what's named with an ownId (as a name's last part) is a process's that has ended; what isn't named
so isn't.
import { processAlive } from "#codebase/tcmts/cli/mcp"; export function ownerGone(name: string): boolean { const m = /(?:^|\.)(\d+)-[0-9a-f]{8}(?:\.json)?$/.exec(name); return !!m && !processAlive(Number(m[1])); }