Commit 7463c54
[Python] Remove
* Remove `copilot.types`
Along the way, simplify `copilot.__init__` to only export the high-level API.
* fix: reorder import statements in test_telemetry.py
* fix: ruff format client.py and session.py
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: update PermissionHandler import path in transform test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fixes after rebase
* fix: use keyword params directly in create_session/resume_session bodies
Remove cfg dict intermediary and use keyword parameters directly,
fixing ty type checker errors where cfg.get() returned Any | None
and shadowed the typed parameter variables.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: restore system message transform support lost during rebase
Add back SectionTransformFn type, _extract_transform_callbacks helper,
_handle_system_message_transform handler, and systemMessage.transform
RPC registration that were part of PR #816 but lost during rebase.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* fix: restore missing SystemMessageCustomizeConfig and related types
The customize mode types (SystemPromptSection, SYSTEM_PROMPT_SECTIONS,
SectionOverride, SystemMessageCustomizeConfig) were dropped when
types.py was deleted but not re-added to session.py. This also moves
SectionTransformFn and SectionOverrideAction before SectionOverride
so the definitions flow in dependency order.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>copilot.types (#871)1 parent 5ecfc94 commit 7463c54
File tree
68 files changed
+1744
-1822
lines changed- docs
- auth
- features
- hooks
- setup
- python
- copilot
- e2e
- testharness
- samples
- test/scenarios
- auth
- byok-anthropic/python
- byok-azure/python
- byok-ollama/python
- byok-openai/python
- gh-app/python
- bundling
- app-backend-to-server/python
- app-direct-server/python
- container-proxy/python
- fully-bundled/python
- callbacks
- hooks/python
- permissions/python
- user-input/python
- modes
- default/python
- minimal/python
- prompts
- attachments/python
- reasoning-effort/python
- system-message/python
- sessions
- concurrent-sessions/python
- infinite-sessions/python
- session-resume/python
- streaming/python
- tools
- custom-agents/python
- mcp-servers/python
- no-tools/python
- skills/python
- tool-filtering/python
- tool-overrides/python
- virtual-filesystem/python
- transport
- reconnect/python
- stdio/python
- tcp/python
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
68 files changed
+1744
-1822
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
| 280 | + | |
279 | 281 | | |
280 | 282 | | |
281 | 283 | | |
| |||
651 | 653 | | |
652 | 654 | | |
653 | 655 | | |
654 | | - | |
| 656 | + | |
| 657 | + | |
655 | 658 | | |
656 | 659 | | |
657 | 660 | | |
| |||
919 | 922 | | |
920 | 923 | | |
921 | 924 | | |
922 | | - | |
| 925 | + | |
| 926 | + | |
923 | 927 | | |
924 | 928 | | |
925 | 929 | | |
| |||
1312 | 1316 | | |
1313 | 1317 | | |
1314 | 1318 | | |
1315 | | - | |
| 1319 | + | |
| 1320 | + | |
1316 | 1321 | | |
1317 | 1322 | | |
1318 | 1323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments