feat: add website enrichment crawler

This commit is contained in:
2026-06-04 20:29:23 +02:00
parent ca42c8d5a6
commit 1f6e31c01c
25 changed files with 3539 additions and 56 deletions

27
tests/runs-domain.test.ts Normal file
View File

@@ -0,0 +1,27 @@
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { join } from "node:path";
import test from "node:test";
const runsSource = readFileSync(
join(process.cwd(), "convex", "runs.ts"),
"utf8",
);
const schemaSource = readFileSync(
join(process.cwd(), "convex", "schema.ts"),
"utf8",
);
test("run listing supports type-only filtering", () => {
assert.match(
runsSource,
/if\s*\(\s*args\.type\s*\)\s*\{[\s\S]*?\.withIndex\(\s*"by_type"\s*,\s*\(q\)\s*=>\s*q\.eq\("type",\s*type\)\)/,
);
});
test("agentRuns schema defines by_type index", () => {
assert.match(
schemaSource,
/\.index\("by_type",\s*\["type"\]\)/,
);
});