(ref: ConnectionRef)
| 4803 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 4804 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 4805 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 4806 | core.updateMany("connection", { |
| 4807 | where: (b: AnyCb) => |
| 4808 | b.and( |
| 4809 | byOwner(ref.owner)(b), |
| 4810 | b("integration", "=", String(ref.integration)), |
| 4811 | b("name", "=", String(ref.name)), |
| 4812 | ), |
| 4813 | set: { tools_synced_at: null }, |
| 4814 | }); |
| 4815 | |
| 4816 | // ------------------------------------------------------------------ |
| 4817 | // Active policy source. |
no test coverage detected