fix(hopper): preserve typed string values and verify real searches

This commit is contained in:
morluto
2026-10-09 05:12:36 +08:00
parent 35f1ddd6bc
commit 7d7b3f961a
16 changed files with 338 additions and 433 deletions
+3
View File
@@ -9,6 +9,7 @@ import addFormats from "ajv-formats";
import { mcpTextValue, requireMcpResult } from "./mcp-verifier-results.mjs";
import { verifyHopperNavigationAndText } from "./real-hopper-navigation.mjs";
import { verifyHopperWorkflows } from "./real-hopper-workflows.mjs";
import { verifyHopperSearch } from "./real-hopper-search.mjs";
/** Exercise real Hopper annotation and malformed-input boundaries over MCP. */
export async function verifyHopperBoundaryContracts(
@@ -74,6 +75,7 @@ export async function verifyHopperBoundaryContracts(
address,
);
const workflows = await verifyHopperWorkflows(call, invalid, procedure);
const search = await verifyHopperSearch(call, invalid, procedure);
try {
if (foreignDocument !== undefined) {
await invalid(
@@ -278,6 +280,7 @@ export async function verifyHopperBoundaryContracts(
foreignDocumentVerified: foreignDocument !== undefined,
navigationAndText,
workflows,
search,
};
}