agentfootprint-lens 0.14.1 → 0.14.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.cjs CHANGED
@@ -1891,13 +1891,14 @@ function buildFlow(view, graph, selectedId) {
1891
1891
  view.agents.forEach((agent, idx) => {
1892
1892
  const cardY = MULTI_AGENT_CARD_Y_START + idx * (AGENT_CARD_HEIGHT + MULTI_AGENT_CARD_GAP);
1893
1893
  const status = "done";
1894
+ const isFocusedAgent = view.currentStep ? sameAgent(view.currentStep, agent) : false;
1894
1895
  nodes.push({
1895
1896
  id: `agent-card-${agent.groupId.replace(/^agent-group-/, "")}`,
1896
1897
  position: { x: MULTI_AGENT_CARD_X, y: cardY },
1897
1898
  type: "agentCard",
1898
1899
  data: {
1899
1900
  label: agent.label,
1900
- selected: agent.groupId === selectedId,
1901
+ selected: isFocusedAgent,
1901
1902
  status,
1902
1903
  ...agent.primitiveKind ? { primitiveKind: agent.primitiveKind } : {}
1903
1904
  },