claude-flow 2.7.21 → 2.7.23

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.
@@ -0,0 +1,28 @@
1
+ #!/bin/bash
2
+ # Fix agentic-flow's misleading "Enabled: false" log message
3
+ # Changes it to show actual initialization status
4
+
5
+ INDEX_FILE="node_modules/agentic-flow/dist/reasoningbank/index.js"
6
+
7
+ if [ ! -f "$INDEX_FILE" ]; then
8
+ echo "❌ File not found: $INDEX_FILE"
9
+ exit 1
10
+ fi
11
+
12
+ echo "🔧 Fixing agentic-flow 'Enabled' log message..."
13
+
14
+ # Check if already fixed
15
+ if grep -q "Enabled: true" "$INDEX_FILE"; then
16
+ echo "✅ Already fixed!"
17
+ exit 0
18
+ fi
19
+
20
+ # Backup original
21
+ cp "$INDEX_FILE" "${INDEX_FILE}.backup-enabled"
22
+
23
+ # Replace the misleading env check with hardcoded true since we're initializing
24
+ sed -i "41s/console.log(\`\[ReasoningBank\] Enabled: \${!!process.env.REASONINGBANK_ENABLED}\`);/console.log('[ReasoningBank] Enabled: true (initializing...)');/" "$INDEX_FILE"
25
+
26
+ echo "✅ Fixed agentic-flow 'Enabled' log message!"
27
+ echo " Now shows: [ReasoningBank] Enabled: true (initializing...)"
28
+ echo " Patched: $INDEX_FILE"