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

Function presentedLastHealth

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

Source from the content-addressed store, hash-verified

1102 * rewrites `provider_state` wholesale, which ends this derivation with no
1103 * write to race. */
1104const presentedLastHealth = (row: ConnectionRow): HealthCheckResult | null => {
1105 const reauthState = oauthReauthRequiredFromProviderState(row.provider_state);
1106 if (reauthState !== null) return deadGrantVerdict(reauthState, row);
1107 return Option.getOrNull(decodeLastHealth(row.last_health));
1108};
1109
1110const rowToConnection = (row: ConnectionRow): Connection => {
1111 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