feat(evidence): discover retained records without full payloads (#1682)
* feat(evidence): discover retained records without full payloads * fix(evidence): guide oversized results to retained discovery * style(tests): format retained discovery recovery assertion
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
import { toolContract } from "../contracts/toolContracts.js";
|
||||
import type { EvidenceBundle } from "../domain/evidenceBundle.js";
|
||||
import { ok } from "../domain/result.js";
|
||||
import { inspectEvidenceBundle } from "../application/investigation/InspectEvidenceBundle.js";
|
||||
import { toolRegistrationOptions } from "./toolRegistrationOptions.js";
|
||||
|
||||
interface EvidenceToolRegistration {
|
||||
@@ -72,9 +73,9 @@ const registerSnapshotEvidenceTool = ({
|
||||
server.registerTool(
|
||||
snapshotContract.name,
|
||||
toolRegistrationOptions(snapshotContract),
|
||||
() =>
|
||||
(input) =>
|
||||
server.delivery.toCallToolResult(
|
||||
ok(bundleForSerialization(session)),
|
||||
inspectEvidenceBundle(bundleForSerialization(session), input),
|
||||
snapshotContract,
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user