🔂 ids.ts

This commit is contained in:
nirholas
2026-03-31 10:24:08 +00:00
parent a9be7897e1
commit 64152b6874

View File

@@ -42,3 +42,4 @@ const AGENT_ID_PATTERN = /^a(?:.+-)?[0-9a-f]{16}$/
export function toAgentId(s: string): AgentId | null {
return AGENT_ID_PATTERN.test(s) ? (s as AgentId) : null
}