llama_bot_rails 0.1.10 → 0.1.13
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/README.md +17 -0
- data/app/channels/llama_bot_rails/chat_channel.rb +10 -6
- data/app/controllers/llama_bot_rails/agent_controller.rb +35 -31
- data/app/views/llama_bot_rails/agent/chat.html.erb +1 -1
- data/app/views/llama_bot_rails/agent/chat_ws.html.erb +1 -1
- data/bin/bundle +29 -0
- data/bin/bundle.lock +0 -0
- data/bin/bundler +29 -0
- data/bin/bundler.lock +0 -0
- data/bin/byebug +29 -0
- data/bin/coderay +29 -0
- data/bin/erb +29 -0
- data/bin/faker +29 -0
- data/bin/htmldiff +29 -0
- data/bin/irb +29 -0
- data/bin/ldiff +29 -0
- data/bin/nokogiri +29 -0
- data/bin/pry +29 -0
- data/bin/puma +29 -0
- data/bin/pumactl +29 -0
- data/bin/racc +29 -0
- data/bin/rackup +29 -0
- data/bin/rake +29 -0
- data/bin/rdoc +29 -0
- data/bin/ri +29 -0
- data/bin/rspec +29 -0
- data/bin/ruby-parse +29 -0
- data/bin/ruby-rewrite +29 -0
- data/bin/sprockets +29 -0
- data/bin/thor +29 -0
- data/config/routes.rb +2 -0
- data/lib/generators/llama_bot_rails/install/install_generator.rb +68 -0
- data/lib/llama_bot_rails/agent_auth.rb +155 -0
- data/lib/llama_bot_rails/controller_extensions.rb +40 -0
- data/lib/llama_bot_rails/engine.rb +8 -2
- data/lib/llama_bot_rails/llama_bot.rb +3 -3
- data/lib/llama_bot_rails/railtie.rb +25 -0
- data/lib/llama_bot_rails/version.rb +1 -1
- data/lib/llama_bot_rails.rb +62 -20
- metadata +34 -5
- data/bin/rails +0 -26
- data/bin/rubocop +0 -8
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: llama_bot_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kody Kendall
|
8
|
+
autorequire:
|
8
9
|
bindir: bin
|
9
10
|
cert_chain: []
|
10
|
-
date:
|
11
|
+
date: 2025-07-16 00:00:00.000000000 Z
|
11
12
|
dependencies:
|
12
13
|
- !ruby/object:Gem::Dependency
|
13
14
|
name: rails
|
@@ -118,17 +119,43 @@ files:
|
|
118
119
|
- app/views/layouts/llama_bot_rails/application.html.erb
|
119
120
|
- app/views/llama_bot_rails/agent/chat.html.erb
|
120
121
|
- app/views/llama_bot_rails/agent/chat_ws.html.erb
|
121
|
-
- bin/
|
122
|
-
- bin/
|
122
|
+
- bin/bundle
|
123
|
+
- bin/bundle.lock
|
124
|
+
- bin/bundler
|
125
|
+
- bin/bundler.lock
|
126
|
+
- bin/byebug
|
127
|
+
- bin/coderay
|
128
|
+
- bin/erb
|
129
|
+
- bin/faker
|
130
|
+
- bin/htmldiff
|
131
|
+
- bin/irb
|
132
|
+
- bin/ldiff
|
133
|
+
- bin/nokogiri
|
134
|
+
- bin/pry
|
135
|
+
- bin/puma
|
136
|
+
- bin/pumactl
|
137
|
+
- bin/racc
|
138
|
+
- bin/rackup
|
139
|
+
- bin/rake
|
140
|
+
- bin/rdoc
|
141
|
+
- bin/ri
|
142
|
+
- bin/rspec
|
143
|
+
- bin/ruby-parse
|
144
|
+
- bin/ruby-rewrite
|
145
|
+
- bin/sprockets
|
146
|
+
- bin/thor
|
123
147
|
- config/initializers/llama_bot_rails.rb
|
124
148
|
- config/routes.rb
|
125
149
|
- lib/generators/llama_bot_rails/install/install_generator.rb
|
126
150
|
- lib/generators/llama_bot_rails/install/templates/agent_prompt.txt
|
127
151
|
- lib/generators/llama_bot_rails/install/templates/agent_state_builder.rb.erb
|
128
152
|
- lib/llama_bot_rails.rb
|
153
|
+
- lib/llama_bot_rails/agent_auth.rb
|
129
154
|
- lib/llama_bot_rails/agent_state_builder.rb
|
155
|
+
- lib/llama_bot_rails/controller_extensions.rb
|
130
156
|
- lib/llama_bot_rails/engine.rb
|
131
157
|
- lib/llama_bot_rails/llama_bot.rb
|
158
|
+
- lib/llama_bot_rails/railtie.rb
|
132
159
|
- lib/llama_bot_rails/tools/rails_console_tool.rb
|
133
160
|
- lib/llama_bot_rails/version.rb
|
134
161
|
- lib/tasks/llama_bot_rails_tasks.rake
|
@@ -137,6 +164,7 @@ licenses:
|
|
137
164
|
- MIT
|
138
165
|
metadata:
|
139
166
|
homepage_uri: https://llamapress.ai
|
167
|
+
post_install_message:
|
140
168
|
rdoc_options: []
|
141
169
|
require_paths:
|
142
170
|
- lib
|
@@ -151,7 +179,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
179
|
- !ruby/object:Gem::Version
|
152
180
|
version: '0'
|
153
181
|
requirements: []
|
154
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.5.16
|
183
|
+
signing_key:
|
155
184
|
specification_version: 4
|
156
185
|
summary: LlamaBotRails is a gem that turns your existing Rails App into an AI Agent
|
157
186
|
by connecting it to an open source LangGraph agent, LlamaBot.
|
data/bin/rails
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# This command will automatically be run when you run "rails" with Rails gems
|
3
|
-
# installed from the root of your application.
|
4
|
-
|
5
|
-
ENGINE_ROOT = File.expand_path("..", __dir__)
|
6
|
-
ENGINE_PATH = File.expand_path("../lib/llama_bot_rails/engine", __dir__)
|
7
|
-
APP_PATH = File.expand_path("../spec/dummy/config/application", __dir__)
|
8
|
-
|
9
|
-
# Set up gems listed in the Gemfile.
|
10
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
11
|
-
require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
|
12
|
-
|
13
|
-
require "rails"
|
14
|
-
# Pick the frameworks you want:
|
15
|
-
require "active_model/railtie"
|
16
|
-
require "active_job/railtie"
|
17
|
-
require "active_record/railtie"
|
18
|
-
require "active_storage/engine"
|
19
|
-
require "action_controller/railtie"
|
20
|
-
# require "action_mailer/railtie"
|
21
|
-
# require "action_mailbox/engine"
|
22
|
-
# require "action_text/engine"
|
23
|
-
require "action_view/railtie"
|
24
|
-
require "action_cable/engine"
|
25
|
-
# require "rails/test_unit/railtie"
|
26
|
-
require "rails/engine/commands"
|
data/bin/rubocop
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require "rubygems"
|
3
|
-
require "bundler/setup"
|
4
|
-
|
5
|
-
# explicit rubocop config increases performance slightly while avoiding config confusion.
|
6
|
-
ARGV.unshift("--config", File.expand_path("../.rubocop.yml", __dir__))
|
7
|
-
|
8
|
-
load Gem.bin_path("rubocop", "rubocop")
|