1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! CrabMate Agent **领域层**:规划产物解析、回合启发式、反思控制器等(与 HTTP / 工具执行编排解耦)。
//!
//! 完整回合编排(`agent_turn` 执行面、`workflow` 执行、PER 协调)仍在根包 **`crabmate::agent`**,以便注入 `tool_registry`、SSE 与 `complete_chat_retrying`。
//! 外循环 FSM / reduce / driver / pre-gate reason、完成判定核(`turn_completion_decision` /
//! `completion_suppression` / `task_level_evidence`)已落在本模块 **`agent_turn`**(根包再导出)。
//!
//! 依赖链:`cm_types` → `cm_config` → `cm_tools` → **`cm_agent`** → 根包编排。
/// 单轮 `TurnBudgetCounter` 与 `message_pipeline` / 上下文摘要的联动策略。
/// 终答规划重写与历史扫描等纯逻辑(侧向 LLM 调用仍在根包 `per_plan_semantic_check`)。
/// PER 侧向语义校验结果类型(侧向 LLM 调用本身仍在根包)。
/// 面向用户可见正文的轻量清洗(规划摘要等)。
/// 单轮墙钟预算判定与文案。
pub use PlanRewriteExhaustedReason;
pub use PlanSemanticLlmOutcome;
pub use preview_chars;