(ref: ConnectionRef)
| 3428 | // arrive mid-invocation (an MCP `notifications/tools/list_changed`, an |
| 3429 | // unknown-tool rejection) where re-listing inline would block the caller. |
| 3430 | const connectionsMarkToolsStale = (ref: ConnectionRef): Effect.Effect<void, StorageFailure> => |
| 3431 | core.updateMany("connection", { |
| 3432 | where: (b: AnyCb) => |
| 3433 | b.and( |
| 3434 | byOwner(ref.owner)(b), |
| 3435 | b("integration", "=", String(ref.integration)), |
| 3436 | b("name", "=", String(ref.name)), |
| 3437 | ), |
| 3438 | set: { tools_synced_at: null }, |
| 3439 | }); |
| 3440 | |
| 3441 | // ------------------------------------------------------------------ |
| 3442 | // Active policy source. |
no test coverage detected