mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-09-14 14:01:28 +08:00
dbb1f1e1dd
Adds the live Ruflo capability brain, governed federation and Cognitum product planes, source-bound concurrent harness contracts, ADRs 325-329, and the v3.32.28 guarded release train.
33 lines
1013 B
TypeScript
33 lines
1013 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import {
|
|
buildCapabilityBrain,
|
|
CAPABILITY_DOMAINS,
|
|
recommendCapabilities,
|
|
} from '../src/mcp-tools/capability-brain.js';
|
|
|
|
const prefixes = CAPABILITY_DOMAINS
|
|
.filter((domain) => domain.id !== 'runtime-services')
|
|
.flatMap((domain) => domain.prefixes)
|
|
.filter(Boolean);
|
|
|
|
const maximumRegistry = Array.from({ length: 353 }, (_, index) => ({
|
|
name: `${prefixes[index % prefixes.length]}benchmark-${String(index).padStart(3, '0')}`,
|
|
description: `Synthetic maximum-registry tool ${index}`,
|
|
category: 'benchmark',
|
|
}));
|
|
|
|
const brain = buildCapabilityBrain(maximumRegistry);
|
|
|
|
describe('capability brain maximum live registry', () => {
|
|
bench('build 353-tool capability brain', () => {
|
|
buildCapabilityBrain(maximumRegistry);
|
|
});
|
|
|
|
bench('recommend from 353-tool capability brain', () => {
|
|
recommendCapabilities(
|
|
brain,
|
|
'Implement secure claim federation with concurrent agents, tests, benchmarks, and release validation',
|
|
);
|
|
});
|
|
});
|