feat: seed default user sources

This commit is contained in:
2026-06-14 14:24:17 +01:00
parent efd7537008
commit 8532d6dbac
10 changed files with 220 additions and 8 deletions

View File

@@ -37,7 +37,7 @@ describe("WebSearchSource", () => {
test("has correct id", () => {
const source = new WebSearchSource({ client: new RecordingSearchClient() })
expect(source.id).toBe("freya.web-search")
expect(source.id).toBe(WebSearchSource.id)
})
test("does not provide context or feed items", async () => {

View File

@@ -41,7 +41,9 @@ const SearchInput = type({
* action and receive structured web results.
*/
export class WebSearchSource implements FeedSource {
readonly id = "freya.web-search"
static readonly id = "freya.web-search"
readonly id = WebSearchSource.id
private readonly client: WebSearchClient