docs(plugins): show root CLI commands (#126621)

This commit is contained in:
Peter Steinberger
2026-08-20 02:42:05 -07:00
committed by GitHub
parent b668a21f07
commit 6932897bf9
21 changed files with 43 additions and 24 deletions
+10 -2
View File
@@ -30,15 +30,23 @@ describe("resolvePluginSurface", () => {
expect(resolvePluginSurface({})).toBe("plugin");
});
it("renders only runtime slash command aliases", () => {
it("renders root CLI commands separately from runtime slash command aliases", () => {
expect(
resolvePluginSurface({
cliCommands: [
{ name: " voicecall " },
{ name: "browser" },
{ name: "voicecall" },
{ name: " " },
],
commandAliases: [
{ name: "voice", kind: "runtime-slash" },
{ name: " voice ", kind: "runtime-slash" },
{ name: " ", kind: "runtime-slash" },
{ name: "internal", kind: "activation-only" },
],
}),
).toBe("commands: `/voice`");
).toBe("CLI commands: `openclaw browser`, `openclaw voicecall`; slash commands: `/voice`");
});
it("escapes dashboard plugin owner delimiters and literal escape markers", () => {