mirror of
https://github.com/morluto/rea
synced 2026-10-28 15:07:26 -04:00
63bf91405c
Deliver complete Evidence directly through MCP with required nullable analysis profiles and immutable per-server delivery settings. Bind selected environments at construction and require typed cleanup outcomes with retained retry ownership. Remove test-only routing, duplicate session and snapshot metadata, producer-field repairs, and ambiguous provider arguments. Separate artifact byte identity from occurrence classification and retain typed source-map and partial native facts across CLI, MCP, and verifier consumers. BREAKING CHANGE: obsolete Evidence envelopes, session aliases, incomplete snapshots, and missing normalized producer facts are no longer accepted.
19 lines
741 B
TypeScript
19 lines
741 B
TypeScript
import { InvestigationRecords } from "../investigation/InvestigationRecords.js";
|
|
import type { AnalysisProvider } from "../AnalysisProvider.js";
|
|
import { AnalysisProviderRegistry } from "./AnalysisProviderRegistry.js";
|
|
import { BinarySession } from "./BinarySession.js";
|
|
import { SessionProviderRouter } from "./SessionProviderRouter.js";
|
|
|
|
/**
|
|
* Compose one provider-neutral session from deep-provider selection and
|
|
* disjoint auxiliary operation families.
|
|
*/
|
|
export const composeBinarySession = (
|
|
registry: AnalysisProviderRegistry,
|
|
auxiliaryProviders: readonly AnalysisProvider[] = [],
|
|
): BinarySession =>
|
|
new BinarySession(
|
|
SessionProviderRouter.selectable(registry, auxiliaryProviders),
|
|
new InvestigationRecords(),
|
|
);
|