import type * as getThread from '#lib/lexicons/dev/knotless/getThread.ts'; import type { PageLoad } from './$types'; import type { AtUriString } from '@atproto/lex'; import { repoPage } from '#lib/data.ts'; export const load: PageLoad = async (event) => { const { kind, did, rkey } = event.params; const uri = `at://${did}/dev.knotless.${kind}/${rkey}` as AtUriString; // A pull's diffs are on its files page: here, only how many files it changes. const { repo, answer } = await repoPage(event, 'dev.knotless.getThread', { uri, filesOnly: true }); return { repo, thread: answer }; };