(ref: ConnectionRef)
| 3341 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 3342 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 3343 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 3344 | core.updateMany("connection", { |
| 3345 | where: (b: AnyCb) => |
| 3346 | b.and( |
| 3347 | byOwner(ref.owner)(b), |
| 3348 | b("integration", "=", String(ref.integration)), |
| 3349 | b("name", "=", String(ref.name)), |
| 3350 | ), |
| 3351 | set: { tools_synced_at: null }, |
| 3352 | }); |
| 3353 | |
| 3354 | // ------------------------------------------------------------------ |
| 3355 | // Active policy source. |
no test coverage detected