Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
959 changes: 857 additions & 102 deletions dotnet/src/Generated/Rpc.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dotnet/test/E2E/RpcSessionStateE2ETests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public async Task Should_Call_Workspace_File_Rpc_Methods()

var workspace = await session.Rpc.Workspaces.GetWorkspaceAsync();
Assert.NotNull(workspace.Workspace);
Assert.NotEqual(Guid.Empty, workspace.Workspace.Id);
Assert.NotEmpty(workspace.Workspace.Id);
}

[Theory]
Expand Down
19 changes: 8 additions & 11 deletions go/rpc/generated_rpc_union_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,28 +134,25 @@ func TestMcpServerConfigJSONUnion(t *testing.T) {
}

func TestTaskProgressUnmarshalsTaskAgentProgressVariants(t *testing.T) {
var agentProgress TaskProgress
if err := json.Unmarshal([]byte(`{"type":"agent","recentActivity":[],"latestIntent":"Summarizing"}`), &agentProgress); err != nil {
agentProgress, err := unmarshalTaskProgress([]byte(`{"type":"agent","recentActivity":[],"latestIntent":"Summarizing"}`))
if err != nil {
t.Fatalf("unmarshal agent task progress: %v", err)
}
agentValue, ok := agentProgress.TaskAgentProgress.(*TaskAgentProgressAgent)
agentValue, ok := agentProgress.(*TaskAgentProgress)
if !ok {
t.Fatalf("agent task progress = %T, want *TaskAgentProgressAgent", agentProgress.TaskAgentProgress)
t.Fatalf("agent task progress = %T, want *TaskAgentProgress", agentProgress)
}
if agentValue.LatestIntent == nil || *agentValue.LatestIntent != "Summarizing" {
t.Fatalf("agent latest intent = %v, want Summarizing", agentValue.LatestIntent)
}
if agentProgress.TaskShellProgress != nil {
t.Fatalf("agent task shell progress = %#v, want nil", *agentProgress.TaskShellProgress)
}

var shellProgress TaskProgress
if err := json.Unmarshal([]byte(`{"type":"shell","recentOutput":"building","pid":123}`), &shellProgress); err != nil {
shellProgress, err := unmarshalTaskProgress([]byte(`{"type":"shell","recentOutput":"building","pid":123}`))
if err != nil {
t.Fatalf("unmarshal shell task progress: %v", err)
}
shellValue, ok := shellProgress.TaskAgentProgress.(*TaskAgentProgressShell)
shellValue, ok := shellProgress.(*TaskShellProgress)
if !ok {
t.Fatalf("shell task progress = %T, want *TaskAgentProgressShell", shellProgress.TaskAgentProgress)
t.Fatalf("shell task progress = %T, want *TaskShellProgress", shellProgress)
}
if shellValue.RecentOutput != "building" {
t.Fatalf("shell recent output = %q, want building", shellValue.RecentOutput)
Expand Down
1,099 changes: 993 additions & 106 deletions go/rpc/zrpc.go

Large diffs are not rendered by default.

Loading
Loading