()
| 123 | * For tmux teammates, requires BOTH an agent ID AND a team name. |
| 124 | */ |
| 125 | export function isTeammate(): boolean { |
| 126 | // In-process teammates run within the same process |
| 127 | const inProcessCtx = getTeammateContext() |
| 128 | if (inProcessCtx) return true |
| 129 | // Tmux teammates require both agent ID and team name |
| 130 | return !!(dynamicTeamContext?.agentId && dynamicTeamContext?.teamName) |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Returns the teammate's assigned color, |
no test coverage detected