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

Function presentedLastHealth

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

Source from the content-addressed store, hash-verified

1116 * rewrites `provider_state` wholesale, which ends this derivation with no
1117 * write to race. */
1118const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => {
1119 const reauthState = oauthReauthRequiredFromProviderState(row.provider_state);
1120 if (reauthState !== null) return deadGrantVerdict(reauthState, row);
1121 return Option.getOrNull(decodeLastHealth(row.last_health));
1122};
1123
1124const rowToConnection = (row: ConnectionRow): Connection => {
1125 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