lex-adapter 0.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +13 -0
- data/LICENSE +21 -0
- data/README.md +40 -0
- data/lib/legion/extensions/adapter/adapters/claude_code.rb +49 -0
- data/lib/legion/extensions/adapter/adapters/codex.rb +49 -0
- data/lib/legion/extensions/adapter/adapters/generic_http.rb +62 -0
- data/lib/legion/extensions/adapter/adapters/generic_process.rb +67 -0
- data/lib/legion/extensions/adapter/base.rb +25 -0
- data/lib/legion/extensions/adapter/registry.rb +33 -0
- data/lib/legion/extensions/adapter/runners/adapter.rb +31 -0
- data/lib/legion/extensions/adapter/version.rb +9 -0
- data/lib/legion/extensions/adapter.rb +21 -0
- metadata +124 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9ad72da4328d17f6ff4ea47db389e0fd7657f4e136ed9eb6b1ff8c65b74b83a1
|
|
4
|
+
data.tar.gz: dbb87f253a93eb5c3bcdd0671ad6d65eb016f641a1836558af94e9b199fb5a01
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ab80d58bf48b68dafb888814da2eba3dc013502543ac3daf7631c8f7b8ec7d4668158d425cc81cd5f2c111bd5e5df62bd35beba029e25705359c4018bb5e02ac
|
|
7
|
+
data.tar.gz: ff414d8ca634fee1047177dc4a1475f6d867fbfc451357b416eaf1a5bf253fcc3bbf5cebccd279793a3f7644d269b8d5647b32511b27451f7040f86e2773fc0c
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - 2026-03-20
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Base adapter interface with `invoke`, `available?`, and `validate_options`
|
|
7
|
+
- Registry for adapter registration and lookup
|
|
8
|
+
- GenericProcess adapter for CLI tool invocation via stdin/stdout
|
|
9
|
+
- GenericHTTP adapter for REST API endpoint invocation
|
|
10
|
+
- ClaudeCode adapter for Anthropic Claude Code sessions
|
|
11
|
+
- Codex adapter for OpenAI Codex CLI sessions
|
|
12
|
+
- Runner module for framework-integrated invocation
|
|
13
|
+
- 25 specs with 90.2% line coverage
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 LegionIO
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# lex-adapter
|
|
2
|
+
|
|
3
|
+
External agent adapter abstraction for LegionIO. Provides a standardized interface for invoking external AI agents via CLI, process, or HTTP.
|
|
4
|
+
|
|
5
|
+
## Adapters
|
|
6
|
+
|
|
7
|
+
| Adapter | Transport | Use Case |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `GenericProcess` | stdin/stdout | Any CLI tool that accepts input and returns output |
|
|
10
|
+
| `GenericHTTP` | HTTP POST | REST API endpoints |
|
|
11
|
+
| `ClaudeCode` | CLI subprocess | Anthropic Claude Code sessions |
|
|
12
|
+
| `Codex` | CLI subprocess | OpenAI Codex CLI sessions |
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'legion/extensions/adapter'
|
|
18
|
+
|
|
19
|
+
# Register a custom adapter
|
|
20
|
+
Legion::Extensions::Adapter::Registry.register(:my_adapter, MyAdapter)
|
|
21
|
+
|
|
22
|
+
# Invoke via runner
|
|
23
|
+
result = Legion::Extensions::Adapter::Runners::Adapter.invoke(
|
|
24
|
+
adapter: :claude_code,
|
|
25
|
+
prompt: "Explain this code",
|
|
26
|
+
options: { model: "claude-sonnet-4-20250514" }
|
|
27
|
+
)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Development
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
bundle install
|
|
34
|
+
bundle exec rspec
|
|
35
|
+
bundle exec rubocop
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
MIT
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'open3'
|
|
4
|
+
require 'securerandom'
|
|
5
|
+
require 'timeout'
|
|
6
|
+
|
|
7
|
+
module Legion
|
|
8
|
+
module Extensions
|
|
9
|
+
module Adapter
|
|
10
|
+
module Adapters
|
|
11
|
+
class ClaudeCode < GenericProcess
|
|
12
|
+
BINARY = 'claude'
|
|
13
|
+
|
|
14
|
+
def initialize(**)
|
|
15
|
+
super(command: BINARY, **)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def invoke(task:, timeout: 120, **)
|
|
19
|
+
prompt = task.is_a?(Hash) ? (task[:prompt] || task[:input] || task.to_json) : task.to_s
|
|
20
|
+
handle = SecureRandom.uuid
|
|
21
|
+
start_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
|
|
22
|
+
|
|
23
|
+
stdout, stderr, status = Timeout.timeout(timeout) do
|
|
24
|
+
Open3.capture3(BINARY, '-p', prompt, '--output-format', 'json')
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
duration = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) - start_time
|
|
28
|
+
@handles[handle] = { stdout: stdout, stderr: stderr, exit_code: status.exitstatus }
|
|
29
|
+
|
|
30
|
+
{ success: status.success?, output: stdout, duration: duration, handle: handle }
|
|
31
|
+
rescue Timeout::Error
|
|
32
|
+
{ success: false, output: nil, duration: timeout.to_f, handle: handle, reason: :timeout }
|
|
33
|
+
rescue StandardError => e
|
|
34
|
+
{ success: false, output: nil, duration: 0.0, handle: handle, reason: :error, message: e.message }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def status
|
|
38
|
+
available = system("which #{BINARY}", out: File::NULL, err: File::NULL) || false
|
|
39
|
+
version = available ? `#{BINARY} --version 2>/dev/null`.strip : nil
|
|
40
|
+
{ available: available, version: version, binary: BINARY }
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
Legion::Extensions::Adapter::Registry.register('claude_code',
|
|
49
|
+
Legion::Extensions::Adapter::Adapters::ClaudeCode)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'open3'
|
|
4
|
+
require 'securerandom'
|
|
5
|
+
require 'timeout'
|
|
6
|
+
|
|
7
|
+
module Legion
|
|
8
|
+
module Extensions
|
|
9
|
+
module Adapter
|
|
10
|
+
module Adapters
|
|
11
|
+
class Codex < GenericProcess
|
|
12
|
+
BINARY = 'codex'
|
|
13
|
+
|
|
14
|
+
def initialize(**)
|
|
15
|
+
super(command: BINARY, **)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def invoke(task:, timeout: 120, **)
|
|
19
|
+
prompt = task.is_a?(Hash) ? (task[:prompt] || task[:input] || task.to_json) : task.to_s
|
|
20
|
+
handle = SecureRandom.uuid
|
|
21
|
+
start_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
|
|
22
|
+
|
|
23
|
+
stdout, stderr, status = Timeout.timeout(timeout) do
|
|
24
|
+
Open3.capture3(BINARY, '--quiet', prompt)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
duration = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) - start_time
|
|
28
|
+
@handles[handle] = { stdout: stdout, stderr: stderr, exit_code: status.exitstatus }
|
|
29
|
+
|
|
30
|
+
{ success: status.success?, output: stdout, duration: duration, handle: handle }
|
|
31
|
+
rescue Timeout::Error
|
|
32
|
+
{ success: false, output: nil, duration: timeout.to_f, handle: handle, reason: :timeout }
|
|
33
|
+
rescue StandardError => e
|
|
34
|
+
{ success: false, output: nil, duration: 0.0, handle: handle, reason: :error, message: e.message }
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def status
|
|
38
|
+
available = system("which #{BINARY}", out: File::NULL, err: File::NULL) || false
|
|
39
|
+
version = available ? `#{BINARY} --version 2>/dev/null`.strip : nil
|
|
40
|
+
{ available: available, version: version, binary: BINARY }
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
Legion::Extensions::Adapter::Registry.register('codex',
|
|
49
|
+
Legion::Extensions::Adapter::Adapters::Codex)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'net/http'
|
|
4
|
+
require 'securerandom'
|
|
5
|
+
require 'json'
|
|
6
|
+
require 'uri'
|
|
7
|
+
|
|
8
|
+
module Legion
|
|
9
|
+
module Extensions
|
|
10
|
+
module Adapter
|
|
11
|
+
module Adapters
|
|
12
|
+
class GenericHttp < Base
|
|
13
|
+
def initialize(url: nil, headers: {}, **opts)
|
|
14
|
+
super()
|
|
15
|
+
@url = url
|
|
16
|
+
@headers = { 'Content-Type' => 'application/json' }.merge(headers)
|
|
17
|
+
@opts = opts
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def invoke(task:, timeout: 30, **)
|
|
21
|
+
handle = SecureRandom.uuid
|
|
22
|
+
start_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
|
|
23
|
+
|
|
24
|
+
uri = URI(@url)
|
|
25
|
+
http = Net::HTTP.new(uri.host, uri.port)
|
|
26
|
+
http.use_ssl = uri.scheme == 'https'
|
|
27
|
+
http.open_timeout = timeout
|
|
28
|
+
http.read_timeout = timeout
|
|
29
|
+
|
|
30
|
+
request = Net::HTTP::Post.new(uri.path.empty? ? '/' : uri.path, @headers)
|
|
31
|
+
request.body = task.is_a?(String) ? task : task.to_json
|
|
32
|
+
|
|
33
|
+
response = http.request(request)
|
|
34
|
+
duration = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) - start_time
|
|
35
|
+
|
|
36
|
+
{ success: response.is_a?(Net::HTTPSuccess), output: response.body,
|
|
37
|
+
status: response.code.to_i, duration: duration, handle: handle }
|
|
38
|
+
rescue StandardError => e
|
|
39
|
+
duration = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) - start_time
|
|
40
|
+
{ success: false, output: nil, duration: duration, handle: handle,
|
|
41
|
+
reason: :error, message: e.message }
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def status
|
|
45
|
+
{ available: !@url.nil?, url: @url }
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def cancel(handle:)
|
|
49
|
+
{ success: false, reason: :not_supported }
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def output(handle:)
|
|
53
|
+
{ stdout: nil, stderr: nil, exit_code: nil }
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
Legion::Extensions::Adapter::Registry.register('generic_http',
|
|
62
|
+
Legion::Extensions::Adapter::Adapters::GenericHttp)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'open3'
|
|
4
|
+
require 'securerandom'
|
|
5
|
+
require 'timeout'
|
|
6
|
+
|
|
7
|
+
module Legion
|
|
8
|
+
module Extensions
|
|
9
|
+
module Adapter
|
|
10
|
+
module Adapters
|
|
11
|
+
class GenericProcess < Base
|
|
12
|
+
def initialize(command: nil, **opts)
|
|
13
|
+
super()
|
|
14
|
+
@command = command
|
|
15
|
+
@opts = opts
|
|
16
|
+
@handles = {}
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def invoke(task:, timeout: 30, **)
|
|
20
|
+
handle = SecureRandom.uuid
|
|
21
|
+
start_time = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC)
|
|
22
|
+
input = if task.is_a?(Hash)
|
|
23
|
+
begin
|
|
24
|
+
task.to_json
|
|
25
|
+
rescue StandardError
|
|
26
|
+
task.to_s
|
|
27
|
+
end
|
|
28
|
+
else
|
|
29
|
+
task.to_s
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
stdout, stderr, status = Timeout.timeout(timeout) do
|
|
33
|
+
Open3.capture3(@command, stdin_data: input)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
duration = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC) - start_time
|
|
37
|
+
@handles[handle] = { stdout: stdout, stderr: stderr, exit_code: status.exitstatus }
|
|
38
|
+
|
|
39
|
+
{ success: status.success?, output: stdout, duration: duration, handle: handle }
|
|
40
|
+
rescue Timeout::Error
|
|
41
|
+
{ success: false, output: nil, duration: timeout.to_f, handle: handle, reason: :timeout }
|
|
42
|
+
rescue StandardError => e
|
|
43
|
+
{ success: false, output: nil, duration: 0.0, handle: handle, reason: :error, message: e.message }
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def status
|
|
47
|
+
available = system("which #{@command}", out: File::NULL, err: File::NULL) || false
|
|
48
|
+
{ available: available, command: @command }
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def cancel(handle:)
|
|
52
|
+
return { success: false, reason: :not_found } unless @handles.key?(handle)
|
|
53
|
+
|
|
54
|
+
{ success: true }
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def output(handle:)
|
|
58
|
+
@handles[handle] || { stdout: nil, stderr: nil, exit_code: nil }
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
Legion::Extensions::Adapter::Registry.register('generic_process',
|
|
67
|
+
Legion::Extensions::Adapter::Adapters::GenericProcess)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Legion
|
|
4
|
+
module Extensions
|
|
5
|
+
module Adapter
|
|
6
|
+
class Base
|
|
7
|
+
def invoke(task:, timeout: 30, **)
|
|
8
|
+
raise NotImplementedError, "#{self.class}#invoke not implemented"
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def status
|
|
12
|
+
raise NotImplementedError, "#{self.class}#status not implemented"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def cancel(handle:)
|
|
16
|
+
raise NotImplementedError, "#{self.class}#cancel not implemented"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def output(handle:)
|
|
20
|
+
raise NotImplementedError, "#{self.class}#output not implemented"
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Legion
|
|
4
|
+
module Extensions
|
|
5
|
+
module Adapter
|
|
6
|
+
class Registry
|
|
7
|
+
@adapters = {}
|
|
8
|
+
|
|
9
|
+
class << self
|
|
10
|
+
def register(name, klass)
|
|
11
|
+
@adapters[name.to_s] = klass
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def find(name)
|
|
15
|
+
@adapters[name.to_s]
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def all
|
|
19
|
+
@adapters.dup
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def names
|
|
23
|
+
@adapters.keys
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def reset!
|
|
27
|
+
@adapters = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Legion
|
|
4
|
+
module Extensions
|
|
5
|
+
module Adapter
|
|
6
|
+
module Runners
|
|
7
|
+
module Adapter
|
|
8
|
+
def invoke_adapter(adapter_name:, task:, timeout: 30, **)
|
|
9
|
+
klass = Registry.find(adapter_name)
|
|
10
|
+
return { success: false, reason: :adapter_not_found } unless klass
|
|
11
|
+
|
|
12
|
+
adapter = klass.new(**)
|
|
13
|
+
adapter.invoke(task: task, timeout: timeout)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def list_adapters(**)
|
|
17
|
+
{ success: true, adapters: Registry.names, count: Registry.names.size }
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def adapter_status(adapter_name:, **)
|
|
21
|
+
klass = Registry.find(adapter_name)
|
|
22
|
+
return { success: false, reason: :adapter_not_found } unless klass
|
|
23
|
+
|
|
24
|
+
adapter = klass.new(**)
|
|
25
|
+
{ success: true, adapter: adapter_name, status: adapter.status }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'legion/extensions/adapter/version'
|
|
4
|
+
require 'legion/extensions/adapter/base'
|
|
5
|
+
require 'legion/extensions/adapter/registry'
|
|
6
|
+
require 'legion/extensions/adapter/adapters/generic_process'
|
|
7
|
+
require 'legion/extensions/adapter/adapters/generic_http'
|
|
8
|
+
require 'legion/extensions/adapter/adapters/claude_code'
|
|
9
|
+
require 'legion/extensions/adapter/adapters/codex'
|
|
10
|
+
require 'legion/extensions/adapter/runners/adapter'
|
|
11
|
+
|
|
12
|
+
module Legion
|
|
13
|
+
module Extensions
|
|
14
|
+
module Adapter
|
|
15
|
+
class << self
|
|
16
|
+
def remote_invocable? = false
|
|
17
|
+
def data_required? = false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: lex-adapter
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Matthew Iverson
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rake
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :development
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rspec
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
type: :development
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: rubocop
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :development
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
54
|
+
- !ruby/object:Gem::Dependency
|
|
55
|
+
name: rubocop-rspec
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - ">="
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '0'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - ">="
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '0'
|
|
68
|
+
- !ruby/object:Gem::Dependency
|
|
69
|
+
name: simplecov
|
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
|
71
|
+
requirements:
|
|
72
|
+
- - ">="
|
|
73
|
+
- !ruby/object:Gem::Version
|
|
74
|
+
version: '0'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - ">="
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0'
|
|
82
|
+
description: Standardized interface for invoking external AI agents via CLI, process,
|
|
83
|
+
or HTTP
|
|
84
|
+
email:
|
|
85
|
+
- matt@legionio.dev
|
|
86
|
+
executables: []
|
|
87
|
+
extensions: []
|
|
88
|
+
extra_rdoc_files: []
|
|
89
|
+
files:
|
|
90
|
+
- CHANGELOG.md
|
|
91
|
+
- LICENSE
|
|
92
|
+
- README.md
|
|
93
|
+
- lib/legion/extensions/adapter.rb
|
|
94
|
+
- lib/legion/extensions/adapter/adapters/claude_code.rb
|
|
95
|
+
- lib/legion/extensions/adapter/adapters/codex.rb
|
|
96
|
+
- lib/legion/extensions/adapter/adapters/generic_http.rb
|
|
97
|
+
- lib/legion/extensions/adapter/adapters/generic_process.rb
|
|
98
|
+
- lib/legion/extensions/adapter/base.rb
|
|
99
|
+
- lib/legion/extensions/adapter/registry.rb
|
|
100
|
+
- lib/legion/extensions/adapter/runners/adapter.rb
|
|
101
|
+
- lib/legion/extensions/adapter/version.rb
|
|
102
|
+
homepage: https://github.com/LegionIO/lex-adapter
|
|
103
|
+
licenses:
|
|
104
|
+
- MIT
|
|
105
|
+
metadata:
|
|
106
|
+
rubygems_mfa_required: 'true'
|
|
107
|
+
rdoc_options: []
|
|
108
|
+
require_paths:
|
|
109
|
+
- lib
|
|
110
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - ">="
|
|
113
|
+
- !ruby/object:Gem::Version
|
|
114
|
+
version: '3.4'
|
|
115
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: '0'
|
|
120
|
+
requirements: []
|
|
121
|
+
rubygems_version: 3.6.9
|
|
122
|
+
specification_version: 4
|
|
123
|
+
summary: External agent adapter abstraction for LegionIO
|
|
124
|
+
test_files: []
|