From a0d86d6e873e2a6311941efa024735173d134722 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 1 Mar 2026 11:08:07 -0800 Subject: [PATCH] Add Toast __OO_STATE__ fast-path for URL-fetched menu pages Instead of sending 450KB of HTML to Claude (which truncates to 100K and only extracts ~60 items), parse the structured __OO_STATE__ data directly on the server. This captures all menus, groups, items, prices, and images from Toast pages - 169 items for Jus Family Cafe vs 60 before. Falls back to Claude analysis if __OO_STATE__ parsing fails. Co-Authored-By: Claude Opus 4.6 --- api/setup/analyzeMenuUrl.cfm | 217 +++++++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) diff --git a/api/setup/analyzeMenuUrl.cfm b/api/setup/analyzeMenuUrl.cfm index c479515..2974b3a 100644 --- a/api/setup/analyzeMenuUrl.cfm +++ b/api/setup/analyzeMenuUrl.cfm @@ -934,6 +934,223 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + #serializeJSON(response)# + + + + + + + + +