()
| 95 | |
| 96 | let Agent: typeof SDKAgentStatic; |
| 97 | async function loadSDK(): Promise<typeof SDKAgentStatic> { |
| 98 | if (Agent) return Agent; |
| 99 | const mod = await import("@cursor/sdk"); |
| 100 | Agent = mod.Agent; |
| 101 | return Agent; |
| 102 | } |
| 103 | |
| 104 | // Test-only: clears the cached `Agent` so a later `mock.module` reaches |
| 105 | // the SUT. Not for production callers. |
no outgoing calls
no test coverage detected