Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv970afebd2517
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts
index b4c1f3f1d0..a9d09c8382 100644
--- a/v3/@claude-flow/cli/src/init/settings-generator.ts
+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts
@@ -93,7 +93,7 @@ function generateStatusLineConfig(options: InitOptions): object {
function generateHooksConfig(config: HooksConfig): object {
const hooks: Record<string, unknown[]> = {};
- // PreToolUse hooks
+ // PreToolUse hooks - using cross-platform Node.js helpers
if (config.preToolUse) {
hooks.PreToolUse = [
// File edit hooks with intelligence routing
@@ -102,7 +102,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'npx @claude-flow/cli@latest hooks pre-edit --file "$TOOL_INPUT_file_path" --intelligence 2>/dev/null || true',
+ command: 'node .claude/helpers/hooks.mjs pre-edit --file "$TOOL_INPUT_file_path" --intelligence',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
@@ -114,7 +114,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'npx @claude-flow/cli@latest hooks pre-command --command "$TOOL_INPUT_command" --validate-safety 2>/dev/null || true',
+ command: 'node .claude/helpers/hooks.mjs pre-command --command "$TOOL_INPUT_command" --validate-safety',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
@@ -126,7 +126,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'npx @claude-flow/cli@latest hooks pre-task --task-id "task-$(date +%s)" --description "$TOOL_INPUT_prompt" 2>/dev/null || true',
+ command: 'node .claude/helpers/hooks.mjs pre-task --description "$TOOL_INPUT_prompt"',
timeout: config.timeout,
continueOnError: config.continueOnError,
},
@@ -138,7 +138,7 @@ function generateHooksConfig(config: HooksConfig): object {
hooks: [
{
type: 'command',
- command: 'npx @claude-flow/cli@latest hooks pre-search --pattern "$TOOL_INPUT_pattern" 2>/dev/null || true',
+ command: 'node .claude/helpers/hooks.mjs pre-search --pattern "$TOOL_INPUT_pattern"',
timeout: 2000,
continueOnError: config.continueOnError,
},