@agent-link/server 0.1.143 → 0.1.145
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 +1 -1
- package/web/app.js +23 -1
- package/web/style.css +4 -0
package/package.json
CHANGED
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
|
|
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