claude-flow 3.0.0-alpha.11 → 3.0.0-alpha.12

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/README.md ADDED
@@ -0,0 +1,76 @@
1
+ # claude-flow
2
+
3
+ **Multi-agent AI orchestration for Claude Code**
4
+
5
+ Deploy 54+ specialized agents in coordinated swarms with self-learning capabilities, fault-tolerant consensus, and enterprise-grade security.
6
+
7
+ ## Installation
8
+
9
+ Works with both **Node.js** and **Bun** runtimes.
10
+
11
+ ```bash
12
+ # With npm/npx (Node.js)
13
+ npm install claude-flow@v3alpha
14
+ npx claude-flow@v3alpha init
15
+
16
+ # With Bun (faster)
17
+ bun add claude-flow@v3alpha
18
+ bunx claude-flow@v3alpha init
19
+ ```
20
+
21
+ ## Quick Start
22
+
23
+ ```bash
24
+ # Initialize in your project
25
+ npx claude-flow@v3alpha init
26
+
27
+ # Start MCP server for Claude Code integration
28
+ npx claude-flow@v3alpha mcp start
29
+
30
+ # Run a task with agents
31
+ npx claude-flow@v3alpha --agent coder --task "Implement user authentication"
32
+
33
+ # Initialize a swarm
34
+ npx claude-flow@v3alpha swarm init --topology hierarchical
35
+
36
+ # Route tasks intelligently
37
+ npx claude-flow@v3alpha hooks route "Optimize database queries"
38
+ ```
39
+
40
+ ## Features
41
+
42
+ - **54+ Specialized Agents** - Coder, tester, reviewer, security, DevOps, and more
43
+ - **Swarm Coordination** - Queen-led hierarchy with 5 consensus algorithms
44
+ - **Self-Learning** - SONA neural architecture with <0.05ms adaptation
45
+ - **HNSW Memory** - 150x-12,500x faster vector search
46
+ - **Multi-Provider LLM** - Claude, GPT, Gemini, Cohere, Ollama with failover
47
+ - **Background Workers** - 12 auto-triggered workers for continuous optimization
48
+ - **Enterprise Security** - CVE-hardened with input validation and sandboxing
49
+
50
+ ## Programmatic Usage
51
+
52
+ ```typescript
53
+ import { createUnifiedSwarmCoordinator } from 'claude-flow';
54
+
55
+ const coordinator = createUnifiedSwarmCoordinator({
56
+ topology: { type: 'hierarchical', maxAgents: 15 },
57
+ consensus: { algorithm: 'raft' },
58
+ });
59
+
60
+ await coordinator.initialize();
61
+ await coordinator.spawnFullHierarchy();
62
+
63
+ const result = await coordinator.submitTask({
64
+ type: 'coding',
65
+ name: 'Implement feature',
66
+ priority: 'high',
67
+ });
68
+ ```
69
+
70
+ ## Documentation
71
+
72
+ See the [main repository](https://github.com/ruvnet/claude-flow) for full documentation.
73
+
74
+ ## License
75
+
76
+ MIT
package/bin/cli.js ADDED
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * claude-flow - CLI Entry Point
4
+ *
5
+ * Multi-agent AI orchestration for Claude Code
6
+ * Works with both Node.js and Bun runtimes
7
+ *
8
+ * Usage:
9
+ * npx claude-flow@v3alpha init
10
+ * npx claude-flow@v3alpha --agent coder --task "Implement feature"
11
+ * npx claude-flow@v3alpha swarm init --topology hierarchical
12
+ * npx claude-flow@v3alpha hooks route "task description"
13
+ *
14
+ * Or with Bun:
15
+ * bunx claude-flow@v3alpha init
16
+ */
17
+
18
+ // Detect runtime
19
+ const isBun = typeof Bun !== 'undefined';
20
+ const runtime = isBun ? 'bun' : 'node';
21
+
22
+ async function main() {
23
+ try {
24
+ const { CLI } = await import('@claude-flow/cli');
25
+ const cli = new CLI({ runtime });
26
+ await cli.run();
27
+ } catch (error) {
28
+ console.error('Fatal error:', error.message);
29
+ if (process.env.DEBUG) {
30
+ console.error(error.stack);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ }
35
+
36
+ main();
@@ -0,0 +1,40 @@
1
+ /**
2
+ * claude-flow - Multi-agent AI orchestration for Claude Code
3
+ *
4
+ * @packageDocumentation
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { createUnifiedSwarmCoordinator } from 'claude-flow';
9
+ *
10
+ * const coordinator = createUnifiedSwarmCoordinator({
11
+ * topology: { type: 'hierarchical', maxAgents: 15 },
12
+ * consensus: { algorithm: 'raft' },
13
+ * });
14
+ *
15
+ * await coordinator.initialize();
16
+ * await coordinator.spawnFullHierarchy();
17
+ * ```
18
+ */
19
+ export * from '@claude-flow/swarm';
20
+ export * from '@claude-flow/memory';
21
+ export * from '@claude-flow/hooks';
22
+ export * from '@claude-flow/neural';
23
+ export * from '@claude-flow/security';
24
+ export * from '@claude-flow/plugins';
25
+ export * from '@claude-flow/providers';
26
+ export * from '@claude-flow/embeddings';
27
+ export * from '@claude-flow/shared';
28
+ export { CLI } from '@claude-flow/cli';
29
+ export declare const VERSION = "3.0.0-alpha.1";
30
+ export declare const V3_FEATURES: {
31
+ readonly swarmCoordination: true;
32
+ readonly selfLearning: true;
33
+ readonly hnswMemory: true;
34
+ readonly multiProviderLLM: true;
35
+ readonly backgroundWorkers: true;
36
+ readonly securityHardened: true;
37
+ readonly consensusAlgorithms: readonly ["raft", "byzantine", "gossip", "crdt", "quorum"];
38
+ readonly supportedTopologies: readonly ["hierarchical", "mesh", "ring", "star", "adaptive"];
39
+ };
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AAGpC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAGvC,eAAO,MAAM,OAAO,kBAAkB,CAAC;AACvC,eAAO,MAAM,WAAW;;;;;;;;;CASd,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,43 @@
1
+ /**
2
+ * claude-flow - Multi-agent AI orchestration for Claude Code
3
+ *
4
+ * @packageDocumentation
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { createUnifiedSwarmCoordinator } from 'claude-flow';
9
+ *
10
+ * const coordinator = createUnifiedSwarmCoordinator({
11
+ * topology: { type: 'hierarchical', maxAgents: 15 },
12
+ * consensus: { algorithm: 'raft' },
13
+ * });
14
+ *
15
+ * await coordinator.initialize();
16
+ * await coordinator.spawnFullHierarchy();
17
+ * ```
18
+ */
19
+ // Re-export all modules for convenient access
20
+ export * from '@claude-flow/swarm';
21
+ export * from '@claude-flow/memory';
22
+ export * from '@claude-flow/hooks';
23
+ export * from '@claude-flow/neural';
24
+ export * from '@claude-flow/security';
25
+ export * from '@claude-flow/plugins';
26
+ export * from '@claude-flow/providers';
27
+ export * from '@claude-flow/embeddings';
28
+ export * from '@claude-flow/shared';
29
+ // Re-export CLI for programmatic use
30
+ export { CLI } from '@claude-flow/cli';
31
+ // Version info
32
+ export const VERSION = '3.0.0-alpha.1';
33
+ export const V3_FEATURES = {
34
+ swarmCoordination: true,
35
+ selfLearning: true,
36
+ hnswMemory: true,
37
+ multiProviderLLM: true,
38
+ backgroundWorkers: true,
39
+ securityHardened: true,
40
+ consensusAlgorithms: ['raft', 'byzantine', 'gossip', 'crdt', 'quorum'],
41
+ supportedTopologies: ['hierarchical', 'mesh', 'ring', 'star', 'adaptive'],
42
+ };
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,8CAA8C;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AAEpC,qCAAqC;AACrC,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,eAAe;AACf,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC;AACvC,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,iBAAiB,EAAE,IAAI;IACvB,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC;IACtE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;CACjE,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,71 @@
1
1
  {
2
2
  "name": "claude-flow",
3
- "version": "3.0.0-alpha.11",
4
- "description": "Claude Flow V3 - AI Agent Orchestration Platform",
5
- "main": "index.js",
3
+ "version": "3.0.0-alpha.12",
4
+ "description": "Multi-agent AI orchestration for Claude Code - swarm coordination, self-learning, enterprise security",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "claude-flow": "./bin/cli.js"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.d.ts",
14
+ "import": "./dist/index.js"
15
+ },
16
+ "./cli": {
17
+ "types": "./dist/cli.d.ts",
18
+ "import": "./dist/cli.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "bin",
24
+ "README.md"
25
+ ],
6
26
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
27
+ "build": "tsc"
8
28
  },
9
- "keywords": [],
10
- "author": "",
11
- "license": "ISC",
12
- "bin": {
13
- "claude-flow": "./node_modules/@claude-flow/cli/bin/cli.js"
29
+ "keywords": [
30
+ "claude",
31
+ "claude-code",
32
+ "ai-agents",
33
+ "multi-agent",
34
+ "swarm",
35
+ "orchestration",
36
+ "mcp",
37
+ "llm",
38
+ "anthropic"
39
+ ],
40
+ "author": "RuvNet",
41
+ "license": "MIT",
42
+ "repository": {
43
+ "type": "git",
44
+ "url": "git+https://github.com/ruvnet/claude-flow.git"
45
+ },
46
+ "bugs": {
47
+ "url": "https://github.com/ruvnet/claude-flow/issues"
48
+ },
49
+ "homepage": "https://github.com/ruvnet/claude-flow#readme",
50
+ "engines": {
51
+ "node": ">=18.0.0"
14
52
  },
15
53
  "dependencies": {
16
- "@claude-flow/cli": "3.0.0-alpha.11"
17
- }
54
+ "@claude-flow/cli": "alpha",
55
+ "@claude-flow/swarm": "^3.0.0-alpha.1",
56
+ "@claude-flow/memory": "^3.0.0-alpha.2",
57
+ "@claude-flow/hooks": "^3.0.0-alpha.2",
58
+ "@claude-flow/neural": "^3.0.0-alpha.2",
59
+ "@claude-flow/security": "^3.0.0-alpha.1",
60
+ "@claude-flow/plugins": "^3.0.0-alpha.2",
61
+ "@claude-flow/providers": "^3.0.0-alpha.1",
62
+ "@claude-flow/embeddings": "^3.0.0-alpha.1",
63
+ "@claude-flow/mcp": "^3.0.0-alpha.1",
64
+ "@claude-flow/shared": "^3.0.0-alpha.1"
65
+ },
66
+ "publishConfig": {
67
+ "access": "public",
68
+ "tag": "v3alpha"
69
+ },
70
+ "private": false
18
71
  }