(page: InferPageType<typeof source>)
| 49 | } |
| 50 | |
| 51 | export 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} |
| 57 | URL: ${canonical} |
| 58 | |
| 59 | ${processed}`; |
| 60 | } |
| 61 | |
| 62 | const __filename = fileURLToPath(import.meta.url); |
| 63 | const __dirname = path.dirname(__filename); |
nothing calls this directly
no outgoing calls
no test coverage detected