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
+5 -2
View File
@@ -25,12 +25,15 @@ export const parseHopperServerInfo = (
return err(new HopperProtocolError("Hopper bridge health result is invalid"));
};
/** Require Hopper to confirm both analysis and document shutdown. */
/** Require confirmation that the REA bridge detached or its document closed. */
export const isHopperShutdownAcknowledgement = (value: JsonValue): boolean => {
if (typeof value !== "object" || value === null || Array.isArray(value))
return false;
if (value.shutdown !== true) return false;
return value.analysis_stopped === true && value.document_closed === true;
return (
(value.analysis_stopped === true && value.document_closed === true) ||
(value.document_closed === false && value.document_retained === true)
);
};
/** Detect the verified Linux bridge response that requires group cleanup. */