llm-shell 0.10.0 → 0.11.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.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +21 -0
  3. data/README.md +24 -160
  4. data/exe/llm-shell +7 -0
  5. data/llm-shell.gemspec +26 -32
  6. metadata +36 -372
  7. data/bin/llm-shell +0 -21
  8. data/lib/llm/shell/command.rb +0 -88
  9. data/lib/llm/shell/commands/clear_screen.rb +0 -18
  10. data/lib/llm/shell/commands/debug_mode.rb +0 -12
  11. data/lib/llm/shell/commands/dir_import.rb +0 -33
  12. data/lib/llm/shell/commands/disable_tool.rb +0 -33
  13. data/lib/llm/shell/commands/enable_tool.rb +0 -33
  14. data/lib/llm/shell/commands/file_import.rb +0 -25
  15. data/lib/llm/shell/commands/help.rb +0 -53
  16. data/lib/llm/shell/commands/show_chat.rb +0 -31
  17. data/lib/llm/shell/commands/show_version.rb +0 -17
  18. data/lib/llm/shell/commands/system_prompt.rb +0 -21
  19. data/lib/llm/shell/completion.rb +0 -40
  20. data/lib/llm/shell/config.rb +0 -34
  21. data/lib/llm/shell/default.rb +0 -23
  22. data/lib/llm/shell/formatter.rb +0 -41
  23. data/lib/llm/shell/internal/coderay/lib/coderay/duo.rb +0 -81
  24. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/_map.rb +0 -17
  25. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/comment_filter.rb +0 -25
  26. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/count.rb +0 -39
  27. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/debug.rb +0 -49
  28. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/debug_lint.rb +0 -63
  29. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/div.rb +0 -23
  30. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/encoder.rb +0 -190
  31. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/filter.rb +0 -58
  32. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/html/css.rb +0 -65
  33. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/html/numbering.rb +0 -108
  34. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/html/output.rb +0 -164
  35. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/html.rb +0 -333
  36. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/json.rb +0 -83
  37. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/lines_of_code.rb +0 -45
  38. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/lint.rb +0 -59
  39. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/null.rb +0 -18
  40. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/page.rb +0 -24
  41. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/span.rb +0 -23
  42. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/statistic.rb +0 -95
  43. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/terminal.rb +0 -195
  44. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/text.rb +0 -46
  45. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/token_kind_filter.rb +0 -111
  46. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/xml.rb +0 -72
  47. data/lib/llm/shell/internal/coderay/lib/coderay/encoders/yaml.rb +0 -50
  48. data/lib/llm/shell/internal/coderay/lib/coderay/encoders.rb +0 -18
  49. data/lib/llm/shell/internal/coderay/lib/coderay/for_redcloth.rb +0 -95
  50. data/lib/llm/shell/internal/coderay/lib/coderay/helpers/file_type.rb +0 -151
  51. data/lib/llm/shell/internal/coderay/lib/coderay/helpers/plugin.rb +0 -55
  52. data/lib/llm/shell/internal/coderay/lib/coderay/helpers/plugin_host.rb +0 -221
  53. data/lib/llm/shell/internal/coderay/lib/coderay/helpers/word_list.rb +0 -72
  54. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/_map.rb +0 -24
  55. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/c.rb +0 -189
  56. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/clojure.rb +0 -217
  57. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/cpp.rb +0 -217
  58. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/css.rb +0 -196
  59. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/debug.rb +0 -75
  60. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/delphi.rb +0 -144
  61. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/diff.rb +0 -221
  62. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/erb.rb +0 -81
  63. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/go.rb +0 -208
  64. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/groovy.rb +0 -268
  65. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/haml.rb +0 -168
  66. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/html.rb +0 -275
  67. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/java/builtin_types.rb +0 -421
  68. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/java.rb +0 -174
  69. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/java_script.rb +0 -236
  70. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/json.rb +0 -98
  71. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/lua.rb +0 -280
  72. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/php.rb +0 -527
  73. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/python.rb +0 -287
  74. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/raydebug.rb +0 -75
  75. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby/patterns.rb +0 -178
  76. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby/string_state.rb +0 -79
  77. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby.rb +0 -477
  78. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/sass.rb +0 -232
  79. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/scanner.rb +0 -337
  80. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/sql.rb +0 -169
  81. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/taskpaper.rb +0 -36
  82. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/text.rb +0 -26
  83. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/xml.rb +0 -17
  84. data/lib/llm/shell/internal/coderay/lib/coderay/scanners/yaml.rb +0 -140
  85. data/lib/llm/shell/internal/coderay/lib/coderay/scanners.rb +0 -27
  86. data/lib/llm/shell/internal/coderay/lib/coderay/styles/_map.rb +0 -7
  87. data/lib/llm/shell/internal/coderay/lib/coderay/styles/alpha.rb +0 -153
  88. data/lib/llm/shell/internal/coderay/lib/coderay/styles/style.rb +0 -18
  89. data/lib/llm/shell/internal/coderay/lib/coderay/styles.rb +0 -15
  90. data/lib/llm/shell/internal/coderay/lib/coderay/token_kinds.rb +0 -85
  91. data/lib/llm/shell/internal/coderay/lib/coderay/tokens.rb +0 -164
  92. data/lib/llm/shell/internal/coderay/lib/coderay/tokens_proxy.rb +0 -55
  93. data/lib/llm/shell/internal/coderay/lib/coderay/version.rb +0 -3
  94. data/lib/llm/shell/internal/coderay/lib/coderay.rb +0 -284
  95. data/lib/llm/shell/internal/io-line/lib/io/line/multiple.rb +0 -19
  96. data/lib/llm/shell/internal/io-line/lib/io/line.rb +0 -28
  97. data/lib/llm/shell/internal/llm.rb/lib/llm/bot/builder.rb +0 -31
  98. data/lib/llm/shell/internal/llm.rb/lib/llm/bot/conversable.rb +0 -37
  99. data/lib/llm/shell/internal/llm.rb/lib/llm/bot/prompt/completion.rb +0 -49
  100. data/lib/llm/shell/internal/llm.rb/lib/llm/bot/prompt/respond.rb +0 -49
  101. data/lib/llm/shell/internal/llm.rb/lib/llm/bot.rb +0 -150
  102. data/lib/llm/shell/internal/llm.rb/lib/llm/buffer.rb +0 -162
  103. data/lib/llm/shell/internal/llm.rb/lib/llm/client.rb +0 -36
  104. data/lib/llm/shell/internal/llm.rb/lib/llm/error.rb +0 -49
  105. data/lib/llm/shell/internal/llm.rb/lib/llm/eventhandler.rb +0 -44
  106. data/lib/llm/shell/internal/llm.rb/lib/llm/eventstream/event.rb +0 -69
  107. data/lib/llm/shell/internal/llm.rb/lib/llm/eventstream/parser.rb +0 -88
  108. data/lib/llm/shell/internal/llm.rb/lib/llm/eventstream.rb +0 -8
  109. data/lib/llm/shell/internal/llm.rb/lib/llm/file.rb +0 -91
  110. data/lib/llm/shell/internal/llm.rb/lib/llm/function.rb +0 -177
  111. data/lib/llm/shell/internal/llm.rb/lib/llm/message.rb +0 -178
  112. data/lib/llm/shell/internal/llm.rb/lib/llm/mime.rb +0 -140
  113. data/lib/llm/shell/internal/llm.rb/lib/llm/multipart.rb +0 -101
  114. data/lib/llm/shell/internal/llm.rb/lib/llm/object/builder.rb +0 -38
  115. data/lib/llm/shell/internal/llm.rb/lib/llm/object/kernel.rb +0 -53
  116. data/lib/llm/shell/internal/llm.rb/lib/llm/object.rb +0 -89
  117. data/lib/llm/shell/internal/llm.rb/lib/llm/provider.rb +0 -352
  118. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/error_handler.rb +0 -36
  119. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/files.rb +0 -155
  120. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/format/completion_format.rb +0 -88
  121. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/format.rb +0 -29
  122. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/models.rb +0 -54
  123. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/completion.rb +0 -39
  124. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/enumerable.rb +0 -11
  125. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/file.rb +0 -23
  126. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/web_search.rb +0 -21
  127. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/stream_parser.rb +0 -66
  128. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic.rb +0 -138
  129. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek/format/completion_format.rb +0 -68
  130. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek/format.rb +0 -27
  131. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek.rb +0 -75
  132. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/audio.rb +0 -73
  133. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/error_handler.rb +0 -47
  134. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/files.rb +0 -146
  135. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/format/completion_format.rb +0 -69
  136. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/format.rb +0 -39
  137. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/images.rb +0 -133
  138. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/models.rb +0 -60
  139. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/completion.rb +0 -35
  140. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/embedding.rb +0 -8
  141. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/file.rb +0 -11
  142. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/files.rb +0 -15
  143. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/image.rb +0 -31
  144. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/models.rb +0 -15
  145. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/web_search.rb +0 -22
  146. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/stream_parser.rb +0 -86
  147. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini.rb +0 -173
  148. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/llamacpp.rb +0 -74
  149. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/error_handler.rb +0 -36
  150. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/format/completion_format.rb +0 -77
  151. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/format.rb +0 -29
  152. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/models.rb +0 -56
  153. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/response/completion.rb +0 -28
  154. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/response/embedding.rb +0 -9
  155. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/stream_parser.rb +0 -44
  156. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama.rb +0 -116
  157. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/audio.rb +0 -91
  158. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/error_handler.rb +0 -46
  159. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/files.rb +0 -134
  160. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/completion_format.rb +0 -90
  161. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/moderation_format.rb +0 -35
  162. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/respond_format.rb +0 -72
  163. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format.rb +0 -54
  164. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/images.rb +0 -109
  165. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/models.rb +0 -55
  166. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/moderations.rb +0 -65
  167. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/audio.rb +0 -7
  168. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/completion.rb +0 -40
  169. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/embedding.rb +0 -9
  170. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/enumerable.rb +0 -23
  171. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/file.rb +0 -7
  172. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/image.rb +0 -16
  173. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/moderations.rb +0 -34
  174. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/responds.rb +0 -48
  175. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/web_search.rb +0 -21
  176. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/responses/stream_parser.rb +0 -76
  177. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/responses.rb +0 -99
  178. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/stream_parser.rb +0 -86
  179. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/vector_stores.rb +0 -228
  180. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/openai.rb +0 -206
  181. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/xai/images.rb +0 -58
  182. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/xai.rb +0 -72
  183. data/lib/llm/shell/internal/llm.rb/lib/llm/providers/zai.rb +0 -74
  184. data/lib/llm/shell/internal/llm.rb/lib/llm/response.rb +0 -67
  185. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/array.rb +0 -26
  186. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/boolean.rb +0 -13
  187. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/integer.rb +0 -43
  188. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/leaf.rb +0 -78
  189. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/null.rb +0 -13
  190. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/number.rb +0 -43
  191. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/object.rb +0 -41
  192. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/string.rb +0 -34
  193. data/lib/llm/shell/internal/llm.rb/lib/llm/schema/version.rb +0 -8
  194. data/lib/llm/shell/internal/llm.rb/lib/llm/schema.rb +0 -81
  195. data/lib/llm/shell/internal/llm.rb/lib/llm/server_tool.rb +0 -32
  196. data/lib/llm/shell/internal/llm.rb/lib/llm/tool/param.rb +0 -75
  197. data/lib/llm/shell/internal/llm.rb/lib/llm/tool.rb +0 -78
  198. data/lib/llm/shell/internal/llm.rb/lib/llm/utils.rb +0 -19
  199. data/lib/llm/shell/internal/llm.rb/lib/llm/version.rb +0 -5
  200. data/lib/llm/shell/internal/llm.rb/lib/llm.rb +0 -121
  201. data/lib/llm/shell/internal/optparse/lib/optionparser.rb +0 -2
  202. data/lib/llm/shell/internal/optparse/lib/optparse/ac.rb +0 -70
  203. data/lib/llm/shell/internal/optparse/lib/optparse/date.rb +0 -18
  204. data/lib/llm/shell/internal/optparse/lib/optparse/kwargs.rb +0 -27
  205. data/lib/llm/shell/internal/optparse/lib/optparse/shellwords.rb +0 -7
  206. data/lib/llm/shell/internal/optparse/lib/optparse/time.rb +0 -11
  207. data/lib/llm/shell/internal/optparse/lib/optparse/uri.rb +0 -7
  208. data/lib/llm/shell/internal/optparse/lib/optparse/version.rb +0 -80
  209. data/lib/llm/shell/internal/optparse/lib/optparse.rb +0 -2469
  210. data/lib/llm/shell/internal/paint/lib/paint/constants.rb +0 -104
  211. data/lib/llm/shell/internal/paint/lib/paint/pa.rb +0 -13
  212. data/lib/llm/shell/internal/paint/lib/paint/rgb_colors.rb +0 -14
  213. data/lib/llm/shell/internal/paint/lib/paint/shortcuts.rb +0 -100
  214. data/lib/llm/shell/internal/paint/lib/paint/shortcuts_version.rb +0 -5
  215. data/lib/llm/shell/internal/paint/lib/paint/util.rb +0 -16
  216. data/lib/llm/shell/internal/paint/lib/paint/version.rb +0 -5
  217. data/lib/llm/shell/internal/paint/lib/paint.rb +0 -261
  218. data/lib/llm/shell/internal/reline/lib/reline/config.rb +0 -378
  219. data/lib/llm/shell/internal/reline/lib/reline/face.rb +0 -199
  220. data/lib/llm/shell/internal/reline/lib/reline/history.rb +0 -76
  221. data/lib/llm/shell/internal/reline/lib/reline/io/ansi.rb +0 -322
  222. data/lib/llm/shell/internal/reline/lib/reline/io/dumb.rb +0 -120
  223. data/lib/llm/shell/internal/reline/lib/reline/io/windows.rb +0 -530
  224. data/lib/llm/shell/internal/reline/lib/reline/io.rb +0 -55
  225. data/lib/llm/shell/internal/reline/lib/reline/key_actor/base.rb +0 -37
  226. data/lib/llm/shell/internal/reline/lib/reline/key_actor/composite.rb +0 -17
  227. data/lib/llm/shell/internal/reline/lib/reline/key_actor/emacs.rb +0 -517
  228. data/lib/llm/shell/internal/reline/lib/reline/key_actor/vi_command.rb +0 -518
  229. data/lib/llm/shell/internal/reline/lib/reline/key_actor/vi_insert.rb +0 -517
  230. data/lib/llm/shell/internal/reline/lib/reline/key_actor.rb +0 -8
  231. data/lib/llm/shell/internal/reline/lib/reline/key_stroke.rb +0 -119
  232. data/lib/llm/shell/internal/reline/lib/reline/kill_ring.rb +0 -125
  233. data/lib/llm/shell/internal/reline/lib/reline/line_editor.rb +0 -2356
  234. data/lib/llm/shell/internal/reline/lib/reline/unicode/east_asian_width.rb +0 -1292
  235. data/lib/llm/shell/internal/reline/lib/reline/unicode.rb +0 -421
  236. data/lib/llm/shell/internal/reline/lib/reline/version.rb +0 -3
  237. data/lib/llm/shell/internal/reline/lib/reline.rb +0 -527
  238. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/generated_parser.rb +0 -712
  239. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/handler.rb +0 -268
  240. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/local_date.rb +0 -35
  241. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/local_date_time.rb +0 -42
  242. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/local_time.rb +0 -40
  243. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/parser.rb +0 -21
  244. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/scanner.rb +0 -92
  245. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/string_utils.rb +0 -40
  246. data/lib/llm/shell/internal/tomlrb/lib/tomlrb/version.rb +0 -5
  247. data/lib/llm/shell/internal/tomlrb/lib/tomlrb.rb +0 -49
  248. data/lib/llm/shell/markdown.rb +0 -83
  249. data/lib/llm/shell/options.rb +0 -39
  250. data/lib/llm/shell/renderer.rb +0 -51
  251. data/lib/llm/shell/repl.rb +0 -111
  252. data/lib/llm/shell/tool.rb +0 -42
  253. data/lib/llm/shell/tools/read_file.rb +0 -15
  254. data/lib/llm/shell/tools/system.rb +0 -17
  255. data/lib/llm/shell/tools/write_file.rb +0 -16
  256. data/lib/llm/shell/version.rb +0 -8
  257. data/lib/llm/shell.rb +0 -132
  258. data/lib/llm-shell.rb +0 -3
  259. data/libexec/llm-shell/shell +0 -43
  260. data/share/llm-shell/prompts/default.txt +0 -21
