@cloudpftc/opencode-orchestrator 3.5.15 → 3.6.1

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 (55) hide show
  1. package/.opencode/helpers/auto-memory-hook.mjs +104 -0
  2. package/.opencode/helpers/hook-handler.cjs +223 -0
  3. package/.opencode/helpers/intelligence.cjs +197 -0
  4. package/.opencode/helpers/memory.js +83 -0
  5. package/.opencode/helpers/post-commit +16 -0
  6. package/.opencode/helpers/pre-commit +26 -0
  7. package/.opencode/helpers/router.js +66 -0
  8. package/.opencode/helpers/session.js +127 -0
  9. package/.opencode/helpers/statusline.cjs +774 -0
  10. package/.opencode/settings.json +319 -0
  11. package/opencode.json +35 -78
  12. package/package.json +2 -6
  13. package/v3/@claude-flow/cli/README.md +391 -534
  14. package/v3/@claude-flow/cli/dist/src/commands/benchmark.js +2 -2
  15. package/v3/@claude-flow/cli/dist/src/commands/claims.js +1 -1
  16. package/v3/@claude-flow/cli/dist/src/commands/config.js +1 -1
  17. package/v3/@claude-flow/cli/dist/src/commands/daemon.js +3 -3
  18. package/v3/@claude-flow/cli/dist/src/commands/deployment.js +1 -1
  19. package/v3/@claude-flow/cli/dist/src/commands/doctor.js +1 -1
  20. package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +1 -1
  21. package/v3/@claude-flow/cli/dist/src/commands/hooks.js +1 -1
  22. package/v3/@claude-flow/cli/dist/src/commands/init.js +16 -16
  23. package/v3/@claude-flow/cli/dist/src/commands/neural.js +1 -1
  24. package/v3/@claude-flow/cli/dist/src/commands/performance.js +1 -1
  25. package/v3/@claude-flow/cli/dist/src/commands/plugins.js +1 -1
  26. package/v3/@claude-flow/cli/dist/src/commands/providers.js +1 -1
  27. package/v3/@claude-flow/cli/dist/src/commands/security.js +1 -1
  28. package/v3/@claude-flow/cli/dist/src/commands/start.js +10 -10
  29. package/v3/@claude-flow/cli/dist/src/commands/status.js +2 -2
  30. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +1 -1
  31. package/v3/@claude-flow/cli/dist/src/init/executor.js +181 -133
  32. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.d.ts +1 -1
  33. package/v3/@claude-flow/cli/dist/src/init/helpers-generator.js +20 -20
  34. package/v3/@claude-flow/cli/dist/src/init/index.d.ts +1 -1
  35. package/v3/@claude-flow/cli/dist/src/init/index.js +1 -1
  36. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.d.ts +2 -2
  37. package/v3/@claude-flow/cli/dist/src/init/mcp-generator.js +15 -15
  38. package/v3/@claude-flow/cli/dist/src/init/opencode-generator.d.ts +42 -0
  39. package/v3/@claude-flow/cli/dist/src/init/opencode-generator.js +107 -0
  40. package/v3/@claude-flow/cli/dist/src/init/settings-generator.d.ts +1 -1
  41. package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +18 -18
  42. package/v3/@claude-flow/cli/dist/src/init/{claudemd-generator.d.ts → skillmd-generator.d.ts} +8 -8
  43. package/v3/@claude-flow/cli/dist/src/init/{claudemd-generator.js → skillmd-generator.js} +9 -9
  44. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +1 -1
  45. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +39 -23
  46. package/v3/@claude-flow/cli/dist/src/init/types.d.ts +14 -10
  47. package/v3/@claude-flow/cli/dist/src/init/types.js +3 -3
  48. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +1 -1
  49. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +1 -1
  50. package/v3/@claude-flow/cli/dist/src/plugins/store/discovery.js +1 -1
  51. package/v3/@claude-flow/cli/dist/src/runtime/headless.js +3 -3
  52. package/v3/@claude-flow/cli/dist/src/services/claim-service.js +1 -1
  53. package/v3/@claude-flow/cli/dist/src/types.d.ts +1 -1
  54. package/v3/@claude-flow/cli/dist/src/types.js +1 -1
  55. package/v3/@claude-flow/cli/package.json +1 -1
