🌊 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): every shipped settings/plugin JSON file must parse (#3888)
r0ce10e456e86
diff --git a/v3/@claude-flow/cli/__tests__/shipped-json-parses-3888.test.ts b/v3/@claude-flow/cli/__tests__/shipped-json-parses-3888.test.tsnew file mode 100644index 0000000000..729461fd4d--- /dev/null+++ b/v3/@claude-flow/cli/__tests__/shipped-json-parses-3888.test.ts@@ -0,0 +1,33 @@+/** #3888: every settings/manifest JSON file the repo ships must parse. */+import { describe, expect, it } from 'vitest';+import { existsSync, readdirSync, readFileSync } from 'node:fs';+import { join } from 'node:path';++const REPO = join(__dirname, '..', '..', '..', '..');++function shippedJsonFiles(): string[] {+ const files = [+ join(REPO, '.claude', 'settings.json'),+ join(REPO, 'v3', '@claude-flow', 'cli', '.claude', 'settings.json'),+ join(REPO, 'v3', '@claude-flow', 'mcp', '.claude', 'settings.json'),+ ];+ const pluginsDir = join(REPO, 'plugins');+ if (existsSync(pluginsDir)) {+ for (const p of readdirSync(pluginsDir)) {+ files.push(join(pluginsDir, p, '.claude-plugin', 'plugin.json'));+ files.push(join(pluginsDir, p, 'hooks', 'hooks.json'));+ files.push(join(pluginsDir, p, '.mcp.json'));+ }+ }+ return files.filter((f) => existsSync(f));+}++describe('#3888 shipped JSON files parse', () => {+ const files = shippedJsonFiles();+ it('finds the shipped settings files', () => {+ expect(files.length).toBeGreaterThanOrEqual(3);+ });+ it.each(files)('%s is valid JSON', (file) => {+ expect(() => JSON.parse(readFileSync(file, 'utf8'))).not.toThrow();+ });+});