feat: .edit skill <name> support from within the REPL

This commit is contained in:
2026-06-01 15:48:19 -06:00
parent 0f90dd5f53
commit 5c374bb5bf
2 changed files with 28 additions and 16 deletions
+11
View File
@@ -1928,6 +1928,15 @@ impl RequestContext {
"skill",
"agent-data",
]),
".edit" => super::map_completion_values(vec![
"config",
"mcp-config",
"role",
"session",
"rag-docs",
"agent-config",
"skill",
]),
".vault" => {
let mut values = vec!["add", "get", "update", "delete", "list"];
values.sort_unstable();
@@ -1938,6 +1947,8 @@ impl RequestContext {
}
_ => vec![],
};
} else if cmd == ".edit" && args.first() == Some(&"skill") && args.len() == 2 {
values = super::map_completion_values(paths::list_skills());
} else if cmd == ".install" && args.first() == Some(&"remote") && args.len() >= 2 {
let prev = args.get(args.len() - 2).copied().unwrap_or("");
if prev == "--filter" {