@ai-development-environment/control-agent 0.0.31 → 0.0.32
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/control-agent.js +4 -3
- package/package.json +1 -1
package/dist/control-agent.js
CHANGED
|
@@ -3329,11 +3329,11 @@ async function readProfiles(timeoutMs, signal) {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
3332
|
-
return
|
|
3332
|
+
return dedupeProfiles([...profiles.values()]).sort(
|
|
3333
3333
|
(left, right) => left.name.localeCompare(right.name)
|
|
3334
3334
|
);
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function dedupeProfiles(profiles) {
|
|
3337
3337
|
const best = /* @__PURE__ */ new Map();
|
|
3338
3338
|
for (const profile of profiles) {
|
|
3339
3339
|
const key = [
|
|
@@ -3341,7 +3341,8 @@ function dedupe(profiles) {
|
|
|
3341
3341
|
profile.type,
|
|
3342
3342
|
profile.bundleId,
|
|
3343
3343
|
profile.teamId ?? "",
|
|
3344
|
-
[...profile.platforms].sort().join(",")
|
|
3344
|
+
[...profile.platforms].sort().join(","),
|
|
3345
|
+
[...profile.certificateSha1s].sort().join(",")
|
|
3345
3346
|
].join("\0");
|
|
3346
3347
|
const existing = best.get(key);
|
|
3347
3348
|
if (!existing || (profile.expiresAt ?? "") > (existing.expiresAt ?? "") || // Stable tie-break so repeated inspections return the same profile.
|