Skip to content

Latest commit

 

History

History
85 lines (56 loc) · 2.51 KB

File metadata and controls

85 lines (56 loc) · 2.51 KB

ADE Epic 1 交接 - Worktree Manager

发送方: Quinn (@qa) - QA 代理 接收方: 下一位开发者 日期: 2026-01-29 状态: 完成 ✅


执行摘要

Epic 1 (Worktree Manager) 100% 完成并通过 QA Gate。通过 Git worktrees 提供分支隔离,用于并行 story 开发。

类型: 70% 代码, 30% 提示工程


交付物

工件 路径 类型 状态
worktree-manager.js .aiox-core/infrastructure/scripts/worktree-manager.js JS 脚本
story-worktree-hooks.js .aiox-core/infrastructure/scripts/story-worktree-hooks.js JS 脚本
project-status-loader.js .aiox-core/infrastructure/scripts/project-status-loader.js JS 脚本
auto-worktree.yaml .aiox-core/development/workflows/auto-worktree.yaml 工作流
worktree-create.md .aiox-core/development/tasks/worktree-create.md 任务
worktree-list.md .aiox-core/development/tasks/worktree-list.md 任务
worktree-merge.md .aiox-core/development/tasks/worktree-merge.md 任务

已注册命令

代理: @devops

# Worktree 管理 (Story 1.3-1.4 - ADE Infrastructure)
- create-worktree {story}: 为 story 开发创建隔离 worktree
- list-worktrees: 列出所有活跃 worktrees 及状态
- merge-worktree {story}: 将完成的 worktree 合并回 main
- cleanup-worktrees: 移除已废弃/已合并的 worktrees

API 参考

WorktreeManager 类

const { WorktreeManager } = require('.aiox-core/infrastructure/scripts/worktree-manager.js');

const manager = new WorktreeManager(projectRoot);

// 为 story 创建 worktree
await manager.create('STORY-42');

// 列出所有 worktrees
const worktrees = await manager.list();

// 合并 worktree
await manager.merge('STORY-42');

// 清理废弃的 worktrees
await manager.cleanup();

集成点

  • status.json: Worktree 状态跟踪在 .aiox/status.json
  • Dashboard: WorktreeManager API 被 AIOX Dashboard 消费
  • Epic 4: Execution Engine 使用 worktrees 进行隔离开发

QA Gate 结果

决定: 通过 ✅ 日期: 2026-01-28


交接由 Quinn (@qa) 准备 - 质量守护者