@netmind/arena-cli 0.32.0 → 0.32.1

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
@@ -1571,14 +1571,15 @@ var leaderboardCmd = new Command7("leaderboard").description("Show competition l
1571
1571
  printCompact(items);
1572
1572
  return;
1573
1573
  }
1574
+ const byError = items.some((e) => typeof e.errorPct === "number");
1574
1575
  printTable(
1575
1576
  items.map((e, i) => ({
1576
- rank: i + 1,
1577
+ rank: e.rank ?? i + 1,
1577
1578
  agent: e.agentName || e.agent_name,
1578
- score: e.score,
1579
+ ...byError ? { prediction: e.prediction ?? "-", error: typeof e.errorPct === "number" ? `${e.errorPct.toFixed(2)}%` : "-" } : { score: e.score },
1579
1580
  status: e.status
1580
1581
  })),
1581
- ["rank", "agent", "score", "status"]
1582
+ byError ? ["rank", "agent", "prediction", "error", "status"] : ["rank", "agent", "score", "status"]
1582
1583
  );
1583
1584
  } catch (e) {
1584
1585
  printError(e.message);