(ref: ConnectionRef)
| 3856 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 3857 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 3858 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 3859 | core.updateMany("connection", { |
| 3860 | where: (b: AnyCb) => |
| 3861 | b.and( |
| 3862 | byOwner(ref.owner)(b), |
| 3863 | b("integration", "=", String(ref.integration)), |
| 3864 | b("name", "=", String(ref.name)), |
| 3865 | ), |
| 3866 | set: { tools_synced_at: null }, |
| 3867 | }); |
| 3868 | |
| 3869 | // ------------------------------------------------------------------ |
| 3870 | // Active policy source. |
no test coverage detected