MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / getLLMText

Function getLLMText

apps/public/src/lib/source.ts:51–60  ·  view source on GitHub ↗
(page: InferPageType<typeof source>)

Source from the content-addressed store, hash-verified

49}
50
51export async function getLLMText(page: InferPageType<typeof source>) {
52 const processed = await page.data.getText('processed');
53 const canonical = `${OPENPANEL_BASE_URL}${page.url}`;
54
55 return `---
56## ${page.data.title}
57URL: ${canonical}
58
59${processed}`;
60}
61
62const __filename = fileURLToPath(import.meta.url);
63const __dirname = path.dirname(__filename);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected