@claude-flow/cli 3.1.0-alpha.17 → 3.1.0-alpha.19

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.
Files changed (2) hide show
  1. package/.claude/settings.json +41 -201
  2. package/package.json +1 -1
@@ -1,110 +1,18 @@
1
1
  {
2
2
  "env": {
3
- "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1"
3
+ "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1",
4
+ "CLAUDE_FLOW_V3_ENABLED": "true",
5
+ "CLAUDE_FLOW_HOOKS_ENABLED": "true"
4
6
  },
5
7
  "hooks": {
6
- "PreToolUse": [
7
- {
8
- "matcher": "^(Write|Edit|MultiEdit)$",
9
- "hooks": [
10
- {
11
- "type": "command",
12
- "command": "[ -n \"$TOOL_INPUT_file_path\" ] && npx @claude-flow/cli@latest hooks pre-edit --file \"$TOOL_INPUT_file_path\" 2>/dev/null || true",
13
- "timeout": 5000,
14
- "continueOnError": true
15
- }
16
- ]
17
- },
18
- {
19
- "matcher": "^Bash$",
20
- "hooks": [
21
- {
22
- "type": "command",
23
- "command": "[ -n \"$TOOL_INPUT_command\" ] && npx @claude-flow/cli@latest hooks pre-command --command \"$TOOL_INPUT_command\" 2>/dev/null || true",
24
- "timeout": 5000,
25
- "continueOnError": true
26
- }
27
- ]
28
- },
29
- {
30
- "matcher": "^Task$",
31
- "hooks": [
32
- {
33
- "type": "command",
34
- "command": "[ -n \"$TOOL_INPUT_prompt\" ] && npx @claude-flow/cli@latest hooks pre-task --task-id \"task-$(date +%s)\" --description \"$TOOL_INPUT_prompt\" 2>/dev/null || true",
35
- "timeout": 5000,
36
- "continueOnError": true
37
- }
38
- ]
39
- }
40
- ],
41
- "PostToolUse": [
42
- {
43
- "matcher": "^(Write|Edit|MultiEdit)$",
44
- "hooks": [
45
- {
46
- "type": "command",
47
- "command": "[ -n \"$TOOL_INPUT_file_path\" ] && npx @claude-flow/cli@latest hooks post-edit --file \"$TOOL_INPUT_file_path\" --success \"${TOOL_SUCCESS:-true}\" 2>/dev/null || true",
48
- "timeout": 5000,
49
- "continueOnError": true
50
- }
51
- ]
52
- },
53
- {
54
- "matcher": "^Bash$",
55
- "hooks": [
56
- {
57
- "type": "command",
58
- "command": "[ -n \"$TOOL_INPUT_command\" ] && npx @claude-flow/cli@latest hooks post-command --command \"$TOOL_INPUT_command\" --success \"${TOOL_SUCCESS:-true}\" 2>/dev/null || true",
59
- "timeout": 5000,
60
- "continueOnError": true
61
- }
62
- ]
63
- },
64
- {
65
- "matcher": "^Task$",
66
- "hooks": [
67
- {
68
- "type": "command",
69
- "command": "[ -n \"$TOOL_RESULT_agent_id\" ] && npx @claude-flow/cli@latest hooks post-task --task-id \"$TOOL_RESULT_agent_id\" --success \"${TOOL_SUCCESS:-true}\" 2>/dev/null || true",
70
- "timeout": 5000,
71
- "continueOnError": true
72
- }
73
- ]
74
- }
75
- ],
76
- "UserPromptSubmit": [
77
- {
78
- "hooks": [
79
- {
80
- "type": "command",
81
- "command": "[ -n \"$PROMPT\" ] && npx @claude-flow/cli@latest hooks route --task \"$PROMPT\" || true",
82
- "timeout": 5000,
83
- "continueOnError": true
84
- }
85
- ]
86
- }
87
- ],
88
8
  "SessionStart": [
89
9
  {
90
10
  "hooks": [
91
11
  {
92
12
  "type": "command",
93
- "command": "npx @claude-flow/cli@latest daemon start --quiet 2>/dev/null || true",
94
- "timeout": 5000,
95
- "continueOnError": true
96
- },
97
- {
98
- "type": "command",
99
- "command": "node ./node_modules/@claude-flow/cli/.claude/helpers/auto-memory-hook.mjs import 2>/dev/null || npx -y @claude-flow/cli@latest .claude/helpers/auto-memory-hook.mjs import 2>/dev/null || true",
13
+ "command": "node .claude/helpers/auto-memory-hook.mjs import",
100
14
  "timeout": 8000,
101
15
  "continueOnError": true
102
- },
103
- {
104
- "type": "command",
105
- "command": "[ -n \"$SESSION_ID\" ] && npx @claude-flow/cli@latest hooks session-restore --session-id \"$SESSION_ID\" 2>/dev/null || true",
106
- "timeout": 10000,
107
- "continueOnError": true
108
16
  }
109
17
  ]
110
18
  }
@@ -114,15 +22,9 @@
114
22
  "hooks": [
115
23
  {
116
24
  "type": "command",
117
- "command": "node ./node_modules/@claude-flow/cli/.claude/helpers/auto-memory-hook.mjs sync 2>/dev/null || true",
25
+ "command": "node .claude/helpers/auto-memory-hook.mjs sync",
118
26
  "timeout": 10000,
119
27
  "continueOnError": true
120
- },
121
- {
122
- "type": "command",
123
- "command": "npx @claude-flow/cli@latest hooks session-end --persist-memory true --export-patterns true 2>/dev/null || true",
124
- "timeout": 8000,
125
- "continueOnError": true
126
28
  }
127
29
  ]
128
30
  }
@@ -132,27 +34,9 @@
132
34
  "hooks": [
133
35
  {
134
36
  "type": "command",
135
- "command": "node ./node_modules/@claude-flow/cli/.claude/helpers/auto-memory-hook.mjs sync 2>/dev/null || true",
37
+ "command": "node .claude/helpers/auto-memory-hook.mjs sync",
136
38
  "timeout": 10000,
137
39
  "continueOnError": true
138
- },
139
- {
140
- "type": "command",
141
- "command": "npx @claude-flow/cli@latest hooks session-end --persist-memory true 2>/dev/null || true",
142
- "timeout": 8000,
143
- "continueOnError": true
144
- }
145
- ]
146
- }
147
- ],
148
- "Notification": [
149
- {
150
- "hooks": [
151
- {
152
- "type": "command",
153
- "command": "[ -n \"$NOTIFICATION_MESSAGE\" ] && npx @claude-flow/cli@latest memory store --namespace notifications --key \"notify-$(date +%s)\" --value \"$NOTIFICATION_MESSAGE\" 2>/dev/null || true",
154
- "timeout": 3000,
155
- "continueOnError": true
156
40
  }
157
41
  ]
158
42
  }
@@ -160,7 +44,7 @@
160
44
  },
161
45
  "statusLine": {
162
46
  "type": "command",
163
- "command": "npx @claude-flow/cli@latest hooks statusline 2>/dev/null || node .claude/helpers/statusline.cjs 2>/dev/null || echo \"▊ Claude Flow V3\"",
47
+ "command": "node .claude/helpers/statusline.cjs",
164
48
  "refreshMs": 5000,
165
49
  "enabled": true
166
50
  },
@@ -173,11 +57,23 @@
173
57
  "deny": []
174
58
  },
175
59
  "claudeFlow": {
176
- "version": "3.0.0",
60
+ "version": "3.1.0",
177
61
  "enabled": true,
178
62
  "modelPreferences": {
179
- "default": "claude-opus-4-5-20251101",
180
- "routing": "claude-3-5-haiku-20241022"
63
+ "default": "claude-opus-4-6",
64
+ "routing": "claude-haiku-4-5-20251001"
65
+ },
66
+ "agentTeams": {
67
+ "enabled": true,
68
+ "teammateMode": "auto",
69
+ "taskListEnabled": true,
70
+ "mailboxEnabled": true,
71
+ "coordination": {
72
+ "autoAssignOnIdle": true,
73
+ "trainPatternsOnComplete": true,
74
+ "notifyLeadOnComplete": true,
75
+ "sharedMemoryNamespace": "agent-teams"
76
+ }
181
77
  },
182
78
  "swarm": {
183
79
  "topology": "hierarchical-mesh",
@@ -185,87 +81,31 @@
185
81
  },
186
82
  "memory": {
187
83
  "backend": "hybrid",
188
- "enableHNSW": true
84
+ "enableHNSW": true,
85
+ "learningBridge": {
86
+ "enabled": true,
87
+ "sonaMode": "balanced",
88
+ "confidenceDecayRate": 0.005,
89
+ "accessBoostAmount": 0.03,
90
+ "consolidationThreshold": 10
91
+ },
92
+ "memoryGraph": {
93
+ "enabled": true,
94
+ "pageRankDamping": 0.85,
95
+ "communityAlgorithm": "label-propagation"
96
+ },
97
+ "agentScopes": {
98
+ "enabled": true,
99
+ "scopes": ["project", "local", "user"]
100
+ }
189
101
  },
190
102
  "neural": {
191
103
  "enabled": true
192
104
  },
193
- "daemon": {
194
- "autoStart": true,
195
- "workers": [
196
- "map",
197
- "audit",
198
- "optimize",
199
- "consolidate",
200
- "testgaps",
201
- "ultralearn",
202
- "deepdive",
203
- "document",
204
- "refactor",
205
- "benchmark"
206
- ],
207
- "schedules": {
208
- "audit": {
209
- "interval": "1h",
210
- "priority": "critical"
211
- },
212
- "optimize": {
213
- "interval": "30m",
214
- "priority": "high"
215
- },
216
- "consolidate": {
217
- "interval": "2h",
218
- "priority": "low"
219
- },
220
- "document": {
221
- "interval": "1h",
222
- "priority": "normal",
223
- "triggers": [
224
- "adr-update",
225
- "api-change"
226
- ]
227
- },
228
- "deepdive": {
229
- "interval": "4h",
230
- "priority": "normal",
231
- "triggers": [
232
- "complex-change"
233
- ]
234
- },
235
- "ultralearn": {
236
- "interval": "1h",
237
- "priority": "normal"
238
- }
239
- }
240
- },
241
- "learning": {
242
- "enabled": true,
243
- "autoTrain": true,
244
- "patterns": [
245
- "coordination",
246
- "optimization",
247
- "prediction"
248
- ],
249
- "retention": {
250
- "shortTerm": "24h",
251
- "longTerm": "30d"
252
- }
253
- },
254
- "adr": {
255
- "autoGenerate": true,
256
- "directory": "/docs/adr",
257
- "template": "madr"
258
- },
259
- "ddd": {
260
- "trackDomains": true,
261
- "validateBoundedContexts": true,
262
- "directory": "/docs/ddd"
263
- },
264
105
  "security": {
265
106
  "autoScan": true,
266
107
  "scanOnEdit": true,
267
- "cveCheck": true,
268
- "threatModel": true
108
+ "cveCheck": true
269
109
  }
270
110
  }
271
- }
111
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.1.0-alpha.17",
3
+ "version": "3.1.0-alpha.19",
4
4
  "type": "module",
5
5
  "description": "Claude Flow 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",