(ref: ConnectionRef)
| 3493 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 3494 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 3495 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 3496 | core.updateMany("connection", { |
| 3497 | where: (b: AnyCb) => |
| 3498 | b.and( |
| 3499 | byOwner(ref.owner)(b), |
| 3500 | b("integration", "=", String(ref.integration)), |
| 3501 | b("name", "=", String(ref.name)), |
| 3502 | ), |
| 3503 | set: { tools_synced_at: null }, |
| 3504 | }); |
| 3505 | |
| 3506 | // ------------------------------------------------------------------ |
| 3507 | // Active policy source. |
no test coverage detected