From 9acf4aa5116a9e1911e7ae8521b571927983559d Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sat, 28 Feb 2026 22:36:36 -0800 Subject: [PATCH] Add server-side h2/h3 hierarchy detection for subcategory discovery - Parse HTML heading structure to detect h2 parents with h3 subcategories - Append detected hierarchy to Claude prompt as explicit hint - Post-process Claude response to enforce hierarchy even if Claude returns flat Co-Authored-By: Claude Opus 4.6 --- api/setup/analyzeMenuUrl.cfm | 105 ++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 1 deletion(-) diff --git a/api/setup/analyzeMenuUrl.cfm b/api/setup/analyzeMenuUrl.cfm index 0520d81..3e3f891 100644 --- a/api/setup/analyzeMenuUrl.cfm +++ b/api/setup/analyzeMenuUrl.cfm @@ -1036,6 +1036,59 @@ + + + + + + + ]*>", combinedHtml, scanPos)> + ]*>", combinedHtml, scanPos)> + + + + + + ", combinedHtml, nextH2)> + + + ]+>", "", "all")> + + + + + + + + + + + + + + ", combinedHtml, nextH3)> + + + ]+>", "", "all")> + + + + + + + + + + + + + + + + + + + @@ -1055,7 +1108,13 @@ - + + + + + + + @@ -1215,6 +1274,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +