(requested: string, resolved: string)
| 73 | |
| 74 | /** Wire id stored on session + keepalive (preserve explicit variant picks). */ |
| 75 | export function wireIdForCursorSessionState(requested: string, resolved: string): string { |
| 76 | const trimmed = requested.trim(); |
| 77 | if (trimmed.includes('[')) { |
| 78 | return trimmed; |
| 79 | } |
| 80 | return resolved; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Map a spawn / hub wire id onto a live ACP configOptions entry. |
no outgoing calls
no test coverage detected