@claude-flow/cli 3.7.0-alpha.12 → 3.7.0-alpha.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +17 -3
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/services/worker-daemon.d.ts +11 -0
- package/dist/src/services/worker-daemon.d.ts.map +1 -1
- package/dist/src/services/worker-daemon.js +58 -0
- package/dist/src/services/worker-daemon.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AA+lK1E,eAAO,MAAM,YAAY,EAAE,OA0G1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -3302,7 +3302,13 @@ const statuslineCommand = {
|
|
|
3302
3302
|
},
|
|
3303
3303
|
{
|
|
3304
3304
|
name: 'compact',
|
|
3305
|
-
description: 'Compact single-line output',
|
|
3305
|
+
description: 'Compact single-line output (auto-enabled when terminal width < 100 cols)',
|
|
3306
|
+
type: 'boolean',
|
|
3307
|
+
default: false
|
|
3308
|
+
},
|
|
3309
|
+
{
|
|
3310
|
+
name: 'full',
|
|
3311
|
+
description: 'Force the full multi-line output even on narrow terminals',
|
|
3306
3312
|
type: 'boolean',
|
|
3307
3313
|
default: false
|
|
3308
3314
|
},
|
|
@@ -3531,8 +3537,16 @@ const statuslineCommand = {
|
|
|
3531
3537
|
output.printJson(statusData);
|
|
3532
3538
|
return { success: true, data: statusData };
|
|
3533
3539
|
}
|
|
3534
|
-
//
|
|
3535
|
-
|
|
3540
|
+
// #1153: auto-collapse to compact on narrow terminals so the full
|
|
3541
|
+
// 6+ line statusline doesn't dominate the screen. Honors:
|
|
3542
|
+
// - explicit --compact → compact
|
|
3543
|
+
// - explicit --full → full (overrides auto-detection)
|
|
3544
|
+
// - else → compact when terminal < 100 cols (full multi-line
|
|
3545
|
+
// output expects ~100 cols of horizontal space)
|
|
3546
|
+
const COMPACT_WIDTH_THRESHOLD = 100;
|
|
3547
|
+
const terminalCols = process.stdout.columns ?? 80;
|
|
3548
|
+
const autoCompact = !ctx.flags.full && terminalCols < COMPACT_WIDTH_THRESHOLD;
|
|
3549
|
+
if (ctx.flags.compact || autoCompact) {
|
|
3536
3550
|
const line = `DDD:${progress.domainsCompleted}/${progress.totalDomains} CVE:${security.cvesFixed}/${security.totalCves} Swarm:${swarm.activeAgents}/${swarm.maxAgents} Ctx:${system.contextPct}% Int:${system.intelligencePct}%`;
|
|
3537
3551
|
output.writeln(line);
|
|
3538
3552
|
return { success: true, data: statusData };
|