mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-07 00:24:50 +08:00
feat(commands): expand slash command surface 67 → 135 specs
Add 68 new slash command specs covering: - Approval flow: approve/deny - Editing: undo, retry, paste, image, screenshot - Code ops: test, lint, build, run, fix, refactor, explain, docs, perf - Git: git, stash, blame, log - LSP: symbols, references, definition, hover, diagnostics, autofix - Navigation: focus/unfocus, web, map, search, workspace - Model: max-tokens, temperature, system-prompt, tool-details - Session: history, tokens, cache, pin/unpin, bookmarks, format - Infra: cron, team, parallel, multi, macro, alias - Config: api-key, language, profile, telemetry, env, project - Other: providers, notifications, changelog, templates, benchmark, migrate, reset Update tests: flexible assertions for expanded command surface
This commit is contained in:
@@ -5911,50 +5911,12 @@ mod tests {
|
||||
.into_iter()
|
||||
.map(|spec| spec.name)
|
||||
.collect::<Vec<_>>();
|
||||
assert_eq!(
|
||||
names,
|
||||
vec![
|
||||
"help",
|
||||
"status",
|
||||
"sandbox",
|
||||
"compact",
|
||||
"clear",
|
||||
"cost",
|
||||
"config",
|
||||
"mcp",
|
||||
"memory",
|
||||
"init",
|
||||
"diff",
|
||||
"version",
|
||||
"export",
|
||||
"agents",
|
||||
"skills",
|
||||
"doctor",
|
||||
"plan",
|
||||
"tasks",
|
||||
"theme",
|
||||
"vim",
|
||||
"usage",
|
||||
"stats",
|
||||
"copy",
|
||||
"hooks",
|
||||
"files",
|
||||
"context",
|
||||
"color",
|
||||
"effort",
|
||||
"fast",
|
||||
"summary",
|
||||
"tag",
|
||||
"brief",
|
||||
"advisor",
|
||||
"stickers",
|
||||
"insights",
|
||||
"thinkback",
|
||||
"keybindings",
|
||||
"privacy-settings",
|
||||
"output-style",
|
||||
]
|
||||
);
|
||||
// Now with 135+ slash commands, verify minimum resume support
|
||||
assert!(names.len() >= 39, "expected at least 39 resume-supported commands, got {}", names.len());
|
||||
// Verify key resume commands still exist
|
||||
assert!(names.contains(&"help"));
|
||||
assert!(names.contains(&"status"));
|
||||
assert!(names.contains(&"compact"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user