🌊 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(cli): skip the agentic-flow exports-entry check where the optional package is not installed (#4146)
r7f78619801cf
diff --git a/v3/@claude-flow/cli/__tests__/autopilot-learning-load-4146.test.ts b/v3/@claude-flow/cli/__tests__/autopilot-learning-load-4146.test.tsindex 2fbca5d59a..4d698e194f 100644--- a/v3/@claude-flow/cli/__tests__/autopilot-learning-load-4146.test.ts+++ b/v3/@claude-flow/cli/__tests__/autopilot-learning-load-4146.test.ts@@ -3,6 +3,9 @@ import { createRequire } from 'node:module';import { spawnSync } from 'node:child_process';import { getLearningLoadError, tryLoadLearning } from '../src/autopilot-state.js';+const require_ = createRequire(import.meta.url);+const hasAgenticFlow = (() => { try { require_.resolve('agentic-flow'); return true; } catch (e) { return (e as NodeJS.ErrnoException).code !== 'MODULE_NOT_FOUND'; } })();+describe('autopilot learning loads past the agentic-flow exports map (#4146)', () => {it('the bare subpath really is blocked (the bug precondition)', () => {const r = spawnSync(process.execPath, ['--input-type=module', '-e', "import('agentic-flow/dist/coordination/autopilot-learning.js').catch(e => console.log(e.code))"], { cwd: process.cwd(), encoding: 'utf8' });@@ -20,7 +23,8 @@ describe('autopilot learning loads past the agentic-flow exports map (#4146)', (else expect(getLearningLoadError()).toBeNull();});- it('agentic-flow resolves through its exported entry (what the loader relies on)', () => {- expect(() => createRequire(import.meta.url).resolve('agentic-flow')).not.toThrow();+ // agentic-flow is an optional install; where it is absent there is no exported entry to check.+ it.skipIf(!hasAgenticFlow)('agentic-flow resolves through its exported entry (what the loader relies on)', () => {+ expect(() => require_.resolve('agentic-flow')).not.toThrow();});});