(ref: ConnectionRef)
| 5399 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 5400 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 5401 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 5402 | core.updateMany("connection", { |
| 5403 | where: (b: AnyCb) => |
| 5404 | b.and( |
| 5405 | byOwner(ref.owner)(b), |
| 5406 | b("integration", "=", String(ref.integration)), |
| 5407 | b("name", "=", String(ref.name)), |
| 5408 | ), |
| 5409 | set: { tools_synced_at: null }, |
| 5410 | }); |
| 5411 | |
| 5412 | // ------------------------------------------------------------------ |
| 5413 | // Active policy source. |
no test coverage detected