@feigi/fleet-ctl 3.18.6 → 3.18.7
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/package.json +1 -1
- package/scripts/tier-roles.mjs +5 -0
package/package.json
CHANGED
package/scripts/tier-roles.mjs
CHANGED
|
@@ -279,6 +279,11 @@ export function checkRoutes({ agentsDir, agentsSource = `--agents ${agentsDir}`,
|
|
|
279
279
|
const overrideKeys = Object.keys(overrides ?? {});
|
|
280
280
|
const fleetKeys = overrideKeys.filter((k) => k.startsWith(FLEET_NAME_PREFIX)).sort();
|
|
281
281
|
if (fleetKeys.length > 0) {
|
|
282
|
+
// The remedy writes the operator's non-fleet entries back in full because
|
|
283
|
+
// `omp config set` replaces the whole `task.agentModelOverrides` record
|
|
284
|
+
// rather than merging into it, and `omp config reset` empties it. Measured
|
|
285
|
+
// on omp 18.4.10: setting {"other":"y"} over {"fleet-a":"x","other":"y"}
|
|
286
|
+
// left exactly {"other":"y"}, and `reset` left {}.
|
|
282
287
|
const nonFleet = Object.fromEntries(
|
|
283
288
|
overrideKeys.filter((k) => !k.startsWith(FLEET_NAME_PREFIX)).map((k) => [k, overrides[k]]),
|
|
284
289
|
);
|