🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Checkpoint: File edits
rUvd198e40d0a3d
diff --git a/package-lock.json b/package-lock.jsonindex 151d76548c..b455199846 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "claude-flow-v3",- "version": "3.0.0-alpha.45",+ "version": "3.0.0-alpha.46","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "claude-flow-v3",- "version": "3.0.0-alpha.45",+ "version": "3.0.0-alpha.46","license": "MIT","dependencies": {"agentdb": "alpha",diff --git a/package.json b/package.jsonindex b7c69024a4..0237f70e4c 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "claude-flow",- "version": "3.0.0-alpha.45",+ "version": "3.0.0-alpha.46","description": "Claude Flow V3 - Domain-Driven Design Architecture with 15-Agent Swarm Coordination","main": "dist/index.js","type": "module",diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.jsonindex 4c5653b6a1..81f191d5a6 100644--- a/v3/@claude-flow/cli/package.json+++ b/v3/@claude-flow/cli/package.json@@ -1,6 +1,6 @@{"name": "@claude-flow/cli",- "version": "3.0.0-alpha.94",+ "version": "3.0.0-alpha.95","type": "module","description": "CLI module - command parsing, prompts, output formatting","main": "dist/src/index.js",diff --git a/v3/implementation/adrs/ADR-005-implementation-summary.md b/v3/implementation/adrs/ADR-005-implementation-summary.mdindex c68960e108..08fe3de943 100644--- a/v3/implementation/adrs/ADR-005-implementation-summary.md+++ b/v3/implementation/adrs/ADR-005-implementation-summary.md@@ -526,3 +526,96 @@ node bin/cli.js hive-mind broadcast -m "Hello" # ✅ Works| alpha.7 | 2026-01-07 | Initial CLI MCP tool integration || alpha.89 | 2026-01-13 | Mac settings validation fix || alpha.90 | 2026-01-13 | Init path calculation fix (empty folders bug) |+| alpha.91-92 | 2026-01-13 | `hierarchical-mesh` topology validation + CLAUDE.md template update |+| alpha.93 | 2026-01-13 | README.md sync with prepublishOnly script |+| alpha.94-95 | 2026-01-13 | MCP auto-restart for stdio transport |++---++## Bug Fixes (2026-01-13 Continued)++### Bug Fix #5: `hierarchical-mesh` Topology Validation (alpha.91-92)++**Issue:** `swarm init --topology hierarchical-mesh` returned "Invalid value for --topology"++**Root Cause:** `hierarchical-mesh` wasn't included in the valid topology union types across multiple files++**Fix:** Added `hierarchical-mesh` to 4 files:+- `types.ts:104` - SwarmConfig topology union type+- `swarm.ts` - TOPOLOGIES array+- `coordination-tools.ts` - TopologyConfig interface/enum+- `config-adapter.ts` - normalizeTopology/denormalizeTopology functions++**CLAUDE.md Template Update:** Updated generated CLAUDE.md to document all 6 valid topologies:+- `hierarchical` - Queen controls workers (anti-drift for small teams)+- `hierarchical-mesh` - V3 queen + peer communication (recommended for 10+ agents)+- `mesh` - Fully connected peer network+- `ring` - Circular communication pattern+- `star` - Central coordinator with spokes+- `hybrid` - Dynamic topology switching++### Bug Fix #6: README.md npm Sync (alpha.93)++**Issue:** npm package README showed outdated CLI-specific README instead of root README++**Root Cause:** npm doesn't follow symlinks when packing++**Fix:** Added `prepublishOnly` script to `package.json`:+```json+"prepublishOnly": "cp ../../../README.md ./README.md"+```++This automatically copies the root README.md (51.9kB) before every `npm publish`.++### Bug Fix #7: MCP Auto-Restart for stdio Transport (alpha.94-95)++**Issue:** MCP server showed "already running (PID: xxxx)" error even when the process was stale/unresponsive, preventing restart++**Root Cause:**+1. For stdio transport, health check only verified process existence (not responsiveness)+2. Flag defaults weren't being applied correctly (used `as` instead of `??`)++**Fix (2 parts):**++1. **Default value handling** - Changed flag access to use nullish coalescing:+```typescript+// Before (broken):+const transport = ctx.flags.transport as 'stdio' | 'http' | 'websocket';++// After (fixed):+const transport = (ctx.flags.transport as 'stdio' | 'http' | 'websocket') ?? 'stdio';+```++2. **Auto-restart for stdio** - For stdio transport, always force restart since we can't verify health:+```typescript+const shouldForceRestart = force || transport === 'stdio';+if (existingStatus.running && shouldForceRestart) {+ // Kill existing process and restart+ process.kill(existingStatus.pid, 'SIGKILL');+ await manager.stop();+}+```++**Result:** MCP server now auto-restarts stale servers for stdio transport:+```+[WARN] MCP Server (PID: 6549) - restarting...+ Cleaned up existing server+[OK] MCP Server started (PID: 300044)+```++### Updated Publish Script++Added automatic dist-tag updates to `scripts/publish.sh`:+```bash+# Update all tags to point to the new version+npm dist-tag add @claude-flow/cli@$VERSION alpha+npm dist-tag add @claude-flow/cli@$VERSION latest+npm dist-tag add @claude-flow/cli@$VERSION v3alpha+npm dist-tag add claude-flow@$VERSION alpha+npm dist-tag add claude-flow@$VERSION latest+npm dist-tag add claude-flow@$VERSION v3alpha+```++This ensures `npx claude-flow@alpha` always gets the latest version.++**Published**: `@claude-flow/[email protected]`, `[email protected]`diff --git a/v3/package-lock.json b/v3/package-lock.jsonindex 3f7f605499..a3b7171009 100644--- a/v3/package-lock.json+++ b/v3/package-lock.json@@ -925,7 +925,7 @@}},"@claude-flow/cli": {- "version": "3.0.0-alpha.94",+ "version": "3.0.0-alpha.95","dependencies": {"@claude-flow/aidefence": "^3.0.2","@claude-flow/embeddings": "^3.0.0-alpha.12",