(ref: ConnectionRef)
| 4073 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 4074 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 4075 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 4076 | core.updateMany("connection", { |
| 4077 | where: (b: AnyCb) => |
| 4078 | b.and( |
| 4079 | byOwner(ref.owner)(b), |
| 4080 | b("integration", "=", String(ref.integration)), |
| 4081 | b("name", "=", String(ref.name)), |
| 4082 | ), |
| 4083 | set: { tools_synced_at: null }, |
| 4084 | }); |
| 4085 | |
| 4086 | // ------------------------------------------------------------------ |
| 4087 | // Active policy source. |
no test coverage detected