Skip to content

Commit 06e4964

Browse files
github-actions[bot]CopilotstephentoubCopilot
authored
Update @github/copilot to 1.0.26 (#1076)
* Update @github/copilot to 1.0.26 - Updated nodejs and test harness dependencies - Re-ran code generators - Formatted generated code * Fix build: update .NET test Workspace→Workspaces, fix Python rpc.py lint errors Agent-Logs-Url: https://github.com/github/copilot-sdk/sessions/89ca7d21-b99f-493f-9155-4ba940ad7293 Co-authored-by: stephentoub <[email protected]> * placeholder Agent-Logs-Url: https://github.com/github/copilot-sdk/sessions/a6ce684b-599e-45bd-956a-c351c5699f53 Co-authored-by: stephentoub <[email protected]> * Fix Python codegen: strip quicktype duplicate imports and trailing whitespace Agent-Logs-Url: https://github.com/github/copilot-sdk/sessions/a6ce684b-599e-45bd-956a-c351c5699f53 Co-authored-by: stephentoub <[email protected]> * Fix build for workspaces RPC update Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: stephentoub <[email protected]> Co-authored-by: Stephen Toub <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent 972b663 commit 06e4964

File tree

15 files changed

+708
-198
lines changed

15 files changed

+708
-198
lines changed

dotnet/src/Generated/Rpc.cs

Lines changed: 217 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dotnet/test/RpcTests.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,25 @@ public async Task Should_Create_List_And_Read_Workspace_Files()
135135
var session = await CreateSessionAsync();
136136

137137
// Initially no files
138-
var initialFiles = await session.Rpc.Workspace.ListFilesAsync();
138+
var initialFiles = await session.Rpc.Workspaces.ListFilesAsync();
139139
Assert.Empty(initialFiles.Files);
140140

141141
// Create a file
142142
var fileContent = "Hello, workspace!";
143-
await session.Rpc.Workspace.CreateFileAsync("test.txt", fileContent);
143+
await session.Rpc.Workspaces.CreateFileAsync("test.txt", fileContent);
144144

145145
// List files
146-
var afterCreate = await session.Rpc.Workspace.ListFilesAsync();
146+
var afterCreate = await session.Rpc.Workspaces.ListFilesAsync();
147147
Assert.Contains("test.txt", afterCreate.Files);
148148

149149
// Read file
150-
var readResult = await session.Rpc.Workspace.ReadFileAsync("test.txt");
150+
var readResult = await session.Rpc.Workspaces.ReadFileAsync("test.txt");
151151
Assert.Equal(fileContent, readResult.Content);
152152

153153
// Create nested file
154-
await session.Rpc.Workspace.CreateFileAsync("subdir/nested.txt", "Nested content");
154+
await session.Rpc.Workspaces.CreateFileAsync("subdir/nested.txt", "Nested content");
155155

156-
var afterNested = await session.Rpc.Workspace.ListFilesAsync();
156+
var afterNested = await session.Rpc.Workspaces.ListFilesAsync();
157157
Assert.Contains("test.txt", afterNested.Files);
158158
Assert.Contains(afterNested.Files, f => f.Contains("nested.txt"));
159159
}

go/internal/e2e/rpc_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func TestSessionRpc(t *testing.T) {
307307
}
308308

309309
// Initially no files
310-
initialFiles, err := session.RPC.Workspace.ListFiles(t.Context())
310+
initialFiles, err := session.RPC.Workspaces.ListFiles(t.Context())
311311
if err != nil {
312312
t.Fatalf("Failed to list files: %v", err)
313313
}
@@ -317,7 +317,7 @@ func TestSessionRpc(t *testing.T) {
317317

318318
// Create a file
319319
fileContent := "Hello, workspace!"
320-
_, err = session.RPC.Workspace.CreateFile(t.Context(), &rpc.WorkspaceCreateFileRequest{
320+
_, err = session.RPC.Workspaces.CreateFile(t.Context(), &rpc.WorkspacesCreateFileRequest{
321321
Path: "test.txt",
322322
Content: fileContent,
323323
})
@@ -326,7 +326,7 @@ func TestSessionRpc(t *testing.T) {
326326
}
327327

328328
// List files
329-
afterCreate, err := session.RPC.Workspace.ListFiles(t.Context())
329+
afterCreate, err := session.RPC.Workspaces.ListFiles(t.Context())
330330
if err != nil {
331331
t.Fatalf("Failed to list files after create: %v", err)
332332
}
@@ -335,7 +335,7 @@ func TestSessionRpc(t *testing.T) {
335335
}
336336

337337
// Read file
338-
readResult, err := session.RPC.Workspace.ReadFile(t.Context(), &rpc.WorkspaceReadFileRequest{
338+
readResult, err := session.RPC.Workspaces.ReadFile(t.Context(), &rpc.WorkspacesReadFileRequest{
339339
Path: "test.txt",
340340
})
341341
if err != nil {
@@ -346,15 +346,15 @@ func TestSessionRpc(t *testing.T) {
346346
}
347347

348348
// Create nested file
349-
_, err = session.RPC.Workspace.CreateFile(t.Context(), &rpc.WorkspaceCreateFileRequest{
349+
_, err = session.RPC.Workspaces.CreateFile(t.Context(), &rpc.WorkspacesCreateFileRequest{
350350
Path: "subdir/nested.txt",
351351
Content: "Nested content",
352352
})
353353
if err != nil {
354354
t.Fatalf("Failed to create nested file: %v", err)
355355
}
356356

357-
afterNested, err := session.RPC.Workspace.ListFiles(t.Context())
357+
afterNested, err := session.RPC.Workspaces.ListFiles(t.Context())
358358
if err != nil {
359359
t.Fatalf("Failed to list files after nested: %v", err)
360360
}

go/rpc/generated_rpc.go

Lines changed: 115 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)