claude-flow 3.5.35 → 3.5.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.5.35",
3
+ "version": "3.5.36",
4
4
  "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",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -154,42 +154,23 @@ export function generateSettings(options) {
154
154
  */
155
155
  const IS_WINDOWS = process.platform === 'win32';
156
156
  /**
157
- * Platform-aware project dir variable reference.
158
- * Claude Code sets $CLAUDE_PROJECT_DIR (Unix) / %CLAUDE_PROJECT_DIR% (Windows)
159
- * as an environment variable before running hook commands.
160
- * Falls back to "." (cwd) when the variable is unset, since Claude Code
161
- * runs hooks from the project root directory.
162
- */
163
- function projectDirVar() {
164
- return IS_WINDOWS ? '%CLAUDE_PROJECT_DIR%' : '${CLAUDE_PROJECT_DIR:-.}';
165
- }
166
- /**
167
- * Build a cross-platform hook command.
168
- * On Windows, wraps with `cmd /c` to avoid PowerShell stdin/process issues
169
- * that cause "UserPromptSubmit hook error" in Claude Code.
157
+ * Build a hook command using relative paths.
158
+ * Claude Code always runs hooks from the project root directory,
159
+ * so relative paths like ".claude/helpers/..." work reliably across
160
+ * all platforms without depending on $CLAUDE_PROJECT_DIR expansion.
161
+ * On Windows, wraps with `cmd /c` to avoid PowerShell stdin issues.
170
162
  */
171
163
  function hookCmd(script, subcommand) {
172
164
  const cmd = `node ${script} ${subcommand}`.trim();
173
165
  return IS_WINDOWS ? `cmd /c ${cmd}` : cmd;
174
166
  }
175
- /**
176
- * Build a cross-platform hook command for ESM scripts (.mjs).
177
- */
178
- function hookCmdEsm(script, subcommand) {
179
- const cmd = `node ${script} ${subcommand}`.trim();
180
- return IS_WINDOWS ? `cmd /c ${cmd}` : cmd;
181
- }
182
167
  /** Shorthand for CJS hook-handler commands */
183
168
  function hookHandlerCmd(subcommand) {
184
- const dir = projectDirVar();
185
- const quote = IS_WINDOWS ? '' : '"';
186
- return hookCmd(`${quote}${dir}/.claude/helpers/hook-handler.cjs${quote}`, subcommand);
169
+ return hookCmd('.claude/helpers/hook-handler.cjs', subcommand);
187
170
  }
188
171
  /** Shorthand for ESM auto-memory-hook commands */
189
172
  function autoMemoryCmd(subcommand) {
190
- const dir = projectDirVar();
191
- const quote = IS_WINDOWS ? '' : '"';
192
- return hookCmdEsm(`${quote}${dir}/.claude/helpers/auto-memory-hook.mjs${quote}`, subcommand);
173
+ return hookCmd('.claude/helpers/auto-memory-hook.mjs', subcommand);
193
174
  }
194
175
  /**
195
176
  * Generate statusLine configuration for Claude Code
@@ -201,11 +182,9 @@ function generateStatusLineConfig(_options) {
201
182
  // The script runs after each assistant message (debounced 300ms).
202
183
  // NOTE: statusline must NOT use `cmd /c` — Claude Code manages its stdin
203
184
  // directly for statusline commands, and `cmd /c` blocks stdin forwarding.
204
- const dir = projectDirVar();
205
- const quote = IS_WINDOWS ? '' : '"';
206
185
  return {
207
186
  type: 'command',
208
- command: `node ${quote}${dir}/.claude/helpers/statusline.cjs${quote}`,
187
+ command: 'node .claude/helpers/statusline.cjs',
209
188
  };
210
189
  }
211
190
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.5.35",
3
+ "version": "3.5.36",
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",