claude-flow 3.7.0-alpha.19 → 3.7.0-alpha.20
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.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.20",
|
|
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",
|
|
@@ -254,6 +254,49 @@ async function checkAIDefence() {
|
|
|
254
254
|
};
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* ADR-097 Phase 4: federation peer-state surface for doctor.
|
|
259
|
+
*
|
|
260
|
+
* Probes the federation plugin loadability + asserts the breaker entity
|
|
261
|
+
* layer is present in the installed version. Without the plugin
|
|
262
|
+
* installed this is a "not configured" pass — federation is opt-in.
|
|
263
|
+
*
|
|
264
|
+
* Live coordinator state (per-peer counts) requires a running MCP server
|
|
265
|
+
* with `federation_init` called; operators inspect that via the
|
|
266
|
+
* `federation_breaker_status` MCP tool, not the doctor (which is a
|
|
267
|
+
* one-shot CLI process with no coordinator session).
|
|
268
|
+
*/
|
|
269
|
+
async function checkFederationBreaker() {
|
|
270
|
+
try {
|
|
271
|
+
// Optional plugin — not a hard dep of @claude-flow/cli. Build the
|
|
272
|
+
// module specifier dynamically so TypeScript cannot statically
|
|
273
|
+
// resolve it (which would emit TS2307); at runtime the import
|
|
274
|
+
// either resolves (plugin installed) or throws (handled below).
|
|
275
|
+
const specifier = ['@claude-flow', 'plugin-agent-federation'].join('/');
|
|
276
|
+
const mod = await import(specifier);
|
|
277
|
+
if (!mod.FederationNodeState) {
|
|
278
|
+
return {
|
|
279
|
+
name: 'Federation Breaker',
|
|
280
|
+
status: 'warn',
|
|
281
|
+
message: '@claude-flow/plugin-agent-federation loaded but FederationNodeState export missing — version older than ADR-097 Phase 2',
|
|
282
|
+
fix: 'Upgrade: npm install @claude-flow/plugin-agent-federation@alpha',
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
name: 'Federation Breaker',
|
|
287
|
+
status: 'pass',
|
|
288
|
+
message: 'ADR-097 breaker loadable — federation_breaker_status / federation_evict / federation_reactivate MCP tools available',
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
catch {
|
|
292
|
+
return {
|
|
293
|
+
name: 'Federation Breaker',
|
|
294
|
+
status: 'pass',
|
|
295
|
+
message: 'Federation plugin not installed (optional) — install only if you need cross-installation peering',
|
|
296
|
+
fix: 'npm install --save @claude-flow/plugin-agent-federation@alpha',
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
}
|
|
257
300
|
// Check MCP servers
|
|
258
301
|
async function checkMcpServers() {
|
|
259
302
|
const home = process.env.HOME || process.env.USERPROFILE || '';
|
|
@@ -702,6 +745,7 @@ export const doctorCommand = {
|
|
|
702
745
|
checkBuildTools,
|
|
703
746
|
checkAgenticFlow,
|
|
704
747
|
checkEncryptionAtRest, // ADR-096 Phase 5
|
|
748
|
+
checkFederationBreaker, // ADR-097 Phase 4
|
|
705
749
|
];
|
|
706
750
|
const componentMap = {
|
|
707
751
|
'version': checkVersionFreshness,
|
|
@@ -720,6 +764,7 @@ export const doctorCommand = {
|
|
|
720
764
|
'typescript': checkBuildTools,
|
|
721
765
|
'agentic-flow': checkAgenticFlow,
|
|
722
766
|
'encryption': checkEncryptionAtRest, // ADR-096 Phase 5
|
|
767
|
+
'federation': checkFederationBreaker, // ADR-097 Phase 4
|
|
723
768
|
};
|
|
724
769
|
let checksToRun = allChecks;
|
|
725
770
|
if (component && componentMap[component]) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claude-flow/cli",
|
|
3
|
-
"version": "3.7.0-alpha.
|
|
3
|
+
"version": "3.7.0-alpha.20",
|
|
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",
|