88dc0c5323e6017655e47fba5e3cdad2d6655dfd
The user drags a flight ticket (PDF/text/ics/html) onto the chat panel, or uses the new 📎 button. The doc is text-extracted server-side (pdftotext for PDFs; images rejected with a clear "no OCR" message), then the LLM reads it, extracts the confirmed arrival + departure (date, local time, airport, city) and calls a new deterministic tool, apply_flight_anchors, which reconfigures the trip: - re-dates the day window across the booked [arrival, departure] span (contiguous when the day counts match, evenly spread when they don't) - records the flights as hard-anchor bookings, replacing placeholders - shortens the arrival day (start after landing + a real airport→hotel taxi time) and the departure day (ends exactly at the booked time) - trims stops that no longer fit and updates the trip title's range Undo/redo and reload persistence now version the trip's bookings + title alongside days/stays, so a re-configuration reverts and reloads cleanly. Server gains POST /parse-doc. Verified E2E (LLM extraction + reconfigure), idempotency, drag-and-drop, and undo; non-flight agent unaffected. Co-Authored-By: Claude <noreply@anthropic.com>
Description
Trip planner
1.6 MiB
Languages
JavaScript
59.8%
Go
19.7%
CSS
7.6%
Shell
3.7%
Lua
3.5%
Other
5.6%