refactor: return complete tool results inline
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user