shared_tools 0.1.3 → 0.2.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/CHANGELOG.md +10 -2
- data/README.md +36 -33
- data/lib/shared_tools/raix/what_is_the_weather.rb +3 -3
- data/lib/shared_tools/ruby_llm/edit_file.rb +1 -0
- data/lib/shared_tools/ruby_llm/incomplete/calculator_tool.rb +70 -0
- data/lib/shared_tools/ruby_llm/incomplete/composite_analysis_tool.rb +89 -0
- data/lib/shared_tools/ruby_llm/incomplete/data_science_kit.rb +128 -0
- data/lib/shared_tools/ruby_llm/incomplete/database_query_tool.rb +100 -0
- data/lib/shared_tools/ruby_llm/incomplete/devops_toolkit.rb +112 -0
- data/lib/shared_tools/ruby_llm/incomplete/error_handling_tool.rb +109 -0
- data/lib/shared_tools/ruby_llm/incomplete/secure_tool_template.rb +117 -0
- data/lib/shared_tools/ruby_llm/incomplete/weather_tool.rb +110 -0
- data/lib/shared_tools/ruby_llm/incomplete/workflow_manager_tool.rb +145 -0
- data/lib/shared_tools/ruby_llm/list_files.rb +1 -0
- data/lib/shared_tools/ruby_llm/mcp/github_mcp_server.rb +51 -0
- data/lib/shared_tools/ruby_llm/mcp/imcp.rb +28 -0
- data/lib/shared_tools/ruby_llm/mcp.rb +10 -0
- data/lib/shared_tools/ruby_llm/pdf_page_reader.rb +1 -0
- data/lib/shared_tools/ruby_llm/python_eval.rb +2 -1
- data/lib/shared_tools/ruby_llm/read_file.rb +1 -0
- data/lib/shared_tools/ruby_llm/ruby_eval.rb +2 -1
- data/lib/shared_tools/ruby_llm/run_shell_command.rb +2 -1
- data/lib/shared_tools/ruby_llm.rb +4 -1
- data/lib/shared_tools/version.rb +1 -1
- data/lib/shared_tools.rb +11 -2
- metadata +31 -5
data/lib/shared_tools.rb
CHANGED
@@ -12,10 +12,19 @@ loader.ignore("#{__dir__}/shared_tools/raix.rb")
|
|
12
12
|
loader.setup
|
13
13
|
|
14
14
|
module SharedTools
|
15
|
-
SUPPORTED_GEMS
|
16
|
-
@auto_execute
|
15
|
+
SUPPORTED_GEMS ||= %i(ruby_llm llm_rb omniai raix)
|
16
|
+
@auto_execute ||= false # Human in the loop
|
17
|
+
@mcp_servers ||= []
|
17
18
|
|
18
19
|
class << self
|
20
|
+
def mcp_servers
|
21
|
+
@mcp_servers
|
22
|
+
end
|
23
|
+
|
24
|
+
def mcp_servers=(client)
|
25
|
+
@mcp_servers << client
|
26
|
+
end
|
27
|
+
|
19
28
|
def auto_execute(wildwest=true)
|
20
29
|
@auto_execute = wildwest
|
21
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shared_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MadBomber Team
|
@@ -83,16 +83,30 @@ dependencies:
|
|
83
83
|
name: ruby_llm
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 1.3.1
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
95
|
+
version: 1.3.1
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: ruby_llm-mcp
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.3.1
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.3.1
|
96
110
|
- !ruby/object:Gem::Dependency
|
97
111
|
name: bundler
|
98
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,7 +183,19 @@ files:
|
|
169
183
|
- lib/shared_tools/raix/what_is_the_weather.rb
|
170
184
|
- lib/shared_tools/ruby_llm.rb
|
171
185
|
- lib/shared_tools/ruby_llm/edit_file.rb
|
186
|
+
- lib/shared_tools/ruby_llm/incomplete/calculator_tool.rb
|
187
|
+
- lib/shared_tools/ruby_llm/incomplete/composite_analysis_tool.rb
|
188
|
+
- lib/shared_tools/ruby_llm/incomplete/data_science_kit.rb
|
189
|
+
- lib/shared_tools/ruby_llm/incomplete/database_query_tool.rb
|
190
|
+
- lib/shared_tools/ruby_llm/incomplete/devops_toolkit.rb
|
191
|
+
- lib/shared_tools/ruby_llm/incomplete/error_handling_tool.rb
|
192
|
+
- lib/shared_tools/ruby_llm/incomplete/secure_tool_template.rb
|
193
|
+
- lib/shared_tools/ruby_llm/incomplete/weather_tool.rb
|
194
|
+
- lib/shared_tools/ruby_llm/incomplete/workflow_manager_tool.rb
|
172
195
|
- lib/shared_tools/ruby_llm/list_files.rb
|
196
|
+
- lib/shared_tools/ruby_llm/mcp.rb
|
197
|
+
- lib/shared_tools/ruby_llm/mcp/github_mcp_server.rb
|
198
|
+
- lib/shared_tools/ruby_llm/mcp/imcp.rb
|
173
199
|
- lib/shared_tools/ruby_llm/pdf_page_reader.rb
|
174
200
|
- lib/shared_tools/ruby_llm/python_eval.rb
|
175
201
|
- lib/shared_tools/ruby_llm/read_file.rb
|