(ref: ConnectionRef)
| 2928 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 2929 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 2930 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 2931 | core.updateMany("connection", { |
| 2932 | where: (b: AnyCb) => |
| 2933 | b.and( |
| 2934 | byOwner(ref.owner)(b), |
| 2935 | b("integration", "=", String(ref.integration)), |
| 2936 | b("name", "=", String(ref.name)), |
| 2937 | ), |
| 2938 | set: { tools_synced_at: null }, |
| 2939 | }); |
| 2940 | |
| 2941 | // ------------------------------------------------------------------ |
| 2942 | // Active policy source. |
no test coverage detected