refactor(auto-reply): split reply flow

This commit is contained in:
Peter Steinberger
2026-01-04 05:47:21 +01:00
parent fd91da2b7f
commit 72a9e58777
17 changed files with 3128 additions and 2235 deletions

View File

@@ -0,0 +1,16 @@
const ABORT_TRIGGERS = new Set(["stop", "esc", "abort", "wait", "exit"]);
const ABORT_MEMORY = new Map<string, boolean>();
export function isAbortTrigger(text?: string): boolean {
if (!text) return false;
const normalized = text.trim().toLowerCase();
return ABORT_TRIGGERS.has(normalized);
}
export function getAbortMemory(key: string): boolean | undefined {
return ABORT_MEMORY.get(key);
}
export function setAbortMemory(key: string, value: boolean): void {
ABORT_MEMORY.set(key, value);
}