metadata CHANGED
@@ -1,441 +1,106 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llm-shell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
- - Antar Azri
8
- - '0x1eef'
9
- bindir: bin
7
+ - Robert Gleeson
8
+ bindir: exe
10
9
  cert_chain: []
11
10
  date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: redcarpet
13
+ name: llm.rb
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '3.6'
18
+ version: '15.3'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '3.6'
27
- - !ruby/object:Gem::Dependency
28
- name: webmock
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 3.24.0
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 3.24.0
41
- - !ruby/object:Gem::Dependency
42
- name: yard
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: 0.9.37
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: 0.9.37
55
- - !ruby/object:Gem::Dependency
56
- name: kramdown
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '2.4'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '2.4'
69
- - !ruby/object:Gem::Dependency
70
- name: webrick
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '1.8'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '1.8'
25
+ version: '15.3'
83
26
  - !ruby/object:Gem::Dependency
84
27
  name: test-cmd.rb
85
28
  requirement: !ruby/object:Gem::Requirement
86
29
  requirements:
87
30
  - - "~>"
88
31
  - !ruby/object:Gem::Version
89
- version: 0.12.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 0.12.0
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '13.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '13.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rspec
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '3.0'
118
- type: :development
32
+ version: '2.7'
33
+ type: :runtime
119
34
  prerelease: false
