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

Function presentedLastHealth

packages/core/sdk/src/executor.ts:1109–1113  ·  view source on GitHub ↗
(row: ConnectionRow)

Source from the content-addressed store, hash-verified

1107 * rewrites `provider_state` wholesale, which ends this derivation with no
1108 * write to race. */
1109const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => {
1110 const reauthState = oauthReauthRequiredFromProviderState(row.provider_state);
1111 if (reauthState !== null) return deadGrantVerdict(reauthState, row);
1112 return Option.getOrNull(decodeLastHealth(row.last_health));
1113};
1114
1115const rowToConnection = (row: ConnectionRow): Connection => {
1116 const owner = row.owner as Owner;

Callers 3

rowToConnectionFunction · 0.85
connectionCheckHealthFunction · 0.85
rowToAdminConnectionFunction · 0.85

Calls 2

deadGrantVerdictFunction · 0.85

Tested by

no test coverage detected