diff --git a/package.json b/package.json index 100ce1cfd7..dcdbc49eda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claude-flow", - "version": "3.7.0-alpha.13", + "version": "3.7.0-alpha.14", "description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "dist/index.js", "type": "module", diff --git a/ruflo/package.json b/ruflo/package.json index de3ed9178a..f0ac9f342f 100644 --- a/ruflo/package.json +++ b/ruflo/package.json @@ -1,6 +1,6 @@ { "name": "ruflo", - "version": "3.7.0-alpha.13", + "version": "3.7.0-alpha.14", "description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration", "main": "bin/ruflo.js", "type": "module", diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json index 37e8026216..e7eacc302e 100644 --- a/v3/@claude-flow/cli/package.json +++ b/v3/@claude-flow/cli/package.json @@ -1,6 +1,6 @@ { "name": "@claude-flow/cli", - "version": "3.7.0-alpha.13", + "version": "3.7.0-alpha.14", "type": "module", "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code", "main": "dist/src/index.js", diff --git a/v3/@claude-flow/cli/src/commands/hooks.ts b/v3/@claude-flow/cli/src/commands/hooks.ts index 093a660b19..7921f8dfcd 100644 --- a/v3/@claude-flow/cli/src/commands/hooks.ts +++ b/v3/@claude-flow/cli/src/commands/hooks.ts @@ -4013,7 +4013,13 @@ const statuslineCommand: Command = { }, { name: 'compact', - description: 'Compact single-line output', + description: 'Compact single-line output (auto-enabled when terminal width < 100 cols)', + type: 'boolean', + default: false + }, + { + name: 'full', + description: 'Force the full multi-line output even on narrow terminals', type: 'boolean', default: false }, @@ -4252,8 +4258,16 @@ const statuslineCommand: Command = { return { success: true, data: statusData }; } - // Compact output - if (ctx.flags.compact) { + // #1153: auto-collapse to compact on narrow terminals so the full + // 6+ line statusline doesn't dominate the screen. Honors: + // - explicit --compact → compact + // - explicit --full → full (overrides auto-detection) + // - else → compact when terminal < 100 cols (full multi-line + // output expects ~100 cols of horizontal space) + const COMPACT_WIDTH_THRESHOLD = 100; + const terminalCols = process.stdout.columns ?? 80; + const autoCompact = !ctx.flags.full && terminalCols < COMPACT_WIDTH_THRESHOLD; + if (ctx.flags.compact || autoCompact) { const line = `DDD:${progress.domainsCompleted}/${progress.totalDomains} CVE:${security.cvesFixed}/${security.totalCves} Swarm:${swarm.activeAgents}/${swarm.maxAgents} Ctx:${system.contextPct}% Int:${system.intelligencePct}%`; output.writeln(line); return { success: true, data: statusData };