The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
/** Value equality for immutable JSON payloads received from the core. */
export function jsonValuesEqual(left: unknown, right: unknown): boolean {
if (Object.is(left, right)) return true;
if (!left || !right || typeof left !== 'object' || typeof right !== 'object') return false;
if (Array.isArray(left) || Array.isArray(right)) {
return (
Array.isArray(left) &&
Array.isArray(right) &&
left.length === right.length &&
left.every((value, index) => jsonValuesEqual(value, right[index]))
);
}
const a = left as Record<string, unknown>,
b = right as Record<string, unknown>;
const keys = Object.keys(a);
return (
keys.length === Object.keys(b).length &&
keys.every(
key => Object.prototype.hasOwnProperty.call(b, key) && jsonValuesEqual(a[key], b[key])
)
);
}