Repository navigation
Open
Labels
area:fullstackEnd-to-end Host and Client implementationEnd-to-end Host and Client implementationfeature:panelsPanel contributions, bindings, layout and lifecyclePanel contributions, bindings, layout and lifecyclefeature:tasksPersistent Task and Kanban records, distinct from Assignment SessionsPersistent Task and Kanban records, distinct from Assignment Sessionsscope:tracerHuman-testable implementation sliceHuman-testable implementation slice
Milestone
Description
Parent: #4202
Blocked by: #4204, #4205
What to build
发布 @botharness/plugin-sdk 0.x,以及 Host 侧的 botFeatures Service。把 packages/todo 迁移成第一个 Bot Feature,贯通以下能力:
- 有类型的定义,不再强转;
enablement: all-bots,Human 可以逐个 Bot 关闭;- prompt 片段,带归属和预算;
- 带效果声明的工具;
- Profile 级数据;
- 全局看板 Panel;
- 自动生成的 CLI。
看板继承 #2223 的产品要求:Task 有稳定 id、标题、描述、todo/doing/done 状态、最新进度和更新时间;Human 和 Bot 通过同一个 Service 操作;兼容旧的 to-do 记录;有明确的并发冲突处理和带编码的拒绝。删除 hostTools 在 todo 里的用法,以及手写的 runDirect 和 /api/todos/tool。
Acceptance criteria
- AC-1:todo 只依赖
@botharness/plugin-sdk的公开类型,代码里没有as unknown as BotHarnessCore。 - AC-2:对 Bot A 关闭 Todo 后,A 的新 Session 里没有 todos 工具和对应的 prompt 片段,Bot B 不受影响。CLI 和 Bot 设置页里都能看到并切换这个状态。
- AC-3:prompt inspection 显示 Todo 片段的来源和所占预算,超出预算时截断并给出提示。
- AC-4:
tobs feature list、tobs feature tool botharness/todo todos_add --bot <slug> --args …和tobs bot feature enable|disable都可用,scripts/check-cli-parity.mjs能识别 Feature 提供的工具。 - AC-5:看板 Panel 和 Bot 工具操作的是同一份数据。关闭 Panel 后工具仍然能用,Host 重启后数据还在,旧的 to-do 记录可以正常读取。
- AC-6:Feature 的合同版本不兼容时,Bot 设置和 CLI 都显示“不可用:需要升级”,Host 正常启动。
- AC-7:Todo 数据进入 Profile 备份,恢复后数据一致。
- AC-8:在真实隔离 Host 上,用真实模型的 tool trace 证明 Bot 创建的 Task 出现在看板上。
Metadata
Metadata
Assignees
Labels
area:fullstackEnd-to-end Host and Client implementationEnd-to-end Host and Client implementationfeature:panelsPanel contributions, bindings, layout and lifecyclePanel contributions, bindings, layout and lifecyclefeature:tasksPersistent Task and Kanban records, distinct from Assignment SessionsPersistent Task and Kanban records, distinct from Assignment Sessionsscope:tracerHuman-testable implementation sliceHuman-testable implementation slice
Activity