@agent-link/server 0.1.143 → 0.1.144

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-link/server",
3
- "version": "0.1.143",
3
+ "version": "0.1.144",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -671,6 +671,23 @@ const App = {
671
671
  team.requestAgentHistory(team.historicalTeam.value.teamId, agentId);
672
672
  }
673
673
  },
674
+ feedAgentName(entry) {
675
+ if (!entry.agentId) return null;
676
+ const agent = team.findAgent(entry.agentId);
677
+ if (!agent || !agent.name) return null;
678
+ // Verify the content actually starts with this agent name
679
+ if (entry.content && entry.content.startsWith(agent.name)) {
680
+ return agent.name;
681
+ }
682
+ return null;
683
+ },
684
+ feedContentRest(entry) {
685
+ const name = this.feedAgentName(entry);
686
+ if (name && entry.content && entry.content.startsWith(name)) {
687
+ return entry.content.slice(name.length);
688
+ }
689
+ return entry.content || '';
690
+ },
674
691
  getLatestAgentActivity(agentId) {
675
692
  // Find the latest feed entry for this agent
676
693
  const t = team.displayTeam.value;
@@ -678,6 +695,11 @@ const App = {
678
695
  for (let i = t.feed.length - 1; i >= 0; i--) {
679
696
  const entry = t.feed[i];
680
697
  if (entry.agentId === agentId && entry.type === 'tool_call') {
698
+ // Strip agent name prefix since it's already shown on the card
699
+ const agent = team.findAgent(agentId);
700
+ if (agent && agent.name && entry.content.startsWith(agent.name)) {
701
+ return entry.content.slice(agent.name.length).trimStart();
702
+ }
681
703
  return entry.content;
682
704
  }
683
705
  }
@@ -1239,7 +1261,7 @@ const App = {
1239
1261
  <span v-if="entry.agentId" class="team-agent-dot" :style="{ background: getAgentColor(entry.agentId) }"></span>
1240
1262
  <span v-else class="team-agent-dot" style="background: #666;"></span>
1241
1263
  <span class="team-feed-time">{{ formatTeamTime(entry.timestamp) }}</span>
1242
- <span class="team-feed-text">{{ entry.content }}</span>
1264
+ <span class="team-feed-text"><span v-if="feedAgentName(entry)" class="team-feed-agent-name" :style="{ color: getAgentColor(entry.agentId) }">{{ feedAgentName(entry) }}</span>{{ feedContentRest(entry) }}</span>
1243
1265
  </div>
1244
1266
  </div>
1245
1267
  </div>
package/web/style.css CHANGED
@@ -3535,6 +3535,10 @@ body {
3535
3535
  color: var(--text-primary);
3536
3536
  }
3537
3537
 
3538
+ .team-feed-agent-name {
3539
+ font-weight: 600;
3540
+ }
3541
+
3538
3542
  /* ── Teams sidebar section (history list in sidebar) ── */
3539
3543
  .sidebar-teams {
3540
3544
  padding: 0.75rem;