ruby_llm-toolbox 0.1.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 +7 -0
- data/CHANGELOG.md +49 -0
- data/GUIDE.md +598 -0
- data/LICENSE +21 -0
- data/README.md +412 -0
- data/bin/verify_prism_parity +112 -0
- data/lib/ruby_llm/toolbox/base.rb +112 -0
- data/lib/ruby_llm/toolbox/configuration.rb +148 -0
- data/lib/ruby_llm/toolbox/data_path.rb +54 -0
- data/lib/ruby_llm/toolbox/process_registry.rb +226 -0
- data/lib/ruby_llm/toolbox/process_runner.rb +72 -0
- data/lib/ruby_llm/toolbox/ruby_outline.rb +213 -0
- data/lib/ruby_llm/toolbox/safe_math.rb +182 -0
- data/lib/ruby_llm/toolbox/safety/command_guard.rb +42 -0
- data/lib/ruby_llm/toolbox/safety/path_jail.rb +55 -0
- data/lib/ruby_llm/toolbox/safety/url_guard.rb +111 -0
- data/lib/ruby_llm/toolbox/sandbox/base.rb +151 -0
- data/lib/ruby_llm/toolbox/sandbox/bubblewrap.rb +70 -0
- data/lib/ruby_llm/toolbox/sandbox/docker.rb +69 -0
- data/lib/ruby_llm/toolbox/sandbox/sandbox_exec.rb +75 -0
- data/lib/ruby_llm/toolbox/search/brave.rb +64 -0
- data/lib/ruby_llm/toolbox/search/searxng.rb +64 -0
- data/lib/ruby_llm/toolbox/search/tavily.rb +70 -0
- data/lib/ruby_llm/toolbox/text_diff.rb +81 -0
- data/lib/ruby_llm/toolbox/toml.rb +409 -0
- data/lib/ruby_llm/toolbox/tools/apply_patch.rb +92 -0
- data/lib/ruby_llm/toolbox/tools/bash_tool.rb +101 -0
- data/lib/ruby_llm/toolbox/tools/bundle.rb +71 -0
- data/lib/ruby_llm/toolbox/tools/calculator.rb +42 -0
- data/lib/ruby_llm/toolbox/tools/create_directory.rb +35 -0
- data/lib/ruby_llm/toolbox/tools/csv_read.rb +69 -0
- data/lib/ruby_llm/toolbox/tools/csv_write.rb +51 -0
- data/lib/ruby_llm/toolbox/tools/date_time.rb +42 -0
- data/lib/ruby_llm/toolbox/tools/delete_file.rb +64 -0
- data/lib/ruby_llm/toolbox/tools/diff.rb +35 -0
- data/lib/ruby_llm/toolbox/tools/download_file.rb +55 -0
- data/lib/ruby_llm/toolbox/tools/edit_file.rb +82 -0
- data/lib/ruby_llm/toolbox/tools/gem_tool.rb +140 -0
- data/lib/ruby_llm/toolbox/tools/git_add.rb +46 -0
- data/lib/ruby_llm/toolbox/tools/git_blame.rb +58 -0
- data/lib/ruby_llm/toolbox/tools/git_branch.rb +35 -0
- data/lib/ruby_llm/toolbox/tools/git_checkout.rb +43 -0
- data/lib/ruby_llm/toolbox/tools/git_commit.rb +47 -0
- data/lib/ruby_llm/toolbox/tools/git_diff.rb +50 -0
- data/lib/ruby_llm/toolbox/tools/git_grep.rb +66 -0
- data/lib/ruby_llm/toolbox/tools/git_helpers.rb +68 -0
- data/lib/ruby_llm/toolbox/tools/git_log.rb +47 -0
- data/lib/ruby_llm/toolbox/tools/git_show.rb +48 -0
- data/lib/ruby_llm/toolbox/tools/git_status.rb +27 -0
- data/lib/ruby_llm/toolbox/tools/glob.rb +62 -0
- data/lib/ruby_llm/toolbox/tools/grep_files.rb +221 -0
- data/lib/ruby_llm/toolbox/tools/http_helpers.rb +130 -0
- data/lib/ruby_llm/toolbox/tools/http_request.rb +75 -0
- data/lib/ruby_llm/toolbox/tools/json_query.rb +69 -0
- data/lib/ruby_llm/toolbox/tools/lint.rb +67 -0
- data/lib/ruby_llm/toolbox/tools/list_directory.rb +87 -0
- data/lib/ruby_llm/toolbox/tools/move_file.rb +54 -0
- data/lib/ruby_llm/toolbox/tools/multi_edit.rb +107 -0
- data/lib/ruby_llm/toolbox/tools/parse_ruby.rb +111 -0
- data/lib/ruby_llm/toolbox/tools/process_kill.rb +41 -0
- data/lib/ruby_llm/toolbox/tools/process_list.rb +29 -0
- data/lib/ruby_llm/toolbox/tools/process_output.rb +55 -0
- data/lib/ruby_llm/toolbox/tools/process_start.rb +109 -0
- data/lib/ruby_llm/toolbox/tools/python_tests.rb +77 -0
- data/lib/ruby_llm/toolbox/tools/read_file.rb +75 -0
- data/lib/ruby_llm/toolbox/tools/replace_in_files.rb +139 -0
- data/lib/ruby_llm/toolbox/tools/run_python.rb +38 -0
- data/lib/ruby_llm/toolbox/tools/run_ruby.rb +37 -0
- data/lib/ruby_llm/toolbox/tools/run_rust.rb +42 -0
- data/lib/ruby_llm/toolbox/tools/run_tests.rb +81 -0
- data/lib/ruby_llm/toolbox/tools/sandbox_run.rb +40 -0
- data/lib/ruby_llm/toolbox/tools/todo_write.rb +57 -0
- data/lib/ruby_llm/toolbox/tools/toml_query.rb +70 -0
- data/lib/ruby_llm/toolbox/tools/toolchain_helpers.rb +62 -0
- data/lib/ruby_llm/toolbox/tools/tree.rb +87 -0
- data/lib/ruby_llm/toolbox/tools/web_fetch.rb +77 -0
- data/lib/ruby_llm/toolbox/tools/web_search.rb +81 -0
- data/lib/ruby_llm/toolbox/tools/write_file.rb +52 -0
- data/lib/ruby_llm/toolbox/tools/yaml_query.rb +73 -0
- data/lib/ruby_llm/toolbox/truncator.rb +68 -0
- data/lib/ruby_llm/toolbox/version.rb +7 -0
- data/lib/ruby_llm/toolbox.rb +161 -0
- metadata +194 -0
metadata
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ruby_llm-toolbox
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- washu
|
|
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: ruby_llm
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '1.0'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: ruby_llm-tokenizer
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0.1'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0.1'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: csv
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :runtime
|
|
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: rspec
|
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
|
57
|
+
requirements:
|
|
58
|
+
- - "~>"
|
|
59
|
+
- !ruby/object:Gem::Version
|
|
60
|
+
version: '3.13'
|
|
61
|
+
type: :development
|
|
62
|
+
prerelease: false
|
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
64
|
+
requirements:
|
|
65
|
+
- - "~>"
|
|
66
|
+
- !ruby/object:Gem::Version
|
|
67
|
+
version: '3.13'
|
|
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.22'
|
|
75
|
+
type: :development
|
|
76
|
+
prerelease: false
|
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
78
|
+
requirements:
|
|
79
|
+
- - "~>"
|
|
80
|
+
- !ruby/object:Gem::Version
|
|
81
|
+
version: '0.22'
|
|
82
|
+
description: ruby_llm-toolbox bundles filesystem, shell, web, git, and data tools
|
|
83
|
+
as ready-to-use RubyLLM::Tool subclasses. One require loads everything; read-only
|
|
84
|
+
tools are on by default while mutating/exec tools are gated behind explicit config.
|
|
85
|
+
Tool output is token-budgeted via ruby_llm-tokenizer.
|
|
86
|
+
executables: []
|
|
87
|
+
extensions: []
|
|
88
|
+
extra_rdoc_files: []
|
|
89
|
+
files:
|
|
90
|
+
- CHANGELOG.md
|
|
91
|
+
- GUIDE.md
|
|
92
|
+
- LICENSE
|
|
93
|
+
- README.md
|
|
94
|
+
- bin/verify_prism_parity
|
|
95
|
+
- lib/ruby_llm/toolbox.rb
|
|
96
|
+
- lib/ruby_llm/toolbox/base.rb
|
|
97
|
+
- lib/ruby_llm/toolbox/configuration.rb
|
|
98
|
+
- lib/ruby_llm/toolbox/data_path.rb
|
|
99
|
+
- lib/ruby_llm/toolbox/process_registry.rb
|
|
100
|
+
- lib/ruby_llm/toolbox/process_runner.rb
|
|
101
|
+
- lib/ruby_llm/toolbox/ruby_outline.rb
|
|
102
|
+
- lib/ruby_llm/toolbox/safe_math.rb
|
|
103
|
+
- lib/ruby_llm/toolbox/safety/command_guard.rb
|
|
104
|
+
- lib/ruby_llm/toolbox/safety/path_jail.rb
|
|
105
|
+
- lib/ruby_llm/toolbox/safety/url_guard.rb
|
|
106
|
+
- lib/ruby_llm/toolbox/sandbox/base.rb
|
|
107
|
+
- lib/ruby_llm/toolbox/sandbox/bubblewrap.rb
|
|
108
|
+
- lib/ruby_llm/toolbox/sandbox/docker.rb
|
|
109
|
+
- lib/ruby_llm/toolbox/sandbox/sandbox_exec.rb
|
|
110
|
+
- lib/ruby_llm/toolbox/search/brave.rb
|
|
111
|
+
- lib/ruby_llm/toolbox/search/searxng.rb
|
|
112
|
+
- lib/ruby_llm/toolbox/search/tavily.rb
|
|
113
|
+
- lib/ruby_llm/toolbox/text_diff.rb
|
|
114
|
+
- lib/ruby_llm/toolbox/toml.rb
|
|
115
|
+
- lib/ruby_llm/toolbox/tools/apply_patch.rb
|
|
116
|
+
- lib/ruby_llm/toolbox/tools/bash_tool.rb
|
|
117
|
+
- lib/ruby_llm/toolbox/tools/bundle.rb
|
|
118
|
+
- lib/ruby_llm/toolbox/tools/calculator.rb
|
|
119
|
+
- lib/ruby_llm/toolbox/tools/create_directory.rb
|
|
120
|
+
- lib/ruby_llm/toolbox/tools/csv_read.rb
|
|
121
|
+
- lib/ruby_llm/toolbox/tools/csv_write.rb
|
|
122
|
+
- lib/ruby_llm/toolbox/tools/date_time.rb
|
|
123
|
+
- lib/ruby_llm/toolbox/tools/delete_file.rb
|
|
124
|
+
- lib/ruby_llm/toolbox/tools/diff.rb
|
|
125
|
+
- lib/ruby_llm/toolbox/tools/download_file.rb
|
|
126
|
+
- lib/ruby_llm/toolbox/tools/edit_file.rb
|
|
127
|
+
- lib/ruby_llm/toolbox/tools/gem_tool.rb
|
|
128
|
+
- lib/ruby_llm/toolbox/tools/git_add.rb
|
|
129
|
+
- lib/ruby_llm/toolbox/tools/git_blame.rb
|
|
130
|
+
- lib/ruby_llm/toolbox/tools/git_branch.rb
|
|
131
|
+
- lib/ruby_llm/toolbox/tools/git_checkout.rb
|
|
132
|
+
- lib/ruby_llm/toolbox/tools/git_commit.rb
|
|
133
|
+
- lib/ruby_llm/toolbox/tools/git_diff.rb
|
|
134
|
+
- lib/ruby_llm/toolbox/tools/git_grep.rb
|
|
135
|
+
- lib/ruby_llm/toolbox/tools/git_helpers.rb
|
|
136
|
+
- lib/ruby_llm/toolbox/tools/git_log.rb
|
|
137
|
+
- lib/ruby_llm/toolbox/tools/git_show.rb
|
|
138
|
+
- lib/ruby_llm/toolbox/tools/git_status.rb
|
|
139
|
+
- lib/ruby_llm/toolbox/tools/glob.rb
|
|
140
|
+
- lib/ruby_llm/toolbox/tools/grep_files.rb
|
|
141
|
+
- lib/ruby_llm/toolbox/tools/http_helpers.rb
|
|
142
|
+
- lib/ruby_llm/toolbox/tools/http_request.rb
|
|
143
|
+
- lib/ruby_llm/toolbox/tools/json_query.rb
|
|
144
|
+
- lib/ruby_llm/toolbox/tools/lint.rb
|
|
145
|
+
- lib/ruby_llm/toolbox/tools/list_directory.rb
|
|
146
|
+
- lib/ruby_llm/toolbox/tools/move_file.rb
|
|
147
|
+
- lib/ruby_llm/toolbox/tools/multi_edit.rb
|
|
148
|
+
- lib/ruby_llm/toolbox/tools/parse_ruby.rb
|
|
149
|
+
- lib/ruby_llm/toolbox/tools/process_kill.rb
|
|
150
|
+
- lib/ruby_llm/toolbox/tools/process_list.rb
|
|
151
|
+
- lib/ruby_llm/toolbox/tools/process_output.rb
|
|
152
|
+
- lib/ruby_llm/toolbox/tools/process_start.rb
|
|
153
|
+
- lib/ruby_llm/toolbox/tools/python_tests.rb
|
|
154
|
+
- lib/ruby_llm/toolbox/tools/read_file.rb
|
|
155
|
+
- lib/ruby_llm/toolbox/tools/replace_in_files.rb
|
|
156
|
+
- lib/ruby_llm/toolbox/tools/run_python.rb
|
|
157
|
+
- lib/ruby_llm/toolbox/tools/run_ruby.rb
|
|
158
|
+
- lib/ruby_llm/toolbox/tools/run_rust.rb
|
|
159
|
+
- lib/ruby_llm/toolbox/tools/run_tests.rb
|
|
160
|
+
- lib/ruby_llm/toolbox/tools/sandbox_run.rb
|
|
161
|
+
- lib/ruby_llm/toolbox/tools/todo_write.rb
|
|
162
|
+
- lib/ruby_llm/toolbox/tools/toml_query.rb
|
|
163
|
+
- lib/ruby_llm/toolbox/tools/toolchain_helpers.rb
|
|
164
|
+
- lib/ruby_llm/toolbox/tools/tree.rb
|
|
165
|
+
- lib/ruby_llm/toolbox/tools/web_fetch.rb
|
|
166
|
+
- lib/ruby_llm/toolbox/tools/web_search.rb
|
|
167
|
+
- lib/ruby_llm/toolbox/tools/write_file.rb
|
|
168
|
+
- lib/ruby_llm/toolbox/tools/yaml_query.rb
|
|
169
|
+
- lib/ruby_llm/toolbox/truncator.rb
|
|
170
|
+
- lib/ruby_llm/toolbox/version.rb
|
|
171
|
+
homepage: https://github.com/washu/ruby_llm-toolbox
|
|
172
|
+
licenses:
|
|
173
|
+
- MIT
|
|
174
|
+
metadata:
|
|
175
|
+
source_code_uri: https://github.com/washu/ruby_llm-toolbox
|
|
176
|
+
rubygems_mfa_required: 'true'
|
|
177
|
+
rdoc_options: []
|
|
178
|
+
require_paths:
|
|
179
|
+
- lib
|
|
180
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
|
+
requirements:
|
|
182
|
+
- - ">="
|
|
183
|
+
- !ruby/object:Gem::Version
|
|
184
|
+
version: '3.3'
|
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
|
+
requirements:
|
|
187
|
+
- - ">="
|
|
188
|
+
- !ruby/object:Gem::Version
|
|
189
|
+
version: '0'
|
|
190
|
+
requirements: []
|
|
191
|
+
rubygems_version: 3.6.9
|
|
192
|
+
specification_version: 4
|
|
193
|
+
summary: Safe-by-default RubyLLM::Tool classes for the skills common to most LLM harnesses.
|
|
194
|
+
test_files: []
|