120
35
  version_requirements: !ruby/object:Gem::Requirement
121
36
  requirements:
122
37
  - - "~>"
123
38
  - !ruby/object:Gem::Version
124
- version: '3.0'
39
+ version: '2.7'
125
40
  - !ruby/object:Gem::Dependency
126
- name: standard
41
+ name: curses
127
42
  requirement: !ruby/object:Gem::Requirement
128
43
  requirements:
129
44
  - - "~>"
130
45
  - !ruby/object:Gem::Version
131
- version: '1.40'
132
- type: :development
46
+ version: '1.7'
47
+ type: :runtime
133
48
  prerelease: false
134
49
  version_requirements: !ruby/object:Gem::Requirement
135
50
  requirements:
136
51
  - - "~>"
137
52
  - !ruby/object:Gem::Version
138
- version: '1.40'
53
+ version: '1.7'
139
54
  - !ruby/object:Gem::Dependency
140
- name: vcr
55
+ name: kramdown
141
56
  requirement: !ruby/object:Gem::Requirement
142
57
  requirements:
143
58
  - - "~>"
144
59
  - !ruby/object:Gem::Version
145
- version: '6.0'
146
- type: :development
60
+ version: '2.5'
61
+ type: :runtime
147
62
  prerelease: false
148
63
  version_requirements: !ruby/object:Gem::Requirement
