claude-flow 3.32.34 → 3.32.35
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 +1 -1
- package/v3/@claude-flow/cli/catalog-manifest.json +4 -4
- package/v3/@claude-flow/cli/dist/src/commands/agent.js +49 -1
- package/v3/@claude-flow/cli/dist/src/commands/hooks.js +24 -0
- package/v3/@claude-flow/cli/dist/src/commands/metaharness.js +4 -0
- package/v3/@claude-flow/cli/dist/src/commands/swarm.js +61 -5
- package/v3/@claude-flow/cli/dist/src/config-adapter.js +1 -0
- package/v3/@claude-flow/cli/dist/src/index.js +3 -2
- package/v3/@claude-flow/cli/dist/src/mcp-tools/agent-tools.js +10 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +86 -52
- package/v3/@claude-flow/cli/dist/src/mcp-tools/memory-tools.js +14 -2
- package/v3/@claude-flow/cli/dist/src/mcp-tools/metaharness-tools.js +7 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.d.ts +16 -0
- package/v3/@claude-flow/cli/dist/src/mcp-tools/swarm-tools.js +172 -7
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +9 -1
- package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +66 -19
- package/v3/@claude-flow/cli/dist/src/services/daemon-autostart.js +7 -4
- package/v3/@claude-flow/cli/dist/src/services/flywheel-receipt.d.ts +3 -0
- package/v3/@claude-flow/cli/dist/src/services/flywheel-receipt.js +1 -0
- package/v3/@claude-flow/cli/dist/src/services/harness-flywheel-runtime.d.ts +6 -0
- package/v3/@claude-flow/cli/dist/src/services/harness-flywheel-runtime.js +19 -19
- package/v3/@claude-flow/cli/dist/src/services/harness-flywheel.d.ts +2 -0
- package/v3/@claude-flow/cli/dist/src/services/harness-flywheel.js +1 -0
- package/v3/@claude-flow/cli/dist/src/services/harness-project-anchor.d.ts +23 -0
- package/v3/@claude-flow/cli/dist/src/services/harness-project-anchor.js +129 -0
- package/v3/@claude-flow/cli/dist/src/services/learned-routing.d.ts +34 -0
- package/v3/@claude-flow/cli/dist/src/services/learned-routing.js +85 -0
- package/v3/@claude-flow/cli/dist/src/services/pheromone-adaptive.d.ts +71 -0
- package/v3/@claude-flow/cli/dist/src/services/pheromone-adaptive.js +214 -0
- package/v3/@claude-flow/cli/dist/src/services/worker-daemon.js +4 -1
- package/v3/@claude-flow/cli/package.json +1 -1
- package/v3/@claude-flow/shared/dist/core/config/loader.js +1 -1
- package/v3/@claude-flow/shared/dist/core/config/schema.d.ts +12 -12
- package/v3/@claude-flow/shared/dist/core/config/schema.js +1 -1
- package/v3/@claude-flow/shared/dist/core/interfaces/coordinator.interface.d.ts +1 -1
- package/v3/@claude-flow/shared/dist/types/swarm.types.js +18 -0
|
@@ -147,7 +147,7 @@ export declare const TaskConfigSchema: z.ZodObject<{
|
|
|
147
147
|
* Swarm configuration schema
|
|
148
148
|
*/
|
|
149
149
|
export declare const SwarmConfigSchema: z.ZodObject<{
|
|
150
|
-
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "hierarchical-mesh"]>;
|
|
150
|
+
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
151
151
|
maxAgents: z.ZodDefault<z.ZodNumber>;
|
|
152
152
|
autoScale: z.ZodOptional<z.ZodObject<{
|
|
153
153
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -211,7 +211,7 @@ export declare const SwarmConfigSchema: z.ZodObject<{
|
|
|
211
211
|
}>>;
|
|
212
212
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
213
213
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
214
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
215
215
|
maxAgents: number;
|
|
216
216
|
metadata?: Record<string, unknown> | undefined;
|
|
217
217
|
autoScale?: {
|
|
@@ -235,7 +235,7 @@ export declare const SwarmConfigSchema: z.ZodObject<{
|
|
|
235
235
|
flushIntervalMs: number;
|
|
236
236
|
} | undefined;
|
|
237
237
|
}, {
|
|
238
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
238
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
239
239
|
maxAgents?: number | undefined;
|
|
240
240
|
metadata?: Record<string, unknown> | undefined;
|
|
241
241
|
autoScale?: {
|
|
@@ -819,7 +819,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
819
819
|
version?: string | undefined;
|
|
820
820
|
}>>;
|
|
821
821
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
822
|
-
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "hierarchical-mesh"]>;
|
|
822
|
+
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
823
823
|
maxAgents: z.ZodDefault<z.ZodNumber>;
|
|
824
824
|
autoScale: z.ZodOptional<z.ZodObject<{
|
|
825
825
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -883,7 +883,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
883
883
|
}>>;
|
|
884
884
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
885
885
|
}, "strip", z.ZodTypeAny, {
|
|
886
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
886
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
887
887
|
maxAgents: number;
|
|
888
888
|
metadata?: Record<string, unknown> | undefined;
|
|
889
889
|
autoScale?: {
|
|
@@ -907,7 +907,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
907
907
|
flushIntervalMs: number;
|
|
908
908
|
} | undefined;
|
|
909
909
|
}, {
|
|
910
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
910
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
911
911
|
maxAgents?: number | undefined;
|
|
912
912
|
metadata?: Record<string, unknown> | undefined;
|
|
913
913
|
autoScale?: {
|
|
@@ -1205,7 +1205,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1205
1205
|
version?: string | undefined;
|
|
1206
1206
|
}>>;
|
|
1207
1207
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
1208
|
-
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "hierarchical-mesh"]>;
|
|
1208
|
+
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
1209
1209
|
maxAgents: z.ZodDefault<z.ZodNumber>;
|
|
1210
1210
|
autoScale: z.ZodOptional<z.ZodObject<{
|
|
1211
1211
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1269,7 +1269,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1269
1269
|
}>>;
|
|
1270
1270
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1271
1271
|
}, "strip", z.ZodTypeAny, {
|
|
1272
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
1272
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
1273
1273
|
maxAgents: number;
|
|
1274
1274
|
metadata?: Record<string, unknown> | undefined;
|
|
1275
1275
|
autoScale?: {
|
|
@@ -1293,7 +1293,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1293
1293
|
flushIntervalMs: number;
|
|
1294
1294
|
} | undefined;
|
|
1295
1295
|
}, {
|
|
1296
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
1296
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
1297
1297
|
maxAgents?: number | undefined;
|
|
1298
1298
|
metadata?: Record<string, unknown> | undefined;
|
|
1299
1299
|
autoScale?: {
|
|
@@ -1591,7 +1591,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1591
1591
|
version?: string | undefined;
|
|
1592
1592
|
}>>;
|
|
1593
1593
|
swarm: z.ZodOptional<z.ZodObject<{
|
|
1594
|
-
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "hierarchical-mesh"]>;
|
|
1594
|
+
topology: z.ZodEnum<["hierarchical", "mesh", "ring", "star", "adaptive", "pheromone-adaptive", "hierarchical-mesh"]>;
|
|
1595
1595
|
maxAgents: z.ZodDefault<z.ZodNumber>;
|
|
1596
1596
|
autoScale: z.ZodOptional<z.ZodObject<{
|
|
1597
1597
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1655,7 +1655,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1655
1655
|
}>>;
|
|
1656
1656
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1657
1657
|
}, "strip", z.ZodTypeAny, {
|
|
1658
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
1658
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
1659
1659
|
maxAgents: number;
|
|
1660
1660
|
metadata?: Record<string, unknown> | undefined;
|
|
1661
1661
|
autoScale?: {
|
|
@@ -1679,7 +1679,7 @@ export declare const SystemConfigSchema: z.ZodObject<{
|
|
|
1679
1679
|
flushIntervalMs: number;
|
|
1680
1680
|
} | undefined;
|
|
1681
1681
|
}, {
|
|
1682
|
-
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive";
|
|
1682
|
+
topology: "hierarchical-mesh" | "mesh" | "hierarchical" | "ring" | "star" | "adaptive" | "pheromone-adaptive";
|
|
1683
1683
|
maxAgents?: number | undefined;
|
|
1684
1684
|
metadata?: Record<string, unknown> | undefined;
|
|
1685
1685
|
autoScale?: {
|
|
@@ -49,7 +49,7 @@ export const TaskConfigSchema = z.object({
|
|
|
49
49
|
* Swarm configuration schema
|
|
50
50
|
*/
|
|
51
51
|
export const SwarmConfigSchema = z.object({
|
|
52
|
-
topology: z.enum(['hierarchical', 'mesh', 'ring', 'star', 'adaptive', 'hierarchical-mesh']),
|
|
52
|
+
topology: z.enum(['hierarchical', 'mesh', 'ring', 'star', 'adaptive', 'pheromone-adaptive', 'hierarchical-mesh']),
|
|
53
53
|
maxAgents: z.number().int().positive().default(20),
|
|
54
54
|
autoScale: z.object({
|
|
55
55
|
enabled: z.boolean().default(false),
|
|
@@ -8,7 +8,7 @@ import type { IAgent, IAgentConfig } from './agent.interface.js';
|
|
|
8
8
|
/**
|
|
9
9
|
* Swarm topology types
|
|
10
10
|
*/
|
|
11
|
-
export type SwarmTopology = 'hierarchical' | 'mesh' | 'ring' | 'star' | 'adaptive' | 'hierarchical-mesh';
|
|
11
|
+
export type SwarmTopology = 'hierarchical' | 'mesh' | 'ring' | 'star' | 'adaptive' | 'pheromone-adaptive' | 'hierarchical-mesh';
|
|
12
12
|
/**
|
|
13
13
|
* Coordination status
|
|
14
14
|
*/
|
|
@@ -53,6 +53,24 @@ export const TopologyPresets = {
|
|
|
53
53
|
retryPolicy: { maxRetries: 5, backoffMs: 500 }
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
+
'pheromone-adaptive': {
|
|
57
|
+
topology: 'pheromone-adaptive',
|
|
58
|
+
autoScale: {
|
|
59
|
+
enabled: true,
|
|
60
|
+
minAgents: 3,
|
|
61
|
+
maxAgents: 20,
|
|
62
|
+
scaleUpThreshold: 0.8,
|
|
63
|
+
scaleDownThreshold: 0.3
|
|
64
|
+
},
|
|
65
|
+
coordination: {
|
|
66
|
+
consensusRequired: true,
|
|
67
|
+
timeoutMs: 10000,
|
|
68
|
+
retryPolicy: { maxRetries: 5, backoffMs: 500 }
|
|
69
|
+
},
|
|
70
|
+
metadata: {
|
|
71
|
+
apsc: { dryRun: true, minActiveAgents: 3, minSamples: 3 }
|
|
72
|
+
}
|
|
73
|
+
},
|
|
56
74
|
'hierarchical-mesh': {
|
|
57
75
|
topology: 'hierarchical-mesh',
|
|
58
76
|
coordination: {
|