MCPcopy Create free account
hub / github.com/cursor/plugins / loadSDK

Function loadSDK

orchestrate/skills/orchestrate/scripts/core/agent-manager.ts:97–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96let Agent: typeof SDKAgentStatic;
97async 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.

Callers 2

cancelCloudRunFunction · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected