(id: string)
| 16 | * or hand-edited `state.json.agents` key could otherwise turn vis |
| 17 | * into a local-file-read primitive when exposed beyond loopback. */ |
| 18 | export function isSafeAgentId(id: string): boolean { |
| 19 | return AGENT_ID_RE.test(id) && id !== '.' && id !== '..'; |
| 20 | } |
| 21 | |
| 22 | interface StateJson { |
| 23 | createdAt?: string; |
no outgoing calls
no test coverage detected