fix: remove now deprecated .skill edit command

This commit is contained in:
2026-06-01 15:58:06 -06:00
parent f5aa86f545
commit 47c85a0645
2 changed files with 9 additions and 14 deletions
-10
View File
@@ -1878,7 +1878,6 @@ impl RequestContext {
"loaded".to_string(),
"load".to_string(),
"unload".to_string(),
"edit".to_string(),
];
values.extend(paths::list_skills());
super::map_completion_values(values)
@@ -1928,15 +1927,6 @@ 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();
+9 -4
View File
@@ -46,7 +46,7 @@ pub const DEFAULT_CONTINUATION_PROMPT: &str = indoc! {"
4. Continue with the next pending item now. Call tools immediately."
};
static REPL_COMMANDS: LazyLock<[ReplCommand; 43]> = LazyLock::new(|| {
static REPL_COMMANDS: LazyLock<[ReplCommand; 44]> = LazyLock::new(|| {
[
ReplCommand::new(".help", "Show this help guide", AssertState::pass()),
ReplCommand::new(".info", "Show system info", AssertState::pass()),
@@ -193,7 +193,12 @@ static REPL_COMMANDS: LazyLock<[ReplCommand; 43]> = LazyLock::new(|| {
ReplCommand::new(".macro", "Execute a macro", AssertState::pass()),
ReplCommand::new(
".skill",
"List, load, unload, edit, or create skills",
"List, load, unload, or create skills",
AssertState::pass(),
),
ReplCommand::new(
".edit skill",
"Modify an existing skill by name",
AssertState::pass(),
),
ReplCommand::new(
@@ -1319,8 +1324,8 @@ mod tests {
}
#[test]
fn repl_commands_has_43_entries() {
assert_eq!(REPL_COMMANDS.len(), 43);
fn repl_commands_has_44_entries() {
assert_eq!(REPL_COMMANDS.len(), 44);
}
#[test]