docs: 为 CLI、网页编排器和插件协议补充学习向注释

在核心类型、图执行器、stdio 插件和前端入口写清职责与对照路径,不改运行行为。
This commit is contained in:
2026-08-28 11:51:48 +08:00
parent a3cca78592
commit 950d09ddb0
38 changed files with 206 additions and 3 deletions
+5
View File
@@ -4,6 +4,10 @@ using MAF1.Plugins;
namespace MAF1.Web;
/// <summary>
/// 一次可暂停的运行。NextIndex 记住停在第几个节点;Pending 是当前确认请求。
/// Mutex 防止「用户点击」和「超时自动确认」同时 Continue。
/// </summary>
internal sealed class WorkflowSession
{
public required string RunId { get; init; }
@@ -22,6 +26,7 @@ internal sealed class WorkflowSession
public object Sync { get; } = new();
}
/// <summary>进程内运行字典。服务重启后 runId 会失效,学习项目不做持久化。</summary>
public sealed class WorkflowRunStore
{
private readonly ConcurrentDictionary<string, WorkflowSession> _sessions = new(StringComparer.OrdinalIgnoreCase);