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

Function needsAgentReadRevalidation

packages/core/sdk/src/core-tools.ts:439–440  ·  view source on GitHub ↗
(last: HealthCheckResult | null | undefined)

Source from the content-addressed store, hash-verified

437 * verdict cannot be refuted by a credential probe (a successful sync clears
438 * it instead). */
439const needsAgentReadRevalidation = (last: HealthCheckResult | null | undefined): boolean =>
440 (last?.status === "expired" || last?.status === "degraded") && !isToolSyncHealth(last);
441
442const toolToOutput = (toolRow: Tool) => ({
443 address: String(toolRow.address),

Callers 1

core-tools.tsFile · 0.85

Calls 1

isToolSyncHealthFunction · 0.90

Tested by

no test coverage detected