claude-flow 3.5.9 → 3.5.11

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.9",
3
+ "version": "3.5.11",
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",
@@ -340,10 +340,31 @@ function generateHooksConfig(config) {
340
340
  },
341
341
  ];
342
342
  }
343
- // NOTE: SubagentStart and SubagentEnd are NOT valid Claude Code hook events.
344
- // Valid events: PreToolUse, PostToolUse, UserPromptSubmit, SessionStart,
345
- // SessionEnd, Stop, PreCompact, Notification.
346
- // Agent lifecycle tracking is handled via PostToolUse(Task) and claudeFlow.agentTeams.hooks.
343
+ // SubagentStart status update when a sub-agent is spawned
344
+ hooks.SubagentStart = [
345
+ {
346
+ hooks: [
347
+ {
348
+ type: 'command',
349
+ command: hookHandlerCmd('status'),
350
+ timeout: 3000,
351
+ },
352
+ ],
353
+ },
354
+ ];
355
+ // SubagentStop — track agent completion for metrics
356
+ // NOTE: The valid event is "SubagentStop" (not "SubagentEnd")
357
+ hooks.SubagentStop = [
358
+ {
359
+ hooks: [
360
+ {
361
+ type: 'command',
362
+ command: hookHandlerCmd('post-task'),
363
+ timeout: 5000,
364
+ },
365
+ ],
366
+ },
367
+ ];
347
368
  // Notification — capture Claude Code notifications for logging
348
369
  if (config.notification) {
349
370
  hooks.Notification = [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.5.9",
3
+ "version": "3.5.11",
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",