Commit Graph

3 Commits

Author SHA1 Message Date
itsrubberduck
c5e9e6e75b feat(atc): integrate OSM taxi routing into engine
Fetches taxi route from /api/service/tools/taxiroute when request_taxi
or contact_ground_arrival interactions are chosen. Populates vars.taxi_route
or vars.arrival_taxi_route before ATC template is rendered.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 00:03:06 +01:00
itsrubberduck
5a1c06d037 feat(atc): add engine orchestrator and LLM route endpoint
- shared/atc/engine.ts: useAtcEngine() composable — reactive state machine with
  initFlight, handlePilotInput, updateTelemetry, declareEmergency, reset
- server/api/atc/route.post.ts: Token-efficient LLM router with single-candidate
  fast path, heuristic readback checking, and fallback to LLM

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 19:10:10 +01:00
itsrubberduck
f213933db2 feat(atc): add Live ATC v2 phase machine foundation
- shared/atc/types.ts: All type definitions (Phase, Interaction, EngineState, Transmission, etc.)
- shared/atc/phases/: 9 phase modules (clearance → ground → tower → departure → enroute → approach → landing → taxiIn + emergency)
- shared/atc/phases/index.ts: Phase registry with getPhase(), getPhaseOrder(), getAllPhases()
- shared/atc/templateRenderer.ts: {var} placeholder renderer
- shared/atc/telemetryWatcher.ts: Telemetry condition evaluator for auto-advance

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 19:07:03 +01:00