Files
OmniRoute/open-sse/services/compression/engineCatalog.ts
Diego Rodrigues de Sa e Souza bfaf459f3c Release v3.8.32 (#4418)
Release v3.8.32 — see CHANGELOG.md [3.8.32] for the full list. Merged via --admin over documented non-blocking checks: CodeQL alerts ratchet (#665 fixed by #4457/#4462, auto-closes on main rescan), Integration Tests (env-flaky batch-upstream), SonarCloud/SonarQube (advisory new-code).
2026-06-21 08:56:51 -03:00

85 lines
2.0 KiB
TypeScript

export interface EngineMeta {
id: string;
label: string;
stackPriority: number;
levels?: string[]; // intensity options; undefined = no level selector
isSingleMode: boolean; // can be the effective mode when it is the only engine on
description: string;
}
export const ENGINE_CATALOG: Record<string, EngineMeta> = {
"session-dedup": {
id: "session-dedup",
label: "Session Dedup",
stackPriority: 3,
isSingleMode: false,
description: "Cross-turn block deduplication.",
},
ccr: {
id: "ccr",
label: "CCR (Retrieval)",
stackPriority: 4,
isSingleMode: false,
description: "Content-addressed retrieval markers.",
},
lite: {
id: "lite",
label: "Lite",
stackPriority: 5,
isSingleMode: true,
description: "Whitespace/format cleanup.",
},
rtk: {
id: "rtk",
label: "RTK",
stackPriority: 10,
levels: ["minimal", "standard", "aggressive"],
isSingleMode: true,
description: "Command-output filtering.",
},
headroom: {
id: "headroom",
label: "Headroom",
stackPriority: 15,
isSingleMode: false,
description: "Tabular JSON compaction.",
},
caveman: {
id: "caveman",
label: "Caveman",
stackPriority: 20,
levels: ["lite", "full", "ultra"],
isSingleMode: true,
description: "Rule-based prose compression.",
},
aggressive: {
id: "aggressive",
label: "Aggressive",
stackPriority: 30,
isSingleMode: true,
description: "Summarize + age old turns.",
},
llmlingua: {
id: "llmlingua",
label: "LLMLingua (SLM)",
stackPriority: 35,
isSingleMode: false,
description: "Semantic pruning (ONNX).",
},
ultra: {
id: "ultra",
label: "Ultra",
stackPriority: 40,
isSingleMode: true,
description: "Heuristic token pruning (+ optional SLM).",
},
};
export const ENGINE_IDS: string[] = Object.values(ENGINE_CATALOG)
.sort((a, b) => a.stackPriority - b.stackPriority)
.map((e) => e.id);
export function engineMeta(id: string): EngineMeta {
return ENGINE_CATALOG[id];
}