feat(studio): render structured AI conversations
Add reusable UI2 conversation balloons, tool cards, native Markdown, copy actions and controlled streaming scroll. Preserve typed ACP tool updates and chat lifecycle, add Alt+Enter sending, update specifications and qualify the UI through desktop tests. Include the Pong asset cache.
This commit is contained in:
@@ -7,9 +7,14 @@ import java.util.function.*;
|
||||
/** Asynchronous project-owned agent port. Callbacks may arrive on worker threads. */
|
||||
public interface AgentConnection {
|
||||
enum State { DISCONNECTED, CONNECTING, CONNECTED, AUTHENTICATING, READY, FAILED, CLOSING, CLOSED }
|
||||
enum Kind { TEXT, ACTIVITY }
|
||||
enum Kind { TEXT, ACTIVITY, TOOL }
|
||||
record Status(State state, String detail) { }
|
||||
record Event(String sessionId, Kind kind, String text) { }
|
||||
/** Null fields in a tool update mean unchanged; empty content explicitly clears it. */
|
||||
record ToolUpdate(String id, String title, String category, String status,
|
||||
String input, String output, String content) { }
|
||||
record Event(String sessionId, Kind kind, String text, ToolUpdate tool) {
|
||||
public Event(String sessionId, Kind kind, String text) { this(sessionId, kind, text, null); }
|
||||
}
|
||||
record Choice(String id, String name, String kind) { }
|
||||
record Permission(String sessionId, String title, String details, List<Choice> choices) {
|
||||
public Permission(String sessionId,String title,List<Choice> choices){this(sessionId,title,"",choices);}
|
||||
|
||||
Reference in New Issue
Block a user