robot_lab 0.5.0 → 0.5.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: 65a808d1e3b2ba828752c2382fd3fc3f1193a66f5fb5d37226e0429747f5748e
4
- data.tar.gz: b86e5d9c0e79d53ececcb0f0fe84e1e632579ebab8e49649989f825a8e7f0c72
3
+ metadata.gz: 7830657dbfe2508c38884f5a117e3b1eb6db6223c0c5336ba8fdbdd3c8718732
4
+ data.tar.gz: 3df367453aef2881e24e7e718c7778416e932e4f265deca27961bbe1952db483
5
5
  SHA512:
6
- metadata.gz: 0f6cdec05c631f732d1806f70d6d3a3cb2eb37ee71e611a528508180e9c43b0900c8807e71c893854042f92e48b78f51c2652c2cdc8269b6f5055eed4c981986
7
- data.tar.gz: f4e03bfce73ec1548797a7a4ca2ea7fa12516ec184dab78e78d030b21c728ccc5d051a54a768e6e250c18b4bfb13f35c204b09966b4714116a0b40f0f09952de
6
+ metadata.gz: 5f12198c217fa3465274de33a0dfac869eecc51e679f5f65d6d0ee3f0ad18ce9cb14e346b12f35fff6f0fc948ec8dc19e2dfc4eae66afd94a6e4f469a9d2458b
7
+ data.tar.gz: 7e91d8448bc45512216c1e53ba4dee007c0f40f225a6a34b1b8a51238962b99fd6b26757a6dc842d332ed34ccc73f7a381e404d622ad1e847bfeff5da29c1df0
data/CHANGELOG.md CHANGED
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ### Fixed
12
+
13
+ - **OAuth `grant:` from YAML.** An MCP server config such as `oauth: { grant: client_credentials }` raised `ArgumentError: Unknown OAuth grant`, because ruby_llm accepts the grant only as a Symbol. `RobotLab::MCP.define` now converts a String grant to a Symbol.
14
+
15
+ ## [0.5.0] - 2026-11-01
16
+
11
17
  robot_lab 0.4.0: MCP (Model Context Protocol) now runs on ruby_llm 2.1's
12
18
  built-in client. robot_lab's own JSON-RPC client, four transports and
13
19
  connection poller are gone; a robot's MCP servers are `RubyLLM::MCP`
data/lib/robot_lab/mcp.rb CHANGED
@@ -207,10 +207,18 @@ module RobotLab
207
207
  case oauth
208
208
  when nil, false then nil
209
209
  when true then klass.oauth
210
- else klass.oauth(**oauth.to_h.transform_keys(&:to_sym))
210
+ else klass.oauth(**oauth_settings(oauth))
211
211
  end
212
212
  end
213
213
 
214
+ # Symbolize keys, and the grant: ruby_llm compares it against Symbols
215
+ # (:client_credentials, ...) but YAML configs give Strings.
216
+ def oauth_settings(oauth)
217
+ settings = oauth.to_h.transform_keys(&:to_sym)
218
+ settings[:grant] = settings[:grant].to_sym if settings[:grant].is_a?(String)
219
+ settings
220
+ end
221
+
214
222
  def apply_extensions(klass, extensions)
215
223
  case extensions
216
224
  when nil then nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RobotLab
4
- VERSION = "0.5.0"
4
+ VERSION = "0.5.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robot_lab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dewayne VanHoozer