MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / classifyOAuthClientGc

Function classifyOAuthClientGc

packages/core/sdk/src/oauth-gc.ts:149–156  ·  view source on GitHub ↗
(
  row: OAuthClientGcRow,
  referencingConnectionCount: number,
)

Source from the content-addressed store, hash-verified

147 * row's `(owner, slug)`.
148 */
149export const classifyOAuthClientGc = (
150 row: OAuthClientGcRow,
151 referencingConnectionCount: number,
152): OAuthClientGcDecision => {
153 if (!isDcrClassifiedRow(row)) return { action: "keep", reason: "not-dcr" };
154 if (referencingConnectionCount > 0) return { action: "keep", reason: "referenced" };
155 return { action: "delete", reason: "dcr-orphaned" };
156};

Calls 1

isDcrClassifiedRowFunction · 0.85

Tested by

no test coverage detected