@claude-flow/cli 3.5.9 → 3.5.10
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.
|
@@ -50,15 +50,23 @@ const intelligence = safeRequire(path.join(helpersDir, 'intelligence.cjs'));
|
|
|
50
50
|
// Get the command from argv
|
|
51
51
|
const [,, command, ...args] = process.argv;
|
|
52
52
|
|
|
53
|
-
// Read stdin — Claude Code sends hook data as JSON via stdin
|
|
53
|
+
// Read stdin with timeout — Claude Code sends hook data as JSON via stdin.
|
|
54
|
+
// Timeout prevents hanging when stdin is not properly closed (common on Windows).
|
|
54
55
|
async function readStdin() {
|
|
55
56
|
if (process.stdin.isTTY) return '';
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
return new Promise((resolve) => {
|
|
58
|
+
let data = '';
|
|
59
|
+
const timer = setTimeout(() => {
|
|
60
|
+
process.stdin.removeAllListeners();
|
|
61
|
+
process.stdin.pause();
|
|
62
|
+
resolve(data);
|
|
63
|
+
}, 500);
|
|
64
|
+
process.stdin.setEncoding('utf8');
|
|
65
|
+
process.stdin.on('data', (chunk) => { data += chunk; });
|
|
66
|
+
process.stdin.on('end', () => { clearTimeout(timer); resolve(data); });
|
|
67
|
+
process.stdin.on('error', () => { clearTimeout(timer); resolve(data); });
|
|
68
|
+
process.stdin.resume();
|
|
69
|
+
});
|
|
62
70
|
}
|
|
63
71
|
|
|
64
72
|
async function main() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
|
|
6
6
|
"main": "dist/src/index.js",
|