swarm_sdk 2.0.0 → 2.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1414a5d98971c8dde0d38481f4510a50770821a667bdbb909cc795538c40fc8a
4
- data.tar.gz: fae3e5e52be1d0bb2e7879ea53a57e9b65d3de2e2d77cab42f03c5982ea37ff3
3
+ metadata.gz: c45fe12dc7f0cc16c5e82d539f941d22cfc847919f108000b73a6ff259819d24
4
+ data.tar.gz: cd18d30692c2686c60c3e20e48081ecab97ab81f7bc9051da8bb9a3bf862a979
5
5
  SHA512:
6
- metadata.gz: 3a02be54f9369614496919d1642d032630c766ed22ceaffed2a31e5400122e4716413ffe1a1d3d8b1b1ce96c27227183224250a4e03a20b3c6763b5fc7f64fc1
7
- data.tar.gz: beba552988fe6a545d7e8e5b638591a6890c6e07699f3317c819521c5bb68d02d99d5489de2889aeaf92da3d5097d4320223bed2fae3bd11e5d718fc2c06c1f1
6
+ metadata.gz: 9c1d02a1552463ab920c2e851a47449e6ed6eec82cd8874781cbc37e526937094a0d4b4625ae68596abb1825224fd7021c918f68f32f9d5d900406bf381c883e
7
+ data.tar.gz: 85ba1af56c5fa6726565a8b65a43a5268aa01ee9381e1c12afc0d0ae75544f82a689bf2939b4b0a9213046c3e8efda84fa83c30a2f06f5bcbc4cd3c1b43fbbeb
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SwarmSDK
4
- VERSION = "2.0.0"
4
+ VERSION = "2.0.1"
5
5
  end
data/lib/swarm_sdk.rb CHANGED
@@ -124,3 +124,19 @@ RubyLLM.configure do |config|
124
124
  config.gpustack_api_base ||= ENV["GPUSTACK_API_BASE"]
125
125
  config.gpustack_api_key ||= ENV["GPUSTACK_API_KEY"]
126
126
  end
127
+
128
+ # monkey patch ruby_llm/mcp to add `id` when sending "notifications/initialized" message
129
+ # https://github.com/patvice/ruby_llm-mcp/issues/65
130
+ require "ruby_llm/mcp/notifications/initialize"
131
+
132
+ module RubyLLM
133
+ module MCP
134
+ module Notifications
135
+ class Initialize
136
+ def call
137
+ @coordinator.request(notification_body, add_id: true, wait_for_response: false)
138
+ end
139
+ end
140
+ end
141
+ end
142
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swarm_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Arruda