mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
Add optional native load-image summary delivery and retained selected-row pages through shared CLI/MCP analysis views. Preserve source verification, provenance, unavailable collections, exact row identity and opt-in byte/check payloads. Preserve direct caller paths during shared CLI summary publication and cover raw/DOL projection contracts through the actual SDK. Real Ghidra ELF CLI/MCP captures, retained and file-backed pages, focused regressions and static checks passed; the PR records existing main schema failures and the JavaScript resource-recovery CI uncertainty.
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
import type { EvidenceMcpServer } from "./EvidenceMcpServer.js";
|
|
import { OFFICIAL_TOOL_CONTRACTS } from "../contracts/officialToolContracts.js";
|
|
import { NATIVE_INVENTORY_OPERATIONS } from "../domain/native/nativeInventory.js";
|
|
import { registerEvidenceTools } from "./registerEvidenceTools.js";
|
|
import {
|
|
retainedSummaryDelivery,
|
|
withoutDeliveryDetail,
|
|
type EvidenceToolFamilyOptions,
|
|
} from "./retainedSummaryDelivery.js";
|
|
|
|
const SUMMARY_OPERATIONS: ReadonlySet<string> = new Set([
|
|
...NATIVE_INVENTORY_OPERATIONS,
|
|
"inspect_native_load_image",
|
|
]);
|
|
const withoutDetail = withoutDeliveryDetail(SUMMARY_OPERATIONS);
|
|
|
|
/** Direct tools share Evidence recording/projection with the other provider-backed tools. */
|
|
export const registerOfficialTools = (
|
|
server: EvidenceMcpServer,
|
|
options: EvidenceToolFamilyOptions,
|
|
): void => {
|
|
registerEvidenceTools(server, OFFICIAL_TOOL_CONTRACTS, {
|
|
...options,
|
|
...retainedSummaryDelivery(SUMMARY_OPERATIONS, options),
|
|
parametersForExecution: withoutDetail,
|
|
parametersForEvidence: withoutDetail,
|
|
});
|
|
};
|