@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Syncs agent status and skills to Cohort dashboard",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfio/cohort-sync",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Syncs agent status and skills to Cohort dashboard",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.cohort.bot/gateway",