claude-flow 3.7.0-alpha.74 → 3.7.0-alpha.76
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/.claude/commands/github/code-review-swarm.md +1 -1
- package/.claude/commands/github/release-manager.md +2 -2
- package/.claude/commands/github/release-swarm.md +1 -1
- package/.claude/commands/github/repo-architect.md +2 -2
- package/.claude/commands/github/swarm-pr.md +1 -1
- package/.claude/commands/github/workflow-automation.md +2 -2
- package/package.json +1 -1
- package/v3/@claude-flow/cli/dist/src/commands/init.js +14 -0
- package/v3/@claude-flow/cli/dist/src/init/executor.js +41 -0
- package/v3/@claude-flow/cli/dist/src/init/types.d.ts +23 -0
- package/v3/@claude-flow/cli/dist/src/init/types.js +18 -5
- package/v3/@claude-flow/cli/package.json +1 -1
|
@@ -310,9 +310,9 @@ jobs:
|
|
|
310
310
|
release-validation:
|
|
311
311
|
runs-on: ubuntu-latest
|
|
312
312
|
steps:
|
|
313
|
-
- uses: actions/checkout@
|
|
313
|
+
- uses: actions/checkout@v4
|
|
314
314
|
- name: Setup Node.js
|
|
315
|
-
uses: actions/setup-node@
|
|
315
|
+
uses: actions/setup-node@v4
|
|
316
316
|
with:
|
|
317
317
|
node-version: '20'
|
|
318
318
|
- name: Install and Test
|
|
@@ -153,8 +153,8 @@ jobs:
|
|
|
153
153
|
test:
|
|
154
154
|
runs-on: ubuntu-latest
|
|
155
155
|
steps:
|
|
156
|
-
- uses: actions/checkout@
|
|
157
|
-
- uses: actions/setup-node@
|
|
156
|
+
- uses: actions/checkout@v4
|
|
157
|
+
- uses: actions/setup-node@v4
|
|
158
158
|
with: { node-version: '20' }
|
|
159
159
|
- run: npm install && npm test`,
|
|
160
160
|
message: "ci: Standardize integration workflow across repositories",
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
swarm-analysis:
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
19
|
|
|
20
20
|
- name: Initialize Swarm
|
|
21
21
|
uses: ruvnet/swarm-action@v1
|
|
@@ -63,7 +63,7 @@ jobs:
|
|
|
63
63
|
detect-and-build:
|
|
64
64
|
runs-on: ubuntu-latest
|
|
65
65
|
steps:
|
|
66
|
-
- uses: actions/checkout@
|
|
66
|
+
- uses: actions/checkout@v4
|
|
67
67
|
|
|
68
68
|
- name: Detect Languages
|
|
69
69
|
id: detect
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-flow",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.76",
|
|
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",
|
|
@@ -146,6 +146,7 @@ const initAction = async (ctx) => {
|
|
|
146
146
|
const skipClaude = ctx.flags['skip-claude'];
|
|
147
147
|
const onlyClaude = ctx.flags['only-claude'];
|
|
148
148
|
const noGlobal = ctx.flags['no-global'];
|
|
149
|
+
const allAgents = ctx.flags['all-agents'];
|
|
149
150
|
const codexMode = ctx.flags.codex;
|
|
150
151
|
const dualMode = ctx.flags.dual;
|
|
151
152
|
const cwd = ctx.cwd;
|
|
@@ -204,6 +205,12 @@ const initAction = async (ctx) => {
|
|
|
204
205
|
if (onlyClaude) {
|
|
205
206
|
options.components.runtime = false;
|
|
206
207
|
}
|
|
208
|
+
// ADR-128 Phase 3 — restore full agent set (98 agents) when user explicitly
|
|
209
|
+
// requests it. Default is the ~24-agent substrate (core, consensus, swarm,
|
|
210
|
+
// sparc, testing). Pass --all-agents to get the old behavior.
|
|
211
|
+
if (allAgents) {
|
|
212
|
+
options.agents.all = true;
|
|
213
|
+
}
|
|
207
214
|
// #1744 — opt-out of the user-global ~/.claude/CLAUDE.md "Ruflo Integration"
|
|
208
215
|
// pointer block. Default behavior (off) preserves current install for users
|
|
209
216
|
// who rely on it; opting in via --no-global keeps the global file pristine.
|
|
@@ -969,6 +976,12 @@ export const initCommand = {
|
|
|
969
976
|
type: 'boolean',
|
|
970
977
|
default: false,
|
|
971
978
|
},
|
|
979
|
+
{
|
|
980
|
+
name: 'all-agents',
|
|
981
|
+
description: 'Install all agent categories (ADR-128: default is ~24 substrate agents; this restores the full set of ~89)',
|
|
982
|
+
type: 'boolean',
|
|
983
|
+
default: false,
|
|
984
|
+
},
|
|
972
985
|
],
|
|
973
986
|
examples: [
|
|
974
987
|
{ command: 'claude-flow init', description: 'Initialize with default configuration' },
|
|
@@ -990,6 +1003,7 @@ export const initCommand = {
|
|
|
990
1003
|
{ command: 'claude-flow init --codex', description: 'Initialize for OpenAI Codex (AGENTS.md)' },
|
|
991
1004
|
{ command: 'claude-flow init --codex --full', description: 'Codex init with all 137+ skills' },
|
|
992
1005
|
{ command: 'claude-flow init --dual', description: 'Initialize for both Claude Code and Codex' },
|
|
1006
|
+
{ command: 'claude-flow init --all-agents', description: 'Install all agent categories (~89 agents; ADR-128 opt-in)' },
|
|
993
1007
|
],
|
|
994
1008
|
action: initAction,
|
|
995
1009
|
};
|
|
@@ -67,6 +67,10 @@ const SKILLS_MAP = {
|
|
|
67
67
|
};
|
|
68
68
|
/**
|
|
69
69
|
* Commands to copy based on configuration
|
|
70
|
+
* ADR-128 Phase 4: every subdirectory under .claude/commands/ now has a
|
|
71
|
+
* corresponding key. The flow-nexus/ dir was deleted (belongs to the plugin).
|
|
72
|
+
* New substrate keys default true; opt-in keys (pair, training, stream-chain,
|
|
73
|
+
* truth, verify) default false per ADR-128 §Phase 3 opt-in rationale.
|
|
70
74
|
*/
|
|
71
75
|
const COMMANDS_MAP = {
|
|
72
76
|
core: ['claude-flow-help.md', 'claude-flow-swarm.md', 'claude-flow-memory.md'],
|
|
@@ -77,6 +81,19 @@ const COMMANDS_MAP = {
|
|
|
77
81
|
monitoring: ['monitoring'],
|
|
78
82
|
optimization: ['optimization'],
|
|
79
83
|
sparc: ['sparc'],
|
|
84
|
+
// ADR-128 Phase 4 promotions (previously orphaned)
|
|
85
|
+
agents: ['agents'],
|
|
86
|
+
coordination: ['coordination'],
|
|
87
|
+
hiveMind: ['hive-mind'],
|
|
88
|
+
memory: ['memory'],
|
|
89
|
+
swarm: ['swarm'],
|
|
90
|
+
workflows: ['workflows'],
|
|
91
|
+
// Opt-in categories (non-universal; default false in CommandsConfig)
|
|
92
|
+
pair: ['pair'],
|
|
93
|
+
training: ['training'],
|
|
94
|
+
streamChain: ['stream-chain'],
|
|
95
|
+
truth: ['truth'],
|
|
96
|
+
verify: ['verify'],
|
|
80
97
|
};
|
|
81
98
|
/**
|
|
82
99
|
* Agents to copy based on configuration
|
|
@@ -869,6 +886,30 @@ async function copyCommands(targetDir, options, result) {
|
|
|
869
886
|
commandsToCopy.push(...COMMANDS_MAP.optimization);
|
|
870
887
|
if (commandsConfig.sparc)
|
|
871
888
|
commandsToCopy.push(...COMMANDS_MAP.sparc);
|
|
889
|
+
// ADR-128 Phase 4 substrate promotions
|
|
890
|
+
if (commandsConfig.agents)
|
|
891
|
+
commandsToCopy.push(...(COMMANDS_MAP.agents || []));
|
|
892
|
+
if (commandsConfig.coordination)
|
|
893
|
+
commandsToCopy.push(...(COMMANDS_MAP.coordination || []));
|
|
894
|
+
if (commandsConfig.hiveMind)
|
|
895
|
+
commandsToCopy.push(...(COMMANDS_MAP.hiveMind || []));
|
|
896
|
+
if (commandsConfig.memory)
|
|
897
|
+
commandsToCopy.push(...(COMMANDS_MAP.memory || []));
|
|
898
|
+
if (commandsConfig.swarm)
|
|
899
|
+
commandsToCopy.push(...(COMMANDS_MAP.swarm || []));
|
|
900
|
+
if (commandsConfig.workflows)
|
|
901
|
+
commandsToCopy.push(...(COMMANDS_MAP.workflows || []));
|
|
902
|
+
// ADR-128 Phase 4 opt-in categories
|
|
903
|
+
if (commandsConfig.pair)
|
|
904
|
+
commandsToCopy.push(...(COMMANDS_MAP.pair || []));
|
|
905
|
+
if (commandsConfig.training)
|
|
906
|
+
commandsToCopy.push(...(COMMANDS_MAP.training || []));
|
|
907
|
+
if (commandsConfig.streamChain)
|
|
908
|
+
commandsToCopy.push(...(COMMANDS_MAP.streamChain || []));
|
|
909
|
+
if (commandsConfig.truth)
|
|
910
|
+
commandsToCopy.push(...(COMMANDS_MAP.truth || []));
|
|
911
|
+
if (commandsConfig.verify)
|
|
912
|
+
commandsToCopy.push(...(COMMANDS_MAP.verify || []));
|
|
872
913
|
}
|
|
873
914
|
// Find source commands directory
|
|
874
915
|
const sourceCommandsDir = findSourceDir('commands', options.sourceBaseDir);
|
|
@@ -81,6 +81,7 @@ export interface SkillsConfig {
|
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Commands configuration
|
|
84
|
+
* ADR-128 Phase 4: new keys for promoted substrate dirs and opt-in categories.
|
|
84
85
|
*/
|
|
85
86
|
export interface CommandsConfig {
|
|
86
87
|
/** Include core commands */
|
|
@@ -99,6 +100,28 @@ export interface CommandsConfig {
|
|
|
99
100
|
optimization: boolean;
|
|
100
101
|
/** Include SPARC commands */
|
|
101
102
|
sparc: boolean;
|
|
103
|
+
/** Include agents commands */
|
|
104
|
+
agents?: boolean;
|
|
105
|
+
/** Include coordination commands */
|
|
106
|
+
coordination?: boolean;
|
|
107
|
+
/** Include hive-mind commands */
|
|
108
|
+
hiveMind?: boolean;
|
|
109
|
+
/** Include memory commands */
|
|
110
|
+
memory?: boolean;
|
|
111
|
+
/** Include swarm commands */
|
|
112
|
+
swarm?: boolean;
|
|
113
|
+
/** Include workflows commands */
|
|
114
|
+
workflows?: boolean;
|
|
115
|
+
/** Include pair programming commands (opt-in) */
|
|
116
|
+
pair?: boolean;
|
|
117
|
+
/** Include training commands (opt-in) */
|
|
118
|
+
training?: boolean;
|
|
119
|
+
/** Include stream-chain commands (opt-in) */
|
|
120
|
+
streamChain?: boolean;
|
|
121
|
+
/** Include truth commands (opt-in) */
|
|
122
|
+
truth?: boolean;
|
|
123
|
+
/** Include verify commands (opt-in) */
|
|
124
|
+
verify?: boolean;
|
|
102
125
|
/** Include all commands */
|
|
103
126
|
all: boolean;
|
|
104
127
|
}
|
|
@@ -89,21 +89,34 @@ export const DEFAULT_INIT_OPTIONS = {
|
|
|
89
89
|
monitoring: true,
|
|
90
90
|
optimization: true,
|
|
91
91
|
sparc: true,
|
|
92
|
+
// ADR-128 Phase 4 substrate promotions (default true — core swarm substrate)
|
|
93
|
+
agents: true,
|
|
94
|
+
coordination: true,
|
|
95
|
+
hiveMind: true,
|
|
96
|
+
memory: true,
|
|
97
|
+
swarm: true,
|
|
98
|
+
workflows: true,
|
|
99
|
+
// ADR-128 Phase 4 opt-in (default false — not universal)
|
|
100
|
+
pair: false,
|
|
101
|
+
training: false,
|
|
102
|
+
streamChain: false,
|
|
103
|
+
truth: false,
|
|
104
|
+
verify: false,
|
|
92
105
|
all: false,
|
|
93
106
|
},
|
|
94
107
|
agents: {
|
|
95
108
|
core: true,
|
|
96
109
|
consensus: true,
|
|
97
|
-
github:
|
|
98
|
-
hiveMind:
|
|
110
|
+
github: false, // ADR-128 Phase 3: opt-in via --agents=github or --all-agents
|
|
111
|
+
hiveMind: false, // ADR-128 Phase 3: opt-in via --all-agents
|
|
99
112
|
sparc: true,
|
|
100
113
|
swarm: true,
|
|
101
114
|
browser: true,
|
|
102
|
-
v3:
|
|
103
|
-
optimization:
|
|
115
|
+
v3: false, // ADR-128 Phase 3: opt-in via --agents=v3 or --all-agents
|
|
116
|
+
optimization: false, // ADR-128 Phase 3: opt-in via --all-agents
|
|
104
117
|
testing: true,
|
|
105
118
|
dualMode: false, // Optional: enable with --dual flag
|
|
106
|
-
all: true
|
|
119
|
+
all: false, // ADR-128 Phase 3: was true; use --all-agents to restore
|
|
107
120
|
},
|
|
108
121
|
statusline: {
|
|
109
122
|
enabled: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.76",
|
|
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",
|