feat(work): add pre-flight health gate for Hatch, Restore, and Git Config
This commit is contained in:
@@ -1483,6 +1483,8 @@ def cmd_work(args):
|
||||
box_work.cmd_assign(args)
|
||||
elif action == "merge":
|
||||
box_work.cmd_merge(args)
|
||||
elif action == "check":
|
||||
box_work.cmd_check(args)
|
||||
elif action == "chats":
|
||||
box_work.cmd_chats(args)
|
||||
else:
|
||||
@@ -6620,13 +6622,17 @@ def build_parser():
|
||||
p_work = subparsers.add_parser("work", parents=[common], help="Fleet workspace, task orchestration, worker scope, and active signals")
|
||||
work_sub = p_work.add_subparsers(dest="work_action")
|
||||
p_w_status = work_sub.add_parser("status", parents=[common], help="Show full operational work dashboard (default)")
|
||||
p_w_check = work_sub.add_parser("check", parents=[common], help="Run pre-flight health checks (Hatch, Restore, Git Config)")
|
||||
p_w_check.add_argument("agent", nargs="?", help="Optional specific agent name to check")
|
||||
p_w_start = work_sub.add_parser("start", parents=[common], help="Instantly start and assign new build ticket to an agent")
|
||||
p_w_start.add_argument("title", help="Ticket title / summary")
|
||||
p_w_start.add_argument("--to", dest="agent", required=True, help="Agent username (opm, 646, dev, pip, def, muse)")
|
||||
p_w_start.add_argument("--goal", help="Optional detailed goal description")
|
||||
p_w_start.add_argument("--force", action="store_true", help="Bypass pre-flight health gate")
|
||||
p_w_assign = work_sub.add_parser("assign", parents=[common], help="Assign existing ticket to an agent")
|
||||
p_w_assign.add_argument("issue", type=int, help="Issue number (e.g. 215)")
|
||||
p_w_assign.add_argument("--to", dest="agent", required=True, help="Agent username")
|
||||
p_w_assign.add_argument("--force", action="store_true", help="Bypass pre-flight health gate")
|
||||
p_w_merge = work_sub.add_parser("merge", parents=[common], help="Merge an open PR into master")
|
||||
p_w_merge.add_argument("pr", type=int, help="Pull request number (e.g. 214)")
|
||||
p_w_chats = work_sub.add_parser("chats", parents=[common], help="View recent live chat activity")
|
||||
|
||||
Reference in New Issue
Block a user