🌊 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
test(hive-mind): skip the HTTP e2e where @claude-flow/mcp is not built (root CI job)
ruve031a6f41add
diff --git a/v3/@claude-flow/cli/__tests__/hive-mind-gate-transport-e2e.test.ts b/v3/@claude-flow/cli/__tests__/hive-mind-gate-transport-e2e.test.tsindex ebc8500327..606ac873e3 100644--- a/v3/@claude-flow/cli/__tests__/hive-mind-gate-transport-e2e.test.ts+++ b/v3/@claude-flow/cli/__tests__/hive-mind-gate-transport-e2e.test.ts@@ -13,11 +13,23 @@ import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process';import * as fs from 'node:fs';import * as os from 'node:os';import * as path from 'node:path';+import { createRequire } from 'node:module';import { fileURLToPath } from 'node:url';const HERE = path.dirname(fileURLToPath(import.meta.url));const BIN = path.resolve(HERE, '..', 'bin');const DIST = path.resolve(HERE, '..', 'dist', 'src', 'index.js');+// The HTTP transport needs the built @claude-flow/mcp package. The root CI+// `Test Suite` job does not build it (mcp-http-foreground-2984 and friends+// fail there for the same reason and sit in the ratchet baseline), so the HTTP+// case runs wherever the package is built and is skipped, not failed, elsewhere.+const MCP_BUILT = (() => {+ try {+ return fs.existsSync(createRequire(import.meta.url).resolve('@claude-flow/mcp'));+ } catch {+ return false;+ }+})();const SECRET = 'operator-secret-for-e2e-0123456789';let child: ChildProcessWithoutNullStreams | undefined;@@ -118,7 +130,7 @@ describe('hive-mind gate end to end (ADR-476)', () => {expect((await c.call('hive-mind_init', { bootstrapSecret: SECRET })).success).toBe(true);}, 60_000);- it('the HTTP server refuses every gated call without the operator secret, then accepts it', async () => {+ it.skipIf(!MCP_BUILT)('the HTTP server refuses every gated call without the operator secret, then accepts it', async () => {// CI builds dist/ concurrently with other test files (integration-docker runs// `npm run build`), so a cold server start can hit a half-written dist and// exit before binding. Retry a few times on an early exit; a real failure