roast-ai 0.4.6 → 0.4.7

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yaml +3 -1
  3. data/.gitignore +7 -0
  4. data/.rubocop.yml +14 -0
  5. data/CHANGELOG.md +5 -0
  6. data/Gemfile +2 -1
  7. data/Gemfile.lock +9 -1
  8. data/Rakefile +14 -4
  9. data/examples/available_tools_demo/workflow.yml +2 -2
  10. data/examples/cmd/basic_workflow.yml +0 -1
  11. data/examples/grading/js_test_runner +1 -1
  12. data/examples/grading/run_coverage.rb +1 -1
  13. data/examples/user_input/funny_name/workflow.yml +3 -4
  14. data/lib/roast/dsl/executor.rb +2 -1
  15. data/lib/roast/helpers/cmd_runner.rb +199 -0
  16. data/lib/roast/initializers.rb +1 -1
  17. data/lib/roast/tools/apply_diff.rb +1 -1
  18. data/lib/roast/tools/bash.rb +4 -4
  19. data/lib/roast/tools/cmd.rb +3 -5
  20. data/lib/roast/tools/coding_agent.rb +1 -1
  21. data/lib/roast/tools/grep.rb +6 -2
  22. data/lib/roast/tools/read_file.rb +2 -1
  23. data/lib/roast/tools/swarm.rb +2 -7
  24. data/lib/roast/tools.rb +10 -1
  25. data/lib/roast/version.rb +1 -1
  26. data/lib/roast/workflow/command_executor.rb +3 -3
  27. data/lib/roast/workflow/resource_resolver.rb +1 -1
  28. data/lib/roast/workflow/shell_script_step.rb +1 -1
  29. data/lib/roast.rb +1 -0
  30. data/rubocop/cop/roast/use_cmd_runner.rb +93 -0
  31. data/rubocop/cop/roast.rb +4 -0
  32. data/sorbet/rbi/gems/docile@1.4.1.rbi +377 -0
  33. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +233 -2
  34. data/sorbet/rbi/gems/racc@1.8.1.rbi +6 -4
  35. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +396 -2
  36. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3788 -2
  37. data/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi +7747 -2
  38. data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +2386 -0
  39. data/sorbet/rbi/gems/rubocop@1.77.0.rbi +62813 -2
  40. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1311 -2
  41. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
  42. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2259 -0
  43. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  44. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +125 -2
  45. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +244 -2
  46. data/sorbet/tapioca/require.rb +2 -1
  47. metadata +9 -2
  48. data/lib/roast/helpers/timeout_handler.rb +0 -89
