From 6c9f467b94f1223900d1ad3242b9e14b2a3854da Mon Sep 17 00:00:00 2001 From: Remi <73385395+itsrubberduck@users.noreply.github.com> Date: Sun, 21 Sep 2025 21:16:33 +0200 Subject: [PATCH 1/6] Enable flow-aware decision routing --- app/pages/pm.vue | 74 ++++- server/api/atc/ptt.post.ts | 5 +- server/middleware/auth.global.ts | 3 + server/utils/openai.ts | 336 +++++++++++++++++++++++ shared/types/decision.ts | 40 +++ shared/types/llm.ts | 5 +- shared/utils/communicationsEngine.ts | 390 ++++++++++++++++++++++----- 7 files changed, 771 insertions(+), 82 deletions(-) diff --git a/app/pages/pm.vue b/app/pages/pm.vue index 3a9d9a2..48162ed 100644 --- a/app/pages/pm.vue +++ b/app/pages/pm.vue @@ -2,17 +2,33 @@
OpenSquawk
Alpha Build • Decision Tree • VATSIM
{{ entry.message }}
Alpha Build • Decision Tree • VATSIM
+ {{ activeFlowInfo.description }} +
Current node
{{ debugState?.id || '—' }}
@@ -668,6 +676,57 @@No further decisions available.
Decision timeline
+{{ step.label }}
+{{ step.stage }}
+{{ step.note }}
+{{ candidate.summary }}
+Eliminated
+{{ elim.reason }}
+{{ describeElimination(elim) }}
+No decision timeline available yet.
+