Commit 7780b50
Update @github/copilot to 1.0.55-6 (#1471)
* Update @github/copilot to 1.0.55-6
- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
* Update canvas API for canvas.action.invoke rename in 1.0.55-6
The 1.0.55-6 schema renamed the Canvas action invocation API:
- `CanvasInvokeActionRequest` -> `CanvasActionInvokeRequest`
- `CanvasInvokeActionResult` -> `CanvasActionInvokeResult`
- Host API `canvas.invokeAction(...)` -> `canvas.action.invoke(...)`
- Provider handler `invokeAction`/`invoke_action`/`InvokeAction` ->
`invoke`/`Invoke`
- Wire methods `session.canvas.invokeAction` / `canvas.invokeAction` ->
`session.canvas.action.invoke` / `canvas.action.invoke`
- Rust constants `SESSION_CANVAS_INVOKEACTION` / `CANVAS_INVOKEACTION` ->
`SESSION_CANVAS_ACTION_INVOKE` / `CANVAS_ACTION_INVOKE`
The provider-side request type `CanvasProviderInvokeActionRequest` is
unchanged.
Update the host/provider adapters and tests in Node, Python, Go, .NET, and Rust
to follow the new nested `action` group and renamed handler method.
Also fix a Python codegen bug in `scripts/codegen/python.ts`:
`emitClientSessionApiRegistration` was iterating only top-level methods of
each handler group via `Object.entries(...).filter(isRpcMethod)`, so methods
nested under sub-groups (like `canvas.action.*`) were silently dropped from
the generated `CanvasHandler` Protocol and from
`register_client_session_api_handlers`. Use the existing recursive
`collectRpcMethods` helper and derive the handler method name from the last
segment of the RPC method path, matching how TS/C#/Go/Rust codegens already
flatten nested groups.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Wait for session.start in OnEvent tests
In CLI 1.0.55-6 the `session.start` event is dispatched via the asynchronous
`session.event` notification channel, so it may not be delivered to the
`onEvent`/`on_event` callback by the time `createSession` returns.
Update the Node and Python `should receive session events` tests to wait for
the event using `vi.waitFor`/`asyncio.Event`. The .NET and Go equivalents
already use async wait primitives (`TaskCompletionSource`/channel + timeout).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 102cd3e commit 7780b50
35 files changed
Lines changed: 377 additions & 308 deletions
File tree
- dotnet
- src
- Generated
- test/E2E
- go
- internal/e2e
- rpc
- nodejs
- samples
- src
- generated
- test
- e2e
- python
- copilot
- generated
- e2e
- rust
- src
- generated
- tests
- e2e
- scripts/codegen
- test/harness
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
939 | 939 | | |
940 | 940 | | |
941 | 941 | | |
942 | | - | |
| 942 | + | |
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2630 | 2630 | | |
2631 | 2631 | | |
2632 | 2632 | | |
2633 | | - | |
| 2633 | + | |
2634 | 2634 | | |
2635 | 2635 | | |
2636 | 2636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
0 commit comments