copilot-sdk-supercharged 2.2.1__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/.gitignore +0 -3
- {copilot_sdk_supercharged-2.2.1/copilot_sdk_supercharged.egg-info → copilot_sdk_supercharged-2.4.0}/PKG-INFO +4 -1
- copilot_sdk_supercharged-2.4.0/copilot/__init__.py +344 -0
- copilot_sdk_supercharged-2.4.0/copilot/__main__.py +6 -0
- copilot_sdk_supercharged-2.4.0/copilot/_cli_download.py +386 -0
- copilot_sdk_supercharged-2.4.0/copilot/_cli_version.py +95 -0
- copilot_sdk_supercharged-2.4.0/copilot/_diagnostics.py +29 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/_jsonrpc.py +155 -24
- copilot_sdk_supercharged-2.4.0/copilot/_mode.py +347 -0
- copilot_sdk_supercharged-2.4.0/copilot/canvas.py +164 -0
- copilot_sdk_supercharged-2.4.0/copilot/client.py +4072 -0
- copilot_sdk_supercharged-2.4.0/copilot/copilot_request_handler.py +733 -0
- copilot_sdk_supercharged-2.4.0/copilot/generated/__init__.py +6 -0
- copilot_sdk_supercharged-2.4.0/copilot/generated/rpc.py +29329 -0
- copilot_sdk_supercharged-2.4.0/copilot/generated/session_events.py +9572 -0
- copilot_sdk_supercharged-2.4.0/copilot/rpc.py +13 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/session.py +1120 -334
- copilot_sdk_supercharged-2.4.0/copilot/session_events.py +10 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/session_fs_provider.py +114 -20
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/tools.py +54 -8
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0/copilot_sdk_supercharged.egg-info}/PKG-INFO +4 -1
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot_sdk_supercharged.egg-info/SOURCES.txt +44 -1
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot_sdk_supercharged.egg-info/requires.txt +3 -0
- copilot_sdk_supercharged-2.4.0/e2e/_copilot_request_helpers.py +360 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/conftest.py +4 -1
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_abort_e2e.py +19 -4
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_agent_and_compact_rpc_e2e.py +8 -9
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_builtin_tools_e2e.py +23 -9
- copilot_sdk_supercharged-2.4.0/e2e/test_byok_bearer_token_provider_e2e.py +255 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_canvas_e2e.py +169 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_client_api_e2e.py +7 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_client_e2e.py +30 -48
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_client_lifecycle_e2e.py +24 -31
- copilot_sdk_supercharged-2.4.0/e2e/test_client_options_e2e.py +588 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_commands_e2e.py +11 -14
- copilot_sdk_supercharged-2.4.0/e2e/test_compaction_e2e.py +142 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_connection_token.py +9 -14
- copilot_sdk_supercharged-2.4.0/e2e/test_copilot_request_cancel_error_e2e.py +130 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_copilot_request_handler_e2e.py +284 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_copilot_request_session_id_e2e.py +120 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_error_resilience_e2e.py +1 -1
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_event_fidelity_e2e.py +14 -18
- copilot_sdk_supercharged-2.4.0/e2e/test_github_telemetry_e2e.py +57 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_hooks_e2e.py +6 -2
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_hooks_extended_e2e.py +74 -15
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_mcp_and_agents_e2e.py +64 -42
- copilot_sdk_supercharged-2.4.0/e2e/test_mcp_oauth_e2e.py +333 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_mode_empty_e2e.py +221 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_mode_handlers_e2e.py +209 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_multi_client_e2e.py +152 -113
- copilot_sdk_supercharged-2.4.0/e2e/test_multi_provider_registry_e2e.py +206 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_multi_turn_e2e.py +2 -2
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_pending_work_resume_e2e.py +118 -71
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_per_session_auth_e2e.py +35 -13
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_permissions_e2e.py +69 -24
- copilot_sdk_supercharged-2.4.0/e2e/test_pre_mcp_tool_call_hook_e2e.py +120 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_provider_endpoint_e2e.py +117 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_commands_e2e.py +117 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_e2e.py +18 -15
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_event_log_e2e.py +157 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_event_side_effects_e2e.py +11 -11
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_mcp_and_skills_e2e.py +435 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_mcp_config_e2e.py +10 -10
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_mcp_lifecycle_e2e.py +151 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_queue_e2e.py +168 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_remote_e2e.py +86 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_schedule_e2e.py +37 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_server_e2e.py +574 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_server_misc_e2e.py +235 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_server_plugins_e2e.py +293 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_server_remote_control_e2e.py +130 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_session_state_e2e.py +402 -34
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_session_state_extras_e2e.py +303 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_shell_and_fleet_e2e.py +14 -5
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_shell_user_requested_e2e.py +122 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_rpc_tasks_and_handlers_e2e.py +202 -24
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_ui_ephemeral_query_e2e.py +33 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_rpc_workspace_checkpoints_e2e.py +133 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_session_config_e2e.py +316 -11
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_session_e2e.py +154 -96
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_session_fs_e2e.py +70 -43
- copilot_sdk_supercharged-2.4.0/e2e/test_session_fs_sqlite_e2e.py +282 -0
- copilot_sdk_supercharged-2.4.0/e2e/test_session_todos_changed_e2e.py +47 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_skills_e2e.py +2 -1
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_streaming_fidelity_e2e.py +12 -17
- copilot_sdk_supercharged-2.4.0/e2e/test_subagent_hooks_e2e.py +92 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_suspend_e2e.py +21 -17
- copilot_sdk_supercharged-2.4.0/e2e/test_system_message_sections_e2e.py +73 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_telemetry_e2e.py +23 -51
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_tool_results_e2e.py +11 -10
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_tools_e2e.py +53 -6
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_ui_elicitation_multi_client_e2e.py +18 -23
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/testharness/__init__.py +4 -2
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/testharness/context.py +64 -22
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/testharness/helper.py +30 -2
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/pyproject.toml +4 -4
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/samples/chat.py +2 -2
- copilot_sdk_supercharged-2.4.0/samples/manual_tool_resume.py +123 -0
- copilot_sdk_supercharged-2.4.0/scripts/inject-cli-version.mjs +56 -0
- copilot_sdk_supercharged-2.4.0/test_canvas.py +360 -0
- copilot_sdk_supercharged-2.4.0/test_client.py +2532 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_commands_and_elicitation.py +173 -34
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_event_forward_compatibility.py +86 -9
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_jsonrpc.py +1 -1
- copilot_sdk_supercharged-2.4.0/test_rpc_generated.py +24 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_rpc_timeout.py +5 -4
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_telemetry.py +5 -12
- copilot_sdk_supercharged-2.4.0/test_tool_set.py +292 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/test_tools.py +42 -0
- copilot_sdk_supercharged-2.2.1/copilot/__init__.py +0 -80
- copilot_sdk_supercharged-2.2.1/copilot/client.py +0 -2832
- copilot_sdk_supercharged-2.2.1/copilot/generated/__init__.py +0 -0
- copilot_sdk_supercharged-2.2.1/copilot/generated/rpc.py +0 -6937
- copilot_sdk_supercharged-2.2.1/copilot/generated/session_events.py +0 -4903
- copilot_sdk_supercharged-2.2.1/e2e/test_client_options_e2e.py +0 -328
- copilot_sdk_supercharged-2.2.1/e2e/test_compaction_e2e.py +0 -94
- copilot_sdk_supercharged-2.2.1/e2e/test_rpc_mcp_and_skills_e2e.py +0 -198
- copilot_sdk_supercharged-2.2.1/e2e/test_rpc_server_e2e.py +0 -194
- copilot_sdk_supercharged-2.2.1/scripts/build-wheels.mjs +0 -373
- copilot_sdk_supercharged-2.2.1/test_client.py +0 -917
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/README.md +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/_sdk_protocol_version.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/_telemetry.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot/py.typed +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot_sdk_supercharged.egg-info/dependency_links.txt +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/copilot_sdk_supercharged.egg-info/top_level.txt +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/__init__.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_ask_user_e2e.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_system_message_transform_e2e.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/test_ui_elicitation_e2e.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/e2e/testharness/proxy.py +0 -0
- {copilot_sdk_supercharged-2.2.1 → copilot_sdk_supercharged-2.4.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: copilot-sdk-supercharged
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.4.0
|
|
4
4
|
Summary: GitHub Copilot SDK Supercharged - Python SDK for programmatic control of GitHub Copilot CLI. Supports 40 languages.
|
|
5
5
|
Author: jeremiahjordanisaacson
|
|
6
6
|
License-Expression: MIT
|
|
@@ -17,6 +17,7 @@ Requires-Python: >=3.11
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: python-dateutil>=2.9.0.post0
|
|
19
19
|
Requires-Dist: pydantic>=2.13.3
|
|
20
|
+
Requires-Dist: httpx>=0.24.0
|
|
20
21
|
Provides-Extra: dev
|
|
21
22
|
Requires-Dist: ruff>=0.15.12; extra == "dev"
|
|
22
23
|
Requires-Dist: ty<0.0.34,>=0.0.33; extra == "dev"
|
|
@@ -24,6 +25,8 @@ Requires-Dist: pytest>=9.0.3; extra == "dev"
|
|
|
24
25
|
Requires-Dist: pytest-asyncio>=1.3.0; extra == "dev"
|
|
25
26
|
Requires-Dist: pytest-timeout>=2.4.0; extra == "dev"
|
|
26
27
|
Requires-Dist: httpx>=0.28.1; extra == "dev"
|
|
28
|
+
Requires-Dist: websockets>=12.0; extra == "dev"
|
|
29
|
+
Requires-Dist: opentelemetry-sdk>=1.0.0; extra == "dev"
|
|
27
30
|
Provides-Extra: telemetry
|
|
28
31
|
Requires-Dist: opentelemetry-api>=1.41.1; extra == "telemetry"
|
|
29
32
|
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Copilot SDK - Python Client for GitHub Copilot CLI
|
|
3
|
+
|
|
4
|
+
JSON-RPC based SDK for programmatic control of GitHub Copilot CLI
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from importlib.metadata import PackageNotFoundError
|
|
8
|
+
from importlib.metadata import version as _pkg_version
|
|
9
|
+
|
|
10
|
+
from . import rpc as rpc # noqa: F401 -- register the public ``copilot.rpc`` namespace
|
|
11
|
+
|
|
12
|
+
# Register the public ``copilot.session_events`` namespace.
|
|
13
|
+
from . import session_events as session_events # noqa: F401
|
|
14
|
+
from ._mode import (
|
|
15
|
+
BUILTIN_TOOLS_ISOLATED,
|
|
16
|
+
CopilotClientMode,
|
|
17
|
+
ToolSet,
|
|
18
|
+
)
|
|
19
|
+
from .canvas import (
|
|
20
|
+
CanvasAction,
|
|
21
|
+
CanvasDeclaration,
|
|
22
|
+
CanvasError,
|
|
23
|
+
CanvasHandler,
|
|
24
|
+
CanvasHostContext,
|
|
25
|
+
CanvasHostContextCapabilities,
|
|
26
|
+
CanvasJsonSchema,
|
|
27
|
+
ExtensionInfo,
|
|
28
|
+
OpenCanvasInstance,
|
|
29
|
+
)
|
|
30
|
+
from .client import (
|
|
31
|
+
CapiSessionOptions,
|
|
32
|
+
ChildProcessRuntimeConnection,
|
|
33
|
+
CloudSessionOptions,
|
|
34
|
+
CloudSessionRepository,
|
|
35
|
+
CopilotClient,
|
|
36
|
+
GetAuthStatusResponse,
|
|
37
|
+
GetStatusResponse,
|
|
38
|
+
LogLevel,
|
|
39
|
+
ModelBilling,
|
|
40
|
+
ModelCapabilities,
|
|
41
|
+
ModelInfo,
|
|
42
|
+
ModelLimits,
|
|
43
|
+
ModelPolicy,
|
|
44
|
+
ModelSupports,
|
|
45
|
+
ModelVisionLimits,
|
|
46
|
+
PingResponse,
|
|
47
|
+
RemoteSessionMode,
|
|
48
|
+
RuntimeConnection,
|
|
49
|
+
SessionBackgroundEvent,
|
|
50
|
+
SessionContext,
|
|
51
|
+
SessionCreatedEvent,
|
|
52
|
+
SessionDeletedEvent,
|
|
53
|
+
SessionForegroundEvent,
|
|
54
|
+
SessionLifecycleEvent,
|
|
55
|
+
SessionLifecycleEventBase,
|
|
56
|
+
SessionLifecycleEventMetadata,
|
|
57
|
+
SessionLifecycleEventType,
|
|
58
|
+
SessionLifecycleHandler,
|
|
59
|
+
SessionListFilter,
|
|
60
|
+
SessionMetadata,
|
|
61
|
+
SessionUpdatedEvent,
|
|
62
|
+
StdioRuntimeConnection,
|
|
63
|
+
StopError,
|
|
64
|
+
TcpRuntimeConnection,
|
|
65
|
+
TelemetryConfig,
|
|
66
|
+
UriRuntimeConnection,
|
|
67
|
+
)
|
|
68
|
+
from .copilot_request_handler import (
|
|
69
|
+
CopilotRequestContext,
|
|
70
|
+
CopilotRequestHandler,
|
|
71
|
+
CopilotWebSocketCloseStatus,
|
|
72
|
+
CopilotWebSocketForwarder,
|
|
73
|
+
CopilotWebSocketHandler,
|
|
74
|
+
LlmInferenceHeaders,
|
|
75
|
+
)
|
|
76
|
+
from .generated.rpc import (
|
|
77
|
+
GitHubTelemetryClientInfo,
|
|
78
|
+
GitHubTelemetryEvent,
|
|
79
|
+
GitHubTelemetryNotification,
|
|
80
|
+
ModelBillingTokenPrices,
|
|
81
|
+
ModelBillingTokenPricesLongContext,
|
|
82
|
+
)
|
|
83
|
+
from .generated.session_events import (
|
|
84
|
+
PermissionRequest,
|
|
85
|
+
SessionEvent,
|
|
86
|
+
SessionEventType,
|
|
87
|
+
)
|
|
88
|
+
from .session import (
|
|
89
|
+
AutoModeSwitchHandler,
|
|
90
|
+
AutoModeSwitchRequest,
|
|
91
|
+
AutoModeSwitchResponse,
|
|
92
|
+
BearerTokenProvider,
|
|
93
|
+
CommandContext,
|
|
94
|
+
CommandDefinition,
|
|
95
|
+
CopilotSession,
|
|
96
|
+
CreateSessionFsHandler,
|
|
97
|
+
ElicitationContext,
|
|
98
|
+
ElicitationHandler,
|
|
99
|
+
ElicitationParams,
|
|
100
|
+
ElicitationResult,
|
|
101
|
+
ErrorOccurredHandler,
|
|
102
|
+
ErrorOccurredHookInput,
|
|
103
|
+
ErrorOccurredHookOutput,
|
|
104
|
+
ExitPlanModeHandler,
|
|
105
|
+
ExitPlanModeRequest,
|
|
106
|
+
ExitPlanModeResult,
|
|
107
|
+
InfiniteSessionConfig,
|
|
108
|
+
InputOptions,
|
|
109
|
+
LargeToolOutputConfig,
|
|
110
|
+
McpAuthContext,
|
|
111
|
+
McpAuthHandler,
|
|
112
|
+
McpAuthRequest,
|
|
113
|
+
McpAuthResult,
|
|
114
|
+
McpAuthStaticClientConfig,
|
|
115
|
+
McpAuthToken,
|
|
116
|
+
McpAuthWwwAuthenticateParams,
|
|
117
|
+
MCPHTTPServerConfig,
|
|
118
|
+
MCPServerConfig,
|
|
119
|
+
MCPStdioServerConfig,
|
|
120
|
+
ModelCapabilitiesOverride,
|
|
121
|
+
ModelLimitsOverride,
|
|
122
|
+
ModelSupportsOverride,
|
|
123
|
+
ModelVisionLimitsOverride,
|
|
124
|
+
NamedProviderConfig,
|
|
125
|
+
PermissionHandler,
|
|
126
|
+
PermissionNoResult,
|
|
127
|
+
PermissionRequestResult,
|
|
128
|
+
PostToolUseFailureHandler,
|
|
129
|
+
PostToolUseFailureHookInput,
|
|
130
|
+
PostToolUseFailureHookOutput,
|
|
131
|
+
PostToolUseHandler,
|
|
132
|
+
PostToolUseHookInput,
|
|
133
|
+
PostToolUseHookOutput,
|
|
134
|
+
PreMcpToolCallHandler,
|
|
135
|
+
PreMcpToolCallHookInput,
|
|
136
|
+
PreMcpToolCallHookOutput,
|
|
137
|
+
PreToolUseHandler,
|
|
138
|
+
PreToolUseHookInput,
|
|
139
|
+
PreToolUseHookOutput,
|
|
140
|
+
ProviderConfig,
|
|
141
|
+
ProviderModelConfig,
|
|
142
|
+
ProviderTokenArgs,
|
|
143
|
+
ReasoningSummary,
|
|
144
|
+
SessionCapabilities,
|
|
145
|
+
SessionEndHandler,
|
|
146
|
+
SessionEndHookInput,
|
|
147
|
+
SessionEndHookOutput,
|
|
148
|
+
SessionEventHandler,
|
|
149
|
+
SessionFsCapabilities,
|
|
150
|
+
SessionFsConfig,
|
|
151
|
+
SessionHooks,
|
|
152
|
+
SessionLimitsConfig,
|
|
153
|
+
SessionStartHandler,
|
|
154
|
+
SessionStartHookInput,
|
|
155
|
+
SessionStartHookOutput,
|
|
156
|
+
SessionUiApi,
|
|
157
|
+
SessionUiCapabilities,
|
|
158
|
+
SystemMessageConfig,
|
|
159
|
+
UserInputHandler,
|
|
160
|
+
UserInputRequest,
|
|
161
|
+
UserInputResponse,
|
|
162
|
+
UserPromptSubmittedHandler,
|
|
163
|
+
UserPromptSubmittedHookInput,
|
|
164
|
+
UserPromptSubmittedHookOutput,
|
|
165
|
+
)
|
|
166
|
+
from .session_fs_provider import (
|
|
167
|
+
SessionFsFileInfo,
|
|
168
|
+
SessionFsProvider,
|
|
169
|
+
SessionFsSqliteProvider,
|
|
170
|
+
SessionFsSqliteQueryResult,
|
|
171
|
+
create_session_fs_adapter,
|
|
172
|
+
)
|
|
173
|
+
from .tools import (
|
|
174
|
+
Tool,
|
|
175
|
+
ToolBinaryResult,
|
|
176
|
+
ToolInvocation,
|
|
177
|
+
ToolResult,
|
|
178
|
+
ToolResultType,
|
|
179
|
+
convert_mcp_call_tool_result,
|
|
180
|
+
define_tool,
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
try:
|
|
184
|
+
__version__ = _pkg_version("github-copilot-sdk")
|
|
185
|
+
except PackageNotFoundError:
|
|
186
|
+
# No installed package metadata (e.g. running from a source checkout that
|
|
187
|
+
# was never installed). Use a sentinel that can never masquerade as a real
|
|
188
|
+
# release rather than a hardcoded version that would silently go stale.
|
|
189
|
+
__version__ = "0.0.0.dev0"
|
|
190
|
+
|
|
191
|
+
__all__ = [
|
|
192
|
+
"AutoModeSwitchHandler",
|
|
193
|
+
"AutoModeSwitchRequest",
|
|
194
|
+
"AutoModeSwitchResponse",
|
|
195
|
+
"BUILTIN_TOOLS_ISOLATED",
|
|
196
|
+
"CanvasAction",
|
|
197
|
+
"CanvasDeclaration",
|
|
198
|
+
"CanvasError",
|
|
199
|
+
"CanvasHandler",
|
|
200
|
+
"CanvasHostContext",
|
|
201
|
+
"CanvasHostContextCapabilities",
|
|
202
|
+
"CanvasJsonSchema",
|
|
203
|
+
"CapiSessionOptions",
|
|
204
|
+
"ChildProcessRuntimeConnection",
|
|
205
|
+
"CloudSessionOptions",
|
|
206
|
+
"CloudSessionRepository",
|
|
207
|
+
"CommandContext",
|
|
208
|
+
"CommandDefinition",
|
|
209
|
+
"CopilotClient",
|
|
210
|
+
"CopilotClientMode",
|
|
211
|
+
"CopilotSession",
|
|
212
|
+
"CopilotRequestContext",
|
|
213
|
+
"CopilotRequestHandler",
|
|
214
|
+
"CopilotWebSocketCloseStatus",
|
|
215
|
+
"CopilotWebSocketHandler",
|
|
216
|
+
"CreateSessionFsHandler",
|
|
217
|
+
"ElicitationContext",
|
|
218
|
+
"ElicitationHandler",
|
|
219
|
+
"ElicitationParams",
|
|
220
|
+
"ElicitationResult",
|
|
221
|
+
"ErrorOccurredHandler",
|
|
222
|
+
"ErrorOccurredHookInput",
|
|
223
|
+
"ErrorOccurredHookOutput",
|
|
224
|
+
"ExitPlanModeHandler",
|
|
225
|
+
"ExitPlanModeRequest",
|
|
226
|
+
"ExitPlanModeResult",
|
|
227
|
+
"ExtensionInfo",
|
|
228
|
+
"CopilotWebSocketForwarder",
|
|
229
|
+
"GetAuthStatusResponse",
|
|
230
|
+
"BearerTokenProvider",
|
|
231
|
+
"GetStatusResponse",
|
|
232
|
+
"GitHubTelemetryClientInfo",
|
|
233
|
+
"GitHubTelemetryEvent",
|
|
234
|
+
"GitHubTelemetryNotification",
|
|
235
|
+
"InfiniteSessionConfig",
|
|
236
|
+
"InputOptions",
|
|
237
|
+
"LargeToolOutputConfig",
|
|
238
|
+
"LlmInferenceHeaders",
|
|
239
|
+
"LogLevel",
|
|
240
|
+
"MCPHTTPServerConfig",
|
|
241
|
+
"MCPServerConfig",
|
|
242
|
+
"MCPStdioServerConfig",
|
|
243
|
+
"McpAuthContext",
|
|
244
|
+
"McpAuthHandler",
|
|
245
|
+
"McpAuthRequest",
|
|
246
|
+
"McpAuthResult",
|
|
247
|
+
"McpAuthStaticClientConfig",
|
|
248
|
+
"McpAuthToken",
|
|
249
|
+
"McpAuthWwwAuthenticateParams",
|
|
250
|
+
"ModelBilling",
|
|
251
|
+
"ModelBillingTokenPrices",
|
|
252
|
+
"ModelBillingTokenPricesLongContext",
|
|
253
|
+
"ModelCapabilities",
|
|
254
|
+
"ModelCapabilitiesOverride",
|
|
255
|
+
"ModelInfo",
|
|
256
|
+
"ModelLimits",
|
|
257
|
+
"ModelLimitsOverride",
|
|
258
|
+
"ModelPolicy",
|
|
259
|
+
"ModelSupports",
|
|
260
|
+
"ModelSupportsOverride",
|
|
261
|
+
"ModelVisionLimits",
|
|
262
|
+
"ModelVisionLimitsOverride",
|
|
263
|
+
"NamedProviderConfig",
|
|
264
|
+
"OpenCanvasInstance",
|
|
265
|
+
"PermissionHandler",
|
|
266
|
+
"PermissionNoResult",
|
|
267
|
+
"PermissionRequest",
|
|
268
|
+
"PermissionRequestResult",
|
|
269
|
+
"PingResponse",
|
|
270
|
+
"PostToolUseHandler",
|
|
271
|
+
"PostToolUseFailureHandler",
|
|
272
|
+
"PostToolUseFailureHookInput",
|
|
273
|
+
"PostToolUseFailureHookOutput",
|
|
274
|
+
"PostToolUseHookInput",
|
|
275
|
+
"PostToolUseHookOutput",
|
|
276
|
+
"PreMcpToolCallHandler",
|
|
277
|
+
"PreMcpToolCallHookInput",
|
|
278
|
+
"PreMcpToolCallHookOutput",
|
|
279
|
+
"PreToolUseHandler",
|
|
280
|
+
"PreToolUseHookInput",
|
|
281
|
+
"PreToolUseHookOutput",
|
|
282
|
+
"ProviderConfig",
|
|
283
|
+
"ProviderModelConfig",
|
|
284
|
+
"ProviderTokenArgs",
|
|
285
|
+
"ReasoningSummary",
|
|
286
|
+
"RemoteSessionMode",
|
|
287
|
+
"RuntimeConnection",
|
|
288
|
+
"rpc",
|
|
289
|
+
"session_events",
|
|
290
|
+
"SessionBackgroundEvent",
|
|
291
|
+
"SessionCapabilities",
|
|
292
|
+
"SessionContext",
|
|
293
|
+
"SessionCreatedEvent",
|
|
294
|
+
"SessionDeletedEvent",
|
|
295
|
+
"SessionEndHandler",
|
|
296
|
+
"SessionEndHookInput",
|
|
297
|
+
"SessionEndHookOutput",
|
|
298
|
+
"SessionEvent",
|
|
299
|
+
"SessionEventHandler",
|
|
300
|
+
"SessionEventType",
|
|
301
|
+
"SessionForegroundEvent",
|
|
302
|
+
"SessionFsCapabilities",
|
|
303
|
+
"SessionFsConfig",
|
|
304
|
+
"SessionFsFileInfo",
|
|
305
|
+
"SessionFsProvider",
|
|
306
|
+
"SessionFsSqliteProvider",
|
|
307
|
+
"SessionFsSqliteQueryResult",
|
|
308
|
+
"SessionHooks",
|
|
309
|
+
"SessionLimitsConfig",
|
|
310
|
+
"SessionLifecycleEvent",
|
|
311
|
+
"SessionLifecycleEventBase",
|
|
312
|
+
"SessionLifecycleEventMetadata",
|
|
313
|
+
"SessionLifecycleEventType",
|
|
314
|
+
"SessionLifecycleHandler",
|
|
315
|
+
"SessionListFilter",
|
|
316
|
+
"SessionMetadata",
|
|
317
|
+
"SessionStartHandler",
|
|
318
|
+
"SessionStartHookInput",
|
|
319
|
+
"SessionStartHookOutput",
|
|
320
|
+
"SessionUiApi",
|
|
321
|
+
"SessionUiCapabilities",
|
|
322
|
+
"SessionUpdatedEvent",
|
|
323
|
+
"StdioRuntimeConnection",
|
|
324
|
+
"StopError",
|
|
325
|
+
"SystemMessageConfig",
|
|
326
|
+
"TcpRuntimeConnection",
|
|
327
|
+
"TelemetryConfig",
|
|
328
|
+
"Tool",
|
|
329
|
+
"ToolBinaryResult",
|
|
330
|
+
"ToolInvocation",
|
|
331
|
+
"ToolResult",
|
|
332
|
+
"ToolResultType",
|
|
333
|
+
"ToolSet",
|
|
334
|
+
"UriRuntimeConnection",
|
|
335
|
+
"UserInputHandler",
|
|
336
|
+
"UserInputRequest",
|
|
337
|
+
"UserInputResponse",
|
|
338
|
+
"UserPromptSubmittedHandler",
|
|
339
|
+
"UserPromptSubmittedHookInput",
|
|
340
|
+
"UserPromptSubmittedHookOutput",
|
|
341
|
+
"convert_mcp_call_tool_result",
|
|
342
|
+
"create_session_fs_adapter",
|
|
343
|
+
"define_tool",
|
|
344
|
+
]
|