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

fix: use $CLAUDE_PROJECT_DIR for hooks path resolution (v3.5.15)

rUv413e646de414
diff --git a/.claude/settings.json b/.claude/settings.json
index 14f6878f99..d979474c56 100644
--- a/.claude/settings.json
+++ b/.claude/settings.json
@@ -47,7 +47,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" pre-bash",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" pre-bash",
"timeout": 5000
}
]
@@ -59,7 +59,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" post-edit",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" post-edit",
"timeout": 10000
}
]
@@ -70,7 +70,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" route",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" route",
"timeout": 10000
}
]
@@ -81,12 +81,12 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" session-restore",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" session-restore",
"timeout": 15000
},
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/auto-memory-hook.mjs\" import",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/auto-memory-hook.mjs\" import",
"timeout": 8000
}
]
@@ -97,7 +97,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" session-end",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" session-end",
"timeout": 10000
}
]
@@ -108,7 +108,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/auto-memory-hook.mjs\" sync",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/auto-memory-hook.mjs\" sync",
"timeout": 10000
}
]
@@ -120,11 +120,11 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" compact-manual"
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" compact-manual"
},
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" session-end",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" session-end",
"timeout": 5000
}
]
@@ -134,11 +134,11 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" compact-auto"
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" compact-auto"
},
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" session-end",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" session-end",
"timeout": 6000
}
]
@@ -149,7 +149,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" status",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" status",
"timeout": 3000
}
]
@@ -160,7 +160,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" post-task",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" post-task",
"timeout": 5000
}
]
@@ -171,7 +171,7 @@
"hooks": [
{
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/hook-handler.cjs\" post-task",
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs\" post-task",
"timeout": 5000
}
]
@@ -286,7 +286,7 @@
},
"statusLine": {
"type": "command",
- "command": "node \"$(git rev-parse --show-toplevel)/.claude/helpers/statusline.cjs\""
+ "command": "node \"$CLAUDE_PROJECT_DIR/.claude/helpers/statusline.cjs\""
},
"mcpServers": {
"claude-flow": {
diff --git a/package-lock.json b/package-lock.json
index edd05224b6..05824d0ed9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "claude-flow",
- "version": "3.5.14",
+ "version": "3.5.15",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "claude-flow",
- "version": "3.5.14",
+ "version": "3.5.15",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 9a1eab3e23..a169ff23d8 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "claude-flow",
- "version": "3.5.14",
+ "version": "3.5.15",
"description": "Ruflo - Enterprise AI agent orchestration for Claude Code. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "dist/index.js",
"type": "module",
diff --git a/ruflo/package.json b/ruflo/package.json
index 68d38c33cc..ea33891a22 100644
--- a/ruflo/package.json
+++ b/ruflo/package.json
@@ -1,6 +1,6 @@
{
"name": "ruflo",
- "version": "3.5.14",
+ "version": "3.5.15",
"description": "Ruflo - Enterprise AI agent orchestration platform. Deploy 60+ specialized agents in coordinated swarms with self-learning, fault-tolerant consensus, vector memory, and MCP integration",
"main": "bin/ruflo.js",
"type": "module",
diff --git a/v3/@claude-flow/cli/.claude/settings.json b/v3/@claude-flow/cli/.claude/settings.json
index 8d064462bc..95d945161c 100644
--- a/v3/@claude-flow/cli/.claude/settings.json
+++ b/v3/@claude-flow/cli/.claude/settings.json
@@ -11,7 +11,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs pre-bash",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" pre-bash",
"timeout": 5000
}
]
@@ -23,7 +23,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs post-edit",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" post-edit",
"timeout": 10000
}
]
@@ -34,7 +34,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs route",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" route",
"timeout": 10000
}
]
@@ -46,13 +46,13 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs session-restore",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" session-restore",
"timeout": 15000,
"continueOnError": true
},
{
"type": "command",
- "command": "node .claude/helpers/auto-memory-hook.mjs import",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/auto-memory-hook.mjs" import",
"timeout": 8000,
"continueOnError": true
}
@@ -64,7 +64,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs session-end",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" session-end",
"timeout": 10000,
"continueOnError": true
}
@@ -76,7 +76,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/hook-handler.cjs status",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs" status",
"timeout": 3000,
"continueOnError": true
}
@@ -88,7 +88,7 @@
"hooks": [
{
"type": "command",
- "command": "node .claude/helpers/auto-memory-hook.mjs sync",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/auto-memory-hook.mjs" sync",
"timeout": 10000,
"continueOnError": true
}
@@ -98,7 +98,7 @@
},
"statusLine": {
"type": "command",
- "command": "node .claude/helpers/statusline.cjs",
+ "command": "node "$CLAUDE_PROJECT_DIR/.claude/helpers/statusline.cjs"",
"refreshMs": 5000,
"enabled": true
},
diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.json
index 1f2c27c8fd..c7e927d9dc 100644
--- a/v3/@claude-flow/cli/package.json
+++ b/v3/@claude-flow/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "@claude-flow/cli",
- "version": "3.5.14",
+ "version": "3.5.15",
"type": "module",
"description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
"main": "dist/src/index.js",
diff --git a/v3/@claude-flow/cli/src/init/settings-generator.ts b/v3/@claude-flow/cli/src/init/settings-generator.ts
index 9c70b1ef5b..106a03d530 100644
--- a/v3/@claude-flow/cli/src/init/settings-generator.ts
+++ b/v3/@claude-flow/cli/src/init/settings-generator.ts
@@ -187,12 +187,12 @@ function hookCmdEsm(script: string, subcommand: string): string {
/** Shorthand for CJS hook-handler commands */
function hookHandlerCmd(subcommand: string): string {
- return hookCmd('.claude/helpers/hook-handler.cjs', subcommand);
+ return hookCmd('"$CLAUDE_PROJECT_DIR/.claude/helpers/hook-handler.cjs"', subcommand);
}
/** Shorthand for ESM auto-memory-hook commands */
function autoMemoryCmd(subcommand: string): string {
- return hookCmdEsm('.claude/helpers/auto-memory-hook.mjs', subcommand);
+ return hookCmdEsm('"$CLAUDE_PROJECT_DIR/.claude/helpers/auto-memory-hook.mjs"', subcommand);
}
/**
@@ -207,7 +207,7 @@ function generateStatusLineConfig(_options: InitOptions): object {
// directly for statusline commands, and `cmd /c` blocks stdin forwarding.
return {
type: 'command',
- command: `node .claude/helpers/statusline.cjs`,
+ command: `node "$CLAUDE_PROJECT_DIR/.claude/helpers/statusline.cjs"`,
};
}
diff --git a/v3/package-lock.json b/v3/package-lock.json
index 76e941a090..8e7d55bb3e 100644
--- a/v3/package-lock.json
+++ b/v3/package-lock.json
@@ -1789,7 +1789,7 @@
}
},
"@claude-flow/cli": {
- "version": "3.5.14",
+ "version": "3.5.15",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {