@cfio/cohort-sync 0.1.1 → 0.1.2
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/index.js +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11843,11 +11843,11 @@ async function reconcileRoster(openClawAgents, cfg, logger) {
|
|
|
11843
11843
|
const openClawNames = new Set(
|
|
11844
11844
|
openClawAgents.map((a) => {
|
|
11845
11845
|
const nameMap = cfg.agentNameMap;
|
|
11846
|
-
return (nameMap?.[a.id] ?? a.id).toLowerCase();
|
|
11846
|
+
return (nameMap?.[a.id] ?? a.identity?.name ?? a.id).toLowerCase();
|
|
11847
11847
|
})
|
|
11848
11848
|
);
|
|
11849
11849
|
for (const oc of openClawAgents) {
|
|
11850
|
-
const agentName = (cfg.agentNameMap?.[oc.id] ?? oc.id).toLowerCase();
|
|
11850
|
+
const agentName = (cfg.agentNameMap?.[oc.id] ?? oc.identity?.name ?? oc.id).toLowerCase();
|
|
11851
11851
|
const existing = cohortByName.get(agentName);
|
|
11852
11852
|
if (!existing) {
|
|
11853
11853
|
try {
|
package/dist/package.json
CHANGED