@@ -0,0 +1,319 @@
1
+ {
2
+ "hooks": {
3
+ "PreToolUse": [
4
+ {
5
+ "matcher": "Bash",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" pre-bash",
10
+ "timeout": 5000
11
+ }
12
+ ]
13
+ },
14
+ {
15
+ "matcher": "Write|Edit|MultiEdit",
16
+ "hooks": [
17
+ {
18
+ "type": "command",
19
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" pre-edit",
20
+ "timeout": 5000
21
+ }
22
+ ]
23
+ }
24
+ ],
25
+ "PostToolUse": [
26
+ {
27
+ "matcher": "Write|Edit|MultiEdit",
28
+ "hooks": [
29
+ {
30
+ "type": "command",
31
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" post-edit",
32
+ "timeout": 10000
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "matcher": "Bash",
38
+ "hooks": [
39
+ {
40
+ "type": "command",
41
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" post-bash",
42
+ "timeout": 5000
43
+ }
44
+ ]
45
+ }
46
+ ],
47
+ "UserPromptSubmit": [
48
+ {
49
+ "hooks": [
50
+ {
51
+ "type": "command",
52
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" route",
53
+ "timeout": 10000
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ "SessionStart": [
59
+ {
60
+ "hooks": [
61
+ {
62
+ "type": "command",
63
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" session-restore",
64
+ "timeout": 15000
65
+ },
66
+ {
67
+ "type": "command",
68
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/auto-memory-hook.mjs\" import",
69
+ "timeout": 8000
70
+ }
71
+ ]
72
+ }
73
+ ],
74
+ "SessionEnd": [
75
+ {
76
+ "hooks": [
77
+ {
78
+ "type": "command",
79
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" session-end",
80
+ "timeout": 10000
81
+ }
82
+ ]
83
+ }
84
+ ],
85
+ "Stop": [
86
+ {
87
+ "hooks": [
88
+ {
89
+ "type": "command",
90
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/auto-memory-hook.mjs\" sync",
91
+ "timeout": 10000
92
+ }
93
+ ]
94
+ }
95
+ ],
96
+ "PreCompact": [
97
+ {
98
+ "matcher": "manual",
99
+ "hooks": [
100
+ {
101
+ "type": "command",
102
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" compact-manual"
103
+ },
104
+ {
105
+ "type": "command",
106
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" session-end",
107
+ "timeout": 5000
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "matcher": "auto",
113
+ "hooks": [
114
+ {
115
+ "type": "command",
116
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" compact-auto"
117
+ },
118
+ {
119
+ "type": "command",
120
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" session-end",
121
+ "timeout": 6000
122
+ }
123
+ ]
124
+ }
125
+ ],
126
+ "SubagentStart": [
127
+ {
128
+ "hooks": [
129
+ {
130
+ "type": "command",
131
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" status",
132
+ "timeout": 3000
133
+ }
134
+ ]
135
+ }
136
+ ],
137
+ "SubagentStop": [
138
+ {
139
+ "hooks": [
140
+ {
141
+ "type": "command",
142
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" post-task",
143
+ "timeout": 5000
144
+ }
145
+ ]
146
+ }
147
+ ],
148
+ "Notification": [
149
+ {
150
+ "hooks": [
151
+ {
152
+ "type": "command",
153
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/hook-handler.cjs\" notify",
154
+ "timeout": 3000
155
+ }
156
+ ]
157
+ }
158
+ ]
159
+ },
160
+ "statusLine": {
161
+ "type": "command",
162
+ "command": "node \"$OPENCODE_PROJECT_DIR/.opencode/helpers/statusline.cjs\""
163
+ },
164
+ "permissions": {
165
+ "allow": [
166
+ "Bash(npx @claude-flow*)",
167
+ "Bash(npx claude-flow*)",
168
+ "Bash(node .claude/*)",
169
+ "mcp__claude-flow__:*"
170
+ ],
171
+ "deny": [
172
+ "Read(./.env)",
173
+ "Read(./.env.*)"
174
+ ]
175
+ },
176
+ "attribution": {
177
+ "commit": "Co-Authored-By: opencode-orchestrator <noreply@cloudpftc.com>",
178
+ "pr": "🤖 Generated with [opencode-orchestrator](https://github.com/pedrocosta95/opencode-orchestrator)"
179
+ },
180
+ "env": {
181
+ "OPENCODE_EXPERIMENTAL_AGENT_TEAMS": "1",
182
+ "OPENCODE_V3_ENABLED": "true",
183
+ "OPENCODE_HOOKS_ENABLED": "true"
184
+ },
185
+ "opencode": {
186
+ "version": "3.0.0",
187
+ "enabled": true,
188
+ "platform": {
189
+ "os": "linux",
190
+ "arch": "x64",
191
+ "shell": "zsh"
192
+ },
193
+ "modelPreferences": {
194
+ "default": "claude-opus-4-6",
195
+ "routing": "claude-haiku-4-5-20251001"
196
+ },
197
+ "agentTeams": {
198
+ "enabled": true,
199
+ "teammateMode": "auto",
200
+ "taskListEnabled": true,
201
+ "mailboxEnabled": true,
202
+ "coordination": {
203
+ "autoAssignOnIdle": true,
204
+ "trainPatternsOnComplete": true,
205
+ "notifyLeadOnComplete": true,
206
+ "sharedMemoryNamespace": "agent-teams"
207
+ },
208
+ "hooks": {
209
+ "teammateIdle": {
210
+ "enabled": true,
211
+ "autoAssign": true,
212
+ "checkTaskList": true
213
+ },
214
+ "taskCompleted": {
215
+ "enabled": true,
216
+ "trainPatterns": true,
217
+ "notifyLead": true
218
+ }
219
+ }
220
+ },
221
+ "swarm": {
222
+ "topology": "hierarchical-mesh",
223
+ "maxAgents": 15
224
+ },
225
+ "memory": {
226
+ "backend": "hybrid",
227
+ "enableHNSW": true,
228
+ "learningBridge": {
229
+ "enabled": true
230
+ },
231
+ "memoryGraph": {
232
+ "enabled": true
233
+ },
234
+ "agentScopes": {
235
+ "enabled": true
236
+ }
237
+ },
238
+ "neural": {
239
+ "enabled": true
240
+ },
241
+ "daemon": {
242
+ "autoStart": true,
243
+ "workers": [
244
+ "map",
245
+ "audit",
246
+ "optimize",
247
+ "consolidate",
248
+ "testgaps",
249
+ "ultralearn",
250
+ "deepdive",
251
+ "document",
252
+ "refactor",
253
+ "benchmark"
254
+ ],
255
+ "schedules": {
256
+ "audit": {
257
+ "interval": "1h",
258
+ "priority": "critical"
259
+ },
260
+ "optimize": {
261
+ "interval": "30m",
262
+ "priority": "high"
263
+ },
264
+ "consolidate": {
265
+ "interval": "2h",
266
+ "priority": "low"
267
+ },
268
+ "document": {
269
+ "interval": "1h",
270
+ "priority": "normal",
271
+ "triggers": [
272
+ "adr-update",
273
+ "api-change"
274
+ ]
275
+ },
276
+ "deepdive": {
277
+ "interval": "4h",
278
+ "priority": "normal",
279
+ "triggers": [
280
+ "complex-change"
281
+ ]
282
+ },
283
+ "ultralearn": {
284
+ "interval": "1h",
285
+ "priority": "normal"
286
+ }
287
+ }
288
+ },
289
+ "learning": {
290
+ "enabled": true,
291
+ "autoTrain": true,
292
+ "patterns": [
293
+ "coordination",
294
+ "optimization",
295
+ "prediction"
296
+ ],
297
+ "retention": {
298
+ "shortTerm": "24h",
299
+ "longTerm": "30d"
300
+ }
301
+ },
302
+ "adr": {
303
+ "autoGenerate": true,
304
+ "directory": "/docs/adr",
305
+ "template": "madr"
306
+ },
307
+ "ddd": {
308
+ "trackDomains": true,
309
+ "validateBoundedContexts": true,
310
+ "directory": "/docs/ddd"
311
+ },
312
+ "security": {
313
+ "autoScan": true,
314
+ "scanOnEdit": true,
315
+ "cveCheck": true,
316
+ "threatModel": true
317
+ }
318
+ }
319
+ }
package/opencode.json CHANGED
@@ -1,84 +1,41 @@
1
1
  {
2
- "$schema": "https://opencode.dev/schema.json",
3
- "version": "1.0.0",
4
- "name": "opencode-orchestrator",
5
- "description": "OpenCode Orchestrator - Multi-agent coordination system",
2
+ "$schema": "https://opencode.ai/config.json",
6
3
  "mcp": {
7
- "servers": {
8
- "claude-flow": {
9
- "command": "npx",
10
- "args": ["claude-flow@v3alpha", "mcp", "start"],
11
- "description": "Claude Flow MCP server for memory, neural, and intelligence features"
12
- },
13
- "ruv-swarm": {
14
- "command": "npx",
15
- "args": ["ruv-swarm", "mcp", "start"],
16
- "description": "Ruv Swarm for hierarchical and mesh topology swarm coordination"
17
- },
18
- "flow-nexus": {
19
- "command": "npx",
20
- "args": ["flow-nexus@latest", "mcp", "start"],
21
- "description": "Flow Nexus platform integration"
22
- }
4
+ "claude-flow": {
5
+ "type": "local",
6
+ "command": ["npx", "-y", "claude-flow@v3alpha", "mcp", "start"],
7
+ "enabled": true
8
+ },
9
+ "ruv-swarm": {
10
+ "type": "local",
11
+ "command": ["npx", "-y", "ruv-swarm", "mcp", "start"],
12
+ "enabled": true
13
+ },
14
+ "flow-nexus": {
15
+ "type": "local",
16
+ "command": ["npx", "-y", "flow-nexus@latest", "mcp", "start"],
17
+ "enabled": true
23
18
  }
24
19
  },
25
- "skills": {
26
- "directories": [
27
- ".opencode/skills",
28
- ".claude/skills",
29
- ".agents/skills"
30
- ]
31
- },
32
- "agents": {
33
- "directory": ".opencode/agents",
34
- "definitions": [
35
- "coordinator.yaml",
36
- "researcher.yaml",
37
- "architect.yaml",
38
- "coder.yaml",
39
- "reviewer.yaml",
40
- "tester.yaml",
41
- "security-architect.yaml",
42
- "performance-engineer.yaml"
43
- ]
44
- },
45
- "permissions": {
46
- "allow": [
47
- "read",
48
- "write",
49
- "edit",
50
- "glob",
51
- "grep",
52
- "ast_grep_search",
53
- "ast_grep_replace",
54
- "bash",
55
- "lsp_goto_definition",
56
- "lsp_find_references",
57
- "lsp_rename",
58
- "lsp_diagnostics",
59
- "read",
60
- "question",
61
- "skill"
62
- ],
63
- "requireApproval": [
64
- "bash:rm -rf",
65
- "bash:git push",
66
- "bash:git force",
67
- "write:.env",
68
- "write:credentials"
69
- ]
70
- },
71
- "defaults": {
72
- "model": "sonnet",
73
- "maxTokens": 100000,
74
- "temperature": 0.7
20
+ "agent": {
21
+ "orchestrator": {
22
+ "description": "AI coding orchestrator that delegates tasks to specialist agents",
23
+ "model": "opencode-go/glm-5",
24
+ "mode": "primary"
25
+ }
75
26
  },
76
- "paths": {
77
- "workdir": ".",
78
- "src": "src",
79
- "tests": "tests",
80
- "docs": "docs",
81
- "config": "config",
82
- "scripts": "scripts"
27
+ "permission": {
28
+ "edit": "allow",
29
+ "bash": "allow",
30
+ "webfetch": "allow",
31
+ "read": "allow",
32
+ "grep": "allow",
33
+ "glob": "allow",
34
+ "list": "allow",
35
+ "skill": "allow",
36
+ "todowrite": "allow",
37
+ "todoread": "allow",
38
+ "websearch": "allow",
39
+ "question": "allow"
83
40
  }
84
- }
41
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudpftc/opencode-orchestrator",
3
- "version": "3.5.15",
3
+ "version": "3.6.1",
4
4
  "description": "OpenCode Orchestrator - Enterprise AI agent orchestration platform. 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",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "repository": {
16
16
  "type": "git",
17
- "url": "git+https://github.com/pedrocosta95/opencode-orchestrator.git"
17
+ "url": "https://github.com/ruvnet/claude-flow.git"
18
18
  },
19
19
  "files": [
20
20
  "bin/**",
@@ -80,10 +80,6 @@
80
80
  "engines": {
81
81
  "node": ">=20.0.0"
82
82
  },
83
- "repository": {
84
- "type": "git",
85
- "url": "https://github.com/ruvnet/claude-flow.git"
86
- },
87
83
  "keywords": [
88
84
  "ruvflow",
89
85
  "claude",