149
64
  requirements:
150
65
  - - "~>"
151
66
  - !ruby/object:Gem::Version
152
- version: '6.0'
67
+ version: '2.5'
153
68
  - !ruby/object:Gem::Dependency
154
- name: dotenv
69
+ name: unicode-display_width
155
70
  requirement: !ruby/object:Gem::Requirement
156
71
  requirements:
157
72
  - - "~>"
158
73
  - !ruby/object:Gem::Version
159
- version: '2.8'
160
- type: :development
74
+ version: '3.2'
75
+ type: :runtime
161
76
  prerelease: false
162
77
  version_requirements: !ruby/object:Gem::Requirement
163
78
  requirements:
164
79
  - - "~>"
165
80
  - !ruby/object:Gem::Version
166
- version: '2.8'
167
- description: llm-shell is an extensible, developer-oriented command-line console that
168
- can interact with multiple Large Language Models (LLMs).
81
+ version: '3.2'
82
+ description: |
83
+ The llm.rb console distributed as a single RubyGem that includes the optional
84
+ llm.rb dependencies. It is a convenience gem that reduces installing the
85
+ llm.rb console to a single line: `gem install llm-shell`.
169
86
  email:
170
- - azantar@proton.me
171
- - 0x1eef@proton.me
87
+ - robert@r.uby.dev
172
88
  executables:
