@claude-flow/cli 3.0.0-alpha.109 → 3.0.0-alpha.110
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.
|
@@ -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;AAs3H1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -2703,8 +2703,12 @@ const statuslineCommand = {
|
|
|
2703
2703
|
let activeAgents = 0;
|
|
2704
2704
|
let coordinationActive = false;
|
|
2705
2705
|
const maxAgents = 15;
|
|
2706
|
+
const isWindows = process.platform === 'win32';
|
|
2706
2707
|
try {
|
|
2707
|
-
const
|
|
2708
|
+
const psCmd = isWindows
|
|
2709
|
+
? 'tasklist /FI "IMAGENAME eq node.exe" 2>NUL | find /c "node" || echo 0'
|
|
2710
|
+
: 'ps aux 2>/dev/null | grep -c agentic-flow || echo "0"';
|
|
2711
|
+
const ps = execSync(psCmd, { encoding: 'utf-8' });
|
|
2708
2712
|
activeAgents = Math.max(0, parseInt(ps.trim()) - 1);
|
|
2709
2713
|
coordinationActive = activeAgents > 0;
|
|
2710
2714
|
}
|
|
@@ -2733,9 +2737,18 @@ const statuslineCommand = {
|
|
|
2733
2737
|
let name = 'user';
|
|
2734
2738
|
let gitBranch = '';
|
|
2735
2739
|
const modelName = 'Opus 4.5';
|
|
2740
|
+
const isWindows = process.platform === 'win32';
|
|
2736
2741
|
try {
|
|
2737
|
-
|
|
2738
|
-
|
|
2742
|
+
const nameCmd = isWindows
|
|
2743
|
+
? 'git config user.name 2>NUL || echo user'
|
|
2744
|
+
: 'git config user.name 2>/dev/null || echo "user"';
|
|
2745
|
+
const branchCmd = isWindows
|
|
2746
|
+
? 'git branch --show-current 2>NUL || echo.'
|
|
2747
|
+
: 'git branch --show-current 2>/dev/null || echo ""';
|
|
2748
|
+
name = execSync(nameCmd, { encoding: 'utf-8' }).trim();
|
|
2749
|
+
gitBranch = execSync(branchCmd, { encoding: 'utf-8' }).trim();
|
|
2750
|
+
if (gitBranch === '.')
|
|
2751
|
+
gitBranch = '';
|
|
2739
2752
|
}
|
|
2740
2753
|
catch {
|
|
2741
2754
|
// Ignore
|