重构: 巨函数拆分 + 清理历史标记注释 + custom_prompt/停止按钮/tunnel 改进

This commit is contained in:
lxy
2026-07-31 21:36:12 +08:00
parent 365af554da
commit bd9031d35d
73 changed files with 1421 additions and 1064 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ use serde::{Deserialize, Serialize};
use crate::types::{ExecutionId, NodeId};
/// 人工审批选择类型(F-260615-01)
/// 人工审批选择类型
/// - Single: 单选(decision 单值),缺省值,向后兼容现有调用方
/// - Multiple: 多选(decisions 数组)
///
@@ -100,7 +100,7 @@ pub enum WorkflowEvent {
title: String,
description: String,
options: Vec<String>,
/// F-260615-01: 选择类型,缺省 Single(向后兼容)
/// 选择类型,缺省 Single(向后兼容)
#[serde(default)]
select_type: SelectType,
},
@@ -109,7 +109,7 @@ pub enum WorkflowEvent {
execution_id: ExecutionId,
node_id: NodeId,
decision: String,
/// F-260615-01: 多选结果(Single 模式长度=1,Multiple 模式长度≥1)
/// 多选结果(Single 模式长度=1,Multiple 模式长度≥1)
#[serde(default)]
decisions: Vec<String>,
comment: Option<String>,