// Package tasklist provides the task list abstraction used by Agent Teams // for work assignment, progress tracking, and result aggregation. The // Store interface is consumer-pluggable so the same task list semantics // work over in-memory (CLI / test), filesystem (single-process daemon), // or remote (SaaS multi-tenant) backends. // // # API Consumption Shapes // // Store spans two Flyto API shapes (see `docs/api-reference.md` section // "API 消费形态 / API Consumption Patterns"): // // - Mutations (Create / Update / Delete / Assign / etc.): form 3 // (synchronous callback). Engine / Leader SubAgent calls synchronously // while orchestrating the team; the Store implementation persists and // returns error on failure. // - Queries (Get / List / FindByStatus): form 2 (pull). Consumer reads // current state for UI rendering, leader-side scheduling decisions, // or audit. // // Package tasklist 提供 Agent Teams 的任务列表抽象: 工作分配 / 进度追踪 / // 结果聚合. Store 接口面向消费者可插拔, 同一套任务列表语义可跑在内存 // (CLI / 测试) / 文件系统 (单进程 daemon) / 远端 (SaaS 多租户) 后端上. // // # API 消费形态 // // Store 跨越两种 Flyto API 形态 (见 `docs/api-reference.md` "API 消费形态 / // API Consumption Patterns" 章节): // // - 写 (Create / Update / Delete / Assign 等): 形态三 (同步回调). 引擎 / // Leader SubAgent 在编排 team 时同步调; Store 实现持久化, 失败返 error. // - 读 (Get / List / FindByStatus): 形态二 (调取 pull). 消费者读当前状态 // 供 UI 渲染 / leader 调度决策 / 审计. package tasklist