173
89
  - llm-shell
174
90
  extensions: []
175
91
  extra_rdoc_files: []
176
92
  files:
93
+ - LICENSE
177
94
  - README.md
178
- - bin/llm-shell
179
- - lib/llm-shell.rb
180
- - lib/llm/shell.rb
181
- - lib/llm/shell/command.rb
182
- - lib/llm/shell/commands/clear_screen.rb
183
- - lib/llm/shell/commands/debug_mode.rb
184
- - lib/llm/shell/commands/dir_import.rb
185
- - lib/llm/shell/commands/disable_tool.rb
186
- - lib/llm/shell/commands/enable_tool.rb
187
- - lib/llm/shell/commands/file_import.rb
188
- - lib/llm/shell/commands/help.rb
189
- - lib/llm/shell/commands/show_chat.rb
190
- - lib/llm/shell/commands/show_version.rb
191
- - lib/llm/shell/commands/system_prompt.rb
192
- - lib/llm/shell/completion.rb
193
- - lib/llm/shell/config.rb
194
- - lib/llm/shell/default.rb
195
- - lib/llm/shell/formatter.rb
196
- - lib/llm/shell/internal/coderay/lib/coderay.rb
197
- - lib/llm/shell/internal/coderay/lib/coderay/duo.rb
198
- - lib/llm/shell/internal/coderay/lib/coderay/encoders.rb
199
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/_map.rb
200
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/comment_filter.rb
201
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/count.rb
202
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/debug.rb
203
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/debug_lint.rb
204
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/div.rb
205
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/encoder.rb
206
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/filter.rb
207
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/html.rb
208
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/html/css.rb
209
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/html/numbering.rb
210
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/html/output.rb
211
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/json.rb
212
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/lines_of_code.rb
213
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/lint.rb
214
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/null.rb
215
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/page.rb
216
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/span.rb
217
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/statistic.rb
218
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/terminal.rb
219
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/text.rb
220
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/token_kind_filter.rb
221
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/xml.rb
222
- - lib/llm/shell/internal/coderay/lib/coderay/encoders/yaml.rb
223
- - lib/llm/shell/internal/coderay/lib/coderay/for_redcloth.rb
224
- - lib/llm/shell/internal/coderay/lib/coderay/helpers/file_type.rb
225
- - lib/llm/shell/internal/coderay/lib/coderay/helpers/plugin.rb
226
- - lib/llm/shell/internal/coderay/lib/coderay/helpers/plugin_host.rb
227
- - lib/llm/shell/internal/coderay/lib/coderay/helpers/word_list.rb
228
- - lib/llm/shell/internal/coderay/lib/coderay/scanners.rb
229
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/_map.rb
230
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/c.rb
231
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/clojure.rb
232
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/cpp.rb
233
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/css.rb
234
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/debug.rb
235
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/delphi.rb
236
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/diff.rb
237
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/erb.rb
238
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/go.rb
239
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/groovy.rb
240
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/haml.rb
241
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/html.rb
242
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/java.rb
243
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/java/builtin_types.rb
244
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/java_script.rb
245
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/json.rb
246
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/lua.rb
247
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/php.rb
248
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/python.rb
249
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/raydebug.rb
250
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby.rb
251
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby/patterns.rb
252
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/ruby/string_state.rb
253
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/sass.rb
254
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/scanner.rb
255
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/sql.rb
256
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/taskpaper.rb
257
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/text.rb
258
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/xml.rb
259
- - lib/llm/shell/internal/coderay/lib/coderay/scanners/yaml.rb
260
- - lib/llm/shell/internal/coderay/lib/coderay/styles.rb
261
- - lib/llm/shell/internal/coderay/lib/coderay/styles/_map.rb
262
- - lib/llm/shell/internal/coderay/lib/coderay/styles/alpha.rb
263
- - lib/llm/shell/internal/coderay/lib/coderay/styles/style.rb
264
- - lib/llm/shell/internal/coderay/lib/coderay/token_kinds.rb
265
- - lib/llm/shell/internal/coderay/lib/coderay/tokens.rb
266
- - lib/llm/shell/internal/coderay/lib/coderay/tokens_proxy.rb
267
- - lib/llm/shell/internal/coderay/lib/coderay/version.rb
268
- - lib/llm/shell/internal/io-line/lib/io/line.rb
269
- - lib/llm/shell/internal/io-line/lib/io/line/multiple.rb
270
- - lib/llm/shell/internal/llm.rb/lib/llm.rb
271
- - lib/llm/shell/internal/llm.rb/lib/llm/bot.rb
272
- - lib/llm/shell/internal/llm.rb/lib/llm/bot/builder.rb
273
- - lib/llm/shell/internal/llm.rb/lib/llm/bot/conversable.rb
274
- - lib/llm/shell/internal/llm.rb/lib/llm/bot/prompt/completion.rb
275
- - lib/llm/shell/internal/llm.rb/lib/llm/bot/prompt/respond.rb
276
- - lib/llm/shell/internal/llm.rb/lib/llm/buffer.rb
277
- - lib/llm/shell/internal/llm.rb/lib/llm/client.rb
278
- - lib/llm/shell/internal/llm.rb/lib/llm/error.rb
279
- - lib/llm/shell/internal/llm.rb/lib/llm/eventhandler.rb
280
- - lib/llm/shell/internal/llm.rb/lib/llm/eventstream.rb
281
- - lib/llm/shell/internal/llm.rb/lib/llm/eventstream/event.rb
282
- - lib/llm/shell/internal/llm.rb/lib/llm/eventstream/parser.rb
283
- - lib/llm/shell/internal/llm.rb/lib/llm/file.rb
284
- - lib/llm/shell/internal/llm.rb/lib/llm/function.rb
285
- - lib/llm/shell/internal/llm.rb/lib/llm/message.rb
286
- - lib/llm/shell/internal/llm.rb/lib/llm/mime.rb
287
- - lib/llm/shell/internal/llm.rb/lib/llm/multipart.rb
288
- - lib/llm/shell/internal/llm.rb/lib/llm/object.rb
289
- - lib/llm/shell/internal/llm.rb/lib/llm/object/builder.rb
290
- - lib/llm/shell/internal/llm.rb/lib/llm/object/kernel.rb
291
- - lib/llm/shell/internal/llm.rb/lib/llm/provider.rb
292
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic.rb
293
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/error_handler.rb
294
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/files.rb
295
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/format.rb
296
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/format/completion_format.rb
297
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/models.rb
298
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/completion.rb
299
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/enumerable.rb
300
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/file.rb
301
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/response/web_search.rb
302
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/anthropic/stream_parser.rb
303
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek.rb
304
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek/format.rb
305
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/deepseek/format/completion_format.rb
306
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini.rb
307
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/audio.rb
308
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/error_handler.rb
309
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/files.rb
310
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/format.rb
311
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/format/completion_format.rb
312
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/images.rb
313
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/models.rb
314
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/completion.rb
315
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/embedding.rb
316
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/file.rb
317
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/files.rb
318
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/image.rb
319
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/models.rb
320
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/response/web_search.rb
321
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/gemini/stream_parser.rb
322
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/llamacpp.rb
323
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama.rb
324
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/error_handler.rb
325
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/format.rb
326
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/format/completion_format.rb
327
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/models.rb
328
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/response/completion.rb
329
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/response/embedding.rb
330
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/ollama/stream_parser.rb
331
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai.rb
332
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/audio.rb
333
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/error_handler.rb
334
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/files.rb
335
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format.rb
336
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/completion_format.rb
337
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/moderation_format.rb
338
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/format/respond_format.rb
339
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/images.rb
340
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/models.rb
341
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/moderations.rb
342
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/audio.rb
343
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/completion.rb
344
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/embedding.rb
345
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/enumerable.rb
346
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/file.rb
347
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/image.rb
348
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/moderations.rb
349
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/responds.rb
350
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/response/web_search.rb
351
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/responses.rb
352
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/responses/stream_parser.rb
353
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/stream_parser.rb
354
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/openai/vector_stores.rb
355
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/xai.rb
356
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/xai/images.rb
357
- - lib/llm/shell/internal/llm.rb/lib/llm/providers/zai.rb
358
- - lib/llm/shell/internal/llm.rb/lib/llm/response.rb
359
- - lib/llm/shell/internal/llm.rb/lib/llm/schema.rb
360
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/array.rb
361
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/boolean.rb
362
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/integer.rb
363
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/leaf.rb
364
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/null.rb
365
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/number.rb
366
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/object.rb
367
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/string.rb
368
- - lib/llm/shell/internal/llm.rb/lib/llm/schema/version.rb
369
- - lib/llm/shell/internal/llm.rb/lib/llm/server_tool.rb
370
- - lib/llm/shell/internal/llm.rb/lib/llm/tool.rb
371
- - lib/llm/shell/internal/llm.rb/lib/llm/tool/param.rb
372
- - lib/llm/shell/internal/llm.rb/lib/llm/utils.rb
373
- - lib/llm/shell/internal/llm.rb/lib/llm/version.rb
374
- - lib/llm/shell/internal/optparse/lib/optionparser.rb
375
- - lib/llm/shell/internal/optparse/lib/optparse.rb
376
- - lib/llm/shell/internal/optparse/lib/optparse/ac.rb
377
- - lib/llm/shell/internal/optparse/lib/optparse/date.rb
378
- - lib/llm/shell/internal/optparse/lib/optparse/kwargs.rb
379
- - lib/llm/shell/internal/optparse/lib/optparse/shellwords.rb
380
- - lib/llm/shell/internal/optparse/lib/optparse/time.rb
381
- - lib/llm/shell/internal/optparse/lib/optparse/uri.rb
382
- - lib/llm/shell/internal/optparse/lib/optparse/version.rb
383
- - lib/llm/shell/internal/paint/lib/paint.rb
384
- - lib/llm/shell/internal/paint/lib/paint/constants.rb
385
- - lib/llm/shell/internal/paint/lib/paint/pa.rb
386
- - lib/llm/shell/internal/paint/lib/paint/rgb_colors.rb
387
- - lib/llm/shell/internal/paint/lib/paint/shortcuts.rb
388
- - lib/llm/shell/internal/paint/lib/paint/shortcuts_version.rb
389
- - lib/llm/shell/internal/paint/lib/paint/util.rb
390
- - lib/llm/shell/internal/paint/lib/paint/version.rb
391
- - lib/llm/shell/internal/reline/lib/reline.rb
392
- - lib/llm/shell/internal/reline/lib/reline/config.rb
393
- - lib/llm/shell/internal/reline/lib/reline/face.rb
394
- - lib/llm/shell/internal/reline/lib/reline/history.rb
395
- - lib/llm/shell/internal/reline/lib/reline/io.rb
396
- - lib/llm/shell/internal/reline/lib/reline/io/ansi.rb
397
- - lib/llm/shell/internal/reline/lib/reline/io/dumb.rb
398
- - lib/llm/shell/internal/reline/lib/reline/io/windows.rb
399
- - lib/llm/shell/internal/reline/lib/reline/key_actor.rb
400
- - lib/llm/shell/internal/reline/lib/reline/key_actor/base.rb
401
- - lib/llm/shell/internal/reline/lib/reline/key_actor/composite.rb
402
- - lib/llm/shell/internal/reline/lib/reline/key_actor/emacs.rb
403
- - lib/llm/shell/internal/reline/lib/reline/key_actor/vi_command.rb
404
- - lib/llm/shell/internal/reline/lib/reline/key_actor/vi_insert.rb
405
- - lib/llm/shell/internal/reline/lib/reline/key_stroke.rb
406
- - lib/llm/shell/internal/reline/lib/reline/kill_ring.rb
407
- - lib/llm/shell/internal/reline/lib/reline/line_editor.rb
408
- - lib/llm/shell/internal/reline/lib/reline/unicode.rb
409
- - lib/llm/shell/internal/reline/lib/reline/unicode/east_asian_width.rb
410
- - lib/llm/shell/internal/reline/lib/reline/version.rb
411
- - lib/llm/shell/internal/tomlrb/lib/tomlrb.rb
412
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/generated_parser.rb
413
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/handler.rb
414
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/local_date.rb
415
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/local_date_time.rb
416
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/local_time.rb
417
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/parser.rb
418
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/scanner.rb
419
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/string_utils.rb
420
- - lib/llm/shell/internal/tomlrb/lib/tomlrb/version.rb
421
- - lib/llm/shell/markdown.rb
422
- - lib/llm/shell/options.rb
423
- - lib/llm/shell/renderer.rb
424
- - lib/llm/shell/repl.rb
425
- - lib/llm/shell/tool.rb
426
- - lib/llm/shell/tools/read_file.rb
427
- - lib/llm/shell/tools/system.rb
428
- - lib/llm/shell/tools/write_file.rb
429
- - lib/llm/shell/version.rb
430
- - libexec/llm-shell/shell
95
+ - exe/llm-shell
431
96
  - llm-shell.gemspec
