copilot-sdk-supercharged 2.4.0 → 2.5.0
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.
- checksums.yaml +4 -4
- data/lib/copilot/client.rb +14 -0
- data/lib/copilot/session.rb +1 -0
- data/lib/copilot/types.rb +2 -0
- data/lib/copilot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efac3a7b2a63cd85324b0b7c36d9ed46efdc5c2a792ab13dc4d707cc6f5e71a9
|
|
4
|
+
data.tar.gz: 559699c4a862a0cbc494ecff5b5bdf5451f8f9e45800733264f937294a64055a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94b76e5263549a3df7d9f248f099bc9c98ac0ad66f8a2a05bb7a686a8c5c5519c67e045b2d228ed51f1e4570c3ce799bd34012cb3c8d118ad81fa6277312f3cd
|
|
7
|
+
data.tar.gz: 38d704d797c11b42ad4ae921f25dd4bb98e3995fd58ddf36a0eaa3955f2361c6ab115ab41343ee2a1649445b600a086ae212278c61a6b4945d835296b736c00a
|
data/lib/copilot/client.rb
CHANGED
|
@@ -859,6 +859,20 @@ module Copilot
|
|
|
859
859
|
payload[:otlpProtocol] = config[:otlp_protocol] if config[:otlp_protocol]
|
|
860
860
|
payload[:enableWebSocketResponses] = config[:enable_web_socket_responses] unless config[:enable_web_socket_responses].nil?
|
|
861
861
|
payload[:expAssignments] = config[:exp_assignments] if config[:exp_assignments]
|
|
862
|
+
# --- Second upstream-sync batch (2026-08 parity with @github/copilot-sdk) ---
|
|
863
|
+
payload[:rewindEnabled] = config[:rewind_enabled] unless config[:rewind_enabled].nil? # enable session rewind
|
|
864
|
+
payload[:additionalDirectories] = config[:additional_directories] if config[:additional_directories]
|
|
865
|
+
payload[:disabledMcpServers] = config[:disabled_mcp_servers] if config[:disabled_mcp_servers]
|
|
866
|
+
payload[:githubMcpToolConfig] = config[:github_mcp_tool_config] if config[:github_mcp_tool_config]
|
|
867
|
+
payload[:canvasProvider] = config[:canvas_provider] if config[:canvas_provider]
|
|
868
|
+
payload[:customAgentsLocalOnly] = config[:custom_agents_local_only] unless config[:custom_agents_local_only].nil?
|
|
869
|
+
payload[:builtinPluginDirectories] = config[:builtin_plugin_directories] if config[:builtin_plugin_directories]
|
|
870
|
+
payload[:argsSchema] = config[:args_schema] if config[:args_schema] # agent-factory authoring schema
|
|
871
|
+
payload[:decisionContext] = config[:decision_context] if config[:decision_context] # permission decision context
|
|
872
|
+
payload[:toolSearch] = config[:tool_search] unless config[:tool_search].nil?
|
|
873
|
+
payload[:inProcess] = config[:in_process] unless config[:in_process].nil?
|
|
874
|
+
payload[:experimentalMode] = config[:experimental_mode] unless config[:experimental_mode].nil?
|
|
875
|
+
payload[:contentExclusion] = config[:content_exclusion] unless config[:content_exclusion].nil?
|
|
862
876
|
# MCP OAuth host token handler: signal to the runtime that a handler is registered.
|
|
863
877
|
payload[:mcpAuthHandler] = true if config[:on_mcp_auth_request]
|
|
864
878
|
|
data/lib/copilot/session.rb
CHANGED
|
@@ -349,6 +349,7 @@ module Copilot
|
|
|
349
349
|
"preToolUse" => hooks.on_pre_tool_use,
|
|
350
350
|
"postToolUse" => hooks.on_post_tool_use,
|
|
351
351
|
"userPromptSubmitted" => hooks.on_user_prompt_submitted,
|
|
352
|
+
"userPromptTransformed" => hooks.on_user_prompt_transformed,
|
|
352
353
|
"sessionStart" => hooks.on_session_start,
|
|
353
354
|
"sessionEnd" => hooks.on_session_end,
|
|
354
355
|
"errorOccurred" => hooks.on_error_occurred,
|
data/lib/copilot/types.rb
CHANGED
|
@@ -553,11 +553,13 @@ module Copilot
|
|
|
553
553
|
# Hook configuration for a session. Each value is a callable or nil.
|
|
554
554
|
SessionHooks = Struct.new(
|
|
555
555
|
:on_pre_tool_use, :on_post_tool_use, :on_user_prompt_submitted,
|
|
556
|
+
:on_user_prompt_transformed,
|
|
556
557
|
:on_session_start, :on_session_end, :on_error_occurred,
|
|
557
558
|
keyword_init: true
|
|
558
559
|
) do
|
|
559
560
|
def any_handler?
|
|
560
561
|
[on_pre_tool_use, on_post_tool_use, on_user_prompt_submitted,
|
|
562
|
+
on_user_prompt_transformed,
|
|
561
563
|
on_session_start, on_session_end, on_error_occurred].any?
|
|
562
564
|
end
|
|
563
565
|
end
|
data/lib/copilot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: copilot-sdk-supercharged
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremiah Isaacson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |
|
|
14
14
|
A Ruby SDK for interacting with the GitHub Copilot CLI server via JSON-RPC 2.0.
|