🌊 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
import { describe, expect, it } from 'vitest';
import { DEFAULT_INIT_OPTIONS } from '../src/init/types.js';
import { generateSettings } from '../src/init/settings-generator.js';
describe('generated hook settings', () => {
it('only wires commands implemented by hook-handler.cjs', () => {
const settings = generateSettings(DEFAULT_INIT_OPTIONS) as {
hooks: Record<string, Array<{ hooks: Array<{ command: string }> }>>;
};
const hooks = settings.hooks;
const commands = Object.values(hooks)
.flatMap((groups) => groups.flatMap((group) => group.hooks.map((hook) => hook.command)));
for (const unsupported of ['pre-edit', 'post-bash', 'compact-manual', 'compact-auto', 'status', 'notify']) {
expect(commands.some((command) => new RegExp(`(?:^|[\\s'\"])${unsupported}(?:['\"]|$)`).test(command))).toBe(false);
}
expect(hooks.PreToolUse).toBeDefined();
expect(hooks.PostToolUse).toBeDefined();
expect(hooks.PreCompact).toBeDefined();
expect(commands.some((command) => /(?:^|[\s'])pre-bash(?:['"]|$)/.test(command))).toBe(true);
expect(commands.some((command) => /(?:^|[\s'])post-edit(?:['"]|$)/.test(command))).toBe(true);
expect(commands.some((command) => /(?:^|[\s'])session-end(?:['"]|$)/.test(command))).toBe(true);
});
});