From 8df13c316420eef9652bdc35df96131ca948d928 Mon Sep 17 00:00:00 2001 From: SysAdmin Date: Tue, 17 Mar 2026 02:22:09 +0000 Subject: [PATCH] debug(schematics): log project page title and HTML snippet Co-Authored-By: Claude Opus 4.6 (1M context) --- src/schematics.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/schematics.js b/src/schematics.js index 8f4b706..a529da9 100644 --- a/src/schematics.js +++ b/src/schematics.js @@ -123,7 +123,10 @@ export async function fetchSchematic(url) { throw new Error(`Failed to fetch project page: ${err.message}`); } - // Debug: log download-related links found on the project page + // Debug: log project page info + const projTitle = html.match(/([^<]*)<\/title>/i); + log(TAG, `Project page title: "${projTitle?.[1] || 'NONE'}", HTML length: ${html.length}`); + log(TAG, `Project page snippet (500-1500): ${html.slice(500, 1500).replace(/\n/g, ' ')}`); const dlLinks = html.match(/href="[^"]*download[^"]*"/gi) || []; log(TAG, `Project page download links: ${dlLinks.length} — ${dlLinks.slice(0, 10).join(', ')}`); // Also check for any schematic/schem references