432
- - share/llm-shell/prompts/default.txt
433
- homepage: https://github.com/llmrb/llm-shell
97
+ homepage: https://r.uby.dev
434
98
  licenses:
435
- - 0BSD
99
+ - MIT
436
100
  metadata:
437
- homepage_uri: https://github.com/llmrb/llm-shell
438
- source_code_uri: https://github.com/llmrb/llm-shell
101
+ homepage_uri: https://r.uby.dev
102
+ source_code_uri: https://github.com/r-uby-dev/llm-shell
103
+ documentation_uri: https://r.uby.dev
439
104
  rdoc_options: []
440
105
  require_paths:
441
106
  - lib
@@ -443,15 +108,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
443
108
  requirements:
444
109
  - - ">="
445
110
  - !ruby/object:Gem::Version
446
- version: '3.2'
111
+ version: 3.3.0
447
112
  required_rubygems_version: !ruby/object:Gem::Requirement
448
113
  requirements:
449
114
  - - ">="
450
115
  - !ruby/object:Gem::Version
451
116
  version: '0'
452
117
  requirements: []
453
- rubygems_version: 3.6.9
118
+ rubygems_version: 4.0.16
454
119
  specification_version: 4
455
- summary: llm-shell is an extensible, developer-oriented command-line console that
456
- can interact with multiple Large Language Models (LLMs).
120
+ summary: The llm.rb console in a single RubyGem
457
121
  test_files: []
