feat: runtime provider hotswap

Add ability to replace a FeedSourceProvider at runtime and propagate
the new source to all active (and pending) user sessions, invalidating
their feed caches.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2026-03-19 23:27:19 +00:00
parent ca2664b617
commit 2c03653e91
12 changed files with 717 additions and 81 deletions

View File

@@ -7,6 +7,7 @@ import { SourceDisabledError } from "../sources/errors.ts"
import { sources } from "../sources/user-sources.ts"
export class LocationSourceProvider implements FeedSourceProvider {
readonly sourceId = "aelis.location"
private readonly db: Database
constructor(db: Database) {