Skip to content

Commit 7c59d36

Browse files
committed
fix: add ThinkingChunk branch to AgentEvent when expressions in mpp-server
1 parent 6ccbbe9 commit 7c59d36

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

mpp-server/src/main/kotlin/cc/unitmesh/server/plugins/Routing.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ fun Application.configureRouting() {
175175
val eventType = when (event) {
176176
is AgentEvent.IterationStart -> "iteration"
177177
is AgentEvent.LLMResponseChunk -> "llm_chunk"
178+
is AgentEvent.ThinkingChunk -> "thinking_chunk"
178179
is AgentEvent.ToolCall -> "tool_call"
179180
is AgentEvent.ToolResult -> "tool_result"
180181
is AgentEvent.CloneLog -> "clone_log"
@@ -187,6 +188,7 @@ fun Application.configureRouting() {
187188
val data = when (event) {
188189
is AgentEvent.IterationStart -> json.encodeToString(event)
189190
is AgentEvent.LLMResponseChunk -> json.encodeToString(event)
191+
is AgentEvent.ThinkingChunk -> json.encodeToString(event)
190192
is AgentEvent.ToolCall -> json.encodeToString(event)
191193
is AgentEvent.ToolResult -> json.encodeToString(event)
192194
is AgentEvent.CloneLog -> json.encodeToString(event)
@@ -252,6 +254,7 @@ fun Application.configureRouting() {
252254
val eventType = when (event) {
253255
is AgentEvent.IterationStart -> "iteration"
254256
is AgentEvent.LLMResponseChunk -> "llm_chunk"
257+
is AgentEvent.ThinkingChunk -> "thinking_chunk"
255258
is AgentEvent.ToolCall -> "tool_call"
256259
is AgentEvent.ToolResult -> "tool_result"
257260
is AgentEvent.CloneLog -> "clone_log"
@@ -264,6 +267,7 @@ fun Application.configureRouting() {
264267
val data = when (event) {
265268
is AgentEvent.IterationStart -> json.encodeToString(event)
266269
is AgentEvent.LLMResponseChunk -> json.encodeToString(event)
270+
is AgentEvent.ThinkingChunk -> json.encodeToString(event)
267271
is AgentEvent.ToolCall -> json.encodeToString(event)
268272
is AgentEvent.ToolResult -> json.encodeToString(event)
269273
is AgentEvent.CloneLog -> json.encodeToString(event)

mpp-server/src/main/kotlin/cc/unitmesh/server/session/SessionManager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,11 @@ class SessionManager {
108108
return
109109
}
110110

111-
// AgentEvent 序列化为 JSON
111+
// Serialize AgentEvent to JSON
112112
val eventType = when (event) {
113113
is AgentEvent.IterationStart -> "iteration"
114114
is AgentEvent.LLMResponseChunk -> "llm_chunk"
115+
is AgentEvent.ThinkingChunk -> "thinking_chunk"
115116
is AgentEvent.ToolCall -> "tool_call"
116117
is AgentEvent.ToolResult -> "tool_result"
117118
is AgentEvent.CloneLog -> "clone_log"

mpp-server/src/main/kotlin/cc/unitmesh/server/workflow/executor/DurableAgentExecutor.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ class DurableAgentExecutor(
132132
buildJsonObject { put("current", event.current); put("max", event.max) }.toString()
133133
is AgentEvent.LLMResponseChunk -> "LLMResponseChunk" to
134134
buildJsonObject { put("chunk", event.chunk) }.toString()
135+
is AgentEvent.ThinkingChunk -> "ThinkingChunk" to
136+
buildJsonObject { put("chunk", event.chunk); put("isStart", event.isStart); put("isEnd", event.isEnd) }.toString()
135137
is AgentEvent.ToolCall -> "ToolCall" to
136138
buildJsonObject { put("toolName", event.toolName); put("params", event.params) }.toString()
137139
is AgentEvent.ToolResult -> "ToolResult" to

src/description.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<p><b>AutoDev Xiuper</b> - AI-native development platform built on Kotlin Multiplatform</p>
2+
3+
<p><b>One Platform. All Phases. Every Device.</b></p>
4+
5+
<p>AutoDev Xiuper covers all 7 phases of SDLC (Requirements, Development, Review, Testing, Data, Deployment, Operations)
6+
and supports 8+ platforms (IDEA, VSCode, CLI, Web, Desktop, Android, iOS, Server).</p>
7+
8+
<h3>Key Features</h3>
9+
<ul>
10+
<li><b>One Platform</b>: Unified Kotlin Multiplatform architecture - write once, deploy everywhere</li>
11+
<li><b>All Phases</b>: 7 specialized agents covering complete software development lifecycle</li>
12+
<li><b>Every Device</b>: Native support for 8+ platforms with zero compromise on performance</li>
13+
</ul>
14+
15+
<h3>Agents</h3>
16+
<ul>
17+
<li><b>Coding Agent</b>: AI-powered code generation and completion</li>
18+
<li><b>Review Agent</b>: Automated code review with AI insights</li>
19+
<li><b>Document Agent</b>: Intelligent documentation generation</li>
20+
<li><b>Domain Dict Agent</b>: Domain-specific terminology management</li>
21+
<li><b>Artifact Agent</b>: Reversible artifact generation with live preview</li>
22+
</ul>
23+
24+
<h3>Links</h3>
25+
<ul>
26+
<li><a href="https://github.com/phodal/auto-dev">GitHub Repository</a></li>
27+
<li><a href="https://xiuper.com">Official Website</a></li>
28+
</ul>

0 commit comments

Comments
 (0)