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): recover /plan and /diff commands
ldstyle861ebe74d775a
diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/diff.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/diff.tsindex 39b872ad22..34d646dff3 100644--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/diff.ts+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/diff.ts@@ -11,7 +11,6 @@ interface DiffPayload {export function createDiffCommand(): SlashCommand {return {name: "diff",- hidden: true, // TUI release: not registered in registry.ts; re-enable next versiondescription: "View uncommitted changes and per-turn diffs",usage: "/diff",example: "/diff",diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.tsindex 7d079fe71c..d17001fd82 100644--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/help.ts@@ -24,7 +24,7 @@ const COMMAND_GROUPS: Record<string, { name: string; commands: string[] }> = {},config: {name: "Config",- commands: ["config", "workspace", "permissions"],+ commands: ["config", "workspace", "diff", "plan", "permissions"],},};diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/plan.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/plan.tsindex 6ee920bf90..07916b663e 100644--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/plan.ts+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/builtins/plan.ts@@ -6,7 +6,6 @@ const CODE_MODES = new Set(["code.normal", "code.team", "code.plan"]);export function createPlanCommand(): SlashCommand {return {name: "plan",- hidden: true, // TUI release: not registered in registry.ts; re-enable next versiondescription: "Switch to plan mode, or send a planning request",usage: "/plan [open|<description>]",example: "/plan outline the migration steps",diff --git a/jiuwenswarm/channels/tui/frontend/src/core/commands/registry.ts b/jiuwenswarm/channels/tui/frontend/src/core/commands/registry.tsindex b75b49f8ac..39e27c26b2 100644--- a/jiuwenswarm/channels/tui/frontend/src/core/commands/registry.ts+++ b/jiuwenswarm/channels/tui/frontend/src/core/commands/registry.ts@@ -10,7 +10,7 @@ import { createContextCommand } from "./builtins/context.js";import { createCronCommand } from "./builtins/cron.js";import { createCopyCommand } from "./builtins/copy.js";import { createRecapCommand } from "./builtins/recap.js";-// Re-enable next release: import { createDiffCommand } from "./builtins/diff.js";+import { createDiffCommand } from "./builtins/diff.js";import { createExportCommand } from "./builtins/export.js";import {createEvolveCommand,@@ -30,7 +30,7 @@ import { createPluginCommand } from "./builtins/plugin.js";import { createReloadPluginsCommand } from "./builtins/reload-plugins.js";import { createModeCommand } from "./builtins/mode.js";import { createPermissionsCommand } from "./builtins/permissions.js";-// Re-enable next release: import { createPlanCommand } from "./builtins/plan.js";+import { createPlanCommand } from "./builtins/plan.js";import { createResumeCommand } from "./builtins/resume.js";import { createRenameCommand } from "./builtins/rename.js";import { createRewindCommand } from "./builtins/rewind.js";@@ -67,7 +67,7 @@ export function createBuiltinCommands(): SlashCommand[] {createCronCommand(),createRecapCommand(),createCopyCommand(),- // createDiffCommand(),+ createDiffCommand(),createExportCommand(),createEvolveCommand(),createEvolveListCommand(),@@ -78,7 +78,7 @@ export function createBuiltinCommands(): SlashCommand[] {createMcpCommand(),createModeCommand(),createPermissionsCommand(),- // createPlanCommand(),+ createPlanCommand(),createResumeCommand(),createRenameCommand(),createRewindCommand(),