()
| 86 | * Priority: AsyncLocalStorage (in-process) > dynamicTeamContext (tmux via CLI args). |
| 87 | */ |
| 88 | export function getAgentId(): string | undefined { |
| 89 | const inProcessCtx = getTeammateContext() |
| 90 | if (inProcessCtx) return inProcessCtx.agentId |
| 91 | return dynamicTeamContext?.agentId |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Returns the agent name if this session is running as a teammate in a swarm. |
no test coverage detected