MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getStatus

Function getStatus

apps/web/src/lib/integrations/platform-definitions.ts:117–121  ·  view source on GitHub ↗
(id: PlatformType, installations: InstallationStatus)

Source from the content-addressed store, hash-verified

115}
116
117function getStatus(id: PlatformType, installations: InstallationStatus): PlatformStatus {
118 const def = PLATFORM_DEFINITIONS.find(p => p.id === id);
119 if (!def?.enabled) return 'coming_soon';
120 return installations[id as keyof InstallationStatus]?.installed ? 'installed' : 'not_installed';
121}
122
123export function buildPlatforms(
124 installationStatuses: readonly PlatformIntegrationSetupStatus[],

Callers 2

buildPlatformsFunction · 0.85
webhook.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected