refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
+2 -4
View File
@@ -249,9 +249,7 @@ const executeEnhancedTool = async (
recordUnknown: registration.recordUnknown,
});
if (!unknowns.ok) return toCallToolResult(unknowns, contract);
return toCallToolResult({ ok: true, value: evidence }, contract, {
evidenceResourcesAvailable: recorded !== undefined,
});
return toCallToolResult({ ok: true, value: evidence }, contract);
}
return toCallToolResult(result, contract);
};
@@ -315,7 +313,7 @@ const recordWorkflowUnknowns = ({
rationale:
name === "inspect_native_api"
? "Confirm the unsupported boundary with a capable provider or ABI probe."
: "Continue with a larger bounded budget.",
: "Continue with a focused query or another available provider.",
},
],
relationships: [],