agent-contracts 0.22.8 → 0.22.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -51013,7 +51013,9 @@ function deepMergeEntities(base, project, path, hasExtends) {
51013
51013
  }
51014
51014
  return result;
51015
51015
  }
51016
+ var OPERATOR_KEYS = /* @__PURE__ */ new Set(["$append", "$prepend", "$insert_after", "$replace", "$remove"]);
51016
51017
  function mergeEntityMaps(baseMap, projectMap, path, hasExtends) {
51018
+ let result;
51017
51019
  if (isRecord2(projectMap) && !Array.isArray(projectMap)) {
51018
51020
  const op = hasOperator(projectMap);
51019
51021
  if (op) {
@@ -51022,11 +51024,15 @@ function mergeEntityMaps(baseMap, projectMap, path, hasExtends) {
51022
51024
  `Merge operator used without extends at ${path}`
51023
51025
  );
51024
51026
  }
51025
- return applyMapMergeOperator(baseMap, projectMap, path);
51027
+ result = applyMapMergeOperator(baseMap, projectMap, path);
51028
+ } else {
51029
+ result = { ...baseMap };
51026
51030
  }
51031
+ } else {
51032
+ result = { ...baseMap };
51027
51033
  }
51028
- const result = { ...baseMap };
51029
51034
  for (const [key, projVal] of Object.entries(projectMap)) {
51035
+ if (OPERATOR_KEYS.has(key)) continue;
51030
51036
  const baseVal = result[key];
51031
51037
  if (baseVal !== void 0 && isRecord2(baseVal) && isRecord2(projVal)) {
51032
51038
  result[key] = deepMergeEntities(