(ref: ConnectionRef)
| 2912 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 2913 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 2914 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 2915 | core.updateMany("connection", { |
| 2916 | where: (b: AnyCb) => |
| 2917 | b.and( |
| 2918 | byOwner(ref.owner)(b), |
| 2919 | b("integration", "=", String(ref.integration)), |
| 2920 | b("name", "=", String(ref.name)), |
| 2921 | ), |
| 2922 | set: { tools_synced_at: null }, |
| 2923 | }); |
| 2924 | |
| 2925 | // ------------------------------------------------------------------ |
| 2926 | // Active policy source. |
no test coverage detected