MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / activeOrgForBackend

Function activeOrgForBackend

src/api/cloud/client.ts:28–31  ·  view source on GitHub ↗
(backend: Backend)

Source from the content-addressed store, hash-verified

26 * rejects when api_key_org_id and X-Org-Id disagree.
27 */
28export function activeOrgForBackend(backend: Backend): string | null {
29 const active = getActiveBackend();
30 return active.backend.id === backend.id ? active.orgId : null;
31}
32
33export function createCloudClient(backend?: Backend): CloudClient {
34 const target = requireCloudBackend(backend);

Callers 3

callCloudProxyFunction · 0.90
createCloudClientFunction · 0.85

Calls 1

getActiveBackendFunction · 0.90

Tested by

no test coverage detected