Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix: tui 隐藏/help中部分命令

jingjinduo7cdc9357ce1a
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/context.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/context.ts
index bdf1ab4864..3beb2289d0 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/context.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/context.ts
@@ -82,6 +82,7 @@ export function createContextCommand(): SlashCommand {
usage: "/context",
example: "/context",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: false,
action: async (ctx) => {
try {
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
index 5db8f43ad6..05479dd276 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/evolve.ts
@@ -12,6 +12,7 @@ export function createEvolveCommand(): SlashCommand {
usage: "/evolve [list | <skill_name> [<user_query>...]]",
example: "/evolve pptx improve error handling",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: (ctx, args) => {
const skillArg = args.trim();
@@ -39,6 +40,7 @@ export function createEvolveListCommand(): SlashCommand {
usage: "/evolve_list <skill_name> [--sort score]",
example: "/evolve_list pptx --sort score",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: (ctx, args) => {
const parsedArgs = parseArgs(args);
@@ -77,6 +79,7 @@ export function createEvolveSimplifyCommand(): SlashCommand {
usage: "/evolve_simplify <skill_name> [--dry-run]",
example: "/evolve_simplify pptx --dry-run",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: (ctx, args) => {
const parsedArgs = parseArgs(args);
@@ -115,6 +118,7 @@ export function createEvolveRebuildCommand(): SlashCommand {
usage: "/evolve_rebuild <skill_name> [<user_query>...]",
example: "/evolve_rebuild pptx improve error handling",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: (ctx, args) => {
const parsedArgs = parseArgs(args);
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/export.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/export.ts
index 3a52758215..e2c98e52d0 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/export.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/export.ts
@@ -126,6 +126,7 @@ export function createExportCommand(): SlashCommand {
usage: "/export [filename]",
example: "/export my-chat.txt",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: async (ctx, args) => {
const content = renderEntriesToPlainText(ctx.entries);
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts
index 5dc7156d1c..8ff28e5507 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts
@@ -14,10 +14,6 @@ const COMMAND_GROUPS: Record<string, { name: string; commands: string[] }> = {
name: "Model",
commands: ["model", "theme", "color"],
},
- evolution: {
- name: "Evolution",
- commands: ["evolve", "evolve_list", "evolve_rebuild", "evolve_simplify"],
- },
mcp: {
name: "MCP",
commands: ["mcp"],
@@ -28,7 +24,7 @@ const COMMAND_GROUPS: Record<string, { name: string; commands: string[] }> = {
},
config: {
name: "Config",
- commands: ["config", "permissions", "workspace", "diff", "plan"],
+ commands: ["config", "workspace", "diff", "plan"],
},
};
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/permissions.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/permissions.ts
index 816fe94ab1..e0c33cdb4e 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/permissions.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/permissions.ts
@@ -38,6 +38,7 @@ export function createPermissionsCommand(): SlashCommand {
usage: "/permissions [allow|ask|deny] <tool_name | tool(pattern)>",
example: "/permissions ask write_file\n/permissions allow bash(ls *)",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: true,
action: async (ctx, args) => {
const raw = args.trim();
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/recap.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/recap.ts
index a470667c20..465a657012 100644
--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/recap.ts
+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/recap.ts
@@ -17,6 +17,7 @@ export function createRecapCommand(): SlashCommand {
usage: "/recap",
example: "/recap",
kind: CommandKind.BUILT_IN,
+ hidden: true,
takesArgs: false,
action: async (ctx) => {
ctx.addItem(addInfo(ctx.sessionId, "Recaping...", "⏳"));