copilot-sdk-supercharged 2.0.4 → 2.1.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 +27 -0
- 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: 79f6a475731f16df17b3203991f92fc319023bd0a014af9d99c74bb157e4050b
|
|
4
|
+
data.tar.gz: 42bb4eaae35c7f957d6d89f106fae22e8568e55c4de96a575a83ae73d24b2994
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1bb1afc7edb488e43d499fe2bd7449cfd87abcde1fba3a7f583c37f2ed9ff7956d9feb17ec771fb02ed1ad09cace505e9ee008dfb3af96525fbdf87428521367
|
|
7
|
+
data.tar.gz: b106266c11dae22b49b337c55931a217efa1073d30e966b8bcd74c63bcdbe74fac70f7a9c78e24a251baf22ef98146618a53c93809efa69a6cad1a46137e46cd
|
data/lib/copilot/client.rb
CHANGED
|
@@ -378,6 +378,16 @@ module Copilot
|
|
|
378
378
|
response["sessionId"]
|
|
379
379
|
end
|
|
380
380
|
|
|
381
|
+
# Get metadata for a specific session.
|
|
382
|
+
#
|
|
383
|
+
# @param session_id [String]
|
|
384
|
+
# @return [Hash] session metadata
|
|
385
|
+
def get_session_metadata(session_id)
|
|
386
|
+
raise_not_connected! unless @rpc_client
|
|
387
|
+
|
|
388
|
+
@rpc_client.request("session.getMetadata", { sessionId: session_id })
|
|
389
|
+
end
|
|
390
|
+
|
|
381
391
|
# Delete a session permanently.
|
|
382
392
|
#
|
|
383
393
|
# @param session_id [String]
|
|
@@ -418,6 +428,23 @@ module Copilot
|
|
|
418
428
|
end
|
|
419
429
|
end
|
|
420
430
|
|
|
431
|
+
# Sets the session filesystem provider configuration.
|
|
432
|
+
#
|
|
433
|
+
# @param initial_cwd [String, nil] Initial working directory
|
|
434
|
+
# @param session_state_path [String, nil] Path for session state persistence
|
|
435
|
+
# @param conventions [Array<String>, nil] Convention strings
|
|
436
|
+
# @return [void]
|
|
437
|
+
def set_session_fs_provider(initial_cwd: nil, session_state_path: nil, conventions: nil)
|
|
438
|
+
raise_not_connected! unless @rpc_client
|
|
439
|
+
|
|
440
|
+
params = {}
|
|
441
|
+
params[:initialCwd] = initial_cwd if initial_cwd
|
|
442
|
+
params[:sessionStatePath] = session_state_path if session_state_path
|
|
443
|
+
params[:conventions] = conventions if conventions
|
|
444
|
+
|
|
445
|
+
@rpc_client.request("sessionFs.setProvider", params)
|
|
446
|
+
end
|
|
447
|
+
|
|
421
448
|
# Subscribe to session lifecycle events.
|
|
422
449
|
#
|
|
423
450
|
# @overload on(&handler)
|
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.0
|
|
4
|
+
version: 2.1.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-05-01 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.
|