* Get or create a numeric process ID for an agent
(agentId: string)
| 133 | * Get or create a numeric process ID for an agent |
| 134 | */ |
| 135 | function getProcessIdForAgent(agentId: string): number { |
| 136 | const existing = agentIdToProcessId.get(agentId) |
| 137 | if (existing !== undefined) return existing |
| 138 | |
| 139 | processIdCounter++ |
| 140 | agentIdToProcessId.set(agentId, processIdCounter) |
| 141 | return processIdCounter |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Get current agent info |
no test coverage detected