copilot-sdk-supercharged 2.0.5 → 2.1.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/copilot/client.rb +27 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57c242cff28bcc2a3c89c40c81b3f220937b86b222b11c31da4683413a841c46
4
- data.tar.gz: a0cfcf99b5fb1c07551ed84bd66906ed4a6a391e064809fbe394e79d51c7dbd1
3
+ metadata.gz: 58470ff55b353b125adce857696776eb816a9f856e527a1e8726b70887f5f854
4
+ data.tar.gz: 3bd3f8a6dc05f8323e446154353be619658a7e0c80fb250db7cdbb7df0173ec7
5
5
  SHA512:
6
- metadata.gz: a2f91d14f920b636f5ca3e1be91b052a07317d478c1f32125ec7f7685c0b820f87f7992a0bd1430449be386305192fe431c91eb7c7a2dfe90c17479759574bf3
7
- data.tar.gz: cba0d96224e720d21b92c84b5e2c8587aa2d4c1320be822850d4cfdba0423000c0768ba9e8d93b9c8d29d855b2744b3cc37d83237d04333b351dd711089790ab
6
+ metadata.gz: e7455cbcd0409b799a22cf905259ba1892d8874df46bc4f047e7c0825b3859b24b104191c50c0c54d8bb74bb1b0e6197200040106b27ba70bd6adace72cf821e
7
+ data.tar.gz: b297f4e3c10f2e76a3d9e512f67ad9e029329dc1f525be3948f02f29261892cb0ed7afa33baad430f6549e4bc07d5de99e82dc58c177a5318f6a999ea550909e
@@ -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.5
4
+ version: 2.1.1
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-05-01 00:00:00.000000000 Z
11
+ date: 2026-05-03 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.