import { normalizeToolCallIdsWithNative } from '../../../router/virtual-router/engine-selection/native-compat-action-semantics.js';
export function normalizeToolCallIdsInPlace(root) {
    const normalized = normalizeToolCallIdsWithNative(root);
    for (const key of Object.keys(root)) {
        if (!(key in normalized)) {
            delete root[key];
        }
    }
    Object.assign(root, normalized);
}
