huskies: merge 824
This commit is contained in:
@@ -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.",
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user