A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物
Python agent-memoryfinancial-forecastingfuture-predictionknowledge-graphllmsmulti-agent-simulationpublic-opinion-analysispython3social-predictionswarm-intelligence
Enhance Step2EnvSetup.vue with agent username display and styling improvements
666ghj39824c88e243
diff --git a/frontend/src/components/Step2EnvSetup.vue b/frontend/src/components/Step2EnvSetup.vueindex c804f0a4..a91765e4 100644--- a/frontend/src/components/Step2EnvSetup.vue+++ b/frontend/src/components/Step2EnvSetup.vue@@ -206,7 +206,10 @@<div class="timeline-content"><div class="post-header"><span class="post-role">{{ post.poster_type }}</span>- <span class="post-id">Agent {{ post.poster_agent_id }}</span>+ <span class="post-agent-info">+ <span class="post-id">Agent {{ post.poster_agent_id }}</span>+ <span class="post-username">@{{ getAgentUsername(post.poster_agent_id) }}</span>+ </span></div><p class="post-text">{{ post.content }}</p></div>@@ -412,6 +415,15 @@ const displayProfiles = computed(() => {return profiles.value.slice(0, 6)})+// 根据agent_id获取对应的username+const getAgentUsername = (agentId) => {+ if (profiles.value && profiles.value.length > agentId && agentId >= 0) {+ const profile = profiles.value[agentId]+ return profile?.username || `agent_${agentId}`+ }+ return `agent_${agentId}`+}+// 计算所有人设的关联话题总数const totalTopicsCount = computed(() => {return profiles.value.reduce((sum, p) => {@@ -1478,10 +1490,23 @@ onUnmounted(() => {text-transform: uppercase;}-.post-id {+.post-agent-info {+ display: flex;+ align-items: center;+ gap: 6px;+}++.post-id,+.post-username {font-family: 'JetBrains Mono', monospace;font-size: 10px;- color: #999;+ color: #666;+ line-height: 1;+ vertical-align: baseline;+}++.post-username {+ margin-right: 6px;}.post-text {