/** * Collapse a system message array into a single element by joining all * entries with double-newline separators. Mutates the array in-place so * that callers holding a reference to the original array see the change. */ export declare function collapseSystemInPlace(system: string[]): void; /** * Heuristic for v1 hosts, where the system transform only receives the * sessionID: the session's tracked agent says "orchestrator" but auxiliary * LLM requests (title generation, compaction) run in the SAME session * under their own agent. Those requests are built with `system: []` and * never include the core's environment block, while every main chat * request does (the core prepends it to the request system). Structured * signal, not message text. Degradation if upstream renames both * markers: main-chat requests stop matching and the fallback stops * injecting there (missing serve-mode prompt) — auxiliaries were never * injected, so they cannot regress. A custom auxiliary prompt * CONTAINING these strings would false-positive; accepted as bounded * compatibility with this core. */ export declare function looksLikeMainChatRequest(system: string[]): boolean;