@@ -0,0 +1,225 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `simplecov-html` gem.
5
+ # Please instead update this file by running `bin/tapioca gem simplecov-html`.
6
+
7
+
8
+ # source://simplecov-html//lib/simplecov-html.rb#15
9
+ module SimpleCov
10
+ class << self
11
+ # source://simplecov/0.22.0/lib/simplecov.rb#174
12
+ def at_exit_behavior; end
13
+
14
+ # source://simplecov/0.22.0/lib/simplecov.rb#170
15
+ def clear_result; end
16
+
17
+ # source://simplecov/0.22.0/lib/simplecov.rb#86
18
+ def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
19
+
20
+ # source://simplecov/0.22.0/lib/simplecov.rb#223
21
+ def exit_and_report_previous_error(exit_status); end
22
+
23
+ # source://simplecov/0.22.0/lib/simplecov.rb#200
24
+ def exit_status_from_exception; end
25
+
26
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
27
+ def external_at_exit; end
28
+
29
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
30
+ def external_at_exit=(_arg0); end
31
+
32
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
33
+ def external_at_exit?; end
34
+
35
+ # source://simplecov/0.22.0/lib/simplecov.rb#131
36
+ def filtered(files); end
37
+
38
+ # source://simplecov/0.22.0/lib/simplecov.rb#268
39
+ def final_result_process?; end
40
+
41
+ # source://simplecov/0.22.0/lib/simplecov.rb#142
42
+ def grouped(files); end
43
+
44
+ # source://simplecov/0.22.0/lib/simplecov.rb#162
45
+ def load_adapter(name); end
46
+
47
+ # source://simplecov/0.22.0/lib/simplecov.rb#158
48
+ def load_profile(name); end
49
+
50
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
51
+ def pid; end
52
+
53
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
54
+ def pid=(_arg0); end
55
+
56
+ # source://simplecov/0.22.0/lib/simplecov.rb#213
57
+ def previous_error?(error_exit_status); end
58
+
59
+ # source://simplecov/0.22.0/lib/simplecov.rb#248
60
+ def process_result(result); end
61
+
62
+ # source://simplecov/0.22.0/lib/simplecov.rb#233
63
+ def process_results_and_report_error; end
64
+
65
+ # source://simplecov/0.22.0/lib/simplecov.rb#229
66
+ def ready_to_process_results?; end
67
+
68
+ # source://simplecov/0.22.0/lib/simplecov.rb#101
69
+ def result; end
70
+
71
+ # source://simplecov/0.22.0/lib/simplecov.rb#124
72
+ def result?; end
73
+
74
+ # source://simplecov/0.22.0/lib/simplecov.rb#256
75
+ def result_exit_status(result); end
76
+
77
+ # source://simplecov/0.22.0/lib/simplecov.rb#296
78
+ def round_coverage(coverage); end
79
+
80
+ # source://simplecov/0.22.0/lib/simplecov.rb#186
81
+ def run_exit_tasks!; end
82
+
83
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
84
+ def running; end
85
+
86
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
87
+ def running=(_arg0); end
88
+
89
+ # source://simplecov/0.22.0/lib/simplecov.rb#48
90
+ def start(profile = T.unsafe(nil), &block); end
91
+
92
+ # source://simplecov/0.22.0/lib/simplecov.rb#276
93
+ def wait_for_other_processes; end
94
+
95
+ # source://simplecov/0.22.0/lib/simplecov.rb#285
96
+ def write_last_run(result); end
97
+
98
+ private
99
+
100
+ # source://simplecov/0.22.0/lib/simplecov.rb#399
101
+ def adapt_coverage_result; end
102
+
103
+ # source://simplecov/0.22.0/lib/simplecov.rb#371
104
+ def add_not_loaded_files(result); end
105
+
106
+ # source://simplecov/0.22.0/lib/simplecov.rb#302
107
+ def initial_setup(profile, &block); end
108
+
109
+ # source://simplecov/0.22.0/lib/simplecov.rb#363
110
+ def lookup_corresponding_ruby_coverage_name(criterion); end
111
+
112
+ # source://simplecov/0.22.0/lib/simplecov.rb#425
113
+ def make_parallel_tests_available; end
114
+
115
+ # source://simplecov/0.22.0/lib/simplecov.rb#434
116
+ def probably_running_parallel_tests?; end
117
+
118
+ # source://simplecov/0.22.0/lib/simplecov.rb#388
119
+ def process_coverage_result; end
120
+
121
+ # source://simplecov/0.22.0/lib/simplecov.rb#410
122
+ def remove_useless_results; end
123
+
124
+ # source://simplecov/0.22.0/lib/simplecov.rb#420
125
+ def result_with_not_loaded_files; end
126
+
127
+ # source://simplecov/0.22.0/lib/simplecov.rb#314
128
+ def start_coverage_measurement; end
129
+
130
+ # source://simplecov/0.22.0/lib/simplecov.rb#349
131
+ def start_coverage_with_criteria; end
132
+ end
133
+ end
134
+
135
+ # source://simplecov-html//lib/simplecov-html.rb#16
136
+ module SimpleCov::Formatter
137
+ class << self
138
+ # source://simplecov/0.22.0/lib/simplecov/default_formatter.rb#7
139
+ def from_env(env); end
140
+ end
141
+ end
142
+
143
+ # source://simplecov-html//lib/simplecov-html.rb#17
144
+ class SimpleCov::Formatter::HTMLFormatter
145
+ # @return [HTMLFormatter] a new instance of HTMLFormatter
146
+ #
147
+ # source://simplecov-html//lib/simplecov-html.rb#26
148
+ def initialize; end
149
+
150
+ # source://simplecov-html//lib/simplecov-html.rb#33
151
+ def format(result); end
152
+
153
+ private
154
+
155
+ # source://simplecov-html//lib/simplecov-html.rb#93
156
+ def asset_inline(name); end
157
+
158
+ # source://simplecov-html//lib/simplecov-html.rb#79
159
+ def asset_output_path; end
160
+
161
+ # source://simplecov-html//lib/simplecov-html.rb#87
162
+ def assets_path(name); end
163
+
164
+ # @return [Boolean]
165
+ #
166
+ # source://simplecov-html//lib/simplecov-html.rb#48
167
+ def branchable_result?; end
168
+
169
+ # source://simplecov-html//lib/simplecov-html.rb#124
170
+ def coverage_css_class(covered_percent); end
171
+
172
+ # source://simplecov-html//lib/simplecov-html.rb#120
173
+ def covered_percent(percent); end
174
+
175
+ # Returns a table containing the given source files
176
+ #
177
+ # source://simplecov-html//lib/simplecov-html.rb#111
178
+ def formatted_file_list(title, source_files); end
179
+
180
+ # Returns the html for the given source_file
181
+ #
182
+ # source://simplecov-html//lib/simplecov-html.rb#104
183
+ def formatted_source_file(source_file); end
184
+
185
+ # Return a (kind of) unique id for the source file given. Uses SHA1 on path for the id
186
+ #
187
+ # source://simplecov-html//lib/simplecov-html.rb#145
188
+ def id(source_file); end
189
+
190
+ # @return [Boolean]
191
+ #
192
+ # source://simplecov-html//lib/simplecov-html.rb#55
193
+ def line_status?(source_file, line); end
194
+
195
+ # source://simplecov-html//lib/simplecov-html.rb#157
196
+ def link_to_source_file(source_file); end
197
+
198
+ # source://simplecov-html//lib/simplecov-html.rb#63
199
+ def output_message(result); end
200
+
201
+ # source://simplecov-html//lib/simplecov-html.rb#75
202
+ def output_path; end
203
+
204
+ # source://simplecov-html//lib/simplecov-html.rb#153
205
+ def shortened_filename(source_file); end
206
+
207
+ # source://simplecov-html//lib/simplecov-html.rb#134
208
+ def strength_css_class(covered_strength); end
209
+
210
+ # Returns the an erb instance for the template of given name
211
+ #
212
+ # source://simplecov-html//lib/simplecov-html.rb#71
213
+ def template(name); end
214
+
215
+ # source://simplecov-html//lib/simplecov-html.rb#149
216
+ def timeago(time); end
217
+ end
218
+
219
+ # Only have a few content types, just hardcode them
220
+ #
221
+ # source://simplecov-html//lib/simplecov-html.rb#19
222
+ SimpleCov::Formatter::HTMLFormatter::CONTENT_TYPES = T.let(T.unsafe(nil), Hash)
223
+
224
+ # source://simplecov-html//lib/simplecov-html/version.rb#6
225
+ SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)