@agent-link/server 0.1.142 → 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.142",
3
+ "version": "0.1.144",
4
4
  "description": "AgentLink relay server",
5
5
  "license": "MIT",
6
6
  "repository": {
package/web/app.js CHANGED
@@ -660,8 +660,9 @@ const App = {
660
660
  return d.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', second: '2-digit' });
661
661
  },
662
662
  getTaskAgent(task) {
663
- if (!task.assignedTo) return null;
664
- return team.findAgent(task.assignedTo);
663
+ const assignee = task.assignee || task.assignedTo;
664
+ if (!assignee) return null;
665
+ return team.findAgent(assignee);
665
666
  },
666
667
  viewAgentWithHistory(agentId) {
667
668
  team.viewAgent(agentId);
@@ -670,6 +671,23 @@ const App = {
670
671
  team.requestAgentHistory(team.historicalTeam.value.teamId, agentId);
671
672
  }
672
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
+ },
673
691
  getLatestAgentActivity(agentId) {
674
692
  // Find the latest feed entry for this agent
675
693
  const t = team.displayTeam.value;
@@ -677,6 +695,11 @@ const App = {
677
695
  for (let i = t.feed.length - 1; i >= 0; i--) {
678
696
  const entry = t.feed[i];
679
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
+ }
680
703
  return entry.content;
681
704
  }
682
705
  }
@@ -1166,8 +1189,8 @@ const App = {
1166
1189
  <div class="team-task-title">{{ task.title }}</div>
1167
1190
  <div v-if="task.description" class="team-task-desc team-task-desc-clamp" @click.stop="$event.target.classList.toggle('team-task-desc-expanded')">{{ task.description }}</div>
1168
1191
  <div v-if="getTaskAgent(task)" class="team-task-assignee">
1169
- <span class="team-agent-dot" :style="{ background: getAgentColor(task.assignedTo) }"></span>
1170
- {{ getTaskAgent(task).name || task.assignedTo }}
1192
+ <span class="team-agent-dot" :style="{ background: getAgentColor(task.assignee || task.assignedTo) }"></span>
1193
+ {{ getTaskAgent(task).name || task.assignee || task.assignedTo }}
1171
1194
  </div>
1172
1195
  </div>
1173
1196
  <div v-if="activeTasks.length === 0" class="team-kanban-empty">No tasks</div>
@@ -1184,8 +1207,8 @@ const App = {
1184
1207
  <div class="team-task-title">{{ task.title }}</div>
1185
1208
  <div v-if="task.description" class="team-task-desc team-task-desc-clamp" @click.stop="$event.target.classList.toggle('team-task-desc-expanded')">{{ task.description }}</div>
1186
1209
  <div v-if="getTaskAgent(task)" class="team-task-assignee">
1187
- <span class="team-agent-dot" :style="{ background: getAgentColor(task.assignedTo) }"></span>
1188
- {{ getTaskAgent(task).name || task.assignedTo }}
1210
+ <span class="team-agent-dot" :style="{ background: getAgentColor(task.assignee || task.assignedTo) }"></span>
1211
+ {{ getTaskAgent(task).name || task.assignee || task.assignedTo }}
1189
1212
  </div>
1190
1213
  </div>
1191
1214
  <div v-if="doneTasks.length === 0" class="team-kanban-empty">No tasks</div>
@@ -1238,7 +1261,7 @@ const App = {
1238
1261
  <span v-if="entry.agentId" class="team-agent-dot" :style="{ background: getAgentColor(entry.agentId) }"></span>
1239
1262
  <span v-else class="team-agent-dot" style="background: #666;"></span>
1240
1263
  <span class="team-feed-time">{{ formatTeamTime(entry.timestamp) }}</span>
1241
- <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>
1242
1265
  </div>
1243
1266
  </div>
1244
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;