(ref: ConnectionRef)
| 3011 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 3012 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 3013 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 3014 | core.updateMany("connection", { |
| 3015 | where: (b: AnyCb) => |
| 3016 | b.and( |
| 3017 | byOwner(ref.owner)(b), |
| 3018 | b("integration", "=", String(ref.integration)), |
| 3019 | b("name", "=", String(ref.name)), |
| 3020 | ), |
| 3021 | set: { tools_synced_at: null }, |
| 3022 | }); |
| 3023 | |
| 3024 | // ------------------------------------------------------------------ |
| 3025 | // Active policy source. |
no test coverage detected