huskies: merge 824

This commit is contained in:
dave
2026-04-29 13:38:34 +00:00
parent b4854cf693
commit 59b626d3ba
13 changed files with 658 additions and 4 deletions
@@ -167,6 +167,19 @@ pub(super) fn agent_tools() -> Vec<Value> {
"required": ["story_id"]
}
}),
json!({
"name": "cleanup_worktrees",
"description": "List orphaned worktrees (dry run) or remove them (confirm: true). A worktree is orphaned when its story is missing from the CRDT or is in Done/Archived stage.",
"inputSchema": {
"type": "object",
"properties": {
"confirm": {
"type": "boolean",
"description": "When true, remove all orphaned worktrees. When false (default), only list them."
}
}
}
}),
json!({
"name": "get_editor_command",
"description": "Get the open-in-editor command for a worktree. Returns a ready-to-paste shell command like 'zed /path/to/worktree'. Requires the editor preference to be configured via PUT /api/settings/editor.",
+2 -1
View File
@@ -88,7 +88,8 @@ mod tests {
assert!(names.contains(&"remove_criterion"));
assert!(names.contains(&"mesh_status"));
assert!(names.contains(&"run_check"));
assert_eq!(tools.len(), 68);
assert!(names.contains(&"cleanup_worktrees"));
assert_eq!(tools.len(), 69);
}
#[test]