Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/codeaashu/claude-code
/ toAgentId
Function
toAgentId
src/types/ids.ts:42–44 ·
view source on GitHub ↗
(s: string)
Source
from the content-addressed store, hash-verified
40
* Returns null
if
the string doesn't match (e.g. teammate names, team-addressing).
41
*/
42
export
function
toAgentId(s: string): AgentId | null {
43
return
AGENT_ID_PATTERN.test(s) ? (s as AgentId) : null
44
}
45
Callers
1
call
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected