豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 15664e0

Browse files
authored
fix: v3.5.5-v3.5.7 platform parity, branding, stdin timeout (#1301)
* fix: v3.5.5–v3.5.7 platform parity, branding, stdin timeout, settings completeness Covers three releases published to npm: v3.5.5 — Complete branding sweep - Replace all "Claude Flow V3" with "RuFlo V3" across 30+ CLI source and helper files - Fix Windows PS1 daemon manager, BAT wrapper, statusline branding - Fix config.yaml header, CAPABILITIES.md, JSDoc, SQL schema comments v3.5.6 — Platform parity and settings completeness - Fix macOS daemon death on terminal close (SIGHUP handler in foreground mode) - Fix Windows daemon spawn (shell:true, windowsHide:true, no detached flag) - Fix PID file write order (write after child.unref() + 100ms delay) - Add 4 missing hooks to settings-generator: PostToolUse:Bash, PreToolUse:Write|Edit|MultiEdit, SubagentEnd, Notification - Rename "Worker Daemon" to "RuFlo Daemon" v3.5.7 — Hook stdin timeout fix - Replace `for await` stdin with event-based + 500ms timeout in hook-handler.cjs - Prevents hanging when Claude Code leaves stdin in ambiguous state (not TTY, not pipe) - Update helpers-generator.ts template with same fix Also: - Add Nginx reverse proxy service to ruflo docker-compose for Chat UI branding - Update ADR-060: 13/24 items fixed, all P0/P1 resolved Co-Authored-By: claude-flow <ruv@ruv.net> * fix: update pnpm-lock.yaml for agentic-flow dependency The lockfile specifiers were out of sync with @claude-flow/cli/package.json after agentic-flow was added, causing CI frozen-lockfile failures. Co-Authored-By: claude-flow <ruv@ruv.net>
1 parent 7b4fef7 commit 15664e0

40 files changed

+704
-217
lines changed

.claude/helpers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Claude Flow V3 Helpers
1+
# RuFlo V3 Helpers
22

33
This directory contains helper scripts and utilities for V3 development.
44

.claude/helpers/adr-compliance.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - ADR Compliance Checker Worker
2+
# RuFlo V3 - ADR Compliance Checker Worker
33
# Checks compliance with Architecture Decision Records
44

55
set -euo pipefail

.claude/helpers/daemon-manager.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - Daemon Manager
2+
# RuFlo V3 - Daemon Manager
33
# Manages background services for real-time statusline updates
44

55
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -155,7 +155,7 @@ restart_all() {
155155
show_status() {
156156
echo ""
157157
echo -e "${CYAN}═══════════════════════════════════════════════════${RESET}"
158-
echo -e "${CYAN} Claude Flow V3 Daemon Status${RESET}"
158+
echo -e "${CYAN} RuFlo V3 Daemon Status${RESET}"
159159
echo -e "${CYAN}═══════════════════════════════════════════════════${RESET}"
160160
echo ""
161161

@@ -225,7 +225,7 @@ case "${1:-status}" in
225225
start_metrics_daemon "${2:-60}"
226226
;;
227227
"help"|"-h"|"--help")
228-
echo "Claude Flow V3 Daemon Manager"
228+
echo "RuFlo V3 Daemon Manager"
229229
echo ""
230230
echo "Usage: $0 [command] [options]"
231231
echo ""

.claude/helpers/ddd-tracker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - DDD Progress Tracker Worker
2+
# RuFlo V3 - DDD Progress Tracker Worker
33
# Tracks Domain-Driven Design implementation progress
44

55
set -euo pipefail

.claude/helpers/guidance-hooks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Guidance Hooks for Claude Flow V3
2+
# Guidance Hooks for RuFlo V3
33
# Provides context and routing for Claude Code operations
44

55
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

.claude/helpers/health-monitor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - Health Monitor Worker
2+
# RuFlo V3 - Health Monitor Worker
33
# Checks disk space, memory pressure, process health
44

55
set -euo pipefail

.claude/helpers/hook-handler.cjs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,23 @@ const intelligence = safeRequire(path.join(helpersDir, 'intelligence.cjs'));
3838
const [,, command, ...args] = process.argv;
3939

4040
// Read stdin — Claude Code sends hook data as JSON via stdin
41+
// Uses a timeout to prevent hanging when stdin is in an ambiguous state
42+
// (not TTY, not a proper pipe) which happens with Claude Code hook invocations.
4143
async function readStdin() {
4244
if (process.stdin.isTTY) return '';
43-
let data = '';
44-
process.stdin.setEncoding('utf8');
45-
for await (const chunk of process.stdin) {
46-
data += chunk;
47-
}
48-
return data;
45+
return new Promise((resolve) => {
46+
let data = '';
47+
const timer = setTimeout(() => {
48+
process.stdin.removeAllListeners();
49+
process.stdin.pause();
50+
resolve(data);
51+
}, 500);
52+
process.stdin.setEncoding('utf8');
53+
process.stdin.on('data', (chunk) => { data += chunk; });
54+
process.stdin.on('end', () => { clearTimeout(timer); resolve(data); });
55+
process.stdin.on('error', () => { clearTimeout(timer); resolve(data); });
56+
process.stdin.resume();
57+
});
4958
}
5059

5160
async function main() {

.claude/helpers/learning-hooks.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - Learning Hooks
2+
# RuFlo V3 - Learning Hooks
33
# Integrates learning-service.mjs with session lifecycle
44

55
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -300,7 +300,7 @@ case "${1:-help}" in
300300
;;
301301
"help"|"-h"|"--help")
302302
cat << 'EOF'
303-
Claude Flow V3 Learning Hooks
303+
RuFlo V3 Learning Hooks
304304
305305
Usage: learning-hooks.sh <command> [args]
306306

.claude/helpers/learning-optimizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Claude Flow V3 - Learning Optimizer Worker
2+
# RuFlo V3 - Learning Optimizer Worker
33
# Runs SONA micro-LoRA optimization on patterns
44

55
set -euo pipefail

.claude/helpers/learning-service.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
/**
3-
* Claude Flow V3 - Persistent Learning Service
3+
* RuFlo V3 - Persistent Learning Service
44
*
55
* Connects ReasoningBank to AgentDB with HNSW indexing and ONNX embeddings.
66
*
@@ -1112,7 +1112,7 @@ async function main() {
11121112
case 'help':
11131113
default:
11141114
console.log(`
1115-
Claude Flow V3 Learning Service
1115+
RuFlo V3 Learning Service
11161116
11171117
Usage: learning-service.mjs <command> [args]
11181118

0 commit comments

Comments
 (0)