(ref: ConnectionRef)
| 5270 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 5271 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 5272 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 5273 | core.updateMany("connection", { |
| 5274 | where: (b: AnyCb) => |
| 5275 | b.and( |
| 5276 | byOwner(ref.owner)(b), |
| 5277 | b("integration", "=", String(ref.integration)), |
| 5278 | b("name", "=", String(ref.name)), |
| 5279 | ), |
| 5280 | set: { tools_synced_at: null }, |
| 5281 | }); |
| 5282 | |
| 5283 | // ------------------------------------------------------------------ |
| 5284 | // Active policy source. |
no test coverage detected