data/bin/llm-shell DELETED
@@ -1,21 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- def wait
5
- Process.wait
6
- rescue Interrupt
7
- retry
8
- end
9
-
10
- def libexec
11
- File.realpath File.join(__dir__, "..", "libexec", "llm-shell")
12
- end
13
-
14
- def main(argv)
15
- Process.spawn File.join(libexec, "shell"), *ARGV[0..]
16
- Process.wait
17
- rescue Interrupt
18
- wait
19
- end
20
- main(ARGV)
21
- exit $?&.exitstatus || 1
@@ -1,88 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class LLM::Shell
4
- class Command
5
- ##
6
- # Returns true for builtin commands
7
- # @return [Boolean]
8
- def self.builtin?
9
- path, _ = instance_method(:call).source_location
10
- path&.include?(LLM::Shell.root)
11
- end
12
-
13
- ##
14
- # Always returns true
15
- # @return [Boolean]
16
- def self.enabled?
17
- true
18
- end
19
-
20
- ##
21
- # @param [Class] klass
22
- # A subclass
23
- # @return [void]
24
- def self.inherited(klass)
25
- LLM::Shell.commands << klass
26
- end
27
-
28
- ##
29
- # Set or get the command name
30
- # @param [String, nil] name
31
- # The name of the command
32
- # @return [String]
33
- def self.name(name = nil)
34
- if name
35
- @name = name
36
- else
37
- @name
38
- end
39
- end
40
-
41
- ##
42
- # Set or get the command description
43
- # @param [String, nil] desc
44
- # The description of the command
45
- # @return [String]
46
- def self.description(desc = nil)
47
- if desc
48
- @description = desc
49
- else
50
- @description
51
- end
52
- end
53
-
54
- ##
55
- # @param [LLM::Bot] bot
56
- # An instance of {LLM::Bot LLM::Bot}
57
- # @param [IO::Line] io
58
- # An IO object
59
- def initialize(bot, io)
60
- @bot = bot
61
- @io = io
62
- end
63
-
64
- ##
65
- # Call the command
66
- # @reurn [void]
67
- def call(*argv)
68
- raise NotImplementedError
69
- end
70
-
71
- private
72
-
73
- attr_reader :bot, :io
74
-
75
- def import(file)
76
- return unless File.file?(file)
77
- bot.chat [
78
- "<file path=\"#{file}\">",
79
- File.read(file),
80
- "</file>"
81
- ].join("\n")
82
- end
83
-
84
- def pager(...)
85
- LLM::Shell.pager(...)
86
- end
87
- end
88
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class LLM::Shell
4
- class Command::ClearScreen < Command
5
- name "clear-screen"
6
- description "Clears the screen"
7
-
8
- ##
9
- # Clears the screen
10
- # @return [void]
11
- def call = clear_screen
12
-
13
- private
14
-
15
- def console = IO.console
16
- def clear_screen = console.clear_screen
17
- end
18
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class LLM::Shell
4
- class Command::DebugMode < Command
5
- name 'debug-mode'
6
- description 'Enter into debug mode'
7
-
8
- def call
9
- binding.irb
10
- end
11
- end
12
- end