* 获取 Agent 能力
()
| 241 | const waitForExit = async (timeoutMs: number): Promise<void> => { |
| 242 | if (exited) return; |
| 243 | let timer: ReturnType<typeof setTimeout> | undefined; |
| 244 | await Promise.race([ |
| 245 | exit, |
| 246 | new Promise<void>((resolve) => { |
| 247 | timer = setTimeout(resolve, timeoutMs); |
| 248 | (timer as { unref?: () => void }).unref?.(); |
nothing calls this directly
no outgoing calls
no test coverage detected